configure revision 1.1.1.1 1 #! /bin/sh
2 # Copyright (C) 1996-2018 Internet Systems Consortium, Inc. ("ISC")
3 #
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 #
8 # -----------------------------------------------------------------------------
9 #
10 # Guess values for system-dependent variables and create Makefiles.
11 # Generated by GNU Autoconf 2.69 for BIND 9.12.
12 #
13 # Report bugs to <info (at] isc.org>.
14 #
15 #
16 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
17 #
18 #
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
21 ## -------------------- ##
22 ## M4sh Initialization. ##
23 ## -------------------- ##
24
25 # Be more Bourne compatible
26 DUALCASE=1; export DUALCASE # for MKS sh
27 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28 emulate sh
29 NULLCMD=:
30 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31 # is contrary to our usage. Disable this feature.
32 alias -g '${1+"$@"}'='"$@"'
33 setopt NO_GLOB_SUBST
34 else
35 case `(set -o) 2>/dev/null` in #(
36 *posix*) :
37 set -o posix ;; #(
38 *) :
39 ;;
40 esac
41 fi
42
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 # Prefer a ksh shell builtin over an external printf program on Solaris,
52 # but without wasting forks for bash or zsh.
53 if test -z "$BASH_VERSION$ZSH_VERSION" \
54 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
55 as_echo='print -r --'
56 as_echo_n='print -rn --'
57 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 as_echo='printf %s\n'
59 as_echo_n='printf %s'
60 else
61 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
62 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
63 as_echo_n='/usr/ucb/echo -n'
64 else
65 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 as_echo_n_body='eval
67 arg=$1;
68 case $arg in #(
69 *"$as_nl"*)
70 expr "X$arg" : "X\\(.*\\)$as_nl";
71 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
72 esac;
73 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74 '
75 export as_echo_n_body
76 as_echo_n='sh -c $as_echo_n_body as_echo'
77 fi
78 export as_echo_body
79 as_echo='sh -c $as_echo_body as_echo'
80 fi
81
82 # The user is always right.
83 if test "${PATH_SEPARATOR+set}" != set; then
84 PATH_SEPARATOR=:
85 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
86 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 PATH_SEPARATOR=';'
88 }
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
98
99 # Find who we are. Look in the path if we contain no directory separator.
100 as_myself=
101 case $0 in #((
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106 IFS=$as_save_IFS
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112 ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117 as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 exit 1
122 fi
123
124 # Unset variables that we do not need and which cause bugs (e.g. in
125 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
126 # suppresses any "Segmentation fault" message there. '((' could
127 # trigger a bug in pdksh 5.2.14.
128 for as_var in BASH_ENV ENV MAIL MAILPATH
129 do eval test x\${$as_var+set} = xset \
130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
131 done
132 PS1='$ '
133 PS2='> '
134 PS4='+ '
135
136 # NLS nuisances.
137 LC_ALL=C
138 export LC_ALL
139 LANGUAGE=C
140 export LANGUAGE
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Use a proper internal environment variable to ensure we don't fall
146 # into an infinite loop, continuously re-executing ourselves.
147 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
148 _as_can_reexec=no; export _as_can_reexec;
149 # We cannot yet assume a decent shell, so we have to provide a
150 # neutralization value for shells without unset; and this also
151 # works around shells that cannot unset nonexistent variables.
152 # Preserve -v and -x to the replacement shell.
153 BASH_ENV=/dev/null
154 ENV=/dev/null
155 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
156 case $- in # ((((
157 *v*x* | *x*v* ) as_opts=-vx ;;
158 *v* ) as_opts=-v ;;
159 *x* ) as_opts=-x ;;
160 * ) as_opts= ;;
161 esac
162 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
163 # Admittedly, this is quite paranoid, since all the known shells bail
164 # out after a failed `exec'.
165 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
166 as_fn_exit 255
167 fi
168 # We don't want this to propagate to other subprocesses.
169 { _as_can_reexec=; unset _as_can_reexec;}
170 if test "x$CONFIG_SHELL" = x; then
171 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
172 emulate sh
173 NULLCMD=:
174 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
175 # is contrary to our usage. Disable this feature.
176 alias -g '\${1+\"\$@\"}'='\"\$@\"'
177 setopt NO_GLOB_SUBST
178 else
179 case \`(set -o) 2>/dev/null\` in #(
180 *posix*) :
181 set -o posix ;; #(
182 *) :
183 ;;
184 esac
185 fi
186 "
187 as_required="as_fn_return () { (exit \$1); }
188 as_fn_success () { as_fn_return 0; }
189 as_fn_failure () { as_fn_return 1; }
190 as_fn_ret_success () { return 0; }
191 as_fn_ret_failure () { return 1; }
192
193 exitcode=0
194 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
195 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
196 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
197 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
198 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
199
200 else
201 exitcode=1; echo positional parameters were not saved.
202 fi
203 test x\$exitcode = x0 || exit 1
204 test -x / || exit 1"
205 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
206 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
207 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
208 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
209
210 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
211 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
212 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
213 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
214 PATH=/empty FPATH=/empty; export PATH FPATH
215 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
216 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
217 test \$(( 1 + 1 )) = 2 || exit 1"
218 if (eval "$as_required") 2>/dev/null; then :
219 as_have_required=yes
220 else
221 as_have_required=no
222 fi
223 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
224
225 else
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 as_found=false
228 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 do
230 IFS=$as_save_IFS
231 test -z "$as_dir" && as_dir=.
232 as_found=:
233 case $as_dir in #(
234 /*)
235 for as_base in sh bash ksh sh5; do
236 # Try only shells that exist, to save several forks.
237 as_shell=$as_dir/$as_base
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
240 CONFIG_SHELL=$as_shell as_have_required=yes
241 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 break 2
243 fi
244 fi
245 done;;
246 esac
247 as_found=false
248 done
249 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
250 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
251 CONFIG_SHELL=$SHELL as_have_required=yes
252 fi; }
253 IFS=$as_save_IFS
254
255
256 if test "x$CONFIG_SHELL" != x; then :
257 export CONFIG_SHELL
258 # We cannot yet assume a decent shell, so we have to provide a
259 # neutralization value for shells without unset; and this also
260 # works around shells that cannot unset nonexistent variables.
261 # Preserve -v and -x to the replacement shell.
262 BASH_ENV=/dev/null
263 ENV=/dev/null
264 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
265 case $- in # ((((
266 *v*x* | *x*v* ) as_opts=-vx ;;
267 *v* ) as_opts=-v ;;
268 *x* ) as_opts=-x ;;
269 * ) as_opts= ;;
270 esac
271 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
272 # Admittedly, this is quite paranoid, since all the known shells bail
273 # out after a failed `exec'.
274 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
275 exit 255
276 fi
277
278 if test x$as_have_required = xno; then :
279 $as_echo "$0: This script requires a shell more modern than all"
280 $as_echo "$0: the shells that I found on your system."
281 if test x${ZSH_VERSION+set} = xset ; then
282 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
283 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
284 else
285 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and info (at] isc.org about
286 $0: your system, including any error possibly output before
287 $0: this message. Then install a modern shell, or manually
288 $0: run the script under such a shell if you do have one."
289 fi
290 exit 1
291 fi
292 fi
293 fi
294 SHELL=${CONFIG_SHELL-/bin/sh}
295 export SHELL
296 # Unset more variables known to interfere with behavior of common tools.
297 CLICOLOR_FORCE= GREP_OPTIONS=
298 unset CLICOLOR_FORCE GREP_OPTIONS
299
300 ## --------------------- ##
301 ## M4sh Shell Functions. ##
302 ## --------------------- ##
303 # as_fn_unset VAR
304 # ---------------
305 # Portably unset VAR.
306 as_fn_unset ()
307 {
308 { eval $1=; unset $1;}
309 }
310 as_unset=as_fn_unset
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 $as_echo X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else
397 as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 }
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 eval 'as_fn_arith ()
410 {
411 as_val=$(( $* ))
412 }'
413 else
414 as_fn_arith ()
415 {
416 as_val=`expr "$@" || test $? -eq 1`
417 }
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 $as_echo "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 $as_echo X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 s/[$]LINENO.*/&-/
494 t lineno
495 b
496 :lineno
497 N
498 :loop
499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
500 t loop
501 s/-\n.*//
502 ' >$as_me.lineno &&
503 chmod +x "$as_me.lineno" ||
504 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
505
506 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
507 # already done that, so ensure we don't try to do so again and fall
508 # in an infinite loop. This has already happened in practice.
509 _as_can_reexec=no; export _as_can_reexec
510 # Don't try to exec as it changes $[0], causing all sort of problems
511 # (the dirname of $[0] is not the place where we might find the
512 # original and so on. Autoconf is especially sensitive to this).
513 . "./$as_me.lineno"
514 # Exit status is that of the last command.
515 exit
516 }
517
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 rm -f conf$$ conf$$.exe conf$$.file
532 if test -d conf$$.dir; then
533 rm -f conf$$.dir/conf$$.file
534 else
535 rm -f conf$$.dir
536 mkdir conf$$.dir 2>/dev/null
537 fi
538 if (echo >conf$$.file) 2>/dev/null; then
539 if ln -s conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s='ln -s'
541 # ... but there are two gotchas:
542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
544 # In both cases, we have to default to `cp -pR'.
545 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
546 as_ln_s='cp -pR'
547 elif ln conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s=ln
549 else
550 as_ln_s='cp -pR'
551 fi
552 else
553 as_ln_s='cp -pR'
554 fi
555 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
556 rmdir conf$$.dir 2>/dev/null
557
558 if mkdir -p . 2>/dev/null; then
559 as_mkdir_p='mkdir -p "$as_dir"'
560 else
561 test -d ./-p && rmdir ./-p
562 as_mkdir_p=false
563 fi
564
565 as_test_x='test -x'
566 as_executable_p=as_fn_executable_p
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574 SHELL=${CONFIG_SHELL-/bin/sh}
575
576
577 test -n "$DJDIR" || exec 7<&0 </dev/null
578 exec 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596
597 # Identity of this package.
598 PACKAGE_NAME='BIND'
599 PACKAGE_TARNAME='bind'
600 PACKAGE_VERSION='9.12'
601 PACKAGE_STRING='BIND 9.12'
602 PACKAGE_BUGREPORT='info (at] isc.org'
603 PACKAGE_URL='https://www.isc.org/downloads/BIND/'
604
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 ac_subst_vars='LTLIBOBJS
642 LIBOBJS
643 BUILD_LIBS
644 BUILD_LDFLAGS
645 BUILD_CPPFLAGS
646 BUILD_CFLAGS
647 BUILD_CC
648 DLZ_DRIVER_MYSQL_LIBS
649 DLZ_DRIVER_MYSQL_INCLUDES
650 DLZ_SYSTEM_TEST
651 DLZ_DRIVER_OBJS
652 DLZ_DRIVER_SRCS
653 DLZ_DRIVER_LIBS
654 DLZ_DRIVER_INCLUDES
655 CONTRIB_DLZ
656 MYSQL_CONFIG
657 PG_CONFIG
658 SO_TARGETS
659 SO_STRIP
660 SO_LD
661 SO_LDFLAGS
662 SO_CFLAGS
663 SO
664 BIND9_CONFIGARGS
665 BIND9_SRCID
666 BIND9_VERSIONSHORT
667 BIND9_VERSIONSTRING
668 BIND9_MAJOR
669 BIND9_VERSION
670 BIND9_DESCRIPTION
671 BIND9_PRODUCT
672 BIND9_IRS_BUILDINCLUDE
673 BIND9_BIND9_BUILDINCLUDE
674 BIND9_NS_BUILDINCLUDE
675 BIND9_DNS_BUILDINCLUDE
676 BIND9_ISCCFG_BUILDINCLUDE
677 BIND9_ISCCC_BUILDINCLUDE
678 BIND9_ISC_BUILDINCLUDE
679 BIND9_TOP_BUILDDIR
680 UNITTESTS
681 ATFLIBS
682 ATFBIN
683 ATFBUILD
684 LIBIDN2_LIBS
685 LIBIDN2_CFLAGS
686 IDNKIT_LIBS
687 XSLT_DBLATEX_FASTBOOK
688 XSLT_DBLATEX_STYLE
689 XSLT_DOCBOOK_MAKETOC_XHTML
690 XSLT_DOCBOOK_MAKETOC_HTML
691 XSLT_DOCBOOK_CHUNKTOC_XHTML
692 XSLT_DOCBOOK_CHUNKTOC_HTML
693 XSLT_DOCBOOK_CHUNK_XHTML
694 XSLT_DOCBOOK_CHUNK_HTML
695 XSLT_DOCBOOK_STYLE_MAN
696 XSLT_DOCBOOK_STYLE_XHTML
697 XSLT_DOCBOOK_STYLE_HTML
698 CURL
699 DOXYGEN
700 XMLLINT
701 XSLTPROC
702 PANDOC
703 W3M
704 DBLATEX
705 PDFLATEX
706 LATEX
707 DNSTAP_PB_C_H
708 DNSTAPTARGETS
709 DNSTAPOBJS
710 DNSTAPSRCS
711 DNSTAP
712 FSTRM_CAPTURE
713 PROTOC_C
714 ISC_PLATFORM_BUSYWAITNOP
715 ISC_ARCH_DIR
716 ISC_PLATFORM_USEMACASM
717 ISC_PLATFORM_USESTDASM
718 ISC_PLATFORM_USEOSFASM
719 ISC_PLATFORM_USEGCCASM
720 ISC_PLATFORM_HAVEATOMICSTOREQ
721 ISC_PLATFORM_HAVEATOMICSTORE
722 ISC_PLATFORM_HAVECMPXCHG
723 ISC_PLATFORM_HAVEXADDQ
724 ISC_PLATFORM_HAVEXADD
725 ISC_PLATFORM_HAVESTDATOMIC
726 ISC_PLATFORM_HAVEIFNAMETOINDEX
727 ISC_PLATFORM_HAVESTRINGSH
728 ISC_PLATFORM_BRACEPTHREADONCEINIT
729 IRS_PLATFORM_USEDECLSPEC
730 ISC_PLATFORM_USEDECLSPEC
731 ISC_PLATFORM_RLIMITTYPE
732 ISC_PLATFORM_HAVESTATNSEC
733 ISC_PLATFORM_HAVESYSUNH
734 ISC_PLATFORM_QUADFORMAT
735 DST_EXTRA_SRCS
736 DST_EXTRA_OBJS
737 USE_ISC_SPNEGO
738 ISC_EXTRA_SRCS
739 ISC_EXTRA_OBJS
740 ISC_PLATFORM_NEEDVSNPRINTF
741 ISC_PLATFORM_NEEDSPRINTF
742 ISC_PLATFORM_NEEDFPRINTF
743 ISC_PLATFORM_NEEDPRINTF
744 READLINE_LIB
745 ISC_PLATFORM_NEEDSTRCASESTR
746 ISC_PLATFORM_NEEDSTRLCAT
747 ISC_PLATFORM_NEEDSTRLCPY
748 GENRANDOMLIB
749 ISC_PLATFORM_NEEDSTRTOUL
750 ISC_PLATFORM_NEEDMEMMOVE
751 ISC_PLATFORM_NEEDSTRSEP
752 ISC_IRS_GETNAMEINFOSOCKLEN
753 ISC_IRS_NEEDADDRINFO
754 ISC_PLATFORM_HAVETFO
755 ISC_PLATFORM_NEEDPORTT
756 ISC_PLATFORM_MSGHDRFLAVOR
757 ISC_PLATFORM_HAVESALEN
758 ISC_PLATFORM_NEEDPTON
759 ISC_PLATFORM_NEEDNTOP
760 ISC_PLATFORM_HAVEIF_LADDRCONF
761 ISC_PLATFORM_HAVEIF_LADDRREQ
762 ISC_PLATFORM_HAVESCOPEID
763 ISC_IPV6_C
764 ISC_ISCIPV6_O
765 ISC_IPV6_O
766 ISC_IPV6_H
767 ISC_PLATFORM_HAVESOCKADDRSTORAGE
768 ISC_PLATFORM_FIXIN6ISADDR
769 ISC_PLATFORM_HAVEIN6PKTINFO
770 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
771 ISC_PLATFORM_NEEDIN6ADDRANY
772 ISC_PLATFORM_HAVEINADDR6
773 ISC_PLATFORM_NEEDNETINET6IN6H
774 ISC_PLATFORM_NEEDNETINETIN6H
775 ISC_PLATFORM_HAVEIPV6
776 BIND9_CO_RULE
777 LIBTOOL_IN_MAIN
778 LIBTOOL_ALLOW_UNDEFINED
779 LIBTOOL_MODE_UNINSTALL
780 LIBTOOL_MODE_LINK
781 LIBTOOL_MODE_INSTALL
782 LIBTOOL_MODE_COMPILE
783 LIBTOOL_MKDEP_SED
784 SA
785 A
786 O
787 ALWAYS_MAKE_SYMTABLE
788 MKSYMTBL_PROGRAM
789 ISC_PLATFORM_USEBACKTRACE
790 PURIFY
791 purify_path
792 IRIX_DNSSEC_WARNINGS_HACK
793 MKDEPPROG
794 MKDEPCFLAGS
795 MKDEPCC
796 ZLIB
797 JSONSTATS
798 XMLSTATS
799 NZDTARGETS
800 NZDSRCS
801 NZD_TOOLS
802 ISC_PLATFORM_CRYPTORANDOM
803 PKCS11_TEST
804 PKCS11_ED25519
805 PKCS11_GOST
806 PKCS11_ECDSA
807 CRYPTO
808 PKCS11LINKSRCS
809 PKCS11LINKOBJS
810 PKCS11_PROVIDER
811 ISC_ISCPK11_API_O
812 ISC_ISCPK11_API_C
813 ISC_PK11_RESULT_O
814 ISC_PK11_RESULT_C
815 ISC_PK11_API_O
816 ISC_PK11_API_C
817 ISC_PK11_O
818 ISC_PK11_C
819 PKCS11_ENGINE
820 PKCS11_TOOLS
821 USE_PKCS11
822 ISC_OPENSSL_LIBS
823 ISC_OPENSSL_INC
824 ISC_PLATFORM_OPENSSLHASH
825 ISC_PLATFORM_WANTAES
826 OPENSSL_GOST
827 OPENSSL_ED25519
828 OPENSSL_ECDSA
829 OPENSSLLINKSRCS
830 OPENSSLLINKOBJS
831 OPENSSLGOSTLINKSRCS
832 OPENSSLGOSTLINKOBJS
833 OPENSSLEDDSALINKSRCS
834 OPENSSLEDDSALINKOBJS
835 OPENSSLECDSALINKSRCS
836 OPENSSLECDSALINKOBJS
837 DST_OPENSSL_INC
838 INSTALL_LIBRARY
839 ISC_THREAD_DIR
840 THREADOPTSRCS
841 THREADOPTOBJS
842 ISC_PLATFORM_USETHREADS
843 ALWAYS_DEFINES
844 CHECK_DSA
845 DNS_CRYPTO_LIBS
846 DNS_GSSAPI_LIBS
847 DST_GSSAPI_INC
848 USE_GSSAPI
849 ISC_PLATFORM_KRB5HEADER
850 ISC_PLATFORM_GSSAPI_KRB5_HEADER
851 ISC_PLATFORM_GSSAPIHEADER
852 ISC_PLATFORM_HAVEGSSAPI
853 KRB5_CONFIG
854 GEOIPLINKOBJS
855 GEOIPLINKSRCS
856 ISC_PLATFORM_NEEDSYSSELECTH
857 ISC_PLATFORM_HAVEDEVPOLL
858 ISC_PLATFORM_HAVEEPOLL
859 ISC_PLATFORM_HAVEKQUEUE
860 ISC_PLATFORM_HAVELIFCONF
861 ISC_PLATFORM_NORETURN_POST
862 ISC_PLATFORM_NORETURN_PRE
863 ISC_PLATFORM_HAVELONGLONG
864 ISC_SOCKADDR_LEN_T
865 expanded_sysconfdir
866 PYTHON_INSTALL_LIB
867 PYTHON_INSTALL_DIR
868 PYTHON_TOOLS
869 KEYMGR
870 COVERAGE
871 CHECKDS
872 PYTHON
873 PERL
874 ETAGS
875 LN
876 ARFLAGS
877 XTARGETS
878 BACKTRACECFLAGS
879 CCNOOPT
880 CCOPT
881 STD_CWARNINGS
882 STD_CDEFINES
883 STD_CINCLUDES
884 INSTALL_DATA
885 INSTALL_SCRIPT
886 INSTALL_PROGRAM
887 CPP
888 LT_SYS_LIBRARY_PATH
889 OTOOL64
890 OTOOL
891 LIPO
892 NMEDIT
893 DSYMUTIL
894 MANIFEST_TOOL
895 AWK
896 RANLIB
897 STRIP
898 ac_ct_AR
899 AR
900 DLLTOOL
901 OBJDUMP
902 LN_S
903 NM
904 ac_ct_DUMPBIN
905 DUMPBIN
906 LD
907 FGREP
908 EGREP
909 GREP
910 SED
911 OBJEXT
912 EXEEXT
913 ac_ct_CC
914 CPPFLAGS
915 LDFLAGS
916 CFLAGS
917 CC
918 LIBTOOL
919 SET_MAKE
920 host_os
921 host_vendor
922 host_cpu
923 host
924 build_os
925 build_vendor
926 build_cpu
927 build
928 target_alias
929 host_alias
930 build_alias
931 LIBS
932 ECHO_T
933 ECHO_N
934 ECHO_C
935 DEFS
936 mandir
937 localedir
938 libdir
939 psdir
940 pdfdir
941 dvidir
942 htmldir
943 infodir
944 docdir
945 oldincludedir
946 includedir
947 localstatedir
948 sharedstatedir
949 sysconfdir
950 datadir
951 datarootdir
952 libexecdir
953 sbindir
954 bindir
955 program_transform_name
956 prefix
957 exec_prefix
958 PACKAGE_URL
959 PACKAGE_BUGREPORT
960 PACKAGE_STRING
961 PACKAGE_VERSION
962 PACKAGE_TARNAME
963 PACKAGE_NAME
964 PATH_SEPARATOR
965 SHELL'
966 ac_subst_files='BIND9_MAKE_INCLUDES
967 BIND9_MAKE_RULES
968 LIBISC_API
969 LIBISCCC_API
970 LIBISCCFG_API
971 LIBDNS_API
972 LIBDNS_MAPAPI
973 LIBBIND9_API
974 LIBIRS_API
975 LIBNS_API
976 DLZ_DRIVER_RULES'
977 ac_user_opts='
978 enable_option_checking
979 enable_shared
980 enable_static
981 with_pic
982 enable_fast_install
983 with_aix_soname
984 with_gnu_ld
985 with_sysroot
986 enable_libtool_lock
987 enable_libbind
988 enable_buffer_useinline
989 enable_warn_shadow
990 enable_warn_error
991 enable_developer
992 enable_afl
993 enable_seccomp
994 with_python
995 with_python_install_dir
996 enable_kqueue
997 enable_epoll
998 enable_devpoll
999 with_geoip
1000 with_gssapi
1001 with_randomdev
1002 enable_threads
1003 with_locktype
1004 with_libtool
1005 enable_native_pkcs11
1006 with_openssl
1007 with_pkcs11
1008 with_ecdsa
1009 with_gost
1010 with_eddsa
1011 with_aes
1012 with_cc_alg
1013 enable_openssl_hash
1014 enable_crypto_rand
1015 with_lmdb
1016 with_libxml2
1017 with_libjson
1018 with_zlib
1019 enable_largefile
1020 with_purify
1021 with_gperftools_profiler
1022 enable_backtrace
1023 enable_symtable
1024 enable_ipv6
1025 with_kame
1026 enable_tcp_fastopen
1027 enable_getifaddrs
1028 with_readline
1029 enable_isc_spnego
1030 enable_chroot
1031 enable_linux_caps
1032 with_rlimtype
1033 enable_atomic
1034 enable_fixed_rrset
1035 enable_rpz_nsip
1036 enable_rpz_nsdname
1037 enable_dnsrps_dl
1038 with_dnsrps_libname
1039 with_dnsrps_dir
1040 enable_dnsrps
1041 enable_dnstap
1042 with_protobuf_c
1043 with_libfstrm
1044 with_docbook_xsl
1045 with_idnkit
1046 with_libiconv
1047 with_iconv
1048 with_idnlib
1049 with_libidn2
1050 with_atf
1051 with_tuning
1052 enable_querytrace
1053 with_dlopen
1054 with_dlz_postgres
1055 with_dlz_mysql
1056 with_dlz_bdb
1057 with_dlz_filesystem
1058 with_dlz_ldap
1059 with_dlz_odbc
1060 with_dlz_stub
1061 with_make_clean
1062 enable_full_report
1063 '
1064 ac_precious_vars='build_alias
1065 host_alias
1066 target_alias
1067 CC
1068 CFLAGS
1069 LDFLAGS
1070 LIBS
1071 CPPFLAGS
1072 LT_SYS_LIBRARY_PATH
1073 CPP'
1074
1075
1076 # Initialize some variables set by options.
1077 ac_init_help=
1078 ac_init_version=false
1079 ac_unrecognized_opts=
1080 ac_unrecognized_sep=
1081 # The variables have the same names as the options, with
1082 # dashes changed to underlines.
1083 cache_file=/dev/null
1084 exec_prefix=NONE
1085 no_create=
1086 no_recursion=
1087 prefix=NONE
1088 program_prefix=NONE
1089 program_suffix=NONE
1090 program_transform_name=s,x,x,
1091 silent=
1092 site=
1093 srcdir=
1094 verbose=
1095 x_includes=NONE
1096 x_libraries=NONE
1097
1098 # Installation directory options.
1099 # These are left unexpanded so users can "make install exec_prefix=/foo"
1100 # and all the variables that are supposed to be based on exec_prefix
1101 # by default will actually change.
1102 # Use braces instead of parens because sh, perl, etc. also accept them.
1103 # (The list follows the same order as the GNU Coding Standards.)
1104 bindir='${exec_prefix}/bin'
1105 sbindir='${exec_prefix}/sbin'
1106 libexecdir='${exec_prefix}/libexec'
1107 datarootdir='${prefix}/share'
1108 datadir='${datarootdir}'
1109 sysconfdir='${prefix}/etc'
1110 sharedstatedir='${prefix}/com'
1111 localstatedir='${prefix}/var'
1112 includedir='${prefix}/include'
1113 oldincludedir='/usr/include'
1114 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1115 infodir='${datarootdir}/info'
1116 htmldir='${docdir}'
1117 dvidir='${docdir}'
1118 pdfdir='${docdir}'
1119 psdir='${docdir}'
1120 libdir='${exec_prefix}/lib'
1121 localedir='${datarootdir}/locale'
1122 mandir='${datarootdir}/man'
1123
1124 ac_prev=
1125 ac_dashdash=
1126 for ac_option
1127 do
1128 # If the previous option needs an argument, assign it.
1129 if test -n "$ac_prev"; then
1130 eval $ac_prev=\$ac_option
1131 ac_prev=
1132 continue
1133 fi
1134
1135 case $ac_option in
1136 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1137 *=) ac_optarg= ;;
1138 *) ac_optarg=yes ;;
1139 esac
1140
1141 # Accept the important Cygnus configure options, so we can diagnose typos.
1142
1143 case $ac_dashdash$ac_option in
1144 --)
1145 ac_dashdash=yes ;;
1146
1147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1148 ac_prev=bindir ;;
1149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1150 bindir=$ac_optarg ;;
1151
1152 -build | --build | --buil | --bui | --bu)
1153 ac_prev=build_alias ;;
1154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1155 build_alias=$ac_optarg ;;
1156
1157 -cache-file | --cache-file | --cache-fil | --cache-fi \
1158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1159 ac_prev=cache_file ;;
1160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1162 cache_file=$ac_optarg ;;
1163
1164 --config-cache | -C)
1165 cache_file=config.cache ;;
1166
1167 -datadir | --datadir | --datadi | --datad)
1168 ac_prev=datadir ;;
1169 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1170 datadir=$ac_optarg ;;
1171
1172 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1173 | --dataroo | --dataro | --datar)
1174 ac_prev=datarootdir ;;
1175 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1176 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1177 datarootdir=$ac_optarg ;;
1178
1179 -disable-* | --disable-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid feature name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "enable_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval enable_$ac_useropt=no ;;
1194
1195 -docdir | --docdir | --docdi | --doc | --do)
1196 ac_prev=docdir ;;
1197 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1198 docdir=$ac_optarg ;;
1199
1200 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1201 ac_prev=dvidir ;;
1202 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1203 dvidir=$ac_optarg ;;
1204
1205 -enable-* | --enable-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid feature name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "enable_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval enable_$ac_useropt=\$ac_optarg ;;
1220
1221 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1222 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1223 | --exec | --exe | --ex)
1224 ac_prev=exec_prefix ;;
1225 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1226 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1227 | --exec=* | --exe=* | --ex=*)
1228 exec_prefix=$ac_optarg ;;
1229
1230 -gas | --gas | --ga | --g)
1231 # Obsolete; use --with-gas.
1232 with_gas=yes ;;
1233
1234 -help | --help | --hel | --he | -h)
1235 ac_init_help=long ;;
1236 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1237 ac_init_help=recursive ;;
1238 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1239 ac_init_help=short ;;
1240
1241 -host | --host | --hos | --ho)
1242 ac_prev=host_alias ;;
1243 -host=* | --host=* | --hos=* | --ho=*)
1244 host_alias=$ac_optarg ;;
1245
1246 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1247 ac_prev=htmldir ;;
1248 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1249 | --ht=*)
1250 htmldir=$ac_optarg ;;
1251
1252 -includedir | --includedir | --includedi | --included | --include \
1253 | --includ | --inclu | --incl | --inc)
1254 ac_prev=includedir ;;
1255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1256 | --includ=* | --inclu=* | --incl=* | --inc=*)
1257 includedir=$ac_optarg ;;
1258
1259 -infodir | --infodir | --infodi | --infod | --info | --inf)
1260 ac_prev=infodir ;;
1261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1262 infodir=$ac_optarg ;;
1263
1264 -libdir | --libdir | --libdi | --libd)
1265 ac_prev=libdir ;;
1266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1267 libdir=$ac_optarg ;;
1268
1269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1270 | --libexe | --libex | --libe)
1271 ac_prev=libexecdir ;;
1272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1273 | --libexe=* | --libex=* | --libe=*)
1274 libexecdir=$ac_optarg ;;
1275
1276 -localedir | --localedir | --localedi | --localed | --locale)
1277 ac_prev=localedir ;;
1278 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1279 localedir=$ac_optarg ;;
1280
1281 -localstatedir | --localstatedir | --localstatedi | --localstated \
1282 | --localstate | --localstat | --localsta | --localst | --locals)
1283 ac_prev=localstatedir ;;
1284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1285 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1286 localstatedir=$ac_optarg ;;
1287
1288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1289 ac_prev=mandir ;;
1290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1291 mandir=$ac_optarg ;;
1292
1293 -nfp | --nfp | --nf)
1294 # Obsolete; use --without-fp.
1295 with_fp=no ;;
1296
1297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1298 | --no-cr | --no-c | -n)
1299 no_create=yes ;;
1300
1301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1303 no_recursion=yes ;;
1304
1305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1307 | --oldin | --oldi | --old | --ol | --o)
1308 ac_prev=oldincludedir ;;
1309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1312 oldincludedir=$ac_optarg ;;
1313
1314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1315 ac_prev=prefix ;;
1316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1317 prefix=$ac_optarg ;;
1318
1319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1320 | --program-pre | --program-pr | --program-p)
1321 ac_prev=program_prefix ;;
1322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1324 program_prefix=$ac_optarg ;;
1325
1326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1327 | --program-suf | --program-su | --program-s)
1328 ac_prev=program_suffix ;;
1329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1331 program_suffix=$ac_optarg ;;
1332
1333 -program-transform-name | --program-transform-name \
1334 | --program-transform-nam | --program-transform-na \
1335 | --program-transform-n | --program-transform- \
1336 | --program-transform | --program-transfor \
1337 | --program-transfo | --program-transf \
1338 | --program-trans | --program-tran \
1339 | --progr-tra | --program-tr | --program-t)
1340 ac_prev=program_transform_name ;;
1341 -program-transform-name=* | --program-transform-name=* \
1342 | --program-transform-nam=* | --program-transform-na=* \
1343 | --program-transform-n=* | --program-transform-=* \
1344 | --program-transform=* | --program-transfor=* \
1345 | --program-transfo=* | --program-transf=* \
1346 | --program-trans=* | --program-tran=* \
1347 | --progr-tra=* | --program-tr=* | --program-t=*)
1348 program_transform_name=$ac_optarg ;;
1349
1350 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1351 ac_prev=pdfdir ;;
1352 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1353 pdfdir=$ac_optarg ;;
1354
1355 -psdir | --psdir | --psdi | --psd | --ps)
1356 ac_prev=psdir ;;
1357 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1358 psdir=$ac_optarg ;;
1359
1360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1361 | -silent | --silent | --silen | --sile | --sil)
1362 silent=yes ;;
1363
1364 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1365 ac_prev=sbindir ;;
1366 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1367 | --sbi=* | --sb=*)
1368 sbindir=$ac_optarg ;;
1369
1370 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1371 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1372 | --sharedst | --shareds | --shared | --share | --shar \
1373 | --sha | --sh)
1374 ac_prev=sharedstatedir ;;
1375 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1376 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1377 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1378 | --sha=* | --sh=*)
1379 sharedstatedir=$ac_optarg ;;
1380
1381 -site | --site | --sit)
1382 ac_prev=site ;;
1383 -site=* | --site=* | --sit=*)
1384 site=$ac_optarg ;;
1385
1386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1387 ac_prev=srcdir ;;
1388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1389 srcdir=$ac_optarg ;;
1390
1391 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1392 | --syscon | --sysco | --sysc | --sys | --sy)
1393 ac_prev=sysconfdir ;;
1394 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1395 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1396 sysconfdir=$ac_optarg ;;
1397
1398 -target | --target | --targe | --targ | --tar | --ta | --t)
1399 ac_prev=target_alias ;;
1400 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1401 target_alias=$ac_optarg ;;
1402
1403 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1404 verbose=yes ;;
1405
1406 -version | --version | --versio | --versi | --vers | -V)
1407 ac_init_version=: ;;
1408
1409 -with-* | --with-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413 as_fn_error $? "invalid package name: $ac_useropt"
1414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1417 *"
1418 "with_$ac_useropt"
1419 "*) ;;
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1422 esac
1423 eval with_$ac_useropt=\$ac_optarg ;;
1424
1425 -without-* | --without-*)
1426 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1429 as_fn_error $? "invalid package name: $ac_useropt"
1430 ac_useropt_orig=$ac_useropt
1431 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1432 case $ac_user_opts in
1433 *"
1434 "with_$ac_useropt"
1435 "*) ;;
1436 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1437 ac_unrecognized_sep=', ';;
1438 esac
1439 eval with_$ac_useropt=no ;;
1440
1441 --x)
1442 # Obsolete; use --with-x.
1443 with_x=yes ;;
1444
1445 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1446 | --x-incl | --x-inc | --x-in | --x-i)
1447 ac_prev=x_includes ;;
1448 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1449 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1450 x_includes=$ac_optarg ;;
1451
1452 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1453 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1454 ac_prev=x_libraries ;;
1455 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1456 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1457 x_libraries=$ac_optarg ;;
1458
1459 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1460 Try \`$0 --help' for more information"
1461 ;;
1462
1463 *=*)
1464 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1465 # Reject names that are not valid shell variable names.
1466 case $ac_envvar in #(
1467 '' | [0-9]* | *[!_$as_cr_alnum]* )
1468 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1469 esac
1470 eval $ac_envvar=\$ac_optarg
1471 export $ac_envvar ;;
1472
1473 *)
1474 # FIXME: should be removed in autoconf 3.0.
1475 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1476 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1477 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1478 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1479 ;;
1480
1481 esac
1482 done
1483
1484 if test -n "$ac_prev"; then
1485 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1486 as_fn_error $? "missing argument to $ac_option"
1487 fi
1488
1489 if test -n "$ac_unrecognized_opts"; then
1490 case $enable_option_checking in
1491 no) ;;
1492 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1493 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494 esac
1495 fi
1496
1497 # Check all directory arguments for consistency.
1498 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1499 datadir sysconfdir sharedstatedir localstatedir includedir \
1500 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1501 libdir localedir mandir
1502 do
1503 eval ac_val=\$$ac_var
1504 # Remove trailing slashes.
1505 case $ac_val in
1506 */ )
1507 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1508 eval $ac_var=\$ac_val;;
1509 esac
1510 # Be sure to have absolute directory names.
1511 case $ac_val in
1512 [\\/$]* | ?:[\\/]* ) continue;;
1513 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1514 esac
1515 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1516 done
1517
1518 # There might be people who depend on the old broken behavior: `$host'
1519 # used to hold the argument of --host etc.
1520 # FIXME: To remove some day.
1521 build=$build_alias
1522 host=$host_alias
1523 target=$target_alias
1524
1525 # FIXME: To remove some day.
1526 if test "x$host_alias" != x; then
1527 if test "x$build_alias" = x; then
1528 cross_compiling=maybe
1529 elif test "x$build_alias" != "x$host_alias"; then
1530 cross_compiling=yes
1531 fi
1532 fi
1533
1534 ac_tool_prefix=
1535 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1536
1537 test "$silent" = yes && exec 6>/dev/null
1538
1539
1540 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1541 ac_ls_di=`ls -di .` &&
1542 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1543 as_fn_error $? "working directory cannot be determined"
1544 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1545 as_fn_error $? "pwd does not report name of working directory"
1546
1547
1548 # Find the source files, if location was not specified.
1549 if test -z "$srcdir"; then
1550 ac_srcdir_defaulted=yes
1551 # Try the directory containing this script, then the parent directory.
1552 ac_confdir=`$as_dirname -- "$as_myself" ||
1553 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1554 X"$as_myself" : 'X\(//\)[^/]' \| \
1555 X"$as_myself" : 'X\(//\)$' \| \
1556 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1557 $as_echo X"$as_myself" |
1558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1559 s//\1/
1560 q
1561 }
1562 /^X\(\/\/\)[^/].*/{
1563 s//\1/
1564 q
1565 }
1566 /^X\(\/\/\)$/{
1567 s//\1/
1568 q
1569 }
1570 /^X\(\/\).*/{
1571 s//\1/
1572 q
1573 }
1574 s/.*/./; q'`
1575 srcdir=$ac_confdir
1576 if test ! -r "$srcdir/$ac_unique_file"; then
1577 srcdir=..
1578 fi
1579 else
1580 ac_srcdir_defaulted=no
1581 fi
1582 if test ! -r "$srcdir/$ac_unique_file"; then
1583 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1584 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1585 fi
1586 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1587 ac_abs_confdir=`(
1588 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1589 pwd)`
1590 # When building in place, set srcdir=.
1591 if test "$ac_abs_confdir" = "$ac_pwd"; then
1592 srcdir=.
1593 fi
1594 # Remove unnecessary trailing slashes from srcdir.
1595 # Double slashes in file names in object file debugging info
1596 # mess up M-x gdb in Emacs.
1597 case $srcdir in
1598 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1599 esac
1600 for ac_var in $ac_precious_vars; do
1601 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1602 eval ac_env_${ac_var}_value=\$${ac_var}
1603 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1604 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1605 done
1606
1607 #
1608 # Report the --help message.
1609 #
1610 if test "$ac_init_help" = "long"; then
1611 # Omit some internal or obsolete options to make the list less imposing.
1612 # This message is too long to be a string in the A/UX 3.1 sh.
1613 cat <<_ACEOF
1614 \`configure' configures BIND 9.12 to adapt to many kinds of systems.
1615
1616 Usage: $0 [OPTION]... [VAR=VALUE]...
1617
1618 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1619 VAR=VALUE. See below for descriptions of some of the useful variables.
1620
1621 Defaults for the options are specified in brackets.
1622
1623 Configuration:
1624 -h, --help display this help and exit
1625 --help=short display options specific to this package
1626 --help=recursive display the short help of all the included packages
1627 -V, --version display version information and exit
1628 -q, --quiet, --silent do not print \`checking ...' messages
1629 --cache-file=FILE cache test results in FILE [disabled]
1630 -C, --config-cache alias for \`--cache-file=config.cache'
1631 -n, --no-create do not create output files
1632 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1633
1634 Installation directories:
1635 --prefix=PREFIX install architecture-independent files in PREFIX
1636 [$ac_default_prefix]
1637 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1638 [PREFIX]
1639
1640 By default, \`make install' will install all the files in
1641 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1642 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1643 for instance \`--prefix=\$HOME'.
1644
1645 For better control, use the options below.
1646
1647 Fine tuning of the installation directories:
1648 --bindir=DIR user executables [EPREFIX/bin]
1649 --sbindir=DIR system admin executables [EPREFIX/sbin]
1650 --libexecdir=DIR program executables [EPREFIX/libexec]
1651 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1652 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1653 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1654 --libdir=DIR object code libraries [EPREFIX/lib]
1655 --includedir=DIR C header files [PREFIX/include]
1656 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1657 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1658 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1659 --infodir=DIR info documentation [DATAROOTDIR/info]
1660 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1661 --mandir=DIR man documentation [DATAROOTDIR/man]
1662 --docdir=DIR documentation root [DATAROOTDIR/doc/bind]
1663 --htmldir=DIR html documentation [DOCDIR]
1664 --dvidir=DIR dvi documentation [DOCDIR]
1665 --pdfdir=DIR pdf documentation [DOCDIR]
1666 --psdir=DIR ps documentation [DOCDIR]
1667 _ACEOF
1668
1669 cat <<\_ACEOF
1670
1671 NOTE: If PREFIX is not set, then the default values for --sysconfdir
1672 and --localstatedir are /etc and /var, respectively.
1673
1674 System types:
1675 --build=BUILD configure for building on BUILD [guessed]
1676 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1677 _ACEOF
1678 fi
1679
1680 if test -n "$ac_init_help"; then
1681 case $ac_init_help in
1682 short | recursive ) echo "Configuration of BIND 9.12:";;
1683 esac
1684 cat <<\_ACEOF
1685
1686 Optional Features:
1687 --disable-option-checking ignore unrecognized --enable/--with options
1688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1690 --enable-shared[=PKGS] build shared libraries [default=yes]
1691 --enable-static[=PKGS] build static libraries [default=yes]
1692 --enable-fast-install[=PKGS]
1693 optimize for fast installation [default=yes]
1694 --disable-libtool-lock avoid locking (might break parallel builds)
1695 --enable-libbind deprecated
1696 --enable-buffer-useinline
1697 define ISC_BUFFER_USEINLINE when compiling
1698 [default=yes]
1699 --enable-warn-shadow turn on -Wshadow when compiling
1700 --enable-warn-error turn on -Werror when compiling
1701 --enable-developer enable developer build settings
1702 --enable-afl enable American Fuzzy Lop test harness [default=no]
1703 --enable-seccomp enable support for libseccomp system call filtering
1704 [default=no]
1705 --enable-kqueue use BSD kqueue when available [default=yes]
1706 --enable-epoll use Linux epoll when available [default=auto]
1707 --enable-devpoll use /dev/poll when available [default=yes]
1708 --enable-threads enable multithreading
1709 --enable-native-pkcs11 use native PKCS11 for all crypto [default=no]
1710 --enable-openssl-hash use OpenSSL for hash functions [default=yes]
1711 --enable-crypto-rand use the crypto provider for random [default=yes]
1712 --enable-largefile 64-bit file support
1713 --enable-backtrace log stack backtrace on abort [default=yes]
1714 --enable-symtable use internal symbol table for backtrace
1715 [all|minimal(default)|none]
1716 --enable-ipv6 use IPv6 [default=autodetect]
1717 --disable-tcp-fastopen disable TCP Fast Open support [default=autodetect]
1718 --enable-getifaddrs enable the use of getifaddrs() [yes|no].
1719 --disable-isc-spnego use SPNEGO from GSSAPI library
1720 --disable-chroot disable chroot
1721 --disable-linux-caps disable linux capabilities
1722 --enable-atomic enable machine specific atomic operations
1723 [default=autodetect]
1724 --enable-fixed-rrset enable fixed rrset ordering [default=no]
1725 --disable-rpz-nsip disable rpz nsip rules [default=enabled]
1726 --disable-rpz-nsdname disable rpz nsdname rules [default=enabled]
1727 --enable-dnsrps-dl DNS Response Policy Service delayed link
1728 [default=$librpz_dl]
1729 --enable-dnsrps enable DNS Response Policy Service API
1730 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c)
1731 --enable-querytrace enable very verbose query trace logging [default=no]
1732 --enable-full-report report values of all configure options
1733
1734 Optional Packages:
1735 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1736 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1737 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1738 both]
1739 --with-aix-soname=aix|svr4|both
1740 shared library versioning (aka "SONAME") variant to
1741 provide on AIX, [default=aix].
1742 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1743 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1744 compiler's sysroot if not specified).
1745 --with-python=PATH specify path to python interpreter
1746 --with-python-install-dir=PATH
1747 installation directory for Python modules
1748 --with-geoip=PATH Build with GeoIP support (yes|no|path)
1749 --with-gssapi=PATH|/path/krb5-config
1750 Specify path for system-supplied GSSAPI
1751 [default=yes]
1752 --with-randomdev=PATH Specify path for random device
1753 --with-locktype=ARG Specify mutex lock type (adaptive or standard)
1754 --with-libtool use GNU libtool
1755 --with-openssl=PATH Build with OpenSSL [yes|no|path]. (Crypto is
1756 required for DNSSEC)
1757 --with-pkcs11=PATH Build with PKCS11 support [yes|no|path] (PATH is for
1758 the PKCS11 provider)
1759 --with-ecdsa Crypto ECDSA
1760 --with-gost Crypto GOST [yes|no|raw|asn1].
1761 --with-eddsa Crypto EDDSA [yes|all|no].
1762 --with-aes Crypto AES
1763 --with-cc-alg=ALG choose the algorithm for Client Cookie
1764 [aes|sha1|sha256]
1765 --with-lmdb=PATH build with LMDB library [yes|no|path]
1766 --with-libxml2=PATH build with libxml2 library [yes|no|path]
1767 --with-libjson=PATH build with libjson0 library [yes|no|path]
1768 --with-zlib=PATH build with zlib for HTTP compression [default=yes]
1769 --with-purify=PATH use Rational purify
1770 --with-gperftools-profiler
1771 use gperftools CPU profiler
1772 --with-kame=PATH use Kame IPv6 [default path /usr/local/v6]
1773 --with-readline=LIBSPEC specify readline library [default auto]
1774
1775 --with-dnsrps-libname DNSRPS provider library name (librpz.so)
1776 --with-dnsrps-dir path to DNSRPS provider library
1777 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1778 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1779 --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
1780 --with-idnkit=PATH enable IDN support using idnkit [yes|no|path]
1781 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX [default PREFIX]
1782 --with-iconv=LIBSPEC specify iconv library [default -liconv]
1783 --with-idnlib=ARG specify libidnkit
1784 --with-libidn2=PATH enable IDN support using GNU libidn2 [yes|no|path]
1785 --with-atf support Automated Test Framework
1786 --with-tuning=ARG Specify server tuning (large or default)
1787 --with-dlopen=ARG support dynamically loadable DLZ drivers
1788 --with-dlz-postgres=PATH
1789 Build with Postgres DLZ driver [yes|no|path].
1790 (Required to use Postgres with DLZ)
1791 --with-dlz-mysql=PATH Build with MySQL DLZ driver [yes|no|path]. (Required
1792 to use MySQL with DLZ)
1793 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver [yes|no|path].
1794 (Required to use Berkeley DB with DLZ)
1795 --with-dlz-filesystem=ARG
1796 Build with filesystem DLZ driver [yes|no]. (Required
1797 to use file system driver with DLZ)
1798 --with-dlz-ldap=PATH Build with LDAP DLZ driver [yes|no|path]. (Required
1799 to use LDAP with DLZ)
1800 --with-dlz-odbc=PATH Build with ODBC DLZ driver [yes|no|path]. (Required
1801 to use ODBC with DLZ)
1802 --with-dlz-stub=ARG Build with stub DLZ driver [yes|no]. (Required to
1803 use stub driver with DLZ)
1804 --with-make-clean run "make clean" at end of configure [yes|no]
1805
1806 Some influential environment variables:
1807 CC C compiler command
1808 CFLAGS C compiler flags
1809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1810 nonstandard directory <lib dir>
1811 LIBS libraries to pass to the linker, e.g. -l<library>
1812 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1813 you have headers in a nonstandard directory <include dir>
1814 LT_SYS_LIBRARY_PATH
1815 User-defined run-time library search path.
1816 CPP C preprocessor
1817
1818 Use these variables to override the choices made by `configure' or to help
1819 it to find libraries and programs with nonstandard names/locations.
1820
1821 Professional support for BIND is provided by Internet Systems Consortium,
1822 Inc. Information about paid support and training options is available at
1823 https://www.isc.org/support.
1824
1825 Help can also often be found on the BIND Users mailing list
1826 (https://lists.isc.org/mailman/listinfo/bind-users) or in the #bind
1827 channel of the Freenode IRC service.
1828
1829 Report bugs to <info (at] isc.org>.
1830 BIND home page: <https://www.isc.org/downloads/BIND/>.
1831 _ACEOF
1832 ac_status=$?
1833 fi
1834
1835 if test "$ac_init_help" = "recursive"; then
1836 # If there are subdirs, report their specific --help.
1837 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1838 test -d "$ac_dir" ||
1839 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1840 continue
1841 ac_builddir=.
1842
1843 case "$ac_dir" in
1844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1845 *)
1846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1847 # A ".." for each directory in $ac_dir_suffix.
1848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1849 case $ac_top_builddir_sub in
1850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1852 esac ;;
1853 esac
1854 ac_abs_top_builddir=$ac_pwd
1855 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1856 # for backward compatibility:
1857 ac_top_builddir=$ac_top_build_prefix
1858
1859 case $srcdir in
1860 .) # We are building in place.
1861 ac_srcdir=.
1862 ac_top_srcdir=$ac_top_builddir_sub
1863 ac_abs_top_srcdir=$ac_pwd ;;
1864 [\\/]* | ?:[\\/]* ) # Absolute name.
1865 ac_srcdir=$srcdir$ac_dir_suffix;
1866 ac_top_srcdir=$srcdir
1867 ac_abs_top_srcdir=$srcdir ;;
1868 *) # Relative name.
1869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1870 ac_top_srcdir=$ac_top_build_prefix$srcdir
1871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1872 esac
1873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1874
1875 cd "$ac_dir" || { ac_status=$?; continue; }
1876 # Check for guested configure.
1877 if test -f "$ac_srcdir/configure.gnu"; then
1878 echo &&
1879 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1880 elif test -f "$ac_srcdir/configure"; then
1881 echo &&
1882 $SHELL "$ac_srcdir/configure" --help=recursive
1883 else
1884 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1885 fi || ac_status=$?
1886 cd "$ac_pwd" || { ac_status=$?; break; }
1887 done
1888 fi
1889
1890 test -n "$ac_init_help" && exit $ac_status
1891 if $ac_init_version; then
1892 cat <<\_ACEOF
1893 BIND configure 9.12
1894 generated by GNU Autoconf 2.69
1895
1896 Copyright (C) 2012 Free Software Foundation, Inc.
1897 This configure script is free software; the Free Software Foundation
1898 gives unlimited permission to copy, distribute and modify it.
1899 _ACEOF
1900 exit
1901 fi
1902
1903 ## ------------------------ ##
1904 ## Autoconf initialization. ##
1905 ## ------------------------ ##
1906
1907 # ac_fn_c_try_compile LINENO
1908 # --------------------------
1909 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_compile ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext
1914 if { { ac_try="$ac_compile"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_compile") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest.$ac_objext; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939 fi
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_compile
1944
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_c_try_link ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 test -x conftest$ac_exeext
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_link
1990
1991 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1992 # -------------------------------------------------------
1993 # Tests whether HEADER exists and can be compiled using the include files in
1994 # INCLUDES, setting the cache variable VAR accordingly.
1995 ac_fn_c_check_header_compile ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 $4
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 eval "$3=yes"
2010 else
2011 eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020 } # ac_fn_c_check_header_compile
2021
2022 # ac_fn_c_try_cpp LINENO
2023 # ----------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_c_try_cpp ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if { { ac_try="$ac_cpp conftest.$ac_ext"
2029 case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2036 ac_status=$?
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2041 fi
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } > conftest.i && {
2044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2045 test ! -s conftest.err
2046 }; then :
2047 ac_retval=0
2048 else
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_retval=1
2053 fi
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2056
2057 } # ac_fn_c_try_cpp
2058
2059 # ac_fn_c_try_run LINENO
2060 # ----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2063 ac_fn_c_try_run ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2074 ac_status=$?
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 ac_retval=$ac_status
2094 fi
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2098
2099 } # ac_fn_c_try_run
2100
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2105 {
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2116 #define $2 innocuous_$2
2117
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $2 (); below.
2120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121 <limits.h> exists even on freestanding compilers. */
2122
2123 #ifdef __STDC__
2124 # include <limits.h>
2125 #else
2126 # include <assert.h>
2127 #endif
2128
2129 #undef $2
2130
2131 /* Override any GCC internal prototype to avoid an error.
2132 Use char because int might match the return type of a GCC
2133 builtin and then its argument prototype would still apply. */
2134 #ifdef __cplusplus
2135 extern "C"
2136 #endif
2137 char $2 ();
2138 /* The GNU C library defines this for functions which it implements
2139 to always fail with ENOSYS. Some functions are actually named
2140 something starting with __ and the normal name is an alias. */
2141 #if defined __stub_$2 || defined __stub___$2
2142 choke me
2143 #endif
2144
2145 int
2146 main ()
2147 {
2148 return $2 ();
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_link "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext \
2159 conftest$ac_exeext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_func
2167
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type ()
2173 {
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 eval "$3=no"
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main ()
2186 {
2187 if (sizeof ($2))
2188 return 0;
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $4
2197 int
2198 main ()
2199 {
2200 if (sizeof (($2)))
2201 return 0;
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207
2208 else
2209 eval "$3=yes"
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220 } # ac_fn_c_check_type
2221
2222 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2223 # -------------------------------------------------------
2224 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2225 # the include files in INCLUDES and setting the cache variable VAR
2226 # accordingly.
2227 ac_fn_c_check_header_mongrel ()
2228 {
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if eval \${$3+:} false; then :
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2235 fi
2236 eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 else
2240 # Is the header compilable?
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2242 $as_echo_n "checking $2 usability... " >&6; }
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2245 $4
2246 #include <$2>
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_header_compiler=yes
2250 else
2251 ac_header_compiler=no
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2255 $as_echo "$ac_header_compiler" >&6; }
2256
2257 # Is the header present?
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2259 $as_echo_n "checking $2 presence... " >&6; }
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2262 #include <$2>
2263 _ACEOF
2264 if ac_fn_c_try_cpp "$LINENO"; then :
2265 ac_header_preproc=yes
2266 else
2267 ac_header_preproc=no
2268 fi
2269 rm -f conftest.err conftest.i conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2271 $as_echo "$ac_header_preproc" >&6; }
2272
2273 # So? What about this header?
2274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2275 yes:no: )
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2277 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2279 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2280 ;;
2281 no:yes:* )
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2283 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2285 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2287 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2289 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2291 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2292 ( $as_echo "## --------------------------- ##
2293 ## Report this to info (at] isc.org ##
2294 ## --------------------------- ##"
2295 ) | sed "s/^/$as_me: WARNING: /" >&2
2296 ;;
2297 esac
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 eval "$3=\$ac_header_compiler"
2304 fi
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 fi
2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310
2311 } # ac_fn_c_check_header_mongrel
2312
2313 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2314 # --------------------------------------------
2315 # Tries to find the compile-time value of EXPR in a program that includes
2316 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2317 # computed
2318 ac_fn_c_compute_int ()
2319 {
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 if test "$cross_compiling" = yes; then
2322 # Depending upon the size, compute the lo and hi bounds.
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2325 $4
2326 int
2327 main ()
2328 {
2329 static int test_array [1 - 2 * !(($2) >= 0)];
2330 test_array [0] = 0;
2331 return test_array [0];
2332
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338 ac_lo=0 ac_mid=0
2339 while :; do
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $4
2343 int
2344 main ()
2345 {
2346 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2347 test_array [0] = 0;
2348 return test_array [0];
2349
2350 ;
2351 return 0;
2352 }
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355 ac_hi=$ac_mid; break
2356 else
2357 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2358 if test $ac_lo -le $ac_mid; then
2359 ac_lo= ac_hi=
2360 break
2361 fi
2362 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 done
2366 else
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 $4
2370 int
2371 main ()
2372 {
2373 static int test_array [1 - 2 * !(($2) < 0)];
2374 test_array [0] = 0;
2375 return test_array [0];
2376
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 ac_hi=-1 ac_mid=-1
2383 while :; do
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 $4
2387 int
2388 main ()
2389 {
2390 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2391 test_array [0] = 0;
2392 return test_array [0];
2393
2394 ;
2395 return 0;
2396 }
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399 ac_lo=$ac_mid; break
2400 else
2401 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2402 if test $ac_mid -le $ac_hi; then
2403 ac_lo= ac_hi=
2404 break
2405 fi
2406 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 done
2410 else
2411 ac_lo= ac_hi=
2412 fi
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 # Binary search between lo and hi bounds.
2417 while test "x$ac_lo" != "x$ac_hi"; do
2418 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $4
2422 int
2423 main ()
2424 {
2425 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2426 test_array [0] = 0;
2427 return test_array [0];
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_hi=$ac_mid
2435 else
2436 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 done
2440 case $ac_lo in #((
2441 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2442 '') ac_retval=1 ;;
2443 esac
2444 else
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2447 $4
2448 static long int longval () { return $2; }
2449 static unsigned long int ulongval () { return $2; }
2450 #include <stdio.h>
2451 #include <stdlib.h>
2452 int
2453 main ()
2454 {
2455
2456 FILE *f = fopen ("conftest.val", "w");
2457 if (! f)
2458 return 1;
2459 if (($2) < 0)
2460 {
2461 long int i = longval ();
2462 if (i != ($2))
2463 return 1;
2464 fprintf (f, "%ld", i);
2465 }
2466 else
2467 {
2468 unsigned long int i = ulongval ();
2469 if (i != ($2))
2470 return 1;
2471 fprintf (f, "%lu", i);
2472 }
2473 /* Do not output a trailing newline, as this causes \r\n confusion
2474 on some platforms. */
2475 return ferror (f) || fclose (f) != 0;
2476
2477 ;
2478 return 0;
2479 }
2480 _ACEOF
2481 if ac_fn_c_try_run "$LINENO"; then :
2482 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2483 else
2484 ac_retval=1
2485 fi
2486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2487 conftest.$ac_objext conftest.beam conftest.$ac_ext
2488 rm -f conftest.val
2489
2490 fi
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 as_fn_set_status $ac_retval
2493
2494 } # ac_fn_c_compute_int
2495 cat >config.log <<_ACEOF
2496 This file contains any messages produced by compilers while
2497 running configure, to aid debugging if configure makes a mistake.
2498
2499 It was created by BIND $as_me 9.12, which was
2500 generated by GNU Autoconf 2.69. Invocation command line was
2501
2502 $ $0 $@
2503
2504 _ACEOF
2505 exec 5>>config.log
2506 {
2507 cat <<_ASUNAME
2508 ## --------- ##
2509 ## Platform. ##
2510 ## --------- ##
2511
2512 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2513 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2514 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2515 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2516 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2517
2518 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2519 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2520
2521 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2522 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2523 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2524 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2525 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2526 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2527 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2528
2529 _ASUNAME
2530
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 $as_echo "PATH: $as_dir"
2537 done
2538 IFS=$as_save_IFS
2539
2540 } >&5
2541
2542 cat >&5 <<_ACEOF
2543
2544
2545 ## ----------- ##
2546 ## Core tests. ##
2547 ## ----------- ##
2548
2549 _ACEOF
2550
2551
2552 # Keep a trace of the command line.
2553 # Strip out --no-create and --no-recursion so they do not pile up.
2554 # Strip out --silent because we don't want to record it for future runs.
2555 # Also quote any args containing shell meta-characters.
2556 # Make two passes to allow for proper duplicate-argument suppression.
2557 ac_configure_args=
2558 ac_configure_args0=
2559 ac_configure_args1=
2560 ac_must_keep_next=false
2561 for ac_pass in 1 2
2562 do
2563 for ac_arg
2564 do
2565 case $ac_arg in
2566 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2568 | -silent | --silent | --silen | --sile | --sil)
2569 continue ;;
2570 *\'*)
2571 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2572 esac
2573 case $ac_pass in
2574 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2575 2)
2576 as_fn_append ac_configure_args1 " '$ac_arg'"
2577 if test $ac_must_keep_next = true; then
2578 ac_must_keep_next=false # Got value, back to normal.
2579 else
2580 case $ac_arg in
2581 *=* | --config-cache | -C | -disable-* | --disable-* \
2582 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2583 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2584 | -with-* | --with-* | -without-* | --without-* | --x)
2585 case "$ac_configure_args0 " in
2586 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2587 esac
2588 ;;
2589 -* ) ac_must_keep_next=true ;;
2590 esac
2591 fi
2592 as_fn_append ac_configure_args " '$ac_arg'"
2593 ;;
2594 esac
2595 done
2596 done
2597 { ac_configure_args0=; unset ac_configure_args0;}
2598 { ac_configure_args1=; unset ac_configure_args1;}
2599
2600 # When interrupted or exit'd, cleanup temporary files, and complete
2601 # config.log. We remove comments because anyway the quotes in there
2602 # would cause problems or look ugly.
2603 # WARNING: Use '\'' to represent an apostrophe within the trap.
2604 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2605 trap 'exit_status=$?
2606 # Save into config.log some information that might help in debugging.
2607 {
2608 echo
2609
2610 $as_echo "## ---------------- ##
2611 ## Cache variables. ##
2612 ## ---------------- ##"
2613 echo
2614 # The following way of writing the cache mishandles newlines in values,
2615 (
2616 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2617 eval ac_val=\$$ac_var
2618 case $ac_val in #(
2619 *${as_nl}*)
2620 case $ac_var in #(
2621 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2622 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2623 esac
2624 case $ac_var in #(
2625 _ | IFS | as_nl) ;; #(
2626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2627 *) { eval $ac_var=; unset $ac_var;} ;;
2628 esac ;;
2629 esac
2630 done
2631 (set) 2>&1 |
2632 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2633 *${as_nl}ac_space=\ *)
2634 sed -n \
2635 "s/'\''/'\''\\\\'\'''\''/g;
2636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2637 ;; #(
2638 *)
2639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2640 ;;
2641 esac |
2642 sort
2643 )
2644 echo
2645
2646 $as_echo "## ----------------- ##
2647 ## Output variables. ##
2648 ## ----------------- ##"
2649 echo
2650 for ac_var in $ac_subst_vars
2651 do
2652 eval ac_val=\$$ac_var
2653 case $ac_val in
2654 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2655 esac
2656 $as_echo "$ac_var='\''$ac_val'\''"
2657 done | sort
2658 echo
2659
2660 if test -n "$ac_subst_files"; then
2661 $as_echo "## ------------------- ##
2662 ## File substitutions. ##
2663 ## ------------------- ##"
2664 echo
2665 for ac_var in $ac_subst_files
2666 do
2667 eval ac_val=\$$ac_var
2668 case $ac_val in
2669 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2670 esac
2671 $as_echo "$ac_var='\''$ac_val'\''"
2672 done | sort
2673 echo
2674 fi
2675
2676 if test -s confdefs.h; then
2677 $as_echo "## ----------- ##
2678 ## confdefs.h. ##
2679 ## ----------- ##"
2680 echo
2681 cat confdefs.h
2682 echo
2683 fi
2684 test "$ac_signal" != 0 &&
2685 $as_echo "$as_me: caught signal $ac_signal"
2686 $as_echo "$as_me: exit $exit_status"
2687 } >&5
2688 rm -f core *.core core.conftest.* &&
2689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2690 exit $exit_status
2691 ' 0
2692 for ac_signal in 1 2 13 15; do
2693 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2694 done
2695 ac_signal=0
2696
2697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2698 rm -f -r conftest* confdefs.h
2699
2700 $as_echo "/* confdefs.h */" > confdefs.h
2701
2702 # Predefined preprocessor variables.
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_NAME "$PACKAGE_NAME"
2706 _ACEOF
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2710 _ACEOF
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2714 _ACEOF
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_STRING "$PACKAGE_STRING"
2718 _ACEOF
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2722 _ACEOF
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_URL "$PACKAGE_URL"
2726 _ACEOF
2727
2728
2729 # Let the site file select an alternate cache file if it wants to.
2730 # Prefer an explicitly selected file to automatically selected ones.
2731 ac_site_file1=NONE
2732 ac_site_file2=NONE
2733 if test -n "$CONFIG_SITE"; then
2734 # We do not want a PATH search for config.site.
2735 case $CONFIG_SITE in #((
2736 -*) ac_site_file1=./$CONFIG_SITE;;
2737 */*) ac_site_file1=$CONFIG_SITE;;
2738 *) ac_site_file1=./$CONFIG_SITE;;
2739 esac
2740 elif test "x$prefix" != xNONE; then
2741 ac_site_file1=$prefix/share/config.site
2742 ac_site_file2=$prefix/etc/config.site
2743 else
2744 ac_site_file1=$ac_default_prefix/share/config.site
2745 ac_site_file2=$ac_default_prefix/etc/config.site
2746 fi
2747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2748 do
2749 test "x$ac_site_file" = xNONE && continue
2750 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2753 sed 's/^/| /' "$ac_site_file" >&5
2754 . "$ac_site_file" \
2755 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 as_fn_error $? "failed to load site script $ac_site_file
2758 See \`config.log' for more details" "$LINENO" 5; }
2759 fi
2760 done
2761
2762 if test -r "$cache_file"; then
2763 # Some versions of bash will fail to source /dev/null (special files
2764 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2765 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2767 $as_echo "$as_me: loading cache $cache_file" >&6;}
2768 case $cache_file in
2769 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2770 *) . "./$cache_file";;
2771 esac
2772 fi
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2775 $as_echo "$as_me: creating cache $cache_file" >&6;}
2776 >$cache_file
2777 fi
2778
2779 # Check that the precious variables saved in the cache have kept the same
2780 # value.
2781 ac_cache_corrupted=false
2782 for ac_var in $ac_precious_vars; do
2783 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2784 eval ac_new_set=\$ac_env_${ac_var}_set
2785 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2786 eval ac_new_val=\$ac_env_${ac_var}_value
2787 case $ac_old_set,$ac_new_set in
2788 set,)
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2790 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2791 ac_cache_corrupted=: ;;
2792 ,set)
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2794 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2795 ac_cache_corrupted=: ;;
2796 ,);;
2797 *)
2798 if test "x$ac_old_val" != "x$ac_new_val"; then
2799 # differences in whitespace do not lead to failure.
2800 ac_old_val_w=`echo x $ac_old_val`
2801 ac_new_val_w=`echo x $ac_new_val`
2802 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2804 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2805 ac_cache_corrupted=:
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2808 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2809 eval $ac_var=\$ac_old_val
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2812 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2814 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2815 fi;;
2816 esac
2817 # Pass precious variables to config.status.
2818 if test "$ac_new_set" = set; then
2819 case $ac_new_val in
2820 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2821 *) ac_arg=$ac_var=$ac_new_val ;;
2822 esac
2823 case " $ac_configure_args " in
2824 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2825 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2826 esac
2827 fi
2828 done
2829 if $ac_cache_corrupted; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2833 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2834 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2835 fi
2836 ## -------------------- ##
2837 ## Main body of script. ##
2838 ## -------------------- ##
2839
2840 ac_ext=c
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845
2846
2847
2848
2849 ac_config_headers="$ac_config_headers config.h"
2850
2851
2852
2853 ac_aux_dir=
2854 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2855 if test -f "$ac_dir/install-sh"; then
2856 ac_aux_dir=$ac_dir
2857 ac_install_sh="$ac_aux_dir/install-sh -c"
2858 break
2859 elif test -f "$ac_dir/install.sh"; then
2860 ac_aux_dir=$ac_dir
2861 ac_install_sh="$ac_aux_dir/install.sh -c"
2862 break
2863 elif test -f "$ac_dir/shtool"; then
2864 ac_aux_dir=$ac_dir
2865 ac_install_sh="$ac_aux_dir/shtool install -c"
2866 break
2867 fi
2868 done
2869 if test -z "$ac_aux_dir"; then
2870 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2871 fi
2872
2873 # These three variables are undocumented and unsupported,
2874 # and are intended to be withdrawn in a future Autoconf release.
2875 # They can cause serious problems if a builder's source tree is in a directory
2876 # whose full name contains unusual characters.
2877 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2878 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2879 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2880
2881
2882 # Make sure we can run config.sub.
2883 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2884 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2887 $as_echo_n "checking build system type... " >&6; }
2888 if ${ac_cv_build+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 ac_build_alias=$build_alias
2892 test "x$ac_build_alias" = x &&
2893 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2894 test "x$ac_build_alias" = x &&
2895 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2898
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2901 $as_echo "$ac_cv_build" >&6; }
2902 case $ac_cv_build in
2903 *-*-*) ;;
2904 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2905 esac
2906 build=$ac_cv_build
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_build
2909 shift
2910 build_cpu=$1
2911 build_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 build_os=$*
2916 IFS=$ac_save_IFS
2917 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2918
2919
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2921 $as_echo_n "checking host system type... " >&6; }
2922 if ${ac_cv_host+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test "x$host_alias" = x; then
2926 ac_cv_host=$ac_cv_build
2927 else
2928 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2929 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2930 fi
2931
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2934 $as_echo "$ac_cv_host" >&6; }
2935 case $ac_cv_host in
2936 *-*-*) ;;
2937 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 esac
2939 host=$ac_cv_host
2940 ac_save_IFS=$IFS; IFS='-'
2941 set x $ac_cv_host
2942 shift
2943 host_cpu=$1
2944 host_vendor=$2
2945 shift; shift
2946 # Remember, the first character of IFS is used to create $*,
2947 # except with old shells:
2948 host_os=$*
2949 IFS=$ac_save_IFS
2950 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2951
2952
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2955 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2956 set x ${MAKE-make}
2957 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2958 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 cat >conftest.make <<\_ACEOF
2962 SHELL = /bin/sh
2963 all:
2964 @echo '@@@%%%=$(MAKE)=@@@%%%'
2965 _ACEOF
2966 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2967 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2968 *@@@%%%=?*=@@@%%%*)
2969 eval ac_cv_prog_make_${ac_make}_set=yes;;
2970 *)
2971 eval ac_cv_prog_make_${ac_make}_set=no;;
2972 esac
2973 rm -f conftest.make
2974 fi
2975 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978 SET_MAKE=
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 SET_MAKE="MAKE=${MAKE-make}"
2983 fi
2984
2985
2986 #
2987 # GNU libtool support
2988 #
2989 case $build_os in
2990 sunos*)
2991 # Just set the maximum command line length for sunos as it otherwise
2992 # takes a exceptionally long time to work it out. Required for libtool.
2993
2994 lt_cv_sys_max_cmd_len=4096;
2995 ;;
2996 esac
2997
2998 case `pwd` in
2999 *\ * | *\ *)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3001 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3002 esac
3003
3004
3005
3006 macro_version='2.4.6'
3007 macro_revision='2.4.6'
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021 ltmain=$ac_aux_dir/ltmain.sh
3022
3023 # Backslashify metacharacters that are still active within
3024 # double-quoted strings.
3025 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3026
3027 # Same as above, but do not quote variable references.
3028 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3029
3030 # Sed substitution to delay expansion of an escaped shell variable in a
3031 # double_quote_subst'ed string.
3032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3033
3034 # Sed substitution to delay expansion of an escaped single quote.
3035 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3036
3037 # Sed substitution to avoid accidental globbing in evaled expressions
3038 no_glob_subst='s/\*/\\\*/g'
3039
3040 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3041 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3045 $as_echo_n "checking how to print strings... " >&6; }
3046 # Test print first, because it will be a builtin if present.
3047 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3048 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3049 ECHO='print -r --'
3050 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3051 ECHO='printf %s\n'
3052 else
3053 # Use this function as a fallback that always works.
3054 func_fallback_echo ()
3055 {
3056 eval 'cat <<_LTECHO_EOF
3057 $1
3058 _LTECHO_EOF'
3059 }
3060 ECHO='func_fallback_echo'
3061 fi
3062
3063 # func_echo_all arg...
3064 # Invoke $ECHO with all args, space-separated.
3065 func_echo_all ()
3066 {
3067 $ECHO ""
3068 }
3069
3070 case $ECHO in
3071 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3072 $as_echo "printf" >&6; } ;;
3073 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3074 $as_echo "print -r" >&6; } ;;
3075 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3076 $as_echo "cat" >&6; } ;;
3077 esac
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135 fi
3136 if test -z "$ac_cv_prog_CC"; then
3137 ac_ct_CC=$CC
3138 # Extract the first word of "gcc", so it can be a program name with args.
3139 set dummy gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_CC="gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 $as_echo "$ac_ct_CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174 if test "x$ac_ct_CC" = x; then
3175 CC=""
3176 else
3177 case $cross_compiling:$ac_tool_warned in
3178 yes:)
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned=yes ;;
3182 esac
3183 CC=$ac_ct_CC
3184 fi
3185 else
3186 CC="$ac_cv_prog_CC"
3187 fi
3188
3189 if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
3191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3192 set dummy ${ac_tool_prefix}cc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_CC+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 if test -n "$CC"; then
3199 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_CC="${ac_tool_prefix}cc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228 fi
3229 fi
3230 if test -z "$CC"; then
3231 # Extract the first word of "cc", so it can be a program name with args.
3232 set dummy cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 ac_prog_rejected=no
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3250 ac_prog_rejected=yes
3251 continue
3252 fi
3253 ac_cv_prog_CC="cc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 if test $ac_prog_rejected = yes; then
3262 # We found a bogon in the path, so make sure we never use it.
3263 set dummy $ac_cv_prog_CC
3264 shift
3265 if test $# != 0; then
3266 # We chose a different compiler from the bogus one.
3267 # However, it has the same basename, so the bogon will be chosen
3268 # first if we set CC to just the basename; use the full file name.
3269 shift
3270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3271 fi
3272 fi
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285 fi
3286 if test -z "$CC"; then
3287 if test -n "$ac_tool_prefix"; then
3288 for ac_prog in cl.exe
3289 do
3290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 test -n "$CC" && break
3328 done
3329 fi
3330 if test -z "$CC"; then
3331 ac_ct_CC=$CC
3332 for ac_prog in cl.exe
3333 do
3334 # Extract the first word of "$ac_prog", so it can be a program name with args.
3335 set dummy $ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$ac_ct_CC"; then
3342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_ac_ct_CC="$ac_prog"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3362 if test -n "$ac_ct_CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3364 $as_echo "$ac_ct_CC" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 test -n "$ac_ct_CC" && break
3372 done
3373
3374 if test "x$ac_ct_CC" = x; then
3375 CC=""
3376 else
3377 case $cross_compiling:$ac_tool_warned in
3378 yes:)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3382 esac
3383 CC=$ac_ct_CC
3384 fi
3385 fi
3386
3387 fi
3388
3389
3390 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "no acceptable C compiler found in \$PATH
3393 See \`config.log' for more details" "$LINENO" 5; }
3394
3395 # Provide some information about the compiler.
3396 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3397 set X $ac_compile
3398 ac_compiler=$2
3399 for ac_option in --version -v -V -qversion; do
3400 { { ac_try="$ac_compiler $ac_option >&5"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3408 ac_status=$?
3409 if test -s conftest.err; then
3410 sed '10a\
3411 ... rest of stderr output deleted ...
3412 10q' conftest.err >conftest.er1
3413 cat conftest.er1 >&5
3414 fi
3415 rm -f conftest.er1 conftest.err
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }
3418 done
3419
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 ac_clean_files_save=$ac_clean_files
3432 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3433 # Try to create an executable without -o first, disregard a.out.
3434 # It will help us diagnose broken compilers, and finding out an intuition
3435 # of exeext.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3437 $as_echo_n "checking whether the C compiler works... " >&6; }
3438 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3439
3440 # The possible output files:
3441 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3442
3443 ac_rmfiles=
3444 for ac_file in $ac_files
3445 do
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3448 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3449 esac
3450 done
3451 rm -f $ac_rmfiles
3452
3453 if { { ac_try="$ac_link_default"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_link_default") 2>&5
3461 ac_status=$?
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }; then :
3464 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3465 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3466 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3467 # so that the user can short-circuit this test for compilers unknown to
3468 # Autoconf.
3469 for ac_file in $ac_files ''
3470 do
3471 test -f "$ac_file" || continue
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3474 ;;
3475 [ab].out )
3476 # We found the default executable, but exeext='' is most
3477 # certainly right.
3478 break;;
3479 *.* )
3480 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3481 then :; else
3482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3483 fi
3484 # We set ac_cv_exeext here because the later test for it is not
3485 # safe: cross compilers may not add the suffix if given an `-o'
3486 # argument, so we may need to know it at that point already.
3487 # Even if this section looks crufty: it has the advantage of
3488 # actually working.
3489 break;;
3490 * )
3491 break;;
3492 esac
3493 done
3494 test "$ac_cv_exeext" = no && ac_cv_exeext=
3495
3496 else
3497 ac_file=''
3498 fi
3499 if test -z "$ac_file"; then :
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 $as_echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507 as_fn_error 77 "C compiler cannot create executables
3508 See \`config.log' for more details" "$LINENO" 5; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511 $as_echo "yes" >&6; }
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3514 $as_echo_n "checking for C compiler default output file name... " >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3516 $as_echo "$ac_file" >&6; }
3517 ac_exeext=$ac_cv_exeext
3518
3519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3520 ac_clean_files=$ac_clean_files_save
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3522 $as_echo_n "checking for suffix of executables... " >&6; }
3523 if { { ac_try="$ac_link"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3536 # work properly (i.e., refer to `conftest.exe'), while it won't with
3537 # `rm'.
3538 for ac_file in conftest.exe conftest conftest.*; do
3539 test -f "$ac_file" || continue
3540 case $ac_file in
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543 break;;
3544 * ) break;;
3545 esac
3546 done
3547 else
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3551 See \`config.log' for more details" "$LINENO" 5; }
3552 fi
3553 rm -f conftest conftest$ac_cv_exeext
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3555 $as_echo "$ac_cv_exeext" >&6; }
3556
3557 rm -f conftest.$ac_ext
3558 EXEEXT=$ac_cv_exeext
3559 ac_exeext=$EXEEXT
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562 #include <stdio.h>
3563 int
3564 main ()
3565 {
3566 FILE *f = fopen ("conftest.out", "w");
3567 return ferror (f) || fclose (f) != 0;
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 ac_clean_files="$ac_clean_files conftest.out"
3574 # Check that the compiler produces executables we can run. If not, either
3575 # the compiler is broken, or we cross compile.
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3577 $as_echo_n "checking whether we are cross compiling... " >&6; }
3578 if test "$cross_compiling" != yes; then
3579 { { ac_try="$ac_link"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }
3590 if { ac_try='./conftest$ac_cv_exeext'
3591 { { case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_try") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; }; then
3601 cross_compiling=no
3602 else
3603 if test "$cross_compiling" = maybe; then
3604 cross_compiling=yes
3605 else
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot run C compiled programs.
3609 If you meant to cross compile, use \`--host'.
3610 See \`config.log' for more details" "$LINENO" 5; }
3611 fi
3612 fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3615 $as_echo "$cross_compiling" >&6; }
3616
3617 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3618 ac_clean_files=$ac_clean_files_save
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3620 $as_echo_n "checking for suffix of object files... " >&6; }
3621 if ${ac_cv_objext+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626
3627 int
3628 main ()
3629 {
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.o conftest.obj
3636 if { { ac_try="$ac_compile"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_compile") 2>&5
3644 ac_status=$?
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }; then :
3647 for ac_file in conftest.o conftest.obj conftest.*; do
3648 test -f "$ac_file" || continue;
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3652 break;;
3653 esac
3654 done
3655 else
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "cannot compute suffix of object files: cannot compile
3662 See \`config.log' for more details" "$LINENO" 5; }
3663 fi
3664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3667 $as_echo "$ac_cv_objext" >&6; }
3668 OBJEXT=$ac_cv_objext
3669 ac_objext=$OBJEXT
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3671 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3672 if ${ac_cv_c_compiler_gnu+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681 #ifndef __GNUC__
3682 choke me
3683 #endif
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690 ac_compiler_gnu=yes
3691 else
3692 ac_compiler_gnu=no
3693 fi
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3696
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3699 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3700 if test $ac_compiler_gnu = yes; then
3701 GCC=yes
3702 else
3703 GCC=
3704 fi
3705 ac_test_CFLAGS=${CFLAGS+set}
3706 ac_save_CFLAGS=$CFLAGS
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3708 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3709 if ${ac_cv_prog_cc_g+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 ac_save_c_werror_flag=$ac_c_werror_flag
3713 ac_c_werror_flag=yes
3714 ac_cv_prog_cc_g=no
3715 CFLAGS="-g"
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 int
3720 main ()
3721 {
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv_prog_cc_g=yes
3729 else
3730 CFLAGS=""
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743
3744 else
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3746 CFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749
3750 int
3751 main ()
3752 {
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_cv_prog_cc_g=yes
3760 fi
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3769 $as_echo "$ac_cv_prog_cc_g" >&6; }
3770 if test "$ac_test_CFLAGS" = set; then
3771 CFLAGS=$ac_save_CFLAGS
3772 elif test $ac_cv_prog_cc_g = yes; then
3773 if test "$GCC" = yes; then
3774 CFLAGS="-g -O2"
3775 else
3776 CFLAGS="-g"
3777 fi
3778 else
3779 if test "$GCC" = yes; then
3780 CFLAGS="-O2"
3781 else
3782 CFLAGS=
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3786 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3787 if ${ac_cv_prog_cc_c89+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 ac_cv_prog_cc_c89=no
3791 ac_save_CC=$CC
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <stdarg.h>
3795 #include <stdio.h>
3796 struct stat;
3797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3798 struct buf { int x; };
3799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3800 static char *e (p, i)
3801 char **p;
3802 int i;
3803 {
3804 return p[i];
3805 }
3806 static char *f (char * (*g) (char **, int), char **p, ...)
3807 {
3808 char *s;
3809 va_list v;
3810 va_start (v,p);
3811 s = g (p, va_arg (v,int));
3812 va_end (v);
3813 return s;
3814 }
3815
3816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3817 function prototypes and stuff, but not '\xHH' hex character constants.
3818 These don't provoke an error unfortunately, instead are silently treated
3819 as 'x'. The following induces an error, until -std is added to get
3820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3821 array size at least. It's necessary to write '\x00'==0 to get something
3822 that's true only with -std. */
3823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3824
3825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3826 inside strings and character constants. */
3827 #define FOO(x) 'x'
3828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3829
3830 int test (int i, double x);
3831 struct s1 {int (*f) (int a);};
3832 struct s2 {int (*f) (double a);};
3833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3834 int argc;
3835 char **argv;
3836 int
3837 main ()
3838 {
3839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3846 do
3847 CC="$ac_save_CC $ac_arg"
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_prog_cc_c89=$ac_arg
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext
3852 test "x$ac_cv_prog_cc_c89" != "xno" && break
3853 done
3854 rm -f conftest.$ac_ext
3855 CC=$ac_save_CC
3856
3857 fi
3858 # AC_CACHE_VAL
3859 case "x$ac_cv_prog_cc_c89" in
3860 x)
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3862 $as_echo "none needed" >&6; } ;;
3863 xno)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3865 $as_echo "unsupported" >&6; } ;;
3866 *)
3867 CC="$CC $ac_cv_prog_cc_c89"
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3870 esac
3871 if test "x$ac_cv_prog_cc_c89" != xno; then :
3872
3873 fi
3874
3875 ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3882 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3883 if ${ac_cv_path_SED+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3887 for ac_i in 1 2 3 4 5 6 7; do
3888 ac_script="$ac_script$as_nl$ac_script"
3889 done
3890 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3891 { ac_script=; unset ac_script;}
3892 if test -z "$SED"; then
3893 ac_path_SED_found=false
3894 # Loop through the user's path and test for each of PROGNAME-LIST
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_prog in sed gsed; do
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3903 as_fn_executable_p "$ac_path_SED" || continue
3904 # Check for GNU ac_path_SED and select it if it is found.
3905 # Check for GNU $ac_path_SED
3906 case `"$ac_path_SED" --version 2>&1` in
3907 *GNU*)
3908 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3909 *)
3910 ac_count=0
3911 $as_echo_n 0123456789 >"conftest.in"
3912 while :
3913 do
3914 cat "conftest.in" "conftest.in" >"conftest.tmp"
3915 mv "conftest.tmp" "conftest.in"
3916 cp "conftest.in" "conftest.nl"
3917 $as_echo '' >> "conftest.nl"
3918 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3920 as_fn_arith $ac_count + 1 && ac_count=$as_val
3921 if test $ac_count -gt ${ac_path_SED_max-0}; then
3922 # Best one so far, save it but keep looking for a better one
3923 ac_cv_path_SED="$ac_path_SED"
3924 ac_path_SED_max=$ac_count
3925 fi
3926 # 10*(2^10) chars as input seems more than enough
3927 test $ac_count -gt 10 && break
3928 done
3929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 esac
3931
3932 $ac_path_SED_found && break 3
3933 done
3934 done
3935 done
3936 IFS=$as_save_IFS
3937 if test -z "$ac_cv_path_SED"; then
3938 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3939 fi
3940 else
3941 ac_cv_path_SED=$SED
3942 fi
3943
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3946 $as_echo "$ac_cv_path_SED" >&6; }
3947 SED="$ac_cv_path_SED"
3948 rm -f conftest.sed
3949
3950 test -z "$SED" && SED=sed
3951 Xsed="$SED -e 1s/^X//"
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3964 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3965 if ${ac_cv_path_GREP+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -z "$GREP"; then
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 as_fn_executable_p "$ac_path_GREP" || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3983 *GNU*)
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 *)
3986 ac_count=0
3987 $as_echo_n 0123456789 >"conftest.in"
3988 while :
3989 do
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 $as_echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 as_fn_arith $ac_count + 1 && ac_count=$as_val
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
4001 fi
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008 $ac_path_GREP_found && break 3
4009 done
4010 done
4011 done
4012 IFS=$as_save_IFS
4013 if test -z "$ac_cv_path_GREP"; then
4014 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4015 fi
4016 else
4017 ac_cv_path_GREP=$GREP
4018 fi
4019
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4022 $as_echo "$ac_cv_path_GREP" >&6; }
4023 GREP="$ac_cv_path_GREP"
4024
4025
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4027 $as_echo_n "checking for egrep... " >&6; }
4028 if ${ac_cv_path_EGREP+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4032 then ac_cv_path_EGREP="$GREP -E"
4033 else
4034 if test -z "$EGREP"; then
4035 ac_path_EGREP_found=false
4036 # Loop through the user's path and test for each of PROGNAME-LIST
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4039 do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_prog in egrep; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4045 as_fn_executable_p "$ac_path_EGREP" || continue
4046 # Check for GNU ac_path_EGREP and select it if it is found.
4047 # Check for GNU $ac_path_EGREP
4048 case `"$ac_path_EGREP" --version 2>&1` in
4049 *GNU*)
4050 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4051 *)
4052 ac_count=0
4053 $as_echo_n 0123456789 >"conftest.in"
4054 while :
4055 do
4056 cat "conftest.in" "conftest.in" >"conftest.tmp"
4057 mv "conftest.tmp" "conftest.in"
4058 cp "conftest.in" "conftest.nl"
4059 $as_echo 'EGREP' >> "conftest.nl"
4060 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062 as_fn_arith $ac_count + 1 && ac_count=$as_val
4063 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4064 # Best one so far, save it but keep looking for a better one
4065 ac_cv_path_EGREP="$ac_path_EGREP"
4066 ac_path_EGREP_max=$ac_count
4067 fi
4068 # 10*(2^10) chars as input seems more than enough
4069 test $ac_count -gt 10 && break
4070 done
4071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4072 esac
4073
4074 $ac_path_EGREP_found && break 3
4075 done
4076 done
4077 done
4078 IFS=$as_save_IFS
4079 if test -z "$ac_cv_path_EGREP"; then
4080 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4081 fi
4082 else
4083 ac_cv_path_EGREP=$EGREP
4084 fi
4085
4086 fi
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4089 $as_echo "$ac_cv_path_EGREP" >&6; }
4090 EGREP="$ac_cv_path_EGREP"
4091
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4094 $as_echo_n "checking for fgrep... " >&6; }
4095 if ${ac_cv_path_FGREP+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4099 then ac_cv_path_FGREP="$GREP -F"
4100 else
4101 if test -z "$FGREP"; then
4102 ac_path_FGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in fgrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4112 as_fn_executable_p "$ac_path_FGREP" || continue
4113 # Check for GNU ac_path_FGREP and select it if it is found.
4114 # Check for GNU $ac_path_FGREP
4115 case `"$ac_path_FGREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4118 *)
4119 ac_count=0
4120 $as_echo_n 0123456789 >"conftest.in"
4121 while :
4122 do
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'FGREP' >> "conftest.nl"
4127 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_FGREP="$ac_path_FGREP"
4133 ac_path_FGREP_max=$ac_count
4134 fi
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141 $ac_path_FGREP_found && break 3
4142 done
4143 done
4144 done
4145 IFS=$as_save_IFS
4146 if test -z "$ac_cv_path_FGREP"; then
4147 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 fi
4149 else
4150 ac_cv_path_FGREP=$FGREP
4151 fi
4152
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4156 $as_echo "$ac_cv_path_FGREP" >&6; }
4157 FGREP="$ac_cv_path_FGREP"
4158
4159
4160 test -z "$GREP" && GREP=grep
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180 # Check whether --with-gnu-ld was given.
4181 if test "${with_gnu_ld+set}" = set; then :
4182 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4183 else
4184 with_gnu_ld=no
4185 fi
4186
4187 ac_prog=ld
4188 if test yes = "$GCC"; then
4189 # Check if gcc -print-prog-name=ld gives a path.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4191 $as_echo_n "checking for ld used by $CC... " >&6; }
4192 case $host in
4193 *-*-mingw*)
4194 # gcc leaves a trailing carriage return, which upsets mingw
4195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4196 *)
4197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4198 esac
4199 case $ac_prog in
4200 # Accept absolute paths.
4201 [\\/]* | ?:[\\/]*)
4202 re_direlt='/[^/][^/]*/\.\./'
4203 # Canonicalize the pathname of ld
4204 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4205 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4206 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4207 done
4208 test -z "$LD" && LD=$ac_prog
4209 ;;
4210 "")
4211 # If it fails, then pretend we aren't using GCC.
4212 ac_prog=ld
4213 ;;
4214 *)
4215 # If it is relative, then search for the first ld in PATH.
4216 with_gnu_ld=unknown
4217 ;;
4218 esac
4219 elif test yes = "$with_gnu_ld"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4221 $as_echo_n "checking for GNU ld... " >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4224 $as_echo_n "checking for non-GNU ld... " >&6; }
4225 fi
4226 if ${lt_cv_path_LD+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -z "$LD"; then
4230 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4231 for ac_dir in $PATH; do
4232 IFS=$lt_save_ifs
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4235 lt_cv_path_LD=$ac_dir/$ac_prog
4236 # Check to see if the program is GNU ld. I'd rather use --version,
4237 # but apparently some variants of GNU ld only accept -v.
4238 # Break only if it was the GNU/non-GNU ld that we prefer.
4239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4240 *GNU* | *'with BFD'*)
4241 test no != "$with_gnu_ld" && break
4242 ;;
4243 *)
4244 test yes != "$with_gnu_ld" && break
4245 ;;
4246 esac
4247 fi
4248 done
4249 IFS=$lt_save_ifs
4250 else
4251 lt_cv_path_LD=$LD # Let the user override the test with a path.
4252 fi
4253 fi
4254
4255 LD=$lt_cv_path_LD
4256 if test -n "$LD"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4258 $as_echo "$LD" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4266 if ${lt_cv_prog_gnu_ld+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4270 case `$LD -v 2>&1 </dev/null` in
4271 *GNU* | *'with BFD'*)
4272 lt_cv_prog_gnu_ld=yes
4273 ;;
4274 *)
4275 lt_cv_prog_gnu_ld=no
4276 ;;
4277 esac
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4280 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4281 with_gnu_ld=$lt_cv_prog_gnu_ld
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4292 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4293 if ${lt_cv_path_NM+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$NM"; then
4297 # Let the user override the test.
4298 lt_cv_path_NM=$NM
4299 else
4300 lt_nm_to_check=${ac_tool_prefix}nm
4301 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4302 lt_nm_to_check="$lt_nm_to_check nm"
4303 fi
4304 for lt_tmp_nm in $lt_nm_to_check; do
4305 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4306 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4307 IFS=$lt_save_ifs
4308 test -z "$ac_dir" && ac_dir=.
4309 tmp_nm=$ac_dir/$lt_tmp_nm
4310 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4311 # Check to see if the nm accepts a BSD-compat flag.
4312 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4313 # nm: unknown option "B" ignored
4314 # Tru64's nm complains that /dev/null is an invalid object file
4315 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4316 case $build_os in
4317 mingw*) lt_bad_file=conftest.nm/nofile ;;
4318 *) lt_bad_file=/dev/null ;;
4319 esac
4320 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4321 *$lt_bad_file* | *'Invalid file or object type'*)
4322 lt_cv_path_NM="$tmp_nm -B"
4323 break 2
4324 ;;
4325 *)
4326 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4327 */dev/null*)
4328 lt_cv_path_NM="$tmp_nm -p"
4329 break 2
4330 ;;
4331 *)
4332 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4333 continue # so that we can try to find one that supports BSD flags
4334 ;;
4335 esac
4336 ;;
4337 esac
4338 fi
4339 done
4340 IFS=$lt_save_ifs
4341 done
4342 : ${lt_cv_path_NM=no}
4343 fi
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4346 $as_echo "$lt_cv_path_NM" >&6; }
4347 if test no != "$lt_cv_path_NM"; then
4348 NM=$lt_cv_path_NM
4349 else
4350 # Didn't find any BSD compatible name lister, look for dumpbin.
4351 if test -n "$DUMPBIN"; then :
4352 # Let the user override the test.
4353 else
4354 if test -n "$ac_tool_prefix"; then
4355 for ac_prog in dumpbin "link -dump"
4356 do
4357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_DUMPBIN+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$DUMPBIN"; then
4365 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 DUMPBIN=$ac_cv_prog_DUMPBIN
4385 if test -n "$DUMPBIN"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4387 $as_echo "$DUMPBIN" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394 test -n "$DUMPBIN" && break
4395 done
4396 fi
4397 if test -z "$DUMPBIN"; then
4398 ac_ct_DUMPBIN=$DUMPBIN
4399 for ac_prog in dumpbin "link -dump"
4400 do
4401 # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$ac_ct_DUMPBIN"; then
4409 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4429 if test -n "$ac_ct_DUMPBIN"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4431 $as_echo "$ac_ct_DUMPBIN" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438 test -n "$ac_ct_DUMPBIN" && break
4439 done
4440
4441 if test "x$ac_ct_DUMPBIN" = x; then
4442 DUMPBIN=":"
4443 else
4444 case $cross_compiling:$ac_tool_warned in
4445 yes:)
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4449 esac
4450 DUMPBIN=$ac_ct_DUMPBIN
4451 fi
4452 fi
4453
4454 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4455 *COFF*)
4456 DUMPBIN="$DUMPBIN -symbols -headers"
4457 ;;
4458 *)
4459 DUMPBIN=:
4460 ;;
4461 esac
4462 fi
4463
4464 if test : != "$DUMPBIN"; then
4465 NM=$DUMPBIN
4466 fi
4467 fi
4468 test -z "$NM" && NM=nm
4469
4470
4471
4472
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4476 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4477 if ${lt_cv_nm_interface+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 lt_cv_nm_interface="BSD nm"
4481 echo "int some_variable = 0;" > conftest.$ac_ext
4482 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4483 (eval "$ac_compile" 2>conftest.err)
4484 cat conftest.err >&5
4485 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4486 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4487 cat conftest.err >&5
4488 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4489 cat conftest.out >&5
4490 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4491 lt_cv_nm_interface="MS dumpbin"
4492 fi
4493 rm -f conftest*
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4496 $as_echo "$lt_cv_nm_interface" >&6; }
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4499 $as_echo_n "checking whether ln -s works... " >&6; }
4500 LN_S=$as_ln_s
4501 if test "$LN_S" = "ln -s"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4503 $as_echo "yes" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4506 $as_echo "no, using $LN_S" >&6; }
4507 fi
4508
4509 # find the maximum length of command line arguments
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4511 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4512 if ${lt_cv_sys_max_cmd_len+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 i=0
4516 teststring=ABCD
4517
4518 case $build_os in
4519 msdosdjgpp*)
4520 # On DJGPP, this test can blow up pretty badly due to problems in libc
4521 # (any single argument exceeding 2000 bytes causes a buffer overrun
4522 # during glob expansion). Even if it were fixed, the result of this
4523 # check would be larger than it should be.
4524 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4525 ;;
4526
4527 gnu*)
4528 # Under GNU Hurd, this test is not required because there is
4529 # no limit to the length of command line arguments.
4530 # Libtool will interpret -1 as no limit whatsoever
4531 lt_cv_sys_max_cmd_len=-1;
4532 ;;
4533
4534 cygwin* | mingw* | cegcc*)
4535 # On Win9x/ME, this test blows up -- it succeeds, but takes
4536 # about 5 minutes as the teststring grows exponentially.
4537 # Worse, since 9x/ME are not pre-emptively multitasking,
4538 # you end up with a "frozen" computer, even though with patience
4539 # the test eventually succeeds (with a max line length of 256k).
4540 # Instead, let's just punt: use the minimum linelength reported by
4541 # all of the supported platforms: 8192 (on NT/2K/XP).
4542 lt_cv_sys_max_cmd_len=8192;
4543 ;;
4544
4545 mint*)
4546 # On MiNT this can take a long time and run out of memory.
4547 lt_cv_sys_max_cmd_len=8192;
4548 ;;
4549
4550 amigaos*)
4551 # On AmigaOS with pdksh, this test takes hours, literally.
4552 # So we just punt and use a minimum line length of 8192.
4553 lt_cv_sys_max_cmd_len=8192;
4554 ;;
4555
4556 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4557 # This has been around since 386BSD, at least. Likely further.
4558 if test -x /sbin/sysctl; then
4559 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4560 elif test -x /usr/sbin/sysctl; then
4561 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4562 else
4563 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4564 fi
4565 # And add a safety zone
4566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4568 ;;
4569
4570 interix*)
4571 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4572 lt_cv_sys_max_cmd_len=196608
4573 ;;
4574
4575 os2*)
4576 # The test takes a long time on OS/2.
4577 lt_cv_sys_max_cmd_len=8192
4578 ;;
4579
4580 osf*)
4581 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4582 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4583 # nice to cause kernel panics so lets avoid the loop below.
4584 # First set a reasonable default.
4585 lt_cv_sys_max_cmd_len=16384
4586 #
4587 if test -x /sbin/sysconfig; then
4588 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4589 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4590 esac
4591 fi
4592 ;;
4593 sco3.2v5*)
4594 lt_cv_sys_max_cmd_len=102400
4595 ;;
4596 sysv5* | sco5v6* | sysv4.2uw2*)
4597 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4598 if test -n "$kargmax"; then
4599 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4600 else
4601 lt_cv_sys_max_cmd_len=32768
4602 fi
4603 ;;
4604 *)
4605 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4606 if test -n "$lt_cv_sys_max_cmd_len" && \
4607 test undefined != "$lt_cv_sys_max_cmd_len"; then
4608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4610 else
4611 # Make teststring a little bigger before we do anything with it.
4612 # a 1K string should be a reasonable start.
4613 for i in 1 2 3 4 5 6 7 8; do
4614 teststring=$teststring$teststring
4615 done
4616 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4617 # If test is not a shell built-in, we'll probably end up computing a
4618 # maximum length that is only half of the actual maximum length, but
4619 # we can't tell.
4620 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4621 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4622 test 17 != "$i" # 1/2 MB should be enough
4623 do
4624 i=`expr $i + 1`
4625 teststring=$teststring$teststring
4626 done
4627 # Only check the string length outside the loop.
4628 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4629 teststring=
4630 # Add a significant safety factor because C++ compilers can tack on
4631 # massive amounts of additional arguments before passing them to the
4632 # linker. It appears as though 1/2 is a usable value.
4633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4634 fi
4635 ;;
4636 esac
4637
4638 fi
4639
4640 if test -n "$lt_cv_sys_max_cmd_len"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4642 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4645 $as_echo "none" >&6; }
4646 fi
4647 max_cmd_len=$lt_cv_sys_max_cmd_len
4648
4649
4650
4651
4652
4653
4654 : ${CP="cp -f"}
4655 : ${MV="mv -f"}
4656 : ${RM="rm -f"}
4657
4658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4659 lt_unset=unset
4660 else
4661 lt_unset=false
4662 fi
4663
4664
4665
4666
4667
4668 # test EBCDIC or ASCII
4669 case `echo X|tr X '\101'` in
4670 A) # ASCII based system
4671 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4672 lt_SP2NL='tr \040 \012'
4673 lt_NL2SP='tr \015\012 \040\040'
4674 ;;
4675 *) # EBCDIC based system
4676 lt_SP2NL='tr \100 \n'
4677 lt_NL2SP='tr \r\n \100\100'
4678 ;;
4679 esac
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4690 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4691 if ${lt_cv_to_host_file_cmd+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 case $host in
4695 *-*-mingw* )
4696 case $build in
4697 *-*-mingw* ) # actually msys
4698 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4699 ;;
4700 *-*-cygwin* )
4701 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4702 ;;
4703 * ) # otherwise, assume *nix
4704 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4705 ;;
4706 esac
4707 ;;
4708 *-*-cygwin* )
4709 case $build in
4710 *-*-mingw* ) # actually msys
4711 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4712 ;;
4713 *-*-cygwin* )
4714 lt_cv_to_host_file_cmd=func_convert_file_noop
4715 ;;
4716 * ) # otherwise, assume *nix
4717 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4718 ;;
4719 esac
4720 ;;
4721 * ) # unhandled hosts (and "normal" native builds)
4722 lt_cv_to_host_file_cmd=func_convert_file_noop
4723 ;;
4724 esac
4725
4726 fi
4727
4728 to_host_file_cmd=$lt_cv_to_host_file_cmd
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4730 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4731
4732
4733
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4737 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4738 if ${lt_cv_to_tool_file_cmd+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 #assume ordinary cross tools, or native build.
4742 lt_cv_to_tool_file_cmd=func_convert_file_noop
4743 case $host in
4744 *-*-mingw* )
4745 case $build in
4746 *-*-mingw* ) # actually msys
4747 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4748 ;;
4749 esac
4750 ;;
4751 esac
4752
4753 fi
4754
4755 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4757 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4758
4759
4760
4761
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4764 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4765 if ${lt_cv_ld_reload_flag+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 lt_cv_ld_reload_flag='-r'
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4771 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4772 reload_flag=$lt_cv_ld_reload_flag
4773 case $reload_flag in
4774 "" | " "*) ;;
4775 *) reload_flag=" $reload_flag" ;;
4776 esac
4777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4778 case $host_os in
4779 cygwin* | mingw* | pw32* | cegcc*)
4780 if test yes != "$GCC"; then
4781 reload_cmds=false
4782 fi
4783 ;;
4784 darwin*)
4785 if test yes = "$GCC"; then
4786 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4787 else
4788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4789 fi
4790 ;;
4791 esac
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_OBJDUMP+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$OBJDUMP"; then
4810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 OBJDUMP=$ac_cv_prog_OBJDUMP
4830 if test -n "$OBJDUMP"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4832 $as_echo "$OBJDUMP" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838
4839 fi
4840 if test -z "$ac_cv_prog_OBJDUMP"; then
4841 ac_ct_OBJDUMP=$OBJDUMP
4842 # Extract the first word of "objdump", so it can be a program name with args.
4843 set dummy objdump; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$ac_ct_OBJDUMP"; then
4850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4870 if test -n "$ac_ct_OBJDUMP"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4872 $as_echo "$ac_ct_OBJDUMP" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878 if test "x$ac_ct_OBJDUMP" = x; then
4879 OBJDUMP="false"
4880 else
4881 case $cross_compiling:$ac_tool_warned in
4882 yes:)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4886 esac
4887 OBJDUMP=$ac_ct_OBJDUMP
4888 fi
4889 else
4890 OBJDUMP="$ac_cv_prog_OBJDUMP"
4891 fi
4892
4893 test -z "$OBJDUMP" && OBJDUMP=objdump
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4904 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4905 if ${lt_cv_deplibs_check_method+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 lt_cv_file_magic_cmd='$MAGIC_CMD'
4909 lt_cv_file_magic_test_file=
4910 lt_cv_deplibs_check_method='unknown'
4911 # Need to set the preceding variable on all platforms that support
4912 # interlibrary dependencies.
4913 # 'none' -- dependencies not supported.
4914 # 'unknown' -- same as none, but documents that we really don't know.
4915 # 'pass_all' -- all dependencies passed with no checks.
4916 # 'test_compile' -- check by making test program.
4917 # 'file_magic [[regex]]' -- check by looking for files in library path
4918 # that responds to the $file_magic_cmd with a given extended regex.
4919 # If you have 'file' or equivalent on your system and you're not sure
4920 # whether 'pass_all' will *always* work, you probably want this one.
4921
4922 case $host_os in
4923 aix[4-9]*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927 beos*)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930
4931 bsdi[45]*)
4932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4933 lt_cv_file_magic_cmd='/usr/bin/file -L'
4934 lt_cv_file_magic_test_file=/shlib/libc.so
4935 ;;
4936
4937 cygwin*)
4938 # func_win32_libid is a shell function defined in ltmain.sh
4939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4940 lt_cv_file_magic_cmd='func_win32_libid'
4941 ;;
4942
4943 mingw* | pw32*)
4944 # Base MSYS/MinGW do not provide the 'file' command needed by
4945 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4946 # unless we find 'file', for example because we are cross-compiling.
4947 if ( file / ) >/dev/null 2>&1; then
4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949 lt_cv_file_magic_cmd='func_win32_libid'
4950 else
4951 # Keep this pattern in sync with the one in func_win32_libid.
4952 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4953 lt_cv_file_magic_cmd='$OBJDUMP -f'
4954 fi
4955 ;;
4956
4957 cegcc*)
4958 # use the weaker test based on 'objdump'. See mingw*.
4959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4960 lt_cv_file_magic_cmd='$OBJDUMP -f'
4961 ;;
4962
4963 darwin* | rhapsody*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
4967 freebsd* | dragonfly*)
4968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4969 case $host_cpu in
4970 i*86 )
4971 # Not sure whether the presence of OpenBSD here was a mistake.
4972 # Let's accept both of them until this is cleared up.
4973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4974 lt_cv_file_magic_cmd=/usr/bin/file
4975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4976 ;;
4977 esac
4978 else
4979 lt_cv_deplibs_check_method=pass_all
4980 fi
4981 ;;
4982
4983 haiku*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
4986
4987 hpux10.20* | hpux11*)
4988 lt_cv_file_magic_cmd=/usr/bin/file
4989 case $host_cpu in
4990 ia64*)
4991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4993 ;;
4994 hppa*64*)
4995 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]'
4996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4997 ;;
4998 *)
4999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5001 ;;
5002 esac
5003 ;;
5004
5005 interix[3-9]*)
5006 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5008 ;;
5009
5010 irix5* | irix6* | nonstopux*)
5011 case $LD in
5012 *-32|*"-32 ") libmagic=32-bit;;
5013 *-n32|*"-n32 ") libmagic=N32;;
5014 *-64|*"-64 ") libmagic=64-bit;;
5015 *) libmagic=never-match;;
5016 esac
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020 # This must be glibc/ELF.
5021 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5022 lt_cv_deplibs_check_method=pass_all
5023 ;;
5024
5025 netbsd*)
5026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5028 else
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5030 fi
5031 ;;
5032
5033 newos6*)
5034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5035 lt_cv_file_magic_cmd=/usr/bin/file
5036 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5037 ;;
5038
5039 *nto* | *qnx*)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042
5043 openbsd* | bitrig*)
5044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5046 else
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5048 fi
5049 ;;
5050
5051 osf3* | osf4* | osf5*)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054
5055 rdos*)
5056 lt_cv_deplibs_check_method=pass_all
5057 ;;
5058
5059 solaris*)
5060 lt_cv_deplibs_check_method=pass_all
5061 ;;
5062
5063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066
5067 sysv4 | sysv4.3*)
5068 case $host_vendor in
5069 motorola)
5070 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]'
5071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5072 ;;
5073 ncr)
5074 lt_cv_deplibs_check_method=pass_all
5075 ;;
5076 sequent)
5077 lt_cv_file_magic_cmd='/bin/file'
5078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5079 ;;
5080 sni)
5081 lt_cv_file_magic_cmd='/bin/file'
5082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5083 lt_cv_file_magic_test_file=/lib/libc.so
5084 ;;
5085 siemens)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088 pc)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091 esac
5092 ;;
5093
5094 tpf*)
5095 lt_cv_deplibs_check_method=pass_all
5096 ;;
5097 os2*)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100 esac
5101
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5104 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5105
5106 file_magic_glob=
5107 want_nocaseglob=no
5108 if test "$build" = "$host"; then
5109 case $host_os in
5110 mingw* | pw32*)
5111 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5112 want_nocaseglob=yes
5113 else
5114 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5115 fi
5116 ;;
5117 esac
5118 fi
5119
5120 file_magic_cmd=$lt_cv_file_magic_cmd
5121 deplibs_check_method=$lt_cv_deplibs_check_method
5122 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_DLLTOOL+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$DLLTOOL"; then
5154 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 DLLTOOL=$ac_cv_prog_DLLTOOL
5174 if test -n "$DLLTOOL"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5176 $as_echo "$DLLTOOL" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 if test -z "$ac_cv_prog_DLLTOOL"; then
5185 ac_ct_DLLTOOL=$DLLTOOL
5186 # Extract the first word of "dlltool", so it can be a program name with args.
5187 set dummy dlltool; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_DLLTOOL"; then
5194 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5214 if test -n "$ac_ct_DLLTOOL"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5216 $as_echo "$ac_ct_DLLTOOL" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222 if test "x$ac_ct_DLLTOOL" = x; then
5223 DLLTOOL="false"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231 DLLTOOL=$ac_ct_DLLTOOL
5232 fi
5233 else
5234 DLLTOOL="$ac_cv_prog_DLLTOOL"
5235 fi
5236
5237 test -z "$DLLTOOL" && DLLTOOL=dlltool
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5249 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5250 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 lt_cv_sharedlib_from_linklib_cmd='unknown'
5254
5255 case $host_os in
5256 cygwin* | mingw* | pw32* | cegcc*)
5257 # two different shell functions defined in ltmain.sh;
5258 # decide which one to use based on capabilities of $DLLTOOL
5259 case `$DLLTOOL --help 2>&1` in
5260 *--identify-strict*)
5261 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5262 ;;
5263 *)
5264 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5265 ;;
5266 esac
5267 ;;
5268 *)
5269 # fallback: assume linklib IS sharedlib
5270 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5271 ;;
5272 esac
5273
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5276 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5277 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5278 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5279
5280
5281
5282
5283
5284
5285
5286
5287 if test -n "$ac_tool_prefix"; then
5288 for ac_prog in ar
5289 do
5290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_AR+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$AR"; then
5298 ac_cv_prog_AR="$AR" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311 done
5312 done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 AR=$ac_cv_prog_AR
5318 if test -n "$AR"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5320 $as_echo "$AR" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 test -n "$AR" && break
5328 done
5329 fi
5330 if test -z "$AR"; then
5331 ac_ct_AR=$AR
5332 for ac_prog in ar
5333 do
5334 # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$ac_ct_AR"; then
5342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_AR="$ac_prog"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5362 if test -n "$ac_ct_AR"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5364 $as_echo "$ac_ct_AR" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 test -n "$ac_ct_AR" && break
5372 done
5373
5374 if test "x$ac_ct_AR" = x; then
5375 AR="false"
5376 else
5377 case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383 AR=$ac_ct_AR
5384 fi
5385 fi
5386
5387 : ${AR=ar}
5388 : ${AR_FLAGS=cru}
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5401 $as_echo_n "checking for archiver @FILE support... " >&6; }
5402 if ${lt_cv_ar_at_file+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 lt_cv_ar_at_file=no
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408
5409 int
5410 main ()
5411 {
5412
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 echo conftest.$ac_objext > conftest.lst
5419 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5421 (eval $lt_ar_try) 2>&5
5422 ac_status=$?
5423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5424 test $ac_status = 0; }
5425 if test 0 -eq "$ac_status"; then
5426 # Ensure the archiver fails upon bogus file names.
5427 rm -f conftest.$ac_objext libconftest.a
5428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5429 (eval $lt_ar_try) 2>&5
5430 ac_status=$?
5431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5432 test $ac_status = 0; }
5433 if test 0 -ne "$ac_status"; then
5434 lt_cv_ar_at_file=@
5435 fi
5436 fi
5437 rm -f conftest.* libconftest.a
5438
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5444 $as_echo "$lt_cv_ar_at_file" >&6; }
5445
5446 if test no = "$lt_cv_ar_at_file"; then
5447 archiver_list_spec=
5448 else
5449 archiver_list_spec=$lt_cv_ar_at_file
5450 fi
5451
5452
5453
5454
5455
5456
5457
5458 if test -n "$ac_tool_prefix"; then
5459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5460 set dummy ${ac_tool_prefix}strip; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_STRIP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$STRIP"; then
5467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 STRIP=$ac_cv_prog_STRIP
5487 if test -n "$STRIP"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5489 $as_echo "$STRIP" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 fi
5497 if test -z "$ac_cv_prog_STRIP"; then
5498 ac_ct_STRIP=$STRIP
5499 # Extract the first word of "strip", so it can be a program name with args.
5500 set dummy strip; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$ac_ct_STRIP"; then
5507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_ac_ct_STRIP="strip"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5527 if test -n "$ac_ct_STRIP"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5529 $as_echo "$ac_ct_STRIP" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535 if test "x$ac_ct_STRIP" = x; then
5536 STRIP=":"
5537 else
5538 case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544 STRIP=$ac_ct_STRIP
5545 fi
5546 else
5547 STRIP="$ac_cv_prog_STRIP"
5548 fi
5549
5550 test -z "$STRIP" && STRIP=:
5551
5552
5553
5554
5555
5556
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$RANLIB"; then
5566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 RANLIB=$ac_cv_prog_RANLIB
5586 if test -n "$RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5588 $as_echo "$RANLIB" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595 fi
5596 if test -z "$ac_cv_prog_RANLIB"; then
5597 ac_ct_RANLIB=$RANLIB
5598 # Extract the first word of "ranlib", so it can be a program name with args.
5599 set dummy ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$ac_ct_RANLIB"; then
5606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_ac_ct_RANLIB="ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5626 if test -n "$ac_ct_RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5628 $as_echo "$ac_ct_RANLIB" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634 if test "x$ac_ct_RANLIB" = x; then
5635 RANLIB=":"
5636 else
5637 case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643 RANLIB=$ac_ct_RANLIB
5644 fi
5645 else
5646 RANLIB="$ac_cv_prog_RANLIB"
5647 fi
5648
5649 test -z "$RANLIB" && RANLIB=:
5650
5651
5652
5653
5654
5655
5656 # Determine commands to create old-style static archives.
5657 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5658 old_postinstall_cmds='chmod 644 $oldlib'
5659 old_postuninstall_cmds=
5660
5661 if test -n "$RANLIB"; then
5662 case $host_os in
5663 bitrig* | openbsd*)
5664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5665 ;;
5666 *)
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5668 ;;
5669 esac
5670 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5671 fi
5672
5673 case $host_os in
5674 darwin*)
5675 lock_old_archive_extraction=yes ;;
5676 *)
5677 lock_old_archive_extraction=no ;;
5678 esac
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 for ac_prog in gawk mawk nawk awk
5701 do
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_AWK+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$AWK"; then
5710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_AWK="$ac_prog"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 AWK=$ac_cv_prog_AWK
5730 if test -n "$AWK"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5732 $as_echo "$AWK" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738
5739 test -n "$AWK" && break
5740 done
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 # If no C compiler was specified, use CC.
5761 LTCC=${LTCC-"$CC"}
5762
5763 # If no C compiler flags were specified, use CFLAGS.
5764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5765
5766 # Allow CC to be a program name with arguments.
5767 compiler=$CC
5768
5769
5770 # Check for command to grab the raw symbol name followed by C symbol from nm.
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5772 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5773 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776
5777 # These are sane defaults that work on at least a few old systems.
5778 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5779
5780 # Character class describing NM global symbol codes.
5781 symcode='[BCDEGRST]'
5782
5783 # Regexp to match symbols that can be accessed directly from C.
5784 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5785
5786 # Define system-specific variables.
5787 case $host_os in
5788 aix*)
5789 symcode='[BCDT]'
5790 ;;
5791 cygwin* | mingw* | pw32* | cegcc*)
5792 symcode='[ABCDGISTW]'
5793 ;;
5794 hpux*)
5795 if test ia64 = "$host_cpu"; then
5796 symcode='[ABCDEGRST]'
5797 fi
5798 ;;
5799 irix* | nonstopux*)
5800 symcode='[BCDEGRST]'
5801 ;;
5802 osf*)
5803 symcode='[BCDEGQRST]'
5804 ;;
5805 solaris*)
5806 symcode='[BDRT]'
5807 ;;
5808 sco3.2v5*)
5809 symcode='[DT]'
5810 ;;
5811 sysv4.2uw2*)
5812 symcode='[DT]'
5813 ;;
5814 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5815 symcode='[ABDT]'
5816 ;;
5817 sysv4)
5818 symcode='[DFNSTU]'
5819 ;;
5820 esac
5821
5822 # If we're using GNU nm, then use its standard symbol codes.
5823 case `$NM -V 2>&1` in
5824 *GNU* | *'with BFD'*)
5825 symcode='[ABCDGIRSTW]' ;;
5826 esac
5827
5828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5829 # Gets list of data symbols to import.
5830 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5831 # Adjust the below global symbol transforms to fixup imported variables.
5832 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5833 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5834 lt_c_name_lib_hook="\
5835 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5836 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5837 else
5838 # Disable hooks by default.
5839 lt_cv_sys_global_symbol_to_import=
5840 lt_cdecl_hook=
5841 lt_c_name_hook=
5842 lt_c_name_lib_hook=
5843 fi
5844
5845 # Transform an extracted symbol line into a proper C declaration.
5846 # Some systems (esp. on ia64) link data and code symbols differently,
5847 # so use this general approach.
5848 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5849 $lt_cdecl_hook\
5850 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5851 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5852
5853 # Transform an extracted symbol line into symbol name and symbol address
5854 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5855 $lt_c_name_hook\
5856 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5857 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5858
5859 # Transform an extracted symbol line into symbol name with lib prefix and
5860 # symbol address.
5861 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5862 $lt_c_name_lib_hook\
5863 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5864 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5865 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5866
5867 # Handle CRLF in mingw tool chain
5868 opt_cr=
5869 case $build_os in
5870 mingw*)
5871 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5872 ;;
5873 esac
5874
5875 # Try without a prefix underscore, then with it.
5876 for ac_symprfx in "" "_"; do
5877
5878 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5879 symxfrm="\\1 $ac_symprfx\\2 \\2"
5880
5881 # Write the raw and C identifiers.
5882 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5883 # Fake it for dumpbin and say T for any non-static function,
5884 # D for any global variable and I for any imported variable.
5885 # Also find C++ and __fastcall symbols from MSVC++,
5886 # which start with @ or ?.
5887 lt_cv_sys_global_symbol_pipe="$AWK '"\
5888 " {last_section=section; section=\$ 3};"\
5889 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5890 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5891 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5892 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5893 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5894 " \$ 0!~/External *\|/{next};"\
5895 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5896 " {if(hide[section]) next};"\
5897 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5898 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5899 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5900 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5901 " ' prfx=^$ac_symprfx"
5902 else
5903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5904 fi
5905 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5906
5907 # Check to see that the pipe works correctly.
5908 pipe_works=no
5909
5910 rm -f conftest*
5911 cat > conftest.$ac_ext <<_LT_EOF
5912 #ifdef __cplusplus
5913 extern "C" {
5914 #endif
5915 char nm_test_var;
5916 void nm_test_func(void);
5917 void nm_test_func(void){}
5918 #ifdef __cplusplus
5919 }
5920 #endif
5921 int main(){nm_test_var='a';nm_test_func();return(0);}
5922 _LT_EOF
5923
5924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5925 (eval $ac_compile) 2>&5
5926 ac_status=$?
5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928 test $ac_status = 0; }; then
5929 # Now try to grab the symbols.
5930 nlist=conftest.nm
5931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5932 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5933 ac_status=$?
5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935 test $ac_status = 0; } && test -s "$nlist"; then
5936 # Try sorting and uniquifying the output.
5937 if sort "$nlist" | uniq > "$nlist"T; then
5938 mv -f "$nlist"T "$nlist"
5939 else
5940 rm -f "$nlist"T
5941 fi
5942
5943 # Make sure that we snagged all the symbols we need.
5944 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5945 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5946 cat <<_LT_EOF > conftest.$ac_ext
5947 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5948 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5949 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5950 relocations are performed -- see ld's documentation on pseudo-relocs. */
5951 # define LT_DLSYM_CONST
5952 #elif defined __osf__
5953 /* This system does not cope well with relocations in const data. */
5954 # define LT_DLSYM_CONST
5955 #else
5956 # define LT_DLSYM_CONST const
5957 #endif
5958
5959 #ifdef __cplusplus
5960 extern "C" {
5961 #endif
5962
5963 _LT_EOF
5964 # Now generate the symbol file.
5965 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5966
5967 cat <<_LT_EOF >> conftest.$ac_ext
5968
5969 /* The mapping between symbol names and symbols. */
5970 LT_DLSYM_CONST struct {
5971 const char *name;
5972 void *address;
5973 }
5974 lt__PROGRAM__LTX_preloaded_symbols[] =
5975 {
5976 { "@PROGRAM@", (void *) 0 },
5977 _LT_EOF
5978 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5979 cat <<\_LT_EOF >> conftest.$ac_ext
5980 {0, (void *) 0}
5981 };
5982
5983 /* This works around a problem in FreeBSD linker */
5984 #ifdef FREEBSD_WORKAROUND
5985 static const void *lt_preloaded_setup() {
5986 return lt__PROGRAM__LTX_preloaded_symbols;
5987 }
5988 #endif
5989
5990 #ifdef __cplusplus
5991 }
5992 #endif
5993 _LT_EOF
5994 # Now try linking the two files.
5995 mv conftest.$ac_objext conftstm.$ac_objext
5996 lt_globsym_save_LIBS=$LIBS
5997 lt_globsym_save_CFLAGS=$CFLAGS
5998 LIBS=conftstm.$ac_objext
5999 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6001 (eval $ac_link) 2>&5
6002 ac_status=$?
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6005 pipe_works=yes
6006 fi
6007 LIBS=$lt_globsym_save_LIBS
6008 CFLAGS=$lt_globsym_save_CFLAGS
6009 else
6010 echo "cannot find nm_test_func in $nlist" >&5
6011 fi
6012 else
6013 echo "cannot find nm_test_var in $nlist" >&5
6014 fi
6015 else
6016 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6017 fi
6018 else
6019 echo "$progname: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 fi
6022 rm -rf conftest* conftst*
6023
6024 # Do not use the global_symbol_pipe unless it works.
6025 if test yes = "$pipe_works"; then
6026 break
6027 else
6028 lt_cv_sys_global_symbol_pipe=
6029 fi
6030 done
6031
6032 fi
6033
6034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6035 lt_cv_sys_global_symbol_to_cdecl=
6036 fi
6037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6039 $as_echo "failed" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6042 $as_echo "ok" >&6; }
6043 fi
6044
6045 # Response file support.
6046 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6047 nm_file_list_spec='@'
6048 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6049 nm_file_list_spec='@'
6050 fi
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6089 $as_echo_n "checking for sysroot... " >&6; }
6090
6091 # Check whether --with-sysroot was given.
6092 if test "${with_sysroot+set}" = set; then :
6093 withval=$with_sysroot;
6094 else
6095 with_sysroot=no
6096 fi
6097
6098
6099 lt_sysroot=
6100 case $with_sysroot in #(
6101 yes)
6102 if test yes = "$GCC"; then
6103 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6104 fi
6105 ;; #(
6106 /*)
6107 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6108 ;; #(
6109 no|'')
6110 ;; #(
6111 *)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6113 $as_echo "$with_sysroot" >&6; }
6114 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6115 ;;
6116 esac
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6119 $as_echo "${lt_sysroot:-no}" >&6; }
6120
6121
6122
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6126 $as_echo_n "checking for a working dd... " >&6; }
6127 if ${ac_cv_path_lt_DD+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 printf 0123456789abcdef0123456789abcdef >conftest.i
6131 cat conftest.i conftest.i >conftest2.i
6132 : ${lt_DD:=$DD}
6133 if test -z "$lt_DD"; then
6134 ac_path_lt_DD_found=false
6135 # Loop through the user's path and test for each of PROGNAME-LIST
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_prog in dd; do
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6144 as_fn_executable_p "$ac_path_lt_DD" || continue
6145 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6146 cmp -s conftest.i conftest.out \
6147 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6148 fi
6149 $ac_path_lt_DD_found && break 3
6150 done
6151 done
6152 done
6153 IFS=$as_save_IFS
6154 if test -z "$ac_cv_path_lt_DD"; then
6155 :
6156 fi
6157 else
6158 ac_cv_path_lt_DD=$lt_DD
6159 fi
6160
6161 rm -f conftest.i conftest2.i conftest.out
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6164 $as_echo "$ac_cv_path_lt_DD" >&6; }
6165
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6168 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6169 if ${lt_cv_truncate_bin+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 printf 0123456789abcdef0123456789abcdef >conftest.i
6173 cat conftest.i conftest.i >conftest2.i
6174 lt_cv_truncate_bin=
6175 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6176 cmp -s conftest.i conftest.out \
6177 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6178 fi
6179 rm -f conftest.i conftest2.i conftest.out
6180 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6183 $as_echo "$lt_cv_truncate_bin" >&6; }
6184
6185
6186
6187
6188
6189
6190
6191 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6192 func_cc_basename ()
6193 {
6194 for cc_temp in $*""; do
6195 case $cc_temp in
6196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6198 \-*) ;;
6199 *) break;;
6200 esac
6201 done
6202 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6203 }
6204
6205 # Check whether --enable-libtool-lock was given.
6206 if test "${enable_libtool_lock+set}" = set; then :
6207 enableval=$enable_libtool_lock;
6208 fi
6209
6210 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6211
6212 # Some flags need to be propagated to the compiler or linker for good
6213 # libtool support.
6214 case $host in
6215 ia64-*-hpux*)
6216 # Find out what ABI is being produced by ac_compile, and set mode
6217 # options accordingly.
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
6221 ac_status=$?
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; }; then
6224 case `/usr/bin/file conftest.$ac_objext` in
6225 *ELF-32*)
6226 HPUX_IA64_MODE=32
6227 ;;
6228 *ELF-64*)
6229 HPUX_IA64_MODE=64
6230 ;;
6231 esac
6232 fi
6233 rm -rf conftest*
6234 ;;
6235 *-*-irix6*)
6236 # Find out what ABI is being produced by ac_compile, and set linker
6237 # options accordingly.
6238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 if test yes = "$lt_cv_prog_gnu_ld"; then
6245 case `/usr/bin/file conftest.$ac_objext` in
6246 *32-bit*)
6247 LD="${LD-ld} -melf32bsmip"
6248 ;;
6249 *N32*)
6250 LD="${LD-ld} -melf32bmipn32"
6251 ;;
6252 *64-bit*)
6253 LD="${LD-ld} -melf64bmip"
6254 ;;
6255 esac
6256 else
6257 case `/usr/bin/file conftest.$ac_objext` in
6258 *32-bit*)
6259 LD="${LD-ld} -32"
6260 ;;
6261 *N32*)
6262 LD="${LD-ld} -n32"
6263 ;;
6264 *64-bit*)
6265 LD="${LD-ld} -64"
6266 ;;
6267 esac
6268 fi
6269 fi
6270 rm -rf conftest*
6271 ;;
6272
6273 mips64*-*linux*)
6274 # Find out what ABI is being produced by ac_compile, and set linker
6275 # options accordingly.
6276 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278 (eval $ac_compile) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }; then
6282 emul=elf
6283 case `/usr/bin/file conftest.$ac_objext` in
6284 *32-bit*)
6285 emul="${emul}32"
6286 ;;
6287 *64-bit*)
6288 emul="${emul}64"
6289 ;;
6290 esac
6291 case `/usr/bin/file conftest.$ac_objext` in
6292 *MSB*)
6293 emul="${emul}btsmip"
6294 ;;
6295 *LSB*)
6296 emul="${emul}ltsmip"
6297 ;;
6298 esac
6299 case `/usr/bin/file conftest.$ac_objext` in
6300 *N32*)
6301 emul="${emul}n32"
6302 ;;
6303 esac
6304 LD="${LD-ld} -m $emul"
6305 fi
6306 rm -rf conftest*
6307 ;;
6308
6309 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6310 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6311 # Find out what ABI is being produced by ac_compile, and set linker
6312 # options accordingly. Note that the listed cases only cover the
6313 # situations where additional linker options are needed (such as when
6314 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6315 # vice versa); the common cases where no linker options are needed do
6316 # not appear in the list.
6317 echo 'int i;' > conftest.$ac_ext
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 case `/usr/bin/file conftest.o` in
6324 *32-bit*)
6325 case $host in
6326 x86_64-*kfreebsd*-gnu)
6327 LD="${LD-ld} -m elf_i386_fbsd"
6328 ;;
6329 x86_64-*linux*)
6330 case `/usr/bin/file conftest.o` in
6331 *x86-64*)
6332 LD="${LD-ld} -m elf32_x86_64"
6333 ;;
6334 *)
6335 LD="${LD-ld} -m elf_i386"
6336 ;;
6337 esac
6338 ;;
6339 powerpc64le-*linux*)
6340 LD="${LD-ld} -m elf32lppclinux"
6341 ;;
6342 powerpc64-*linux*)
6343 LD="${LD-ld} -m elf32ppclinux"
6344 ;;
6345 s390x-*linux*)
6346 LD="${LD-ld} -m elf_s390"
6347 ;;
6348 sparc64-*linux*)
6349 LD="${LD-ld} -m elf32_sparc"
6350 ;;
6351 esac
6352 ;;
6353 *64-bit*)
6354 case $host in
6355 x86_64-*kfreebsd*-gnu)
6356 LD="${LD-ld} -m elf_x86_64_fbsd"
6357 ;;
6358 x86_64-*linux*)
6359 LD="${LD-ld} -m elf_x86_64"
6360 ;;
6361 powerpcle-*linux*)
6362 LD="${LD-ld} -m elf64lppc"
6363 ;;
6364 powerpc-*linux*)
6365 LD="${LD-ld} -m elf64ppc"
6366 ;;
6367 s390*-*linux*|s390*-*tpf*)
6368 LD="${LD-ld} -m elf64_s390"
6369 ;;
6370 sparc*-*linux*)
6371 LD="${LD-ld} -m elf64_sparc"
6372 ;;
6373 esac
6374 ;;
6375 esac
6376 fi
6377 rm -rf conftest*
6378 ;;
6379
6380 *-*-sco3.2v5*)
6381 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6382 SAVE_CFLAGS=$CFLAGS
6383 CFLAGS="$CFLAGS -belf"
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6385 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6386 if ${lt_cv_cc_needs_belf+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397
6398 int
6399 main ()
6400 {
6401
6402 ;
6403 return 0;
6404 }
6405 _ACEOF
6406 if ac_fn_c_try_link "$LINENO"; then :
6407 lt_cv_cc_needs_belf=yes
6408 else
6409 lt_cv_cc_needs_belf=no
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext \
6412 conftest$ac_exeext conftest.$ac_ext
6413 ac_ext=c
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6421 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6422 if test yes != "$lt_cv_cc_needs_belf"; then
6423 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6424 CFLAGS=$SAVE_CFLAGS
6425 fi
6426 ;;
6427 *-*solaris*)
6428 # Find out what ABI is being produced by ac_compile, and set linker
6429 # options accordingly.
6430 echo 'int i;' > conftest.$ac_ext
6431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6432 (eval $ac_compile) 2>&5
6433 ac_status=$?
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435 test $ac_status = 0; }; then
6436 case `/usr/bin/file conftest.o` in
6437 *64-bit*)
6438 case $lt_cv_prog_gnu_ld in
6439 yes*)
6440 case $host in
6441 i?86-*-solaris*|x86_64-*-solaris*)
6442 LD="${LD-ld} -m elf_x86_64"
6443 ;;
6444 sparc*-*-solaris*)
6445 LD="${LD-ld} -m elf64_sparc"
6446 ;;
6447 esac
6448 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6449 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6450 LD=${LD-ld}_sol2
6451 fi
6452 ;;
6453 *)
6454 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6455 LD="${LD-ld} -64"
6456 fi
6457 ;;
6458 esac
6459 ;;
6460 esac
6461 fi
6462 rm -rf conftest*
6463 ;;
6464 esac
6465
6466 need_locks=$enable_libtool_lock
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$MANIFEST_TOOL"; then
6477 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
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_MANIFEST_TOOL="${ac_tool_prefix}mt"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6497 if test -n "$MANIFEST_TOOL"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6499 $as_echo "$MANIFEST_TOOL" >&6; }
6500 else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6508 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6509 # Extract the first word of "mt", so it can be a program name with args.
6510 set dummy mt; 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_MANIFEST_TOOL+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_MANIFEST_TOOL"; then
6517 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
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_MANIFEST_TOOL="mt"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6537 if test -n "$ac_ct_MANIFEST_TOOL"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6539 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6546 MANIFEST_TOOL=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
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 ;;
6553 esac
6554 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6555 fi
6556 else
6557 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6558 fi
6559
6560 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6562 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6563 if ${lt_cv_path_mainfest_tool+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 lt_cv_path_mainfest_tool=no
6567 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6568 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6569 cat conftest.err >&5
6570 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6571 lt_cv_path_mainfest_tool=yes
6572 fi
6573 rm -f conftest*
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6576 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6577 if test yes != "$lt_cv_path_mainfest_tool"; then
6578 MANIFEST_TOOL=:
6579 fi
6580
6581
6582
6583
6584
6585
6586 case $host_os in
6587 rhapsody* | darwin*)
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6590 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$DSYMUTIL"; then
6597 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6617 if test -n "$DSYMUTIL"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6619 $as_echo "$DSYMUTIL" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625
6626 fi
6627 if test -z "$ac_cv_prog_DSYMUTIL"; then
6628 ac_ct_DSYMUTIL=$DSYMUTIL
6629 # Extract the first word of "dsymutil", so it can be a program name with args.
6630 set dummy dsymutil; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$ac_ct_DSYMUTIL"; then
6637 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6657 if test -n "$ac_ct_DSYMUTIL"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6659 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665 if test "x$ac_ct_DSYMUTIL" = x; then
6666 DSYMUTIL=":"
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674 DSYMUTIL=$ac_ct_DSYMUTIL
6675 fi
6676 else
6677 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6678 fi
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_NMEDIT+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 if test -n "$NMEDIT"; then
6689 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 NMEDIT=$ac_cv_prog_NMEDIT
6709 if test -n "$NMEDIT"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6711 $as_echo "$NMEDIT" >&6; }
6712 else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718 fi
6719 if test -z "$ac_cv_prog_NMEDIT"; then
6720 ac_ct_NMEDIT=$NMEDIT
6721 # Extract the first word of "nmedit", so it can be a program name with args.
6722 set dummy nmedit; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$ac_ct_NMEDIT"; then
6729 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6749 if test -n "$ac_ct_NMEDIT"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6751 $as_echo "$ac_ct_NMEDIT" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757 if test "x$ac_ct_NMEDIT" = x; then
6758 NMEDIT=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 NMEDIT=$ac_ct_NMEDIT
6767 fi
6768 else
6769 NMEDIT="$ac_cv_prog_NMEDIT"
6770 fi
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_LIPO+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$LIPO"; then
6781 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 LIPO=$ac_cv_prog_LIPO
6801 if test -n "$LIPO"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6803 $as_echo "$LIPO" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_LIPO"; then
6812 ac_ct_LIPO=$LIPO
6813 # Extract the first word of "lipo", so it can be a program name with args.
6814 set dummy lipo; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$ac_ct_LIPO"; then
6821 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_LIPO="lipo"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6841 if test -n "$ac_ct_LIPO"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6843 $as_echo "$ac_ct_LIPO" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_LIPO" = x; then
6850 LIPO=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 LIPO=$ac_ct_LIPO
6859 fi
6860 else
6861 LIPO="$ac_cv_prog_LIPO"
6862 fi
6863
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}otool; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_OTOOL+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$OTOOL"; then
6873 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 OTOOL=$ac_cv_prog_OTOOL
6893 if test -n "$OTOOL"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6895 $as_echo "$OTOOL" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_OTOOL"; then
6904 ac_ct_OTOOL=$OTOOL
6905 # Extract the first word of "otool", so it can be a program name with args.
6906 set dummy otool; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$ac_ct_OTOOL"; then
6913 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_OTOOL="otool"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6933 if test -n "$ac_ct_OTOOL"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6935 $as_echo "$ac_ct_OTOOL" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941 if test "x$ac_ct_OTOOL" = x; then
6942 OTOOL=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950 OTOOL=$ac_ct_OTOOL
6951 fi
6952 else
6953 OTOOL="$ac_cv_prog_OTOOL"
6954 fi
6955
6956 if test -n "$ac_tool_prefix"; then
6957 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6958 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_OTOOL64+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$OTOOL64"; then
6965 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 OTOOL64=$ac_cv_prog_OTOOL64
6985 if test -n "$OTOOL64"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6987 $as_echo "$OTOOL64" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993
6994 fi
6995 if test -z "$ac_cv_prog_OTOOL64"; then
6996 ac_ct_OTOOL64=$OTOOL64
6997 # Extract the first word of "otool64", so it can be a program name with args.
6998 set dummy otool64; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 if test -n "$ac_ct_OTOOL64"; then
7005 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014 ac_cv_prog_ac_ct_OTOOL64="otool64"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018 done
7019 done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7025 if test -n "$ac_ct_OTOOL64"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7027 $as_echo "$ac_ct_OTOOL64" >&6; }
7028 else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033 if test "x$ac_ct_OTOOL64" = x; then
7034 OTOOL64=":"
7035 else
7036 case $cross_compiling:$ac_tool_warned in
7037 yes:)
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042 OTOOL64=$ac_ct_OTOOL64
7043 fi
7044 else
7045 OTOOL64="$ac_cv_prog_OTOOL64"
7046 fi
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7075 $as_echo_n "checking for -single_module linker flag... " >&6; }
7076 if ${lt_cv_apple_cc_single_mod+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 lt_cv_apple_cc_single_mod=no
7080 if test -z "$LT_MULTI_MODULE"; then
7081 # By default we will add the -single_module flag. You can override
7082 # by either setting the environment variable LT_MULTI_MODULE
7083 # non-empty at configure time, or by adding -multi_module to the
7084 # link flags.
7085 rm -rf libconftest.dylib*
7086 echo "int foo(void){return 1;}" > conftest.c
7087 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7088 -dynamiclib -Wl,-single_module conftest.c" >&5
7089 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7090 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7091 _lt_result=$?
7092 # If there is a non-empty error log, and "single_module"
7093 # appears in it, assume the flag caused a linker warning
7094 if test -s conftest.err && $GREP single_module conftest.err; then
7095 cat conftest.err >&5
7096 # Otherwise, if the output was created with a 0 exit code from
7097 # the compiler, it worked.
7098 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7099 lt_cv_apple_cc_single_mod=yes
7100 else
7101 cat conftest.err >&5
7102 fi
7103 rm -rf libconftest.dylib*
7104 rm -f conftest.*
7105 fi
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7108 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7109
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7111 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7112 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 lt_cv_ld_exported_symbols_list=no
7116 save_LDFLAGS=$LDFLAGS
7117 echo "_main" > conftest.sym
7118 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121
7122 int
7123 main ()
7124 {
7125
7126 ;
7127 return 0;
7128 }
7129 _ACEOF
7130 if ac_fn_c_try_link "$LINENO"; then :
7131 lt_cv_ld_exported_symbols_list=yes
7132 else
7133 lt_cv_ld_exported_symbols_list=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7137 LDFLAGS=$save_LDFLAGS
7138
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7141 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7142
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7144 $as_echo_n "checking for -force_load linker flag... " >&6; }
7145 if ${lt_cv_ld_force_load+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 lt_cv_ld_force_load=no
7149 cat > conftest.c << _LT_EOF
7150 int forced_loaded() { return 2;}
7151 _LT_EOF
7152 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7153 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7154 echo "$AR cru libconftest.a conftest.o" >&5
7155 $AR cru libconftest.a conftest.o 2>&5
7156 echo "$RANLIB libconftest.a" >&5
7157 $RANLIB libconftest.a 2>&5
7158 cat > conftest.c << _LT_EOF
7159 int main() { return 0;}
7160 _LT_EOF
7161 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7162 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7163 _lt_result=$?
7164 if test -s conftest.err && $GREP force_load conftest.err; then
7165 cat conftest.err >&5
7166 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7167 lt_cv_ld_force_load=yes
7168 else
7169 cat conftest.err >&5
7170 fi
7171 rm -f conftest.err libconftest.a conftest conftest.c
7172 rm -rf conftest.dSYM
7173
7174 fi
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7176 $as_echo "$lt_cv_ld_force_load" >&6; }
7177 case $host_os in
7178 rhapsody* | darwin1.[012])
7179 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7180 darwin1.*)
7181 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7182 darwin*) # darwin 5.x on
7183 # if running on 10.5 or later, the deployment target defaults
7184 # to the OS version, if on x86, and 10.4, the deployment
7185 # target defaults to 10.4. Don't you love it?
7186 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7187 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7188 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7189 10.[012][,.]*)
7190 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7191 10.*)
7192 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7193 esac
7194 ;;
7195 esac
7196 if test yes = "$lt_cv_apple_cc_single_mod"; then
7197 _lt_dar_single_mod='$single_module'
7198 fi
7199 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7200 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7201 else
7202 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7203 fi
7204 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7205 _lt_dsymutil='~$DSYMUTIL $lib || :'
7206 else
7207 _lt_dsymutil=
7208 fi
7209 ;;
7210 esac
7211
7212 # func_munge_path_list VARIABLE PATH
7213 # -----------------------------------
7214 # VARIABLE is name of variable containing _space_ separated list of
7215 # directories to be munged by the contents of PATH, which is string
7216 # having a format:
7217 # "DIR[:DIR]:"
7218 # string "DIR[ DIR]" will be prepended to VARIABLE
7219 # ":DIR[:DIR]"
7220 # string "DIR[ DIR]" will be appended to VARIABLE
7221 # "DIRP[:DIRP]::[DIRA:]DIRA"
7222 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7223 # "DIRA[ DIRA]" will be appended to VARIABLE
7224 # "DIR[:DIR]"
7225 # VARIABLE will be replaced by "DIR[ DIR]"
7226 func_munge_path_list ()
7227 {
7228 case x$2 in
7229 x)
7230 ;;
7231 *:)
7232 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7233 ;;
7234 x:*)
7235 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7236 ;;
7237 *::*)
7238 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7239 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7240 ;;
7241 *)
7242 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7243 ;;
7244 esac
7245 }
7246
7247 ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7253 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7254 # On Suns, sometimes $CPP names a directory.
7255 if test -n "$CPP" && test -d "$CPP"; then
7256 CPP=
7257 fi
7258 if test -z "$CPP"; then
7259 if ${ac_cv_prog_CPP+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 # Double quotes because CPP needs to be expanded
7263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7264 do
7265 ac_preproc_ok=false
7266 for ac_c_preproc_warn_flag in '' yes
7267 do
7268 # Use a header file that comes with gcc, so configuring glibc
7269 # with a fresh cross-compiler works.
7270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271 # <limits.h> exists even on freestanding compilers.
7272 # On the NeXT, cc -E runs the code through the compiler's parser,
7273 # not just through cpp. "Syntax error" is here to catch this case.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #ifdef __STDC__
7277 # include <limits.h>
7278 #else
7279 # include <assert.h>
7280 #endif
7281 Syntax error
7282 _ACEOF
7283 if ac_fn_c_try_cpp "$LINENO"; then :
7284
7285 else
7286 # Broken: fails on valid input.
7287 continue
7288 fi
7289 rm -f conftest.err conftest.i conftest.$ac_ext
7290
7291 # OK, works on sane cases. Now check whether nonexistent headers
7292 # can be detected and how.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 #include <ac_nonexistent.h>
7296 _ACEOF
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7298 # Broken: success on invalid input.
7299 continue
7300 else
7301 # Passes both tests.
7302 ac_preproc_ok=:
7303 break
7304 fi
7305 rm -f conftest.err conftest.i conftest.$ac_ext
7306
7307 done
7308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309 rm -f conftest.i conftest.err conftest.$ac_ext
7310 if $ac_preproc_ok; then :
7311 break
7312 fi
7313
7314 done
7315 ac_cv_prog_CPP=$CPP
7316
7317 fi
7318 CPP=$ac_cv_prog_CPP
7319 else
7320 ac_cv_prog_CPP=$CPP
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7323 $as_echo "$CPP" >&6; }
7324 ac_preproc_ok=false
7325 for ac_c_preproc_warn_flag in '' yes
7326 do
7327 # Use a header file that comes with gcc, so configuring glibc
7328 # with a fresh cross-compiler works.
7329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7330 # <limits.h> exists even on freestanding compilers.
7331 # On the NeXT, cc -E runs the code through the compiler's parser,
7332 # not just through cpp. "Syntax error" is here to catch this case.
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7340 Syntax error
7341 _ACEOF
7342 if ac_fn_c_try_cpp "$LINENO"; then :
7343
7344 else
7345 # Broken: fails on valid input.
7346 continue
7347 fi
7348 rm -f conftest.err conftest.i conftest.$ac_ext
7349
7350 # OK, works on sane cases. Now check whether nonexistent headers
7351 # can be detected and how.
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 #include <ac_nonexistent.h>
7355 _ACEOF
7356 if ac_fn_c_try_cpp "$LINENO"; then :
7357 # Broken: success on invalid input.
7358 continue
7359 else
7360 # Passes both tests.
7361 ac_preproc_ok=:
7362 break
7363 fi
7364 rm -f conftest.err conftest.i conftest.$ac_ext
7365
7366 done
7367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7368 rm -f conftest.i conftest.err conftest.$ac_ext
7369 if $ac_preproc_ok; then :
7370
7371 else
7372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7374 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7375 See \`config.log' for more details" "$LINENO" 5; }
7376 fi
7377
7378 ac_ext=c
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7386 $as_echo_n "checking for ANSI C header files... " >&6; }
7387 if ${ac_cv_header_stdc+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <stdlib.h>
7393 #include <stdarg.h>
7394 #include <string.h>
7395 #include <float.h>
7396
7397 int
7398 main ()
7399 {
7400
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_header_stdc=yes
7407 else
7408 ac_cv_header_stdc=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411
7412 if test $ac_cv_header_stdc = yes; then
7413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 #include <string.h>
7417
7418 _ACEOF
7419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7420 $EGREP "memchr" >/dev/null 2>&1; then :
7421
7422 else
7423 ac_cv_header_stdc=no
7424 fi
7425 rm -f conftest*
7426
7427 fi
7428
7429 if test $ac_cv_header_stdc = yes; then
7430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <stdlib.h>
7434
7435 _ACEOF
7436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437 $EGREP "free" >/dev/null 2>&1; then :
7438
7439 else
7440 ac_cv_header_stdc=no
7441 fi
7442 rm -f conftest*
7443
7444 fi
7445
7446 if test $ac_cv_header_stdc = yes; then
7447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7448 if test "$cross_compiling" = yes; then :
7449 :
7450 else
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <ctype.h>
7454 #include <stdlib.h>
7455 #if ((' ' & 0x0FF) == 0x020)
7456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7458 #else
7459 # define ISLOWER(c) \
7460 (('a' <= (c) && (c) <= 'i') \
7461 || ('j' <= (c) && (c) <= 'r') \
7462 || ('s' <= (c) && (c) <= 'z'))
7463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7464 #endif
7465
7466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7467 int
7468 main ()
7469 {
7470 int i;
7471 for (i = 0; i < 256; i++)
7472 if (XOR (islower (i), ISLOWER (i))
7473 || toupper (i) != TOUPPER (i))
7474 return 2;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_run "$LINENO"; then :
7479
7480 else
7481 ac_cv_header_stdc=no
7482 fi
7483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7484 conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 fi
7486
7487 fi
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7490 $as_echo "$ac_cv_header_stdc" >&6; }
7491 if test $ac_cv_header_stdc = yes; then
7492
7493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7494
7495 fi
7496
7497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7499 inttypes.h stdint.h unistd.h
7500 do :
7501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7503 "
7504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7505 cat >>confdefs.h <<_ACEOF
7506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 _ACEOF
7508
7509 fi
7510
7511 done
7512
7513
7514 for ac_header in dlfcn.h
7515 do :
7516 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7517 "
7518 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7519 cat >>confdefs.h <<_ACEOF
7520 #define HAVE_DLFCN_H 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528
7529
7530
7531 # Set options
7532
7533
7534
7535 enable_dlopen=no
7536
7537
7538 enable_win32_dll=no
7539
7540
7541 # Check whether --enable-shared was given.
7542 if test "${enable_shared+set}" = set; then :
7543 enableval=$enable_shared; p=${PACKAGE-default}
7544 case $enableval in
7545 yes) enable_shared=yes ;;
7546 no) enable_shared=no ;;
7547 *)
7548 enable_shared=no
7549 # Look at the argument we got. We use all the common list separators.
7550 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7551 for pkg in $enableval; do
7552 IFS=$lt_save_ifs
7553 if test "X$pkg" = "X$p"; then
7554 enable_shared=yes
7555 fi
7556 done
7557 IFS=$lt_save_ifs
7558 ;;
7559 esac
7560 else
7561 enable_shared=yes
7562 fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 # Check whether --enable-static was given.
7573 if test "${enable_static+set}" = set; then :
7574 enableval=$enable_static; p=${PACKAGE-default}
7575 case $enableval in
7576 yes) enable_static=yes ;;
7577 no) enable_static=no ;;
7578 *)
7579 enable_static=no
7580 # Look at the argument we got. We use all the common list separators.
7581 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7582 for pkg in $enableval; do
7583 IFS=$lt_save_ifs
7584 if test "X$pkg" = "X$p"; then
7585 enable_static=yes
7586 fi
7587 done
7588 IFS=$lt_save_ifs
7589 ;;
7590 esac
7591 else
7592 enable_static=yes
7593 fi
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 # Check whether --with-pic was given.
7605 if test "${with_pic+set}" = set; then :
7606 withval=$with_pic; lt_p=${PACKAGE-default}
7607 case $withval in
7608 yes|no) pic_mode=$withval ;;
7609 *)
7610 pic_mode=default
7611 # Look at the argument we got. We use all the common list separators.
7612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7613 for lt_pkg in $withval; do
7614 IFS=$lt_save_ifs
7615 if test "X$lt_pkg" = "X$lt_p"; then
7616 pic_mode=yes
7617 fi
7618 done
7619 IFS=$lt_save_ifs
7620 ;;
7621 esac
7622 else
7623 pic_mode=default
7624 fi
7625
7626
7627
7628
7629
7630
7631
7632
7633 # Check whether --enable-fast-install was given.
7634 if test "${enable_fast_install+set}" = set; then :
7635 enableval=$enable_fast_install; p=${PACKAGE-default}
7636 case $enableval in
7637 yes) enable_fast_install=yes ;;
7638 no) enable_fast_install=no ;;
7639 *)
7640 enable_fast_install=no
7641 # Look at the argument we got. We use all the common list separators.
7642 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7643 for pkg in $enableval; do
7644 IFS=$lt_save_ifs
7645 if test "X$pkg" = "X$p"; then
7646 enable_fast_install=yes
7647 fi
7648 done
7649 IFS=$lt_save_ifs
7650 ;;
7651 esac
7652 else
7653 enable_fast_install=yes
7654 fi
7655
7656
7657
7658
7659
7660
7661
7662
7663 shared_archive_member_spec=
7664 case $host,$enable_shared in
7665 power*-*-aix[5-9]*,yes)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7667 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7668
7669 # Check whether --with-aix-soname was given.
7670 if test "${with_aix_soname+set}" = set; then :
7671 withval=$with_aix_soname; case $withval in
7672 aix|svr4|both)
7673 ;;
7674 *)
7675 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7676 ;;
7677 esac
7678 lt_cv_with_aix_soname=$with_aix_soname
7679 else
7680 if ${lt_cv_with_aix_soname+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 lt_cv_with_aix_soname=aix
7684 fi
7685
7686 with_aix_soname=$lt_cv_with_aix_soname
7687 fi
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7690 $as_echo "$with_aix_soname" >&6; }
7691 if test aix != "$with_aix_soname"; then
7692 # For the AIX way of multilib, we name the shared archive member
7693 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7694 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7695 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7696 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7697 if test 64 = "${OBJECT_MODE-32}"; then
7698 shared_archive_member_spec=shr_64
7699 else
7700 shared_archive_member_spec=shr
7701 fi
7702 fi
7703 ;;
7704 *)
7705 with_aix_soname=aix
7706 ;;
7707 esac
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718 # This can be used to rebuild libtool when needed
7719 LIBTOOL_DEPS=$ltmain
7720
7721 # Always use our own libtool.
7722 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 test -z "$LN_S" && LN_S="ln -s"
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 if test -n "${ZSH_VERSION+set}"; then
7769 setopt NO_GLOB_SUBST
7770 fi
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7773 $as_echo_n "checking for objdir... " >&6; }
7774 if ${lt_cv_objdir+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 rm -f .libs 2>/dev/null
7778 mkdir .libs 2>/dev/null
7779 if test -d .libs; then
7780 lt_cv_objdir=.libs
7781 else
7782 # MS-DOS does not allow filenames that begin with a dot.
7783 lt_cv_objdir=_libs
7784 fi
7785 rmdir .libs 2>/dev/null
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7788 $as_echo "$lt_cv_objdir" >&6; }
7789 objdir=$lt_cv_objdir
7790
7791
7792
7793
7794
7795 cat >>confdefs.h <<_ACEOF
7796 #define LT_OBJDIR "$lt_cv_objdir/"
7797 _ACEOF
7798
7799
7800
7801
7802 case $host_os in
7803 aix3*)
7804 # AIX sometimes has problems with the GCC collect2 program. For some
7805 # reason, if we set the COLLECT_NAMES environment variable, the problems
7806 # vanish in a puff of smoke.
7807 if test set != "${COLLECT_NAMES+set}"; then
7808 COLLECT_NAMES=
7809 export COLLECT_NAMES
7810 fi
7811 ;;
7812 esac
7813
7814 # Global variables:
7815 ofile=libtool
7816 can_build_shared=yes
7817
7818 # All known linkers require a '.a' archive for static linking (except MSVC,
7819 # which needs '.lib').
7820 libext=a
7821
7822 with_gnu_ld=$lt_cv_prog_gnu_ld
7823
7824 old_CC=$CC
7825 old_CFLAGS=$CFLAGS
7826
7827 # Set sane defaults for various variables
7828 test -z "$CC" && CC=cc
7829 test -z "$LTCC" && LTCC=$CC
7830 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7831 test -z "$LD" && LD=ld
7832 test -z "$ac_objext" && ac_objext=o
7833
7834 func_cc_basename $compiler
7835 cc_basename=$func_cc_basename_result
7836
7837
7838 # Only perform the check for file, if the check method requires it
7839 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7840 case $deplibs_check_method in
7841 file_magic*)
7842 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7844 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7845 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 case $MAGIC_CMD in
7849 [\\/*] | ?:[\\/]*)
7850 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7851 ;;
7852 *)
7853 lt_save_MAGIC_CMD=$MAGIC_CMD
7854 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7856 for ac_dir in $ac_dummy; do
7857 IFS=$lt_save_ifs
7858 test -z "$ac_dir" && ac_dir=.
7859 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7860 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7861 if test -n "$file_magic_test_file"; then
7862 case $deplibs_check_method in
7863 "file_magic "*)
7864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7865 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7867 $EGREP "$file_magic_regex" > /dev/null; then
7868 :
7869 else
7870 cat <<_LT_EOF 1>&2
7871
7872 *** Warning: the command libtool uses to detect shared libraries,
7873 *** $file_magic_cmd, produces output that libtool cannot recognize.
7874 *** The result is that libtool may fail to recognize shared libraries
7875 *** as such. This will affect the creation of libtool libraries that
7876 *** depend on shared libraries, but programs linked with such libtool
7877 *** libraries will work regardless of this problem. Nevertheless, you
7878 *** may want to report the problem to your system manager and/or to
7879 *** bug-libtool (at] gnu.org
7880
7881 _LT_EOF
7882 fi ;;
7883 esac
7884 fi
7885 break
7886 fi
7887 done
7888 IFS=$lt_save_ifs
7889 MAGIC_CMD=$lt_save_MAGIC_CMD
7890 ;;
7891 esac
7892 fi
7893
7894 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7895 if test -n "$MAGIC_CMD"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7897 $as_echo "$MAGIC_CMD" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7901 fi
7902
7903
7904
7905
7906
7907 if test -z "$lt_cv_path_MAGIC_CMD"; then
7908 if test -n "$ac_tool_prefix"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7910 $as_echo_n "checking for file... " >&6; }
7911 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 case $MAGIC_CMD in
7915 [\\/*] | ?:[\\/]*)
7916 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7917 ;;
7918 *)
7919 lt_save_MAGIC_CMD=$MAGIC_CMD
7920 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922 for ac_dir in $ac_dummy; do
7923 IFS=$lt_save_ifs
7924 test -z "$ac_dir" && ac_dir=.
7925 if test -f "$ac_dir/file"; then
7926 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7927 if test -n "$file_magic_test_file"; then
7928 case $deplibs_check_method in
7929 "file_magic "*)
7930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933 $EGREP "$file_magic_regex" > /dev/null; then
7934 :
7935 else
7936 cat <<_LT_EOF 1>&2
7937
7938 *** Warning: the command libtool uses to detect shared libraries,
7939 *** $file_magic_cmd, produces output that libtool cannot recognize.
7940 *** The result is that libtool may fail to recognize shared libraries
7941 *** as such. This will affect the creation of libtool libraries that
7942 *** depend on shared libraries, but programs linked with such libtool
7943 *** libraries will work regardless of this problem. Nevertheless, you
7944 *** may want to report the problem to your system manager and/or to
7945 *** bug-libtool (at] gnu.org
7946
7947 _LT_EOF
7948 fi ;;
7949 esac
7950 fi
7951 break
7952 fi
7953 done
7954 IFS=$lt_save_ifs
7955 MAGIC_CMD=$lt_save_MAGIC_CMD
7956 ;;
7957 esac
7958 fi
7959
7960 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7961 if test -n "$MAGIC_CMD"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7963 $as_echo "$MAGIC_CMD" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970 else
7971 MAGIC_CMD=:
7972 fi
7973 fi
7974
7975 fi
7976 ;;
7977 esac
7978
7979 # Use C for the default configuration in the libtool script
7980
7981 lt_save_CC=$CC
7982 ac_ext=c
7983 ac_cpp='$CPP $CPPFLAGS'
7984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987
7988
7989 # Source file extension for C test sources.
7990 ac_ext=c
7991
7992 # Object file extension for compiled C test sources.
7993 objext=o
7994 objext=$objext
7995
7996 # Code to be used in simple compile tests
7997 lt_simple_compile_test_code="int some_variable = 0;"
7998
7999 # Code to be used in simple link tests
8000 lt_simple_link_test_code='int main(){return(0);}'
8001
8002
8003
8004
8005
8006
8007
8008 # If no C compiler was specified, use CC.
8009 LTCC=${LTCC-"$CC"}
8010
8011 # If no C compiler flags were specified, use CFLAGS.
8012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8013
8014 # Allow CC to be a program name with arguments.
8015 compiler=$CC
8016
8017 # Save the default compiler, since it gets overwritten when the other
8018 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8019 compiler_DEFAULT=$CC
8020
8021 # save warnings/boilerplate of simple test code
8022 ac_outfile=conftest.$ac_objext
8023 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8025 _lt_compiler_boilerplate=`cat conftest.err`
8026 $RM conftest*
8027
8028 ac_outfile=conftest.$ac_objext
8029 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8031 _lt_linker_boilerplate=`cat conftest.err`
8032 $RM -r conftest*
8033
8034
8035 ## CAVEAT EMPTOR:
8036 ## There is no encapsulation within the following macros, do not change
8037 ## the running order or otherwise move them around unless you know exactly
8038 ## what you are doing...
8039 if test -n "$compiler"; then
8040
8041 lt_prog_compiler_no_builtin_flag=
8042
8043 if test yes = "$GCC"; then
8044 case $cc_basename in
8045 nvcc*)
8046 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8047 *)
8048 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8049 esac
8050
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8052 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8053 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 lt_cv_prog_compiler_rtti_exceptions=no
8057 ac_outfile=conftest.$ac_objext
8058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8059 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8060 # Insert the option either (1) after the last *FLAGS variable, or
8061 # (2) before a word containing "conftest.", or (3) at the end.
8062 # Note that $ac_compile itself does not contain backslashes and begins
8063 # with a dollar sign (not a hyphen), so the echo should work correctly.
8064 # The option is referenced via a variable to avoid confusing sed.
8065 lt_compile=`echo "$ac_compile" | $SED \
8066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8068 -e 's:$: $lt_compiler_flag:'`
8069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8070 (eval "$lt_compile" 2>conftest.err)
8071 ac_status=$?
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 if (exit $ac_status) && test -s "$ac_outfile"; then
8075 # The compiler can only warn and ignore the option if not recognized
8076 # So say no if there are warnings other than the usual output.
8077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8080 lt_cv_prog_compiler_rtti_exceptions=yes
8081 fi
8082 fi
8083 $RM conftest*
8084
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8087 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8088
8089 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8090 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8091 else
8092 :
8093 fi
8094
8095 fi
8096
8097
8098
8099
8100
8101
8102 lt_prog_compiler_wl=
8103 lt_prog_compiler_pic=
8104 lt_prog_compiler_static=
8105
8106
8107 if test yes = "$GCC"; then
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_static='-static'
8110
8111 case $host_os in
8112 aix*)
8113 # All AIX code is PIC.
8114 if test ia64 = "$host_cpu"; then
8115 # AIX 5 now supports IA64 processor
8116 lt_prog_compiler_static='-Bstatic'
8117 fi
8118 lt_prog_compiler_pic='-fPIC'
8119 ;;
8120
8121 amigaos*)
8122 case $host_cpu in
8123 powerpc)
8124 # see comment about AmigaOS4 .so support
8125 lt_prog_compiler_pic='-fPIC'
8126 ;;
8127 m68k)
8128 # FIXME: we need at least 68020 code to build shared libraries, but
8129 # adding the '-m68020' flag to GCC prevents building anything better,
8130 # like '-m68040'.
8131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8132 ;;
8133 esac
8134 ;;
8135
8136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8137 # PIC is the default for these OSes.
8138 ;;
8139
8140 mingw* | cygwin* | pw32* | os2* | cegcc*)
8141 # This hack is so that the source file can tell whether it is being
8142 # built for inclusion in a dll (and should export symbols for example).
8143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8144 # (--disable-auto-import) libraries
8145 lt_prog_compiler_pic='-DDLL_EXPORT'
8146 case $host_os in
8147 os2*)
8148 lt_prog_compiler_static='$wl-static'
8149 ;;
8150 esac
8151 ;;
8152
8153 darwin* | rhapsody*)
8154 # PIC is the default on this platform
8155 # Common symbols not allowed in MH_DYLIB files
8156 lt_prog_compiler_pic='-fno-common'
8157 ;;
8158
8159 haiku*)
8160 # PIC is the default for Haiku.
8161 # The "-static" flag exists, but is broken.
8162 lt_prog_compiler_static=
8163 ;;
8164
8165 hpux*)
8166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8168 # sets the default TLS model and affects inlining.
8169 case $host_cpu in
8170 hppa*64*)
8171 # +Z the default
8172 ;;
8173 *)
8174 lt_prog_compiler_pic='-fPIC'
8175 ;;
8176 esac
8177 ;;
8178
8179 interix[3-9]*)
8180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8181 # Instead, we relocate shared libraries at runtime.
8182 ;;
8183
8184 msdosdjgpp*)
8185 # Just because we use GCC doesn't mean we suddenly get shared libraries
8186 # on systems that don't support them.
8187 lt_prog_compiler_can_build_shared=no
8188 enable_shared=no
8189 ;;
8190
8191 *nto* | *qnx*)
8192 # QNX uses GNU C++, but need to define -shared option too, otherwise
8193 # it will coredump.
8194 lt_prog_compiler_pic='-fPIC -shared'
8195 ;;
8196
8197 sysv4*MP*)
8198 if test -d /usr/nec; then
8199 lt_prog_compiler_pic=-Kconform_pic
8200 fi
8201 ;;
8202
8203 *)
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 esac
8207
8208 case $cc_basename in
8209 nvcc*) # Cuda Compiler Driver 2.2
8210 lt_prog_compiler_wl='-Xlinker '
8211 if test -n "$lt_prog_compiler_pic"; then
8212 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8213 fi
8214 ;;
8215 esac
8216 else
8217 # PORTME Check for flag to pass linker flags through the system compiler.
8218 case $host_os in
8219 aix*)
8220 lt_prog_compiler_wl='-Wl,'
8221 if test ia64 = "$host_cpu"; then
8222 # AIX 5 now supports IA64 processor
8223 lt_prog_compiler_static='-Bstatic'
8224 else
8225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8226 fi
8227 ;;
8228
8229 darwin* | rhapsody*)
8230 # PIC is the default on this platform
8231 # Common symbols not allowed in MH_DYLIB files
8232 lt_prog_compiler_pic='-fno-common'
8233 case $cc_basename in
8234 nagfor*)
8235 # NAG Fortran compiler
8236 lt_prog_compiler_wl='-Wl,-Wl,,'
8237 lt_prog_compiler_pic='-PIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 ;;
8240 esac
8241 ;;
8242
8243 mingw* | cygwin* | pw32* | os2* | cegcc*)
8244 # This hack is so that the source file can tell whether it is being
8245 # built for inclusion in a dll (and should export symbols for example).
8246 lt_prog_compiler_pic='-DDLL_EXPORT'
8247 case $host_os in
8248 os2*)
8249 lt_prog_compiler_static='$wl-static'
8250 ;;
8251 esac
8252 ;;
8253
8254 hpux9* | hpux10* | hpux11*)
8255 lt_prog_compiler_wl='-Wl,'
8256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8257 # not for PA HP-UX.
8258 case $host_cpu in
8259 hppa*64*|ia64*)
8260 # +Z the default
8261 ;;
8262 *)
8263 lt_prog_compiler_pic='+Z'
8264 ;;
8265 esac
8266 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8267 lt_prog_compiler_static='$wl-a ${wl}archive'
8268 ;;
8269
8270 irix5* | irix6* | nonstopux*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # PIC (with -KPIC) is the default.
8273 lt_prog_compiler_static='-non_shared'
8274 ;;
8275
8276 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8277 case $cc_basename in
8278 # old Intel for x86_64, which still supported -KPIC.
8279 ecc*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-static'
8283 ;;
8284 # icc used to be incompatible with GCC.
8285 # ICC 10 doesn't accept -KPIC any more.
8286 icc* | ifort*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-fPIC'
8289 lt_prog_compiler_static='-static'
8290 ;;
8291 # Lahey Fortran 8.1.
8292 lf95*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='--shared'
8295 lt_prog_compiler_static='--static'
8296 ;;
8297 nagfor*)
8298 # NAG Fortran compiler
8299 lt_prog_compiler_wl='-Wl,-Wl,,'
8300 lt_prog_compiler_pic='-PIC'
8301 lt_prog_compiler_static='-Bstatic'
8302 ;;
8303 tcc*)
8304 # Fabrice Bellard et al's Tiny C Compiler
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-fPIC'
8307 lt_prog_compiler_static='-static'
8308 ;;
8309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8310 # Portland Group compilers (*not* the Pentium gcc compiler,
8311 # which looks to be a dead project)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-fpic'
8314 lt_prog_compiler_static='-Bstatic'
8315 ;;
8316 ccc*)
8317 lt_prog_compiler_wl='-Wl,'
8318 # All Alpha code is PIC.
8319 lt_prog_compiler_static='-non_shared'
8320 ;;
8321 xl* | bgxl* | bgf* | mpixl*)
8322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='-qpic'
8325 lt_prog_compiler_static='-qstaticlink'
8326 ;;
8327 *)
8328 case `$CC -V 2>&1 | sed 5q` in
8329 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8331 lt_prog_compiler_pic='-KPIC'
8332 lt_prog_compiler_static='-Bstatic'
8333 lt_prog_compiler_wl=''
8334 ;;
8335 *Sun\ F* | *Sun*Fortran*)
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl='-Qoption ld '
8339 ;;
8340 *Sun\ C*)
8341 # Sun C 5.9
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_wl='-Wl,'
8345 ;;
8346 *Intel*\ [CF]*Compiler*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-fPIC'
8349 lt_prog_compiler_static='-static'
8350 ;;
8351 *Portland\ Group*)
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-fpic'
8354 lt_prog_compiler_static='-Bstatic'
8355 ;;
8356 esac
8357 ;;
8358 esac
8359 ;;
8360
8361 newsos6)
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-Bstatic'
8364 ;;
8365
8366 *nto* | *qnx*)
8367 # QNX uses GNU C++, but need to define -shared option too, otherwise
8368 # it will coredump.
8369 lt_prog_compiler_pic='-fPIC -shared'
8370 ;;
8371
8372 osf3* | osf4* | osf5*)
8373 lt_prog_compiler_wl='-Wl,'
8374 # All OSF/1 code is PIC.
8375 lt_prog_compiler_static='-non_shared'
8376 ;;
8377
8378 rdos*)
8379 lt_prog_compiler_static='-non_shared'
8380 ;;
8381
8382 solaris*)
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8385 case $cc_basename in
8386 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8387 lt_prog_compiler_wl='-Qoption ld ';;
8388 *)
8389 lt_prog_compiler_wl='-Wl,';;
8390 esac
8391 ;;
8392
8393 sunos4*)
8394 lt_prog_compiler_wl='-Qoption ld '
8395 lt_prog_compiler_pic='-PIC'
8396 lt_prog_compiler_static='-Bstatic'
8397 ;;
8398
8399 sysv4 | sysv4.2uw2* | sysv4.3*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-Bstatic'
8403 ;;
8404
8405 sysv4*MP*)
8406 if test -d /usr/nec; then
8407 lt_prog_compiler_pic='-Kconform_pic'
8408 lt_prog_compiler_static='-Bstatic'
8409 fi
8410 ;;
8411
8412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 unicos*)
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_can_build_shared=no
8421 ;;
8422
8423 uts4*)
8424 lt_prog_compiler_pic='-pic'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427
8428 *)
8429 lt_prog_compiler_can_build_shared=no
8430 ;;
8431 esac
8432 fi
8433
8434 case $host_os in
8435 # For platforms that do not support PIC, -DPIC is meaningless:
8436 *djgpp*)
8437 lt_prog_compiler_pic=
8438 ;;
8439 *)
8440 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8441 ;;
8442 esac
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8446 if ${lt_cv_prog_compiler_pic+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8452 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8453 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8454
8455 #
8456 # Check to make sure the PIC flag actually works.
8457 #
8458 if test -n "$lt_prog_compiler_pic"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8460 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8461 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 lt_cv_prog_compiler_pic_works=no
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8467 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8468 # Insert the option either (1) after the last *FLAGS variable, or
8469 # (2) before a word containing "conftest.", or (3) at the end.
8470 # Note that $ac_compile itself does not contain backslashes and begins
8471 # with a dollar sign (not a hyphen), so the echo should work correctly.
8472 # The option is referenced via a variable to avoid confusing sed.
8473 lt_compile=`echo "$ac_compile" | $SED \
8474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8476 -e 's:$: $lt_compiler_flag:'`
8477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8478 (eval "$lt_compile" 2>conftest.err)
8479 ac_status=$?
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 if (exit $ac_status) && test -s "$ac_outfile"; then
8483 # The compiler can only warn and ignore the option if not recognized
8484 # So say no if there are warnings other than the usual output.
8485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8488 lt_cv_prog_compiler_pic_works=yes
8489 fi
8490 fi
8491 $RM conftest*
8492
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8495 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8496
8497 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8498 case $lt_prog_compiler_pic in
8499 "" | " "*) ;;
8500 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8501 esac
8502 else
8503 lt_prog_compiler_pic=
8504 lt_prog_compiler_can_build_shared=no
8505 fi
8506
8507 fi
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519 #
8520 # Check to make sure the static flag actually works.
8521 #
8522 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8524 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8525 if ${lt_cv_prog_compiler_static_works+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 lt_cv_prog_compiler_static_works=no
8529 save_LDFLAGS=$LDFLAGS
8530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8533 # The linker can only warn and ignore the option if not recognized
8534 # So say no if there are warnings
8535 if test -s conftest.err; then
8536 # Append any errors to the config.log.
8537 cat conftest.err 1>&5
8538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8540 if diff conftest.exp conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_static_works=yes
8542 fi
8543 else
8544 lt_cv_prog_compiler_static_works=yes
8545 fi
8546 fi
8547 $RM -r conftest*
8548 LDFLAGS=$save_LDFLAGS
8549
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8552 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8553
8554 if test yes = "$lt_cv_prog_compiler_static_works"; then
8555 :
8556 else
8557 lt_prog_compiler_static=
8558 fi
8559
8560
8561
8562
8563
8564
8565
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8568 if ${lt_cv_prog_compiler_c_o+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 lt_cv_prog_compiler_c_o=no
8572 $RM -r conftest 2>/dev/null
8573 mkdir conftest
8574 cd conftest
8575 mkdir out
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577
8578 lt_compiler_flag="-o out/conftest2.$ac_objext"
8579 # Insert the option either (1) after the last *FLAGS variable, or
8580 # (2) before a word containing "conftest.", or (3) at the end.
8581 # Note that $ac_compile itself does not contain backslashes and begins
8582 # with a dollar sign (not a hyphen), so the echo should work correctly.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588 (eval "$lt_compile" 2>out/conftest.err)
8589 ac_status=$?
8590 cat out/conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8593 then
8594 # The compiler can only warn and ignore the option if not recognized
8595 # So say no if there are warnings
8596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8599 lt_cv_prog_compiler_c_o=yes
8600 fi
8601 fi
8602 chmod u+w . 2>&5
8603 $RM conftest*
8604 # SGI C++ compiler will create directory out/ii_files/ for
8605 # template instantiation
8606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8607 $RM out/* && rmdir out
8608 cd ..
8609 $RM -r conftest
8610 $RM conftest*
8611
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8614 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8615
8616
8617
8618
8619
8620
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8623 if ${lt_cv_prog_compiler_c_o+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 lt_cv_prog_compiler_c_o=no
8627 $RM -r conftest 2>/dev/null
8628 mkdir conftest
8629 cd conftest
8630 mkdir out
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8632
8633 lt_compiler_flag="-o out/conftest2.$ac_objext"
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>out/conftest.err)
8644 ac_status=$?
8645 cat out/conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8648 then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_c_o=yes
8655 fi
8656 fi
8657 chmod u+w . 2>&5
8658 $RM conftest*
8659 # SGI C++ compiler will create directory out/ii_files/ for
8660 # template instantiation
8661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8662 $RM out/* && rmdir out
8663 cd ..
8664 $RM -r conftest
8665 $RM conftest*
8666
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8670
8671
8672
8673
8674 hard_links=nottested
8675 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8676 # do not overwrite the value of need_locks provided by the user
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8678 $as_echo_n "checking if we can lock with hard links... " >&6; }
8679 hard_links=yes
8680 $RM conftest*
8681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8682 touch conftest.a
8683 ln conftest.a conftest.b 2>&5 || hard_links=no
8684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8686 $as_echo "$hard_links" >&6; }
8687 if test no = "$hard_links"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8689 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8690 need_locks=warn
8691 fi
8692 else
8693 need_locks=no
8694 fi
8695
8696
8697
8698
8699
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8702 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8703
8704 runpath_var=
8705 allow_undefined_flag=
8706 always_export_symbols=no
8707 archive_cmds=
8708 archive_expsym_cmds=
8709 compiler_needs_object=no
8710 enable_shared_with_static_runtimes=no
8711 export_dynamic_flag_spec=
8712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8713 hardcode_automatic=no
8714 hardcode_direct=no
8715 hardcode_direct_absolute=no
8716 hardcode_libdir_flag_spec=
8717 hardcode_libdir_separator=
8718 hardcode_minus_L=no
8719 hardcode_shlibpath_var=unsupported
8720 inherit_rpath=no
8721 link_all_deplibs=unknown
8722 module_cmds=
8723 module_expsym_cmds=
8724 old_archive_from_new_cmds=
8725 old_archive_from_expsyms_cmds=
8726 thread_safe_flag_spec=
8727 whole_archive_flag_spec=
8728 # include_expsyms should be a list of space-separated symbols to be *always*
8729 # included in the symbol list
8730 include_expsyms=
8731 # exclude_expsyms can be an extended regexp of symbols to exclude
8732 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8733 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8734 # as well as any symbol that contains 'd'.
8735 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8736 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8737 # platforms (ab)use it in PIC code, but their linkers get confused if
8738 # the symbol is explicitly referenced. Since portable code cannot
8739 # rely on this symbol name, it's probably fine to never include it in
8740 # preloaded symbol tables.
8741 # Exclude shared library initialization/finalization symbols.
8742 extract_expsyms_cmds=
8743
8744 case $host_os in
8745 cygwin* | mingw* | pw32* | cegcc*)
8746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8747 # When not using gcc, we currently assume that we are using
8748 # Microsoft Visual C++.
8749 if test yes != "$GCC"; then
8750 with_gnu_ld=no
8751 fi
8752 ;;
8753 interix*)
8754 # we just hope/assume this is gcc and not c89 (= MSVC++)
8755 with_gnu_ld=yes
8756 ;;
8757 openbsd* | bitrig*)
8758 with_gnu_ld=no
8759 ;;
8760 esac
8761
8762 ld_shlibs=yes
8763
8764 # On some targets, GNU ld is compatible enough with the native linker
8765 # that we're better off using the native interface for both.
8766 lt_use_gnu_ld_interface=no
8767 if test yes = "$with_gnu_ld"; then
8768 case $host_os in
8769 aix*)
8770 # The AIX port of GNU ld has always aspired to compatibility
8771 # with the native linker. However, as the warning in the GNU ld
8772 # block says, versions before 2.19.5* couldn't really create working
8773 # shared libraries, regardless of the interface used.
8774 case `$LD -v 2>&1` in
8775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8777 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8778 *)
8779 lt_use_gnu_ld_interface=yes
8780 ;;
8781 esac
8782 ;;
8783 *)
8784 lt_use_gnu_ld_interface=yes
8785 ;;
8786 esac
8787 fi
8788
8789 if test yes = "$lt_use_gnu_ld_interface"; then
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 wlarc='$wl'
8792
8793 # Set some defaults for GNU ld with shared library support. These
8794 # are reset later if shared libraries are not supported. Putting them
8795 # here allows them to be overridden if necessary.
8796 runpath_var=LD_RUN_PATH
8797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8798 export_dynamic_flag_spec='$wl--export-dynamic'
8799 # ancient GNU ld didn't support --whole-archive et. al.
8800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8801 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8802 else
8803 whole_archive_flag_spec=
8804 fi
8805 supports_anon_versioning=no
8806 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8807 *GNU\ gold*) supports_anon_versioning=yes ;;
8808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8811 *\ 2.11.*) ;; # other 2.11 versions
8812 *) supports_anon_versioning=yes ;;
8813 esac
8814
8815 # See if GNU ld supports shared libraries.
8816 case $host_os in
8817 aix[3-9]*)
8818 # On AIX/PPC, the GNU linker is very broken
8819 if test ia64 != "$host_cpu"; then
8820 ld_shlibs=no
8821 cat <<_LT_EOF 1>&2
8822
8823 *** Warning: the GNU linker, at least up to release 2.19, is reported
8824 *** to be unable to reliably create shared libraries on AIX.
8825 *** Therefore, libtool is disabling shared libraries support. If you
8826 *** really care for shared libraries, you may want to install binutils
8827 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8828 *** You will then need to restart the configuration process.
8829
8830 _LT_EOF
8831 fi
8832 ;;
8833
8834 amigaos*)
8835 case $host_cpu in
8836 powerpc)
8837 # see comment about AmigaOS4 .so support
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8839 archive_expsym_cmds=''
8840 ;;
8841 m68k)
8842 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)'
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845 ;;
8846 esac
8847 ;;
8848
8849 beos*)
8850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 allow_undefined_flag=unsupported
8852 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8853 # support --undefined. This deserves some investigation. FIXME
8854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 cygwin* | mingw* | pw32* | cegcc*)
8861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8862 # as there is no search path for DLLs.
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 export_dynamic_flag_spec='$wl--export-all-symbols'
8865 allow_undefined_flag=unsupported
8866 always_export_symbols=no
8867 enable_shared_with_static_runtimes=yes
8868 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'
8869 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8870
8871 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873 # If the export-symbols file already is a .def file, use it as
8874 # is; otherwise, prepend EXPORTS...
8875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8876 cp $export_symbols $output_objdir/$soname.def;
8877 else
8878 echo EXPORTS > $output_objdir/$soname.def;
8879 cat $export_symbols >> $output_objdir/$soname.def;
8880 fi~
8881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8882 else
8883 ld_shlibs=no
8884 fi
8885 ;;
8886
8887 haiku*)
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8889 link_all_deplibs=yes
8890 ;;
8891
8892 os2*)
8893 hardcode_libdir_flag_spec='-L$libdir'
8894 hardcode_minus_L=yes
8895 allow_undefined_flag=unsupported
8896 shrext_cmds=.dll
8897 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8898 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8899 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8900 $ECHO EXPORTS >> $output_objdir/$libname.def~
8901 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8902 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8903 emximp -o $lib $output_objdir/$libname.def'
8904 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8907 $ECHO EXPORTS >> $output_objdir/$libname.def~
8908 prefix_cmds="$SED"~
8909 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8910 prefix_cmds="$prefix_cmds -e 1d";
8911 fi~
8912 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8913 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8914 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8915 emximp -o $lib $output_objdir/$libname.def'
8916 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8917 enable_shared_with_static_runtimes=yes
8918 ;;
8919
8920 interix[3-9]*)
8921 hardcode_direct=no
8922 hardcode_shlibpath_var=no
8923 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8924 export_dynamic_flag_spec='$wl-E'
8925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8926 # Instead, shared libraries are loaded at an image base (0x10000000 by
8927 # default) and relocated if they conflict, which is a slow very memory
8928 # consuming and fragmenting process. To avoid this, we pick a random,
8929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8932 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'
8933 ;;
8934
8935 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8936 tmp_diet=no
8937 if test linux-dietlibc = "$host_os"; then
8938 case $cc_basename in
8939 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8940 esac
8941 fi
8942 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8943 && test no = "$tmp_diet"
8944 then
8945 tmp_addflag=' $pic_flag'
8946 tmp_sharedflag='-shared'
8947 case $cc_basename,$host_cpu in
8948 pgcc*) # Portland Group C compiler
8949 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'
8950 tmp_addflag=' $pic_flag'
8951 ;;
8952 pgf77* | pgf90* | pgf95* | pgfortran*)
8953 # Portland Group f77 and f90 compilers
8954 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'
8955 tmp_addflag=' $pic_flag -Mnomain' ;;
8956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8957 tmp_addflag=' -i_dynamic' ;;
8958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8959 tmp_addflag=' -i_dynamic -nofor_main' ;;
8960 ifc* | ifort*) # Intel Fortran compiler
8961 tmp_addflag=' -nofor_main' ;;
8962 lf95*) # Lahey Fortran 8.1
8963 whole_archive_flag_spec=
8964 tmp_sharedflag='--shared' ;;
8965 nagfor*) # NAGFOR 5.3
8966 tmp_sharedflag='-Wl,-shared' ;;
8967 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8968 tmp_sharedflag='-qmkshrobj'
8969 tmp_addflag= ;;
8970 nvcc*) # Cuda Compiler Driver 2.2
8971 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'
8972 compiler_needs_object=yes
8973 ;;
8974 esac
8975 case `$CC -V 2>&1 | sed 5q` in
8976 *Sun\ C*) # Sun C 5.9
8977 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'
8978 compiler_needs_object=yes
8979 tmp_sharedflag='-G' ;;
8980 *Sun\ F*) # Sun Fortran 8.3
8981 tmp_sharedflag='-G' ;;
8982 esac
8983 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8984
8985 if test yes = "$supports_anon_versioning"; then
8986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8988 echo "local: *; };" >> $output_objdir/$libname.ver~
8989 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8990 fi
8991
8992 case $cc_basename in
8993 tcc*)
8994 export_dynamic_flag_spec='-rdynamic'
8995 ;;
8996 xlf* | bgf* | bgxlf* | mpixlf*)
8997 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8998 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9000 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9001 if test yes = "$supports_anon_versioning"; then
9002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9004 echo "local: *; };" >> $output_objdir/$libname.ver~
9005 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9006 fi
9007 ;;
9008 esac
9009 else
9010 ld_shlibs=no
9011 fi
9012 ;;
9013
9014 netbsd*)
9015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9017 wlarc=
9018 else
9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9021 fi
9022 ;;
9023
9024 solaris*)
9025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9026 ld_shlibs=no
9027 cat <<_LT_EOF 1>&2
9028
9029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9030 *** create shared libraries on Solaris systems. Therefore, libtool
9031 *** is disabling shared libraries support. We urge you to upgrade GNU
9032 *** binutils to release 2.9.1 or newer. Another option is to modify
9033 *** your PATH or compiler configuration so that the native linker is
9034 *** used, and then restart.
9035
9036 _LT_EOF
9037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9040 else
9041 ld_shlibs=no
9042 fi
9043 ;;
9044
9045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9046 case `$LD -v 2>&1` in
9047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9048 ld_shlibs=no
9049 cat <<_LT_EOF 1>&2
9050
9051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9053 *** is disabling shared libraries support. We urge you to upgrade GNU
9054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9055 *** your PATH or compiler configuration so that the native linker is
9056 *** used, and then restart.
9057
9058 _LT_EOF
9059 ;;
9060 *)
9061 # For security reasons, it is highly recommended that you always
9062 # use absolute paths for naming shared libraries, and exclude the
9063 # DT_RUNPATH tag from executables and libraries. But doing so
9064 # requires that you compile everything twice, which is a pain.
9065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9069 else
9070 ld_shlibs=no
9071 fi
9072 ;;
9073 esac
9074 ;;
9075
9076 sunos4*)
9077 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9078 wlarc=
9079 hardcode_direct=yes
9080 hardcode_shlibpath_var=no
9081 ;;
9082
9083 *)
9084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9086 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9087 else
9088 ld_shlibs=no
9089 fi
9090 ;;
9091 esac
9092
9093 if test no = "$ld_shlibs"; then
9094 runpath_var=
9095 hardcode_libdir_flag_spec=
9096 export_dynamic_flag_spec=
9097 whole_archive_flag_spec=
9098 fi
9099 else
9100 # PORTME fill in a description of your system's linker (not GNU ld)
9101 case $host_os in
9102 aix3*)
9103 allow_undefined_flag=unsupported
9104 always_export_symbols=yes
9105 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'
9106 # Note: this linker hardcodes the directories in LIBPATH if there
9107 # are no directories specified by -L.
9108 hardcode_minus_L=yes
9109 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9110 # Neither direct hardcoding nor static linking is supported with a
9111 # broken collect2.
9112 hardcode_direct=unsupported
9113 fi
9114 ;;
9115
9116 aix[4-9]*)
9117 if test ia64 = "$host_cpu"; then
9118 # On IA64, the linker does run time linking by default, so we don't
9119 # have to do anything special.
9120 aix_use_runtimelinking=no
9121 exp_sym_flag='-Bexport'
9122 no_entry_flag=
9123 else
9124 # If we're using GNU nm, then we don't want the "-C" option.
9125 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9126 # Without the "-l" option, or with the "-B" option, AIX nm treats
9127 # weak defined symbols like other global defined symbols, whereas
9128 # GNU nm marks them as "W".
9129 # While the 'weak' keyword is ignored in the Export File, we need
9130 # it in the Import File for the 'aix-soname' feature, so we have
9131 # to replace the "-B" option with "-P" for AIX nm.
9132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9133 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9134 else
9135 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9136 fi
9137 aix_use_runtimelinking=no
9138
9139 # Test if we are trying to use run time linking or normal
9140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9141 # have runtime linking enabled, and use it for executables.
9142 # For shared libraries, we enable/disable runtime linking
9143 # depending on the kind of the shared library created -
9144 # when "with_aix_soname,aix_use_runtimelinking" is:
9145 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9146 # "aix,yes" lib.so shared, rtl:yes, for executables
9147 # lib.a static archive
9148 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9149 # lib.a(lib.so.V) shared, rtl:no, for executables
9150 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9151 # lib.a(lib.so.V) shared, rtl:no
9152 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9153 # lib.a static archive
9154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9155 for ld_flag in $LDFLAGS; do
9156 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9157 aix_use_runtimelinking=yes
9158 break
9159 fi
9160 done
9161 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9162 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9163 # so we don't have lib.a shared libs to link our executables.
9164 # We have to force runtime linking in this case.
9165 aix_use_runtimelinking=yes
9166 LDFLAGS="$LDFLAGS -Wl,-brtl"
9167 fi
9168 ;;
9169 esac
9170
9171 exp_sym_flag='-bexport'
9172 no_entry_flag='-bnoentry'
9173 fi
9174
9175 # When large executables or shared objects are built, AIX ld can
9176 # have problems creating the table of contents. If linking a library
9177 # or program results in "error TOC overflow" add -mminimal-toc to
9178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9180
9181 archive_cmds=''
9182 hardcode_direct=yes
9183 hardcode_direct_absolute=yes
9184 hardcode_libdir_separator=':'
9185 link_all_deplibs=yes
9186 file_list_spec='$wl-f,'
9187 case $with_aix_soname,$aix_use_runtimelinking in
9188 aix,*) ;; # traditional, no import file
9189 svr4,* | *,yes) # use import file
9190 # The Import File defines what to hardcode.
9191 hardcode_direct=no
9192 hardcode_direct_absolute=no
9193 ;;
9194 esac
9195
9196 if test yes = "$GCC"; then
9197 case $host_os in aix4.[012]|aix4.[012].*)
9198 # We only want to do this on AIX 4.2 and lower, the check
9199 # below for broken collect2 doesn't work under 4.3+
9200 collect2name=`$CC -print-prog-name=collect2`
9201 if test -f "$collect2name" &&
9202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9203 then
9204 # We have reworked collect2
9205 :
9206 else
9207 # We have old collect2
9208 hardcode_direct=unsupported
9209 # It fails to find uninstalled libraries when the uninstalled
9210 # path is not listed in the libpath. Setting hardcode_minus_L
9211 # to unsupported forces relinking
9212 hardcode_minus_L=yes
9213 hardcode_libdir_flag_spec='-L$libdir'
9214 hardcode_libdir_separator=
9215 fi
9216 ;;
9217 esac
9218 shared_flag='-shared'
9219 if test yes = "$aix_use_runtimelinking"; then
9220 shared_flag="$shared_flag "'$wl-G'
9221 fi
9222 # Need to ensure runtime linking is disabled for the traditional
9223 # shared library, or the linker may eventually find shared libraries
9224 # /with/ Import File - we do not want to mix them.
9225 shared_flag_aix='-shared'
9226 shared_flag_svr4='-shared $wl-G'
9227 else
9228 # not using gcc
9229 if test ia64 = "$host_cpu"; then
9230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9231 # chokes on -Wl,-G. The following line is correct:
9232 shared_flag='-G'
9233 else
9234 if test yes = "$aix_use_runtimelinking"; then
9235 shared_flag='$wl-G'
9236 else
9237 shared_flag='$wl-bM:SRE'
9238 fi
9239 shared_flag_aix='$wl-bM:SRE'
9240 shared_flag_svr4='$wl-G'
9241 fi
9242 fi
9243
9244 export_dynamic_flag_spec='$wl-bexpall'
9245 # It seems that -bexpall does not export symbols beginning with
9246 # underscore (_), so it is better to generate a list of symbols to export.
9247 always_export_symbols=yes
9248 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9249 # Warning - without using the other runtime loading flags (-brtl),
9250 # -berok will link without error, but may produce a broken library.
9251 allow_undefined_flag='-berok'
9252 # Determine the default libpath from the value encoded in an
9253 # empty executable.
9254 if test set = "${lt_cv_aix_libpath+set}"; then
9255 aix_libpath=$lt_cv_aix_libpath
9256 else
9257 if ${lt_cv_aix_libpath_+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262
9263 int
9264 main ()
9265 {
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_c_try_link "$LINENO"; then :
9272
9273 lt_aix_libpath_sed='
9274 /Import File Strings/,/^$/ {
9275 /^0/ {
9276 s/^0 *\([^ ]*\) *$/\1/
9277 p
9278 }
9279 }'
9280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281 # Check for a 64-bit object if we didn't find anything.
9282 if test -z "$lt_cv_aix_libpath_"; then
9283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9284 fi
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288 if test -z "$lt_cv_aix_libpath_"; then
9289 lt_cv_aix_libpath_=/usr/lib:/lib
9290 fi
9291
9292 fi
9293
9294 aix_libpath=$lt_cv_aix_libpath_
9295 fi
9296
9297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9298 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9299 else
9300 if test ia64 = "$host_cpu"; then
9301 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9302 allow_undefined_flag="-z nodefs"
9303 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"
9304 else
9305 # Determine the default libpath from the value encoded in an
9306 # empty executable.
9307 if test set = "${lt_cv_aix_libpath+set}"; then
9308 aix_libpath=$lt_cv_aix_libpath
9309 else
9310 if ${lt_cv_aix_libpath_+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315
9316 int
9317 main ()
9318 {
9319
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 if ac_fn_c_try_link "$LINENO"; then :
9325
9326 lt_aix_libpath_sed='
9327 /Import File Strings/,/^$/ {
9328 /^0/ {
9329 s/^0 *\([^ ]*\) *$/\1/
9330 p
9331 }
9332 }'
9333 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9334 # Check for a 64-bit object if we didn't find anything.
9335 if test -z "$lt_cv_aix_libpath_"; then
9336 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9337 fi
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 if test -z "$lt_cv_aix_libpath_"; then
9342 lt_cv_aix_libpath_=/usr/lib:/lib
9343 fi
9344
9345 fi
9346
9347 aix_libpath=$lt_cv_aix_libpath_
9348 fi
9349
9350 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9351 # Warning - without using the other run time loading flags,
9352 # -berok will link without error, but may produce a broken library.
9353 no_undefined_flag=' $wl-bernotok'
9354 allow_undefined_flag=' $wl-berok'
9355 if test yes = "$with_gnu_ld"; then
9356 # We only use this code for GNU lds that support --whole-archive.
9357 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9358 else
9359 # Exported symbols can be pulled into shared objects from archives
9360 whole_archive_flag_spec='$convenience'
9361 fi
9362 archive_cmds_need_lc=yes
9363 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9364 # -brtl affects multiple linker settings, -berok does not and is overridden later
9365 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9366 if test svr4 != "$with_aix_soname"; then
9367 # This is similar to how AIX traditionally builds its shared libraries.
9368 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9369 fi
9370 if test aix != "$with_aix_soname"; then
9371 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9372 else
9373 # used by -dlpreopen to get the symbols
9374 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9375 fi
9376 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9377 fi
9378 fi
9379 ;;
9380
9381 amigaos*)
9382 case $host_cpu in
9383 powerpc)
9384 # see comment about AmigaOS4 .so support
9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9386 archive_expsym_cmds=''
9387 ;;
9388 m68k)
9389 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)'
9390 hardcode_libdir_flag_spec='-L$libdir'
9391 hardcode_minus_L=yes
9392 ;;
9393 esac
9394 ;;
9395
9396 bsdi[45]*)
9397 export_dynamic_flag_spec=-rdynamic
9398 ;;
9399
9400 cygwin* | mingw* | pw32* | cegcc*)
9401 # When not using gcc, we currently assume that we are using
9402 # Microsoft Visual C++.
9403 # hardcode_libdir_flag_spec is actually meaningless, as there is
9404 # no search path for DLLs.
9405 case $cc_basename in
9406 cl*)
9407 # Native MSVC
9408 hardcode_libdir_flag_spec=' '
9409 allow_undefined_flag=unsupported
9410 always_export_symbols=yes
9411 file_list_spec='@'
9412 # Tell ltmain to make .lib files, not .a files.
9413 libext=lib
9414 # Tell ltmain to make .dll files, not .so files.
9415 shrext_cmds=.dll
9416 # FIXME: Setting linknames here is a bad hack.
9417 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9418 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9419 cp "$export_symbols" "$output_objdir/$soname.def";
9420 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9421 else
9422 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9423 fi~
9424 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9425 linknames='
9426 # The linker will not automatically build a static lib if we build a DLL.
9427 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9428 enable_shared_with_static_runtimes=yes
9429 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9430 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9431 # Don't use ranlib
9432 old_postinstall_cmds='chmod 644 $oldlib'
9433 postlink_cmds='lt_outputfile="@OUTPUT@"~
9434 lt_tool_outputfile="@TOOL_OUTPUT@"~
9435 case $lt_outputfile in
9436 *.exe|*.EXE) ;;
9437 *)
9438 lt_outputfile=$lt_outputfile.exe
9439 lt_tool_outputfile=$lt_tool_outputfile.exe
9440 ;;
9441 esac~
9442 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9443 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9444 $RM "$lt_outputfile.manifest";
9445 fi'
9446 ;;
9447 *)
9448 # Assume MSVC wrapper
9449 hardcode_libdir_flag_spec=' '
9450 allow_undefined_flag=unsupported
9451 # Tell ltmain to make .lib files, not .a files.
9452 libext=lib
9453 # Tell ltmain to make .dll files, not .so files.
9454 shrext_cmds=.dll
9455 # FIXME: Setting linknames here is a bad hack.
9456 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9457 # The linker will automatically build a .lib file if we build a DLL.
9458 old_archive_from_new_cmds='true'
9459 # FIXME: Should let the user specify the lib program.
9460 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9461 enable_shared_with_static_runtimes=yes
9462 ;;
9463 esac
9464 ;;
9465
9466 darwin* | rhapsody*)
9467
9468
9469 archive_cmds_need_lc=no
9470 hardcode_direct=no
9471 hardcode_automatic=yes
9472 hardcode_shlibpath_var=unsupported
9473 if test yes = "$lt_cv_ld_force_load"; then
9474 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\"`'
9475
9476 else
9477 whole_archive_flag_spec=''
9478 fi
9479 link_all_deplibs=yes
9480 allow_undefined_flag=$_lt_dar_allow_undefined
9481 case $cc_basename in
9482 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9483 *) _lt_dar_can_shared=$GCC ;;
9484 esac
9485 if test yes = "$_lt_dar_can_shared"; then
9486 output_verbose_link_cmd=func_echo_all
9487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9489 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"
9490 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"
9491
9492 else
9493 ld_shlibs=no
9494 fi
9495
9496 ;;
9497
9498 dgux*)
9499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9505 # support. Future versions do this automatically, but an explicit c++rt0.o
9506 # does not break anything, and helps significantly (at the cost of a little
9507 # extra space).
9508 freebsd2.2*)
9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9516 freebsd2.*)
9517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_direct=yes
9519 hardcode_minus_L=yes
9520 hardcode_shlibpath_var=no
9521 ;;
9522
9523 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9524 freebsd* | dragonfly*)
9525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9526 hardcode_libdir_flag_spec='-R$libdir'
9527 hardcode_direct=yes
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 hpux9*)
9532 if test yes = "$GCC"; then
9533 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9534 else
9535 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9536 fi
9537 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_direct=yes
9540
9541 # hardcode_minus_L: Not really in the search PATH,
9542 # but as the default location of the library.
9543 hardcode_minus_L=yes
9544 export_dynamic_flag_spec='$wl-E'
9545 ;;
9546
9547 hpux10*)
9548 if test yes,no = "$GCC,$with_gnu_ld"; then
9549 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550 else
9551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9552 fi
9553 if test no = "$with_gnu_ld"; then
9554 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9555 hardcode_libdir_separator=:
9556 hardcode_direct=yes
9557 hardcode_direct_absolute=yes
9558 export_dynamic_flag_spec='$wl-E'
9559 # hardcode_minus_L: Not really in the search PATH,
9560 # but as the default location of the library.
9561 hardcode_minus_L=yes
9562 fi
9563 ;;
9564
9565 hpux11*)
9566 if test yes,no = "$GCC,$with_gnu_ld"; then
9567 case $host_cpu in
9568 hppa*64*)
9569 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 ;;
9571 ia64*)
9572 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9573 ;;
9574 *)
9575 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9576 ;;
9577 esac
9578 else
9579 case $host_cpu in
9580 hppa*64*)
9581 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9582 ;;
9583 ia64*)
9584 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9585 ;;
9586 *)
9587
9588 # Older versions of the 11.00 compiler do not understand -b yet
9589 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9591 $as_echo_n "checking if $CC understands -b... " >&6; }
9592 if ${lt_cv_prog_compiler__b+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 lt_cv_prog_compiler__b=no
9596 save_LDFLAGS=$LDFLAGS
9597 LDFLAGS="$LDFLAGS -b"
9598 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9600 # The linker can only warn and ignore the option if not recognized
9601 # So say no if there are warnings
9602 if test -s conftest.err; then
9603 # Append any errors to the config.log.
9604 cat conftest.err 1>&5
9605 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607 if diff conftest.exp conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler__b=yes
9609 fi
9610 else
9611 lt_cv_prog_compiler__b=yes
9612 fi
9613 fi
9614 $RM -r conftest*
9615 LDFLAGS=$save_LDFLAGS
9616
9617 fi
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9619 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9620
9621 if test yes = "$lt_cv_prog_compiler__b"; then
9622 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9623 else
9624 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9625 fi
9626
9627 ;;
9628 esac
9629 fi
9630 if test no = "$with_gnu_ld"; then
9631 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9632 hardcode_libdir_separator=:
9633
9634 case $host_cpu in
9635 hppa*64*|ia64*)
9636 hardcode_direct=no
9637 hardcode_shlibpath_var=no
9638 ;;
9639 *)
9640 hardcode_direct=yes
9641 hardcode_direct_absolute=yes
9642 export_dynamic_flag_spec='$wl-E'
9643
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
9646 hardcode_minus_L=yes
9647 ;;
9648 esac
9649 fi
9650 ;;
9651
9652 irix5* | irix6* | nonstopux*)
9653 if test yes = "$GCC"; then
9654 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'
9655 # Try to use the -exported_symbol ld option, if it does not
9656 # work, assume that -exports_file does not work either and
9657 # implicitly export all symbols.
9658 # This should be the same for all languages, so no per-tag cache variable.
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9660 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9661 if ${lt_cv_irix_exported_symbol+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 save_LDFLAGS=$LDFLAGS
9665 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 int foo (void) { return 0; }
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"; then :
9671 lt_cv_irix_exported_symbol=yes
9672 else
9673 lt_cv_irix_exported_symbol=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LDFLAGS=$save_LDFLAGS
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9680 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9681 if test yes = "$lt_cv_irix_exported_symbol"; then
9682 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'
9683 fi
9684 else
9685 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'
9686 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'
9687 fi
9688 archive_cmds_need_lc='no'
9689 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9690 hardcode_libdir_separator=:
9691 inherit_rpath=yes
9692 link_all_deplibs=yes
9693 ;;
9694
9695 linux*)
9696 case $cc_basename in
9697 tcc*)
9698 # Fabrice Bellard et al's Tiny C Compiler
9699 ld_shlibs=yes
9700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701 ;;
9702 esac
9703 ;;
9704
9705 netbsd*)
9706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9708 else
9709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9710 fi
9711 hardcode_libdir_flag_spec='-R$libdir'
9712 hardcode_direct=yes
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 newsos6)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_direct=yes
9719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9720 hardcode_libdir_separator=:
9721 hardcode_shlibpath_var=no
9722 ;;
9723
9724 *nto* | *qnx*)
9725 ;;
9726
9727 openbsd* | bitrig*)
9728 if test -f /usr/libexec/ld.so; then
9729 hardcode_direct=yes
9730 hardcode_shlibpath_var=no
9731 hardcode_direct_absolute=yes
9732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9735 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9736 export_dynamic_flag_spec='$wl-E'
9737 else
9738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9740 fi
9741 else
9742 ld_shlibs=no
9743 fi
9744 ;;
9745
9746 os2*)
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_minus_L=yes
9749 allow_undefined_flag=unsupported
9750 shrext_cmds=.dll
9751 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9752 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9753 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9754 $ECHO EXPORTS >> $output_objdir/$libname.def~
9755 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9756 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9757 emximp -o $lib $output_objdir/$libname.def'
9758 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9759 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9760 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9761 $ECHO EXPORTS >> $output_objdir/$libname.def~
9762 prefix_cmds="$SED"~
9763 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9764 prefix_cmds="$prefix_cmds -e 1d";
9765 fi~
9766 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9767 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9769 emximp -o $lib $output_objdir/$libname.def'
9770 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9771 enable_shared_with_static_runtimes=yes
9772 ;;
9773
9774 osf3*)
9775 if test yes = "$GCC"; then
9776 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9777 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'
9778 else
9779 allow_undefined_flag=' -expect_unresolved \*'
9780 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'
9781 fi
9782 archive_cmds_need_lc='no'
9783 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9784 hardcode_libdir_separator=:
9785 ;;
9786
9787 osf4* | osf5*) # as osf3* with the addition of -msym flag
9788 if test yes = "$GCC"; then
9789 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9790 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'
9791 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9792 else
9793 allow_undefined_flag=' -expect_unresolved \*'
9794 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'
9795 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~
9796 $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'
9797
9798 # Both c and cxx compiler support -rpath directly
9799 hardcode_libdir_flag_spec='-rpath $libdir'
9800 fi
9801 archive_cmds_need_lc='no'
9802 hardcode_libdir_separator=:
9803 ;;
9804
9805 solaris*)
9806 no_undefined_flag=' -z defs'
9807 if test yes = "$GCC"; then
9808 wlarc='$wl'
9809 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9811 $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'
9812 else
9813 case `$CC -V 2>&1` in
9814 *"Compilers 5.0"*)
9815 wlarc=''
9816 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9818 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9819 ;;
9820 *)
9821 wlarc='$wl'
9822 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9825 ;;
9826 esac
9827 fi
9828 hardcode_libdir_flag_spec='-R$libdir'
9829 hardcode_shlibpath_var=no
9830 case $host_os in
9831 solaris2.[0-5] | solaris2.[0-5].*) ;;
9832 *)
9833 # The compiler driver will combine and reorder linker options,
9834 # but understands '-z linker_flag'. GCC discards it without '$wl',
9835 # but is careful enough not to reorder.
9836 # Supported since Solaris 2.6 (maybe 2.5.1?)
9837 if test yes = "$GCC"; then
9838 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9839 else
9840 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9841 fi
9842 ;;
9843 esac
9844 link_all_deplibs=yes
9845 ;;
9846
9847 sunos4*)
9848 if test sequent = "$host_vendor"; then
9849 # Use $CC to link under sequent, because it throws in some extra .o
9850 # files that make .init and .fini sections work.
9851 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9852 else
9853 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9854 fi
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_direct=yes
9857 hardcode_minus_L=yes
9858 hardcode_shlibpath_var=no
9859 ;;
9860
9861 sysv4)
9862 case $host_vendor in
9863 sni)
9864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_direct=yes # is this really true???
9866 ;;
9867 siemens)
9868 ## LD is ld it makes a PLAMLIB
9869 ## CC just makes a GrossModule.
9870 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9871 reload_cmds='$CC -r -o $output$reload_objs'
9872 hardcode_direct=no
9873 ;;
9874 motorola)
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9877 ;;
9878 esac
9879 runpath_var='LD_RUN_PATH'
9880 hardcode_shlibpath_var=no
9881 ;;
9882
9883 sysv4.3*)
9884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_shlibpath_var=no
9886 export_dynamic_flag_spec='-Bexport'
9887 ;;
9888
9889 sysv4*MP*)
9890 if test -d /usr/nec; then
9891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9892 hardcode_shlibpath_var=no
9893 runpath_var=LD_RUN_PATH
9894 hardcode_runpath_var=yes
9895 ld_shlibs=yes
9896 fi
9897 ;;
9898
9899 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9900 no_undefined_flag='$wl-z,text'
9901 archive_cmds_need_lc=no
9902 hardcode_shlibpath_var=no
9903 runpath_var='LD_RUN_PATH'
9904
9905 if test yes = "$GCC"; then
9906 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9907 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908 else
9909 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9911 fi
9912 ;;
9913
9914 sysv5* | sco3.2v5* | sco5v6*)
9915 # Note: We CANNOT use -z defs as we might desire, because we do not
9916 # link with -lc, and that would cause any symbols used from libc to
9917 # always be unresolved, which means just about no library would
9918 # ever link correctly. If we're not using GNU ld we use -z text
9919 # though, which does catch some bad symbols but isn't as heavy-handed
9920 # as -z defs.
9921 no_undefined_flag='$wl-z,text'
9922 allow_undefined_flag='$wl-z,nodefs'
9923 archive_cmds_need_lc=no
9924 hardcode_shlibpath_var=no
9925 hardcode_libdir_flag_spec='$wl-R,$libdir'
9926 hardcode_libdir_separator=':'
9927 link_all_deplibs=yes
9928 export_dynamic_flag_spec='$wl-Bexport'
9929 runpath_var='LD_RUN_PATH'
9930
9931 if test yes = "$GCC"; then
9932 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 else
9935 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 fi
9938 ;;
9939
9940 uts4*)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_shlibpath_var=no
9944 ;;
9945
9946 *)
9947 ld_shlibs=no
9948 ;;
9949 esac
9950
9951 if test sni = "$host_vendor"; then
9952 case $host in
9953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9954 export_dynamic_flag_spec='$wl-Blargedynsym'
9955 ;;
9956 esac
9957 fi
9958 fi
9959
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9961 $as_echo "$ld_shlibs" >&6; }
9962 test no = "$ld_shlibs" && can_build_shared=no
9963
9964 with_gnu_ld=$with_gnu_ld
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980 #
9981 # Do we need to explicitly link libc?
9982 #
9983 case "x$archive_cmds_need_lc" in
9984 x|xyes)
9985 # Assume -lc should be added
9986 archive_cmds_need_lc=yes
9987
9988 if test yes,yes = "$GCC,$enable_shared"; then
9989 case $archive_cmds in
9990 *'~'*)
9991 # FIXME: we may have to deal with multi-command sequences.
9992 ;;
9993 '$CC '*)
9994 # Test whether the compiler implicitly links with -lc since on some
9995 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9996 # to ld, don't add -lc before -lgcc.
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9998 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9999 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 $RM conftest*
10003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10004
10005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10006 (eval $ac_compile) 2>&5
10007 ac_status=$?
10008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10009 test $ac_status = 0; } 2>conftest.err; then
10010 soname=conftest
10011 lib=conftest
10012 libobjs=conftest.$ac_objext
10013 deplibs=
10014 wl=$lt_prog_compiler_wl
10015 pic_flag=$lt_prog_compiler_pic
10016 compiler_flags=-v
10017 linker_flags=-v
10018 verstring=
10019 output_objdir=.
10020 libname=conftest
10021 lt_save_allow_undefined_flag=$allow_undefined_flag
10022 allow_undefined_flag=
10023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10024 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10025 ac_status=$?
10026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10027 test $ac_status = 0; }
10028 then
10029 lt_cv_archive_cmds_need_lc=no
10030 else
10031 lt_cv_archive_cmds_need_lc=yes
10032 fi
10033 allow_undefined_flag=$lt_save_allow_undefined_flag
10034 else
10035 cat conftest.err 1>&5
10036 fi
10037 $RM conftest*
10038
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10041 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10042 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10043 ;;
10044 esac
10045 fi
10046 ;;
10047 esac
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10201 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10202
10203 if test yes = "$GCC"; then
10204 case $host_os in
10205 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10206 *) lt_awk_arg='/^libraries:/' ;;
10207 esac
10208 case $host_os in
10209 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10210 *) lt_sed_strip_eq='s|=/|/|g' ;;
10211 esac
10212 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10213 case $lt_search_path_spec in
10214 *\;*)
10215 # if the path contains ";" then we assume it to be the separator
10216 # otherwise default to the standard path separator (i.e. ":") - it is
10217 # assumed that no part of a normal pathname contains ";" but that should
10218 # okay in the real world where ";" in dirpaths is itself problematic.
10219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10220 ;;
10221 *)
10222 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10223 ;;
10224 esac
10225 # Ok, now we have the path, separated by spaces, we can step through it
10226 # and add multilib dir if necessary...
10227 lt_tmp_lt_search_path_spec=
10228 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10229 # ...but if some path component already ends with the multilib dir we assume
10230 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10231 case "$lt_multi_os_dir; $lt_search_path_spec " in
10232 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10233 lt_multi_os_dir=
10234 ;;
10235 esac
10236 for lt_sys_path in $lt_search_path_spec; do
10237 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10239 elif test -n "$lt_multi_os_dir"; then
10240 test -d "$lt_sys_path" && \
10241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10242 fi
10243 done
10244 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10245 BEGIN {RS = " "; FS = "/|\n";} {
10246 lt_foo = "";
10247 lt_count = 0;
10248 for (lt_i = NF; lt_i > 0; lt_i--) {
10249 if ($lt_i != "" && $lt_i != ".") {
10250 if ($lt_i == "..") {
10251 lt_count++;
10252 } else {
10253 if (lt_count == 0) {
10254 lt_foo = "/" $lt_i lt_foo;
10255 } else {
10256 lt_count--;
10257 }
10258 }
10259 }
10260 }
10261 if (lt_foo != "") { lt_freq[lt_foo]++; }
10262 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10263 }'`
10264 # AWK program above erroneously prepends '/' to C:/dos/paths
10265 # for these hosts.
10266 case $host_os in
10267 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10268 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10269 esac
10270 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10271 else
10272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10273 fi
10274 library_names_spec=
10275 libname_spec='lib$name'
10276 soname_spec=
10277 shrext_cmds=.so
10278 postinstall_cmds=
10279 postuninstall_cmds=
10280 finish_cmds=
10281 finish_eval=
10282 shlibpath_var=
10283 shlibpath_overrides_runpath=unknown
10284 version_type=none
10285 dynamic_linker="$host_os ld.so"
10286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10287 need_lib_prefix=unknown
10288 hardcode_into_libs=no
10289
10290 # when you set need_version to no, make sure it does not cause -set_version
10291 # flags to be left without arguments
10292 need_version=unknown
10293
10294
10295
10296 case $host_os in
10297 aix3*)
10298 version_type=linux # correct to gnu/linux during the next big refactor
10299 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10300 shlibpath_var=LIBPATH
10301
10302 # AIX 3 has no versioning support, so we append a major version to the name.
10303 soname_spec='$libname$release$shared_ext$major'
10304 ;;
10305
10306 aix[4-9]*)
10307 version_type=linux # correct to gnu/linux during the next big refactor
10308 need_lib_prefix=no
10309 need_version=no
10310 hardcode_into_libs=yes
10311 if test ia64 = "$host_cpu"; then
10312 # AIX 5 supports IA64
10313 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 else
10316 # With GCC up to 2.95.x, collect2 would create an import file
10317 # for dependence libraries. The import file would start with
10318 # the line '#! .'. This would cause the generated library to
10319 # depend on '.', always an invalid library. This was fixed in
10320 # development snapshots of GCC prior to 3.0.
10321 case $host_os in
10322 aix4 | aix4.[01] | aix4.[01].*)
10323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10324 echo ' yes '
10325 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10326 :
10327 else
10328 can_build_shared=no
10329 fi
10330 ;;
10331 esac
10332 # Using Import Files as archive members, it is possible to support
10333 # filename-based versioning of shared library archives on AIX. While
10334 # this would work for both with and without runtime linking, it will
10335 # prevent static linking of such archives. So we do filename-based
10336 # shared library versioning with .so extension only, which is used
10337 # when both runtime linking and shared linking is enabled.
10338 # Unfortunately, runtime linking may impact performance, so we do
10339 # not want this to be the default eventually. Also, we use the
10340 # versioned .so libs for executables only if there is the -brtl
10341 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10342 # To allow for filename-based versioning support, we need to create
10343 # libNAME.so.V as an archive file, containing:
10344 # *) an Import File, referring to the versioned filename of the
10345 # archive as well as the shared archive member, telling the
10346 # bitwidth (32 or 64) of that shared object, and providing the
10347 # list of exported symbols of that shared object, eventually
10348 # decorated with the 'weak' keyword
10349 # *) the shared object with the F_LOADONLY flag set, to really avoid
10350 # it being seen by the linker.
10351 # At run time we better use the real file rather than another symlink,
10352 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10353
10354 case $with_aix_soname,$aix_use_runtimelinking in
10355 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10356 # soname into executable. Probably we can add versioning support to
10357 # collect2, so additional links can be useful in future.
10358 aix,yes) # traditional libtool
10359 dynamic_linker='AIX unversionable lib.so'
10360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10361 # instead of lib<name>.a to let people know that these are not
10362 # typical AIX shared libraries.
10363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10364 ;;
10365 aix,no) # traditional AIX only
10366 dynamic_linker='AIX lib.a(lib.so.V)'
10367 # We preserve .a as extension for shared libraries through AIX4.2
10368 # and later when we are not doing run time linking.
10369 library_names_spec='$libname$release.a $libname.a'
10370 soname_spec='$libname$release$shared_ext$major'
10371 ;;
10372 svr4,*) # full svr4 only
10373 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10374 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10375 # We do not specify a path in Import Files, so LIBPATH fires.
10376 shlibpath_overrides_runpath=yes
10377 ;;
10378 *,yes) # both, prefer svr4
10379 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10380 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10381 # unpreferred sharedlib libNAME.a needs extra handling
10382 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10383 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10384 # We do not specify a path in Import Files, so LIBPATH fires.
10385 shlibpath_overrides_runpath=yes
10386 ;;
10387 *,no) # both, prefer aix
10388 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10389 library_names_spec='$libname$release.a $libname.a'
10390 soname_spec='$libname$release$shared_ext$major'
10391 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10392 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10393 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10394 ;;
10395 esac
10396 shlibpath_var=LIBPATH
10397 fi
10398 ;;
10399
10400 amigaos*)
10401 case $host_cpu in
10402 powerpc)
10403 # Since July 2007 AmigaOS4 officially supports .so libraries.
10404 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10406 ;;
10407 m68k)
10408 library_names_spec='$libname.ixlibrary $libname.a'
10409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10410 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10411 ;;
10412 esac
10413 ;;
10414
10415 beos*)
10416 library_names_spec='$libname$shared_ext'
10417 dynamic_linker="$host_os ld.so"
10418 shlibpath_var=LIBRARY_PATH
10419 ;;
10420
10421 bsdi[45]*)
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 need_version=no
10424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10425 soname_spec='$libname$release$shared_ext$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10430 # the default ld.so.conf also contains /usr/contrib/lib and
10431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10432 # libtool to hard-code these into programs
10433 ;;
10434
10435 cygwin* | mingw* | pw32* | cegcc*)
10436 version_type=windows
10437 shrext_cmds=.dll
10438 need_version=no
10439 need_lib_prefix=no
10440
10441 case $GCC,$cc_basename in
10442 yes,*)
10443 # gcc
10444 library_names_spec='$libname.dll.a'
10445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10446 postinstall_cmds='base_file=`basename \$file`~
10447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10448 dldir=$destdir/`dirname \$dlpath`~
10449 test -d \$dldir || mkdir -p \$dldir~
10450 $install_prog $dir/$dlname \$dldir/$dlname~
10451 chmod a+x \$dldir/$dlname~
10452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10454 fi'
10455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10456 dlpath=$dir/\$dldll~
10457 $RM \$dlpath'
10458 shlibpath_overrides_runpath=yes
10459
10460 case $host_os in
10461 cygwin*)
10462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10463 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10464
10465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10466 ;;
10467 mingw* | cegcc*)
10468 # MinGW DLLs use traditional 'lib' prefix
10469 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10470 ;;
10471 pw32*)
10472 # pw32 DLLs use 'pw' prefix rather than 'lib'
10473 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10474 ;;
10475 esac
10476 dynamic_linker='Win32 ld.exe'
10477 ;;
10478
10479 *,cl*)
10480 # Native MSVC
10481 libname_spec='$name'
10482 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10483 library_names_spec='$libname.dll.lib'
10484
10485 case $build_os in
10486 mingw*)
10487 sys_lib_search_path_spec=
10488 lt_save_ifs=$IFS
10489 IFS=';'
10490 for lt_path in $LIB
10491 do
10492 IFS=$lt_save_ifs
10493 # Let DOS variable expansion print the short 8.3 style file name.
10494 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10495 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10496 done
10497 IFS=$lt_save_ifs
10498 # Convert to MSYS style.
10499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10500 ;;
10501 cygwin*)
10502 # Convert to unix form, then to dos form, then back to unix form
10503 # but this time dos style (no spaces!) so that the unix form looks
10504 # like /cygdrive/c/PROGRA~1:/cygdr...
10505 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10506 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10507 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10508 ;;
10509 *)
10510 sys_lib_search_path_spec=$LIB
10511 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10512 # It is most probably a Windows format PATH.
10513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10514 else
10515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10516 fi
10517 # FIXME: find the short name or the path components, as spaces are
10518 # common. (e.g. "Program Files" -> "PROGRA~1")
10519 ;;
10520 esac
10521
10522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10523 postinstall_cmds='base_file=`basename \$file`~
10524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10525 dldir=$destdir/`dirname \$dlpath`~
10526 test -d \$dldir || mkdir -p \$dldir~
10527 $install_prog $dir/$dlname \$dldir/$dlname'
10528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10529 dlpath=$dir/\$dldll~
10530 $RM \$dlpath'
10531 shlibpath_overrides_runpath=yes
10532 dynamic_linker='Win32 link.exe'
10533 ;;
10534
10535 *)
10536 # Assume MSVC wrapper
10537 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10538 dynamic_linker='Win32 ld.exe'
10539 ;;
10540 esac
10541 # FIXME: first we should search . and the directory the executable is in
10542 shlibpath_var=PATH
10543 ;;
10544
10545 darwin* | rhapsody*)
10546 dynamic_linker="$host_os dyld"
10547 version_type=darwin
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10551 soname_spec='$libname$release$major$shared_ext'
10552 shlibpath_overrides_runpath=yes
10553 shlibpath_var=DYLD_LIBRARY_PATH
10554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10555
10556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10558 ;;
10559
10560 dgux*)
10561 version_type=linux # correct to gnu/linux during the next big refactor
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10565 soname_spec='$libname$release$shared_ext$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 ;;
10568
10569 freebsd* | dragonfly*)
10570 # DragonFly does not have aout. When/if they implement a new
10571 # versioning mechanism, adjust this.
10572 if test -x /usr/bin/objformat; then
10573 objformat=`/usr/bin/objformat`
10574 else
10575 case $host_os in
10576 freebsd[23].*) objformat=aout ;;
10577 *) objformat=elf ;;
10578 esac
10579 fi
10580 version_type=freebsd-$objformat
10581 case $version_type in
10582 freebsd-elf*)
10583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10584 soname_spec='$libname$release$shared_ext$major'
10585 need_version=no
10586 need_lib_prefix=no
10587 ;;
10588 freebsd-*)
10589 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10590 need_version=yes
10591 ;;
10592 esac
10593 shlibpath_var=LD_LIBRARY_PATH
10594 case $host_os in
10595 freebsd2.*)
10596 shlibpath_overrides_runpath=yes
10597 ;;
10598 freebsd3.[01]* | freebsdelf3.[01]*)
10599 shlibpath_overrides_runpath=yes
10600 hardcode_into_libs=yes
10601 ;;
10602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10604 shlibpath_overrides_runpath=no
10605 hardcode_into_libs=yes
10606 ;;
10607 *) # from 4.6 on, and DragonFly
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10610 ;;
10611 esac
10612 ;;
10613
10614 haiku*)
10615 version_type=linux # correct to gnu/linux during the next big refactor
10616 need_lib_prefix=no
10617 need_version=no
10618 dynamic_linker="$host_os runtime_loader"
10619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10620 soname_spec='$libname$release$shared_ext$major'
10621 shlibpath_var=LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10624 hardcode_into_libs=yes
10625 ;;
10626
10627 hpux9* | hpux10* | hpux11*)
10628 # Give a soname corresponding to the major version so that dld.sl refuses to
10629 # link against other versions.
10630 version_type=sunos
10631 need_lib_prefix=no
10632 need_version=no
10633 case $host_cpu in
10634 ia64*)
10635 shrext_cmds='.so'
10636 hardcode_into_libs=yes
10637 dynamic_linker="$host_os dld.so"
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10641 soname_spec='$libname$release$shared_ext$major'
10642 if test 32 = "$HPUX_IA64_MODE"; then
10643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10644 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10645 else
10646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10647 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10648 fi
10649 ;;
10650 hppa*64*)
10651 shrext_cmds='.sl'
10652 hardcode_into_libs=yes
10653 dynamic_linker="$host_os dld.sl"
10654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10657 soname_spec='$libname$release$shared_ext$major'
10658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10660 ;;
10661 *)
10662 shrext_cmds='.sl'
10663 dynamic_linker="$host_os dld.sl"
10664 shlibpath_var=SHLIB_PATH
10665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10667 soname_spec='$libname$release$shared_ext$major'
10668 ;;
10669 esac
10670 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10671 postinstall_cmds='chmod 555 $lib'
10672 # or fails outright, so override atomically:
10673 install_override_mode=555
10674 ;;
10675
10676 interix[3-9]*)
10677 version_type=linux # correct to gnu/linux during the next big refactor
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10681 soname_spec='$libname$release$shared_ext$major'
10682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=no
10685 hardcode_into_libs=yes
10686 ;;
10687
10688 irix5* | irix6* | nonstopux*)
10689 case $host_os in
10690 nonstopux*) version_type=nonstopux ;;
10691 *)
10692 if test yes = "$lt_cv_prog_gnu_ld"; then
10693 version_type=linux # correct to gnu/linux during the next big refactor
10694 else
10695 version_type=irix
10696 fi ;;
10697 esac
10698 need_lib_prefix=no
10699 need_version=no
10700 soname_spec='$libname$release$shared_ext$major'
10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10702 case $host_os in
10703 irix5* | nonstopux*)
10704 libsuff= shlibsuff=
10705 ;;
10706 *)
10707 case $LD in # libtool.m4 will add one of these switches to LD
10708 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10709 libsuff= shlibsuff= libmagic=32-bit;;
10710 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10711 libsuff=32 shlibsuff=N32 libmagic=N32;;
10712 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10713 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10714 *) libsuff= shlibsuff= libmagic=never-match;;
10715 esac
10716 ;;
10717 esac
10718 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10719 shlibpath_overrides_runpath=no
10720 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10721 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10722 hardcode_into_libs=yes
10723 ;;
10724
10725 # No shared lib support for Linux oldld, aout, or coff.
10726 linux*oldld* | linux*aout* | linux*coff*)
10727 dynamic_linker=no
10728 ;;
10729
10730 linux*android*)
10731 version_type=none # Android doesn't support versioned libraries.
10732 need_lib_prefix=no
10733 need_version=no
10734 library_names_spec='$libname$release$shared_ext'
10735 soname_spec='$libname$release$shared_ext'
10736 finish_cmds=
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=yes
10739
10740 # This implies no fast_install, which is unacceptable.
10741 # Some rework will be needed to allow for fast_install
10742 # before this can be enabled.
10743 hardcode_into_libs=yes
10744
10745 dynamic_linker='Android linker'
10746 # Don't embed -rpath directories since the linker doesn't support them.
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 ;;
10749
10750 # This must be glibc/ELF.
10751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10752 version_type=linux # correct to gnu/linux during the next big refactor
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10756 soname_spec='$libname$release$shared_ext$major'
10757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=no
10760
10761 # Some binutils ld are patched to set DT_RUNPATH
10762 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 lt_cv_shlibpath_overrides_runpath=no
10766 save_LDFLAGS=$LDFLAGS
10767 save_libdir=$libdir
10768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772
10773 int
10774 main ()
10775 {
10776
10777 ;
10778 return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10783 lt_cv_shlibpath_overrides_runpath=yes
10784 fi
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LDFLAGS=$save_LDFLAGS
10789 libdir=$save_libdir
10790
10791 fi
10792
10793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10794
10795 # This implies no fast_install, which is unacceptable.
10796 # Some rework will be needed to allow for fast_install
10797 # before this can be enabled.
10798 hardcode_into_libs=yes
10799
10800 # Ideally, we could use ldconfig to report *all* directores which are
10801 # searched for libraries, however this is still not possible. Aside from not
10802 # being certain /sbin/ldconfig is available, command
10803 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10804 # even though it is searched at run-time. Try to do the best guess by
10805 # appending ld.so.conf contents (and includes) to the search path.
10806 if test -f /etc/ld.so.conf; then
10807 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' ' '`
10808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10809 fi
10810
10811 # We used to test for /lib/ld.so.1 and disable shared libraries on
10812 # powerpc, because MkLinux only supported shared libraries with the
10813 # GNU dynamic linker. Since this was broken with cross compilers,
10814 # most powerpc-linux boxes support dynamic linking these days and
10815 # people can always --disable-shared, the test was removed, and we
10816 # assume the GNU/Linux dynamic linker is in use.
10817 dynamic_linker='GNU/Linux ld.so'
10818 ;;
10819
10820 netbsd*)
10821 version_type=sunos
10822 need_lib_prefix=no
10823 need_version=no
10824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10825 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10827 dynamic_linker='NetBSD (a.out) ld.so'
10828 else
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
10831 dynamic_linker='NetBSD ld.elf_so'
10832 fi
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=yes
10835 hardcode_into_libs=yes
10836 ;;
10837
10838 newsos6)
10839 version_type=linux # correct to gnu/linux during the next big refactor
10840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 ;;
10844
10845 *nto* | *qnx*)
10846 version_type=qnx
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10850 soname_spec='$libname$release$shared_ext$major'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 shlibpath_overrides_runpath=no
10853 hardcode_into_libs=yes
10854 dynamic_linker='ldqnx.so'
10855 ;;
10856
10857 openbsd* | bitrig*)
10858 version_type=sunos
10859 sys_lib_dlsearch_path_spec=/usr/lib
10860 need_lib_prefix=no
10861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10862 need_version=no
10863 else
10864 need_version=yes
10865 fi
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
10870 ;;
10871
10872 os2*)
10873 libname_spec='$name'
10874 version_type=windows
10875 shrext_cmds=.dll
10876 need_version=no
10877 need_lib_prefix=no
10878 # OS/2 can only load a DLL with a base name of 8 characters or less.
10879 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10880 v=$($ECHO $release$versuffix | tr -d .-);
10881 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10882 $ECHO $n$v`$shared_ext'
10883 library_names_spec='${libname}_dll.$libext'
10884 dynamic_linker='OS/2 ld.exe'
10885 shlibpath_var=BEGINLIBPATH
10886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10888 postinstall_cmds='base_file=`basename \$file`~
10889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10890 dldir=$destdir/`dirname \$dlpath`~
10891 test -d \$dldir || mkdir -p \$dldir~
10892 $install_prog $dir/$dlname \$dldir/$dlname~
10893 chmod a+x \$dldir/$dlname~
10894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10896 fi'
10897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10898 dlpath=$dir/\$dldll~
10899 $RM \$dlpath'
10900 ;;
10901
10902 osf3* | osf4* | osf5*)
10903 version_type=osf
10904 need_lib_prefix=no
10905 need_version=no
10906 soname_spec='$libname$release$shared_ext$major'
10907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10911 ;;
10912
10913 rdos*)
10914 dynamic_linker=no
10915 ;;
10916
10917 solaris*)
10918 version_type=linux # correct to gnu/linux during the next big refactor
10919 need_lib_prefix=no
10920 need_version=no
10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922 soname_spec='$libname$release$shared_ext$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath=yes
10925 hardcode_into_libs=yes
10926 # ldd complains unless libraries are executable
10927 postinstall_cmds='chmod +x $lib'
10928 ;;
10929
10930 sunos4*)
10931 version_type=sunos
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10936 if test yes = "$with_gnu_ld"; then
10937 need_lib_prefix=no
10938 fi
10939 need_version=yes
10940 ;;
10941
10942 sysv4 | sysv4.3*)
10943 version_type=linux # correct to gnu/linux during the next big refactor
10944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10945 soname_spec='$libname$release$shared_ext$major'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 case $host_vendor in
10948 sni)
10949 shlibpath_overrides_runpath=no
10950 need_lib_prefix=no
10951 runpath_var=LD_RUN_PATH
10952 ;;
10953 siemens)
10954 need_lib_prefix=no
10955 ;;
10956 motorola)
10957 need_lib_prefix=no
10958 need_version=no
10959 shlibpath_overrides_runpath=no
10960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10961 ;;
10962 esac
10963 ;;
10964
10965 sysv4*MP*)
10966 if test -d /usr/nec; then
10967 version_type=linux # correct to gnu/linux during the next big refactor
10968 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10969 soname_spec='$libname$shared_ext.$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 fi
10972 ;;
10973
10974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10975 version_type=sco
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10979 soname_spec='$libname$release$shared_ext$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes
10982 hardcode_into_libs=yes
10983 if test yes = "$with_gnu_ld"; then
10984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10985 else
10986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10987 case $host_os in
10988 sco3.2v5*)
10989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10990 ;;
10991 esac
10992 fi
10993 sys_lib_dlsearch_path_spec='/usr/lib'
10994 ;;
10995
10996 tpf*)
10997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10998 version_type=linux # correct to gnu/linux during the next big refactor
10999 need_lib_prefix=no
11000 need_version=no
11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=no
11004 hardcode_into_libs=yes
11005 ;;
11006
11007 uts4*)
11008 version_type=linux # correct to gnu/linux during the next big refactor
11009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010 soname_spec='$libname$release$shared_ext$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 ;;
11013
11014 *)
11015 dynamic_linker=no
11016 ;;
11017 esac
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11019 $as_echo "$dynamic_linker" >&6; }
11020 test no = "$dynamic_linker" && can_build_shared=no
11021
11022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11023 if test yes = "$GCC"; then
11024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11025 fi
11026
11027 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11028 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11029 fi
11030
11031 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11032 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11033 fi
11034
11035 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11036 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11037
11038 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11039 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11040
11041 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11042 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11141 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11142 hardcode_action=
11143 if test -n "$hardcode_libdir_flag_spec" ||
11144 test -n "$runpath_var" ||
11145 test yes = "$hardcode_automatic"; then
11146
11147 # We can hardcode non-existent directories.
11148 if test no != "$hardcode_direct" &&
11149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11150 # have to relink, otherwise we might link with an installed library
11151 # when we should be linking with a yet-to-be-installed one
11152 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11153 test no != "$hardcode_minus_L"; then
11154 # Linking always hardcodes the temporary library directory.
11155 hardcode_action=relink
11156 else
11157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11158 hardcode_action=immediate
11159 fi
11160 else
11161 # We cannot hardcode anything, or else we can only hardcode existing
11162 # directories.
11163 hardcode_action=unsupported
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11166 $as_echo "$hardcode_action" >&6; }
11167
11168 if test relink = "$hardcode_action" ||
11169 test yes = "$inherit_rpath"; then
11170 # Fast installation is not supported
11171 enable_fast_install=no
11172 elif test yes = "$shlibpath_overrides_runpath" ||
11173 test no = "$enable_shared"; then
11174 # Fast installation is not necessary
11175 enable_fast_install=needless
11176 fi
11177
11178
11179
11180
11181
11182
11183 if test yes != "$enable_dlopen"; then
11184 enable_dlopen=unknown
11185 enable_dlopen_self=unknown
11186 enable_dlopen_self_static=unknown
11187 else
11188 lt_cv_dlopen=no
11189 lt_cv_dlopen_libs=
11190
11191 case $host_os in
11192 beos*)
11193 lt_cv_dlopen=load_add_on
11194 lt_cv_dlopen_libs=
11195 lt_cv_dlopen_self=yes
11196 ;;
11197
11198 mingw* | pw32* | cegcc*)
11199 lt_cv_dlopen=LoadLibrary
11200 lt_cv_dlopen_libs=
11201 ;;
11202
11203 cygwin*)
11204 lt_cv_dlopen=dlopen
11205 lt_cv_dlopen_libs=
11206 ;;
11207
11208 darwin*)
11209 # if libdl is installed we need to link against it
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11212 if ${ac_cv_lib_dl_dlopen+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-ldl $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char dlopen ();
11227 int
11228 main ()
11229 {
11230 return dlopen ();
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_dl_dlopen=yes
11237 else
11238 ac_cv_lib_dl_dlopen=no
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11246 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11248 else
11249
11250 lt_cv_dlopen=dyld
11251 lt_cv_dlopen_libs=
11252 lt_cv_dlopen_self=yes
11253
11254 fi
11255
11256 ;;
11257
11258 tpf*)
11259 # Don't try to run any link tests for TPF. We know it's impossible
11260 # because TPF is a cross-compiler, and we know how we open DSOs.
11261 lt_cv_dlopen=dlopen
11262 lt_cv_dlopen_libs=
11263 lt_cv_dlopen_self=no
11264 ;;
11265
11266 *)
11267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11268 if test "x$ac_cv_func_shl_load" = xyes; then :
11269 lt_cv_dlopen=shl_load
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11272 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11273 if ${ac_cv_lib_dld_shl_load+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldld $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char shl_load ();
11288 int
11289 main ()
11290 {
11291 return shl_load ();
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_dld_shl_load=yes
11298 else
11299 ac_cv_lib_dld_shl_load=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11306 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11307 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11308 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11309 else
11310 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11311 if test "x$ac_cv_func_dlopen" = xyes; then :
11312 lt_cv_dlopen=dlopen
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11316 if ${ac_cv_lib_dl_dlopen+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldl $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char dlopen ();
11331 int
11332 main ()
11333 {
11334 return dlopen ();
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_dl_dlopen=yes
11341 else
11342 ac_cv_lib_dl_dlopen=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11350 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11351 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11354 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11355 if ${ac_cv_lib_svld_dlopen+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 ac_check_lib_save_LIBS=$LIBS
11359 LIBS="-lsvld $LIBS"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362
11363 /* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 char dlopen ();
11370 int
11371 main ()
11372 {
11373 return dlopen ();
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379 ac_cv_lib_svld_dlopen=yes
11380 else
11381 ac_cv_lib_svld_dlopen=no
11382 fi
11383 rm -f core conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385 LIBS=$ac_check_lib_save_LIBS
11386 fi
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11388 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11389 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11390 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11393 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11394 if ${ac_cv_lib_dld_dld_link+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldld $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dld_link ();
11409 int
11410 main ()
11411 {
11412 return dld_link ();
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dld_dld_link=yes
11419 else
11420 ac_cv_lib_dld_dld_link=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11427 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11428 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11429 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11430 fi
11431
11432
11433 fi
11434
11435
11436 fi
11437
11438
11439 fi
11440
11441
11442 fi
11443
11444
11445 fi
11446
11447 ;;
11448 esac
11449
11450 if test no = "$lt_cv_dlopen"; then
11451 enable_dlopen=no
11452 else
11453 enable_dlopen=yes
11454 fi
11455
11456 case $lt_cv_dlopen in
11457 dlopen)
11458 save_CPPFLAGS=$CPPFLAGS
11459 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11460
11461 save_LDFLAGS=$LDFLAGS
11462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11463
11464 save_LIBS=$LIBS
11465 LIBS="$lt_cv_dlopen_libs $LIBS"
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11468 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11469 if ${lt_cv_dlopen_self+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 if test yes = "$cross_compiling"; then :
11473 lt_cv_dlopen_self=cross
11474 else
11475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11476 lt_status=$lt_dlunknown
11477 cat > conftest.$ac_ext <<_LT_EOF
11478 #line $LINENO "configure"
11479 #include "confdefs.h"
11480
11481 #if HAVE_DLFCN_H
11482 #include <dlfcn.h>
11483 #endif
11484
11485 #include <stdio.h>
11486
11487 #ifdef RTLD_GLOBAL
11488 # define LT_DLGLOBAL RTLD_GLOBAL
11489 #else
11490 # ifdef DL_GLOBAL
11491 # define LT_DLGLOBAL DL_GLOBAL
11492 # else
11493 # define LT_DLGLOBAL 0
11494 # endif
11495 #endif
11496
11497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11498 find out it does not work in some platform. */
11499 #ifndef LT_DLLAZY_OR_NOW
11500 # ifdef RTLD_LAZY
11501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11502 # else
11503 # ifdef DL_LAZY
11504 # define LT_DLLAZY_OR_NOW DL_LAZY
11505 # else
11506 # ifdef RTLD_NOW
11507 # define LT_DLLAZY_OR_NOW RTLD_NOW
11508 # else
11509 # ifdef DL_NOW
11510 # define LT_DLLAZY_OR_NOW DL_NOW
11511 # else
11512 # define LT_DLLAZY_OR_NOW 0
11513 # endif
11514 # endif
11515 # endif
11516 # endif
11517 #endif
11518
11519 /* When -fvisibility=hidden is used, assume the code has been annotated
11520 correspondingly for the symbols needed. */
11521 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11522 int fnord () __attribute__((visibility("default")));
11523 #endif
11524
11525 int fnord () { return 42; }
11526 int main ()
11527 {
11528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11529 int status = $lt_dlunknown;
11530
11531 if (self)
11532 {
11533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11534 else
11535 {
11536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11537 else puts (dlerror ());
11538 }
11539 /* dlclose (self); */
11540 }
11541 else
11542 puts (dlerror ());
11543
11544 return status;
11545 }
11546 _LT_EOF
11547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11548 (eval $ac_link) 2>&5
11549 ac_status=$?
11550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11552 (./conftest; exit; ) >&5 2>/dev/null
11553 lt_status=$?
11554 case x$lt_status in
11555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11558 esac
11559 else :
11560 # compilation failed
11561 lt_cv_dlopen_self=no
11562 fi
11563 fi
11564 rm -fr conftest*
11565
11566
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11569 $as_echo "$lt_cv_dlopen_self" >&6; }
11570
11571 if test yes = "$lt_cv_dlopen_self"; then
11572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11574 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11575 if ${lt_cv_dlopen_self_static+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 if test yes = "$cross_compiling"; then :
11579 lt_cv_dlopen_self_static=cross
11580 else
11581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11582 lt_status=$lt_dlunknown
11583 cat > conftest.$ac_ext <<_LT_EOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586
11587 #if HAVE_DLFCN_H
11588 #include <dlfcn.h>
11589 #endif
11590
11591 #include <stdio.h>
11592
11593 #ifdef RTLD_GLOBAL
11594 # define LT_DLGLOBAL RTLD_GLOBAL
11595 #else
11596 # ifdef DL_GLOBAL
11597 # define LT_DLGLOBAL DL_GLOBAL
11598 # else
11599 # define LT_DLGLOBAL 0
11600 # endif
11601 #endif
11602
11603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11604 find out it does not work in some platform. */
11605 #ifndef LT_DLLAZY_OR_NOW
11606 # ifdef RTLD_LAZY
11607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11608 # else
11609 # ifdef DL_LAZY
11610 # define LT_DLLAZY_OR_NOW DL_LAZY
11611 # else
11612 # ifdef RTLD_NOW
11613 # define LT_DLLAZY_OR_NOW RTLD_NOW
11614 # else
11615 # ifdef DL_NOW
11616 # define LT_DLLAZY_OR_NOW DL_NOW
11617 # else
11618 # define LT_DLLAZY_OR_NOW 0
11619 # endif
11620 # endif
11621 # endif
11622 # endif
11623 #endif
11624
11625 /* When -fvisibility=hidden is used, assume the code has been annotated
11626 correspondingly for the symbols needed. */
11627 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11628 int fnord () __attribute__((visibility("default")));
11629 #endif
11630
11631 int fnord () { return 42; }
11632 int main ()
11633 {
11634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635 int status = $lt_dlunknown;
11636
11637 if (self)
11638 {
11639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11640 else
11641 {
11642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11643 else puts (dlerror ());
11644 }
11645 /* dlclose (self); */
11646 }
11647 else
11648 puts (dlerror ());
11649
11650 return status;
11651 }
11652 _LT_EOF
11653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11654 (eval $ac_link) 2>&5
11655 ac_status=$?
11656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11658 (./conftest; exit; ) >&5 2>/dev/null
11659 lt_status=$?
11660 case x$lt_status in
11661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11664 esac
11665 else :
11666 # compilation failed
11667 lt_cv_dlopen_self_static=no
11668 fi
11669 fi
11670 rm -fr conftest*
11671
11672
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11675 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11676 fi
11677
11678 CPPFLAGS=$save_CPPFLAGS
11679 LDFLAGS=$save_LDFLAGS
11680 LIBS=$save_LIBS
11681 ;;
11682 esac
11683
11684 case $lt_cv_dlopen_self in
11685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11686 *) enable_dlopen_self=unknown ;;
11687 esac
11688
11689 case $lt_cv_dlopen_self_static in
11690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11691 *) enable_dlopen_self_static=unknown ;;
11692 esac
11693 fi
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711 striplib=
11712 old_striplib=
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11714 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11715 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719 $as_echo "yes" >&6; }
11720 else
11721 # FIXME - insert some real tests, host_os isn't really good enough
11722 case $host_os in
11723 darwin*)
11724 if test -n "$STRIP"; then
11725 striplib="$STRIP -x"
11726 old_striplib="$STRIP -S"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728 $as_echo "yes" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733 ;;
11734 *)
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 ;;
11738 esac
11739 fi
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752 # Report what library types will actually be built
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11754 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11756 $as_echo "$can_build_shared" >&6; }
11757
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11759 $as_echo_n "checking whether to build shared libraries... " >&6; }
11760 test no = "$can_build_shared" && enable_shared=no
11761
11762 # On AIX, shared libraries and static libraries use the same namespace, and
11763 # are all built from PIC.
11764 case $host_os in
11765 aix3*)
11766 test yes = "$enable_shared" && enable_static=no
11767 if test -n "$RANLIB"; then
11768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11769 postinstall_cmds='$RANLIB $lib'
11770 fi
11771 ;;
11772
11773 aix[4-9]*)
11774 if test ia64 != "$host_cpu"; then
11775 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11776 yes,aix,yes) ;; # shared object as lib.so file only
11777 yes,svr4,*) ;; # shared object as lib.so archive member only
11778 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11779 esac
11780 fi
11781 ;;
11782 esac
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11784 $as_echo "$enable_shared" >&6; }
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11787 $as_echo_n "checking whether to build static libraries... " >&6; }
11788 # Make sure either enable_shared or enable_static is yes.
11789 test yes = "$enable_shared" || enable_static=yes
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11791 $as_echo "$enable_static" >&6; }
11792
11793
11794
11795
11796 fi
11797 ac_ext=c
11798 ac_cpp='$CPP $CPPFLAGS'
11799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11802
11803 CC=$lt_save_CC
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819 ac_config_commands="$ac_config_commands libtool"
11820
11821
11822
11823
11824 # Only expand once:
11825
11826
11827 # Find a good install program. We prefer a C program (faster),
11828 # so one script is as good as another. But avoid the broken or
11829 # incompatible versions:
11830 # SysV /etc/install, /usr/sbin/install
11831 # SunOS /usr/etc/install
11832 # IRIX /sbin/install
11833 # AIX /bin/install
11834 # AmigaOS /C/install, which installs bootblocks on floppy discs
11835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11838 # OS/2's system install, which has a completely different semantic
11839 # ./install, which can be erroneously created by make from ./install.sh.
11840 # Reject install programs that cannot install multiple files.
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11842 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11843 if test -z "$INSTALL"; then
11844 if ${ac_cv_path_install+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11849 do
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 # Account for people who put trailing slashes in PATH elements.
11853 case $as_dir/ in #((
11854 ./ | .// | /[cC]/* | \
11855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11856 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11857 /usr/ucb/* ) ;;
11858 *)
11859 # OSF1 and SCO ODT 3.0 have their own names for install.
11860 # Don't use installbsd from OSF since it installs stuff as root
11861 # by default.
11862 for ac_prog in ginstall scoinst install; do
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11865 if test $ac_prog = install &&
11866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11867 # AIX install. It has an incompatible calling convention.
11868 :
11869 elif test $ac_prog = install &&
11870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11871 # program-specific install script used by HP pwplus--don't use.
11872 :
11873 else
11874 rm -rf conftest.one conftest.two conftest.dir
11875 echo one > conftest.one
11876 echo two > conftest.two
11877 mkdir conftest.dir
11878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11879 test -s conftest.one && test -s conftest.two &&
11880 test -s conftest.dir/conftest.one &&
11881 test -s conftest.dir/conftest.two
11882 then
11883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11884 break 3
11885 fi
11886 fi
11887 fi
11888 done
11889 done
11890 ;;
11891 esac
11892
11893 done
11894 IFS=$as_save_IFS
11895
11896 rm -rf conftest.one conftest.two conftest.dir
11897
11898 fi
11899 if test "${ac_cv_path_install+set}" = set; then
11900 INSTALL=$ac_cv_path_install
11901 else
11902 # As a last resort, use the slow shell script. Don't cache a
11903 # value for INSTALL within a source directory, because that will
11904 # break other packages using the cache if that directory is
11905 # removed, or if the value is a relative name.
11906 INSTALL=$ac_install_sh
11907 fi
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11910 $as_echo "$INSTALL" >&6; }
11911
11912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11913 # It thinks the first close brace ends the variable substitution.
11914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11915
11916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11917
11918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11919
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11921 $as_echo_n "checking whether ln -s works... " >&6; }
11922 LN_S=$as_ln_s
11923 if test "$LN_S" = "ln -s"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11928 $as_echo "no, using $LN_S" >&6; }
11929 fi
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939 # Warn if the user specified libbind, which is now deprecated
11940 # Check whether --enable-libbind was given.
11941 if test "${enable_libbind+set}" = set; then :
11942 enableval=$enable_libbind;
11943 fi
11944
11945
11946 case "$enable_libbind" in
11947 yes)
11948 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
11949 It is available from http://www.isc.org as a separate download." "$LINENO" 5
11950 ;;
11951 no|'')
11952 ;;
11953 esac
11954
11955 # Check whether --enable-buffer_useinline was given.
11956 if test "${enable_buffer_useinline+set}" = set; then :
11957 enableval=$enable_buffer_useinline; if test yes = "${enable}"
11958 then
11959
11960 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
11961
11962 fi
11963 else
11964 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
11965
11966 fi
11967
11968
11969 # Check whether --enable-warn_shadow was given.
11970 if test "${enable_warn_shadow+set}" = set; then :
11971 enableval=$enable_warn_shadow;
11972 fi
11973
11974
11975 # Check whether --enable-warn_error was given.
11976 if test "${enable_warn_error+set}" = set; then :
11977 enableval=$enable_warn_error;
11978 fi
11979
11980
11981 # Check whether --enable-developer was given.
11982 if test "${enable_developer+set}" = set; then :
11983 enableval=$enable_developer;
11984 fi
11985
11986 XTARGETS=
11987 case "$enable_developer" in
11988 yes)
11989 STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1 -DNS_HOOKS_ENABLE=1"
11990 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
11991 test "${enable_querytrace+set}" = set || enable_querytrace=yes
11992 test "${with_atf+set}" = set || with_atf=yes
11993 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
11994 test "${enable_symtable+set}" = set || enable_symtable=all
11995 test "${enable_warn_error+set}" = set || enable_warn_error=yes
11996 test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
11997 test "${with_zlib+set}" = set || with_zlib=yes
11998 XTARGETS='${XTARGETS}'
11999 ;;
12000 esac
12001
12002
12003 # American Fuzzy Lop
12004 # Check whether --enable-afl was given.
12005 if test "${enable_afl+set}" = set; then :
12006 enableval=$enable_afl;
12007 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
12008
12009 fi
12010
12011 case "$enable_afl" in
12012 yes)
12013 LIBS="$LIBS -lpthread"
12014 ;;
12015 esac
12016
12017
12018 #libseccomp sandboxing
12019 for ac_func in getrandom
12020 do :
12021 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
12022 if test "x$ac_cv_func_getrandom" = xyes; then :
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_GETRANDOM 1
12025 _ACEOF
12026
12027 fi
12028 done
12029
12030 # Check whether --enable-seccomp was given.
12031 if test "${enable_seccomp+set}" = set; then :
12032 enableval=$enable_seccomp;
12033 fi
12034
12035 case "$enable_seccomp" in
12036 yes)
12037 case $host_os in
12038 linux*)
12039 ;;
12040 *)
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&5
12042 $as_echo "$as_me: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&2;}
12043 enable_seccomp=no
12044 ;;
12045 esac
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
12047 $as_echo_n "checking for library containing seccomp_init... " >&6; }
12048 if ${ac_cv_search_seccomp_init+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_func_search_save_LIBS=$LIBS
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char seccomp_init ();
12062 int
12063 main ()
12064 {
12065 return seccomp_init ();
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 for ac_lib in '' seccomp; do
12071 if test -z "$ac_lib"; then
12072 ac_res="none required"
12073 else
12074 ac_res=-l$ac_lib
12075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12076 fi
12077 if ac_fn_c_try_link "$LINENO"; then :
12078 ac_cv_search_seccomp_init=$ac_res
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext
12082 if ${ac_cv_search_seccomp_init+:} false; then :
12083 break
12084 fi
12085 done
12086 if ${ac_cv_search_seccomp_init+:} false; then :
12087
12088 else
12089 ac_cv_search_seccomp_init=no
12090 fi
12091 rm conftest.$ac_ext
12092 LIBS=$ac_func_search_save_LIBS
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
12095 $as_echo "$ac_cv_search_seccomp_init" >&6; }
12096 ac_res=$ac_cv_search_seccomp_init
12097 if test "$ac_res" != no; then :
12098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12099
12100 fi
12101
12102 if test "X$ac_cv_search_seccomp_init" = "X-lseccomp" ; then
12103 if test "$cross_compiling" = yes; then :
12104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12106 as_fn_error $? "cannot run test program while cross compiling
12107 See \`config.log' for more details" "$LINENO" 5; }
12108 else
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111
12112 #include <stdio.h>
12113 #include <stdlib.h>
12114 #include <errno.h>
12115 #include <sys/prctl.h>
12116 #include <linux/seccomp.h>
12117
12118 int main(void)
12119 {
12120 int ret;
12121
12122 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
12123 if (ret < 0) {
12124 switch (errno) {
12125 case ENOSYS:
12126 return 1;
12127 case EINVAL:
12128 return 1;
12129 default:
12130 return 1;
12131 }
12132 }
12133 ret =
12134 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
12135 if (ret < 0) {
12136 switch (errno) {
12137 case EINVAL:
12138 return 1;
12139 case EFAULT:
12140 return 0;
12141 default:
12142 return 1;
12143 }
12144 }
12145 return 1;
12146 }
12147
12148
12149 _ACEOF
12150 if ac_fn_c_try_run "$LINENO"; then :
12151
12152 $as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
12153
12154
12155 fi
12156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12157 conftest.$ac_objext conftest.beam conftest.$ac_ext
12158 fi
12159
12160 fi
12161 ;;
12162 *)
12163 ;;
12164 esac
12165
12166 #
12167 # Make very sure that these are the first files processed by
12168 # config.status, since we use the processed output as the input for
12169 # AC_SUBST_FILE() substitutions in other files.
12170 #
12171 ac_config_files="$ac_config_files make/rules make/includes"
12172
12173
12174 # Extract the first word of "ar", so it can be a program name with args.
12175 set dummy ar; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_path_AR+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 case $AR in
12182 [\\/]* | ?:[\\/]*)
12183 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12184 ;;
12185 *)
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12188 do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197 done
12198 done
12199 IFS=$as_save_IFS
12200
12201 ;;
12202 esac
12203 fi
12204 AR=$ac_cv_path_AR
12205 if test -n "$AR"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12207 $as_echo "$AR" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213
12214 ARFLAGS="cruv"
12215
12216
12217
12218 # The POSIX ln(1) program. Non-POSIX systems may substitute
12219 # "copy" or something.
12220 LN=ln
12221
12222
12223 case "$AR" in
12224 "")
12225 as_fn_error $? "
12226 ar program not found. Please fix your PATH to include the directory in
12227 which ar resides, or set AR in the environment with the full path to ar.
12228 " "$LINENO" 5
12229
12230 ;;
12231 esac
12232
12233 #
12234 # Etags.
12235 #
12236 for ac_prog in etags emacs-etags
12237 do
12238 # Extract the first word of "$ac_prog", so it can be a program name with args.
12239 set dummy $ac_prog; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if ${ac_cv_path_ETAGS+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 case $ETAGS in
12246 [\\/]* | ?:[\\/]*)
12247 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
12248 ;;
12249 *)
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12252 do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12257 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261 done
12262 done
12263 IFS=$as_save_IFS
12264
12265 ;;
12266 esac
12267 fi
12268 ETAGS=$ac_cv_path_ETAGS
12269 if test -n "$ETAGS"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
12271 $as_echo "$ETAGS" >&6; }
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278 test -n "$ETAGS" && break
12279 done
12280
12281
12282 #
12283 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
12284 # GNU emacs etags, and it requires the -L flag.
12285 #
12286 if test "X$ETAGS" != "X"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
12288 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
12289 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291 $as_echo "yes" >&6; }
12292 ETAGS="$ETAGS -L"
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 fi
12298
12299
12300 #
12301 # Perl is optional; it is used only by some of the system test scripts.
12302 # Note: the backtrace feature (see below) uses perl to build the symbol table,
12303 # but it still compiles without perl, in which case an empty table will be used.
12304 #
12305 for ac_prog in perl5 perl
12306 do
12307 # Extract the first word of "$ac_prog", so it can be a program name with args.
12308 set dummy $ac_prog; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if ${ac_cv_path_PERL+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 case $PERL in
12315 [\\/]* | ?:[\\/]*)
12316 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12317 ;;
12318 *)
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12321 do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12326 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 break 2
12329 fi
12330 done
12331 done
12332 IFS=$as_save_IFS
12333
12334 ;;
12335 esac
12336 fi
12337 PERL=$ac_cv_path_PERL
12338 if test -n "$PERL"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12340 $as_echo "$PERL" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346
12347 test -n "$PERL" && break
12348 done
12349
12350
12351
12352 #
12353 # Python is also optional; it is used by the tools in bin/python.
12354 # If python is unavailable, we simply don't build those.
12355 #
12356
12357 # Check whether --with-python was given.
12358 if test "${with_python+set}" = set; then :
12359 withval=$with_python; use_python="$withval"
12360 else
12361 use_python="unspec"
12362 fi
12363
12364
12365 # Check whether --with-python-install-dir was given.
12366 if test "${with_python_install_dir+set}" = set; then :
12367 withval=$with_python_install_dir; use_python_install_dir="$withval"
12368 else
12369 use_python_install_dir="unspec"
12370 fi
12371
12372
12373 python="python python3 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
12374
12375 testargparse='try: import argparse
12376 except: exit(1)'
12377
12378 testply='try: from ply import *
12379 except: exit(1)'
12380
12381 testminvers='import sys
12382 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
12383 exit(1)'
12384
12385 case "$use_python" in
12386 no)
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5
12388 $as_echo_n "checking for python support... " >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12390 $as_echo "disabled" >&6; }
12391 ;;
12392 unspec|yes|*)
12393 case "$use_python" in
12394 unspec|yes|'')
12395 for p in $python
12396 do
12397 for ac_prog in $p
12398 do
12399 # Extract the first word of "$ac_prog", so it can be a program name with args.
12400 set dummy $ac_prog; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_path_PYTHON+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 case $PYTHON in
12407 [\\/]* | ?:[\\/]*)
12408 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12409 ;;
12410 *)
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12418 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 break 2
12421 fi
12422 done
12423 done
12424 IFS=$as_save_IFS
12425
12426 ;;
12427 esac
12428 fi
12429 PYTHON=$ac_cv_path_PYTHON
12430 if test -n "$PYTHON"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12432 $as_echo "$PYTHON" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437
12438
12439 test -n "$PYTHON" && break
12440 done
12441
12442 if test "X$PYTHON" = "X"; then
12443 continue;
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python2 version >= 2.7 or python3 version >= 3.2" >&5
12446 $as_echo_n "checking python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
12447 if ${PYTHON:-false} -c "$testminvers"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12449 $as_echo "found" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12452 $as_echo "not found" >&6; }
12453 unset ac_cv_path_PYTHON
12454 unset PYTHON
12455 continue
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5
12458 $as_echo_n "checking python module 'argparse'... " >&6; }
12459 if ${PYTHON:-false} -c "$testargparse"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12461 $as_echo "found" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12464 $as_echo "not found" >&6; }
12465 unset ac_cv_path_PYTHON
12466 unset PYTHON
12467 continue
12468 fi
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'ply'" >&5
12471 $as_echo_n "checking python module 'ply'... " >&6; }
12472 if ${PYTHON:-false} -c "$testply"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12474 $as_echo "found" >&6; }
12475 break
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12478 $as_echo "not found" >&6; }
12479 unset ac_cv_path_PYTHON
12480 unset PYTHON
12481 fi
12482 done
12483 if test "X$PYTHON" != "X"
12484 then
12485 case "$use_python_install_dir" in
12486 unspec)
12487 PYTHON_INSTALL_DIR=""
12488 PYTHON_INSTALL_LIB=""
12489 ;;
12490 *)
12491 PYTHON_INSTALL_DIR="$use_python_install_dir"
12492 PYTHON_INSTALL_LIB="--install-lib=$use_python_install_dir"
12493 ;;
12494 esac
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5
12497 $as_echo_n "checking for python support... " >&6; }
12498 case "$use_python" in
12499 unspec)
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12501 $as_echo "disabled" >&6; }
12502 ;;
12503 yes)
12504 as_fn_error $? "missing python" "$LINENO" 5
12505 ;;
12506 esac
12507 fi
12508 ;;
12509 *)
12510 case "$use_python" in
12511 /*)
12512 PYTHON="$use_python"
12513 ;;
12514 *)
12515 for ac_prog in $use_python
12516 do
12517 # Extract the first word of "$ac_prog", so it can be a program name with args.
12518 set dummy $ac_prog; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_path_PYTHON+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 case $PYTHON in
12525 [\\/]* | ?:[\\/]*)
12526 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12527 ;;
12528 *)
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12531 do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12536 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540 done
12541 done
12542 IFS=$as_save_IFS
12543
12544 ;;
12545 esac
12546 fi
12547 PYTHON=$ac_cv_path_PYTHON
12548 if test -n "$PYTHON"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12550 $as_echo "$PYTHON" >&6; }
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12554 fi
12555
12556
12557 test -n "$PYTHON" && break
12558 done
12559
12560 ;;
12561 esac
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python2 version >= 2.7 or python3 version >= 3.2" >&5
12563 $as_echo_n "checking python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
12564 if ${PYTHON:-false} -c "$testminvers"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12566 $as_echo "found" >&6; }
12567 else
12568 as_fn_error $? "not found" "$LINENO" 5
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5
12571 $as_echo_n "checking python module 'argparse'... " >&6; }
12572 if ${PYTHON:-false} -c "$testargparse"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
12574 $as_echo "found, using $PYTHON" >&6; }
12575 else
12576 as_fn_error $? "not found" "$LINENO" 5
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'ply'" >&5
12579 $as_echo_n "checking python module 'ply'... " >&6; }
12580 if ${PYTHON:-false} -c "$testply"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
12582 $as_echo "found, using $PYTHON" >&6; }
12583 else
12584 as_fn_error $? "not found" "$LINENO" 5
12585 fi
12586 ;;
12587 esac
12588 ;;
12589 esac
12590
12591 PYTHON_TOOLS=''
12592 CHECKDS=''
12593 COVERAGE=''
12594 KEYMGR=''
12595 if test "X$PYTHON" != "X"; then
12596 PYTHON_TOOLS=python
12597 CHECKDS=checkds
12598 COVERAGE=coverage
12599 KEYMGR=keymgr
12600 fi
12601
12602
12603
12604
12605
12606
12607
12608 #
12609 # Special processing of paths depending on whether --prefix,
12610 # --sysconfdir or --localstatedir arguments were given. What's
12611 # desired is some compatibility with the way previous versions
12612 # of BIND built; they defaulted to /usr/local for most parts of
12613 # the installation, but named.boot/named.conf was in /etc
12614 # and named.pid was in /var/run.
12615 #
12616 # So ... if none of --prefix, --sysconfdir or --localstatedir are
12617 # specified, set things up that way. If --prefix is given, use
12618 # it for sysconfdir and localstatedir the way configure normally
12619 # would. To change the prefix for everything but leave named.conf
12620 # in /etc or named.pid in /var/run, then do this the usual configure way:
12621 # ./configure --prefix=/somewhere --sysconfdir=/etc
12622 # ./configure --prefix=/somewhere --localstatedir=/var
12623 #
12624 # To put named.conf and named.pid in /usr/local with everything else,
12625 # set the prefix explicitly to /usr/local even though that's the default:
12626 # ./configure --prefix=/usr/local
12627 #
12628 case "$prefix" in
12629 NONE)
12630 case "$sysconfdir" in
12631 '${prefix}/etc')
12632 sysconfdir=/etc
12633 ;;
12634 esac
12635 case "$localstatedir" in
12636 '${prefix}/var')
12637 localstatedir=/var
12638 ;;
12639 esac
12640 ;;
12641 esac
12642 expanded_sysconfdir=`eval echo $sysconfdir`
12643
12644
12645 #
12646 # Make sure INSTALL uses an absolute path, else it will be wrong in all
12647 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
12648 # configure based on the location of the file where it is substituted.
12649 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
12650 # subdirectory of install-sh, This relative path will be wrong for all
12651 # directories more than one level down from install-sh.
12652 #
12653 case "$INSTALL" in
12654 /*)
12655 ;;
12656 *)
12657 #
12658 # Not all systems have dirname.
12659 #
12660
12661 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
12662
12663
12664 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
12665 test "X$ac_dir" = "X$ac_prog" && ac_dir=.
12666 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
12667 INSTALL="$ac_dir/$ac_prog"
12668 ;;
12669 esac
12670
12671 #
12672 # On these hosts, we really want to use cc, not gcc, even if it is
12673 # found. The gcc that these systems have will not correctly handle
12674 # pthreads.
12675 #
12676 # However, if the user sets $CC to be something, let that override
12677 # our change.
12678 #
12679 if test "X$CC" = "X" ; then
12680 case "$host" in
12681 *-dec-osf*)
12682 CC="cc"
12683 ;;
12684 *-solaris*)
12685 # Use Sun's cc if it is available, but watch
12686 # out for /usr/ucb/cc; it will never be the right
12687 # compiler to use.
12688 #
12689 # If setting CC here fails, the AC_PROG_CC done
12690 # below might still find gcc.
12691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12692 for ac_dir in $PATH; do
12693 test -z "$ac_dir" && ac_dir=.
12694 case "$ac_dir" in
12695 /usr/ucb)
12696 # exclude
12697 ;;
12698 *)
12699 if test -f "$ac_dir/cc"; then
12700 CC="$ac_dir/cc"
12701 break
12702 fi
12703 ;;
12704 esac
12705 done
12706 IFS="$ac_save_ifs"
12707 ;;
12708 *-hp-hpux*)
12709 CC="cc"
12710 ;;
12711 mips-sgi-irix*)
12712 CC="cc"
12713 ;;
12714 esac
12715 fi
12716
12717 ac_ext=c
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12722 if test -n "$ac_tool_prefix"; then
12723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if ${ac_cv_prog_CC+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 if test -n "$CC"; then
12731 ac_cv_prog_CC="$CC" # Let the user override the test.
12732 else
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12735 do
12736 IFS=$as_save_IFS
12737 test -z "$as_dir" && as_dir=.
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12742 break 2
12743 fi
12744 done
12745 done
12746 IFS=$as_save_IFS
12747
12748 fi
12749 fi
12750 CC=$ac_cv_prog_CC
12751 if test -n "$CC"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12753 $as_echo "$CC" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758
12759
12760 fi
12761 if test -z "$ac_cv_prog_CC"; then
12762 ac_ct_CC=$CC
12763 # Extract the first word of "gcc", so it can be a program name with args.
12764 set dummy gcc; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$ac_ct_CC"; then
12771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12772 else
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12775 do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780 ac_cv_prog_ac_ct_CC="gcc"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784 done
12785 done
12786 IFS=$as_save_IFS
12787
12788 fi
12789 fi
12790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12791 if test -n "$ac_ct_CC"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12793 $as_echo "$ac_ct_CC" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798
12799 if test "x$ac_ct_CC" = x; then
12800 CC=""
12801 else
12802 case $cross_compiling:$ac_tool_warned in
12803 yes:)
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12806 ac_tool_warned=yes ;;
12807 esac
12808 CC=$ac_ct_CC
12809 fi
12810 else
12811 CC="$ac_cv_prog_CC"
12812 fi
12813
12814 if test -z "$CC"; then
12815 if test -n "$ac_tool_prefix"; then
12816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12817 set dummy ${ac_tool_prefix}cc; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if ${ac_cv_prog_CC+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 if test -n "$CC"; then
12824 ac_cv_prog_CC="$CC" # Let the user override the test.
12825 else
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_prog_CC="${ac_tool_prefix}cc"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837 done
12838 done
12839 IFS=$as_save_IFS
12840
12841 fi
12842 fi
12843 CC=$ac_cv_prog_CC
12844 if test -n "$CC"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12846 $as_echo "$CC" >&6; }
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 fi
12851
12852
12853 fi
12854 fi
12855 if test -z "$CC"; then
12856 # Extract the first word of "cc", so it can be a program name with args.
12857 set dummy cc; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859 $as_echo_n "checking for $ac_word... " >&6; }
12860 if ${ac_cv_prog_CC+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 if test -n "$CC"; then
12864 ac_cv_prog_CC="$CC" # Let the user override the test.
12865 else
12866 ac_prog_rejected=no
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12875 ac_prog_rejected=yes
12876 continue
12877 fi
12878 ac_cv_prog_CC="cc"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12881 fi
12882 done
12883 done
12884 IFS=$as_save_IFS
12885
12886 if test $ac_prog_rejected = yes; then
12887 # We found a bogon in the path, so make sure we never use it.
12888 set dummy $ac_cv_prog_CC
12889 shift
12890 if test $# != 0; then
12891 # We chose a different compiler from the bogus one.
12892 # However, it has the same basename, so the bogon will be chosen
12893 # first if we set CC to just the basename; use the full file name.
12894 shift
12895 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12896 fi
12897 fi
12898 fi
12899 fi
12900 CC=$ac_cv_prog_CC
12901 if test -n "$CC"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12903 $as_echo "$CC" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 fi
12911 if test -z "$CC"; then
12912 if test -n "$ac_tool_prefix"; then
12913 for ac_prog in cl.exe
12914 do
12915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if ${ac_cv_prog_CC+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 if test -n "$CC"; then
12923 ac_cv_prog_CC="$CC" # Let the user override the test.
12924 else
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12927 do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12935 fi
12936 done
12937 done
12938 IFS=$as_save_IFS
12939
12940 fi
12941 fi
12942 CC=$ac_cv_prog_CC
12943 if test -n "$CC"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12945 $as_echo "$CC" >&6; }
12946 else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12949 fi
12950
12951
12952 test -n "$CC" && break
12953 done
12954 fi
12955 if test -z "$CC"; then
12956 ac_ct_CC=$CC
12957 for ac_prog in cl.exe
12958 do
12959 # Extract the first word of "$ac_prog", so it can be a program name with args.
12960 set dummy $ac_prog; ac_word=$2
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962 $as_echo_n "checking for $ac_word... " >&6; }
12963 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 if test -n "$ac_ct_CC"; then
12967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12968 else
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12971 do
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12976 ac_cv_prog_ac_ct_CC="$ac_prog"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12979 fi
12980 done
12981 done
12982 IFS=$as_save_IFS
12983
12984 fi
12985 fi
12986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12987 if test -n "$ac_ct_CC"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12989 $as_echo "$ac_ct_CC" >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12993 fi
12994
12995
12996 test -n "$ac_ct_CC" && break
12997 done
12998
12999 if test "x$ac_ct_CC" = x; then
13000 CC=""
13001 else
13002 case $cross_compiling:$ac_tool_warned in
13003 yes:)
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13006 ac_tool_warned=yes ;;
13007 esac
13008 CC=$ac_ct_CC
13009 fi
13010 fi
13011
13012 fi
13013
13014
13015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13017 as_fn_error $? "no acceptable C compiler found in \$PATH
13018 See \`config.log' for more details" "$LINENO" 5; }
13019
13020 # Provide some information about the compiler.
13021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13022 set X $ac_compile
13023 ac_compiler=$2
13024 for ac_option in --version -v -V -qversion; do
13025 { { ac_try="$ac_compiler $ac_option >&5"
13026 case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13029 esac
13030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13031 $as_echo "$ac_try_echo"; } >&5
13032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13033 ac_status=$?
13034 if test -s conftest.err; then
13035 sed '10a\
13036 ... rest of stderr output deleted ...
13037 10q' conftest.err >conftest.er1
13038 cat conftest.er1 >&5
13039 fi
13040 rm -f conftest.er1 conftest.err
13041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042 test $ac_status = 0; }
13043 done
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13047 if ${ac_cv_c_compiler_gnu+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052
13053 int
13054 main ()
13055 {
13056 #ifndef __GNUC__
13057 choke me
13058 #endif
13059
13060 ;
13061 return 0;
13062 }
13063 _ACEOF
13064 if ac_fn_c_try_compile "$LINENO"; then :
13065 ac_compiler_gnu=yes
13066 else
13067 ac_compiler_gnu=no
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13071
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13075 if test $ac_compiler_gnu = yes; then
13076 GCC=yes
13077 else
13078 GCC=
13079 fi
13080 ac_test_CFLAGS=${CFLAGS+set}
13081 ac_save_CFLAGS=$CFLAGS
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13084 if ${ac_cv_prog_cc_g+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 ac_save_c_werror_flag=$ac_c_werror_flag
13088 ac_c_werror_flag=yes
13089 ac_cv_prog_cc_g=no
13090 CFLAGS="-g"
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093
13094 int
13095 main ()
13096 {
13097
13098 ;
13099 return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103 ac_cv_prog_cc_g=yes
13104 else
13105 CFLAGS=""
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108
13109 int
13110 main ()
13111 {
13112
13113 ;
13114 return 0;
13115 }
13116 _ACEOF
13117 if ac_fn_c_try_compile "$LINENO"; then :
13118
13119 else
13120 ac_c_werror_flag=$ac_save_c_werror_flag
13121 CFLAGS="-g"
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124
13125 int
13126 main ()
13127 {
13128
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_c_try_compile "$LINENO"; then :
13134 ac_cv_prog_cc_g=yes
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 ac_c_werror_flag=$ac_save_c_werror_flag
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13144 $as_echo "$ac_cv_prog_cc_g" >&6; }
13145 if test "$ac_test_CFLAGS" = set; then
13146 CFLAGS=$ac_save_CFLAGS
13147 elif test $ac_cv_prog_cc_g = yes; then
13148 if test "$GCC" = yes; then
13149 CFLAGS="-g -O2"
13150 else
13151 CFLAGS="-g"
13152 fi
13153 else
13154 if test "$GCC" = yes; then
13155 CFLAGS="-O2"
13156 else
13157 CFLAGS=
13158 fi
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13162 if ${ac_cv_prog_cc_c89+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 ac_cv_prog_cc_c89=no
13166 ac_save_CC=$CC
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169 #include <stdarg.h>
13170 #include <stdio.h>
13171 struct stat;
13172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13173 struct buf { int x; };
13174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13175 static char *e (p, i)
13176 char **p;
13177 int i;
13178 {
13179 return p[i];
13180 }
13181 static char *f (char * (*g) (char **, int), char **p, ...)
13182 {
13183 char *s;
13184 va_list v;
13185 va_start (v,p);
13186 s = g (p, va_arg (v,int));
13187 va_end (v);
13188 return s;
13189 }
13190
13191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13192 function prototypes and stuff, but not '\xHH' hex character constants.
13193 These don't provoke an error unfortunately, instead are silently treated
13194 as 'x'. The following induces an error, until -std is added to get
13195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13196 array size at least. It's necessary to write '\x00'==0 to get something
13197 that's true only with -std. */
13198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13199
13200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13201 inside strings and character constants. */
13202 #define FOO(x) 'x'
13203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13204
13205 int test (int i, double x);
13206 struct s1 {int (*f) (int a);};
13207 struct s2 {int (*f) (double a);};
13208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13209 int argc;
13210 char **argv;
13211 int
13212 main ()
13213 {
13214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13221 do
13222 CC="$ac_save_CC $ac_arg"
13223 if ac_fn_c_try_compile "$LINENO"; then :
13224 ac_cv_prog_cc_c89=$ac_arg
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext
13227 test "x$ac_cv_prog_cc_c89" != "xno" && break
13228 done
13229 rm -f conftest.$ac_ext
13230 CC=$ac_save_CC
13231
13232 fi
13233 # AC_CACHE_VAL
13234 case "x$ac_cv_prog_cc_c89" in
13235 x)
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13237 $as_echo "none needed" >&6; } ;;
13238 xno)
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13240 $as_echo "unsupported" >&6; } ;;
13241 *)
13242 CC="$CC $ac_cv_prog_cc_c89"
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13245 esac
13246 if test "x$ac_cv_prog_cc_c89" != xno; then :
13247
13248 fi
13249
13250 ac_ext=c
13251 ac_cpp='$CPP $CPPFLAGS'
13252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13255
13256
13257 #
13258 # gcc's optimiser is broken at -02 for ultrasparc
13259 #
13260 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
13261 case "$host" in
13262 sparc-*)
13263 CCFLAGS="-g -O1"
13264 ;;
13265 esac
13266 fi
13267
13268 #
13269 # OS dependent CC flags
13270 #
13271 case "$host" in
13272 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
13273 # -D_XOPEN_SOURCE_EXTENDED.
13274 *-dec-osf*)
13275 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
13276 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
13277 ;;
13278 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
13279 *-hp-hpux*)
13280 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
13281 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
13282 LIBS="-lxnet $LIBS"
13283 ;;
13284 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
13285 *-solaris*)
13286 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
13287 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
13288 ;;
13289 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
13290 # parts of the IPv6 Advanced Socket API as a result. This is stupid
13291 # as it breaks how the two halves (Basic and Advanced) of the IPv6
13292 # Socket API were designed to be used but we have to live with it.
13293 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
13294 *-linux* | *-kfreebsd*-gnu*)
13295 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
13296 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
13297 ;;
13298 #
13299 # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use.
13300 # Setting this is sufficient to select the correct behavior for BIND 9.
13301 #
13302 *-darwin*)
13303 STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542"
13304 CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542"
13305 ;;
13306 esac
13307
13308 #
13309 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
13310 #
13311 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
13312 CCNOOPT="-O0"
13313 fi
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13316 $as_echo_n "checking for ANSI C header files... " >&6; }
13317 if ${ac_cv_header_stdc+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 #include <stdlib.h>
13323 #include <stdarg.h>
13324 #include <string.h>
13325 #include <float.h>
13326
13327 int
13328 main ()
13329 {
13330
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_compile "$LINENO"; then :
13336 ac_cv_header_stdc=yes
13337 else
13338 ac_cv_header_stdc=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341
13342 if test $ac_cv_header_stdc = yes; then
13343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346 #include <string.h>
13347
13348 _ACEOF
13349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13350 $EGREP "memchr" >/dev/null 2>&1; then :
13351
13352 else
13353 ac_cv_header_stdc=no
13354 fi
13355 rm -f conftest*
13356
13357 fi
13358
13359 if test $ac_cv_header_stdc = yes; then
13360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <stdlib.h>
13364
13365 _ACEOF
13366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13367 $EGREP "free" >/dev/null 2>&1; then :
13368
13369 else
13370 ac_cv_header_stdc=no
13371 fi
13372 rm -f conftest*
13373
13374 fi
13375
13376 if test $ac_cv_header_stdc = yes; then
13377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13378 if test "$cross_compiling" = yes; then :
13379 :
13380 else
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #include <ctype.h>
13384 #include <stdlib.h>
13385 #if ((' ' & 0x0FF) == 0x020)
13386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13388 #else
13389 # define ISLOWER(c) \
13390 (('a' <= (c) && (c) <= 'i') \
13391 || ('j' <= (c) && (c) <= 'r') \
13392 || ('s' <= (c) && (c) <= 'z'))
13393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13394 #endif
13395
13396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13397 int
13398 main ()
13399 {
13400 int i;
13401 for (i = 0; i < 256; i++)
13402 if (XOR (islower (i), ISLOWER (i))
13403 || toupper (i) != TOUPPER (i))
13404 return 2;
13405 return 0;
13406 }
13407 _ACEOF
13408 if ac_fn_c_try_run "$LINENO"; then :
13409
13410 else
13411 ac_cv_header_stdc=no
13412 fi
13413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13414 conftest.$ac_objext conftest.beam conftest.$ac_ext
13415 fi
13416
13417 fi
13418 fi
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13420 $as_echo "$ac_cv_header_stdc" >&6; }
13421 if test $ac_cv_header_stdc = yes; then
13422
13423 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13424
13425 fi
13426
13427
13428 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
13429 do :
13430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13432 #ifdef HAVE_SYS_PARAM_H
13433 # include <sys/param.h>
13434 #endif
13435 #ifdef HAVE_SYS_SOCKET_H
13436 # include <sys/socket.h>
13437 #endif
13438
13439 "
13440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13441 cat >>confdefs.h <<_ACEOF
13442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13443 _ACEOF
13444
13445 fi
13446
13447 done
13448
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13451 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13452 if ${ac_cv_c_const+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457
13458 int
13459 main ()
13460 {
13461
13462 #ifndef __cplusplus
13463 /* Ultrix mips cc rejects this sort of thing. */
13464 typedef int charset[2];
13465 const charset cs = { 0, 0 };
13466 /* SunOS 4.1.1 cc rejects this. */
13467 char const *const *pcpcc;
13468 char **ppc;
13469 /* NEC SVR4.0.2 mips cc rejects this. */
13470 struct point {int x, y;};
13471 static struct point const zero = {0,0};
13472 /* AIX XL C 1.02.0.0 rejects this.
13473 It does not let you subtract one const X* pointer from another in
13474 an arm of an if-expression whose if-part is not a constant
13475 expression */
13476 const char *g = "string";
13477 pcpcc = &g + (g ? g-g : 0);
13478 /* HPUX 7.0 cc rejects these. */
13479 ++pcpcc;
13480 ppc = (char**) pcpcc;
13481 pcpcc = (char const *const *) ppc;
13482 { /* SCO 3.2v4 cc rejects this sort of thing. */
13483 char tx;
13484 char *t = &tx;
13485 char const *s = 0 ? (char *) 0 : (char const *) 0;
13486
13487 *t++ = 0;
13488 if (s) return 0;
13489 }
13490 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13491 int x[] = {25, 17};
13492 const int *foo = &x[0];
13493 ++foo;
13494 }
13495 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13496 typedef const int *iptr;
13497 iptr p = 0;
13498 ++p;
13499 }
13500 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13501 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13502 struct s { int j; const int *ap[3]; } bx;
13503 struct s *b = &bx; b->j = 5;
13504 }
13505 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13506 const int foo = 10;
13507 if (!foo) return 0;
13508 }
13509 return !cs[0] && !zero.x;
13510 #endif
13511
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"; then :
13517 ac_cv_c_const=yes
13518 else
13519 ac_cv_c_const=no
13520 fi
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13524 $as_echo "$ac_cv_c_const" >&6; }
13525 if test $ac_cv_c_const = no; then
13526
13527 $as_echo "#define const /**/" >>confdefs.h
13528
13529 fi
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13532 $as_echo_n "checking for inline... " >&6; }
13533 if ${ac_cv_c_inline+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 ac_cv_c_inline=no
13537 for ac_kw in inline __inline__ __inline; do
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #ifndef __cplusplus
13541 typedef int foo_t;
13542 static $ac_kw foo_t static_foo () {return 0; }
13543 $ac_kw foo_t foo () {return 0; }
13544 #endif
13545
13546 _ACEOF
13547 if ac_fn_c_try_compile "$LINENO"; then :
13548 ac_cv_c_inline=$ac_kw
13549 fi
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 test "$ac_cv_c_inline" != no && break
13552 done
13553
13554 fi
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13556 $as_echo "$ac_cv_c_inline" >&6; }
13557
13558 case $ac_cv_c_inline in
13559 inline | yes) ;;
13560 *)
13561 case $ac_cv_c_inline in
13562 no) ac_val=;;
13563 *) ac_val=$ac_cv_c_inline;;
13564 esac
13565 cat >>confdefs.h <<_ACEOF
13566 #ifndef __cplusplus
13567 #define inline $ac_val
13568 #endif
13569 _ACEOF
13570 ;;
13571 esac
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13574 $as_echo_n "checking for working volatile... " >&6; }
13575 if ${ac_cv_c_volatile+:} false; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580
13581 int
13582 main ()
13583 {
13584
13585 volatile int x;
13586 int * volatile y = (int *) 0;
13587 return !x && !y;
13588 ;
13589 return 0;
13590 }
13591 _ACEOF
13592 if ac_fn_c_try_compile "$LINENO"; then :
13593 ac_cv_c_volatile=yes
13594 else
13595 ac_cv_c_volatile=no
13596 fi
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13600 $as_echo "$ac_cv_c_volatile" >&6; }
13601 if test $ac_cv_c_volatile = no; then
13602
13603 $as_echo "#define volatile /**/" >>confdefs.h
13604
13605 fi
13606
13607 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
13608 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
13609 $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
13610
13611 fi
13612
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13615 $as_echo_n "checking for flexible array members... " >&6; }
13616 if ${ac_cv_c_flexmember+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 #include <stdlib.h>
13622 #include <stdio.h>
13623 #include <stddef.h>
13624 struct s { int n; double d[]; };
13625 int
13626 main ()
13627 {
13628 int m = getchar ();
13629 struct s *p = malloc (offsetof (struct s, d)
13630 + m * sizeof (double));
13631 p->d[0] = 0.0;
13632 return p->d != (double *) NULL;
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 ac_cv_c_flexmember=yes
13639 else
13640 ac_cv_c_flexmember=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13645 $as_echo "$ac_cv_c_flexmember" >&6; }
13646 if test $ac_cv_c_flexmember = yes; then
13647
13648 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13649
13650 else
13651 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13652
13653 fi
13654
13655
13656 #
13657 # Check for the existence of mmap to enable the fast format zones
13658 #
13659 for ac_func in mmap
13660 do :
13661 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13662 if test "x$ac_cv_func_mmap" = xyes; then :
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_MMAP 1
13665 _ACEOF
13666
13667 fi
13668 done
13669
13670
13671 #
13672 # Older versions of HP/UX don't define seteuid() and setegid()
13673 #
13674 for ac_func in seteuid setresuid
13675 do :
13676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 _ACEOF
13682
13683 fi
13684 done
13685
13686 for ac_func in setegid setresgid
13687 do :
13688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13691 cat >>confdefs.h <<_ACEOF
13692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13693 _ACEOF
13694
13695 fi
13696 done
13697
13698
13699 # BSDI doesn't have ftello fseeko
13700 for ac_func in ftello fseeko
13701 do :
13702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13705 cat >>confdefs.h <<_ACEOF
13706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13707 _ACEOF
13708
13709 fi
13710 done
13711
13712
13713 #
13714 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
13715 # is reported to not support "static inline" (RT #1212).
13716 #
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5
13718 $as_echo_n "checking for static inline breakage... " >&6; }
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721
13722 static inline int foo1() {
13723 return 0;
13724 }
13725
13726 static inline int foo2() {
13727 return foo1();
13728 }
13729
13730 int
13731 main ()
13732 {
13733 foo1();
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13741 else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13743 $as_echo "yes" >&6; }
13744
13745 $as_echo "#define inline /**/" >>confdefs.h
13746
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749
13750 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13751 if test "x$ac_cv_type_size_t" = xyes; then :
13752
13753 else
13754
13755 cat >>confdefs.h <<_ACEOF
13756 #define size_t unsigned int
13757 _ACEOF
13758
13759 fi
13760
13761 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13762 if test "x$ac_cv_type_ssize_t" = xyes; then :
13763
13764 else
13765
13766 cat >>confdefs.h <<_ACEOF
13767 #define ssize_t int
13768 _ACEOF
13769
13770 fi
13771
13772 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13773 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13774
13775 else
13776
13777 cat >>confdefs.h <<_ACEOF
13778 #define uintptr_t unsigned long
13779 _ACEOF
13780
13781 fi
13782
13783 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13784 #include <sys/types.h>
13785 #include <sys/socket.h>
13786
13787 "
13788 if test "x$ac_cv_type_socklen_t" = xyes; then :
13789 $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h
13790
13791 else
13792
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13795
13796 #include <sys/types.h>
13797 #include <sys/socket.h>
13798 int getsockname(int, struct sockaddr *, size_t *);
13799
13800 int
13801 main ()
13802 {
13803
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"; then :
13809 $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h
13810
13811 else
13812 $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h
13813
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816
13817 fi
13818
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13821 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13822 if ${ac_cv_header_time+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 #include <sys/types.h>
13828 #include <sys/time.h>
13829 #include <time.h>
13830
13831 int
13832 main ()
13833 {
13834 if ((struct tm *) 0)
13835 return 0;
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 if ac_fn_c_try_compile "$LINENO"; then :
13841 ac_cv_header_time=yes
13842 else
13843 ac_cv_header_time=no
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13848 $as_echo "$ac_cv_header_time" >&6; }
13849 if test $ac_cv_header_time = yes; then
13850
13851 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13852
13853 fi
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
13856 $as_echo_n "checking for long long... " >&6; }
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859
13860 int
13861 main ()
13862 {
13863 long long i = 0; return (0);
13864 ;
13865 return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_c_try_compile "$LINENO"; then :
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870 $as_echo "yes" >&6; }
13871 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
13872 else
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
13879
13880 #
13881 # check for uname library routine
13882 #
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
13884 $as_echo_n "checking for uname... " >&6; }
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887
13888 #include <sys/utsname.h>
13889 #include <stdio.h>
13890
13891 int
13892 main ()
13893 {
13894
13895 struct utsname uts;
13896 uname(&uts);
13897 printf("running on %s %s %s for %s\n",
13898 uts.sysname, uts.release, uts.version, uts.machine);
13899
13900 ;
13901 return 0;
13902 }
13903 _ACEOF
13904 if ac_fn_c_try_compile "$LINENO"; then :
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13906 $as_echo "yes" >&6; }
13907 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
13908
13909 else
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
13913 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916
13917 #
13918 # check for GCC noreturn attribute
13919 #
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
13921 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924
13925 int
13926 main ()
13927 {
13928 void foo() __attribute__((noreturn));
13929 ;
13930 return 0;
13931 }
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13935 $as_echo "yes" >&6; }
13936 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13937 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
13938 else
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 $as_echo "no" >&6; }
13941 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13942 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945
13946
13947
13948 #
13949 # check if we have lifconf
13950 #
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
13952 $as_echo_n "checking for struct lifconf... " >&6; }
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955
13956 #include <sys/types.h>
13957 #include <sys/socket.h>
13958 #include <net/if.h>
13959
13960 int
13961 main ()
13962 {
13963
13964 struct lifconf lifconf;
13965 lifconf.lifc_len = 0;
13966
13967
13968 ;
13969 return 0;
13970 }
13971 _ACEOF
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13974 $as_echo "yes" >&6; }
13975 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
13976 else
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13978 $as_echo "no" >&6; }
13979 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
13980 fi
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982
13983
13984 #
13985 # check if we have kqueue
13986 #
13987 # Check whether --enable-kqueue was given.
13988 if test "${enable_kqueue+set}" = set; then :
13989 enableval=$enable_kqueue; want_kqueue="$enableval"
13990 else
13991 want_kqueue="yes"
13992 fi
13993
13994 case $want_kqueue in
13995 yes)
13996 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13997 if test "x$ac_cv_func_kqueue" = xyes; then :
13998 ac_cv_have_kqueue=yes
13999 else
14000 ac_cv_have_kqueue=no
14001 fi
14002
14003 case $ac_cv_have_kqueue in
14004 yes)
14005 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
14006 ;;
14007 *)
14008 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
14009 ;;
14010 esac
14011 ;;
14012 *)
14013 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
14014 ;;
14015 esac
14016
14017
14018 #
14019 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
14020 # so we need to try running the code, not just test its existence.
14021 #
14022 # Check whether --enable-epoll was given.
14023 if test "${enable_epoll+set}" = set; then :
14024 enableval=$enable_epoll; want_epoll="$enableval"
14025 else
14026 want_epoll="auto"
14027 fi
14028
14029 case $want_epoll in
14030 auto)
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5
14032 $as_echo_n "checking epoll support... " >&6; }
14033 if test "$cross_compiling" = yes; then :
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
14037 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040
14041 #include <sys/epoll.h>
14042 int main() {
14043 if (epoll_create(1) < 0)
14044 return (1);
14045 return (0);
14046 }
14047
14048 _ACEOF
14049 if ac_fn_c_try_run "$LINENO"; then :
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14051 $as_echo "yes" >&6; }
14052 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
14053 else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 $as_echo "no" >&6; }
14056 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
14057 fi
14058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14059 conftest.$ac_objext conftest.beam conftest.$ac_ext
14060 fi
14061
14062 ;;
14063 yes)
14064 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
14065 ;;
14066 *)
14067 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
14068 ;;
14069 esac
14070
14071
14072 #
14073 # check if we support /dev/poll
14074 #
14075 # Check whether --enable-devpoll was given.
14076 if test "${enable_devpoll+set}" = set; then :
14077 enableval=$enable_devpoll; want_devpoll="$enableval"
14078 else
14079 want_devpoll="yes"
14080 fi
14081
14082 case $want_devpoll in
14083 yes)
14084 for ac_header in sys/devpoll.h devpoll.h
14085 do :
14086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14089 cat >>confdefs.h <<_ACEOF
14090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14091 _ACEOF
14092 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
14093
14094 else
14095 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
14096
14097 fi
14098
14099 done
14100
14101 ;;
14102 *)
14103 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
14104 ;;
14105 esac
14106
14107
14108 #
14109 # check if we need to #include sys/select.h explicitly
14110 #
14111 case $ac_cv_header_unistd_h in
14112 yes)
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5
14114 $as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117
14118 #include <sys/types.h> /* Ultrix */
14119 #include <unistd.h>
14120 int
14121 main ()
14122 {
14123 fd_set read_set; return (0);
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"; then :
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14130 $as_echo "yes" >&6; }
14131 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14135 case $ac_cv_header_sys_select_h in
14136 yes)
14137 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
14138 ;;
14139 no)
14140 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5
14141 ;;
14142 esac
14143
14144 fi
14145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 ;;
14147 no)
14148 case $ac_cv_header_sys_select_h in
14149 yes)
14150 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
14151 ;;
14152 no)
14153 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5
14154 ;;
14155 esac
14156 ;;
14157 esac
14158
14159
14160 #
14161 # Find the machine's endian flavor.
14162 #
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14164 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14165 if ${ac_cv_c_bigendian+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 ac_cv_c_bigendian=unknown
14169 # See if we're dealing with a universal compiler.
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 #ifndef __APPLE_CC__
14173 not a universal capable compiler
14174 #endif
14175 typedef int dummy;
14176
14177 _ACEOF
14178 if ac_fn_c_try_compile "$LINENO"; then :
14179
14180 # Check for potential -arch flags. It is not universal unless
14181 # there are at least two -arch flags with different values.
14182 ac_arch=
14183 ac_prev=
14184 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14185 if test -n "$ac_prev"; then
14186 case $ac_word in
14187 i?86 | x86_64 | ppc | ppc64)
14188 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14189 ac_arch=$ac_word
14190 else
14191 ac_cv_c_bigendian=universal
14192 break
14193 fi
14194 ;;
14195 esac
14196 ac_prev=
14197 elif test "x$ac_word" = "x-arch"; then
14198 ac_prev=arch
14199 fi
14200 done
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 if test $ac_cv_c_bigendian = unknown; then
14204 # See if sys/param.h defines the BYTE_ORDER macro.
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14207 #include <sys/types.h>
14208 #include <sys/param.h>
14209
14210 int
14211 main ()
14212 {
14213 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14214 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14215 && LITTLE_ENDIAN)
14216 bogus endian macros
14217 #endif
14218
14219 ;
14220 return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_compile "$LINENO"; then :
14224 # It does; now see whether it defined to BIG_ENDIAN or not.
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <sys/types.h>
14228 #include <sys/param.h>
14229
14230 int
14231 main ()
14232 {
14233 #if BYTE_ORDER != BIG_ENDIAN
14234 not big endian
14235 #endif
14236
14237 ;
14238 return 0;
14239 }
14240 _ACEOF
14241 if ac_fn_c_try_compile "$LINENO"; then :
14242 ac_cv_c_bigendian=yes
14243 else
14244 ac_cv_c_bigendian=no
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 fi
14250 if test $ac_cv_c_bigendian = unknown; then
14251 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 #include <limits.h>
14255
14256 int
14257 main ()
14258 {
14259 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14260 bogus endian macros
14261 #endif
14262
14263 ;
14264 return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_c_try_compile "$LINENO"; then :
14268 # It does; now see whether it defined to _BIG_ENDIAN or not.
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 #include <limits.h>
14272
14273 int
14274 main ()
14275 {
14276 #ifndef _BIG_ENDIAN
14277 not big endian
14278 #endif
14279
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_compile "$LINENO"; then :
14285 ac_cv_c_bigendian=yes
14286 else
14287 ac_cv_c_bigendian=no
14288 fi
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 if test $ac_cv_c_bigendian = unknown; then
14294 # Compile a test program.
14295 if test "$cross_compiling" = yes; then :
14296 # Try to guess by grepping values from an object file.
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 short int ascii_mm[] =
14300 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14301 short int ascii_ii[] =
14302 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14303 int use_ascii (int i) {
14304 return ascii_mm[i] + ascii_ii[i];
14305 }
14306 short int ebcdic_ii[] =
14307 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14308 short int ebcdic_mm[] =
14309 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14310 int use_ebcdic (int i) {
14311 return ebcdic_mm[i] + ebcdic_ii[i];
14312 }
14313 extern int foo;
14314
14315 int
14316 main ()
14317 {
14318 return use_ascii (foo) == use_ebcdic (foo);
14319 ;
14320 return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14325 ac_cv_c_bigendian=yes
14326 fi
14327 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14328 if test "$ac_cv_c_bigendian" = unknown; then
14329 ac_cv_c_bigendian=no
14330 else
14331 # finding both strings is unlikely to happen, but who knows?
14332 ac_cv_c_bigendian=unknown
14333 fi
14334 fi
14335 fi
14336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 else
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 int
14342 main ()
14343 {
14344
14345 /* Are we little or big endian? From Harbison&Steele. */
14346 union
14347 {
14348 long int l;
14349 char c[sizeof (long int)];
14350 } u;
14351 u.l = 1;
14352 return u.c[sizeof (long int) - 1] == 1;
14353
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_run "$LINENO"; then :
14359 ac_cv_c_bigendian=no
14360 else
14361 ac_cv_c_bigendian=yes
14362 fi
14363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14364 conftest.$ac_objext conftest.beam conftest.$ac_ext
14365 fi
14366
14367 fi
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14370 $as_echo "$ac_cv_c_bigendian" >&6; }
14371 case $ac_cv_c_bigendian in #(
14372 yes)
14373 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14374 ;; #(
14375 no)
14376 ;; #(
14377 universal)
14378
14379 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14380
14381 ;; #(
14382 *)
14383 as_fn_error $? "unknown endianness
14384 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14385 esac
14386
14387
14388 #
14389 # GeoIP support?
14390 #
14391 GEOIPLINKSRCS=
14392 GEOIPLINKOBJS=
14393
14394 # Check whether --with-geoip was given.
14395 if test "${with_geoip+set}" = set; then :
14396 withval=$with_geoip; use_geoip="$withval"
14397 else
14398 use_geoip="no"
14399 fi
14400
14401
14402 if test "yes" = "$use_geoip"
14403 then
14404 for d in /usr /usr/local /opt/local
14405 do
14406 if test -f $d/include/GeoIP.h
14407 then
14408 use_geoip=$d
14409 break
14410 fi
14411 done
14412 fi
14413
14414 case "$use_geoip" in
14415 no|'')
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
14417 $as_echo_n "checking for GeoIP support... " >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14419 $as_echo "disabled" >&6; }
14420 ;;
14421 *)
14422 if test -d "$use_geoip" -o -L "$use_geoip"
14423 then
14424 CFLAGS="$CFLAGS -I$use_geoip/include"
14425 CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
14426 LIBS="$LIBS -L$use_geoip/lib"
14427 case "$host_os" in
14428 netbsd*|openbsd*|solaris*)
14429 LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
14430 ;;
14431 esac
14432 elif test "yes" = "$use_geoip"
14433 then
14434 as_fn_error $? "GeoIP path not found" "$LINENO" 5
14435 else
14436 as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
14437 fi
14438 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14439 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14440
14441 else
14442 as_fn_error $? "GeoIP header file not found" "$LINENO" 5
14443
14444 fi
14445
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
14448 $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
14449 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 ac_func_search_save_LIBS=$LIBS
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char GeoIP_id_by_addr_gl ();
14463 int
14464 main ()
14465 {
14466 return GeoIP_id_by_addr_gl ();
14467 ;
14468 return 0;
14469 }
14470 _ACEOF
14471 for ac_lib in '' GeoIP; do
14472 if test -z "$ac_lib"; then
14473 ac_res="none required"
14474 else
14475 ac_res=-l$ac_lib
14476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14477 fi
14478 if ac_fn_c_try_link "$LINENO"; then :
14479 ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext
14483 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14484 break
14485 fi
14486 done
14487 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14488
14489 else
14490 ac_cv_search_GeoIP_id_by_addr_gl=no
14491 fi
14492 rm conftest.$ac_ext
14493 LIBS=$ac_func_search_save_LIBS
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
14496 $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
14497 ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
14498 if test "$ac_res" != no; then :
14499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14500
14501 else
14502 as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
14503
14504 fi
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
14507 $as_echo_n "checking for library containing fabsf... " >&6; }
14508 if ${ac_cv_search_fabsf+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 ac_func_search_save_LIBS=$LIBS
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14514
14515 /* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 char fabsf ();
14522 int
14523 main ()
14524 {
14525 return fabsf ();
14526 ;
14527 return 0;
14528 }
14529 _ACEOF
14530 for ac_lib in '' m; do
14531 if test -z "$ac_lib"; then
14532 ac_res="none required"
14533 else
14534 ac_res=-l$ac_lib
14535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14536 fi
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 ac_cv_search_fabsf=$ac_res
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext \
14541 conftest$ac_exeext
14542 if ${ac_cv_search_fabsf+:} false; then :
14543 break
14544 fi
14545 done
14546 if ${ac_cv_search_fabsf+:} false; then :
14547
14548 else
14549 ac_cv_search_fabsf=no
14550 fi
14551 rm conftest.$ac_ext
14552 LIBS=$ac_func_search_save_LIBS
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
14555 $as_echo "$ac_cv_search_fabsf" >&6; }
14556 ac_res=$ac_cv_search_fabsf
14557 if test "$ac_res" != no; then :
14558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14559
14560 else
14561 as_fn_error $? "Math library not found" "$LINENO" 5
14562
14563 fi
14564
14565
14566 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
14567
14568 GEOIPLINKSRCS='${GEOIPLINKSRCS}'
14569 GEOIPLINKOBJS='${GEOIPLINKOBJS}'
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
14571 $as_echo_n "checking for GeoIP support... " >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14573 $as_echo "yes" >&6; }
14574
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
14576 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
14577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578 /* end confdefs.h. */
14579
14580 #include <GeoIP.h>
14581 #include <netinet/in.h>
14582
14583 int
14584 main ()
14585 {
14586
14587 struct in6_addr in6;
14588 GeoIP_country_name_by_ipnum_v6(NULL, in6);
14589
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14597 $as_echo "yes" >&6; }
14598
14599 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
14600
14601
14602 else
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604 $as_echo "no" >&6; }
14605
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
14610 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613
14614 #include <GeoIP.h>
14615 #include <GeoIPCity.h>
14616 #include <netinet/in.h>
14617
14618 int
14619 main ()
14620 {
14621
14622 struct in6_addr in6;
14623 int i = GEOIP_CITY_EDITION_REV0_V6;
14624 GeoIP_record_by_ipnum_v6(NULL, in6);
14625
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"; then :
14631
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14633 $as_echo "yes" >&6; }
14634
14635 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
14636
14637
14638 else
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14641
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 ;;
14645 esac
14646
14647
14648
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
14650 $as_echo_n "checking for GSSAPI library... " >&6; }
14651
14652 # Check whether --with-gssapi was given.
14653 if test "${with_gssapi+set}" = set; then :
14654 withval=$with_gssapi; use_gssapi="$withval"
14655 else
14656 use_gssapi="yes"
14657 fi
14658
14659
14660 # first try using krb5-config, if that does not work then fall back to "yes" method.
14661
14662 case "$use_gssapi" in
14663 */krb5-config|krb5-config)
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
14665 $as_echo "trying $use_gssapi" >&6; }
14666 if test krb5-config = "$use_gssapi"
14667 then
14668 # Extract the first word of "$use_gssapi", so it can be a program name with args.
14669 set dummy $use_gssapi; ac_word=$2
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14671 $as_echo_n "checking for $ac_word... " >&6; }
14672 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 case $KRB5_CONFIG in
14676 [\\/]* | ?:[\\/]*)
14677 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
14678 ;;
14679 *)
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14682 do
14683 IFS=$as_save_IFS
14684 test -z "$as_dir" && as_dir=.
14685 for ac_exec_ext in '' $ac_executable_extensions; do
14686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14687 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14689 break 2
14690 fi
14691 done
14692 done
14693 IFS=$as_save_IFS
14694
14695 ;;
14696 esac
14697 fi
14698 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
14699 if test -n "$KRB5_CONFIG"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
14701 $as_echo "$KRB5_CONFIG" >&6; }
14702 else
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705 fi
14706
14707
14708 else
14709 KRB5_CONFIG="$use_gssapi"
14710 fi
14711 gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
14712 gssapi_libs=`$KRB5_CONFIG --libs gssapi`
14713 saved_cppflags="$CPPFLAGS"
14714 CPPFLAGS="$gssapi_cflags $CPPFLAGS"
14715 for ac_header in gssapi.h gssapi/gssapi.h
14716 do :
14717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14718 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14720 cat >>confdefs.h <<_ACEOF
14721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14722 _ACEOF
14723 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
14724 fi
14725
14726 done
14727
14728 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
14730 $as_echo "krb5-config: gssapi.h not found" >&6; }
14731 CPPFLAGS="$saved_cppflags"
14732 use_gssapi="yes"
14733 else
14734 for ac_header in krb5/krb5.h krb5.h
14735 do :
14736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14739 cat >>confdefs.h <<_ACEOF
14740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14741 _ACEOF
14742 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
14743 fi
14744
14745 done
14746
14747 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
14749 $as_echo "krb5-config: krb5.h not found" >&6; }
14750 CPPFLAGS="$saved_cppflags"
14751 use_gssapi="yes"
14752 else
14753 CPPFLAGS="$saved_cppflags"
14754 saved_libs="$LIBS"
14755 LIBS=$gssapi_libs
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
14757 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760
14761 int
14762 main ()
14763 {
14764 gss_acquire_cred();krb5_init_context()
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 if ac_fn_c_try_link "$LINENO"; then :
14770 gssapi_linked=yes
14771 else
14772 gssapi_linked=no
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776 case $gssapi_linked in
14777 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
14778 $as_echo "krb5-config: linked" >&6; };;
14779 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
14780 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
14781 use_gssapi="yes"
14782 ;;
14783 esac
14784 LIBS=$saved_libs
14785 fi
14786 fi
14787 if test "yes" = "$use_gssapi"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
14789 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
14790 fi
14791 ;;
14792 esac
14793
14794 case "$host" in
14795 *darwin*)
14796 if test "yes" = "$use_gssapi"
14797 then
14798 use_gssapi=framework
14799 fi
14800 ;;
14801 esac
14802
14803 # gssapi is just the framework, we really require kerberos v5, so
14804 # look for those headers (the gssapi headers must be there, too)
14805 # The problem with this implementation is that it doesn't allow
14806 # for the specification of gssapi and krb5 headers in different locations,
14807 # which probably ought to be fixed although fixing might raise the issue of
14808 # trying to build with incompatible versions of gssapi and krb5.
14809 if test "yes" = "$use_gssapi"
14810 then
14811 # first, deal with the obvious
14812 if test \( -f /usr/include/kerberosv5/krb5.h -o \
14813 -f /usr/include/krb5/krb5.h -o \
14814 -f /usr/include/krb5.h \) -a \
14815 \( -f /usr/include/gssapi.h -o \
14816 -f /usr/include/gssapi/gssapi.h \)
14817 then
14818 use_gssapi=/usr
14819 else
14820 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
14821 for d in $krb5dirs
14822 do
14823 if test -f $d/include/gssapi/gssapi_krb5.h -o \
14824 -f $d/include/krb5.h
14825 then
14826 if test -f $d/include/gssapi/gssapi.h -o \
14827 -f $d/include/gssapi.h
14828 then
14829 use_gssapi=$d
14830 break
14831 fi
14832 fi
14833 use_gssapi="no"
14834 done
14835 fi
14836 fi
14837
14838 case "$use_gssapi" in
14839 no)
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14841 $as_echo "disabled" >&6; }
14842 USE_GSSAPI=''
14843 ;;
14844 yes)
14845 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
14846 ;;
14847 */krb5-config|krb5-config)
14848 USE_GSSAPI='-DGSSAPI'
14849 DST_GSSAPI_INC="$gssapi_cflags"
14850 DNS_GSSAPI_LIBS="$gssapi_libs"
14851 ;;
14852 framework)
14853 USE_GSSAPI='-DGSSAPI'
14854 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
14855 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
14856 DNS_GSSAPI_LIBS="-framework Kerberos"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
14858 $as_echo "framework" >&6; }
14859 ;;
14860
14861 *)
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
14863 $as_echo "looking in $use_gssapi/lib" >&6; }
14864 USE_GSSAPI='-DGSSAPI'
14865 saved_cppflags="$CPPFLAGS"
14866 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
14867 for ac_header in gssapi.h gssapi/gssapi.h
14868 do :
14869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14874 _ACEOF
14875 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
14876 gssapi_hack="#include <$ac_header>"
14877 fi
14878
14879 done
14880
14881
14882 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
14883 as_fn_error $? "gssapi.h not found" "$LINENO" 5
14884 fi
14885
14886 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14887 do :
14888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14891 cat >>confdefs.h <<_ACEOF
14892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14893 _ACEOF
14894 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
14895 gssapi_krb5_hack="#include <$ac_header>"
14896 fi
14897
14898 done
14899
14900
14901 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
14902 do :
14903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14906 cat >>confdefs.h <<_ACEOF
14907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14908 _ACEOF
14909 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
14910 krb5_hack="#include <$ac_header>"
14911 fi
14912
14913 done
14914
14915
14916 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
14917 as_fn_error $? "krb5.h not found" "$LINENO" 5
14918 fi
14919
14920 #
14921 # XXXDCL This probably doesn't work right on all systems.
14922 # It will need to be worked on as problems become evident.
14923 #
14924 # Essentially the problems here relate to two different
14925 # areas. The first area is building with either KTH
14926 # or MIT Kerberos, particularly when both are present on
14927 # the machine. The other is static versus dynamic linking.
14928 #
14929 # On the KTH vs MIT issue, Both have libkrb5 that can mess
14930 # up the works if one implementation ends up trying to
14931 # use the other's krb. This is unfortunately a situation
14932 # that very easily arises.
14933 #
14934 # Dynamic linking when the dependency information is built
14935 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
14936 # all such problems go away, but when that setup is not
14937 # present, because either the dynamic libraries lack
14938 # dependencies or static linking is being done, then the
14939 # problems start to show up.
14940 saved_libs="$LIBS"
14941 for TRY_LIBS in \
14942 "-lgssapi_krb5" \
14943 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
14944 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
14945 "-lgssapi" \
14946 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
14947 "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
14948 "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
14949 "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
14950 "-lgss -lkrb5"
14951 do
14952 # Note that this does not include $saved_libs, because
14953 # on FreeBSD machines this configure script has added
14954 # -L/usr/local/lib to LIBS, which can make the
14955 # -lgssapi_krb5 test succeed with shared libraries even
14956 # when you are trying to build with KTH in /usr/lib.
14957 if test "/usr" = "$use_gssapi"
14958 then
14959 LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
14960 else
14961 LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
14964 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967
14968 #include <sys/types.h>
14969 $gssapi_hack
14970 $gssapi_krb5_hack
14971 $krb5_hack
14972
14973 int
14974 main ()
14975 {
14976 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
14977 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
14978 gsskrb5_register_acceptor_identity(NULL);
14979 #endif
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 gssapi_linked=yes
14986 else
14987 gssapi_linked=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 case $gssapi_linked in
14992 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14993 $as_echo "yes" >&6; }; break ;;
14994 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 $as_echo "no" >&6; } ;;
14996 esac
14997 done
14998
14999 CPPFLAGS="$saved_cppflags"
15000
15001 case $gssapi_linked in
15002 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
15003 esac
15004
15005 #
15006 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
15007 # but MIT in /usr/local/lib and trying to build with KTH.
15008 # /usr/local/lib can end up earlier on the link lines.
15009 # Like most kludges, this one is not only inelegant it
15010 # is also likely to be the wrong thing to do at least as
15011 # many times as it is the right thing. Something better
15012 # needs to be done.
15013 #
15014 if test "/usr" = "$use_gssapi" -a \
15015 -f /usr/local/lib/libkrb5.a; then
15016 FIX_KTH_VS_MIT=yes
15017 fi
15018
15019 case "$FIX_KTH_VS_MIT" in
15020 yes)
15021 case "$enable_static_linking" in
15022 yes) gssapi_lib_suffix=".a" ;;
15023 *) gssapi_lib_suffix=".so" ;;
15024 esac
15025
15026 for lib in $LIBS; do
15027 case $lib in
15028 -L*)
15029 ;;
15030 -l*)
15031 new_lib=`echo $lib |
15032 sed -e s%^-l%$use_gssapi/lib/lib% \
15033 -e s%$%$gssapi_lib_suffix%`
15034 NEW_LIBS="$NEW_LIBS $new_lib"
15035 ;;
15036 *)
15037 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
15038 ;;
15039 esac
15040 done
15041 LIBS="$NEW_LIBS"
15042 ;;
15043 esac
15044
15045 DST_GSSAPI_INC="-I$use_gssapi/include"
15046 DNS_GSSAPI_LIBS="$LIBS"
15047
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
15049 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
15050 LIBS="$saved_libs"
15051 ;;
15052 esac
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
15063
15064 #
15065 # Applications linking with libdns also need to link with these libraries.
15066 #
15067
15068
15069
15070 #
15071 # was --with-randomdev specified?
15072 #
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
15074 $as_echo_n "checking for random device... " >&6; }
15075
15076 # Check whether --with-randomdev was given.
15077 if test "${with_randomdev+set}" = set; then :
15078 withval=$with_randomdev; use_randomdev="$withval"
15079 else
15080 use_randomdev="unspec"
15081 fi
15082
15083
15084 case "$use_randomdev" in
15085 unspec)
15086 case "$cross_compiling" in
15087 yes)
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
15089 $as_echo "unspecified" >&6; }
15090 as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
15091 esac
15092 case "$host" in
15093 *-openbsd*)
15094 devrandom=/dev/arandom
15095 ;;
15096 *)
15097 devrandom=/dev/random
15098 ;;
15099 esac
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
15101 $as_echo "$devrandom" >&6; }
15102 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5
15104 $as_echo_n "checking for $devrandom... " >&6; }
15105 if eval \${$as_ac_File+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 test "$cross_compiling" = yes &&
15109 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15110 if test -r "$devrandom"; then
15111 eval "$as_ac_File=yes"
15112 else
15113 eval "$as_ac_File=no"
15114 fi
15115 fi
15116 eval ac_res=\$$as_ac_File
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15118 $as_echo "$ac_res" >&6; }
15119 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15120 cat >>confdefs.h <<_ACEOF
15121 #define PATH_RANDOMDEV "$devrandom"
15122 _ACEOF
15123
15124 fi
15125
15126
15127 ;;
15128 yes)
15129 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5
15130 ;;
15131 no)
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15133 $as_echo "disabled" >&6; }
15134 ;;
15135 *)
15136 cat >>confdefs.h <<_ACEOF
15137 #define PATH_RANDOMDEV "$use_randomdev"
15138 _ACEOF
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5
15141 $as_echo "using \"$use_randomdev\"" >&6; }
15142 ;;
15143 esac
15144
15145 #
15146 # Only check dsa signature generation on these platforms when performing
15147 # system tests.
15148 #
15149 CHECK_DSA=0
15150 if grep "#define PATH_RANDOMDEV " confdefs.h > /dev/null
15151 then
15152 case "$host" in
15153 *darwin*|*freebsd*)
15154 CHECK_DSA=1
15155 ;;
15156 esac
15157 fi
15158
15159
15160 #
15161 # Do we have arc4random(), etc ?
15162 # Will use stir and if not exist addrandom
15163 #
15164 for ac_func in arc4random
15165 do :
15166 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
15167 if test "x$ac_cv_func_arc4random" = xyes; then :
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_ARC4RANDOM 1
15170 _ACEOF
15171
15172 fi
15173 done
15174
15175 for ac_func in arc4random_stir
15176 do :
15177 ac_fn_c_check_func "$LINENO" "arc4random_stir" "ac_cv_func_arc4random_stir"
15178 if test "x$ac_cv_func_arc4random_stir" = xyes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_ARC4RANDOM_STIR 1
15181 _ACEOF
15182
15183 fi
15184 done
15185
15186 for ac_func in arc4random_addrandom
15187 do :
15188 ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
15189 if test "x$ac_cv_func_arc4random_addrandom" = xyes; then :
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_ARC4RANDOM_ADDRANDOM 1
15192 _ACEOF
15193
15194 fi
15195 done
15196
15197
15198 #
15199 # Begin pthreads checking.
15200 #
15201 # First, decide whether to use multithreading or not.
15202 #
15203 # Enable multithreading by default on systems where it is known
15204 # to work well, and where debugging of multithreaded programs
15205 # is supported.
15206 #
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5
15209 $as_echo_n "checking whether to build with thread support... " >&6; }
15210
15211 case $host in
15212 *-dec-osf*)
15213 use_threads=true ;;
15214 *-solaris2.[0-6])
15215 # Thread signals are broken on Solaris 2.6; they are sometimes
15216 # delivered to the wrong thread.
15217 use_threads=false ;;
15218 *-solaris*)
15219 use_threads=true ;;
15220 *-ibm-aix*)
15221 use_threads=true ;;
15222 *-hp-hpux10*)
15223 use_threads=false ;;
15224 *-hp-hpux11*)
15225 use_threads=true ;;
15226 *-sgi-irix*)
15227 use_threads=true ;;
15228 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
15229 # UnixWare
15230 use_threads=false ;;
15231 *-*-sysv*OpenUNIX*)
15232 # UnixWare
15233 use_threads=true ;;
15234 *-netbsd[1234].*)
15235 # NetBSD earlier than NetBSD 5.0 has poor pthreads.
15236 # Don't use it by default.
15237 use_threads=false ;;
15238 *-netbsd*)
15239 use_threads=true ;;
15240 *-openbsd*)
15241 # OpenBSD users have reported that named dumps core on
15242 # startup when built with threads.
15243 use_threads=false ;;
15244 *-freebsd[1234567].*)
15245 # Threads are broken at least up to FreeBSD 4.11.
15246 # FreeBSD 5, 6 and 7 we have never officially supported threads
15247 # on. YMMV
15248 use_threads=false ;;
15249 *-freebsd*)
15250 use_threads=true ;;
15251 *-bsdi[234]*)
15252 # Thread signals do not work reliably on some versions of BSD/OS.
15253 use_threads=false ;;
15254 *-bsdi5*)
15255 use_threads=true ;;
15256 *-linux*)
15257 use_threads=true ;;
15258 *-darwin[123456789].*)
15259 use_threads=false ;;
15260 *-darwin*.*)
15261 use_threads=true ;;
15262 *)
15263 use_threads=true ;;
15264 esac
15265
15266 # Check whether --enable-threads was given.
15267 if test "${enable_threads+set}" = set; then :
15268 enableval=$enable_threads;
15269 fi
15270
15271 case "$enable_threads" in
15272 yes)
15273 use_threads=true
15274 ;;
15275 no)
15276 use_threads=false
15277 ;;
15278 '')
15279 # Use system-dependent default
15280 ;;
15281 *)
15282 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5
15283 ;;
15284 esac
15285
15286 if $use_threads
15287 then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15289 $as_echo "yes" >&6; }
15290 else
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15293 fi
15294
15295 if $use_threads
15296 then
15297 #
15298 # Search for / configure pthreads in a system-dependent fashion.
15299 #
15300 case "$host" in
15301 *-freebsd*)
15302 # We don't want to set -lpthread as that break
15303 # the ability to choose threads library at final
15304 # link time and is not valid for all architectures.
15305
15306 PTHREAD=
15307 if test "X$GCC" = "Xyes"; then
15308 saved_cc="$CC"
15309 CC="$CC -pthread"
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5
15311 $as_echo_n "checking for gcc -pthread support... " >&6; };
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 #include <pthread.h>
15315 int
15316 main ()
15317 {
15318 printf("%x\n", pthread_create);
15319 ;
15320 return 0;
15321 }
15322 _ACEOF
15323 if ac_fn_c_try_link "$LINENO"; then :
15324 PTHREAD="yes"
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15326 $as_echo "yes" >&6; }
15327 else
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330 fi
15331 rm -f core conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 CC="$saved_cc"
15334 fi
15335 if test "X$PTHREAD" != "Xyes"; then
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15337 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15338 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15339 $as_echo_n "(cached) " >&6
15340 else
15341 ac_check_lib_save_LIBS=$LIBS
15342 LIBS="-lpthread $LIBS"
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345
15346 /* Override any GCC internal prototype to avoid an error.
15347 Use char because int might match the return type of a GCC
15348 builtin and then its argument prototype would still apply. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 char pthread_create ();
15353 int
15354 main ()
15355 {
15356 return pthread_create ();
15357 ;
15358 return 0;
15359 }
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 ac_cv_lib_pthread_pthread_create=yes
15363 else
15364 ac_cv_lib_pthread_pthread_create=no
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS
15369 fi
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15371 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15372 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15373 cat >>confdefs.h <<_ACEOF
15374 #define HAVE_LIBPTHREAD 1
15375 _ACEOF
15376
15377 LIBS="-lpthread $LIBS"
15378
15379 else
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5
15381 $as_echo_n "checking for thread_create in -lthr... " >&6; }
15382 if ${ac_cv_lib_thr_thread_create+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lthr $LIBS"
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char thread_create ();
15397 int
15398 main ()
15399 {
15400 return thread_create ();
15401 ;
15402 return 0;
15403 }
15404 _ACEOF
15405 if ac_fn_c_try_link "$LINENO"; then :
15406 ac_cv_lib_thr_thread_create=yes
15407 else
15408 ac_cv_lib_thr_thread_create=no
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS
15413 fi
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5
15415 $as_echo "$ac_cv_lib_thr_thread_create" >&6; }
15416 if test "x$ac_cv_lib_thr_thread_create" = xyes; then :
15417 cat >>confdefs.h <<_ACEOF
15418 #define HAVE_LIBTHR 1
15419 _ACEOF
15420
15421 LIBS="-lthr $LIBS"
15422
15423 else
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15425 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15426 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-lc_r $LIBS"
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char pthread_create ();
15441 int
15442 main ()
15443 {
15444 return pthread_create ();
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 ac_cv_lib_c_r_pthread_create=yes
15451 else
15452 ac_cv_lib_c_r_pthread_create=no
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_lib_save_LIBS
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15459 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15460 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_LIBC_R 1
15463 _ACEOF
15464
15465 LIBS="-lc_r $LIBS"
15466
15467 else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
15469 $as_echo_n "checking for pthread_create in -lc... " >&6; }
15470 if ${ac_cv_lib_c_pthread_create+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lc $LIBS"
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477
15478 /* Override any GCC internal prototype to avoid an error.
15479 Use char because int might match the return type of a GCC
15480 builtin and then its argument prototype would still apply. */
15481 #ifdef __cplusplus
15482 extern "C"
15483 #endif
15484 char pthread_create ();
15485 int
15486 main ()
15487 {
15488 return pthread_create ();
15489 ;
15490 return 0;
15491 }
15492 _ACEOF
15493 if ac_fn_c_try_link "$LINENO"; then :
15494 ac_cv_lib_c_pthread_create=yes
15495 else
15496 ac_cv_lib_c_pthread_create=no
15497 fi
15498 rm -f core conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15501 fi
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
15503 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
15504 if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
15505 cat >>confdefs.h <<_ACEOF
15506 #define HAVE_LIBC 1
15507 _ACEOF
15508
15509 LIBS="-lc $LIBS"
15510
15511 else
15512 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
15513 fi
15514
15515 fi
15516
15517 fi
15518
15519 fi
15520
15521 fi
15522 ;;
15523 *)
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15525 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15526 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528 else
15529 ac_check_lib_save_LIBS=$LIBS
15530 LIBS="-lpthread $LIBS"
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15533
15534 /* Override any GCC internal prototype to avoid an error.
15535 Use char because int might match the return type of a GCC
15536 builtin and then its argument prototype would still apply. */
15537 #ifdef __cplusplus
15538 extern "C"
15539 #endif
15540 char pthread_create ();
15541 int
15542 main ()
15543 {
15544 return pthread_create ();
15545 ;
15546 return 0;
15547 }
15548 _ACEOF
15549 if ac_fn_c_try_link "$LINENO"; then :
15550 ac_cv_lib_pthread_pthread_create=yes
15551 else
15552 ac_cv_lib_pthread_pthread_create=no
15553 fi
15554 rm -f core conftest.err conftest.$ac_objext \
15555 conftest$ac_exeext conftest.$ac_ext
15556 LIBS=$ac_check_lib_save_LIBS
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15559 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15560 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define HAVE_LIBPTHREAD 1
15563 _ACEOF
15564
15565 LIBS="-lpthread $LIBS"
15566
15567 else
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5
15569 $as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
15570 if ${ac_cv_lib_pthread___pthread_create+:} false; then :
15571 $as_echo_n "(cached) " >&6
15572 else
15573 ac_check_lib_save_LIBS=$LIBS
15574 LIBS="-lpthread $LIBS"
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577
15578 /* Override any GCC internal prototype to avoid an error.
15579 Use char because int might match the return type of a GCC
15580 builtin and then its argument prototype would still apply. */
15581 #ifdef __cplusplus
15582 extern "C"
15583 #endif
15584 char __pthread_create ();
15585 int
15586 main ()
15587 {
15588 return __pthread_create ();
15589 ;
15590 return 0;
15591 }
15592 _ACEOF
15593 if ac_fn_c_try_link "$LINENO"; then :
15594 ac_cv_lib_pthread___pthread_create=yes
15595 else
15596 ac_cv_lib_pthread___pthread_create=no
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS
15601 fi
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5
15603 $as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
15604 if test "x$ac_cv_lib_pthread___pthread_create" = xyes; then :
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_LIBPTHREAD 1
15607 _ACEOF
15608
15609 LIBS="-lpthread $LIBS"
15610
15611 else
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
15613 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
15614 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
15615 $as_echo_n "(cached) " >&6
15616 else
15617 ac_check_lib_save_LIBS=$LIBS
15618 LIBS="-lpthread $LIBS"
15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620 /* end confdefs.h. */
15621
15622 /* Override any GCC internal prototype to avoid an error.
15623 Use char because int might match the return type of a GCC
15624 builtin and then its argument prototype would still apply. */
15625 #ifdef __cplusplus
15626 extern "C"
15627 #endif
15628 char __pthread_create_system ();
15629 int
15630 main ()
15631 {
15632 return __pthread_create_system ();
15633 ;
15634 return 0;
15635 }
15636 _ACEOF
15637 if ac_fn_c_try_link "$LINENO"; then :
15638 ac_cv_lib_pthread___pthread_create_system=yes
15639 else
15640 ac_cv_lib_pthread___pthread_create_system=no
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15644 LIBS=$ac_check_lib_save_LIBS
15645 fi
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15647 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
15648 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
15649 cat >>confdefs.h <<_ACEOF
15650 #define HAVE_LIBPTHREAD 1
15651 _ACEOF
15652
15653 LIBS="-lpthread $LIBS"
15654
15655 else
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15657 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15658 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 ac_check_lib_save_LIBS=$LIBS
15662 LIBS="-lc_r $LIBS"
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665
15666 /* Override any GCC internal prototype to avoid an error.
15667 Use char because int might match the return type of a GCC
15668 builtin and then its argument prototype would still apply. */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 char pthread_create ();
15673 int
15674 main ()
15675 {
15676 return pthread_create ();
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 if ac_fn_c_try_link "$LINENO"; then :
15682 ac_cv_lib_c_r_pthread_create=yes
15683 else
15684 ac_cv_lib_c_r_pthread_create=no
15685 fi
15686 rm -f core conftest.err conftest.$ac_objext \
15687 conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15689 fi
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15691 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15692 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15693 cat >>confdefs.h <<_ACEOF
15694 #define HAVE_LIBC_R 1
15695 _ACEOF
15696
15697 LIBS="-lc_r $LIBS"
15698
15699 else
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
15701 $as_echo_n "checking for pthread_create in -lc... " >&6; }
15702 if ${ac_cv_lib_c_pthread_create+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 ac_check_lib_save_LIBS=$LIBS
15706 LIBS="-lc $LIBS"
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709
15710 /* Override any GCC internal prototype to avoid an error.
15711 Use char because int might match the return type of a GCC
15712 builtin and then its argument prototype would still apply. */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 char pthread_create ();
15717 int
15718 main ()
15719 {
15720 return pthread_create ();
15721 ;
15722 return 0;
15723 }
15724 _ACEOF
15725 if ac_fn_c_try_link "$LINENO"; then :
15726 ac_cv_lib_c_pthread_create=yes
15727 else
15728 ac_cv_lib_c_pthread_create=no
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15733 fi
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
15735 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
15736 if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
15737 cat >>confdefs.h <<_ACEOF
15738 #define HAVE_LIBC 1
15739 _ACEOF
15740
15741 LIBS="-lc $LIBS"
15742
15743 else
15744 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
15745 fi
15746
15747 fi
15748
15749 fi
15750
15751 fi
15752
15753 fi
15754
15755 ;;
15756 esac
15757 fi
15758
15759 if $use_threads
15760 then
15761 if test "X$GCC" = "Xyes"; then
15762 case "$host" in
15763 *-freebsd*)
15764 CC="$CC -pthread"
15765 CCOPT="$CCOPT -pthread"
15766 CCNOOPT="$CCNOOPT -pthread"
15767 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
15768 ;;
15769 *-openbsd*)
15770 CC="$CC -pthread"
15771 CCOPT="$CCOPT -pthread"
15772 CCNOOPT="$CCNOOPT -pthread"
15773 ;;
15774 *-solaris*)
15775 LIBS="$LIBS -lthread"
15776 ;;
15777 *-ibm-aix*)
15778 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
15779 ;;
15780 esac
15781 else
15782 case $host in
15783 *-dec-osf*)
15784 CC="$CC -pthread"
15785 CCOPT="$CCOPT -pthread"
15786 CCNOOPT="$CCNOOPT -pthread"
15787 ;;
15788 *-solaris*)
15789 CC="$CC -mt"
15790 CCOPT="$CCOPT -mt"
15791 CCNOOPT="$CCNOOPT -mt"
15792 ;;
15793 *-ibm-aix*)
15794 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
15795 ;;
15796 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
15797 CC="$CC -Kthread"
15798 CCOPT="$CCOPT -Kthread"
15799 CCNOOPT="$CCNOOPT -Kthread"
15800 ;;
15801 *-*-sysv*OpenUNIX*)
15802 CC="$CC -Kpthread"
15803 CCOPT="$CCOPT -Kpthread"
15804 CCNOOPT="$CCNOOPT -Kpthread"
15805 ;;
15806 esac
15807 fi
15808 ALWAYS_DEFINES="-D_REENTRANT"
15809 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
15810 THREADOPTOBJS='${THREADOPTOBJS}'
15811 THREADOPTSRCS='${THREADOPTSRCS}'
15812 thread_dir=pthreads
15813 #
15814 # We'd like to use sigwait() too
15815 #
15816 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
15817 if test "x$ac_cv_func_sigwait" = xyes; then :
15818 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15819
15820 else
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
15822 $as_echo_n "checking for sigwait in -lc... " >&6; }
15823 if ${ac_cv_lib_c_sigwait+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826 ac_check_lib_save_LIBS=$LIBS
15827 LIBS="-lc $LIBS"
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830
15831 /* Override any GCC internal prototype to avoid an error.
15832 Use char because int might match the return type of a GCC
15833 builtin and then its argument prototype would still apply. */
15834 #ifdef __cplusplus
15835 extern "C"
15836 #endif
15837 char sigwait ();
15838 int
15839 main ()
15840 {
15841 return sigwait ();
15842 ;
15843 return 0;
15844 }
15845 _ACEOF
15846 if ac_fn_c_try_link "$LINENO"; then :
15847 ac_cv_lib_c_sigwait=yes
15848 else
15849 ac_cv_lib_c_sigwait=no
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 LIBS=$ac_check_lib_save_LIBS
15854 fi
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
15856 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
15857 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
15858 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15859
15860 else
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
15862 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
15863 if ${ac_cv_lib_pthread_sigwait+:} false; then :
15864 $as_echo_n "(cached) " >&6
15865 else
15866 ac_check_lib_save_LIBS=$LIBS
15867 LIBS="-lpthread $LIBS"
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870
15871 /* Override any GCC internal prototype to avoid an error.
15872 Use char because int might match the return type of a GCC
15873 builtin and then its argument prototype would still apply. */
15874 #ifdef __cplusplus
15875 extern "C"
15876 #endif
15877 char sigwait ();
15878 int
15879 main ()
15880 {
15881 return sigwait ();
15882 ;
15883 return 0;
15884 }
15885 _ACEOF
15886 if ac_fn_c_try_link "$LINENO"; then :
15887 ac_cv_lib_pthread_sigwait=yes
15888 else
15889 ac_cv_lib_pthread_sigwait=no
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15894 fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
15896 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
15897 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
15898 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15899
15900 else
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
15902 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
15903 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
15904 $as_echo_n "(cached) " >&6
15905 else
15906 ac_check_lib_save_LIBS=$LIBS
15907 LIBS="-lpthread $LIBS"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15914 #ifdef __cplusplus
15915 extern "C"
15916 #endif
15917 char _Psigwait ();
15918 int
15919 main ()
15920 {
15921 return _Psigwait ();
15922 ;
15923 return 0;
15924 }
15925 _ACEOF
15926 if ac_fn_c_try_link "$LINENO"; then :
15927 ac_cv_lib_pthread__Psigwait=yes
15928 else
15929 ac_cv_lib_pthread__Psigwait=no
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15933 LIBS=$ac_check_lib_save_LIBS
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
15936 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
15937 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
15938 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15939
15940 fi
15941
15942 fi
15943
15944 fi
15945
15946 fi
15947
15948
15949 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
15950 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
15951 $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
15952
15953 fi
15954
15955
15956 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
15957 if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then :
15958 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
15959
15960 fi
15961
15962
15963
15964 # Check whether --with-locktype was given.
15965 if test "${with_locktype+set}" = set; then :
15966 withval=$with_locktype; locktype="$withval"
15967 else
15968 locktype="adaptive"
15969 fi
15970
15971
15972 case "$locktype" in
15973 adaptive)
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
15975 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
15976
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979
15980 #ifndef _GNU_SOURCE
15981 #define _GNU_SOURCE
15982 #endif
15983 #include <pthread.h>
15984
15985 int
15986 main ()
15987 {
15988
15989 return (PTHREAD_MUTEX_ADAPTIVE_NP);
15990
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_compile "$LINENO"; then :
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
15997 $as_echo "using adaptive lock type" >&6; }
15998
15999 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
16000
16001 else
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
16003 $as_echo "using standard lock type" >&6; }
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 ;;
16007 standard)
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
16009 $as_echo "using standard lock type" >&6; }
16010 ;;
16011 *)
16012 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
16013 ;;
16014 esac
16015
16016 for ac_header in sched.h
16017 do :
16018 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16019 if test "x$ac_cv_header_sched_h" = xyes; then :
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_SCHED_H 1
16022 _ACEOF
16023
16024 fi
16025
16026 done
16027
16028
16029 case "$host" in
16030 *solaris-*)
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
16032 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
16033 if ${ac_cv_lib_rt_sched_yield+:} false; then :
16034 $as_echo_n "(cached) " >&6
16035 else
16036 ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-lrt $LIBS"
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040
16041 /* Override any GCC internal prototype to avoid an error.
16042 Use char because int might match the return type of a GCC
16043 builtin and then its argument prototype would still apply. */
16044 #ifdef __cplusplus
16045 extern "C"
16046 #endif
16047 char sched_yield ();
16048 int
16049 main ()
16050 {
16051 return sched_yield ();
16052 ;
16053 return 0;
16054 }
16055 _ACEOF
16056 if ac_fn_c_try_link "$LINENO"; then :
16057 ac_cv_lib_rt_sched_yield=yes
16058 else
16059 ac_cv_lib_rt_sched_yield=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext \
16062 conftest$ac_exeext conftest.$ac_ext
16063 LIBS=$ac_check_lib_save_LIBS
16064 fi
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
16066 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
16067 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_LIBRT 1
16070 _ACEOF
16071
16072 LIBS="-lrt $LIBS"
16073
16074 fi
16075
16076 ;;
16077 esac
16078
16079 for ac_func in sched_yield pthread_yield pthread_yield_np
16080 do :
16081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16083 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16084 cat >>confdefs.h <<_ACEOF
16085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16086 _ACEOF
16087
16088 fi
16089 done
16090
16091
16092 #
16093 # Additional OS-specific issues related to pthreads and sigwait.
16094 #
16095 case "$host" in
16096 #
16097 # One more place to look for sigwait.
16098 #
16099 *-freebsd*)
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
16101 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
16102 if ${ac_cv_lib_c_r_sigwait+:} false; then :
16103 $as_echo_n "(cached) " >&6
16104 else
16105 ac_check_lib_save_LIBS=$LIBS
16106 LIBS="-lc_r $LIBS"
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109
16110 /* Override any GCC internal prototype to avoid an error.
16111 Use char because int might match the return type of a GCC
16112 builtin and then its argument prototype would still apply. */
16113 #ifdef __cplusplus
16114 extern "C"
16115 #endif
16116 char sigwait ();
16117 int
16118 main ()
16119 {
16120 return sigwait ();
16121 ;
16122 return 0;
16123 }
16124 _ACEOF
16125 if ac_fn_c_try_link "$LINENO"; then :
16126 ac_cv_lib_c_r_sigwait=yes
16127 else
16128 ac_cv_lib_c_r_sigwait=no
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132 LIBS=$ac_check_lib_save_LIBS
16133 fi
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
16135 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
16136 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
16137 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
16138
16139 fi
16140
16141 case $host in
16142 *-freebsd5.[012]|*-freebsd5.[012].*);;
16143 *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
16144 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
16145
16146 ;;
16147 *-freebsd6.*)
16148 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
16149
16150 ;;
16151 esac
16152 ;;
16153 #
16154 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
16155 # called before certain pthreads calls. This is deprecated
16156 # in BSD/OS 4.1.
16157 #
16158 *-bsdi3.*|*-bsdi4.0*)
16159 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
16160
16161 ;;
16162 #
16163 # LinuxThreads requires some changes to the way we
16164 # deal with signals.
16165 #
16166 *-linux*)
16167 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
16168
16169 ;;
16170 #
16171 # Ensure the right sigwait() semantics on Solaris and make
16172 # sure we call pthread_setconcurrency.
16173 #
16174 *-solaris*)
16175 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
16176
16177 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
16178 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
16179 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
16180
16181 fi
16182
16183 ;;
16184 #
16185 # UnixWare does things its own way.
16186 #
16187 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
16188 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
16189
16190 ;;
16191 esac
16192
16193 # Look for functions relating to thread naming
16194 for ac_func in pthread_setname_np pthread_set_name_np
16195 do :
16196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16199 cat >>confdefs.h <<_ACEOF
16200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16201 _ACEOF
16202
16203 fi
16204 done
16205
16206 for ac_header in pthread_np.h
16207 do :
16208 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
16209 "
16210 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
16211 cat >>confdefs.h <<_ACEOF
16212 #define HAVE_PTHREAD_NP_H 1
16213 _ACEOF
16214
16215 fi
16216
16217 done
16218
16219
16220 #
16221 # Look for sysconf to allow detection of the number of processors.
16222 #
16223 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
16224 if test "x$ac_cv_func_sysconf" = xyes; then :
16225 $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
16226
16227 fi
16228
16229
16230 else
16231 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
16232 thread_dir=nothreads
16233 THREADOPTOBJS=""
16234 THREADOPTSRCS=""
16235 ALWAYS_DEFINES=""
16236 fi
16237
16238
16239
16240
16241
16242 ISC_THREAD_DIR=$thread_dir
16243
16244
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
16246 $as_echo_n "checking for libtool... " >&6; }
16247
16248 # Check whether --with-libtool was given.
16249 if test "${with_libtool+set}" = set; then :
16250 withval=$with_libtool; use_libtool="$withval"
16251 else
16252 use_libtool="no"
16253 fi
16254
16255
16256 case $use_libtool in
16257 yes)
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16259 $as_echo "yes" >&6; }
16260
16261 O=lo
16262 A=la
16263 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
16264 LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC'
16265 LIBTOOL_MODE_INSTALL='--mode=install --tag=CC'
16266 LIBTOOL_MODE_LINK='--mode=link --tag=CC'
16267 LIBTOOL_MODE_UNINSTALL='--mode=uninstall --tag=CC'
16268 INSTALL_LIBRARY='${INSTALL_PROGRAM}'
16269 case "$host" in
16270 *) LIBTOOL_ALLOW_UNDEFINED= ;;
16271 esac
16272 case "$host" in
16273 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
16274 *) LIBTOOL_IN_MAIN= ;;
16275 esac;
16276 ;;
16277 *)
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16280 O=o
16281 A=a
16282 LIBTOOL=
16283
16284 LIBTOOL_MKDEP_SED=
16285 LIBTOOL_MODE_COMPILE=
16286 LIBTOOL_MODE_INSTALL=
16287 LIBTOOL_MODE_LINK=
16288 LIBTOOL_MODE_UNINSTALL=
16289 LIBTOOL_ALLOW_UNDEFINED=
16290 LIBTOOL_IN_MAIN=
16291 INSTALL_LIBRARY='${INSTALL_DATA}'
16292 ;;
16293 esac
16294
16295
16296 #
16297 # was --enable-native-pkcs11 specified?
16298 # (note it implies both --without-openssl and --with-pkcs11)
16299 #
16300 # Check whether --enable-native-pkcs11 was given.
16301 if test "${enable_native_pkcs11+set}" = set; then :
16302 enableval=$enable_native_pkcs11; want_native_pkcs11="$enableval"
16303 else
16304 want_native_pkcs11="no"
16305 fi
16306
16307
16308 #
16309 # was --with-openssl specified?
16310 #
16311
16312 # Check whether --with-openssl was given.
16313 if test "${with_openssl+set}" = set; then :
16314 withval=$with_openssl; use_openssl="$withval"
16315 else
16316 use_openssl="auto"
16317 fi
16318
16319
16320 #
16321 # was --with-pkcs11 specified?
16322 #
16323
16324 # Check whether --with-pkcs11 was given.
16325 if test "${with_pkcs11+set}" = set; then :
16326 withval=$with_pkcs11; use_pkcs11="$withval"
16327 else
16328 use_pkcs11="auto"
16329 fi
16330
16331
16332 #
16333 # were --with-ecdsa, --with-gost, --with-eddsa, --with-aes specified
16334 #
16335
16336 # Check whether --with-ecdsa was given.
16337 if test "${with_ecdsa+set}" = set; then :
16338 withval=$with_ecdsa; with_ecdsa="$withval"
16339 else
16340 with_ecdsa="auto"
16341 fi
16342
16343
16344 # Check whether --with-gost was given.
16345 if test "${with_gost+set}" = set; then :
16346 withval=$with_gost; with_gost="$withval"
16347 else
16348 with_gost="auto"
16349 fi
16350
16351
16352 # Check whether --with-eddsa was given.
16353 if test "${with_eddsa+set}" = set; then :
16354 withval=$with_eddsa; with_eddsa="$withval"
16355 else
16356 with_eddsa="auto"
16357 fi
16358
16359
16360 # Check whether --with-aes was given.
16361 if test "${with_aes+set}" = set; then :
16362 withval=$with_aes; with_aes="$withval"
16363 else
16364 with_aes="checkcc"
16365 fi
16366
16367
16368 #
16369 # Client Cookie algorithm choice
16370 #
16371
16372 # Check whether --with-cc-alg was given.
16373 if test "${with_cc_alg+set}" = set; then :
16374 withval=$with_cc_alg; with_cc_alg="$withval"
16375 else
16376 with_cc_alg="auto"
16377 fi
16378
16379
16380 case $with_cc_alg in
16381 *1)
16382 with_cc_alg="sha1"
16383 ;;
16384 *2*)
16385 with_cc_alg="sha256"
16386 ;;
16387 auto)
16388 if test "no" != "$with_aes"
16389 then
16390 with_aes="yes"
16391 fi
16392 ;;
16393 *)
16394 with_cc_alg="aes"
16395 if test "no" != "$with_aes"
16396 then
16397 with_aes="yes"
16398 fi
16399 ;;
16400 esac
16401 if test "checkcc" = "with_aes"
16402 then
16403 with_aes="no"
16404 fi
16405
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
16407 $as_echo_n "checking for OpenSSL library... " >&6; }
16408 OPENSSL_WARNING=
16409 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
16410 if test "yes" = "$want_native_pkcs11"
16411 then
16412 use_openssl="native_pkcs11"
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use of native PKCS11 instead" >&5
16414 $as_echo "use of native PKCS11 instead" >&6; }
16415 fi
16416
16417 if test "auto" = "$use_openssl"
16418 then
16419 for d in $openssldirs
16420 do
16421 if test -f $d/include/openssl/opensslv.h
16422 then
16423 use_openssl=$d
16424 break
16425 fi
16426 done
16427 fi
16428 OPENSSL_ECDSA=""
16429 OPENSSL_GOST=""
16430 OPENSSL_ED25519=""
16431 gosttype="raw"
16432 case "$with_gost" in
16433 raw)
16434 with_gost="yes"
16435 ;;
16436 asn1)
16437
16438 $as_echo "#define PREFER_GOSTASN1 1" >>confdefs.h
16439
16440 gosttype="asn1"
16441 with_gost="yes"
16442 ;;
16443 auto|yes|no)
16444 ;;
16445 *)
16446 as_fn_error $? "unknown GOST private key encoding" "$LINENO" 5
16447 ;;
16448 esac
16449
16450 case "$use_openssl" in
16451 native_pkcs11)
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled because of native PKCS11" >&5
16453 $as_echo "disabled because of native PKCS11" >&6; }
16454 DST_OPENSSL_INC=""
16455 CRYPTO="-DPKCS11CRYPTO"
16456 CRYPTOLIB="pkcs11"
16457 OPENSSLECDSALINKOBJS=""
16458 OPENSSLECDSALINKSRCS=""
16459 OPENSSLEDDSALINKOBJS=""
16460 OPENSSLEDDSALINKSRCS=""
16461 OPENSSLGOSTLINKOBJS=""
16462 OPENSSLGOSTLINKSRCS=""
16463 OPENSSLLINKOBJS=""
16464 OPENSSLLINKSRCS=""
16465 ;;
16466 no)
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16469 DST_OPENSSL_INC=""
16470 CRYPTO=""
16471 CRYPTOLIB=""
16472 OPENSSLECDSALINKOBJS=""
16473 OPENSSLECDSALINKSRCS=""
16474 OPENSSLEDDSALINKOBJS=""
16475 OPENSSLEDDSALINKSRCS=""
16476 OPENSSLGOSTLINKOBJS=""
16477 OPENSSLGOSTLINKSRCS=""
16478 OPENSSLLINKOBJS=""
16479 OPENSSLLINKSRCS=""
16480 ;;
16481 auto)
16482 DST_OPENSSL_INC=""
16483 CRYPTO=""
16484 CRYPTOLIB=""
16485 OPENSSLECDSALINKOBJS=""
16486 OPENSSLECDSALINKSRCS=""
16487 OPENSSLEDDSALINKOBJS=""
16488 OPENSSLEDDSALINKSRCS=""
16489 OPENSSLGOSTLINKOBJS=""
16490 OPENSSLGOSTLINKSRCS=""
16491 OPENSSLLINKOBJS=""
16492 OPENSSLLINKSRCS=""
16493 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
16494 If you do not want OpenSSL, use --without-openssl" "$LINENO" 5
16495 ;;
16496 *)
16497 if test "yes" = "$want_native_pkcs11"
16498 then
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16500 $as_echo "" >&6; }
16501 as_fn_error $? "OpenSSL and native PKCS11 cannot be used together." "$LINENO" 5
16502 fi
16503 if test "yes" = "$use_openssl"
16504 then
16505 # User did not specify a path - guess it
16506 for d in $openssldirs
16507 do
16508 if test -f $d/include/openssl/opensslv.h
16509 then
16510 use_openssl=$d
16511 break
16512 fi
16513 done
16514 if test "yes" = "$use_openssl"
16515 then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16517 $as_echo "not found" >&6; }
16518 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5
16519 fi
16520 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
16521 then
16522 as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5
16523 fi
16524 CRYPTO='-DOPENSSL'
16525 CRYPTOLIB="openssl"
16526 if test "/usr" = "$use_openssl"
16527 then
16528 DST_OPENSSL_INC=""
16529 DST_OPENSSL_LIBS="-lcrypto"
16530 else
16531 DST_OPENSSL_INC="-I$use_openssl/include"
16532 case $host in
16533 *-solaris*)
16534 DST_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
16535 ;;
16536 *-hp-hpux*)
16537 DST_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
16538 ;;
16539 *-apple-darwin*)
16540 #
16541 # Apple's ld seaches for serially for dynamic
16542 # then static libraries. This means you can't
16543 # use -L to override dynamic system libraries
16544 # with static ones when linking. Instead
16545 # we specify a absolute path.
16546 #
16547 if test -f "$use_openssl/lib/libcrypto.dylib"
16548 then
16549 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
16550 else
16551 DST_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
16552 fi
16553 ;;
16554 *)
16555 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
16556 ;;
16557 esac
16558 fi
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
16560 $as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
16561
16562 saved_cc="$CC"
16563 saved_cflags="$CFLAGS"
16564 saved_libs="$LIBS"
16565 CFLAGS="$DST_OPENSSL_INC $CFLAGS"
16566 LIBS="$DST_OPENSSL_LIBS $LIBS"
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5
16568 $as_echo_n "checking whether linking with OpenSSL works... " >&6; }
16569 if test "$cross_compiling" = yes; then :
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5
16571 $as_echo "assuming it does work on target platform" >&6; }
16572 else
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16575
16576 #include <openssl/err.h>
16577 int main() {
16578 ERR_clear_error();
16579 return (0);
16580 }
16581
16582 _ACEOF
16583 if ac_fn_c_try_run "$LINENO"; then :
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16585 $as_echo "yes" >&6; }
16586 else
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16588 $as_echo "no" >&6; }
16589 as_fn_error $? "Could not run test program using OpenSSL from
16590 $use_openssl/lib and $use_openssl/include.
16591 Please check the argument to --with-openssl and your
16592 shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5
16593 fi
16594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16595 conftest.$ac_objext conftest.beam conftest.$ac_ext
16596 fi
16597
16598
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5
16600 $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603
16604 #include <openssl/opensslv.h>
16605 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
16606 #include <openssl/crypto.h>
16607 #else
16608 #include <openssl/err.h>
16609 #include <openssl/dso.h>
16610 #endif
16611
16612 int
16613 main ()
16614 {
16615
16616 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
16617 OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
16618 #else
16619 DSO_METHOD_dlfcn();
16620 #endif
16621
16622 ;
16623 return 0;
16624 }
16625 _ACEOF
16626 if ac_fn_c_try_link "$LINENO"; then :
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628 $as_echo "no" >&6; }
16629 else
16630 LIBS="$LIBS -ldl"
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633
16634 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
16635 #include <openssl/crypto.h>
16636 #else
16637 #include <openssl/err.h>
16638 #include <openssl/dso.h>
16639 #endif
16640
16641 int
16642 main ()
16643 {
16644
16645 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L)
16646 OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
16647 #else
16648 DSO_METHOD_dlfcn();
16649 #endif
16650
16651 ;
16652 return 0;
16653 }
16654 _ACEOF
16655 if ac_fn_c_try_link "$LINENO"; then :
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16657 $as_echo "yes" >&6; }
16658 DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl"
16659
16660 else
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16662 $as_echo "unknown" >&6; }
16663 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5
16664 fi
16665 rm -f core conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16667
16668 fi
16669 rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16671
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL FIPS mode support" >&5
16673 $as_echo_n "checking for OpenSSL FIPS mode support... " >&6; }
16674 have_fips_mode=""
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677 #include <openssl/crypto.h>
16678 int
16679 main ()
16680 {
16681 FIPS_mode();
16682 ;
16683 return 0;
16684 }
16685 _ACEOF
16686 if ac_fn_c_try_link "$LINENO"; then :
16687 have_fips_mode=yes
16688 else
16689 have_fips_mode=no
16690 fi
16691 rm -f core conftest.err conftest.$ac_objext \
16692 conftest$ac_exeext conftest.$ac_ext
16693 if test "x$have_fips_mode" = "xyes"
16694 then
16695
16696 $as_echo "#define HAVE_FIPS_MODE 1" >>confdefs.h
16697
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699 $as_echo "yes" >&6; }
16700 else
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16702 $as_echo "no" >&6; }
16703 fi
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
16706 $as_echo_n "checking for OpenSSL DSA support... " >&6; }
16707 if test -f $use_openssl/include/openssl/dsa.h
16708 then
16709 $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
16710
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16712 $as_echo "yes" >&6; }
16713 else
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16716 fi
16717
16718 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
16719 do :
16720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16722 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16723 cat >>confdefs.h <<_ACEOF
16724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16725 _ACEOF
16726
16727 fi
16728 done
16729
16730
16731 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key DSA_get0_pqg
16732 do :
16733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16736 cat >>confdefs.h <<_ACEOF
16737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 _ACEOF
16739
16740 fi
16741 done
16742
16743
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5
16745 $as_echo_n "checking for OpenSSL ECDSA support... " >&6; }
16746 have_ecdsa=""
16747 if test "$cross_compiling" = yes; then :
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-ecdsa" >&5
16749 $as_echo "using --with-ecdsa" >&6; }
16750 else
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753
16754 #include <openssl/ecdsa.h>
16755 #include <openssl/objects.h>
16756 int main() {
16757 EC_KEY *ec256, *ec384;
16758
16759 #if !defined(HAVE_EVP_SHA256) || !defined(HAVE_EVP_SHA384)
16760 return (1);
16761 #endif
16762 ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
16763 ec384 = EC_KEY_new_by_curve_name(NID_secp384r1);
16764 if (ec256 == NULL || ec384 == NULL)
16765 return (2);
16766 return (0);
16767 }
16768
16769 _ACEOF
16770 if ac_fn_c_try_run "$LINENO"; then :
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773 have_ecdsa="yes"
16774 else
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776 $as_echo "no" >&6; }
16777 have_ecdsa="no"
16778 fi
16779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16780 conftest.$ac_objext conftest.beam conftest.$ac_ext
16781 fi
16782
16783 case "$with_ecdsa" in
16784 yes)
16785 case "$have_ecdsa" in
16786 no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;;
16787 *) have_ecdsa=yes ;;
16788 esac
16789 ;;
16790 no)
16791 have_ecdsa=no ;;
16792 *)
16793 case "$have_ecdsa" in
16794 yes|no) ;;
16795 *) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;;
16796 esac
16797 ;;
16798 esac
16799 case $have_ecdsa in
16800 yes)
16801 OPENSSL_ECDSA="yes"
16802 OPENSSLECDSALINKOBJS='${OPENSSLECDSALINKOBJS}'
16803 OPENSSLECDSALINKSRCS='${OPENSSLECDSALINKSRCS}'
16804
16805 $as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h
16806
16807 ;;
16808 *)
16809 ;;
16810 esac
16811
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
16813 $as_echo_n "checking for OpenSSL GOST support... " >&6; }
16814 have_gost=""
16815 case "$use_pkcs11" in
16816 auto|no)
16817 ;;
16818 *)
16819 if $use_threads; then
16820 CC="$CC -pthread"
16821 fi
16822 ;;
16823 esac
16824 if test "$cross_compiling" = yes; then :
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5
16826 $as_echo "using --with-gost" >&6; }
16827 else
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830
16831 #include <openssl/conf.h>
16832 #include <openssl/engine.h>
16833 int main() {
16834 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10000000L)
16835 ENGINE *e;
16836 EC_KEY *ek;
16837
16838 ek = NULL;
16839 OPENSSL_config(NULL);
16840
16841 e = ENGINE_by_id("gost");
16842 if (e == NULL)
16843 return (1);
16844 if (ENGINE_init(e) <= 0)
16845 return (1);
16846 return (0);
16847 #else
16848 return (1);
16849 #endif
16850 }
16851
16852 _ACEOF
16853 if ac_fn_c_try_run "$LINENO"; then :
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16855 $as_echo "yes" >&6; }
16856 have_gost="yes"
16857 else
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16859 $as_echo "no" >&6; }
16860 have_gost="no"
16861 fi
16862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16863 conftest.$ac_objext conftest.beam conftest.$ac_ext
16864 fi
16865
16866 case "$with_gost" in
16867 yes)
16868 case "$have_gost" in
16869 no) as_fn_error $? "gost not supported" "$LINENO" 5 ;;
16870 *) have_gost=yes ;;
16871 esac
16872 ;;
16873 no)
16874 have_gost=no ;;
16875 *)
16876 case "$have_gost" in
16877 yes|no) ;;
16878 *) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;;
16879 esac
16880 ;;
16881 esac
16882 case $have_gost in
16883 yes)
16884 OPENSSL_GOST="yes"
16885 OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}'
16886 OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}'
16887
16888 $as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h
16889
16890 ;;
16891 *)
16892 ;;
16893 esac
16894
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Ed25519 support" >&5
16896 $as_echo_n "checking for OpenSSL Ed25519 support... " >&6; }
16897 have_ed25519=""
16898 have_ed448=""
16899 if test "$cross_compiling" = yes; then :
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-eddsa" >&5
16901 $as_echo "using --with-eddsa" >&6; }
16902 else
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16905
16906 #include <openssl/evp.h>
16907 #include <openssl/objects.h>
16908 int main() {
16909 EVP_PKEY_CTX *ctx;
16910
16911 ctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL);
16912 if (ctx == NULL)
16913 return (2);
16914 return (0);
16915 }
16916
16917 _ACEOF
16918 if ac_fn_c_try_run "$LINENO"; then :
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16920 $as_echo "yes" >&6; }
16921 have_ed25519="yes"
16922 else
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924 $as_echo "no" >&6; }
16925 have_ed25519="no"
16926 fi
16927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16928 conftest.$ac_objext conftest.beam conftest.$ac_ext
16929 fi
16930
16931 case "$with_eddsa" in
16932 yes|all)
16933 case "$have_ed25519" in
16934 no) as_fn_error $? "eddsa not supported" "$LINENO" 5 ;;
16935 *) have_ed25519=yes ;;
16936 esac
16937 ;;
16938 no)
16939 have_ed25519=no ;;
16940 *)
16941 case "$have_ed25519" in
16942 yes|no) ;;
16943 *) as_fn_error $? "need --with-eddsa=[yes, all or no]" "$LINENO" 5 ;;
16944 esac
16945 ;;
16946 esac
16947 case $have_ed25519 in
16948 yes)
16949 OPENSSL_ED25519="yes"
16950 OPENSSLEDDSALINKOBJS='${OPENSSLEDDSALINKOBJS}'
16951 OPENSSLEDDSALINKSRCS='${OPENSSLEDDSALINKSRCS}'
16952
16953 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
16954
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Ed448 support" >&5
16956 $as_echo_n "checking for OpenSSL Ed448 support... " >&6; }
16957 if test "$cross_compiling" = yes; then :
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-eddsa" >&5
16959 $as_echo "using --with-eddsa" >&6; }
16960 else
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16963
16964 #include <openssl/evp.h>
16965 #include <openssl/objects.h>
16966 int main() {
16967 EVP_PKEY_CTX *ctx;
16968
16969 ctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL);
16970 if (ctx == NULL)
16971 return (2);
16972 return (0);
16973 }
16974
16975 _ACEOF
16976 if ac_fn_c_try_run "$LINENO"; then :
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16978 $as_echo "yes" >&6; }
16979 have_ed448="yes"
16980 else
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 $as_echo "no" >&6; }
16983 have_ed448="no"
16984 fi
16985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16986 conftest.$ac_objext conftest.beam conftest.$ac_ext
16987 fi
16988
16989 case $with_eddsa in
16990 all)
16991 have_ed448=yes ;;
16992 *)
16993 ;;
16994 esac
16995 case $have_ed448 in
16996 yes)
16997
16998 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
16999
17000 ;;
17001 *)
17002 ;;
17003 esac
17004 ;;
17005 *)
17006 ;;
17007 esac
17008
17009 have_aes="no"
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL AES support" >&5
17011 $as_echo_n "checking for OpenSSL AES support... " >&6; }
17012 if test "$cross_compiling" = yes; then :
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-aes" >&5
17014 $as_echo "using --with-aes" >&6; }
17015 # Expect cross-compiling with a modern OpenSSL
17016 have_aes="evp"
17017 else
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020
17021 #include <openssl/evp.h>
17022 int main() {
17023 const EVP_CIPHER *aes128, *aes192, *aes256;
17024
17025 aes128 = EVP_aes_128_ecb();
17026 aes192 = EVP_aes_192_ecb();
17027 aes256 = EVP_aes_256_ecb();
17028 if (aes128 == NULL || aes192 == NULL || aes256 == NULL)
17029 return (1);
17030 return (0);
17031 }
17032
17033 _ACEOF
17034 if ac_fn_c_try_run "$LINENO"; then :
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17036 $as_echo "yes" >&6; }
17037 have_aes="evp"
17038 else
17039 ac_fn_c_check_func "$LINENO" "AES_encrypt" "ac_cv_func_AES_encrypt"
17040 if test "x$ac_cv_func_AES_encrypt" = xyes; then :
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17042 $as_echo "yes" >&6; }
17043 have_aes="yes"
17044 else
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17046 $as_echo "no" >&6; }
17047 fi
17048
17049 fi
17050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17051 conftest.$ac_objext conftest.beam conftest.$ac_ext
17052 fi
17053
17054
17055 ISC_OPENSSL_INC=""
17056 ISC_OPENSSL_LIBS=""
17057 if test "yes" = "$with_aes"
17058 then
17059 case "$have_aes" in
17060 evp)
17061
17062 $as_echo "#define HAVE_OPENSSL_EVP_AES 1" >>confdefs.h
17063
17064 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
17065 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
17066 ;;
17067 yes)
17068
17069 $as_echo "#define HAVE_OPENSSL_AES 1" >>confdefs.h
17070
17071 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
17072 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
17073 ;;
17074 *)
17075 ;;
17076 esac
17077 fi
17078
17079 CC="$saved_cc"
17080 CFLAGS="$saved_cflags"
17081 LIBS="$saved_libs"
17082 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
17083 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
17084
17085 ;;
17086 esac
17087
17088 #
17089 # This would include the system openssl path (and linker options to use
17090 # it as needed) if it is found.
17091 #
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106 ISC_PLATFORM_WANTAES="#undef ISC_PLATFORM_WANTAES"
17107 if test "yes" = "$with_aes"
17108 then
17109 if test "X$CRYPTO" = "X"
17110 then
17111 with_aes="no"
17112 fi
17113 fi
17114 if test "yes" = "$with_aes"
17115 then
17116 ISC_PLATFORM_WANTAES="#define ISC_PLATFORM_WANTAES 1"
17117 fi
17118
17119
17120 #
17121 # Choose Client Cookie algorithm
17122 #
17123
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the algorithm for Client Cookie" >&5
17125 $as_echo_n "checking for the algorithm for Client Cookie... " >&6; }
17126 if test "auto" = "$with_cc_alg"
17127 then
17128 if test "yes" = "$with_aes"
17129 then
17130 with_cc_alg="aes"
17131 else
17132 with_cc_alg="sha256"
17133 fi
17134 fi
17135 case $with_cc_alg in
17136 sha1)
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
17138 $as_echo "sha1" >&6; }
17139
17140 $as_echo "#define HMAC_SHA1_CC 1" >>confdefs.h
17141
17142 ;;
17143 sha256)
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
17145 $as_echo "sha256" >&6; }
17146
17147 $as_echo "#define HMAC_SHA256_CC 1" >>confdefs.h
17148
17149 ;;
17150 aes)
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
17152 $as_echo "aes" >&6; }
17153
17154 $as_echo "#define AES_CC 1" >>confdefs.h
17155
17156 ;;
17157 esac
17158
17159 #
17160 # Use OpenSSL for hash functions
17161 #
17162
17163 #
17164 # was --enable-openssl-hash specified?
17165 #
17166 # Check whether --enable-openssl-hash was given.
17167 if test "${enable_openssl_hash+set}" = set; then :
17168 enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
17169 else
17170 want_openssl_hash="whenossl"
17171 fi
17172
17173
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for using OpenSSL for hash functions" >&5
17175 $as_echo_n "checking for using OpenSSL for hash functions... " >&6; }
17176 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
17177 if test "whenossl" = "$want_openssl_hash"
17178 then
17179 if test "X$CRYPTO" = "X-DOPENSSL"
17180 then
17181 want_openssl_hash="yes"
17182 else
17183 want_openssl_hash="no"
17184 fi
17185 fi
17186 case $want_openssl_hash in
17187 yes)
17188 if test "X$CRYPTO" != "X-DOPENSSL"
17189 then
17190 as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5
17191 fi
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193 $as_echo "yes" >&6; }
17194 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
17195 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
17196 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
17197 ;;
17198 no)
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 $as_echo "no" >&6; }
17201 ;;
17202 esac
17203
17204
17205
17206
17207 if test "X${ISC_OPENSSL_LIBS}" != "X${DST_OPENSSL_LIBS}"
17208 then
17209 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DST_OPENSSL_LIBS"
17210 fi
17211
17212 #
17213 # PKCS11 (aka crypto hardware) support (--with moved just after openssl)
17214 #
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5
17216 $as_echo_n "checking for PKCS11 support... " >&6; }
17217
17218 if test "auto" = "$use_pkcs11"
17219 then
17220 if test "yes" = "$want_native_pkcs11"
17221 then
17222 use_pkcs11="yes"
17223 else
17224 use_pkcs11="no"
17225 fi
17226 fi
17227
17228 case "$use_pkcs11" in
17229 no)
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231 $as_echo "no" >&6; }
17232 USE_PKCS11=""
17233 PKCS11_TEST=""
17234 PKCS11_TOOLS=""
17235 ISC_PK11_C=""
17236 ISC_PK11_O=""
17237 ISC_PK11_API_C=""
17238 ISC_PK11_API_O=""
17239 ISC_PK11_RESULT_C=""
17240 ISC_PK11_RESULT_O=""
17241 ISC_ISCPK11_API_C=""
17242 ISC_ISCPK11_API_O=""
17243 ;;
17244 yes|*)
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17246 $as_echo "yes" >&6; }
17247 if ! $use_threads; then
17248 as_fn_error $? "PKCS11 requires thread support" "$LINENO" 5
17249 fi
17250 if test "X$CRYPTO" = "X-DOPENSSL"
17251 then
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL with PKCS11 support" >&5
17253 $as_echo_n "checking for OpenSSL with PKCS11 support... " >&6; }
17254 saved_cc="$CC"
17255 saved_cflags="$CFLAGS"
17256 saved_libs="$LIBS"
17257 CC="$CC -pthread"
17258 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
17259 LIBS="$LIBS $DST_OPENSSL_LIBS"
17260 if test "$cross_compiling" = yes; then :
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile" >&5
17262 $as_echo "cross compile" >&6; }
17263 PKCS11_TEST=''
17264 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
17265 else
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17268
17269 #include <openssl/conf.h>
17270 #include <openssl/engine.h>
17271 int main() {
17272 ENGINE *e;
17273
17274 OPENSSL_config(NULL);
17275 e = ENGINE_by_id("pkcs11");
17276 if (e == NULL)
17277 return (1);
17278 if (ENGINE_init(e) <= 0)
17279 return (1);
17280 return (0);
17281 }
17282
17283 _ACEOF
17284 if ac_fn_c_try_run "$LINENO"; then :
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17286 $as_echo "yes" >&6; }
17287 PKCS11_TEST=pkcs11ssl
17288 PKCS11_ENGINE='-DPKCS11_ENGINE="\"pkcs11\""'
17289 else
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 $as_echo "no" >&6; }
17292 PKCS11_TEST=''
17293 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
17294 fi
17295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17296 conftest.$ac_objext conftest.beam conftest.$ac_ext
17297 fi
17298
17299 CC="$saved_cc"
17300 CFLAGS="$saved_cflags"
17301 LIBS="$saved_libs"
17302 else
17303 PKCS11_TEST=''
17304 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
17305
17306 fi
17307 USE_PKCS11='-DUSE_PKCS11'
17308 PKCS11_TOOLS=pkcs11
17309 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
17310 if test "x$ac_cv_func_getpassphrase" = xyes; then :
17311 $as_echo "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
17312
17313 fi
17314
17315 ISC_PK11_C="pk11.c"
17316 ISC_PK11_O="pk11.$O"
17317 ISC_PK11_API_C="pk11_api.c"
17318 ISC_PK11_API_O="pk11_api.$O"
17319 ISC_PK11_RESULT_C="pk11_result.c"
17320 ISC_PK11_RESULT_O="pk11_result.$O"
17321 ISC_ISCPK11_API_C="unix/pk11_api.c"
17322 ISC_ISCPK11_API_O="unix/pk11_api.$O"
17323 ;;
17324 esac
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5
17338 $as_echo_n "checking for PKCS11 tools... " >&6; }
17339 case "$use_pkcs11" in
17340 no)
17341 PKCS11_PROVIDER="undefined"
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17343 $as_echo "disabled" >&6; }
17344 ;;
17345 yes|'')
17346 PKCS11_PROVIDER="undefined"
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
17348 $as_echo "enabled" >&6; }
17349 ;;
17350 *)
17351 PKCS11_PROVIDER="$use_pkcs11"
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled, PKCS11 provider is $PKCS11_PROVIDER" >&5
17353 $as_echo "enabled, PKCS11 provider is $PKCS11_PROVIDER" >&6; }
17354 ;;
17355 esac
17356
17357
17358
17359 PKCS11_ECDSA=""
17360 PKCS11_GOST=""
17361 PKCS11_ED25519=""
17362 set_pk11_flavor="no"
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native PKCS11" >&5
17364 $as_echo_n "checking for native PKCS11... " >&6; }
17365
17366 case "$want_native_pkcs11" in
17367 yes)
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using native PKCS11 crypto" >&5
17369 $as_echo "using native PKCS11 crypto" >&6; }
17370 PKCS11LINKOBJS='${PKCS11LINKOBJS}'
17371 PKCS11LINKSRCS='${PKCS11LINKSRCS}'
17372 PKCS11_TEST=pkcs11
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 ECDSA" >&5
17374 $as_echo_n "checking for PKCS11 ECDSA... " >&6; }
17375 case "$with_ecdsa" in
17376 no)
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17378 $as_echo "disabled" >&6; }
17379 ;;
17380 *)
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
17382 $as_echo "enabled" >&6; }
17383 PKCS11_ECDSA="yes"
17384
17385 $as_echo "#define HAVE_PKCS11_ECDSA 1" >>confdefs.h
17386
17387 ;;
17388 esac
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 GOST" >&5
17390 $as_echo_n "checking for PKCS11 GOST... " >&6; }
17391 case "$with_gost" in
17392 yes)
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
17394 $as_echo "enabled" >&6; }
17395 PKCS11_GOST="yes"
17396
17397 $as_echo "#define HAVE_PKCS11_GOST 1" >>confdefs.h
17398
17399 ;;
17400 *)
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17402 $as_echo "disabled" >&6; }
17403 ;;
17404 esac
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 Ed25519" >&5
17406 $as_echo_n "checking for PKCS11 Ed25519... " >&6; }
17407 case "$with_eddsa" in
17408 yes|all)
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
17410 $as_echo "enabled" >&6; }
17411 PKCS11_ED25519="yes"
17412
17413 $as_echo "#define HAVE_PKCS11_ED25519 1" >>confdefs.h
17414
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 Ed448" >&5
17416 $as_echo_n "checking for PKCS11 Ed448... " >&6; }
17417 case "$with_eddsa" in
17418 all)
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
17420 $as_echo "enabled" >&6; }
17421
17422 $as_echo "#define HAVE_PKCS11_ED448 1" >>confdefs.h
17423
17424 ;;
17425 *)
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17427 $as_echo "disabled" >&6; }
17428 ;;
17429 esac
17430 ;;
17431 *)
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17433 $as_echo "disabled" >&6; }
17434 ;;
17435 esac
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 flavor" >&5
17437 $as_echo_n "checking for PKCS11 flavor... " >&6; }
17438 case "$PKCS11_PROVIDER" in
17439 *nfast*)
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Thales nCipher" >&5
17441 $as_echo "Thales nCipher" >&6; }
17442 # default
17443 pk11_flavor="PK11_THALES_FLAVOR"
17444 set_pk11_flavor="yes"
17445 ;;
17446 *libsofthsm2*)
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SoftHSMv2" >&5
17448 $as_echo "SoftHSMv2" >&6; }
17449 pk11_flavor="PK11_SOFTHSMV2_FLAVOR"
17450 set_pk11_flavor="yes"
17451 ;;
17452 *libsofthsm*)
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SoftHSM" >&5
17454 $as_echo "SoftHSM" >&6; }
17455 pk11_flavor="PK11_SOFTHSMV1_FLAVOR"
17456 set_pk11_flavor="yes"
17457 ;;
17458 *cryptech*)
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cryptech" >&5
17460 $as_echo "Cryptech" >&6; }
17461 pk11_flavor="PK11_CRYPTECH_FLAVOR"
17462 set_pk11_flavor="yes"
17463 ;;
17464 *Keyper*)
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AEP Keyper" >&5
17466 $as_echo "AEP Keyper" >&6; }
17467 pk11_flavor="PK11_AEP_FLAVOR"
17468 set_pk11_flavor="yes"
17469 ;;
17470 undefined)
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undefined provider?" >&5
17472 $as_echo "undefined provider?" >&6; }
17473 ;;
17474 *)
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown provider: tweaks are in lib/isc/include/pk11/site.h" >&5
17476 $as_echo "unknown provider: tweaks are in lib/isc/include/pk11/site.h" >&6; }
17477 ;;
17478 esac
17479 if test "yes" = "$set_pk11_flavor" ; then
17480 CFLAGS="$CFLAGS -DPK11_FLAVOR=$pk11_flavor"
17481 fi
17482 ;;
17483 no|'')
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17485 $as_echo "disabled" >&6; }
17486 ;;
17487 esac
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497 # for PKCS11 benchmarks
17498
17499 have_clock_gt=no
17500 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17501 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17502 have_clock_gt=yes
17503 fi
17504
17505 if test "no" = "$have_clock_gt"; then
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17507 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17508 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17509 $as_echo_n "(cached) " >&6
17510 else
17511 ac_check_lib_save_LIBS=$LIBS
17512 LIBS="-lrt $LIBS"
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515
17516 /* Override any GCC internal prototype to avoid an error.
17517 Use char because int might match the return type of a GCC
17518 builtin and then its argument prototype would still apply. */
17519 #ifdef __cplusplus
17520 extern "C"
17521 #endif
17522 char clock_gettime ();
17523 int
17524 main ()
17525 {
17526 return clock_gettime ();
17527 ;
17528 return 0;
17529 }
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17532 ac_cv_lib_rt_clock_gettime=yes
17533 else
17534 ac_cv_lib_rt_clock_gettime=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 LIBS=$ac_check_lib_save_LIBS
17539 fi
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17541 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17542 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17543 have_clock_gt=rt
17544 fi
17545
17546 fi
17547
17548 if test "no" != "$have_clock_gt"; then
17549
17550 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17551
17552 fi
17553
17554 if test "rt" = "$have_clock_gt"; then
17555 LIBS="-lrt $LIBS"
17556 fi
17557
17558 #
17559 # Use the crypto provider (OpenSSL/PKCS#11) for random functions
17560 #
17561
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for using the crypto library (vs. builtin) for random functions" >&5
17563 $as_echo_n "checking for using the crypto library (vs. builtin) for random functions... " >&6; }
17564 # Check whether --enable-crypto-rand was given.
17565 if test "${enable_crypto_rand+set}" = set; then :
17566 enableval=$enable_crypto_rand; want_crypto_rand="$enableval"
17567 else
17568 want_crypto_rand="auto"
17569 fi
17570
17571 if test "$want_crypto_rand" = "auto"
17572 then
17573 case "$CRYPTOLIB" in
17574 "")
17575 want_crypto_rand="no"
17576 ;;
17577 pkcs11)
17578 want_crypto_rand="yes"
17579 ;;
17580 openssl)
17581 saved_cflags="$CFLAGS"
17582 saved_libs="$LIBS"
17583 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
17584 LIBS="$LIBS $DST_OPENSSL_LIBS"
17585 if test "$cross_compiling" = yes; then :
17586 want_crypto_rand="yes"
17587 else
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17590
17591 #include <openssl/rand.h>
17592
17593 unsigned char buf[128];
17594
17595 int main()
17596 {
17597 if (RAND_bytes(buf, 128) != 1)
17598 return (1);
17599 return (0);
17600 }
17601
17602 _ACEOF
17603 if ac_fn_c_try_run "$LINENO"; then :
17604 want_crypto_rand="yes"
17605 else
17606 want_crypto_rand="no"
17607 fi
17608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17609 conftest.$ac_objext conftest.beam conftest.$ac_ext
17610 fi
17611
17612 CFLAGS="$saved_cflags"
17613 LIBS="$saved_libs"
17614 ;;
17615 *)
17616 as_fn_error $? "Unknown crypto library define $CRYPTOLIB" "$LINENO" 5
17617 ;;
17618 esac
17619 fi
17620 case $want_crypto_rand in
17621 yes)
17622 if test "$CRYPTOLIB" = ""
17623 then
17624 as_fn_error $? "No crypto library for random functions" "$LINENO" 5
17625 fi
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CRYPTOLIB\"" >&5
17627 $as_echo "\"$CRYPTOLIB\"" >&6; }
17628 ISC_PLATFORM_CRYPTORANDOM="#define ISC_PLATFORM_CRYPTORANDOM \"$CRYPTOLIB\""
17629 ;;
17630 no)
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17632 $as_echo "no" >&6; }
17633 ISC_PLATFORM_CRYPTORANDOM="#undef ISC_PLATFORM_CRYPTORANDOM"
17634 ;;
17635 esac
17636
17637
17638 #
17639 # was --with-lmdb specified?
17640 #
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
17642 $as_echo_n "checking for lmdb library... " >&6; }
17643
17644 # Check whether --with-lmdb was given.
17645 if test "${with_lmdb+set}" = set; then :
17646 withval=$with_lmdb; use_lmdb="$withval"
17647 else
17648 use_lmdb="auto"
17649 fi
17650
17651
17652 have_lmdb=""
17653 case "$use_lmdb" in
17654 no)
17655 lmdb_libs=""
17656 ;;
17657 auto|yes)
17658 for d in /usr /usr/local /opt/local
17659 do
17660 if test -f "${d}/include/lmdb.h"
17661 then
17662 if test ${d} != /usr
17663 then
17664 lmdb_cflags="-I ${d}/include"
17665 LIBS="$LIBS -L${d}/lib"
17666 fi
17667 have_lmdb="yes"
17668 fi
17669 done
17670 ;;
17671 *)
17672 if test -f "${use_lmdb}/include/lmdb.h"
17673 then
17674 lmdb_cflags="-I${use_lmdb}/include"
17675 LIBS="$LIBS -L${use_lmdb}/lib"
17676 have_lmdb="yes"
17677 else
17678 as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
17679 fi
17680 ;;
17681 esac
17682
17683 if test "X${have_lmdb}" != "X"
17684 then
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686 $as_echo "yes" >&6; }
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
17688 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
17689 if ${ac_cv_search_mdb_env_create+:} false; then :
17690 $as_echo_n "(cached) " >&6
17691 else
17692 ac_func_search_save_LIBS=$LIBS
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17695
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char mdb_env_create ();
17703 int
17704 main ()
17705 {
17706 return mdb_env_create ();
17707 ;
17708 return 0;
17709 }
17710 _ACEOF
17711 for ac_lib in '' lmdb; do
17712 if test -z "$ac_lib"; then
17713 ac_res="none required"
17714 else
17715 ac_res=-l$ac_lib
17716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17717 fi
17718 if ac_fn_c_try_link "$LINENO"; then :
17719 ac_cv_search_mdb_env_create=$ac_res
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext \
17722 conftest$ac_exeext
17723 if ${ac_cv_search_mdb_env_create+:} false; then :
17724 break
17725 fi
17726 done
17727 if ${ac_cv_search_mdb_env_create+:} false; then :
17728
17729 else
17730 ac_cv_search_mdb_env_create=no
17731 fi
17732 rm conftest.$ac_ext
17733 LIBS=$ac_func_search_save_LIBS
17734 fi
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
17736 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
17737 ac_res=$ac_cv_search_mdb_env_create
17738 if test "$ac_res" != no; then :
17739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17740
17741 else
17742 as_fn_error $? "found lmdb include but not library." "$LINENO" 5
17743 have_lmdb=""
17744 fi
17745
17746 elif test "X$use_lmdb" = Xyes
17747 then
17748 as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
17749 else
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752 fi
17753
17754 NZD_TOOLS=""
17755 NZDSRCS=
17756 NZDTARGETS=
17757 if test "X${have_lmdb}" != "X"
17758 then
17759 CFLAGS="$CFLAGS $lmdb_cflags"
17760
17761 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
17762
17763 NZD_TOOLS="nzd"
17764 NZDSRCS='${NZDSRCS}'
17765 NZDTARGETS='${NZDTARGETS}'
17766 fi
17767
17768
17769
17770
17771 #
17772 # was --with-libxml2 specified?
17773 #
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
17775 $as_echo_n "checking for libxml2 library... " >&6; }
17776
17777 # Check whether --with-libxml2 was given.
17778 if test "${with_libxml2+set}" = set; then :
17779 withval=$with_libxml2; use_libxml2="$withval"
17780 else
17781 use_libxml2="auto"
17782 fi
17783
17784
17785 case "$use_libxml2" in
17786 no)
17787 DST_LIBXML2_INC=""
17788 ;;
17789 auto|yes)
17790 case X`(xml2-config --version) 2>/dev/null` in
17791 X2.[6789].*)
17792 libxml2_libs=`xml2-config --libs`
17793 libxml2_cflags=`xml2-config --cflags`
17794 ;;
17795 *)
17796 if test "yes" = "$use_libxml2" ; then
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17798 $as_echo "no" >&6; }
17799 as_fn_error $? "required libxml2 version not available" "$LINENO" 5
17800 else
17801 libxml2_libs=
17802 libxml2_cflags=
17803 fi
17804 ;;
17805 esac
17806 ;;
17807 *)
17808 if test -f "$use_libxml2/bin/xml2-config" ; then
17809 libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
17810 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
17811 fi
17812 ;;
17813 esac
17814
17815 if test "X$libxml2_libs" != "X"
17816 then
17817 CFLAGS="$CFLAGS $libxml2_cflags"
17818 LIBS="$LIBS $libxml2_libs"
17819 #
17820 # Sanity check xml2-config output.
17821 #
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17824 #include <libxml/xmlwriter.h>
17825 int
17826 main ()
17827 {
17828 return(xmlTextWriterStartElement(NULL, NULL));
17829 ;
17830 return 0;
17831 }
17832 _ACEOF
17833 if ac_fn_c_try_link "$LINENO"; then :
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17835 $as_echo "yes" >&6; }
17836 else
17837 as_fn_error $? "xml2-config returns badness" "$LINENO" 5
17838 fi
17839 rm -f core conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841
17842 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
17843
17844 XMLSTATS=1
17845 else
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17847 $as_echo "no" >&6; }
17848 fi
17849
17850
17851 #
17852 # was --with-libjson specified?
17853 #
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
17855 $as_echo_n "checking for json library... " >&6; }
17856
17857 # Check whether --with-libjson was given.
17858 if test "${with_libjson+set}" = set; then :
17859 withval=$with_libjson; use_libjson="$withval"
17860 else
17861 use_libjson="auto"
17862 fi
17863
17864
17865 have_libjson=""
17866 have_libjson_c=""
17867 case "$use_libjson" in
17868 no)
17869 libjson_libs=""
17870 ;;
17871 auto|yes)
17872 for d in /usr /usr/local /opt/local
17873 do
17874 if test -f "${d}/include/json/json.h"
17875 then
17876 if test ${d} != /usr
17877 then
17878 libjson_cflags="-I ${d}/include"
17879 LIBS="$LIBS -L${d}/lib"
17880 fi
17881 have_libjson="yes"
17882 elif test -f "${d}/include/json-c/json.h"
17883 then
17884 if test ${d} != /usr
17885 then
17886 libjson_cflags="-I ${d}/include"
17887 LIBS="$LIBS -L${d}/lib"
17888 fi
17889 have_libjson="yes"
17890 have_libjson_c="yes"
17891 fi
17892 done
17893 ;;
17894 *)
17895 if test -f "${use_libjson}/include/json/json.h"
17896 then
17897 libjson_cflags="-I${use_libjson}/include"
17898 LIBS="$LIBS -L${use_libjson}/lib"
17899 have_libjson="yes"
17900 elif test -f "${use_libjson}/include/json-c/json.h"
17901 then
17902 libjson_cflags="-I${use_libjson}/include"
17903 LIBS="$LIBS -L${use_libjson}/lib"
17904 have_libjson="yes"
17905 have_libjson_c="yes"
17906 else
17907 as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
17908 fi
17909 ;;
17910 esac
17911
17912 if test "X${have_libjson}" != "X"
17913 then
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
17917 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
17918 if ${ac_cv_search_json_object_new_int64+:} false; then :
17919 $as_echo_n "(cached) " >&6
17920 else
17921 ac_func_search_save_LIBS=$LIBS
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924
17925 /* Override any GCC internal prototype to avoid an error.
17926 Use char because int might match the return type of a GCC
17927 builtin and then its argument prototype would still apply. */
17928 #ifdef __cplusplus
17929 extern "C"
17930 #endif
17931 char json_object_new_int64 ();
17932 int
17933 main ()
17934 {
17935 return json_object_new_int64 ();
17936 ;
17937 return 0;
17938 }
17939 _ACEOF
17940 for ac_lib in '' json json-c; do
17941 if test -z "$ac_lib"; then
17942 ac_res="none required"
17943 else
17944 ac_res=-l$ac_lib
17945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17946 fi
17947 if ac_fn_c_try_link "$LINENO"; then :
17948 ac_cv_search_json_object_new_int64=$ac_res
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext
17952 if ${ac_cv_search_json_object_new_int64+:} false; then :
17953 break
17954 fi
17955 done
17956 if ${ac_cv_search_json_object_new_int64+:} false; then :
17957
17958 else
17959 ac_cv_search_json_object_new_int64=no
17960 fi
17961 rm conftest.$ac_ext
17962 LIBS=$ac_func_search_save_LIBS
17963 fi
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
17965 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
17966 ac_res=$ac_cv_search_json_object_new_int64
17967 if test "$ac_res" != no; then :
17968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17969
17970 else
17971 as_fn_error $? "found libjson include but not library." "$LINENO" 5
17972 have_libjson=""
17973 fi
17974
17975 elif test "X$use_libjson" = Xyes
17976 then
17977 as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
17978 else
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17980 $as_echo "no" >&6; }
17981 fi
17982
17983 if test "X${have_libjson}" != "X"
17984 then
17985 CFLAGS="$CFLAGS $libjson_cflags"
17986
17987 $as_echo "#define HAVE_JSON 1" >>confdefs.h
17988
17989 if test "X${have_libjson_c}" = Xyes
17990 then
17991
17992 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
17993
17994 fi
17995 JSONSTATS=1
17996 fi
17997
17998
17999 #
18000 # was --with-zlib specified?
18001 #
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
18003 $as_echo_n "checking for zlib library... " >&6; }
18004
18005 # Check whether --with-zlib was given.
18006 if test "${with_zlib+set}" = set; then :
18007 withval=$with_zlib; with_zlib="$withval"
18008 else
18009 with_zlib="auto"
18010 fi
18011
18012
18013 have_zlib=""
18014 case "$with_zlib" in
18015 no)
18016 zlib_libs=""
18017 ;;
18018 auto|yes)
18019 for d in /usr /usr/local /opt/local
18020 do
18021 if test -f "${d}/include/zlib.h"
18022 then
18023 if test ${d} != /usr
18024 then
18025 zlib_cflags="-I ${d}/include"
18026 LIBS="$LIBS -L${d}/lib"
18027 fi
18028 have_zlib="yes"
18029 fi
18030 done
18031 ;;
18032 *)
18033 if test -f "${with_zlib}/include/zlib.h"
18034 then
18035 zlib_cflags="-I${with_zlib}/include"
18036 LIBS="$LIBS -L${with_zlib}/lib"
18037 have_zlib="yes"
18038 else
18039 as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
18040 fi
18041 ;;
18042 esac
18043
18044 if test "X${have_zlib}" != "X"
18045 then
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18047 $as_echo "yes" >&6; }
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
18049 $as_echo_n "checking for library containing deflate... " >&6; }
18050 if ${ac_cv_search_deflate+:} false; then :
18051 $as_echo_n "(cached) " >&6
18052 else
18053 ac_func_search_save_LIBS=$LIBS
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char deflate ();
18064 int
18065 main ()
18066 {
18067 return deflate ();
18068 ;
18069 return 0;
18070 }
18071 _ACEOF
18072 for ac_lib in '' z; do
18073 if test -z "$ac_lib"; then
18074 ac_res="none required"
18075 else
18076 ac_res=-l$ac_lib
18077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18078 fi
18079 if ac_fn_c_try_link "$LINENO"; then :
18080 ac_cv_search_deflate=$ac_res
18081 fi
18082 rm -f core conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext
18084 if ${ac_cv_search_deflate+:} false; then :
18085 break
18086 fi
18087 done
18088 if ${ac_cv_search_deflate+:} false; then :
18089
18090 else
18091 ac_cv_search_deflate=no
18092 fi
18093 rm conftest.$ac_ext
18094 LIBS=$ac_func_search_save_LIBS
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
18097 $as_echo "$ac_cv_search_deflate" >&6; }
18098 ac_res=$ac_cv_search_deflate
18099 if test "$ac_res" != no; then :
18100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18101
18102 else
18103 as_fn_error $? "found zlib include but not library." "$LINENO" 5
18104 have_zlib=""
18105 fi
18106
18107 elif test "X$with_zlib" = Xyes
18108 then
18109 as_fn_error $? "include/zlib.h not found." "$LINENO" 5
18110 else
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112 $as_echo "no" >&6; }
18113 fi
18114
18115 ZLIB=
18116 if test "X${have_zlib}" != "X"
18117 then
18118 CFLAGS="$CFLAGS $zlib_cflags"
18119
18120 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18121
18122 ZLIB=1
18123 fi
18124
18125
18126
18127 #
18128 # In solaris 10, SMF can manage named service
18129 #
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
18131 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
18132 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
18133 $as_echo_n "(cached) " >&6
18134 else
18135 ac_check_lib_save_LIBS=$LIBS
18136 LIBS="-lscf $LIBS"
18137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18138 /* end confdefs.h. */
18139
18140 /* Override any GCC internal prototype to avoid an error.
18141 Use char because int might match the return type of a GCC
18142 builtin and then its argument prototype would still apply. */
18143 #ifdef __cplusplus
18144 extern "C"
18145 #endif
18146 char smf_enable_instance ();
18147 int
18148 main ()
18149 {
18150 return smf_enable_instance ();
18151 ;
18152 return 0;
18153 }
18154 _ACEOF
18155 if ac_fn_c_try_link "$LINENO"; then :
18156 ac_cv_lib_scf_smf_enable_instance=yes
18157 else
18158 ac_cv_lib_scf_smf_enable_instance=no
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext \
18161 conftest$ac_exeext conftest.$ac_ext
18162 LIBS=$ac_check_lib_save_LIBS
18163 fi
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
18165 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
18166 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
18167 cat >>confdefs.h <<_ACEOF
18168 #define HAVE_LIBSCF 1
18169 _ACEOF
18170
18171 LIBS="-lscf $LIBS"
18172
18173 fi
18174
18175
18176 #
18177 # flockfile is usually provided by pthreads, but we may want to use it
18178 # even if compiled with --disable-threads. getc_unlocked might also not
18179 # be defined.
18180 #
18181 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
18182 if test "x$ac_cv_func_flockfile" = xyes; then :
18183 $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h
18184
18185 fi
18186
18187 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
18188 if test "x$ac_cv_func_getc_unlocked" = xyes; then :
18189 $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h
18190
18191 fi
18192
18193
18194 #
18195 # Indicate what the final decision was regarding threads.
18196 #
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5
18198 $as_echo_n "checking whether to build with threads... " >&6; }
18199 if $use_threads; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201 $as_echo "yes" >&6; }
18202 else
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18205 fi
18206
18207 #
18208 # End of pthreads stuff.
18209 #
18210
18211 #
18212 # Large File
18213 #
18214 # Check whether --enable-largefile was given.
18215 if test "${enable_largefile+set}" = set; then :
18216 enableval=$enable_largefile; want_largefile="yes"
18217 else
18218 want_largefile="no"
18219 fi
18220
18221 case $want_largefile in
18222 yes)
18223 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
18224 ;;
18225 *)
18226 ;;
18227 esac
18228
18229 #
18230 # Additional compiler settings.
18231 #
18232 MKDEPCC="$CC"
18233 MKDEPCFLAGS="-M"
18234 IRIX_DNSSEC_WARNINGS_HACK=""
18235
18236 if test "X$GCC" = "Xyes"; then
18237 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
18239 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
18240 SAVE_CFLAGS="$CFLAGS"
18241 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18244
18245 int
18246 main ()
18247 {
18248
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_compile "$LINENO"; then :
18254 FNOSTRICTALIASING=yes
18255 else
18256 FNOSTRICTALIASING=no
18257 fi
18258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259 CFLAGS="$SAVE_CFLAGS"
18260 if test "yes" = "$FNOSTRICTALIASING"; then
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18262 $as_echo "yes" >&6; }
18263 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
18264 else
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18266 $as_echo "no" >&6; }
18267 fi
18268 #
18269 # turn off delete null pointer checks
18270 #
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
18272 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
18273 SAVE_CFLAGS="$CFLAGS"
18274 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277
18278 int
18279 main ()
18280 {
18281
18282 ;
18283 return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_compile "$LINENO"; then :
18287 FNODELETENULLPOINTERCHECKS=yes
18288 else
18289 FNODELETENULLPOINTERCHECKS=no
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 CFLAGS="$SAVE_CFLAGS"
18293 if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18295 $as_echo "yes" >&6; }
18296 STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
18297 else
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18299 $as_echo "no" >&6; }
18300 fi
18301 case "$host" in
18302 *-hp-hpux*)
18303 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
18304 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
18305 ;;
18306 esac
18307 if test "X$enable_warn_shadow" = Xyes; then
18308 STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
18309 fi
18310 if test "X$enable_warn_error" = Xyes; then
18311 STD_CWARNINGS="$STD_CWARNINGS -Werror"
18312 fi
18313 else
18314 case $host in
18315 *-dec-osf*)
18316 CC="$CC -std"
18317 CCOPT="$CCOPT -std"
18318 CCNOOPT="$CCNOOPT -std"
18319 MKDEPCC="$CC"
18320 ;;
18321 *-hp-hpux*)
18322 CC="$CC -Ae -z"
18323 # The version of the C compiler that constantly warns about
18324 # 'const' as well as alignment issues is unfortunately not
18325 # able to be discerned via the version of the operating
18326 # system, nor does cc have a version flag.
18327 case "`$CC +W 123 2>&1`" in
18328 *Unknown?option*)
18329 STD_CWARNINGS="+w1"
18330 ;;
18331 *)
18332 # Turn off the pointlessly noisy warnings.
18333 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
18334 ;;
18335 esac
18336 CCOPT="$CCOPT -Ae -z"
18337 CCNOOPT="$CCNOOPT -Ae -z"
18338 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
18339 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
18340 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
18341 ;;
18342 *-sgi-irix*)
18343 STD_CWARNINGS="-fullwarn -woff 1209"
18344 #
18345 # Silence more than 250 instances of
18346 # "prototyped function redeclared without prototype"
18347 # and 11 instances of
18348 # "variable ... was set but never used"
18349 # from lib/dns/sec/openssl.
18350 #
18351 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
18352 ;;
18353 *-solaris*)
18354 MKDEPCFLAGS="-xM"
18355 ;;
18356 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
18357 # UnixWare
18358 CC="$CC -w"
18359 ;;
18360 esac
18361 fi
18362
18363
18364
18365
18366
18367
18368 #
18369 # NLS
18370 #
18371 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
18372 if test "x$ac_cv_func_catgets" = xyes; then :
18373 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
18374
18375 fi
18376
18377
18378 #
18379 # -lxnet buys us one big porting headache... standards, gotta love 'em.
18380 #
18381 # AC_CHECK_LIB(xnet, socket, ,
18382 # AC_CHECK_LIB(socket, socket)
18383 # )
18384 #
18385 # Use this for now, instead:
18386 #
18387 case "$host" in
18388 mips-sgi-irix*)
18389 ;;
18390 *-linux*)
18391 ;;
18392 *)
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18394 $as_echo_n "checking for socket in -lsocket... " >&6; }
18395 if ${ac_cv_lib_socket_socket+:} false; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-lsocket $LIBS"
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18406 #ifdef __cplusplus
18407 extern "C"
18408 #endif
18409 char socket ();
18410 int
18411 main ()
18412 {
18413 return socket ();
18414 ;
18415 return 0;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"; then :
18419 ac_cv_lib_socket_socket=yes
18420 else
18421 ac_cv_lib_socket_socket=no
18422 fi
18423 rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425 LIBS=$ac_check_lib_save_LIBS
18426 fi
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18428 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18429 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18430 cat >>confdefs.h <<_ACEOF
18431 #define HAVE_LIBSOCKET 1
18432 _ACEOF
18433
18434 LIBS="-lsocket $LIBS"
18435
18436 fi
18437
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
18439 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
18440 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
18441 $as_echo_n "(cached) " >&6
18442 else
18443 ac_check_lib_save_LIBS=$LIBS
18444 LIBS="-lnsl $LIBS"
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447
18448 /* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18451 #ifdef __cplusplus
18452 extern "C"
18453 #endif
18454 char inet_addr ();
18455 int
18456 main ()
18457 {
18458 return inet_addr ();
18459 ;
18460 return 0;
18461 }
18462 _ACEOF
18463 if ac_fn_c_try_link "$LINENO"; then :
18464 ac_cv_lib_nsl_inet_addr=yes
18465 else
18466 ac_cv_lib_nsl_inet_addr=no
18467 fi
18468 rm -f core conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_check_lib_save_LIBS
18471 fi
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
18473 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
18474 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
18475 cat >>confdefs.h <<_ACEOF
18476 #define HAVE_LIBNSL 1
18477 _ACEOF
18478
18479 LIBS="-lnsl $LIBS"
18480
18481 fi
18482
18483 ;;
18484 esac
18485
18486 #
18487 # Work around Solaris's select() limitations.
18488 #
18489 case "$host" in
18490 *-solaris2.[89]|*-solaris2.1?)
18491
18492 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
18493
18494 ;;
18495 esac
18496
18497 #
18498 # Purify support
18499 #
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
18501 $as_echo_n "checking whether to use purify... " >&6; }
18502
18503 # Check whether --with-purify was given.
18504 if test "${with_purify+set}" = set; then :
18505 withval=$with_purify; use_purify="$withval"
18506 else
18507 use_purify="no"
18508 fi
18509
18510
18511 case "$use_purify" in
18512 no)
18513 ;;
18514 yes)
18515 # Extract the first word of "purify", so it can be a program name with args.
18516 set dummy purify; ac_word=$2
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18518 $as_echo_n "checking for $ac_word... " >&6; }
18519 if ${ac_cv_path_purify_path+:} false; then :
18520 $as_echo_n "(cached) " >&6
18521 else
18522 case $purify_path in
18523 [\\/]* | ?:[\\/]*)
18524 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
18525 ;;
18526 *)
18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528 for as_dir in $PATH
18529 do
18530 IFS=$as_save_IFS
18531 test -z "$as_dir" && as_dir=.
18532 for ac_exec_ext in '' $ac_executable_extensions; do
18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18534 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18536 break 2
18537 fi
18538 done
18539 done
18540 IFS=$as_save_IFS
18541
18542 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
18543 ;;
18544 esac
18545 fi
18546 purify_path=$ac_cv_path_purify_path
18547 if test -n "$purify_path"; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
18549 $as_echo "$purify_path" >&6; }
18550 else
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18552 $as_echo "no" >&6; }
18553 fi
18554
18555
18556 ;;
18557 *)
18558 purify_path="$use_purify"
18559 ;;
18560 esac
18561
18562 case "$use_purify" in
18563 no)
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566 PURIFY=""
18567 ;;
18568 *)
18569 if test -f "$purify_path" || test purify = "$purify_path"; then
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
18571 $as_echo "$purify_path" >&6; }
18572 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
18573 PURIFY="$purify_path $PURIFYFLAGS"
18574 else
18575 as_fn_error $? "$purify_path not found.
18576
18577 Please choose the proper path with the following command:
18578
18579 configure --with-purify=PATH
18580 " "$LINENO" 5
18581 fi
18582 ;;
18583 esac
18584
18585
18586
18587 #
18588 # Google/Great Performance Tools CPU Profiler
18589 #
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
18591 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
18592
18593 # Check whether --with-gperftools-profiler was given.
18594 if test "${with_gperftools_profiler+set}" = set; then :
18595 withval=$with_gperftools_profiler; use_profiler="$withval"
18596 else
18597 use_profiler="no"
18598 fi
18599
18600
18601 case $use_profiler in
18602 yes)
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18604 $as_echo "yes" >&6; }
18605
18606 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
18607
18608 LIBS="$LIBS -lprofiler"
18609 ;;
18610 *)
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612 $as_echo "no" >&6; }
18613 ;;
18614 esac
18615
18616 #
18617 # enable/disable dumping stack backtrace. Also check if the system supports
18618 # glibc-compatible backtrace() function.
18619 #
18620 # Check whether --enable-backtrace was given.
18621 if test "${enable_backtrace+set}" = set; then :
18622 enableval=$enable_backtrace; want_backtrace="$enableval"
18623 else
18624 want_backtrace="yes"
18625 fi
18626
18627 case $want_backtrace in
18628 yes)
18629 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18632 #include <execinfo.h>
18633 int
18634 main ()
18635 {
18636 return (backtrace((void **)0, 0));
18637 ;
18638 return 0;
18639 }
18640 _ACEOF
18641 if ac_fn_c_try_link "$LINENO"; then :
18642
18643 $as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h
18644
18645 fi
18646 rm -f core conftest.err conftest.$ac_objext \
18647 conftest$ac_exeext conftest.$ac_ext
18648 ;;
18649 *)
18650 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
18651 ;;
18652 esac
18653
18654
18655 # Check whether --enable-symtable was given.
18656 if test "${enable_symtable+set}" = set; then :
18657 enableval=$enable_symtable; want_symtable="$enableval"
18658 else
18659 want_symtable="minimal"
18660 fi
18661
18662 case $want_symtable in
18663 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
18664 if test "" = "$PERL"
18665 then
18666 as_fn_error $? "Internal symbol table requires perl but no perl is found.
18667 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
18668 fi
18669 if test "yes" = "$use_libtool"; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
18671 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
18672 else
18673 # we generate the internal symbol table only for those systems
18674 # known to work to avoid unexpected build failure. Also, warn
18675 # about unsupported systems when the feature is enabled
18676 # manually.
18677 case $host_os in
18678 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
18679 MKSYMTBL_PROGRAM="$PERL"
18680 if test "all" = "$want_symtable"; then
18681 ALWAYS_MAKE_SYMTABLE="yes"
18682 fi
18683 ;;
18684 *)
18685 if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
18686 then
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
18688 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
18689 fi
18690 esac
18691 fi
18692 ;;
18693 *)
18694 ;;
18695 esac
18696
18697
18698
18699 #
18700 # File name extension for static archive files, for those few places
18701 # where they are treated differently from dynamic ones.
18702 #
18703 SA=a
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716 BIND9_CO_RULE=".c.$O:"
18717
18718
18719 #
18720 # Here begins a very long section to determine the system's networking
18721 # capabilities. The order of the tests is significant.
18722 #
18723
18724 #
18725 # IPv6
18726 #
18727 # Check whether --enable-ipv6 was given.
18728 if test "${enable_ipv6+set}" = set; then :
18729 enableval=$enable_ipv6;
18730 fi
18731
18732
18733 case "$enable_ipv6" in
18734 yes|''|autodetect)
18735 $as_echo "#define WANT_IPV6 1" >>confdefs.h
18736
18737 ;;
18738 no)
18739 ;;
18740 esac
18741
18742 #
18743 # We do the IPv6 compilation checking after libtool so that we can put
18744 # the right suffix on the files.
18745 #
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
18747 $as_echo_n "checking for IPv6 structures... " >&6; }
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18750
18751 #include <sys/types.h>
18752 #include <sys/socket.h>
18753 #include <netinet/in.h>
18754 int
18755 main ()
18756 {
18757 struct sockaddr_in6 sin6; return (0);
18758 ;
18759 return 0;
18760 }
18761 _ACEOF
18762 if ac_fn_c_try_compile "$LINENO"; then :
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18764 $as_echo "yes" >&6; }
18765 found_ipv6=yes
18766 else
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18768 $as_echo "no" >&6; }
18769 found_ipv6=no
18770 fi
18771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18772
18773 #
18774 # See whether IPv6 support is provided via a Kame add-on.
18775 # This is done before other IPv6 linking tests to LIBS is properly set.
18776 #
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
18778 $as_echo_n "checking for Kame IPv6 support... " >&6; }
18779
18780 # Check whether --with-kame was given.
18781 if test "${with_kame+set}" = set; then :
18782 withval=$with_kame; use_kame="$withval"
18783 else
18784 use_kame="no"
18785 fi
18786
18787
18788 case "$use_kame" in
18789 no)
18790 ;;
18791 yes)
18792 kame_path=/usr/local/v6
18793 ;;
18794 *)
18795 kame_path="$use_kame"
18796 ;;
18797 esac
18798
18799 case "$use_kame" in
18800 no)
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802 $as_echo "no" >&6; }
18803 ;;
18804 *)
18805 if test -f $kame_path/lib/libinet6.a; then
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
18807 $as_echo "$kame_path/lib/libinet6.a" >&6; }
18808 LIBS="-L$kame_path/lib -linet6 $LIBS"
18809 else
18810 as_fn_error $? "$kame_path/lib/libinet6.a not found.
18811
18812 Please choose the proper path with the following command:
18813
18814 configure --with-kame=PATH
18815 " "$LINENO" 5
18816 fi
18817 ;;
18818 esac
18819
18820 #
18821 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
18822 # Including it on Kame-using platforms is very bad, though, because
18823 # Kame uses #error against direct inclusion. So include it on only
18824 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
18825 # This is done before the in6_pktinfo check because that's what
18826 # netinet6/in6.h is needed for.
18827 #
18828
18829 case "$host" in
18830 *-bsdi4.[01]*)
18831 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
18832 isc_netinet6in6_hack="#include <netinet6/in6.h>"
18833 ;;
18834 *)
18835 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
18836 isc_netinet6in6_hack=""
18837 ;;
18838 esac
18839
18840
18841 #
18842 # This is similar to the netinet6/in6.h issue.
18843 #
18844 case "$host" in
18845 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
18846 # UnixWare
18847 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
18848 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
18849 isc_netinetin6_hack="#include <netinet/in6.h>"
18850 ;;
18851 *)
18852 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
18853 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
18854 isc_netinetin6_hack=""
18855 ;;
18856 esac
18857
18858 #
18859 # Now delve deeper into the suitability of the IPv6 support.
18860 #
18861 case "$found_ipv6" in
18862 yes)
18863 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
18864
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5
18866 $as_echo_n "checking for in6_addr... " >&6; }
18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868 /* end confdefs.h. */
18869
18870 #include <sys/types.h>
18871 #include <sys/socket.h>
18872 #include <netinet/in.h>
18873 $isc_netinetin6_hack
18874 $isc_netinet6in6_hack
18875
18876 int
18877 main ()
18878 {
18879 struct in6_addr in6; return (0);
18880 ;
18881 return 0;
18882 }
18883 _ACEOF
18884 if ac_fn_c_try_compile "$LINENO"; then :
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886 $as_echo "yes" >&6; }
18887 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
18888 isc_in_addr6_hack=""
18889 else
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18891 $as_echo "no" >&6; }
18892 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
18893 isc_in_addr6_hack="#define in6_addr in_addr6"
18894 fi
18895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
18898 $as_echo_n "checking for in6addr_any... " >&6; }
18899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18901
18902 #include <sys/types.h>
18903 #include <sys/socket.h>
18904 #include <netinet/in.h>
18905 $isc_netinetin6_hack
18906 $isc_netinet6in6_hack
18907 $isc_in_addr6_hack
18908
18909 int
18910 main ()
18911 {
18912 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 if ac_fn_c_try_link "$LINENO"; then :
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18919 $as_echo "yes" >&6; }
18920 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
18921 else
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18923 $as_echo "no" >&6; }
18924 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
18925 fi
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
18930 $as_echo_n "checking for in6addr_loopback... " >&6; }
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18933
18934 #include <sys/types.h>
18935 #include <sys/socket.h>
18936 #include <netinet/in.h>
18937 $isc_netinetin6_hack
18938 $isc_netinet6in6_hack
18939 $isc_in_addr6_hack
18940
18941 int
18942 main ()
18943 {
18944 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
18945 ;
18946 return 0;
18947 }
18948 _ACEOF
18949 if ac_fn_c_try_link "$LINENO"; then :
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18951 $as_echo "yes" >&6; }
18952 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
18953 else
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18955 $as_echo "no" >&6; }
18956 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
18957 fi
18958 rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
18962 $as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
18963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18964 /* end confdefs.h. */
18965
18966 #include <sys/types.h>
18967 #include <sys/socket.h>
18968 #include <netinet/in.h>
18969 $isc_netinetin6_hack
18970 $isc_netinet6in6_hack
18971
18972 int
18973 main ()
18974 {
18975 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
18976 ;
18977 return 0;
18978 }
18979 _ACEOF
18980 if ac_fn_c_try_compile "$LINENO"; then :
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18982 $as_echo "yes" >&6; }
18983 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
18984 else
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 $as_echo "no" >&6; }
18987 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
18988 fi
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
18992 $as_echo_n "checking for in6_pktinfo... " >&6; }
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18995
18996 #include <sys/types.h>
18997 #include <sys/socket.h>
18998 #include <netinet/in.h>
18999 $isc_netinetin6_hack
19000 $isc_netinet6in6_hack
19001
19002 int
19003 main ()
19004 {
19005 struct in6_pktinfo xyzzy; return (0);
19006 ;
19007 return 0;
19008 }
19009 _ACEOF
19010 if ac_fn_c_try_compile "$LINENO"; then :
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19012 $as_echo "yes" >&6; }
19013 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
19014 else
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5
19016 $as_echo "no -- disabling runtime ipv6 support" >&6; }
19017 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
19018 fi
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020 ;;
19021 no)
19022 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
19023 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
19024 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
19025 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
19026 ISC_IPV6_H="ipv6.h"
19027 ISC_IPV6_O="ipv6.$O"
19028 ISC_ISCIPV6_O="unix/ipv6.$O"
19029 ISC_IPV6_C="ipv6.c"
19030 ;;
19031 esac
19032
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
19034 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19037
19038 #include <sys/types.h>
19039 #include <sys/socket.h>
19040 $isc_netinetin6_hack
19041 $isc_netinet6in6_hack
19042
19043 int
19044 main ()
19045 {
19046 struct sockaddr_storage storage; return (0);
19047 ;
19048 return 0;
19049 }
19050 _ACEOF
19051 if ac_fn_c_try_compile "$LINENO"; then :
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19053 $as_echo "yes" >&6; }
19054 ISC_PLATFORM_HAVESOCKADDRSTORAGE="#define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1"
19055 else
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19057 $as_echo "no" >&6; }
19058 ISC_PLATFORM_HAVESOCKADDRSTORAGE="#undef ISC_PLATFORM_HAVESOCKADDRSTORAGE"
19059 fi
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
19078 $as_echo_n "checking for struct if_laddrreq... " >&6; }
19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080 /* end confdefs.h. */
19081
19082 #include <sys/types.h>
19083 #include <net/if6.h>
19084
19085 int
19086 main ()
19087 {
19088 struct if_laddrreq a;
19089 ;
19090 return 0;
19091 }
19092 _ACEOF
19093 if ac_fn_c_try_link "$LINENO"; then :
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19095 $as_echo "yes" >&6; }
19096 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
19097 else
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19099 $as_echo "no" >&6; }
19100 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
19101 fi
19102 rm -f core conftest.err conftest.$ac_objext \
19103 conftest$ac_exeext conftest.$ac_ext
19104
19105
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
19107 $as_echo_n "checking for struct if_laddrconf... " >&6; }
19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19110
19111 #include <sys/types.h>
19112 #include <net/if6.h>
19113
19114 int
19115 main ()
19116 {
19117 struct if_laddrconf a;
19118 ;
19119 return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_c_try_link "$LINENO"; then :
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19124 $as_echo "yes" >&6; }
19125 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
19126 else
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19129 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
19130 fi
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133
19134
19135 #
19136 # Check for network functions that are often missing. We do this
19137 # after the libtool checking, so we can put the right suffix on
19138 # the files. It also needs to come after checking for a Kame add-on,
19139 # which provides some (all?) of the desired functions.
19140 #
19141
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5
19143 $as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
19144 if test "$cross_compiling" = yes; then :
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5
19146 $as_echo "assuming inet_ntop not needed" >&6; }
19147 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
19148 else
19149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h. */
19151
19152 #include <sys/types.h>
19153 #include <sys/socket.h>
19154 #include <netinet/in.h>
19155 #include <arpa/inet.h>
19156 main() {
19157 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
19158 _ACEOF
19159 if ac_fn_c_try_run "$LINENO"; then :
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19161 $as_echo "yes" >&6; }
19162 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
19163 else
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19165 $as_echo "no" >&6; }
19166 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
19167 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
19168 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
19169 fi
19170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19171 conftest.$ac_objext conftest.beam conftest.$ac_ext
19172 fi
19173
19174
19175
19176 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
19177 # addresses with less than four octets, like "1.2.3". Also leading
19178 # zeros should also be rejected.
19179
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5
19181 $as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
19182 if test "$cross_compiling" = yes; then :
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5
19184 $as_echo "assuming inet_pton needed" >&6; }
19185 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
19186 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
19187 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
19188 else
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191
19192 #include <sys/types.h>
19193 #include <sys/socket.h>
19194 #include <netinet/in.h>
19195 #include <arpa/inet.h>
19196 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
19197 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
19198 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
19199 _ACEOF
19200 if ac_fn_c_try_run "$LINENO"; then :
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19202 $as_echo "yes" >&6; }
19203 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
19204 else
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19206 $as_echo "no" >&6; }
19207 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
19208 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
19209 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
19210 fi
19211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19212 conftest.$ac_objext conftest.beam conftest.$ac_ext
19213 fi
19214
19215
19216
19217
19218
19219 #
19220 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
19221 #
19222 case "$host" in
19223 *-dec-osf*)
19224 # Turn on 4.4BSD style sa_len support.
19225 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h
19226
19227 ;;
19228 esac
19229
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
19231 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
19232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19234
19235 #include <sys/types.h>
19236 #include <sys/socket.h>
19237 int
19238 main ()
19239 {
19240 struct sockaddr sa; sa.sa_len = 0; return (0);
19241 ;
19242 return 0;
19243 }
19244 _ACEOF
19245 if ac_fn_c_try_compile "$LINENO"; then :
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19247 $as_echo "yes" >&6; }
19248 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
19249 else
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19251 $as_echo "no" >&6; }
19252 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
19253 fi
19254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19255
19256
19257 #
19258 # Look for a 4.4BSD or 4.3BSD struct msghdr
19259 #
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5
19261 $as_echo_n "checking for struct msghdr flavor... " >&6; }
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h. */
19264
19265 #include <sys/types.h>
19266 #include <sys/socket.h>
19267 int
19268 main ()
19269 {
19270 struct msghdr msg; msg.msg_flags = 0; return (0);
19271 ;
19272 return 0;
19273 }
19274 _ACEOF
19275 if ac_fn_c_try_compile "$LINENO"; then :
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5
19277 $as_echo "4.4BSD" >&6; }
19278 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
19279 else
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5
19281 $as_echo "4.3BSD" >&6; }
19282 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285
19286
19287 #
19288 # Look for in_port_t.
19289 #
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5
19291 $as_echo_n "checking for type in_port_t... " >&6; }
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19294
19295 #include <sys/types.h>
19296 #include <netinet/in.h>
19297 int
19298 main ()
19299 {
19300 in_port_t port = 25; return (0);
19301 ;
19302 return 0;
19303 }
19304 _ACEOF
19305 if ac_fn_c_try_compile "$LINENO"; then :
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19307 $as_echo "yes" >&6; }
19308 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
19309 else
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19311 $as_echo "no" >&6; }
19312 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
19313 fi
19314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315
19316
19317 #
19318 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
19319 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
19320 # comment in lib/isc/unix/socket.c).
19321 #
19322
19323 # Check whether --enable-tcp_fastopen was given.
19324 if test "${enable_tcp_fastopen+set}" = set; then :
19325 enableval=$enable_tcp_fastopen;
19326 fi
19327
19328
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_FASTOPEN socket option" >&5
19330 $as_echo_n "checking for TCP_FASTOPEN socket option... " >&6; }
19331 case "$enable_tcp_fastopen" in
19332 yes|''|autodetect)
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19335
19336 #include <sys/types.h>
19337 #include <sys/socket.h>
19338 #include <netinet/tcp.h>
19339 #ifdef TCP_FASTOPEN
19340 int has_tfo() { return (0); }
19341 #endif
19342
19343 _ACEOF
19344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19345 $EGREP "has_tfo" >/dev/null 2>&1; then :
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19347 $as_echo "yes" >&6; }
19348 ISC_PLATFORM_HAVETFO="#define ISC_PLATFORM_HAVETFO 1"
19349 else
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19351 $as_echo "no" >&6; }
19352 ISC_PLATFORM_HAVETFO="#undef ISC_PLATFORM_HAVETFO"
19353 fi
19354 rm -f conftest*
19355
19356
19357 ;;
19358 no)
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19360 $as_echo "disabled" >&6; }
19361 ISC_PLATFORM_HAVETFO="#undef ISC_PLATFORM_HAVETFO"
19362 ;;
19363 esac
19364
19365
19366 #
19367 # Check for addrinfo
19368 #
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
19370 $as_echo_n "checking for struct addrinfo... " >&6; }
19371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19372 /* end confdefs.h. */
19373
19374 #include <netdb.h>
19375 int
19376 main ()
19377 {
19378 struct addrinfo a; return (0);
19379 ;
19380 return 0;
19381 }
19382 _ACEOF
19383 if ac_fn_c_try_compile "$LINENO"; then :
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19385 $as_echo "yes" >&6; }
19386 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
19387 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
19388
19389 else
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391 $as_echo "no" >&6; }
19392 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
19393 fi
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395
19396
19397 #
19398 # Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
19399 # known variations here:
19400 #
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5
19402 $as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
19403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404 /* end confdefs.h. */
19405
19406 #include <sys/types.h>
19407 #include <sys/socket.h>
19408 #include <netdb.h>
19409 int getnameinfo(const struct sockaddr *, socklen_t, char *,
19410 socklen_t, char *, socklen_t, unsigned int);
19411 int
19412 main ()
19413 {
19414 return (0);
19415 ;
19416 return 0;
19417 }
19418 _ACEOF
19419 if ac_fn_c_try_compile "$LINENO"; then :
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5
19421 $as_echo "socklen_t for buflen; u_int for flags" >&6; }
19422
19423 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
19424
19425
19426 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
19427
19428
19429 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h
19430
19431 else
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434
19435 #include <sys/types.h>
19436 #include <sys/socket.h>
19437 #include <netdb.h>
19438 int getnameinfo(const struct sockaddr *, socklen_t, char *,
19439 size_t, char *, size_t, int);
19440 int
19441 main ()
19442 {
19443 return (0);
19444 ;
19445 return 0;
19446 }
19447 _ACEOF
19448 if ac_fn_c_try_compile "$LINENO"; then :
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
19450 $as_echo "size_t for buflen; int for flags" >&6; }
19451 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
19452
19453 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
19454
19455 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
19456
19457 else
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19460
19461 #include <sys/types.h>
19462 #include <sys/socket.h>
19463 #include <netdb.h>
19464 int getnameinfo(const struct sockaddr *, size_t, char *,
19465 size_t, char *, size_t, int);
19466 int
19467 main ()
19468 {
19469 return (0);
19470 ;
19471 return 0;
19472 }
19473 _ACEOF
19474 if ac_fn_c_try_compile "$LINENO"; then :
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
19476 $as_echo "size_t for buflen; int for flags" >&6; }
19477 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T size_t" >>confdefs.h
19478
19479 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
19480
19481 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
19482
19483 else
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
19485 $as_echo "not match any subspecies; assume standard definition" >&6; }
19486 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
19487
19488 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
19489
19490 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
19491
19492 fi
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494 fi
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 fi
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498
19499 #
19500 # ...and same for gai_strerror().
19501 #
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5
19503 $as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506
19507 #include <sys/types.h>
19508 #include <sys/socket.h>
19509 #include <netdb.h>
19510 char *gai_strerror(int ecode);
19511 int
19512 main ()
19513 {
19514 return (0);
19515 ;
19516 return 0;
19517 }
19518 _ACEOF
19519 if ac_fn_c_try_compile "$LINENO"; then :
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5
19521 $as_echo "returning char *" >&6; }
19522
19523 $as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h
19524
19525 else
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
19527 $as_echo "not match any subspecies; assume standard definition" >&6; }
19528 $as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h
19529
19530 fi
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19532
19533 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19534 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19535 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19536
19537 fi
19538
19539 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
19540 if test "x$ac_cv_func_gai_strerror" = xyes; then :
19541 $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h
19542
19543 fi
19544
19545
19546
19547 # Check whether --enable-getifaddrs was given.
19548 if test "${enable_getifaddrs+set}" = set; then :
19549 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
19550 else
19551 want_getifaddrs="yes"
19552 fi
19553
19554
19555 #
19556 # This interface iteration code for getifaddrs() will fall back to using
19557 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
19558 # addresses.
19559 #
19560 case $want_getifaddrs in
19561 glibc)
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
19563 $as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
19564 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
19565 if test "x$ac_cv_func_getifaddrs" = xyes; then :
19566 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
19567
19568 fi
19569
19570 ;;
19571 yes)
19572 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
19573 if test "x$ac_cv_func_getifaddrs" = xyes; then :
19574 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
19575
19576 fi
19577
19578 ;;
19579 no)
19580 ;;
19581 esac
19582
19583 #
19584 # Look for a sysctl call to get the list of network interfaces.
19585 #
19586 case $ac_cv_header_sys_sysctl_h in
19587 yes)
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
19589 $as_echo_n "checking for interface list sysctl... " >&6; }
19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591 /* end confdefs.h. */
19592
19593 #include <sys/param.h>
19594 #include <sys/sysctl.h>
19595 #include <sys/socket.h>
19596 #ifdef NET_RT_IFLIST
19597 found_rt_iflist
19598 #endif
19599
19600 _ACEOF
19601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19602 $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19604 $as_echo "yes" >&6; }
19605 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
19606
19607 else
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609 $as_echo "no" >&6; }
19610 fi
19611 rm -f conftest*
19612
19613 ;;
19614 esac
19615
19616 #
19617 # Check for some other useful functions that are not ever-present.
19618 #
19619
19620 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
19621 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
19622 # reportedly defines strsep() without declaring it in <string.h> when
19623 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
19624 # AC_CHECK_FUNC() incorrectly succeeds because it declares
19625 # the function itself.
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5
19627 $as_echo_n "checking for correctly declared strsep()... " >&6; }
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h. */
19630 #include <string.h>
19631 int
19632 main ()
19633 {
19634 char *sp; char *foo = strsep(&sp, ".");
19635 ;
19636 return 0;
19637 }
19638 _ACEOF
19639 if ac_fn_c_try_link "$LINENO"; then :
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19641 $as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
19642 else
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19644 $as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
19645 fi
19646 rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648
19649
19650 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19651 if test "x$ac_cv_func_memmove" = xyes; then :
19652 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
19653 else
19654 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
19655 fi
19656
19657
19658
19659 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
19660 if test "x$ac_cv_func_strtoul" = xyes; then :
19661 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
19662 GENRANDOMLIB=""
19663 else
19664 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
19665 GENRANDOMLIB='${ISCLIBS}'
19666 fi
19667
19668
19669
19670
19671 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19672 if test "x$ac_cv_func_strlcpy" = xyes; then :
19673 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
19674 else
19675 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
19676 fi
19677
19678
19679
19680 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19681 if test "x$ac_cv_func_strlcat" = xyes; then :
19682 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
19683 else
19684 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
19685 fi
19686
19687
19688
19689 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
19690 if test "x$ac_cv_func_strcasestr" = xyes; then :
19691 ISC_PLATFORM_NEEDSTRCASESTR="#undef ISC_PLATFORM_NEEDSTRCASESTR"
19692 else
19693 ISC_PLATFORM_NEEDSTRCASESTR="#define ISC_PLATFORM_NEEDSTRCASESTR 1"
19694 fi
19695
19696
19697
19698
19699
19700 # Check whether --with-readline was given.
19701 if test "${with_readline+set}" = set; then :
19702 withval=$with_readline; use_readline="$withval"
19703 else
19704 use_readline="auto"
19705 fi
19706
19707 case "$use_readline" in
19708 no) ;;
19709 *)
19710 saved_LIBS="$LIBS"
19711 case "$use_readline" in
19712 yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
19713 *) try_readline="$use_readline"
19714 esac
19715 for readline in "$try_readline" $or_readline
19716 do
19717 LIBS="$readline"
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
19719 $as_echo "$as_me: checking for readline with $readline" >&6;}
19720 for ac_func in readline
19721 do :
19722 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19723 if test "x$ac_cv_func_readline" = xyes; then :
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_READLINE 1
19726 _ACEOF
19727
19728 fi
19729 done
19730
19731 if test "yes" = "$ac_cv_func_readline"
19732 then
19733 READLINE_LIB="$readline"
19734 break
19735 fi
19736 for lib in -lterminfo -ltermcap -lncurses -lcurses
19737 do
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
19739 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
19740 unset ac_cv_func_readline
19741 LIBS="$readline $lib"
19742 for ac_func in readline
19743 do :
19744 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19745 if test "x$ac_cv_func_readline" = xyes; then :
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_READLINE 1
19748 _ACEOF
19749
19750 fi
19751 done
19752
19753 if test "yes" = "$ac_cv_func_readline"
19754 then
19755 READLINE_LIB="$readline $lib"
19756 break
19757 fi
19758 done
19759 if test "yes" = "$ac_cv_func_readline"
19760 then
19761 break
19762 fi
19763 done
19764 if test "auto" != "$use_readline" &&
19765 test "X$READLINE_LIB" = "X"
19766 then
19767 as_fn_error $? "The readline library was not found." "$LINENO" 5
19768 fi
19769 LIBS="$saved_LIBS"
19770 ;;
19771 esac
19772 if test "yes" = "$ac_cv_func_readline"
19773 then
19774 case "$READLINE_LIB" in
19775 *edit*)
19776 for ac_header in editline/readline.h
19777 do :
19778 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
19779 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
19780 cat >>confdefs.h <<_ACEOF
19781 #define HAVE_EDITLINE_READLINE_H 1
19782 _ACEOF
19783
19784 fi
19785
19786 done
19787
19788 for ac_header in edit/readline/readline.h
19789 do :
19790 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
19791 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
19792 cat >>confdefs.h <<_ACEOF
19793 #define HAVE_EDIT_READLINE_READLINE_H 1
19794 _ACEOF
19795
19796 fi
19797
19798 done
19799
19800 for ac_header in edit/readline/history.h
19801 do :
19802 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
19803 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
19804 cat >>confdefs.h <<_ACEOF
19805 #define HAVE_EDIT_READLINE_HISTORY_H 1
19806 _ACEOF
19807
19808 fi
19809
19810 done
19811
19812 ;;
19813 esac
19814 for ac_header in readline/readline.h
19815 do :
19816 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19817 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
19818 cat >>confdefs.h <<_ACEOF
19819 #define HAVE_READLINE_READLINE_H 1
19820 _ACEOF
19821
19822 fi
19823
19824 done
19825
19826 for ac_header in readline/history.h
19827 do :
19828 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
19829 if test "x$ac_cv_header_readline_history_h" = xyes; then :
19830 cat >>confdefs.h <<_ACEOF
19831 #define HAVE_READLINE_HISTORY_H 1
19832 _ACEOF
19833
19834 fi
19835
19836 done
19837
19838 fi
19839
19840 ISC_PRINT_OBJS=
19841 ISC_PRINT_SRCS=
19842 ISC_PLATFORM_NEEDPRINTF='#undef ISC_PLATFORM_NEEDPRINTF'
19843 ISC_PLATFORM_NEEDFPRINTF='#undef ISC_PLATFORM_NEEDFPRINTF'
19844 ISC_PLATFORM_NEEDSPRINTF='#undef ISC_PLATFORM_NEEDSPRINTF'
19845 ISC_PLATFORM_NEEDVSNPRINTF='#undef ISC_PLATFORM_NEEDVSNPRINTF'
19846
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf return type" >&5
19848 $as_echo_n "checking sprintf return type... " >&6; }
19849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h. */
19851
19852 #include <stdio.h>
19853
19854 int
19855 main ()
19856 {
19857 char buf[2]; return(*sprintf(buf,"x"));
19858 ;
19859 return 0;
19860 }
19861 _ACEOF
19862 if ac_fn_c_try_compile "$LINENO"; then :
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
19864 $as_echo "char *" >&6; }
19865 ISC_PRINT_OBJS="print.$O"
19866 ISC_PRINT_SRCS="print.c"
19867 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
19868
19869 else
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
19871 $as_echo "int" >&6; }
19872 fi
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874
19875 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
19876 if test "x$ac_cv_func_vsnprintf" = xyes; then :
19877
19878 else
19879 ISC_PRINT_OBJS="print.$O"
19880 ISC_PRINT_SRCS="print.c"
19881 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
19882 fi
19883
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf for %z support" >&5
19886 $as_echo_n "checking printf for %z support... " >&6; }
19887 if test "$cross_compiling" = yes; then :
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform supports %z" >&5
19889 $as_echo "assuming target platform supports %z" >&6; }
19890 else
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893
19894 #include <stdio.h>
19895
19896 int
19897 main() {
19898 size_t j = 0;
19899 char buf[100];
19900 buf[0] = 0;
19901 sprintf(buf, "%zu", j);
19902 return ((buf[0] == '0' && buf[1] == '\0') ? 0 : 1);
19903 }
19904
19905 _ACEOF
19906 if ac_fn_c_try_run "$LINENO"; then :
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19908 $as_echo "yes" >&6; }
19909 else
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19911 $as_echo "no" >&6; }
19912 ISC_PRINT_OBJS="print.$O"
19913 ISC_PRINT_SRCS="print.c"
19914 ISC_PLATFORM_NEEDPRINTF='#define ISC_PLATFORM_NEEDPRINTF 1'
19915 ISC_PLATFORM_NEEDFPRINTF='#define ISC_PLATFORM_NEEDFPRINTF 1'
19916 ISC_PLATFORM_NEEDFSRINTF='#define ISC_PLATFORM_NEEDSPRINTF 1'
19917 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
19918 fi
19919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19920 conftest.$ac_objext conftest.beam conftest.$ac_ext
19921 fi
19922
19923
19924
19925
19926
19927
19928
19929 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
19930 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
19931
19932
19933
19934 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19935 if test "x$ac_cv_func_strerror" = xyes; then :
19936 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
19937
19938 fi
19939
19940 #
19941 # Use our own SPNEGO implementation?
19942 #
19943 # Check whether --enable-isc-spnego was given.
19944 if test "${enable_isc_spnego+set}" = set; then :
19945 enableval=$enable_isc_spnego;
19946 fi
19947
19948
19949 if test -n "$USE_GSSAPI"
19950 then
19951 case "$enable_isc_spnego" in
19952 yes|'')
19953 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
19954 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
19955 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
19957 $as_echo "using SPNEGO from lib/dns" >&6; }
19958 ;;
19959 no)
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
19961 $as_echo "using SPNEGO from GSSAPI library" >&6; }
19962 ;;
19963 esac
19964 fi
19965
19966
19967
19968
19969
19970
19971 # Determine the printf format characters to use when printing
19972 # values of type isc_int64_t. This will normally be "ll", but where
19973 # the compiler treats "long long" as a alias for "long" and printf
19974 # doesn't know about "long long" use "l". Hopefully the sprintf
19975 # will produce a inconsistent result in the later case. If the compiler
19976 # fails due to seeing "%lld" we fall back to "l".
19977 #
19978 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
19979 # %ld even for (long long)/
19980 #
19981 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
19982 # configure on Win32.
19983 #
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5
19985 $as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
19986 if test "$cross_compiling" = yes; then :
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5
19988 $as_echo "assuming target platform uses ll" >&6; }
19989 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
19990 else
19991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
19993
19994 #include <stdio.h>
19995 main() {
19996 long long int j = 0;
19997 char buf[100];
19998 buf[0] = 0;
19999 sprintf(buf, "%lld", j);
20000 exit((sizeof(long long int) != sizeof(long int))? 0 :
20001 (strcmp(buf, "0") != 0));
20002 }
20003
20004 _ACEOF
20005 if ac_fn_c_try_run "$LINENO"; then :
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5
20007 $as_echo "ll" >&6; }
20008 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
20009 else
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5
20011 $as_echo "l" >&6; }
20012 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
20013 fi
20014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20015 conftest.$ac_objext conftest.beam conftest.$ac_ext
20016 fi
20017
20018
20019
20020
20021 #
20022 # Security Stuff
20023 #
20024 # Note it is very recommended to *not* disable chroot(),
20025 # this is only because chroot() was made obsolete by Posix.
20026 # Check whether --enable-chroot was given.
20027 if test "${enable_chroot+set}" = set; then :
20028 enableval=$enable_chroot;
20029 fi
20030
20031 case "$enable_chroot" in
20032 yes|'')
20033 for ac_func in chroot
20034 do :
20035 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
20036 if test "x$ac_cv_func_chroot" = xyes; then :
20037 cat >>confdefs.h <<_ACEOF
20038 #define HAVE_CHROOT 1
20039 _ACEOF
20040
20041 fi
20042 done
20043
20044 ;;
20045 no)
20046 ;;
20047 esac
20048 # Check whether --enable-linux-caps was given.
20049 if test "${enable_linux_caps+set}" = set; then :
20050 enableval=$enable_linux_caps;
20051 fi
20052
20053 case "$enable_linux_caps" in
20054 yes|'')
20055 for ac_header in linux/types.h
20056 do :
20057 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
20058 if test "x$ac_cv_header_linux_types_h" = xyes; then :
20059 cat >>confdefs.h <<_ACEOF
20060 #define HAVE_LINUX_TYPES_H 1
20061 _ACEOF
20062
20063 fi
20064
20065 done
20066
20067 for ac_header in sys/capability.h
20068 do :
20069 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
20070 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
20071 cat >>confdefs.h <<_ACEOF
20072 #define HAVE_SYS_CAPABILITY_H 1
20073 _ACEOF
20074
20075 fi
20076
20077 done
20078
20079 for ac_header in linux/capability.h
20080 do :
20081 ac_fn_c_check_header_compile "$LINENO" "linux/capability.h" "ac_cv_header_linux_capability_h" "#ifdef HAVE_LINUX_TYPES_H
20082 #include <linux/types.h>
20083 #endif
20084
20085 "
20086 if test "x$ac_cv_header_linux_capability_h" = xyes; then :
20087 cat >>confdefs.h <<_ACEOF
20088 #define HAVE_LINUX_CAPABILITY_H 1
20089 _ACEOF
20090
20091 fi
20092
20093 done
20094
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
20096 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
20097 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
20098 $as_echo_n "(cached) " >&6
20099 else
20100 ac_check_lib_save_LIBS=$LIBS
20101 LIBS="-lcap $LIBS"
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20104
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20108 #ifdef __cplusplus
20109 extern "C"
20110 #endif
20111 char cap_set_proc ();
20112 int
20113 main ()
20114 {
20115 return cap_set_proc ();
20116 ;
20117 return 0;
20118 }
20119 _ACEOF
20120 if ac_fn_c_try_link "$LINENO"; then :
20121 ac_cv_lib_cap_cap_set_proc=yes
20122 else
20123 ac_cv_lib_cap_cap_set_proc=no
20124 fi
20125 rm -f core conftest.err conftest.$ac_objext \
20126 conftest$ac_exeext conftest.$ac_ext
20127 LIBS=$ac_check_lib_save_LIBS
20128 fi
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
20130 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
20131 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
20132 cat >>confdefs.h <<_ACEOF
20133 #define HAVE_LIBCAP 1
20134 _ACEOF
20135
20136 LIBS="-lcap $LIBS"
20137
20138 fi
20139
20140 ;;
20141 no)
20142 ;;
20143 esac
20144 for ac_header in sys/prctl.h
20145 do :
20146 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
20147 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
20148 cat >>confdefs.h <<_ACEOF
20149 #define HAVE_SYS_PRCTL_H 1
20150 _ACEOF
20151
20152 fi
20153
20154 done
20155
20156
20157 for ac_header in sys/un.h
20158 do :
20159 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
20160 if test "x$ac_cv_header_sys_un_h" = xyes; then :
20161 cat >>confdefs.h <<_ACEOF
20162 #define HAVE_SYS_UN_H 1
20163 _ACEOF
20164 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
20165
20166 else
20167 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
20168
20169 fi
20170
20171 done
20172
20173
20174
20175 case "$host" in
20176 *-solaris*)
20177
20178 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
20179
20180 ;;
20181 *-sunos*)
20182
20183 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
20184
20185 ;;
20186 esac
20187
20188 #
20189 # Time Zone Stuff
20190 #
20191 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
20192 if test "x$ac_cv_func_tzset" = xyes; then :
20193 $as_echo "#define HAVE_TZSET 1" >>confdefs.h
20194
20195 fi
20196
20197
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
20199 $as_echo_n "checking for optarg declaration... " >&6; }
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20202
20203 #include <unistd.h>
20204
20205 int
20206 main ()
20207 {
20208 optarg = 0;
20209 ;
20210 return 0;
20211 }
20212 _ACEOF
20213 if ac_fn_c_try_compile "$LINENO"; then :
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20215 $as_echo "yes" >&6; }
20216 else
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20218 $as_echo "no" >&6; }
20219 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
20220
20221 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
20222
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20225
20226 #
20227 # Check for nanoseconds in file stats
20228 #
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking st_mtim.tv_nsec" >&5
20230 $as_echo_n "checking st_mtim.tv_nsec... " >&6; }
20231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h. */
20233 #include <sys/fcntl.h>
20234 int
20235 main ()
20236 {
20237 struct stat s; return(s.st_mtim.tv_nsec);
20238 ;
20239 return 0;
20240 }
20241 _ACEOF
20242 if ac_fn_c_try_compile "$LINENO"; then :
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20244 $as_echo "yes" >&6; }
20245 ISC_PLATFORM_HAVESTATNSEC="#define ISC_PLATFORM_HAVESTATNSEC 1"
20246 else
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 $as_echo "no" >&6; }
20249 ISC_PLATFORM_HAVESTATNSEC="#undef ISC_PLATFORM_HAVESTATNSEC"
20250 fi
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252
20253
20254 #
20255 # BSD/OS, and perhaps some others, don't define rlim_t.
20256 #
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5
20258 $as_echo_n "checking for type rlim_t... " >&6; }
20259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20260 /* end confdefs.h. */
20261
20262 #include <sys/types.h>
20263 #include <sys/time.h>
20264 #include <sys/resource.h>
20265 int
20266 main ()
20267 {
20268 rlim_t rl = 19671212; return (0);
20269 ;
20270 return 0;
20271 }
20272 _ACEOF
20273 if ac_fn_c_try_compile "$LINENO"; then :
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20275 $as_echo "yes" >&6; }
20276 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
20277 else
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20279 $as_echo "no" >&6; }
20280
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5
20282 $as_echo_n "checking type of rlim_cur... " >&6; }
20283 if test "$cross_compiling" = yes; then :
20284
20285
20286 # Check whether --with-rlimtype was given.
20287 if test "${with_rlimtype+set}" = set; then :
20288 withval=$with_rlimtype; rlimtype="$withval"
20289 else
20290 rlimtype="long long int"
20291 fi
20292
20293 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype"
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5
20295 $as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; }
20296 else
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299
20300 #include <sys/types.h>
20301 #include <sys/time.h>
20302 #include <sys/resource.h>
20303 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
20304 _ACEOF
20305 if ac_fn_c_try_run "$LINENO"; then :
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
20307 $as_echo "int" >&6; }
20308 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
20309 else
20310
20311 if test "$cross_compiling" = yes; then :
20312 as_fn_error $? "this cannot happen" "$LINENO" 5
20313 else
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20315 /* end confdefs.h. */
20316
20317 #include <sys/types.h>
20318 #include <sys/time.h>
20319 #include <sys/resource.h>
20320 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
20321 _ACEOF
20322 if ac_fn_c_try_run "$LINENO"; then :
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
20324 $as_echo "long int" >&6; }
20325 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
20326 else
20327
20328 if test "$cross_compiling" = yes; then :
20329 as_fn_error $? "this cannot happen" "$LINENO" 5
20330 else
20331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20332 /* end confdefs.h. */
20333
20334 #include <sys/types.h>
20335 #include <sys/time.h>
20336 #include <sys/resource.h>
20337 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
20338 _ACEOF
20339 if ac_fn_c_try_run "$LINENO"; then :
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
20341 $as_echo "long long int" >&6; }
20342 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
20343 else
20344 as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5
20345
20346 fi
20347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20348 conftest.$ac_objext conftest.beam conftest.$ac_ext
20349 fi
20350
20351
20352 fi
20353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20354 conftest.$ac_objext conftest.beam conftest.$ac_ext
20355 fi
20356
20357
20358 fi
20359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20360 conftest.$ac_objext conftest.beam conftest.$ac_ext
20361 fi
20362
20363
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366
20367
20368 #
20369 # Older HP-UX doesn't have gettune
20370 #
20371 case "$host" in
20372 *-hp-hpux*)
20373 for ac_header in sys/dyntune.h
20374 do :
20375 ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
20376 if test "x$ac_cv_header_sys_dyntune_h" = xyes; then :
20377 cat >>confdefs.h <<_ACEOF
20378 #define HAVE_SYS_DYNTUNE_H 1
20379 _ACEOF
20380
20381 fi
20382
20383 done
20384
20385 ;;
20386 *)
20387 ;;
20388 esac
20389
20390
20391 #
20392 # Compaq TruCluster requires more code for handling cluster IP aliases
20393 #
20394 case "$host" in
20395 *-dec-osf*)
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5
20397 $as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
20398 if ${ac_cv_lib_clua_clua_getaliasaddress+:} false; then :
20399 $as_echo_n "(cached) " >&6
20400 else
20401 ac_check_lib_save_LIBS=$LIBS
20402 LIBS="-lclua $LIBS"
20403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404 /* end confdefs.h. */
20405
20406 /* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20409 #ifdef __cplusplus
20410 extern "C"
20411 #endif
20412 char clua_getaliasaddress ();
20413 int
20414 main ()
20415 {
20416 return clua_getaliasaddress ();
20417 ;
20418 return 0;
20419 }
20420 _ACEOF
20421 if ac_fn_c_try_link "$LINENO"; then :
20422 ac_cv_lib_clua_clua_getaliasaddress=yes
20423 else
20424 ac_cv_lib_clua_clua_getaliasaddress=no
20425 fi
20426 rm -f core conftest.err conftest.$ac_objext \
20427 conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20429 fi
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
20431 $as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
20432 if test "x$ac_cv_lib_clua_clua_getaliasaddress" = xyes; then :
20433 LIBS="-lclua $LIBS"
20434 fi
20435
20436 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress"
20437 if test "x$ac_cv_func_clua_getaliasaddress" = xyes; then :
20438
20439 $as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h
20440
20441 fi
20442
20443 ;;
20444 *)
20445 ;;
20446 esac
20447
20448 #
20449 # Some hosts need msg_namelen to match the size of the socket structure.
20450 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
20451 #
20452 case $host in
20453 *os2*|*hp-mpeix*)
20454
20455 $as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h
20456
20457 ;;
20458 esac
20459
20460 #
20461 # Microsoft has their own way of handling shared libraries that requires
20462 # additional qualifiers on extern variables. Unix systems don't need it.
20463 #
20464
20465 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
20466
20467 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
20468
20469 #
20470 # Random remaining OS-specific issues involving compiler warnings.
20471 # XXXDCL print messages to indicate some compensation is being done?
20472 #
20473
20474 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
20475
20476 case "$host" in
20477 *-aix5.[123].*)
20478 hack_shutup_pthreadonceinit=yes
20479 ;;
20480 *-bsdi3.1*)
20481 hack_shutup_sputaux=yes
20482 ;;
20483 *-bsdi4.0*)
20484 hack_shutup_sigwait=yes
20485 hack_shutup_sputaux=yes
20486 ;;
20487 *-bsdi4.[12]*)
20488 hack_shutup_stdargcast=yes
20489 ;;
20490 *-solaris2.[89])
20491 hack_shutup_pthreadonceinit=yes
20492 ;;
20493 *-solaris2.1[0-9])
20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20496 #include <pthread.h>
20497 int
20498 main ()
20499 {
20500 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
20501 ;
20502 return 0;
20503 }
20504 _ACEOF
20505 if ac_fn_c_try_compile "$LINENO"; then :
20506 hack_shutup_pthreadonceinit=yes
20507 fi
20508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 ;;
20510 esac
20511
20512 case "$hack_shutup_pthreadonceinit" in
20513 yes)
20514 #
20515 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
20516 #
20517 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
20518 ;;
20519 esac
20520
20521 case "$hack_shutup_sigwait" in
20522 yes)
20523 #
20524 # Shut up a -Wmissing-prototypes warning for sigwait().
20525 #
20526 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h
20527
20528 ;;
20529 esac
20530
20531 case "$hack_shutup_sputaux" in
20532 yes)
20533 #
20534 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
20535 #
20536 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h
20537
20538 ;;
20539 esac
20540
20541 case "$hack_shutup_stdargcast" in
20542 yes)
20543 #
20544 # Shut up a -Wcast-qual warning from va_start().
20545 #
20546 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h
20547
20548 ;;
20549 esac
20550
20551 for ac_header in strings.h
20552 do :
20553 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
20554 if test "x$ac_cv_header_strings_h" = xyes; then :
20555 cat >>confdefs.h <<_ACEOF
20556 #define HAVE_STRINGS_H 1
20557 _ACEOF
20558 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
20559
20560 else
20561 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
20562
20563 fi
20564
20565 done
20566
20567
20568
20569 #
20570 # Check for if_nametoindex() for IPv6 scoped addresses support
20571 #
20572 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
20573 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
20574 ac_cv_have_if_nametoindex=yes
20575 else
20576 ac_cv_have_if_nametoindex=no
20577 fi
20578
20579 case $ac_cv_have_if_nametoindex in
20580 no)
20581 case "$host" in
20582 *-hp-hpux*)
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
20584 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
20585 if ${ac_cv_lib_ipv6_if_nametoindex+:} false; then :
20586 $as_echo_n "(cached) " >&6
20587 else
20588 ac_check_lib_save_LIBS=$LIBS
20589 LIBS="-lipv6 $LIBS"
20590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591 /* end confdefs.h. */
20592
20593 /* Override any GCC internal prototype to avoid an error.
20594 Use char because int might match the return type of a GCC
20595 builtin and then its argument prototype would still apply. */
20596 #ifdef __cplusplus
20597 extern "C"
20598 #endif
20599 char if_nametoindex ();
20600 int
20601 main ()
20602 {
20603 return if_nametoindex ();
20604 ;
20605 return 0;
20606 }
20607 _ACEOF
20608 if ac_fn_c_try_link "$LINENO"; then :
20609 ac_cv_lib_ipv6_if_nametoindex=yes
20610 else
20611 ac_cv_lib_ipv6_if_nametoindex=no
20612 fi
20613 rm -f core conftest.err conftest.$ac_objext \
20614 conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20616 fi
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
20618 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
20619 if test "x$ac_cv_lib_ipv6_if_nametoindex" = xyes; then :
20620 ac_cv_have_if_nametoindex=yes
20621 LIBS="-lipv6 $LIBS"
20622 fi
20623
20624 ;;
20625 esac
20626 esac
20627 case $ac_cv_have_if_nametoindex in
20628 yes)
20629 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
20630
20631 $as_echo "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
20632
20633 ;;
20634 *)
20635 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
20636 ;;
20637 esac
20638
20639
20640 for ac_func in nanosleep usleep explicit_bzero
20641 do :
20642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20645 cat >>confdefs.h <<_ACEOF
20646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20647 _ACEOF
20648
20649 fi
20650 done
20651
20652
20653 #
20654 # Machine architecture dependent features
20655 #
20656 have_stdatomic=no
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable stdatomic.h" >&5
20658 $as_echo_n "checking for usable stdatomic.h... " >&6; }
20659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20661
20662 #include <stdio.h>
20663 #include <stdatomic.h>
20664
20665 int
20666 main ()
20667 {
20668
20669 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
20670
20671 ;
20672 return 0;
20673 }
20674 _ACEOF
20675 if ac_fn_c_try_compile "$LINENO"; then :
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20677 $as_echo "yes" >&6; }
20678 have_stdatomic=yes
20679 ISC_PLATFORM_HAVESTDATOMIC="#define ISC_PLATFORM_HAVESTDATOMIC 1"
20680 else
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682 $as_echo "no" >&6; }
20683 have_stdatomic=no
20684 ISC_PLATFORM_HAVESTDATOMIC="#undef ISC_PLATFORM_HAVESTDATOMIC"
20685 fi
20686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687
20688 # Check whether --enable-atomic was given.
20689 if test "${enable_atomic+set}" = set; then :
20690 enableval=$enable_atomic; enable_atomic="$enableval"
20691 else
20692 enable_atomic="autodetect"
20693 fi
20694
20695 case "$enable_atomic" in
20696 yes|''|autodetect)
20697 case "$host" in
20698 powerpc-ibm-aix*)
20699 if test "X$GCC" = "Xyes"; then
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"ics\"); works" >&5
20701 $as_echo_n "checking if asm(\"ics\"); works... " >&6; }
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20704
20705 int
20706 main ()
20707 {
20708
20709 main() { asm("ics"); exit(0); }
20710
20711 ;
20712 return 0;
20713 }
20714 _ACEOF
20715 if ac_fn_c_try_compile "$LINENO"; then :
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20717 $as_echo "yes" >&6; }
20718 use_atomic=yes
20719 else
20720
20721 saved_cflags="$CFLAGS"
20722 CFLAGS="$CFLAGS -Wa,-many"
20723 if test "$cross_compiling" = yes; then :
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5
20725 $as_echo "cross compile, assume yes" >&6; }
20726 CFLAGS="$saved_cflags"
20727 use_atomic=yes
20728 else
20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* end confdefs.h. */
20731
20732 main() { asm("ics"); exit(0); }
20733
20734 _ACEOF
20735 if ac_fn_c_try_run "$LINENO"; then :
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5
20737 $as_echo "yes, required -Wa,-many" >&6; }
20738 use_atomic=yes
20739 else
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5
20741 $as_echo "no, use_atomic disabled" >&6; }
20742 CFLAGS="$saved_cflags"
20743 use_atomic=no
20744 fi
20745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20746 conftest.$ac_objext conftest.beam conftest.$ac_ext
20747 fi
20748
20749
20750
20751 fi
20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 else
20754 use_atomic=yes
20755 fi
20756 ;;
20757 *)
20758 use_atomic=yes
20759 ;;
20760 esac
20761 ;;
20762 no)
20763 have_stdatomic=no
20764 ISC_PLATFORM_HAVESTDATOMIC="#undef ISC_PLATFORM_HAVESTDATOMIC"
20765 use_atomic=no
20766 arch=noatomic
20767 ;;
20768 esac
20769
20770 if test "X$have_stdatomic" = "Xyes"; then
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -latomic is needed to use 64-bit stdatomic.h primitives" >&5
20772 $as_echo_n "checking if -latomic is needed to use 64-bit stdatomic.h primitives... " >&6; }
20773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20774 /* end confdefs.h. */
20775 #include <stdatomic.h>
20776 int
20777 main ()
20778 {
20779 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
20780 ;
20781 return 0;
20782 }
20783 _ACEOF
20784 if ac_fn_c_try_link "$LINENO"; then :
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786 $as_echo "no" >&6; }
20787 ISC_ATOMIC_LIBS=""
20788 else
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20790 $as_echo "yes" >&6; }
20791 ISC_ATOMIC_LIBS="-latomic"
20792
20793 fi
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20796 LIBS="$LIBS $ISC_ATOMIC_LIBS"
20797 fi
20798
20799
20800
20801 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
20802 ISC_PLATFORM_USEGCCASM="#undef ISC_PLATFORM_USEGCCASM"
20803 ISC_PLATFORM_USESTDASM="#undef ISC_PLATFORM_USESTDASM"
20804 ISC_PLATFORM_USEMACASM="#undef ISC_PLATFORM_USEMACASM"
20805 if test "yes" = "$use_atomic"; then
20806 # The cast to long int works around a bug in the HP C Compiler
20807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20809 # This bug is HP SR number 8606223364.
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20811 $as_echo_n "checking size of void *... " >&6; }
20812 if ${ac_cv_sizeof_void_p+:} false; then :
20813 $as_echo_n "(cached) " >&6
20814 else
20815 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
20816
20817 else
20818 if test "$ac_cv_type_void_p" = yes; then
20819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20821 as_fn_error 77 "cannot compute sizeof (void *)
20822 See \`config.log' for more details" "$LINENO" 5; }
20823 else
20824 ac_cv_sizeof_void_p=0
20825 fi
20826 fi
20827
20828 fi
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20830 $as_echo "$ac_cv_sizeof_void_p" >&6; }
20831
20832
20833
20834 cat >>confdefs.h <<_ACEOF
20835 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20836 _ACEOF
20837
20838
20839 have_atomic=yes # set default
20840 case "$host" in
20841 i[3456]86-*)
20842 # XXX: some old x86 architectures actually do not support
20843 # (some of) these operations. Do we need stricter checks?
20844 if test $ac_cv_sizeof_void_p = 8; then
20845 arch=x86_64
20846 have_xaddq=yes
20847 else
20848 arch=x86_32
20849 fi
20850 ;;
20851 x86_64-*|amd64-*)
20852 if test $ac_cv_sizeof_void_p = 8; then
20853 arch=x86_64
20854 have_xaddq=yes
20855 else
20856 arch=x86_32
20857 fi
20858 ;;
20859 alpha*-*)
20860 arch=alpha
20861 ;;
20862 powerpc-*|powerpc64-*)
20863 arch=powerpc
20864 ;;
20865 mips-*|mipsel-*|mips64-*|mips64el-*)
20866 arch=mips
20867 ;;
20868 ia64-*)
20869 arch=ia64
20870 ;;
20871 *)
20872 have_atomic=no
20873 arch=noatomic
20874 ;;
20875 esac
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5
20877 $as_echo_n "checking architecture type for atomic operations... " >&6; }
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5
20879 $as_echo "$arch" >&6; }
20880 fi
20881
20882 if test "yes" = "$have_atomic"; then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5
20884 $as_echo_n "checking compiler support for inline assembly code... " >&6; }
20885
20886 compiler=generic
20887 # Check whether the compiler supports the assembly syntax we provide.
20888 if test "X$GCC" = "Xyes"; then
20889 # GCC's ASM extension always works
20890 compiler=gcc
20891 if test $arch = "x86_64"; then
20892 # We can share the same code for gcc with x86_32
20893 arch=x86_32
20894 fi
20895 if test $arch = "powerpc"; then
20896 #
20897 # The MacOS (and maybe others) uses "r0" for register
20898 # zero. Under linux/ibm it is "0" for register 0.
20899 # Probe to see if we have a MacOS style assembler.
20900 #
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5
20902 $as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
20903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20904 /* end confdefs.h. */
20905
20906 int
20907 main ()
20908 {
20909
20910 __asm__ volatile ("li r0, 0x0\n"::);
20911
20912 ;
20913 return 0;
20914 }
20915 _ACEOF
20916 if ac_fn_c_try_compile "$LINENO"; then :
20917
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20919 $as_echo "yes" >&6; }
20920 compiler="mac"
20921 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
20922
20923 else
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20925 $as_echo "no" >&6; }
20926 fi
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 fi
20929 else
20930 case "$host" in
20931 alpha*-dec-osf*)
20932 # Tru64 compiler has its own syntax for inline
20933 # assembly.
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20936
20937 int
20938 main ()
20939 {
20940
20941 #ifndef __DECC
20942 #error "unexpected compiler"
20943 #endif
20944 return (0);
20945 ;
20946 return 0;
20947 }
20948 _ACEOF
20949 if ac_fn_c_try_compile "$LINENO"; then :
20950 compiler=osf
20951 fi
20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 ;;
20954 powerpc-ibm-aix*)
20955 compiler=aix
20956 ;;
20957 esac
20958 fi
20959 case "$compiler" in
20960 gcc)
20961 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
20962 ;;
20963 osf)
20964 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
20965 ;;
20966 aix)
20967 ;;
20968 mac)
20969 ;;
20970 *)
20971 # See if the generic __asm function works. If not,
20972 # we need to disable the atomic operations.
20973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20974 /* end confdefs.h. */
20975
20976 int
20977 main ()
20978 {
20979
20980 __asm("nop")
20981
20982 ;
20983 return 0;
20984 }
20985 _ACEOF
20986 if ac_fn_c_try_link "$LINENO"; then :
20987 compiler="standard"
20988 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
20989 else
20990 compiler="not supported (atomic operations disabled)"
20991 have_atomic=no
20992 arch=noatomic
20993 fi
20994 rm -f core conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext;
20996 ;;
20997 esac
20998
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5
21000 $as_echo "$compiler" >&6; }
21001 fi
21002
21003 if test "yes" = "$have_atomic"; then
21004 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
21005 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
21006 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
21007 if test "yes" = "$have_xaddq"; then
21008 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
21009 ISC_PLATFORM_HAVEATOMICSTOREQ="#define ISC_PLATFORM_HAVEATOMICSTOREQ 1"
21010 else
21011 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
21012 ISC_PLATFORM_HAVEATOMICSTOREQ="#undef ISC_PLATFORM_HAVEATOMICSTOREQ"
21013 fi
21014 else
21015 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
21016 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
21017 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
21018 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
21019 ISC_PLATFORM_HAVEATOMICSTOREQ="#undef ISC_PLATFORM_HAVEATOMICSTOREQ"
21020 fi
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033 ISC_ARCH_DIR=$arch
21034
21035
21036 #
21037 # Check for __builtin_expect
21038 #
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
21040 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h. */
21043
21044 int
21045 main ()
21046 {
21047
21048 return (__builtin_expect(1, 1) ? 1 : 0);
21049
21050 ;
21051 return 0;
21052 }
21053 _ACEOF
21054 if ac_fn_c_try_link "$LINENO"; then :
21055
21056 have_builtin_expect=yes
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21058 $as_echo "yes" >&6; }
21059
21060 else
21061
21062 have_builtin_expect=no
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21064 $as_echo "no" >&6; }
21065
21066 fi
21067 rm -f core conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21069 if test "yes" = "$have_builtin_expect"; then
21070
21071 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
21072
21073 fi
21074
21075 #
21076 # Check for __builtin_clz
21077 #
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
21079 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
21080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h. */
21082
21083 int
21084 main ()
21085 {
21086
21087 return (__builtin_clz(0xff) == 24 ? 1 : 0);
21088
21089 ;
21090 return 0;
21091 }
21092 _ACEOF
21093 if ac_fn_c_try_link "$LINENO"; then :
21094
21095 have_builtin_clz=yes
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21097 $as_echo "yes" >&6; }
21098
21099 else
21100
21101 have_builtin_clz=no
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21104
21105 fi
21106 rm -f core conftest.err conftest.$ac_objext \
21107 conftest$ac_exeext conftest.$ac_ext
21108 if test "yes" = "$have_builtin_clz"; then
21109
21110 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
21111
21112 fi
21113
21114 #
21115 # CPU relax (for spin locks)
21116 #
21117 if $use_threads
21118 then
21119 case "$host" in
21120 i[3456]86-*)
21121 # x86_32
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"rep; nop\"); works" >&5
21123 $as_echo_n "checking if asm(\"rep; nop\"); works... " >&6; }
21124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h. */
21126
21127 int
21128 main ()
21129 {
21130 asm("rep; nop");
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 if ac_fn_c_try_compile "$LINENO"; then :
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21137 $as_echo "yes" >&6; }
21138 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"rep; nop\")"
21139 else
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21141 $as_echo "no" >&6; }
21142 fi
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 ;;
21145 x86_64-*|amd64-*)
21146 # x86_64
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"rep; nop\"); works" >&5
21148 $as_echo_n "checking if asm(\"rep; nop\"); works... " >&6; }
21149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21150 /* end confdefs.h. */
21151
21152 int
21153 main ()
21154 {
21155 asm("rep; nop");
21156 ;
21157 return 0;
21158 }
21159 _ACEOF
21160 if ac_fn_c_try_compile "$LINENO"; then :
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21162 $as_echo "yes" >&6; }
21163 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"rep; nop\")"
21164 else
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21166 $as_echo "no" >&6; }
21167 fi
21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169 ;;
21170 ia64-*)
21171 # ia64
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"hint @pause\"); works" >&5
21173 $as_echo_n "checking if asm(\"hint @pause\"); works... " >&6; }
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21176
21177 int
21178 main ()
21179 {
21180 asm("hint @pause");
21181 ;
21182 return 0;
21183 }
21184 _ACEOF
21185 if ac_fn_c_try_compile "$LINENO"; then :
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21187 $as_echo "yes" >&6; }
21188 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"hint @pause\")"
21189 else
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21191 $as_echo "no" >&6; }
21192 fi
21193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 ;;
21195 sparc-*)
21196 # sparc
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpu_relax(); or __cpu_relax(); works" >&5
21198 $as_echo_n "checking if cpu_relax(); or __cpu_relax(); works... " >&6; }
21199 ac_fn_c_check_func "$LINENO" "cpu_relax" "ac_cv_func_cpu_relax"
21200 if test "x$ac_cv_func_cpu_relax" = xyes; then :
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21202 $as_echo "yes" >&6; }
21203 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP cpu_relax()"
21204 else
21205 ac_fn_c_check_func "$LINENO" "__cpu_relax" "ac_cv_func___cpu_relax"
21206 if test "x$ac_cv_func___cpu_relax" = xyes; then :
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21208 $as_echo "yes" >&6; }
21209 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP __cpu_relax()"
21210 else
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21212 $as_echo "no" >&6; }
21213 fi
21214
21215 fi
21216
21217 ;;
21218 esac
21219 fi
21220
21221
21222
21223 #
21224 # Activate "rrset-order fixed" or not?
21225 #
21226 # Check whether --enable-fixed-rrset was given.
21227 if test "${enable_fixed_rrset+set}" = set; then :
21228 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
21229 else
21230 enable_fixed="no"
21231 fi
21232
21233 case "$enable_fixed" in
21234 yes)
21235
21236 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
21237
21238 ;;
21239 no)
21240 ;;
21241 *)
21242 ;;
21243 esac
21244
21245 #
21246 # Enable response policy rewriting using NS IP addresses
21247 #
21248 # Check whether --enable-rpz-nsip was given.
21249 if test "${enable_rpz_nsip+set}" = set; then :
21250 enableval=$enable_rpz_nsip; enable_nsip="$enableval"
21251 else
21252 enable_nsip="yes"
21253 fi
21254
21255 case "$enable_nsip" in
21256 yes)
21257
21258 $as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h
21259
21260 ;;
21261 no)
21262 ;;
21263 *)
21264 ;;
21265 esac
21266
21267 #
21268 # Enable response policy rewriting using NS name
21269 #
21270 # Check whether --enable-rpz-nsdname was given.
21271 if test "${enable_rpz_nsdname+set}" = set; then :
21272 enableval=$enable_rpz_nsdname; enable_nsdname="$enableval"
21273 else
21274 enable_nsdname="yes"
21275 fi
21276
21277 case "$enable_nsdname" in
21278 yes)
21279
21280 $as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h
21281
21282 ;;
21283 no)
21284 ;;
21285 *)
21286 ;;
21287 esac
21288
21289 #
21290 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
21291 # interface.
21292 #
21293 # DNSRPS can be compiled into BIND everywhere with a reasonably
21294 # modern C compiler. It is enabled on systems with dlopen() and librpz.so.
21295 #
21296 dnsrps_avail=yes
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
21298 $as_echo_n "checking for librpz __attribute__s... " >&6; }
21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h. */
21301
21302 int
21303 main ()
21304 {
21305
21306 extern void f(char *p __attribute__((unused)), ...)
21307 __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
21308 ;
21309 return 0;
21310 }
21311 _ACEOF
21312 if ac_fn_c_try_compile "$LINENO"; then :
21313 librpz_have_attr=yes
21314
21315 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
21316
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21318 $as_echo "yes" >&6; }
21319 else
21320 librpz_have_attr=no
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21322 $as_echo "no" >&6; }
21323 fi
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21327 $as_echo_n "checking for library containing dlopen... " >&6; }
21328 if ${ac_cv_search_dlopen+:} false; then :
21329 $as_echo_n "(cached) " >&6
21330 else
21331 ac_func_search_save_LIBS=$LIBS
21332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21333 /* end confdefs.h. */
21334
21335 /* Override any GCC internal prototype to avoid an error.
21336 Use char because int might match the return type of a GCC
21337 builtin and then its argument prototype would still apply. */
21338 #ifdef __cplusplus
21339 extern "C"
21340 #endif
21341 char dlopen ();
21342 int
21343 main ()
21344 {
21345 return dlopen ();
21346 ;
21347 return 0;
21348 }
21349 _ACEOF
21350 for ac_lib in '' dl; do
21351 if test -z "$ac_lib"; then
21352 ac_res="none required"
21353 else
21354 ac_res=-l$ac_lib
21355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21356 fi
21357 if ac_fn_c_try_link "$LINENO"; then :
21358 ac_cv_search_dlopen=$ac_res
21359 fi
21360 rm -f core conftest.err conftest.$ac_objext \
21361 conftest$ac_exeext
21362 if ${ac_cv_search_dlopen+:} false; then :
21363 break
21364 fi
21365 done
21366 if ${ac_cv_search_dlopen+:} false; then :
21367
21368 else
21369 ac_cv_search_dlopen=no
21370 fi
21371 rm conftest.$ac_ext
21372 LIBS=$ac_func_search_save_LIBS
21373 fi
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21375 $as_echo "$ac_cv_search_dlopen" >&6; }
21376 ac_res=$ac_cv_search_dlopen
21377 if test "$ac_res" != no; then :
21378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21379
21380 fi
21381
21382 librpz_dl=yes
21383 for ac_func in dlopen dlclose dlsym
21384 do :
21385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21387 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21388 cat >>confdefs.h <<_ACEOF
21389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21390 _ACEOF
21391
21392 else
21393 librpz_dl=no
21394 fi
21395 done
21396
21397 # Check whether --enable-dnsrps-dl was given.
21398 if test "${enable_dnsrps_dl+set}" = set; then :
21399 enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
21400 else
21401 enable_librpz_dl="$librpz_dl"
21402 fi
21403
21404
21405 # Check whether --with-dnsrps-libname was given.
21406 if test "${with_dnsrps_libname+set}" = set; then :
21407 withval=$with_dnsrps_libname; librpz_name="$withval"
21408 else
21409 librpz_name="librpz.so"
21410 fi
21411
21412
21413 # Check whether --with-dnsrps-dir was given.
21414 if test "${with_dnsrps_dir+set}" = set; then :
21415 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
21416 else
21417 librpz_path="$librpz_name"
21418 fi
21419
21420
21421 cat >>confdefs.h <<_ACEOF
21422 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
21423 _ACEOF
21424
21425 if test "x$enable_librpz_dl" = "xyes"; then
21426 dnsrps_lib_open=2
21427 else
21428 dnsrps_lib_open=1
21429 # Add librpz.so to linked libraries if we are not using dlopen()
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
21431 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
21432 if ${ac_cv_search_librpz_client_create+:} false; then :
21433 $as_echo_n "(cached) " >&6
21434 else
21435 ac_func_search_save_LIBS=$LIBS
21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21438
21439 /* Override any GCC internal prototype to avoid an error.
21440 Use char because int might match the return type of a GCC
21441 builtin and then its argument prototype would still apply. */
21442 #ifdef __cplusplus
21443 extern "C"
21444 #endif
21445 char librpz_client_create ();
21446 int
21447 main ()
21448 {
21449 return librpz_client_create ();
21450 ;
21451 return 0;
21452 }
21453 _ACEOF
21454 for ac_lib in '' rpz; do
21455 if test -z "$ac_lib"; then
21456 ac_res="none required"
21457 else
21458 ac_res=-l$ac_lib
21459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21460 fi
21461 if ac_fn_c_try_link "$LINENO"; then :
21462 ac_cv_search_librpz_client_create=$ac_res
21463 fi
21464 rm -f core conftest.err conftest.$ac_objext \
21465 conftest$ac_exeext
21466 if ${ac_cv_search_librpz_client_create+:} false; then :
21467 break
21468 fi
21469 done
21470 if ${ac_cv_search_librpz_client_create+:} false; then :
21471
21472 else
21473 ac_cv_search_librpz_client_create=no
21474 fi
21475 rm conftest.$ac_ext
21476 LIBS=$ac_func_search_save_LIBS
21477 fi
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
21479 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
21480 ac_res=$ac_cv_search_librpz_client_create
21481 if test "$ac_res" != no; then :
21482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21483
21484 else
21485 dnsrps_lib_open=0
21486 dnsrps_avail=no
21487 fi
21488
21489 fi
21490
21491 cat >>confdefs.h <<_ACEOF
21492 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
21493 _ACEOF
21494
21495
21496 # Check whether --enable-dnsrps was given.
21497 if test "${enable_dnsrps+set}" = set; then :
21498 enableval=$enable_dnsrps; enable_dnsrps=$enableval
21499 else
21500 enable_dnsrps=no
21501 fi
21502
21503 if test "x$enable_dnsrps" != "xno"; then
21504 if test "x$dnsrps_avail" != "xyes"; then
21505 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
21506 fi
21507 if test "x$dnsrps_lib_open" = "x0"; then
21508 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
21509 fi
21510
21511 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
21512
21513 fi
21514
21515 #
21516 # Activate dnstap?
21517 #
21518 # Check whether --enable-dnstap was given.
21519 if test "${enable_dnstap+set}" = set; then :
21520 enableval=$enable_dnstap; use_dnstap=$enableval
21521 else
21522 use_dnstap=no
21523 fi
21524
21525
21526 DNSTAP=
21527 DNSTAPSRCS=
21528 DNSTAPOBJS=
21529 DNSTAPTARGETS=
21530 DNSTAP_PB_C_H=
21531 if test "x$use_dnstap" != "xno"; then
21532 if ! $use_threads; then
21533 as_fn_error $? "Dnstap requires threads." "$LINENO" 5
21534 fi
21535
21536 # Check whether --with-protobuf-c was given.
21537 if test "${with_protobuf_c+set}" = set; then :
21538 withval=$with_protobuf_c;
21539 # workaround for protobuf-c includes at old dir
21540 # before protobuf-c-1.0.0
21541 if test -f $withval/include/google/protobuf-c/protobuf-c.h
21542 then
21543 CFLAGS="$CFLAGS -I$withval/include/google"
21544 else
21545 CFLAGS="$CFLAGS -I$withval/include"
21546 fi
21547 LDFLAGS="$LDFLAGS -L$withval/lib"
21548 # Extract the first word of "protoc-c", so it can be a program name with args.
21549 set dummy protoc-c; ac_word=$2
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21551 $as_echo_n "checking for $ac_word... " >&6; }
21552 if ${ac_cv_path_PROTOC_C+:} false; then :
21553 $as_echo_n "(cached) " >&6
21554 else
21555 case $PROTOC_C in
21556 [\\/]* | ?:[\\/]*)
21557 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21558 ;;
21559 *)
21560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21561 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
21562 do
21563 IFS=$as_save_IFS
21564 test -z "$as_dir" && as_dir=.
21565 for ac_exec_ext in '' $ac_executable_extensions; do
21566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21567 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21569 break 2
21570 fi
21571 done
21572 done
21573 IFS=$as_save_IFS
21574
21575 ;;
21576 esac
21577 fi
21578 PROTOC_C=$ac_cv_path_PROTOC_C
21579 if test -n "$PROTOC_C"; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21581 $as_echo "$PROTOC_C" >&6; }
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584 $as_echo "no" >&6; }
21585 fi
21586
21587
21588
21589 else
21590
21591 # workaround for protobuf-c includes at old dir
21592 # before protobuf-c-1.0.0
21593 if test -f /usr/include/google/protobuf-c/protobuf-c.h
21594 then
21595 CFLAGS="$CFLAGS -I/usr/include/google"
21596 else
21597 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
21598 then
21599 CFLAGS="$CFLAGS -I/usr/local/include/google"
21600 LDFLAGS="$LDFLAGS -L/usr/local/lib"
21601 fi
21602 fi
21603 # Extract the first word of "protoc-c", so it can be a program name with args.
21604 set dummy protoc-c; ac_word=$2
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21606 $as_echo_n "checking for $ac_word... " >&6; }
21607 if ${ac_cv_path_PROTOC_C+:} false; then :
21608 $as_echo_n "(cached) " >&6
21609 else
21610 case $PROTOC_C in
21611 [\\/]* | ?:[\\/]*)
21612 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21613 ;;
21614 *)
21615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21616 for as_dir in $PATH
21617 do
21618 IFS=$as_save_IFS
21619 test -z "$as_dir" && as_dir=.
21620 for ac_exec_ext in '' $ac_executable_extensions; do
21621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21622 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21624 break 2
21625 fi
21626 done
21627 done
21628 IFS=$as_save_IFS
21629
21630 ;;
21631 esac
21632 fi
21633 PROTOC_C=$ac_cv_path_PROTOC_C
21634 if test -n "$PROTOC_C"; then
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21636 $as_echo "$PROTOC_C" >&6; }
21637 else
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639 $as_echo "no" >&6; }
21640 fi
21641
21642
21643
21644 fi
21645
21646 if test -z "$PROTOC_C"; then
21647 as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
21648 fi
21649
21650 # Check whether --with-libfstrm was given.
21651 if test "${with_libfstrm+set}" = set; then :
21652 withval=$with_libfstrm;
21653 CFLAGS="$CFLAGS -I$withval/include"
21654 LDFLAGS="$LDFLAGS -L$withval/lib"
21655 # Extract the first word of "fstrm_capture", so it can be a program name with args.
21656 set dummy fstrm_capture; ac_word=$2
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21658 $as_echo_n "checking for $ac_word... " >&6; }
21659 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
21660 $as_echo_n "(cached) " >&6
21661 else
21662 case $FSTRM_CAPTURE in
21663 [\\/]* | ?:[\\/]*)
21664 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
21665 ;;
21666 *)
21667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
21669 do
21670 IFS=$as_save_IFS
21671 test -z "$as_dir" && as_dir=.
21672 for ac_exec_ext in '' $ac_executable_extensions; do
21673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21674 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
21675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21676 break 2
21677 fi
21678 done
21679 done
21680 IFS=$as_save_IFS
21681
21682 ;;
21683 esac
21684 fi
21685 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
21686 if test -n "$FSTRM_CAPTURE"; then
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
21688 $as_echo "$FSTRM_CAPTURE" >&6; }
21689 else
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691 $as_echo "no" >&6; }
21692 fi
21693
21694
21695
21696 else
21697
21698 # Extract the first word of "fstrm_capture", so it can be a program name with args.
21699 set dummy fstrm_capture; ac_word=$2
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21701 $as_echo_n "checking for $ac_word... " >&6; }
21702 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
21703 $as_echo_n "(cached) " >&6
21704 else
21705 case $FSTRM_CAPTURE in
21706 [\\/]* | ?:[\\/]*)
21707 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
21708 ;;
21709 *)
21710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21712 do
21713 IFS=$as_save_IFS
21714 test -z "$as_dir" && as_dir=.
21715 for ac_exec_ext in '' $ac_executable_extensions; do
21716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21717 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
21718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21719 break 2
21720 fi
21721 done
21722 done
21723 IFS=$as_save_IFS
21724
21725 ;;
21726 esac
21727 fi
21728 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
21729 if test -n "$FSTRM_CAPTURE"; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
21731 $as_echo "$FSTRM_CAPTURE" >&6; }
21732 else
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21735 fi
21736
21737
21738
21739 fi
21740
21741
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
21743 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
21744 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21745 $as_echo_n "(cached) " >&6
21746 else
21747 ac_func_search_save_LIBS=$LIBS
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21750
21751 /* Override any GCC internal prototype to avoid an error.
21752 Use char because int might match the return type of a GCC
21753 builtin and then its argument prototype would still apply. */
21754 #ifdef __cplusplus
21755 extern "C"
21756 #endif
21757 char fstrm_iothr_init ();
21758 int
21759 main ()
21760 {
21761 return fstrm_iothr_init ();
21762 ;
21763 return 0;
21764 }
21765 _ACEOF
21766 for ac_lib in '' fstrm; do
21767 if test -z "$ac_lib"; then
21768 ac_res="none required"
21769 else
21770 ac_res=-l$ac_lib
21771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21772 fi
21773 if ac_fn_c_try_link "$LINENO"; then :
21774 ac_cv_search_fstrm_iothr_init=$ac_res
21775 fi
21776 rm -f core conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext
21778 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21779 break
21780 fi
21781 done
21782 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21783
21784 else
21785 ac_cv_search_fstrm_iothr_init=no
21786 fi
21787 rm conftest.$ac_ext
21788 LIBS=$ac_func_search_save_LIBS
21789 fi
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
21791 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
21792 ac_res=$ac_cv_search_fstrm_iothr_init
21793 if test "$ac_res" != no; then :
21794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21795
21796 else
21797 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
21798 fi
21799
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21801 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21802 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21803 $as_echo_n "(cached) " >&6
21804 else
21805 ac_func_search_save_LIBS=$LIBS
21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807 /* end confdefs.h. */
21808
21809 /* Override any GCC internal prototype to avoid an error.
21810 Use char because int might match the return type of a GCC
21811 builtin and then its argument prototype would still apply. */
21812 #ifdef __cplusplus
21813 extern "C"
21814 #endif
21815 char protobuf_c_message_pack ();
21816 int
21817 main ()
21818 {
21819 return protobuf_c_message_pack ();
21820 ;
21821 return 0;
21822 }
21823 _ACEOF
21824 for ac_lib in '' protobuf-c; do
21825 if test -z "$ac_lib"; then
21826 ac_res="none required"
21827 else
21828 ac_res=-l$ac_lib
21829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21830 fi
21831 if ac_fn_c_try_link "$LINENO"; then :
21832 ac_cv_search_protobuf_c_message_pack=$ac_res
21833 fi
21834 rm -f core conftest.err conftest.$ac_objext \
21835 conftest$ac_exeext
21836 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21837 break
21838 fi
21839 done
21840 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21841
21842 else
21843 ac_cv_search_protobuf_c_message_pack=no
21844 fi
21845 rm conftest.$ac_ext
21846 LIBS=$ac_func_search_save_LIBS
21847 fi
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21849 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21850 ac_res=$ac_cv_search_protobuf_c_message_pack
21851 if test "$ac_res" != no; then :
21852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21853
21854 else
21855 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21856 fi
21857
21858
21859
21860 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
21861
21862 DNSTAP=dnstap
21863 DNSTAPSRCS='${DNSTAPSRCS}'
21864 DNSTAPOBJS='${DNSTAPOBJS}'
21865 DNSTAPTARGETS='${DNSTAPTARGETS}'
21866 DNSTAP_PB_C_H="dnstap.pb-c.h"
21867 fi
21868
21869
21870
21871
21872
21873
21874 #
21875 # The following sets up how non-blocking i/o is established.
21876 # Sunos, cygwin and solaris 2.x (x<5) require special handling.
21877 #
21878 case "$host" in
21879 *-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
21880 ;;
21881 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
21882 ;;
21883 *-solaris2.[01234])
21884 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
21885
21886
21887 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
21888
21889 ;;
21890 *)
21891 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
21892
21893 ;;
21894 esac
21895 #
21896 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
21897 # This prevents the source address being set.
21898 #
21899 case "$host" in
21900 *-solaris2.[012345]|*-solaris2.5.1)
21901
21902 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
21903
21904 ;;
21905 esac
21906 #
21907 # The following sections deal with tools used for formatting
21908 # the documentation. They are all optional, unless you are
21909 # a developer editing the documentation source.
21910 #
21911
21912 #
21913 # Look for TeX.
21914 #
21915
21916 for ac_prog in latex
21917 do
21918 # Extract the first word of "$ac_prog", so it can be a program name with args.
21919 set dummy $ac_prog; ac_word=$2
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21921 $as_echo_n "checking for $ac_word... " >&6; }
21922 if ${ac_cv_path_LATEX+:} false; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 case $LATEX in
21926 [\\/]* | ?:[\\/]*)
21927 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
21928 ;;
21929 *)
21930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21931 for as_dir in $PATH
21932 do
21933 IFS=$as_save_IFS
21934 test -z "$as_dir" && as_dir=.
21935 for ac_exec_ext in '' $ac_executable_extensions; do
21936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21937 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
21938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21939 break 2
21940 fi
21941 done
21942 done
21943 IFS=$as_save_IFS
21944
21945 ;;
21946 esac
21947 fi
21948 LATEX=$ac_cv_path_LATEX
21949 if test -n "$LATEX"; then
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
21951 $as_echo "$LATEX" >&6; }
21952 else
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 $as_echo "no" >&6; }
21955 fi
21956
21957
21958 test -n "$LATEX" && break
21959 done
21960 test -n "$LATEX" || LATEX="latex"
21961
21962
21963
21964 for ac_prog in pdflatex
21965 do
21966 # Extract the first word of "$ac_prog", so it can be a program name with args.
21967 set dummy $ac_prog; ac_word=$2
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21969 $as_echo_n "checking for $ac_word... " >&6; }
21970 if ${ac_cv_path_PDFLATEX+:} false; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 case $PDFLATEX in
21974 [\\/]* | ?:[\\/]*)
21975 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
21976 ;;
21977 *)
21978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21979 for as_dir in $PATH
21980 do
21981 IFS=$as_save_IFS
21982 test -z "$as_dir" && as_dir=.
21983 for ac_exec_ext in '' $ac_executable_extensions; do
21984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21985 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
21986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21987 break 2
21988 fi
21989 done
21990 done
21991 IFS=$as_save_IFS
21992
21993 ;;
21994 esac
21995 fi
21996 PDFLATEX=$ac_cv_path_PDFLATEX
21997 if test -n "$PDFLATEX"; then
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
21999 $as_echo "$PDFLATEX" >&6; }
22000 else
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22002 $as_echo "no" >&6; }
22003 fi
22004
22005
22006 test -n "$PDFLATEX" && break
22007 done
22008 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
22009
22010
22011
22012 for ac_prog in dblatex
22013 do
22014 # Extract the first word of "$ac_prog", so it can be a program name with args.
22015 set dummy $ac_prog; ac_word=$2
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22017 $as_echo_n "checking for $ac_word... " >&6; }
22018 if ${ac_cv_path_DBLATEX+:} false; then :
22019 $as_echo_n "(cached) " >&6
22020 else
22021 case $DBLATEX in
22022 [\\/]* | ?:[\\/]*)
22023 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
22024 ;;
22025 *)
22026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22027 for as_dir in $PATH
22028 do
22029 IFS=$as_save_IFS
22030 test -z "$as_dir" && as_dir=.
22031 for ac_exec_ext in '' $ac_executable_extensions; do
22032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22033 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
22034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22035 break 2
22036 fi
22037 done
22038 done
22039 IFS=$as_save_IFS
22040
22041 ;;
22042 esac
22043 fi
22044 DBLATEX=$ac_cv_path_DBLATEX
22045 if test -n "$DBLATEX"; then
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
22047 $as_echo "$DBLATEX" >&6; }
22048 else
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22050 $as_echo "no" >&6; }
22051 fi
22052
22053
22054 test -n "$DBLATEX" && break
22055 done
22056 test -n "$DBLATEX" || DBLATEX="dblatex"
22057
22058
22059
22060 #
22061 # Look for w3m
22062 #
22063
22064 for ac_prog in w3m
22065 do
22066 # Extract the first word of "$ac_prog", so it can be a program name with args.
22067 set dummy $ac_prog; ac_word=$2
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22069 $as_echo_n "checking for $ac_word... " >&6; }
22070 if ${ac_cv_path_W3M+:} false; then :
22071 $as_echo_n "(cached) " >&6
22072 else
22073 case $W3M in
22074 [\\/]* | ?:[\\/]*)
22075 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
22076 ;;
22077 *)
22078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22079 for as_dir in $PATH
22080 do
22081 IFS=$as_save_IFS
22082 test -z "$as_dir" && as_dir=.
22083 for ac_exec_ext in '' $ac_executable_extensions; do
22084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22085 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
22086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22087 break 2
22088 fi
22089 done
22090 done
22091 IFS=$as_save_IFS
22092
22093 ;;
22094 esac
22095 fi
22096 W3M=$ac_cv_path_W3M
22097 if test -n "$W3M"; then
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
22099 $as_echo "$W3M" >&6; }
22100 else
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22102 $as_echo "no" >&6; }
22103 fi
22104
22105
22106 test -n "$W3M" && break
22107 done
22108 test -n "$W3M" || W3M="w3m"
22109
22110
22111
22112 #
22113 # Look for pandoc
22114 #
22115 # Extract the first word of "pandoc", so it can be a program name with args.
22116 set dummy pandoc; ac_word=$2
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22118 $as_echo_n "checking for $ac_word... " >&6; }
22119 if ${ac_cv_path_PANDOC+:} false; then :
22120 $as_echo_n "(cached) " >&6
22121 else
22122 case $PANDOC in
22123 [\\/]* | ?:[\\/]*)
22124 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
22125 ;;
22126 *)
22127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22128 for as_dir in $PATH
22129 do
22130 IFS=$as_save_IFS
22131 test -z "$as_dir" && as_dir=.
22132 for ac_exec_ext in '' $ac_executable_extensions; do
22133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22134 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
22135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22136 break 2
22137 fi
22138 done
22139 done
22140 IFS=$as_save_IFS
22141
22142 test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
22143 ;;
22144 esac
22145 fi
22146 PANDOC=$ac_cv_path_PANDOC
22147 if test -n "$PANDOC"; then
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
22149 $as_echo "$PANDOC" >&6; }
22150 else
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22152 $as_echo "no" >&6; }
22153 fi
22154
22155
22156
22157
22158
22159 #
22160 # Look for xsltproc (libxslt)
22161 #
22162
22163 # Extract the first word of "xsltproc", so it can be a program name with args.
22164 set dummy xsltproc; ac_word=$2
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22166 $as_echo_n "checking for $ac_word... " >&6; }
22167 if ${ac_cv_path_XSLTPROC+:} false; then :
22168 $as_echo_n "(cached) " >&6
22169 else
22170 case $XSLTPROC in
22171 [\\/]* | ?:[\\/]*)
22172 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
22173 ;;
22174 *)
22175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22176 for as_dir in $PATH
22177 do
22178 IFS=$as_save_IFS
22179 test -z "$as_dir" && as_dir=.
22180 for ac_exec_ext in '' $ac_executable_extensions; do
22181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22182 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
22183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22184 break 2
22185 fi
22186 done
22187 done
22188 IFS=$as_save_IFS
22189
22190 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
22191 ;;
22192 esac
22193 fi
22194 XSLTPROC=$ac_cv_path_XSLTPROC
22195 if test -n "$XSLTPROC"; then
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
22197 $as_echo "$XSLTPROC" >&6; }
22198 else
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22200 $as_echo "no" >&6; }
22201 fi
22202
22203
22204
22205
22206 #
22207 # Look for xmllint (libxml2)
22208 #
22209
22210 # Extract the first word of "xmllint", so it can be a program name with args.
22211 set dummy xmllint; ac_word=$2
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22213 $as_echo_n "checking for $ac_word... " >&6; }
22214 if ${ac_cv_path_XMLLINT+:} false; then :
22215 $as_echo_n "(cached) " >&6
22216 else
22217 case $XMLLINT in
22218 [\\/]* | ?:[\\/]*)
22219 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
22220 ;;
22221 *)
22222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22223 for as_dir in $PATH
22224 do
22225 IFS=$as_save_IFS
22226 test -z "$as_dir" && as_dir=.
22227 for ac_exec_ext in '' $ac_executable_extensions; do
22228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22229 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
22230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22231 break 2
22232 fi
22233 done
22234 done
22235 IFS=$as_save_IFS
22236
22237 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
22238 ;;
22239 esac
22240 fi
22241 XMLLINT=$ac_cv_path_XMLLINT
22242 if test -n "$XMLLINT"; then
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
22244 $as_echo "$XMLLINT" >&6; }
22245 else
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22247 $as_echo "no" >&6; }
22248 fi
22249
22250
22251
22252
22253 #
22254 # Look for Doxygen
22255 #
22256
22257 # Extract the first word of "doxygen", so it can be a program name with args.
22258 set dummy doxygen; ac_word=$2
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22260 $as_echo_n "checking for $ac_word... " >&6; }
22261 if ${ac_cv_path_DOXYGEN+:} false; then :
22262 $as_echo_n "(cached) " >&6
22263 else
22264 case $DOXYGEN in
22265 [\\/]* | ?:[\\/]*)
22266 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
22267 ;;
22268 *)
22269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22270 for as_dir in $PATH
22271 do
22272 IFS=$as_save_IFS
22273 test -z "$as_dir" && as_dir=.
22274 for ac_exec_ext in '' $ac_executable_extensions; do
22275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22276 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
22277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22278 break 2
22279 fi
22280 done
22281 done
22282 IFS=$as_save_IFS
22283
22284 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
22285 ;;
22286 esac
22287 fi
22288 DOXYGEN=$ac_cv_path_DOXYGEN
22289 if test -n "$DOXYGEN"; then
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
22291 $as_echo "$DOXYGEN" >&6; }
22292 else
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22294 $as_echo "no" >&6; }
22295 fi
22296
22297
22298
22299
22300 #
22301 # Look for curl
22302 #
22303
22304 # Extract the first word of "curl", so it can be a program name with args.
22305 set dummy curl; ac_word=$2
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22307 $as_echo_n "checking for $ac_word... " >&6; }
22308 if ${ac_cv_path_CURL+:} false; then :
22309 $as_echo_n "(cached) " >&6
22310 else
22311 case $CURL in
22312 [\\/]* | ?:[\\/]*)
22313 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
22314 ;;
22315 *)
22316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22317 for as_dir in $PATH
22318 do
22319 IFS=$as_save_IFS
22320 test -z "$as_dir" && as_dir=.
22321 for ac_exec_ext in '' $ac_executable_extensions; do
22322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22323 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
22324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22325 break 2
22326 fi
22327 done
22328 done
22329 IFS=$as_save_IFS
22330
22331 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
22332 ;;
22333 esac
22334 fi
22335 CURL=$ac_cv_path_CURL
22336 if test -n "$CURL"; then
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
22338 $as_echo "$CURL" >&6; }
22339 else
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22341 $as_echo "no" >&6; }
22342 fi
22343
22344
22345
22346
22347 #
22348 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
22349 # in a number of directories:
22350 #
22351 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
22352 #
22353 # If the file FILENAME is found in one of the DIRECTORIES, the shell
22354 # variable VARIABLE is defined to its absolute pathname. Otherwise,
22355 # it is set to FILENAME, with no directory prefix (that's not terribly
22356 # useful, but looks less confusing in substitutions than leaving it
22357 # empty). The variable VARIABLE will be substituted into output files.
22358 #
22359
22360
22361
22362 #
22363 # Look for Docbook-XSL stylesheets. Location probably varies by system.
22364 # If it's not explicitly specified, guess where it might be found, based on
22365 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
22366 # of at the moment).
22367 #
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
22369 $as_echo_n "checking for Docbook-XSL path... " >&6; }
22370
22371 # Check whether --with-docbook-xsl was given.
22372 if test "${with_docbook_xsl+set}" = set; then :
22373 withval=$with_docbook_xsl; docbook_path="$withval"
22374 else
22375 docbook_path="auto"
22376 fi
22377
22378 case "$docbook_path" in
22379 auto)
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
22381 $as_echo "auto" >&6; }
22382 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl /usr/share/xml/docbook/stylesheet/docbook-xsl"
22383 ;;
22384 *)
22385 docbook_xsl_trees="$withval"
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
22387 $as_echo "$docbook_xsl_trees" >&6; }
22388 ;;
22389 esac
22390
22391 #
22392 # Look for stylesheets we need.
22393 #
22394
22395
22396 XSLT_DOCBOOK_STYLE_HTML=""
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
22398 $as_echo_n "checking for html/docbook.xsl... " >&6; }
22399 for d in $docbook_xsl_trees
22400 do
22401 f=$d/html/docbook.xsl
22402 if test -f $f
22403 then
22404 XSLT_DOCBOOK_STYLE_HTML=$f
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22406 $as_echo "$f" >&6; }
22407 break
22408 fi
22409 done
22410 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
22411 then
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22413 $as_echo "\"not found\"" >&6; };
22414 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
22415 fi
22416
22417
22418
22419 XSLT_DOCBOOK_STYLE_XHTML=""
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
22421 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
22422 for d in $docbook_xsl_trees
22423 do
22424 f=$d/xhtml/docbook.xsl
22425 if test -f $f
22426 then
22427 XSLT_DOCBOOK_STYLE_XHTML=$f
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22429 $as_echo "$f" >&6; }
22430 break
22431 fi
22432 done
22433 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
22434 then
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22436 $as_echo "\"not found\"" >&6; };
22437 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
22438 fi
22439
22440
22441
22442 XSLT_DOCBOOK_STYLE_MAN=""
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
22444 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
22445 for d in $docbook_xsl_trees
22446 do
22447 f=$d/manpages/docbook.xsl
22448 if test -f $f
22449 then
22450 XSLT_DOCBOOK_STYLE_MAN=$f
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22452 $as_echo "$f" >&6; }
22453 break
22454 fi
22455 done
22456 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
22457 then
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22459 $as_echo "\"not found\"" >&6; };
22460 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
22461 fi
22462
22463
22464
22465 XSLT_DOCBOOK_CHUNK_HTML=""
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
22467 $as_echo_n "checking for html/chunk.xsl... " >&6; }
22468 for d in $docbook_xsl_trees
22469 do
22470 f=$d/html/chunk.xsl
22471 if test -f $f
22472 then
22473 XSLT_DOCBOOK_CHUNK_HTML=$f
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22475 $as_echo "$f" >&6; }
22476 break
22477 fi
22478 done
22479 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
22480 then
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22482 $as_echo "\"not found\"" >&6; };
22483 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
22484 fi
22485
22486
22487
22488 XSLT_DOCBOOK_CHUNK_XHTML=""
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
22490 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
22491 for d in $docbook_xsl_trees
22492 do
22493 f=$d/xhtml/chunk.xsl
22494 if test -f $f
22495 then
22496 XSLT_DOCBOOK_CHUNK_XHTML=$f
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22498 $as_echo "$f" >&6; }
22499 break
22500 fi
22501 done
22502 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
22503 then
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22505 $as_echo "\"not found\"" >&6; };
22506 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
22507 fi
22508
22509
22510
22511 XSLT_DOCBOOK_CHUNKTOC_HTML=""
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
22513 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
22514 for d in $docbook_xsl_trees
22515 do
22516 f=$d/html/chunktoc.xsl
22517 if test -f $f
22518 then
22519 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22521 $as_echo "$f" >&6; }
22522 break
22523 fi
22524 done
22525 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
22526 then
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22528 $as_echo "\"not found\"" >&6; };
22529 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
22530 fi
22531
22532
22533
22534 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
22536 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
22537 for d in $docbook_xsl_trees
22538 do
22539 f=$d/xhtml/chunktoc.xsl
22540 if test -f $f
22541 then
22542 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22544 $as_echo "$f" >&6; }
22545 break
22546 fi
22547 done
22548 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
22549 then
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22551 $as_echo "\"not found\"" >&6; };
22552 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
22553 fi
22554
22555
22556
22557 XSLT_DOCBOOK_MAKETOC_HTML=""
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
22559 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
22560 for d in $docbook_xsl_trees
22561 do
22562 f=$d/html/maketoc.xsl
22563 if test -f $f
22564 then
22565 XSLT_DOCBOOK_MAKETOC_HTML=$f
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22567 $as_echo "$f" >&6; }
22568 break
22569 fi
22570 done
22571 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
22572 then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22574 $as_echo "\"not found\"" >&6; };
22575 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
22576 fi
22577
22578
22579
22580 XSLT_DOCBOOK_MAKETOC_XHTML=""
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
22582 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
22583 for d in $docbook_xsl_trees
22584 do
22585 f=$d/xhtml/maketoc.xsl
22586 if test -f $f
22587 then
22588 XSLT_DOCBOOK_MAKETOC_XHTML=$f
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22590 $as_echo "$f" >&6; }
22591 break
22592 fi
22593 done
22594 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
22595 then
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22597 $as_echo "\"not found\"" >&6; };
22598 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
22599 fi
22600
22601
22602
22603 #
22604 # Same dance for dblatex
22605 #
22606 dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/share/xml/docbook/stylesheet/dblatex /usr/share/xml/docbook/stylesheet/dblatex"
22607
22608 XSLT_DBLATEX_STYLE=""
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
22610 $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
22611 for d in $dblatex_xsl_trees
22612 do
22613 f=$d/xsl/docbook.xsl
22614 if test -f $f
22615 then
22616 XSLT_DBLATEX_STYLE=$f
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22618 $as_echo "$f" >&6; }
22619 break
22620 fi
22621 done
22622 if test "X$XSLT_DBLATEX_STYLE" = "X"
22623 then
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22625 $as_echo "\"not found\"" >&6; };
22626 XSLT_DBLATEX_STYLE=xsl/docbook.xsl
22627 fi
22628
22629
22630
22631 XSLT_DBLATEX_FASTBOOK=""
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
22633 $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
22634 for d in $dblatex_xsl_trees
22635 do
22636 f=$d/xsl/latex_book_fast.xsl
22637 if test -f $f
22638 then
22639 XSLT_DBLATEX_FASTBOOK=$f
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
22641 $as_echo "$f" >&6; }
22642 break
22643 fi
22644 done
22645 if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
22646 then
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
22648 $as_echo "\"not found\"" >&6; };
22649 XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
22650 fi
22651
22652
22653
22654 #
22655 # IDN support using idnkit
22656 #
22657
22658 # Check whether --with-idnkit was given.
22659 if test "${with_idnkit+set}" = set; then :
22660 withval=$with_idnkit; use_idnkit="$withval"
22661 else
22662 use_idnkit="no"
22663 fi
22664
22665 case "$use_idnkit" in
22666 yes)
22667 if test X$prefix = XNONE ; then
22668 idnkit_path=/usr/local
22669 else
22670 idnkit_path=$prefix
22671 fi
22672 ;;
22673 no)
22674 ;;
22675 *)
22676 idnkit_path="$use_idnkit"
22677 ;;
22678 esac
22679
22680 iconvinc=
22681 iconvlib=
22682
22683 # Check whether --with-libiconv was given.
22684 if test "${with_libiconv+set}" = set; then :
22685 withval=$with_libiconv; use_libiconv="$withval"
22686 else
22687 use_libiconv="no"
22688 fi
22689
22690 case "$use_libiconv" in
22691 yes)
22692 if test X$prefix = XNONE ; then
22693 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
22694 else
22695 iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
22696 fi
22697 ;;
22698 no)
22699 iconvlib=
22700 ;;
22701 *)
22702 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
22703 ;;
22704 esac
22705
22706
22707 # Check whether --with-iconv was given.
22708 if test "${with_iconv+set}" = set; then :
22709 withval=$with_iconv; iconvlib="$withval"
22710 fi
22711
22712 case "$iconvlib" in
22713 no)
22714 iconvlib=
22715 ;;
22716 yes)
22717 iconvlib=-liconv
22718 ;;
22719 esac
22720
22721
22722 # Check whether --with-idnlib was given.
22723 if test "${with_idnlib+set}" = set; then :
22724 withval=$with_idnlib; idnlib="$withval"
22725 else
22726 idnlib="no"
22727 fi
22728
22729 if test "yes" = "$idnlib"; then
22730 as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5
22731 fi
22732
22733 IDNKIT_LIBS=
22734 if test "no" != "$use_idnkit"; then
22735
22736 $as_echo "#define WITH_IDNKIT 1" >>confdefs.h
22737
22738 STD_CINCLUDES="$STD_CINCLUDES -I$idnkit_path/include"
22739 if test "no" != "$idnlib"; then
22740 IDNKIT_LIBS="$idnlib $iconvlib"
22741 else
22742 IDNKIT_LIBS="-L$idnkit_path/lib -lidnkit $iconvlib"
22743 fi
22744 fi
22745
22746
22747 #
22748 # IDN support using libidn2
22749 #
22750
22751 LIBIDN2_CFLAGS=
22752 LIBIDN2_LDFLAGS=
22753 LIBIDN2_LIBS=
22754
22755 # Check whether --with-libidn2 was given.
22756 if test "${with_libidn2+set}" = set; then :
22757 withval=$with_libidn2; use_libidn2="$withval"
22758 else
22759 use_libidn2="no"
22760 fi
22761
22762 case $use_libidn2 in #(
22763 no) :
22764 : ;; #(
22765 yes) :
22766 : ;; #(
22767 *) :
22768
22769 LIBIDN2_CFLAGS="-I$use_libidn2/include"
22770 LIBIDN2_LDFLAGS="-L$use_libidn2/lib"
22771 ;; #(
22772 *) :
22773 ;;
22774 esac
22775
22776 if test "$use_libidn2" != "no"; then :
22777 save_CFLAGS="$CFLAGS"
22778 save_LIBS="$LIBS"
22779 save_LDFLAGS="$LDFLAGS"
22780 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
22781 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_8z" >&5
22783 $as_echo_n "checking for library containing idn2_to_ascii_8z... " >&6; }
22784 if ${ac_cv_search_idn2_to_ascii_8z+:} false; then :
22785 $as_echo_n "(cached) " >&6
22786 else
22787 ac_func_search_save_LIBS=$LIBS
22788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22789 /* end confdefs.h. */
22790
22791 /* Override any GCC internal prototype to avoid an error.
22792 Use char because int might match the return type of a GCC
22793 builtin and then its argument prototype would still apply. */
22794 #ifdef __cplusplus
22795 extern "C"
22796 #endif
22797 char idn2_to_ascii_8z ();
22798 int
22799 main ()
22800 {
22801 return idn2_to_ascii_8z ();
22802 ;
22803 return 0;
22804 }
22805 _ACEOF
22806 for ac_lib in '' idn2; do
22807 if test -z "$ac_lib"; then
22808 ac_res="none required"
22809 else
22810 ac_res=-l$ac_lib
22811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22812 fi
22813 if ac_fn_c_try_link "$LINENO"; then :
22814 ac_cv_search_idn2_to_ascii_8z=$ac_res
22815 fi
22816 rm -f core conftest.err conftest.$ac_objext \
22817 conftest$ac_exeext
22818 if ${ac_cv_search_idn2_to_ascii_8z+:} false; then :
22819 break
22820 fi
22821 done
22822 if ${ac_cv_search_idn2_to_ascii_8z+:} false; then :
22823
22824 else
22825 ac_cv_search_idn2_to_ascii_8z=no
22826 fi
22827 rm conftest.$ac_ext
22828 LIBS=$ac_func_search_save_LIBS
22829 fi
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_8z" >&5
22831 $as_echo "$ac_cv_search_idn2_to_ascii_8z" >&6; }
22832 ac_res=$ac_cv_search_idn2_to_ascii_8z
22833 if test "$ac_res" != no; then :
22834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22835
22836 $as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h
22837
22838
22839 $as_echo "#define WITH_LIBIDN2 1" >>confdefs.h
22840
22841 LIBIDN2_LIBS="$LIBIDN2_LDFLAGS -lidn2"
22842 else
22843 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
22844 fi
22845
22846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847 /* end confdefs.h. */
22848 #include <idn2.h>
22849 int
22850 main ()
22851 {
22852 idn2_to_unicode_8zlz(".", NULL, IDN2_NONTRANSITIONAL|IDN2_NFC_INPUT);
22853 ;
22854 return 0;
22855 }
22856 _ACEOF
22857 if ac_fn_c_try_link "$LINENO"; then :
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22859 $as_echo "yes" >&6; }
22860
22861 $as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h
22862
22863 else
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 $as_echo "no" >&6; }
22866 fi
22867 rm -f core conftest.err conftest.$ac_objext \
22868 conftest$ac_exeext conftest.$ac_ext
22869 CFLAGS="$save_CFLAGS"
22870 LIBS="$save_LIBS"
22871 LDFLAGS="$save_LDFLAGS"
22872
22873 fi
22874
22875
22876
22877 #
22878 # IDN support in general
22879 #
22880
22881 # check if idnkit and libidn2 are not used at the same time
22882 if test "$use_idnkit" != no && test "$use_libidn2" != no; then
22883 as_fn_error $? "idnkit and libidn2 cannot be used at the same time." "$LINENO" 5
22884 fi
22885 # the IDN support is on
22886 if test "$use_idnkit" != no || test "$use_libidn2" != no; then
22887
22888 $as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h
22889
22890 if test "$use_libidn2" = no || test "$use_libidn2_out" != no; then
22891
22892 $as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h
22893
22894 fi
22895 fi
22896
22897 #
22898 # Check whether to build Automated Test Framework unit tests
22899 #
22900
22901 # Check whether --with-atf was given.
22902 if test "${with_atf+set}" = set; then :
22903 withval=$with_atf; atf="$withval"
22904 else
22905 atf="no"
22906 fi
22907
22908 if test "yes" = "$atf"; then
22909 atf=`pwd`/unit/atf
22910 ATFBUILD=atf-src
22911
22912 ac_config_commands="$ac_config_commands atf-config"
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building ATF from bind9/unit/atf-src" >&5
22915 $as_echo "building ATF from bind9/unit/atf-src" >&6; }
22916 fi
22917
22918 ATFLIBS=
22919 if test "no" != "$atf"; then
22920
22921 $as_echo "#define ATF_TEST 1" >>confdefs.h
22922
22923 STD_CINCLUDES="$STD_CINCLUDES -I$atf/include"
22924 STD_CDEFINES="$STD_CDEFINES -DNS_HOOKS_ENABLE=1"
22925 ATFBIN="$atf/bin"
22926 ATFLIBS="-L$atf/lib -latf-c"
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
22928 $as_echo_n "checking for exp in -lm... " >&6; }
22929 if ${ac_cv_lib_m_exp+:} false; then :
22930 $as_echo_n "(cached) " >&6
22931 else
22932 ac_check_lib_save_LIBS=$LIBS
22933 LIBS="-lm $LIBS"
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h. */
22936
22937 /* Override any GCC internal prototype to avoid an error.
22938 Use char because int might match the return type of a GCC
22939 builtin and then its argument prototype would still apply. */
22940 #ifdef __cplusplus
22941 extern "C"
22942 #endif
22943 char exp ();
22944 int
22945 main ()
22946 {
22947 return exp ();
22948 ;
22949 return 0;
22950 }
22951 _ACEOF
22952 if ac_fn_c_try_link "$LINENO"; then :
22953 ac_cv_lib_m_exp=yes
22954 else
22955 ac_cv_lib_m_exp=no
22956 fi
22957 rm -f core conftest.err conftest.$ac_objext \
22958 conftest$ac_exeext conftest.$ac_ext
22959 LIBS=$ac_check_lib_save_LIBS
22960 fi
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
22962 $as_echo "$ac_cv_lib_m_exp" >&6; }
22963 if test "x$ac_cv_lib_m_exp" = xyes; then :
22964 libm=yes
22965 else
22966 libm=no
22967 fi
22968
22969 if test "yes" = "$libm"; then
22970 ATFLIBS="$ATFLIBS -lm"
22971 fi
22972 UNITTESTS=tests
22973 fi
22974
22975
22976
22977
22978 for ac_header in locale.h
22979 do :
22980 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22981 if test "x$ac_cv_header_locale_h" = xyes; then :
22982 cat >>confdefs.h <<_ACEOF
22983 #define HAVE_LOCALE_H 1
22984 _ACEOF
22985
22986 fi
22987
22988 done
22989
22990 for ac_func in setlocale
22991 do :
22992 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22993 if test "x$ac_cv_func_setlocale" = xyes; then :
22994 cat >>confdefs.h <<_ACEOF
22995 #define HAVE_SETLOCALE 1
22996 _ACEOF
22997
22998 fi
22999 done
23000
23001
23002 #
23003 # was --with-tuning specified?
23004 #
23005
23006 # Check whether --with-tuning was given.
23007 if test "${with_tuning+set}" = set; then :
23008 withval=$with_tuning; use_tuning="$withval"
23009 else
23010 use_tuning="no"
23011 fi
23012
23013
23014 case "$use_tuning" in
23015 large)
23016 if ! $use_threads; then
23017 as_fn_error $? "Large-system tuning requires threads." "$LINENO" 5
23018 fi
23019
23020 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
23021
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
23023 $as_echo "using large-system tuning" >&6; }
23024 ;;
23025 no|default)
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
23027 $as_echo "using default tuning" >&6; }
23028 ;;
23029 yes|*)
23030 as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
23031 ;;
23032 esac
23033
23034 #
23035 # was --enable-querytrace specified?
23036 #
23037 # Check whether --enable-querytrace was given.
23038 if test "${enable_querytrace+set}" = set; then :
23039 enableval=$enable_querytrace; want_querytrace="$enableval"
23040 else
23041 want_querytrace="no"
23042 fi
23043
23044
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
23046 $as_echo_n "checking whether to enable query trace logging... " >&6; }
23047 case "$want_querytrace" in
23048 yes)
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23050 $as_echo "yes" >&6; }
23051
23052 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
23053
23054 ;;
23055 no)
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23057 $as_echo "no" >&6; }
23058 ;;
23059 *)
23060 as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
23061 ;;
23062 esac
23063
23064 #
23065 # Substitutions
23066 #
23067
23068 BIND9_TOP_BUILDDIR=`pwd`
23069
23070
23071
23072
23073
23074
23075
23076
23077 if test "X$srcdir" != "X"; then
23078 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
23079 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
23080 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
23081 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
23082 BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
23083 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
23084 BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
23085 else
23086 BIND9_ISC_BUILDINCLUDE=""
23087 BIND9_ISCCC_BUILDINCLUDE=""
23088 BIND9_ISCCFG_BUILDINCLUDE=""
23089 BIND9_DNS_BUILDINCLUDE=""
23090 BIND9_NS_BUILDINCLUDE=""
23091 BIND9_BIND9_BUILDINCLUDE=""
23092 BIND9_IRS_BUILDINCLUDE=""
23093 fi
23094
23095
23096 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
23097
23098
23099 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
23100
23101 . "$srcdir/version"
23102 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
23103
23104 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
23105
23106 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
23107
23108 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
23109
23110 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
23111
23112 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
23113
23114
23115 BIND9_SRCID="SRCID=unset_id"
23116 if test -f "${srcdir}/srcid"; then
23117 . "${srcdir}/srcid"
23118 BIND9_SRCID="SRCID=$SRCID"
23119 elif test -d "${srcdir}/.git"; then
23120 BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
23121 fi
23122
23123
23124
23125 if test -z "$ac_configure_args"; then
23126 BIND9_CONFIGARGS="defaults"
23127 else
23128 for a in $ac_configure_args
23129 do
23130 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
23131 done
23132 fi
23133 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
23134 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
23135
23136
23137
23138 LIBISC_API="$srcdir/lib/isc/api"
23139
23140
23141 LIBISCCC_API="$srcdir/lib/isccc/api"
23142
23143
23144 LIBISCCFG_API="$srcdir/lib/isccfg/api"
23145
23146
23147 LIBDNS_API="$srcdir/lib/dns/api"
23148
23149
23150 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
23151
23152
23153 LIBBIND9_API="$srcdir/lib/bind9/api"
23154
23155
23156 LIBIRS_API="$srcdir/lib/irs/api"
23157
23158
23159 LIBNS_API="$srcdir/lib/ns/api"
23160
23161 #
23162 # Configure any DLZ drivers.
23163 #
23164 # If config.dlz.in selects one or more DLZ drivers, it will set
23165 # CONTRIB_DLZ to a non-empty value, which will be our clue to
23166 # build DLZ drivers in contrib.
23167 #
23168 # This section has to come after the libtool stuff because it needs to
23169 # know how to name the driver object files.
23170 #
23171
23172 CONTRIB_DLZ=""
23173 DLZ_DRIVER_INCLUDES=""
23174 DLZ_DRIVER_LIBS=""
23175 DLZ_DRIVER_SRCS=""
23176 DLZ_DRIVER_OBJS=""
23177 DLZ_SYSTEM_TEST=""
23178 DLZ_DRIVER_MYSQL_INCLUDES=""
23179 DLZ_DRIVER_MYSQL_LIBS=""
23180
23181 #
23182 # Configure support for building a shared library object
23183 #
23184 # Even when libtool is available it can't always be relied upon
23185 # to build an object that can be dlopen()'ed, but this is necessary
23186 # for building the dlzexternal system test, so we'll try it the
23187 # old-fashioned way.
23188 #
23189 SO="so"
23190 SO_CFLAGS=""
23191 SO_LDFLAGS=""
23192 SO_LD=""
23193 SO_TARGETS=""
23194 SO_STRIP="cat"
23195
23196
23197 # Check whether --with-dlopen was given.
23198 if test "${with_dlopen+set}" = set; then :
23199 withval=$with_dlopen; dlopen="$withval"
23200 else
23201 dlopen="yes"
23202 fi
23203
23204
23205 case $host in
23206 *-sunos*) dlopen="no"
23207 ;;
23208 esac
23209
23210 if test "yes" = "$dlopen"; then
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23212 $as_echo_n "checking for dlopen in -ldl... " >&6; }
23213 if ${ac_cv_lib_dl_dlopen+:} false; then :
23214 $as_echo_n "(cached) " >&6
23215 else
23216 ac_check_lib_save_LIBS=$LIBS
23217 LIBS="-ldl $LIBS"
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219 /* end confdefs.h. */
23220
23221 /* Override any GCC internal prototype to avoid an error.
23222 Use char because int might match the return type of a GCC
23223 builtin and then its argument prototype would still apply. */
23224 #ifdef __cplusplus
23225 extern "C"
23226 #endif
23227 char dlopen ();
23228 int
23229 main ()
23230 {
23231 return dlopen ();
23232 ;
23233 return 0;
23234 }
23235 _ACEOF
23236 if ac_fn_c_try_link "$LINENO"; then :
23237 ac_cv_lib_dl_dlopen=yes
23238 else
23239 ac_cv_lib_dl_dlopen=no
23240 fi
23241 rm -f core conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23244 fi
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23246 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23247 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
23248 have_dl=yes
23249 else
23250 have_dl=no
23251 fi
23252
23253 if test "yes" = "$have_dl"; then
23254 LIBS="-ldl $LIBS"
23255 fi
23256 for ac_func in dlopen dlclose dlsym
23257 do :
23258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23261 cat >>confdefs.h <<_ACEOF
23262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23263 _ACEOF
23264
23265 else
23266 dlopen=no
23267 fi
23268 done
23269
23270 fi
23271
23272 if test "yes" = "$dlopen"; then
23273 case $host in
23274 *-linux*|*-gnu*)
23275 SO_CFLAGS="-fPIC"
23276 SO_LDFLAGS=""
23277 if test "yes" = "$have_dl"
23278 then
23279 if test "yes" = "$use_libtool"; then
23280 SO_LDFLAGS="-Xcompiler -shared"
23281 SO_LD="${CC}"
23282 else
23283 SO_LDFLAGS="-shared"
23284 SO_LD="${CC}"
23285 fi
23286 else
23287 SO_LDFLAGS="-shared"
23288 SO_LD="ld"
23289 fi
23290 ;;
23291 *-freebsd*|*-openbsd*)
23292 LDFLAGS="${LDFLAGS} -Wl,-E"
23293 SO_CFLAGS="-fpic"
23294 if test "yes" = "$use_libtool"; then
23295 SO_LDFLAGS="-Xcompiler -shared"
23296 SO_LD="${CC}"
23297 else
23298 SO_LDFLAGS="-shared"
23299 SO_LD="${CC}"
23300 fi
23301 ;;
23302 *-netbsd*)
23303 SO_CFLAGS="-fpic"
23304 SO_LDFLAGS="-Bshareable -x"
23305 SO_LD="ld"
23306 SO_STRIP="sed -e s/-Wl,//g"
23307 ;;
23308 *-solaris*)
23309 SO_CFLAGS="-KPIC"
23310 SO_LDFLAGS="-G -z text"
23311 SO_LD="ld"
23312 ;;
23313 *-hp-hpux*)
23314 SO=sl
23315 SO_CFLAGS="+z"
23316 SO_LDFLAGS="-b +vnocompatwarnings"
23317 SO_LD="ld"
23318 ;;
23319 *)
23320 SO_CFLAGS="-fPIC"
23321 ;;
23322 esac
23323
23324 if test "X$GCC" = "Xyes"; then
23325 SO_CFLAGS="-fPIC"
23326 if test -z "$SO_LD"
23327 then
23328 if test "yes" = "$use_libtool"; then
23329 SO_LDFLAGS="-Xcompiler -shared"
23330 SO_LD="${CC}"
23331 else
23332 SO_LDFLAGS="-shared"
23333 SO_LD="${CC}"
23334 fi
23335 fi
23336 fi
23337
23338 # If we still don't know how to make shared objects, don't make any.
23339 if test -n "$SO_LD"; then
23340 SO_TARGETS="\${SO_TARGETS}"
23341
23342 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
23343
23344 fi
23345 fi
23346 CFLAGS="$CFLAGS $SO_CFLAGS"
23347
23348
23349
23350
23351
23352
23353
23354
23355 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
23356 #
23357 # Permission to use, copy, modify, and distribute this software for any
23358 # purpose with or without fee is hereby granted, provided that the above
23359 # copyright notice and this permission notice appear in all copies.
23360 #
23361 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
23362 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
23363 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
23364 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23365 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23366 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23367 # PERFORMANCE OF THIS SOFTWARE.
23368
23369 #
23370 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
23371 #
23372 dlzdir='${DLZ_DRIVER_DIR}'
23373
23374 #
23375 # Private autoconf macro to simplify configuring drivers:
23376 #
23377 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
23378 #
23379 # where:
23380 # DEFINE is FOO (to define -DDLZ_FOO)
23381 # DRIVER is dlz_foo_driver (sources without the .c)
23382 # INCLUDES is any necessary include definitions
23383 # LIBS is any necessary library definitions
23384 #
23385
23386
23387 #
23388 # Check for the various DLZ drivers
23389 #
23390
23391 #
23392 # Was --with-dlz-postgres specified?
23393 #
23394
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
23396 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
23397
23398 # Check whether --with-dlz_postgres was given.
23399 if test "${with_dlz_postgres+set}" = set; then :
23400 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
23401 else
23402 use_dlz_postgres="no"
23403 fi
23404
23405
23406 if test "$use_dlz_postgres" != "no"
23407 then
23408 if test "$use_dlz_postgres" != "yes"
23409 then
23410 for ac_prog in pg_config
23411 do
23412 # Extract the first word of "$ac_prog", so it can be a program name with args.
23413 set dummy $ac_prog; ac_word=$2
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23415 $as_echo_n "checking for $ac_word... " >&6; }
23416 if ${ac_cv_path_PG_CONFIG+:} false; then :
23417 $as_echo_n "(cached) " >&6
23418 else
23419 case $PG_CONFIG in
23420 [\\/]* | ?:[\\/]*)
23421 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23422 ;;
23423 *)
23424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23425 for as_dir in $use_dlz_postgres/bin
23426 do
23427 IFS=$as_save_IFS
23428 test -z "$as_dir" && as_dir=.
23429 for ac_exec_ext in '' $ac_executable_extensions; do
23430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23431 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23433 break 2
23434 fi
23435 done
23436 done
23437 IFS=$as_save_IFS
23438
23439 ;;
23440 esac
23441 fi
23442 PG_CONFIG=$ac_cv_path_PG_CONFIG
23443 if test -n "$PG_CONFIG"; then
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
23445 $as_echo "$PG_CONFIG" >&6; }
23446 else
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448 $as_echo "no" >&6; }
23449 fi
23450
23451
23452 test -n "$PG_CONFIG" && break
23453 done
23454 test -n "$PG_CONFIG" || PG_CONFIG="not found"
23455
23456 else
23457 for ac_prog in pg_config
23458 do
23459 # Extract the first word of "$ac_prog", so it can be a program name with args.
23460 set dummy $ac_prog; ac_word=$2
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23462 $as_echo_n "checking for $ac_word... " >&6; }
23463 if ${ac_cv_path_PG_CONFIG+:} false; then :
23464 $as_echo_n "(cached) " >&6
23465 else
23466 case $PG_CONFIG in
23467 [\\/]* | ?:[\\/]*)
23468 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23469 ;;
23470 *)
23471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23472 for as_dir in $PATH
23473 do
23474 IFS=$as_save_IFS
23475 test -z "$as_dir" && as_dir=.
23476 for ac_exec_ext in '' $ac_executable_extensions; do
23477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23478 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23480 break 2
23481 fi
23482 done
23483 done
23484 IFS=$as_save_IFS
23485
23486 ;;
23487 esac
23488 fi
23489 PG_CONFIG=$ac_cv_path_PG_CONFIG
23490 if test -n "$PG_CONFIG"; then
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
23492 $as_echo "$PG_CONFIG" >&6; }
23493 else
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23495 $as_echo "no" >&6; }
23496 fi
23497
23498
23499 test -n "$PG_CONFIG" && break
23500 done
23501 test -n "$PG_CONFIG" || PG_CONFIG="not found"
23502
23503 fi
23504
23505 if test "$PG_CONFIG" != "not found"
23506 then
23507 use_dlz_postgres=`$PG_CONFIG --includedir`
23508 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
23509 else
23510 pgprefix="$use_dlz_postgres"
23511 use_dlz_postgres="$pgprefix/include"
23512 use_dlz_postgres_lib="$pgprefix/lib"
23513 fi
23514 fi
23515
23516 if test "$use_dlz_postgres" = "yes/include"
23517 then
23518 # User did not specify path and Postgres didn't say - guess it
23519 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
23520 for d in $pgdirs
23521 do
23522 if test -f $d/include/libpq-fe.h
23523 then
23524 use_dlz_postgres=$d/include
23525 use_dlz_postgres_lib=$d/lib
23526 break
23527 fi
23528 done
23529 fi
23530
23531 if test "$use_dlz_postgres" = "yes/include"
23532 then
23533 # Still no joy, give up
23534
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23536 $as_echo "not found" >&6; }
23537 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
23538 fi
23539
23540 case "$use_dlz_postgres" in
23541 no)
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23544 ;;
23545 *)
23546
23547 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
23548 for i in dlz_postgres_driver
23549 do
23550 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23551 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23552 done
23553 if test -n "-I$use_dlz_postgres"
23554 then
23555 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
23556 DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
23557 fi
23558 if test -n "-L$use_dlz_postgres_lib -lpq"
23559 then
23560 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
23561 DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
23562 fi
23563
23564
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
23566 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
23567 ;;
23568 esac
23569
23570
23571 #
23572 # Was --with-dlz-mysql specified?
23573 #
23574
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
23576 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
23577
23578 # Check whether --with-dlz_mysql was given.
23579 if test "${with_dlz_mysql+set}" = set; then :
23580 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
23581 else
23582 use_dlz_mysql="no"
23583 fi
23584
23585
23586 mysql_include=""
23587 mysql_lib=""
23588 if test "$use_dlz_mysql" = "yes"
23589 then
23590 for ac_prog in mysql_config
23591 do
23592 # Extract the first word of "$ac_prog", so it can be a program name with args.
23593 set dummy $ac_prog; ac_word=$2
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23595 $as_echo_n "checking for $ac_word... " >&6; }
23596 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
23597 $as_echo_n "(cached) " >&6
23598 else
23599 if test -n "$MYSQL_CONFIG"; then
23600 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
23601 else
23602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23603 for as_dir in $PATH
23604 do
23605 IFS=$as_save_IFS
23606 test -z "$as_dir" && as_dir=.
23607 for ac_exec_ext in '' $ac_executable_extensions; do
23608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23609 ac_cv_prog_MYSQL_CONFIG="$ac_prog"
23610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23611 break 2
23612 fi
23613 done
23614 done
23615 IFS=$as_save_IFS
23616
23617 fi
23618 fi
23619 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
23620 if test -n "$MYSQL_CONFIG"; then
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
23622 $as_echo "$MYSQL_CONFIG" >&6; }
23623 else
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23625 $as_echo "no" >&6; }
23626 fi
23627
23628
23629 test -n "$MYSQL_CONFIG" && break
23630 done
23631
23632 if test -n "$MYSQL_CONFIG"
23633 then
23634 mysql_include=`${MYSQL_CONFIG} --include`
23635 mysql_lib=`${MYSQL_CONFIG} --libs`
23636 use_dlz_mysql="config"
23637
23638 else
23639 # User did not specify a path - guess it
23640 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
23641 for d in $mysqldirs
23642 do
23643 if test -f $d/include/mysql/mysql.h
23644 then
23645 use_dlz_mysql=$d
23646 mysql_include=$d/include/mysql
23647 break
23648 elif test -f $d/include/mysql.h
23649 then
23650 use_dlz_mysql=$d
23651 mysql_include=$d/include
23652 break
23653 fi
23654 done
23655 fi
23656 elif test "$use_dlz_mysql" != "no"
23657 then
23658 d=$use_dlz_mysql
23659 if test -f $d/include/mysql/mysql.h
23660 then
23661 mysql_include=$d/include/mysql
23662 elif test -f $d/include/mysql.h
23663 then
23664 mysql_include=$d/include
23665 fi
23666 fi
23667
23668 if test "$use_dlz_mysql" = "yes"
23669 then
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23671 $as_echo "not found" >&6; }
23672 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
23673 fi
23674
23675 case "$use_dlz_mysql" in
23676 no)
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23678 $as_echo "no" >&6; }
23679 ;;
23680 config)
23681
23682 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
23683 for i in dlz_mysql_driver
23684 do
23685 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23686 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23687 done
23688 if test -n "${mysql_include}"
23689 then
23690 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
23691 DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
23692 fi
23693 if test -n "${mysql_lib}"
23694 then
23695 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
23696 DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
23697 fi
23698
23699
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
23701 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
23702 ;;
23703 *)
23704 if test -d "$use_dlz_mysql/lib/mysql"
23705 then
23706 mysql_lib="$use_dlz_mysql/lib/mysql"
23707 else
23708 mysql_lib="$use_dlz_mysql/lib"
23709 fi
23710
23711 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
23712 for i in dlz_mysql_driver
23713 do
23714 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23715 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23716 done
23717 if test -n "-I${mysql_include}"
23718 then
23719 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
23720 DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
23721 fi
23722 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23723 then
23724 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23725 DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23726 fi
23727
23728
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
23730 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
23731 ;;
23732 esac
23733
23734
23735 #
23736 # Was --with-dlz-bdb specified?
23737 #
23738
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
23740 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
23741
23742 # Check whether --with-dlz_bdb was given.
23743 if test "${with_dlz_bdb+set}" = set; then :
23744 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
23745 else
23746 use_dlz_bdb="no"
23747 fi
23748
23749
23750 case "$use_dlz_bdb" in
23751 no)
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23753 $as_echo "no" >&6; }
23754 ;;
23755 *)
23756 if test "$use_dlz_bdb" = "yes"
23757 then
23758 # User did not specify a path - guess directories
23759 bdbdirs="/usr/local /usr/pkg /usr"
23760 elif test -d "$use_dlz_bdb"
23761 then
23762 # User specified directory and it exists
23763 bdbdirs="$use_dlz_bdb"
23764 else
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23766 $as_echo "not found" >&6; }
23767 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
23768 bdbdirs=""
23769 fi
23770
23771 # Use path we were given or guessed. This is insanely
23772 # complicated because we have to search for a bunch of
23773 # platform-specific variations and have to check
23774 # separately for include and library directories.
23775
23776 # Set both to yes, so we can check them later
23777 dlz_bdb_inc="yes"
23778 dlz_bdb_libs="yes"
23779
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23781 $as_echo "" >&6; }
23782 for dd in $bdbdirs
23783 do
23784 # Skip nonexistant directories
23785 if test ! -d "$dd"
23786 then
23787 continue
23788 fi
23789
23790 # Check other locations for includes.
23791 # Order is important (sigh).
23792
23793 bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
23794 # include a blank element first
23795 for d in "" $bdb_incdirs
23796 do
23797 if test -f "$dd/include${d}/db.h"
23798 then
23799 dlz_bdb_inc="-I$dd/include${d}"
23800 break
23801 fi
23802 done
23803
23804 # Give up on this directory if we couldn't
23805 # find the include subdir
23806
23807 if test "$dlz_bdb_inc" = "yes"
23808 then
23809 continue
23810 fi
23811
23812 # Look for libname other than libdb.so.
23813 # Order is important (sigh).
23814
23815 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"
23816 for d in $bdb_libnames
23817 do
23818 if test "$dd" = "/usr"
23819 then
23820 as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
23822 $as_echo_n "checking for db_create in -l$d... " >&6; }
23823 if eval \${$as_ac_Lib+:} false; then :
23824 $as_echo_n "(cached) " >&6
23825 else
23826 ac_check_lib_save_LIBS=$LIBS
23827 LIBS="-l$d $LIBS"
23828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23829 /* end confdefs.h. */
23830
23831 /* Override any GCC internal prototype to avoid an error.
23832 Use char because int might match the return type of a GCC
23833 builtin and then its argument prototype would still apply. */
23834 #ifdef __cplusplus
23835 extern "C"
23836 #endif
23837 char db_create ();
23838 int
23839 main ()
23840 {
23841 return db_create ();
23842 ;
23843 return 0;
23844 }
23845 _ACEOF
23846 if ac_fn_c_try_link "$LINENO"; then :
23847 eval "$as_ac_Lib=yes"
23848 else
23849 eval "$as_ac_Lib=no"
23850 fi
23851 rm -f core conftest.err conftest.$ac_objext \
23852 conftest$ac_exeext conftest.$ac_ext
23853 LIBS=$ac_check_lib_save_LIBS
23854 fi
23855 eval ac_res=\$$as_ac_Lib
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23857 $as_echo "$ac_res" >&6; }
23858 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
23859 dlz_bdb_libs="-l${d}"
23860 fi
23861
23862 if test $dlz_bdb_libs != "yes"
23863 then
23864 break
23865 fi
23866 elif test -f "$dd/lib/lib${d}.so"
23867 then
23868 dlz_bdb_libs="-L${dd}/lib -l${d}"
23869 break
23870 fi
23871 done
23872
23873 # If we found both incdir and lib, we're done
23874 if test "$dlz_bdb_libs" != "yes"
23875 then
23876 break
23877 fi
23878
23879 # Otherwise, we're starting over
23880
23881 dlz_bdb_inc="yes"
23882 dlz_bdb_libs="yes"
23883 done
23884
23885 # Done searching, now make sure we got everything.
23886
23887 if test "$dlz_bdb_inc" = "yes"
23888 then
23889 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
23890 fi
23891
23892 if test "$dlz_bdb_libs" = "yes"
23893 then
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23895 $as_echo "not found" >&6; }
23896 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
23897 fi
23898
23899
23900 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
23901 for i in dlz_bdb_driver dlz_bdbhpt_driver
23902 do
23903 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23904 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23905 done
23906 if test -n "$dlz_bdb_inc"
23907 then
23908 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
23909 DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
23910 fi
23911 if test -n "$dlz_bdb_libs"
23912 then
23913 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
23914 DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
23915 fi
23916
23917
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
23919 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
23920
23921 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
23922
23923 ;;
23924 esac
23925
23926
23927 #
23928 # Was --with-dlz-filesystem specified?
23929 #
23930
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
23932 $as_echo_n "checking for file system DLZ driver... " >&6; }
23933
23934 # Check whether --with-dlz_filesystem was given.
23935 if test "${with_dlz_filesystem+set}" = set; then :
23936 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
23937 else
23938 use_dlz_filesystem="no"
23939 fi
23940
23941
23942 case "$use_dlz_filesystem" in
23943 no)
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23945 $as_echo "no" >&6; }
23946 ;;
23947 *)
23948
23949 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
23950 for i in dlz_filesystem_driver
23951 do
23952 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23953 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23954 done
23955 if test -n ""
23956 then
23957 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
23958 DLZ_DRIVER_FILESYSTEM_INCLUDES=""
23959 fi
23960 if test -n ""
23961 then
23962 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
23963 DLZ_DRIVER_FILESYSTEM_LIBS=""
23964 fi
23965
23966 DLZ_SYSTEM_TEST=filesystem
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23968 $as_echo "yes" >&6; }
23969 ;;
23970 esac
23971
23972
23973 #
23974 # Was --with-dlz-ldap specified?
23975 #
23976
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
23978 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
23979
23980 # Check whether --with-dlz_ldap was given.
23981 if test "${with_dlz_ldap+set}" = set; then :
23982 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
23983 else
23984 use_dlz_ldap="no"
23985 fi
23986
23987
23988 if test "$use_dlz_ldap" = "yes"
23989 then
23990 # User did not specify a path - guess it
23991 ldapdirs="/usr /usr/local /usr/pkg"
23992 for d in $ldapdirs
23993 do
23994 if test -f $d/include/ldap.h
23995 then
23996 use_dlz_ldap=$d
23997 break
23998 fi
23999 done
24000 fi
24001
24002 if test "$use_dlz_ldap" = "yes"
24003 then
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24005 $as_echo "not found" >&6; }
24006 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
24007 fi
24008
24009 case "$use_dlz_ldap" in
24010 no)
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24012 $as_echo "no" >&6; }
24013 ;;
24014 *)
24015
24016 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
24017 for i in dlz_ldap_driver
24018 do
24019 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
24020 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
24021 done
24022 if test -n "-I$use_dlz_ldap/include"
24023 then
24024 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
24025 DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
24026 fi
24027 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
24028 then
24029 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
24030 DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
24031 fi
24032
24033
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
24035 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
24036 ;;
24037 esac
24038
24039
24040 #
24041 # Was --with-dlz-odbc specified?
24042 #
24043
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
24045 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
24046
24047 # Check whether --with-dlz_odbc was given.
24048 if test "${with_dlz_odbc+set}" = set; then :
24049 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
24050 else
24051 use_dlz_odbc="no"
24052 fi
24053
24054
24055 if test "$use_dlz_odbc" = "yes"
24056 then
24057 # User did not specify a path - guess it
24058 libodbc_found=no
24059 sql_h_found=no
24060 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
24061 if test "x$ac_cv_header_sql_h" = xyes; then :
24062 sql_h_found=yes
24063 fi
24064
24065
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
24067 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
24068 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
24069 $as_echo_n "(cached) " >&6
24070 else
24071 ac_check_lib_save_LIBS=$LIBS
24072 LIBS="-lodbc $LIBS"
24073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24074 /* end confdefs.h. */
24075
24076 /* Override any GCC internal prototype to avoid an error.
24077 Use char because int might match the return type of a GCC
24078 builtin and then its argument prototype would still apply. */
24079 #ifdef __cplusplus
24080 extern "C"
24081 #endif
24082 char SQLConnect ();
24083 int
24084 main ()
24085 {
24086 return SQLConnect ();
24087 ;
24088 return 0;
24089 }
24090 _ACEOF
24091 if ac_fn_c_try_link "$LINENO"; then :
24092 ac_cv_lib_odbc_SQLConnect=yes
24093 else
24094 ac_cv_lib_odbc_SQLConnect=no
24095 fi
24096 rm -f core conftest.err conftest.$ac_objext \
24097 conftest$ac_exeext conftest.$ac_ext
24098 LIBS=$ac_check_lib_save_LIBS
24099 fi
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
24101 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
24102 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
24103 libodbc_found=yes
24104 fi
24105
24106
24107 if test $libodbc_found = "yes" -o $sql_h_found = "yes"
24108 then
24109 use_dlz_odbc=system
24110 dlz_odbc_include=""
24111 dlz_odbc_libs="-lodbc"
24112 else
24113 odbcdirs="/usr /usr/local /usr/pkg"
24114 for d in $odbcdirs
24115 do
24116 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
24117 then
24118 use_dlz_odbc=$d
24119 dlz_odbc_include="-I$use_dlz_odbc/include"
24120 dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
24121 break
24122 fi
24123 done
24124 fi
24125 fi
24126
24127 case "$use_dlz_odbc" in
24128 no)
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24130 $as_echo "no" >&6; }
24131 ;;
24132 yes)
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24134 $as_echo "not found" >&6; }
24135 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
24136 ;;
24137 *)
24138
24139 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
24140 for i in dlz_odbc_driver
24141 do
24142 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
24143 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
24144 done
24145 if test -n "$dlz_odbc_include"
24146 then
24147 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
24148 DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
24149 fi
24150 if test -n "$dlz_odbc_libs"
24151 then
24152 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
24153 DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
24154 fi
24155
24156
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
24158 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
24159 ;;
24160 esac
24161
24162
24163 #
24164 # Was --with-dlz-stub specified?
24165 #
24166
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
24168 $as_echo_n "checking for stub DLZ driver... " >&6; }
24169
24170 # Check whether --with-dlz_stub was given.
24171 if test "${with_dlz_stub+set}" = set; then :
24172 withval=$with_dlz_stub; use_dlz_stub="$withval"
24173 else
24174 use_dlz_stub="no"
24175 fi
24176
24177
24178 case "$use_dlz_stub" in
24179 no)
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24181 $as_echo "no" >&6; }
24182 ;;
24183 *)
24184
24185
24186 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
24187 for i in dlz_stub_driver
24188 do
24189 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
24190 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
24191 done
24192 if test -n ""
24193 then
24194 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
24195 DLZ_DRIVER_STUB_INCLUDES=""
24196 fi
24197 if test -n ""
24198 then
24199 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
24200 DLZ_DRIVER_STUB_LIBS=""
24201 fi
24202
24203
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24205 $as_echo "yes" >&6; }
24206 ;;
24207 esac
24208
24209 # Add any additional DLZ drivers here.
24210
24211 #
24212 # Finally, some generic stuff that applies to all drivers, assuming
24213 # we're compiling contrib DLZ drivers at all.
24214 #
24215 if test -n "$CONTRIB_DLZ"
24216 then
24217 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
24218
24219 #
24220 # Where to find DLZ driver header files.
24221 #
24222 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
24223
24224 #
24225 # Initialization and shutdown wrappers, helper functions.
24226 #
24227 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
24228 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
24229 fi
24230
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
24232 $as_echo_n "checking contributed DLZ drivers... " >&6; }
24233
24234 if test -n "$CONTRIB_DLZ"
24235 then
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24237 $as_echo "yes" >&6; }
24238 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
24239 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
24240
24241 else
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24243 $as_echo "no" >&6; }
24244 DLZ_DRIVER_RULES=/dev/null
24245 fi
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257 if test "yes" = "$cross_compiling"; then
24258 if test -z "$BUILD_CC"; then
24259 as_fn_error $? "BUILD_CC not set" "$LINENO" 5
24260 fi
24261 BUILD_CFLAGS="$BUILD_CFLAGS"
24262 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
24263 BUILD_LDFLAGS="$BUILD_LDFLAGS"
24264 BUILD_LIBS="$BUILD_LIBS"
24265 else
24266 BUILD_CC="$CC"
24267 BUILD_CFLAGS="$CFLAGS"
24268 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
24269 BUILD_LDFLAGS="$LDFLAGS"
24270 BUILD_LIBS="$LIBS"
24271 fi
24272
24273 NEWFLAGS=""
24274 for e in $BUILD_LDFLAGS ; do
24275 case $e in
24276 -L*)
24277 case $host_os in
24278 netbsd*)
24279 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24280 NEWFLAGS="$NEWFLAGS $e $ee"
24281 ;;
24282 freebsd*)
24283 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24284 NEWFLAGS="$NEWFLAGS $e $ee"
24285 ;;
24286 solaris*)
24287 ee=`echo $e | sed -e 's%^-L%-R%'`
24288 NEWFLAGS="$NEWFLAGS $e $ee"
24289 ;;
24290 *)
24291 NEWFLAGS="$NEWFLAGS $e"
24292 ;;
24293 esac
24294 ;;
24295 *)
24296 NEWFLAGS="$NEWFLAGS $e"
24297 ;;
24298 esac
24299 done
24300 BUILD_LDFLAGS="$NEWFLAGS"
24301
24302 NEWFLAGS=""
24303 for e in $DNS_GSSAPI_LIBS ; do
24304 case $e in
24305 -L*)
24306 case $host_os in
24307 netbsd*)
24308 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24309 NEWFLAGS="$NEWFLAGS $e $ee"
24310 ;;
24311 freebsd*)
24312 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24313 NEWFLAGS="$NEWFLAGS $e $ee"
24314 ;;
24315 solaris*)
24316 ee=`echo $e | sed -e 's%^-L%-R%'`
24317 NEWFLAGS="$NEWFLAGS $e $ee"
24318 ;;
24319 *)
24320 NEWFLAGS="$NEWFLAGS $e"
24321 ;;
24322 esac
24323 ;;
24324 *)
24325 NEWFLAGS="$NEWFLAGS $e"
24326 ;;
24327 esac
24328 done
24329 DNS_GSSAPI_LIBS="$NEWFLAGS"
24330
24331 NEWFLAGS=""
24332 for e in $ISC_OPENSSL_LIBS ; do
24333 case $e in
24334 -L*)
24335 case $host_os in
24336 netbsd*)
24337 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24338 NEWFLAGS="$NEWFLAGS $e $ee"
24339 ;;
24340 freebsd*)
24341 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24342 NEWFLAGS="$NEWFLAGS $e $ee"
24343 ;;
24344 solaris*)
24345 ee=`echo $e | sed -e 's%^-L%-R%'`
24346 NEWFLAGS="$NEWFLAGS $e $ee"
24347 ;;
24348 *)
24349 NEWFLAGS="$NEWFLAGS $e"
24350 ;;
24351 esac
24352 ;;
24353 *)
24354 NEWFLAGS="$NEWFLAGS $e"
24355 ;;
24356 esac
24357 done
24358 ISC_OPENSSL_LIBS="$NEWFLAGS"
24359
24360 NEWFLAGS=""
24361 for e in $DNS_CRYPTO_LIBS ; do
24362 case $e in
24363 -L*)
24364 case $host_os in
24365 netbsd*)
24366 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24367 NEWFLAGS="$NEWFLAGS $e $ee"
24368 ;;
24369 freebsd*)
24370 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24371 NEWFLAGS="$NEWFLAGS $e $ee"
24372 ;;
24373 solaris*)
24374 ee=`echo $e | sed -e 's%^-L%-R%'`
24375 NEWFLAGS="$NEWFLAGS $e $ee"
24376 ;;
24377 *)
24378 NEWFLAGS="$NEWFLAGS $e"
24379 ;;
24380 esac
24381 ;;
24382 *)
24383 NEWFLAGS="$NEWFLAGS $e"
24384 ;;
24385 esac
24386 done
24387 DNS_CRYPTO_LIBS="$NEWFLAGS"
24388
24389
24390
24391
24392
24393
24394
24395 #
24396 # Commands to run at the end of config.status.
24397 # Don't just put these into configure, it won't work right if somebody
24398 # runs config.status directly (which autoconf allows).
24399 #
24400
24401 ac_config_commands="$ac_config_commands chmod"
24402
24403
24404 #
24405 # Files to configure. These are listed here because we used to
24406 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
24407 # elsewhere if there's a good reason for doing so.
24408 #
24409
24410 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/isc/Makefile bin/python/isc/utils.py bin/python/isc/tests/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlz/prereq.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/inline/checkdsa.sh bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/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/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.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/irs/tests/Makefile 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/isccfg/tests/Makefile lib/ns/Makefile lib/ns/include/Makefile lib/ns/include/ns/Makefile lib/ns/tests/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall unit/Makefile unit/unittest.sh"
24411
24412
24413 #
24414 # Do it
24415 #
24416
24417 cat >confcache <<\_ACEOF
24418 # This file is a shell script that caches the results of configure
24419 # tests run on this system so they can be shared between configure
24420 # scripts and configure runs, see configure's option --config-cache.
24421 # It is not useful on other systems. If it contains results you don't
24422 # want to keep, you may remove or edit it.
24423 #
24424 # config.status only pays attention to the cache file if you give it
24425 # the --recheck option to rerun configure.
24426 #
24427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24429 # following values.
24430
24431 _ACEOF
24432
24433 # The following way of writing the cache mishandles newlines in values,
24434 # but we know of no workaround that is simple, portable, and efficient.
24435 # So, we kill variables containing newlines.
24436 # Ultrix sh set writes to stderr and can't be redirected directly,
24437 # and sets the high bit in the cache file unless we assign to the vars.
24438 (
24439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24440 eval ac_val=\$$ac_var
24441 case $ac_val in #(
24442 *${as_nl}*)
24443 case $ac_var in #(
24444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24446 esac
24447 case $ac_var in #(
24448 _ | IFS | as_nl) ;; #(
24449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24450 *) { eval $ac_var=; unset $ac_var;} ;;
24451 esac ;;
24452 esac
24453 done
24454
24455 (set) 2>&1 |
24456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24457 *${as_nl}ac_space=\ *)
24458 # `set' does not quote correctly, so add quotes: double-quote
24459 # substitution turns \\\\ into \\, and sed turns \\ into \.
24460 sed -n \
24461 "s/'/'\\\\''/g;
24462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24463 ;; #(
24464 *)
24465 # `set' quotes correctly as required by POSIX, so do not add quotes.
24466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24467 ;;
24468 esac |
24469 sort
24470 ) |
24471 sed '
24472 /^ac_cv_env_/b end
24473 t clear
24474 :clear
24475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24476 t end
24477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24478 :end' >>confcache
24479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24480 if test -w "$cache_file"; then
24481 if test "x$cache_file" != "x/dev/null"; then
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24483 $as_echo "$as_me: updating cache $cache_file" >&6;}
24484 if test ! -f "$cache_file" || test -h "$cache_file"; then
24485 cat confcache >"$cache_file"
24486 else
24487 case $cache_file in #(
24488 */* | ?:*)
24489 mv -f confcache "$cache_file"$$ &&
24490 mv -f "$cache_file"$$ "$cache_file" ;; #(
24491 *)
24492 mv -f confcache "$cache_file" ;;
24493 esac
24494 fi
24495 fi
24496 else
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24499 fi
24500 fi
24501 rm -f confcache
24502
24503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24504 # Let make expand exec_prefix.
24505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24506
24507 DEFS=-DHAVE_CONFIG_H
24508
24509 ac_libobjs=
24510 ac_ltlibobjs=
24511 U=
24512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24513 # 1. Remove the extension, and $U if already installed.
24514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24515 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24517 # will be set to the directory where LIBOBJS objects are built.
24518 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24519 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24520 done
24521 LIBOBJS=$ac_libobjs
24522
24523 LTLIBOBJS=$ac_ltlibobjs
24524
24525
24526
24527
24528 : "${CONFIG_STATUS=./config.status}"
24529 ac_write_fail=0
24530 ac_clean_files_save=$ac_clean_files
24531 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24533 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24534 as_write_fail=0
24535 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24536 #! $SHELL
24537 # Generated by $as_me.
24538 # Run this file to recreate the current configuration.
24539 # Compiler output produced by configure, useful for debugging
24540 # configure, is in config.log if it exists.
24541
24542 debug=false
24543 ac_cs_recheck=false
24544 ac_cs_silent=false
24545
24546 SHELL=\${CONFIG_SHELL-$SHELL}
24547 export SHELL
24548 _ASEOF
24549 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24550 ## -------------------- ##
24551 ## M4sh Initialization. ##
24552 ## -------------------- ##
24553
24554 # Be more Bourne compatible
24555 DUALCASE=1; export DUALCASE # for MKS sh
24556 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24557 emulate sh
24558 NULLCMD=:
24559 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24560 # is contrary to our usage. Disable this feature.
24561 alias -g '${1+"$@"}'='"$@"'
24562 setopt NO_GLOB_SUBST
24563 else
24564 case `(set -o) 2>/dev/null` in #(
24565 *posix*) :
24566 set -o posix ;; #(
24567 *) :
24568 ;;
24569 esac
24570 fi
24571
24572
24573 as_nl='
24574 '
24575 export as_nl
24576 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24577 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24580 # Prefer a ksh shell builtin over an external printf program on Solaris,
24581 # but without wasting forks for bash or zsh.
24582 if test -z "$BASH_VERSION$ZSH_VERSION" \
24583 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24584 as_echo='print -r --'
24585 as_echo_n='print -rn --'
24586 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24587 as_echo='printf %s\n'
24588 as_echo_n='printf %s'
24589 else
24590 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24591 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24592 as_echo_n='/usr/ucb/echo -n'
24593 else
24594 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24595 as_echo_n_body='eval
24596 arg=$1;
24597 case $arg in #(
24598 *"$as_nl"*)
24599 expr "X$arg" : "X\\(.*\\)$as_nl";
24600 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24601 esac;
24602 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24603 '
24604 export as_echo_n_body
24605 as_echo_n='sh -c $as_echo_n_body as_echo'
24606 fi
24607 export as_echo_body
24608 as_echo='sh -c $as_echo_body as_echo'
24609 fi
24610
24611 # The user is always right.
24612 if test "${PATH_SEPARATOR+set}" != set; then
24613 PATH_SEPARATOR=:
24614 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24615 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24616 PATH_SEPARATOR=';'
24617 }
24618 fi
24619
24620
24621 # IFS
24622 # We need space, tab and new line, in precisely that order. Quoting is
24623 # there to prevent editors from complaining about space-tab.
24624 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24625 # splitting by setting IFS to empty value.)
24626 IFS=" "" $as_nl"
24627
24628 # Find who we are. Look in the path if we contain no directory separator.
24629 as_myself=
24630 case $0 in #((
24631 *[\\/]* ) as_myself=$0 ;;
24632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24633 for as_dir in $PATH
24634 do
24635 IFS=$as_save_IFS
24636 test -z "$as_dir" && as_dir=.
24637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24638 done
24639 IFS=$as_save_IFS
24640
24641 ;;
24642 esac
24643 # We did not find ourselves, most probably we were run as `sh COMMAND'
24644 # in which case we are not to be found in the path.
24645 if test "x$as_myself" = x; then
24646 as_myself=$0
24647 fi
24648 if test ! -f "$as_myself"; then
24649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24650 exit 1
24651 fi
24652
24653 # Unset variables that we do not need and which cause bugs (e.g. in
24654 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24655 # suppresses any "Segmentation fault" message there. '((' could
24656 # trigger a bug in pdksh 5.2.14.
24657 for as_var in BASH_ENV ENV MAIL MAILPATH
24658 do eval test x\${$as_var+set} = xset \
24659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24660 done
24661 PS1='$ '
24662 PS2='> '
24663 PS4='+ '
24664
24665 # NLS nuisances.
24666 LC_ALL=C
24667 export LC_ALL
24668 LANGUAGE=C
24669 export LANGUAGE
24670
24671 # CDPATH.
24672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24673
24674
24675 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24676 # ----------------------------------------
24677 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24678 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24679 # script with STATUS, using 1 if that was 0.
24680 as_fn_error ()
24681 {
24682 as_status=$1; test $as_status -eq 0 && as_status=1
24683 if test "$4"; then
24684 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24685 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24686 fi
24687 $as_echo "$as_me: error: $2" >&2
24688 as_fn_exit $as_status
24689 } # as_fn_error
24690
24691
24692 # as_fn_set_status STATUS
24693 # -----------------------
24694 # Set $? to STATUS, without forking.
24695 as_fn_set_status ()
24696 {
24697 return $1
24698 } # as_fn_set_status
24699
24700 # as_fn_exit STATUS
24701 # -----------------
24702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24703 as_fn_exit ()
24704 {
24705 set +e
24706 as_fn_set_status $1
24707 exit $1
24708 } # as_fn_exit
24709
24710 # as_fn_unset VAR
24711 # ---------------
24712 # Portably unset VAR.
24713 as_fn_unset ()
24714 {
24715 { eval $1=; unset $1;}
24716 }
24717 as_unset=as_fn_unset
24718 # as_fn_append VAR VALUE
24719 # ----------------------
24720 # Append the text in VALUE to the end of the definition contained in VAR. Take
24721 # advantage of any shell optimizations that allow amortized linear growth over
24722 # repeated appends, instead of the typical quadratic growth present in naive
24723 # implementations.
24724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24725 eval 'as_fn_append ()
24726 {
24727 eval $1+=\$2
24728 }'
24729 else
24730 as_fn_append ()
24731 {
24732 eval $1=\$$1\$2
24733 }
24734 fi # as_fn_append
24735
24736 # as_fn_arith ARG...
24737 # ------------------
24738 # Perform arithmetic evaluation on the ARGs, and store the result in the
24739 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24740 # must be portable across $(()) and expr.
24741 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24742 eval 'as_fn_arith ()
24743 {
24744 as_val=$(( $* ))
24745 }'
24746 else
24747 as_fn_arith ()
24748 {
24749 as_val=`expr "$@" || test $? -eq 1`
24750 }
24751 fi # as_fn_arith
24752
24753
24754 if expr a : '\(a\)' >/dev/null 2>&1 &&
24755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24756 as_expr=expr
24757 else
24758 as_expr=false
24759 fi
24760
24761 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24762 as_basename=basename
24763 else
24764 as_basename=false
24765 fi
24766
24767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24768 as_dirname=dirname
24769 else
24770 as_dirname=false
24771 fi
24772
24773 as_me=`$as_basename -- "$0" ||
24774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24775 X"$0" : 'X\(//\)$' \| \
24776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24777 $as_echo X/"$0" |
24778 sed '/^.*\/\([^/][^/]*\)\/*$/{
24779 s//\1/
24780 q
24781 }
24782 /^X\/\(\/\/\)$/{
24783 s//\1/
24784 q
24785 }
24786 /^X\/\(\/\).*/{
24787 s//\1/
24788 q
24789 }
24790 s/.*/./; q'`
24791
24792 # Avoid depending upon Character Ranges.
24793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24796 as_cr_digits='0123456789'
24797 as_cr_alnum=$as_cr_Letters$as_cr_digits
24798
24799 ECHO_C= ECHO_N= ECHO_T=
24800 case `echo -n x` in #(((((
24801 -n*)
24802 case `echo 'xy\c'` in
24803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24804 xy) ECHO_C='\c';;
24805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24806 ECHO_T=' ';;
24807 esac;;
24808 *)
24809 ECHO_N='-n';;
24810 esac
24811
24812 rm -f conf$$ conf$$.exe conf$$.file
24813 if test -d conf$$.dir; then
24814 rm -f conf$$.dir/conf$$.file
24815 else
24816 rm -f conf$$.dir
24817 mkdir conf$$.dir 2>/dev/null
24818 fi
24819 if (echo >conf$$.file) 2>/dev/null; then
24820 if ln -s conf$$.file conf$$ 2>/dev/null; then
24821 as_ln_s='ln -s'
24822 # ... but there are two gotchas:
24823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24825 # In both cases, we have to default to `cp -pR'.
24826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24827 as_ln_s='cp -pR'
24828 elif ln conf$$.file conf$$ 2>/dev/null; then
24829 as_ln_s=ln
24830 else
24831 as_ln_s='cp -pR'
24832 fi
24833 else
24834 as_ln_s='cp -pR'
24835 fi
24836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24837 rmdir conf$$.dir 2>/dev/null
24838
24839
24840 # as_fn_mkdir_p
24841 # -------------
24842 # Create "$as_dir" as a directory, including parents if necessary.
24843 as_fn_mkdir_p ()
24844 {
24845
24846 case $as_dir in #(
24847 -*) as_dir=./$as_dir;;
24848 esac
24849 test -d "$as_dir" || eval $as_mkdir_p || {
24850 as_dirs=
24851 while :; do
24852 case $as_dir in #(
24853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24854 *) as_qdir=$as_dir;;
24855 esac
24856 as_dirs="'$as_qdir' $as_dirs"
24857 as_dir=`$as_dirname -- "$as_dir" ||
24858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24859 X"$as_dir" : 'X\(//\)[^/]' \| \
24860 X"$as_dir" : 'X\(//\)$' \| \
24861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24862 $as_echo X"$as_dir" |
24863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24864 s//\1/
24865 q
24866 }
24867 /^X\(\/\/\)[^/].*/{
24868 s//\1/
24869 q
24870 }
24871 /^X\(\/\/\)$/{
24872 s//\1/
24873 q
24874 }
24875 /^X\(\/\).*/{
24876 s//\1/
24877 q
24878 }
24879 s/.*/./; q'`
24880 test -d "$as_dir" && break
24881 done
24882 test -z "$as_dirs" || eval "mkdir $as_dirs"
24883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24884
24885
24886 } # as_fn_mkdir_p
24887 if mkdir -p . 2>/dev/null; then
24888 as_mkdir_p='mkdir -p "$as_dir"'
24889 else
24890 test -d ./-p && rmdir ./-p
24891 as_mkdir_p=false
24892 fi
24893
24894
24895 # as_fn_executable_p FILE
24896 # -----------------------
24897 # Test if FILE is an executable regular file.
24898 as_fn_executable_p ()
24899 {
24900 test -f "$1" && test -x "$1"
24901 } # as_fn_executable_p
24902 as_test_x='test -x'
24903 as_executable_p=as_fn_executable_p
24904
24905 # Sed expression to map a string onto a valid CPP name.
24906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24907
24908 # Sed expression to map a string onto a valid variable name.
24909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24910
24911
24912 exec 6>&1
24913 ## ----------------------------------- ##
24914 ## Main body of $CONFIG_STATUS script. ##
24915 ## ----------------------------------- ##
24916 _ASEOF
24917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24918
24919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24920 # Save the log message, to keep $0 and so on meaningful, and to
24921 # report actual input values of CONFIG_FILES etc. instead of their
24922 # values after options handling.
24923 ac_log="
24924 This file was extended by BIND $as_me 9.12, which was
24925 generated by GNU Autoconf 2.69. Invocation command line was
24926
24927 CONFIG_FILES = $CONFIG_FILES
24928 CONFIG_HEADERS = $CONFIG_HEADERS
24929 CONFIG_LINKS = $CONFIG_LINKS
24930 CONFIG_COMMANDS = $CONFIG_COMMANDS
24931 $ $0 $@
24932
24933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24934 "
24935
24936 _ACEOF
24937
24938 case $ac_config_files in *"
24939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24940 esac
24941
24942 case $ac_config_headers in *"
24943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24944 esac
24945
24946
24947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24948 # Files that config.status was made for.
24949 config_files="$ac_config_files"
24950 config_headers="$ac_config_headers"
24951 config_commands="$ac_config_commands"
24952
24953 _ACEOF
24954
24955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24956 ac_cs_usage="\
24957 \`$as_me' instantiates files and other configuration actions
24958 from templates according to the current configuration. Unless the files
24959 and actions are specified as TAGs, all are instantiated by default.
24960
24961 Usage: $0 [OPTION]... [TAG]...
24962
24963 -h, --help print this help, then exit
24964 -V, --version print version number and configuration settings, then exit
24965 --config print configuration, then exit
24966 -q, --quiet, --silent
24967 do not print progress messages
24968 -d, --debug don't remove temporary files
24969 --recheck update $as_me by reconfiguring in the same conditions
24970 --file=FILE[:TEMPLATE]
24971 instantiate the configuration file FILE
24972 --header=FILE[:TEMPLATE]
24973 instantiate the configuration header FILE
24974
24975 Configuration files:
24976 $config_files
24977
24978 Configuration headers:
24979 $config_headers
24980
24981 Configuration commands:
24982 $config_commands
24983
24984 Report bugs to <info@isc.org>.
24985 BIND home page: <https://www.isc.org/downloads/BIND/>."
24986
24987 _ACEOF
24988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24989 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24990 ac_cs_version="\\
24991 BIND config.status 9.12
24992 configured by $0, generated by GNU Autoconf 2.69,
24993 with options \\"\$ac_cs_config\\"
24994
24995 Copyright (C) 2012 Free Software Foundation, Inc.
24996 This config.status script is free software; the Free Software Foundation
24997 gives unlimited permission to copy, distribute and modify it."
24998
24999 ac_pwd='$ac_pwd'
25000 srcdir='$srcdir'
25001 INSTALL='$INSTALL'
25002 AWK='$AWK'
25003 test -n "\$AWK" || AWK=awk
25004 _ACEOF
25005
25006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25007 # The default lists apply if the user does not specify any file.
25008 ac_need_defaults=:
25009 while test $# != 0
25010 do
25011 case $1 in
25012 --*=?*)
25013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25015 ac_shift=:
25016 ;;
25017 --*=)
25018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25019 ac_optarg=
25020 ac_shift=:
25021 ;;
25022 *)
25023 ac_option=$1
25024 ac_optarg=$2
25025 ac_shift=shift
25026 ;;
25027 esac
25028
25029 case $ac_option in
25030 # Handling of the options.
25031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25032 ac_cs_recheck=: ;;
25033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25034 $as_echo "$ac_cs_version"; exit ;;
25035 --config | --confi | --conf | --con | --co | --c )
25036 $as_echo "$ac_cs_config"; exit ;;
25037 --debug | --debu | --deb | --de | --d | -d )
25038 debug=: ;;
25039 --file | --fil | --fi | --f )
25040 $ac_shift
25041 case $ac_optarg in
25042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25043 '') as_fn_error $? "missing file argument" ;;
25044 esac
25045 as_fn_append CONFIG_FILES " '$ac_optarg'"
25046 ac_need_defaults=false;;
25047 --header | --heade | --head | --hea )
25048 $ac_shift
25049 case $ac_optarg in
25050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25051 esac
25052 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25053 ac_need_defaults=false;;
25054 --he | --h)
25055 # Conflict between --help and --header
25056 as_fn_error $? "ambiguous option: \`$1'
25057 Try \`$0 --help' for more information.";;
25058 --help | --hel | -h )
25059 $as_echo "$ac_cs_usage"; exit ;;
25060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25061 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25062 ac_cs_silent=: ;;
25063
25064 # This is an error.
25065 -*) as_fn_error $? "unrecognized option: \`$1'
25066 Try \`$0 --help' for more information." ;;
25067
25068 *) as_fn_append ac_config_targets " $1"
25069 ac_need_defaults=false ;;
25070
25071 esac
25072 shift
25073 done
25074
25075 ac_configure_extra_args=
25076
25077 if $ac_cs_silent; then
25078 exec 6>/dev/null
25079 ac_configure_extra_args="$ac_configure_extra_args --silent"
25080 fi
25081
25082 _ACEOF
25083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25084 if \$ac_cs_recheck; then
25085 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25086 shift
25087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25088 CONFIG_SHELL='$SHELL'
25089 export CONFIG_SHELL
25090 exec "\$@"
25091 fi
25092
25093 _ACEOF
25094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25095 exec 5>>config.log
25096 {
25097 echo
25098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25099 ## Running $as_me. ##
25100 _ASBOX
25101 $as_echo "$ac_log"
25102 } >&5
25103
25104 _ACEOF
25105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25106 #
25107 # INIT-COMMANDS
25108 #
25109
25110
25111 # The HP-UX ksh and POSIX shell print the target directory to stdout
25112 # if CDPATH is set.
25113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25114
25115 sed_quote_subst='$sed_quote_subst'
25116 double_quote_subst='$double_quote_subst'
25117 delay_variable_subst='$delay_variable_subst'
25118 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25119 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25120 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25121 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25122 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25123 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25124 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25125 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25126 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25127 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25128 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25129 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25130 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25131 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25132 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25133 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25134 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25135 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25136 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25137 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25138 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25139 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25140 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25141 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25142 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25143 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25144 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25145 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25146 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25147 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25148 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25149 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25150 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25151 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25152 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25153 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25154 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25155 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25156 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25157 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25158 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25159 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25160 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25161 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25162 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25163 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25164 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25165 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25166 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25167 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25168 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25169 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25170 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25171 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25172 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25173 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25174 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25175 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25176 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"`'
25177 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25178 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25179 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25180 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25181 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25182 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25183 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25184 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25185 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25186 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25187 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25188 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25189 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25190 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25191 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25192 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25193 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25194 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25195 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25196 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25197 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25198 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25199 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25200 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25201 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25202 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25203 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25204 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25205 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25206 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25207 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25208 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25209 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25210 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25211 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25212 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25213 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25214 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25215 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25216 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25217 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25218 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25219 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25220 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25221 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25222 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25223 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25224 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25225 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25226 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25227 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25228 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25229 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25230 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25231 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25232 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25233 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25234 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25235 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25236 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25237 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25238 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25239 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25240 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25241 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25242 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25243 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25244 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25245 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25246 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25247 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25248 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25249 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25250 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25251 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25252 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25253
25254 LTCC='$LTCC'
25255 LTCFLAGS='$LTCFLAGS'
25256 compiler='$compiler_DEFAULT'
25257
25258 # A function that is used when there is no print builtin or printf.
25259 func_fallback_echo ()
25260 {
25261 eval 'cat <<_LTECHO_EOF
25262 \$1
25263 _LTECHO_EOF'
25264 }
25265
25266 # Quote evaled strings.
25267 for var in SHELL \
25268 ECHO \
25269 PATH_SEPARATOR \
25270 SED \
25271 GREP \
25272 EGREP \
25273 FGREP \
25274 LD \
25275 NM \
25276 LN_S \
25277 lt_SP2NL \
25278 lt_NL2SP \
25279 reload_flag \
25280 OBJDUMP \
25281 deplibs_check_method \
25282 file_magic_cmd \
25283 file_magic_glob \
25284 want_nocaseglob \
25285 DLLTOOL \
25286 sharedlib_from_linklib_cmd \
25287 AR \
25288 AR_FLAGS \
25289 archiver_list_spec \
25290 STRIP \
25291 RANLIB \
25292 CC \
25293 CFLAGS \
25294 compiler \
25295 lt_cv_sys_global_symbol_pipe \
25296 lt_cv_sys_global_symbol_to_cdecl \
25297 lt_cv_sys_global_symbol_to_import \
25298 lt_cv_sys_global_symbol_to_c_name_address \
25299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25300 lt_cv_nm_interface \
25301 nm_file_list_spec \
25302 lt_cv_truncate_bin \
25303 lt_prog_compiler_no_builtin_flag \
25304 lt_prog_compiler_pic \
25305 lt_prog_compiler_wl \
25306 lt_prog_compiler_static \
25307 lt_cv_prog_compiler_c_o \
25308 need_locks \
25309 MANIFEST_TOOL \
25310 DSYMUTIL \
25311 NMEDIT \
25312 LIPO \
25313 OTOOL \
25314 OTOOL64 \
25315 shrext_cmds \
25316 export_dynamic_flag_spec \
25317 whole_archive_flag_spec \
25318 compiler_needs_object \
25319 with_gnu_ld \
25320 allow_undefined_flag \
25321 no_undefined_flag \
25322 hardcode_libdir_flag_spec \
25323 hardcode_libdir_separator \
25324 exclude_expsyms \
25325 include_expsyms \
25326 file_list_spec \
25327 variables_saved_for_relink \
25328 libname_spec \
25329 library_names_spec \
25330 soname_spec \
25331 install_override_mode \
25332 finish_eval \
25333 old_striplib \
25334 striplib; do
25335 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25336 *[\\\\\\\`\\"\\\$]*)
25337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25338 ;;
25339 *)
25340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25341 ;;
25342 esac
25343 done
25344
25345 # Double-quote double-evaled strings.
25346 for var in reload_cmds \
25347 old_postinstall_cmds \
25348 old_postuninstall_cmds \
25349 old_archive_cmds \
25350 extract_expsyms_cmds \
25351 old_archive_from_new_cmds \
25352 old_archive_from_expsyms_cmds \
25353 archive_cmds \
25354 archive_expsym_cmds \
25355 module_cmds \
25356 module_expsym_cmds \
25357 export_symbols_cmds \
25358 prelink_cmds \
25359 postlink_cmds \
25360 postinstall_cmds \
25361 postuninstall_cmds \
25362 finish_cmds \
25363 sys_lib_search_path_spec \
25364 configure_time_dlsearch_path \
25365 configure_time_lt_sys_library_path; do
25366 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25367 *[\\\\\\\`\\"\\\$]*)
25368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25369 ;;
25370 *)
25371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25372 ;;
25373 esac
25374 done
25375
25376 ac_aux_dir='$ac_aux_dir'
25377
25378 # See if we are running on zsh, and set the options that allow our
25379 # commands through without removal of \ escapes INIT.
25380 if test -n "\${ZSH_VERSION+set}"; then
25381 setopt NO_GLOB_SUBST
25382 fi
25383
25384
25385 PACKAGE='$PACKAGE'
25386 VERSION='$VERSION'
25387 RM='$RM'
25388 ofile='$ofile'
25389
25390
25391
25392 atfdir=`pwd`/unit/atf
25393
25394 _ACEOF
25395
25396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25397
25398 # Handling of arguments.
25399 for ac_config_target in $ac_config_targets
25400 do
25401 case $ac_config_target in
25402 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25403 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25404 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
25405 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
25406 "atf-config") CONFIG_COMMANDS="$CONFIG_COMMANDS atf-config" ;;
25407 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
25408 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
25409 "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
25410 "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
25411 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
25412 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
25413 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
25414 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25415 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
25416 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
25417 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
25418 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
25419 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
25420 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
25421 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
25422 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
25423 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
25424 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
25425 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
25426 "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
25427 "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
25428 "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
25429 "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
25430 "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
25431 "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
25432 "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
25433 "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
25434 "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
25435 "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
25436 "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
25437 "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
25438 "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
25439 "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
25440 "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
25441 "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
25442 "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
25443 "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
25444 "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
25445 "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
25446 "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
25447 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
25448 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
25449 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
25450 "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
25451 "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
25452 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
25453 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
25454 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
25455 "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
25456 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
25457 "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
25458 "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
25459 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
25460 "bin/tests/system/inline/checkdsa.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/inline/checkdsa.sh" ;;
25461 "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
25462 "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
25463 "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
25464 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
25465 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
25466 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
25467 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
25468 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
25469 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
25470 "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
25471 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25472 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
25473 "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
25474 "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
25475 "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
25476 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
25477 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
25478 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
25479 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25480 "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
25481 "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
25482 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
25483 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
25484 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
25485 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
25486 "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
25487 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
25488 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25489 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
25490 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
25491 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
25492 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
25493 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
25494 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
25495 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
25496 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
25497 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
25498 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
25499 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
25500 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
25501 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
25502 "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
25503 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
25504 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
25505 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
25506 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
25507 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
25508 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
25509 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
25510 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
25511 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
25512 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
25513 "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
25514 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
25515 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
25516 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
25517 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
25518 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
25519 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
25520 "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
25521 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
25522 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
25523 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
25524 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
25525 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
25526 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
25527 "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
25528 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
25529 "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
25530 "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
25531 "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
25532 "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
25533 "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
25534 "unit/Makefile") CONFIG_FILES="$CONFIG_FILES unit/Makefile" ;;
25535 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
25536
25537 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25538 esac
25539 done
25540
25541
25542 # If the user did not use the arguments to specify the items to instantiate,
25543 # then the envvar interface is used. Set only those that are not.
25544 # We use the long form for the default assignment because of an extremely
25545 # bizarre bug on SunOS 4.1.3.
25546 if $ac_need_defaults; then
25547 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25548 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25550 fi
25551
25552 # Have a temporary directory for convenience. Make it in the build tree
25553 # simply because there is no reason against having it here, and in addition,
25554 # creating and moving files from /tmp can sometimes cause problems.
25555 # Hook for its removal unless debugging.
25556 # Note that there is a small window in which the directory will not be cleaned:
25557 # after its creation but before its name has been assigned to `$tmp'.
25558 $debug ||
25559 {
25560 tmp= ac_tmp=
25561 trap 'exit_status=$?
25562 : "${ac_tmp:=$tmp}"
25563 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25564 ' 0
25565 trap 'as_fn_exit 1' 1 2 13 15
25566 }
25567 # Create a (secure) tmp directory for tmp files.
25568
25569 {
25570 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25571 test -d "$tmp"
25572 } ||
25573 {
25574 tmp=./conf$$-$RANDOM
25575 (umask 077 && mkdir "$tmp")
25576 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25577 ac_tmp=$tmp
25578
25579 # Set up the scripts for CONFIG_FILES section.
25580 # No need to generate them if there are no CONFIG_FILES.
25581 # This happens for instance with `./config.status config.h'.
25582 if test -n "$CONFIG_FILES"; then
25583
25584 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25585 ac_cs_awk_getline=:
25586 ac_cs_awk_pipe_init=
25587 ac_cs_awk_read_file='
25588 while ((getline aline < (F[key])) > 0)
25589 print(aline)
25590 close(F[key])'
25591 ac_cs_awk_pipe_fini=
25592 else
25593 ac_cs_awk_getline=false
25594 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25595 ac_cs_awk_read_file='
25596 print "|#_!!_#|"
25597 print "cat " F[key] " &&"
25598 '$ac_cs_awk_pipe_init
25599 # The final `:' finishes the AND list.
25600 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25601 fi
25602 ac_cr=`echo X | tr X '\015'`
25603 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25604 # But we know of no other shell where ac_cr would be empty at this
25605 # point, so we can use a bashism as a fallback.
25606 if test "x$ac_cr" = x; then
25607 eval ac_cr=\$\'\\r\'
25608 fi
25609 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25610 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25611 ac_cs_awk_cr='\\r'
25612 else
25613 ac_cs_awk_cr=$ac_cr
25614 fi
25615
25616 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25617 _ACEOF
25618
25619 # Create commands to substitute file output variables.
25620 {
25621 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25622 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
25623 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25624 echo "_ACAWK" &&
25625 echo "_ACEOF"
25626 } >conf$$files.sh &&
25627 . ./conf$$files.sh ||
25628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25629 rm -f conf$$files.sh
25630
25631 {
25632 echo "cat >conf$$subs.awk <<_ACEOF" &&
25633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25634 echo "_ACEOF"
25635 } >conf$$subs.sh ||
25636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25638 ac_delim='%!_!# '
25639 for ac_last_try in false false false false false :; do
25640 . ./conf$$subs.sh ||
25641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25642
25643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25644 if test $ac_delim_n = $ac_delim_num; then
25645 break
25646 elif $ac_last_try; then
25647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25648 else
25649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25650 fi
25651 done
25652 rm -f conf$$subs.sh
25653
25654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25655 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25656 _ACEOF
25657 sed -n '
25658 h
25659 s/^/S["/; s/!.*/"]=/
25660 p
25661 g
25662 s/^[^!]*!//
25663 :repl
25664 t repl
25665 s/'"$ac_delim"'$//
25666 t delim
25667 :nl
25668 h
25669 s/\(.\{148\}\)..*/\1/
25670 t more1
25671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25672 p
25673 n
25674 b repl
25675 :more1
25676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25677 p
25678 g
25679 s/.\{148\}//
25680 t nl
25681 :delim
25682 h
25683 s/\(.\{148\}\)..*/\1/
25684 t more2
25685 s/["\\]/\\&/g; s/^/"/; s/$/"/
25686 p
25687 b
25688 :more2
25689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25690 p
25691 g
25692 s/.\{148\}//
25693 t delim
25694 ' <conf$$subs.awk | sed '
25695 /^[^""]/{
25696 N
25697 s/\n//
25698 }
25699 ' >>$CONFIG_STATUS || ac_write_fail=1
25700 rm -f conf$$subs.awk
25701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25702 _ACAWK
25703 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25704 for (key in S) S_is_set[key] = 1
25705 FS = ""
25706 \$ac_cs_awk_pipe_init
25707 }
25708 {
25709 line = $ 0
25710 nfields = split(line, field, "@")
25711 substed = 0
25712 len = length(field[1])
25713 for (i = 2; i < nfields; i++) {
25714 key = field[i]
25715 keylen = length(key)
25716 if (S_is_set[key]) {
25717 value = S[key]
25718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25719 len += length(value) + length(field[++i])
25720 substed = 1
25721 } else
25722 len += 1 + keylen
25723 }
25724 if (nfields == 3 && !substed) {
25725 key = field[2]
25726 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25727 \$ac_cs_awk_read_file
25728 next
25729 }
25730 }
25731 print line
25732 }
25733 \$ac_cs_awk_pipe_fini
25734 _ACAWK
25735 _ACEOF
25736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25739 else
25740 cat
25741 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25742 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25743 _ACEOF
25744
25745 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25746 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25747 # trailing colons and then remove the whole line if VPATH becomes empty
25748 # (actually we leave an empty line to preserve line numbers).
25749 if test "x$srcdir" = x.; then
25750 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25751 h
25752 s///
25753 s/^/:/
25754 s/[ ]*$/:/
25755 s/:\$(srcdir):/:/g
25756 s/:\${srcdir}:/:/g
25757 s/:@srcdir@:/:/g
25758 s/^:*//
25759 s/:*$//
25760 x
25761 s/\(=[ ]*\).*/\1/
25762 G
25763 s/\n//
25764 s/^[^=]*=[ ]*$//
25765 }'
25766 fi
25767
25768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25769 fi # test -n "$CONFIG_FILES"
25770
25771 # Set up the scripts for CONFIG_HEADERS section.
25772 # No need to generate them if there are no CONFIG_HEADERS.
25773 # This happens for instance with `./config.status Makefile'.
25774 if test -n "$CONFIG_HEADERS"; then
25775 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25776 BEGIN {
25777 _ACEOF
25778
25779 # Transform confdefs.h into an awk script `defines.awk', embedded as
25780 # here-document in config.status, that substitutes the proper values into
25781 # config.h.in to produce config.h.
25782
25783 # Create a delimiter string that does not exist in confdefs.h, to ease
25784 # handling of long lines.
25785 ac_delim='%!_!# '
25786 for ac_last_try in false false :; do
25787 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25788 if test -z "$ac_tt"; then
25789 break
25790 elif $ac_last_try; then
25791 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25792 else
25793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25794 fi
25795 done
25796
25797 # For the awk script, D is an array of macro values keyed by name,
25798 # likewise P contains macro parameters if any. Preserve backslash
25799 # newline sequences.
25800
25801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25802 sed -n '
25803 s/.\{148\}/&'"$ac_delim"'/g
25804 t rset
25805 :rset
25806 s/^[ ]*#[ ]*define[ ][ ]*/ /
25807 t def
25808 d
25809 :def
25810 s/\\$//
25811 t bsnl
25812 s/["\\]/\\&/g
25813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25814 D["\1"]=" \3"/p
25815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25816 d
25817 :bsnl
25818 s/["\\]/\\&/g
25819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25820 D["\1"]=" \3\\\\\\n"\\/p
25821 t cont
25822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25823 t cont
25824 d
25825 :cont
25826 n
25827 s/.\{148\}/&'"$ac_delim"'/g
25828 t clear
25829 :clear
25830 s/\\$//
25831 t bsnlc
25832 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25833 d
25834 :bsnlc
25835 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25836 b cont
25837 ' <confdefs.h | sed '
25838 s/'"$ac_delim"'/"\\\
25839 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25840
25841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25842 for (key in D) D_is_set[key] = 1
25843 FS = ""
25844 }
25845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25846 line = \$ 0
25847 split(line, arg, " ")
25848 if (arg[1] == "#") {
25849 defundef = arg[2]
25850 mac1 = arg[3]
25851 } else {
25852 defundef = substr(arg[1], 2)
25853 mac1 = arg[2]
25854 }
25855 split(mac1, mac2, "(") #)
25856 macro = mac2[1]
25857 prefix = substr(line, 1, index(line, defundef) - 1)
25858 if (D_is_set[macro]) {
25859 # Preserve the white space surrounding the "#".
25860 print prefix "define", macro P[macro] D[macro]
25861 next
25862 } else {
25863 # Replace #undef with comments. This is necessary, for example,
25864 # in the case of _POSIX_SOURCE, which is predefined and required
25865 # on some systems where configure will not decide to define it.
25866 if (defundef == "undef") {
25867 print "/*", prefix defundef, macro, "*/"
25868 next
25869 }
25870 }
25871 }
25872 { print }
25873 _ACAWK
25874 _ACEOF
25875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25876 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25877 fi # test -n "$CONFIG_HEADERS"
25878
25879
25880 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25881 shift
25882 for ac_tag
25883 do
25884 case $ac_tag in
25885 :[FHLC]) ac_mode=$ac_tag; continue;;
25886 esac
25887 case $ac_mode$ac_tag in
25888 :[FHL]*:*);;
25889 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25890 :[FH]-) ac_tag=-:-;;
25891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25892 esac
25893 ac_save_IFS=$IFS
25894 IFS=:
25895 set x $ac_tag
25896 IFS=$ac_save_IFS
25897 shift
25898 ac_file=$1
25899 shift
25900
25901 case $ac_mode in
25902 :L) ac_source=$1;;
25903 :[FH])
25904 ac_file_inputs=
25905 for ac_f
25906 do
25907 case $ac_f in
25908 -) ac_f="$ac_tmp/stdin";;
25909 *) # Look for the file first in the build tree, then in the source tree
25910 # (if the path is not absolute). The absolute path cannot be DOS-style,
25911 # because $ac_f cannot contain `:'.
25912 test -f "$ac_f" ||
25913 case $ac_f in
25914 [\\/$]*) false;;
25915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25916 esac ||
25917 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25918 esac
25919 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25920 as_fn_append ac_file_inputs " '$ac_f'"
25921 done
25922
25923 # Let's still pretend it is `configure' which instantiates (i.e., don't
25924 # use $as_me), people would be surprised to read:
25925 # /* config.h. Generated by config.status. */
25926 configure_input='Generated from '`
25927 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25928 `' by configure.'
25929 if test x"$ac_file" != x-; then
25930 configure_input="$ac_file. $configure_input"
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25932 $as_echo "$as_me: creating $ac_file" >&6;}
25933 fi
25934 # Neutralize special characters interpreted by sed in replacement strings.
25935 case $configure_input in #(
25936 *\&* | *\|* | *\\* )
25937 ac_sed_conf_input=`$as_echo "$configure_input" |
25938 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25939 *) ac_sed_conf_input=$configure_input;;
25940 esac
25941
25942 case $ac_tag in
25943 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25945 esac
25946 ;;
25947 esac
25948
25949 ac_dir=`$as_dirname -- "$ac_file" ||
25950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25951 X"$ac_file" : 'X\(//\)[^/]' \| \
25952 X"$ac_file" : 'X\(//\)$' \| \
25953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25954 $as_echo X"$ac_file" |
25955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25956 s//\1/
25957 q
25958 }
25959 /^X\(\/\/\)[^/].*/{
25960 s//\1/
25961 q
25962 }
25963 /^X\(\/\/\)$/{
25964 s//\1/
25965 q
25966 }
25967 /^X\(\/\).*/{
25968 s//\1/
25969 q
25970 }
25971 s/.*/./; q'`
25972 as_dir="$ac_dir"; as_fn_mkdir_p
25973 ac_builddir=.
25974
25975 case "$ac_dir" in
25976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25977 *)
25978 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25979 # A ".." for each directory in $ac_dir_suffix.
25980 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25981 case $ac_top_builddir_sub in
25982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25984 esac ;;
25985 esac
25986 ac_abs_top_builddir=$ac_pwd
25987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25988 # for backward compatibility:
25989 ac_top_builddir=$ac_top_build_prefix
25990
25991 case $srcdir in
25992 .) # We are building in place.
25993 ac_srcdir=.
25994 ac_top_srcdir=$ac_top_builddir_sub
25995 ac_abs_top_srcdir=$ac_pwd ;;
25996 [\\/]* | ?:[\\/]* ) # Absolute name.
25997 ac_srcdir=$srcdir$ac_dir_suffix;
25998 ac_top_srcdir=$srcdir
25999 ac_abs_top_srcdir=$srcdir ;;
26000 *) # Relative name.
26001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26002 ac_top_srcdir=$ac_top_build_prefix$srcdir
26003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26004 esac
26005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26006
26007
26008 case $ac_mode in
26009 :F)
26010 #
26011 # CONFIG_FILE
26012 #
26013
26014 case $INSTALL in
26015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26017 esac
26018 _ACEOF
26019
26020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26021 # If the template does not know about datarootdir, expand it.
26022 # FIXME: This hack should be removed a few years after 2.60.
26023 ac_datarootdir_hack=; ac_datarootdir_seen=
26024 ac_sed_dataroot='
26025 /datarootdir/ {
26026 p
26027 q
26028 }
26029 /@datadir@/p
26030 /@docdir@/p
26031 /@infodir@/p
26032 /@localedir@/p
26033 /@mandir@/p'
26034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26035 *datarootdir*) ac_datarootdir_seen=yes;;
26036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26039 _ACEOF
26040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26041 ac_datarootdir_hack='
26042 s&@datadir@&$datadir&g
26043 s&@docdir@&$docdir&g
26044 s&@infodir@&$infodir&g
26045 s&@localedir@&$localedir&g
26046 s&@mandir@&$mandir&g
26047 s&\\\${datarootdir}&$datarootdir&g' ;;
26048 esac
26049 _ACEOF
26050
26051 # Neutralize VPATH when `$srcdir' = `.'.
26052 # Shell code in configure.ac might set extrasub.
26053 # FIXME: do we really want to maintain this feature?
26054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26055 ac_sed_extra="$ac_vpsub
26056 $extrasub
26057 _ACEOF
26058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26059 :t
26060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26061 s|@configure_input@|$ac_sed_conf_input|;t t
26062 s&@top_builddir@&$ac_top_builddir_sub&;t t
26063 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26064 s&@srcdir@&$ac_srcdir&;t t
26065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26066 s&@top_srcdir@&$ac_top_srcdir&;t t
26067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26068 s&@builddir@&$ac_builddir&;t t
26069 s&@abs_builddir@&$ac_abs_builddir&;t t
26070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26071 s&@INSTALL@&$ac_INSTALL&;t t
26072 $ac_datarootdir_hack
26073 "
26074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26075 if $ac_cs_awk_getline; then
26076 $AWK -f "$ac_tmp/subs.awk"
26077 else
26078 $AWK -f "$ac_tmp/subs.awk" | $SHELL
26079 fi \
26080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26081
26082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26087 which seems to be undefined. Please make sure it is defined" >&5
26088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26089 which seems to be undefined. Please make sure it is defined" >&2;}
26090
26091 rm -f "$ac_tmp/stdin"
26092 case $ac_file in
26093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26095 esac \
26096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26097 ;;
26098 :H)
26099 #
26100 # CONFIG_HEADER
26101 #
26102 if test x"$ac_file" != x-; then
26103 {
26104 $as_echo "/* $configure_input */" \
26105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26106 } >"$ac_tmp/config.h" \
26107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26111 else
26112 rm -f "$ac_file"
26113 mv "$ac_tmp/config.h" "$ac_file" \
26114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26115 fi
26116 else
26117 $as_echo "/* $configure_input */" \
26118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26119 || as_fn_error $? "could not create -" "$LINENO" 5
26120 fi
26121 ;;
26122
26123 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26124 $as_echo "$as_me: executing $ac_file commands" >&6;}
26125 ;;
26126 esac
26127
26128
26129 case $ac_file$ac_mode in
26130 "libtool":C)
26131
26132 # See if we are running on zsh, and set the options that allow our
26133 # commands through without removal of \ escapes.
26134 if test -n "${ZSH_VERSION+set}"; then
26135 setopt NO_GLOB_SUBST
26136 fi
26137
26138 cfgfile=${ofile}T
26139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26140 $RM "$cfgfile"
26141
26142 cat <<_LT_EOF >> "$cfgfile"
26143 #! $SHELL
26144 # Generated automatically by $as_me ($PACKAGE) $VERSION
26145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26147
26148 # Provide generalized library-building support services.
26149 # Written by Gordon Matzigkeit, 1996
26150
26151 # Copyright (C) 2014 Free Software Foundation, Inc.
26152 # This is free software; see the source for copying conditions. There is NO
26153 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26154
26155 # GNU Libtool is free software; you can redistribute it and/or modify
26156 # it under the terms of the GNU General Public License as published by
26157 # the Free Software Foundation; either version 2 of of the License, or
26158 # (at your option) any later version.
26159 #
26160 # As a special exception to the GNU General Public License, if you
26161 # distribute this file as part of a program or library that is built
26162 # using GNU Libtool, you may include this file under the same
26163 # distribution terms that you use for the rest of that program.
26164 #
26165 # GNU Libtool is distributed in the hope that it will be useful, but
26166 # WITHOUT ANY WARRANTY; without even the implied warranty of
26167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26168 # GNU General Public License for more details.
26169 #
26170 # You should have received a copy of the GNU General Public License
26171 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26172
26173
26174 # The names of the tagged configurations supported by this script.
26175 available_tags=''
26176
26177 # Configured defaults for sys_lib_dlsearch_path munging.
26178 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26179
26180 # ### BEGIN LIBTOOL CONFIG
26181
26182 # Which release of libtool.m4 was used?
26183 macro_version=$macro_version
26184 macro_revision=$macro_revision
26185
26186 # Whether or not to build shared libraries.
26187 build_libtool_libs=$enable_shared
26188
26189 # Whether or not to build static libraries.
26190 build_old_libs=$enable_static
26191
26192 # What type of objects to build.
26193 pic_mode=$pic_mode
26194
26195 # Whether or not to optimize for fast installation.
26196 fast_install=$enable_fast_install
26197
26198 # Shared archive member basename,for filename based shared library versioning on AIX.
26199 shared_archive_member_spec=$shared_archive_member_spec
26200
26201 # Shell to use when invoking shell scripts.
26202 SHELL=$lt_SHELL
26203
26204 # An echo program that protects backslashes.
26205 ECHO=$lt_ECHO
26206
26207 # The PATH separator for the build system.
26208 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26209
26210 # The host system.
26211 host_alias=$host_alias
26212 host=$host
26213 host_os=$host_os
26214
26215 # The build system.
26216 build_alias=$build_alias
26217 build=$build
26218 build_os=$build_os
26219
26220 # A sed program that does not truncate output.
26221 SED=$lt_SED
26222
26223 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26224 Xsed="\$SED -e 1s/^X//"
26225
26226 # A grep program that handles long lines.
26227 GREP=$lt_GREP
26228
26229 # An ERE matcher.
26230 EGREP=$lt_EGREP
26231
26232 # A literal string matcher.
26233 FGREP=$lt_FGREP
26234
26235 # A BSD- or MS-compatible name lister.
26236 NM=$lt_NM
26237
26238 # Whether we need soft or hard links.
26239 LN_S=$lt_LN_S
26240
26241 # What is the maximum length of a command?
26242 max_cmd_len=$max_cmd_len
26243
26244 # Object file suffix (normally "o").
26245 objext=$ac_objext
26246
26247 # Executable file suffix (normally "").
26248 exeext=$exeext
26249
26250 # whether the shell understands "unset".
26251 lt_unset=$lt_unset
26252
26253 # turn spaces into newlines.
26254 SP2NL=$lt_lt_SP2NL
26255
26256 # turn newlines into spaces.
26257 NL2SP=$lt_lt_NL2SP
26258
26259 # convert \$build file names to \$host format.
26260 to_host_file_cmd=$lt_cv_to_host_file_cmd
26261
26262 # convert \$build files to toolchain format.
26263 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26264
26265 # An object symbol dumper.
26266 OBJDUMP=$lt_OBJDUMP
26267
26268 # Method to check whether dependent libraries are shared objects.
26269 deplibs_check_method=$lt_deplibs_check_method
26270
26271 # Command to use when deplibs_check_method = "file_magic".
26272 file_magic_cmd=$lt_file_magic_cmd
26273
26274 # How to find potential files when deplibs_check_method = "file_magic".
26275 file_magic_glob=$lt_file_magic_glob
26276
26277 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26278 want_nocaseglob=$lt_want_nocaseglob
26279
26280 # DLL creation program.
26281 DLLTOOL=$lt_DLLTOOL
26282
26283 # Command to associate shared and link libraries.
26284 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26285
26286 # The archiver.
26287 AR=$lt_AR
26288
26289 # Flags to create an archive.
26290 AR_FLAGS=$lt_AR_FLAGS
26291
26292 # How to feed a file listing to the archiver.
26293 archiver_list_spec=$lt_archiver_list_spec
26294
26295 # A symbol stripping program.
26296 STRIP=$lt_STRIP
26297
26298 # Commands used to install an old-style archive.
26299 RANLIB=$lt_RANLIB
26300 old_postinstall_cmds=$lt_old_postinstall_cmds
26301 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26302
26303 # Whether to use a lock for old archive extraction.
26304 lock_old_archive_extraction=$lock_old_archive_extraction
26305
26306 # A C compiler.
26307 LTCC=$lt_CC
26308
26309 # LTCC compiler flags.
26310 LTCFLAGS=$lt_CFLAGS
26311
26312 # Take the output of nm and produce a listing of raw symbols and C names.
26313 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26314
26315 # Transform the output of nm in a proper C declaration.
26316 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26317
26318 # Transform the output of nm into a list of symbols to manually relocate.
26319 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26320
26321 # Transform the output of nm in a C name address pair.
26322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26323
26324 # Transform the output of nm in a C name address pair when lib prefix is needed.
26325 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26326
26327 # The name lister interface.
26328 nm_interface=$lt_lt_cv_nm_interface
26329
26330 # Specify filename containing input files for \$NM.
26331 nm_file_list_spec=$lt_nm_file_list_spec
26332
26333 # The root where to search for dependent libraries,and where our libraries should be installed.
26334 lt_sysroot=$lt_sysroot
26335
26336 # Command to truncate a binary pipe.
26337 lt_truncate_bin=$lt_lt_cv_truncate_bin
26338
26339 # The name of the directory that contains temporary libtool files.
26340 objdir=$objdir
26341
26342 # Used to examine libraries when file_magic_cmd begins with "file".
26343 MAGIC_CMD=$MAGIC_CMD
26344
26345 # Must we lock files when doing compilation?
26346 need_locks=$lt_need_locks
26347
26348 # Manifest tool.
26349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26350
26351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26352 DSYMUTIL=$lt_DSYMUTIL
26353
26354 # Tool to change global to local symbols on Mac OS X.
26355 NMEDIT=$lt_NMEDIT
26356
26357 # Tool to manipulate fat objects and archives on Mac OS X.
26358 LIPO=$lt_LIPO
26359
26360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26361 OTOOL=$lt_OTOOL
26362
26363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26364 OTOOL64=$lt_OTOOL64
26365
26366 # Old archive suffix (normally "a").
26367 libext=$libext
26368
26369 # Shared library suffix (normally ".so").
26370 shrext_cmds=$lt_shrext_cmds
26371
26372 # The commands to extract the exported symbol list from a shared archive.
26373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26374
26375 # Variables whose values should be saved in libtool wrapper scripts and
26376 # restored at link time.
26377 variables_saved_for_relink=$lt_variables_saved_for_relink
26378
26379 # Do we need the "lib" prefix for modules?
26380 need_lib_prefix=$need_lib_prefix
26381
26382 # Do we need a version for libraries?
26383 need_version=$need_version
26384
26385 # Library versioning type.
26386 version_type=$version_type
26387
26388 # Shared library runtime path variable.
26389 runpath_var=$runpath_var
26390
26391 # Shared library path variable.
26392 shlibpath_var=$shlibpath_var
26393
26394 # Is shlibpath searched before the hard-coded library search path?
26395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26396
26397 # Format of library name prefix.
26398 libname_spec=$lt_libname_spec
26399
26400 # List of archive names. First name is the real one, the rest are links.
26401 # The last name is the one that the linker finds with -lNAME
26402 library_names_spec=$lt_library_names_spec
26403
26404 # The coded name of the library, if different from the real name.
26405 soname_spec=$lt_soname_spec
26406
26407 # Permission mode override for installation of shared libraries.
26408 install_override_mode=$lt_install_override_mode
26409
26410 # Command to use after installation of a shared archive.
26411 postinstall_cmds=$lt_postinstall_cmds
26412
26413 # Command to use after uninstallation of a shared archive.
26414 postuninstall_cmds=$lt_postuninstall_cmds
26415
26416 # Commands used to finish a libtool library installation in a directory.
26417 finish_cmds=$lt_finish_cmds
26418
26419 # As "finish_cmds", except a single script fragment to be evaled but
26420 # not shown.
26421 finish_eval=$lt_finish_eval
26422
26423 # Whether we should hardcode library paths into libraries.
26424 hardcode_into_libs=$hardcode_into_libs
26425
26426 # Compile-time system search path for libraries.
26427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26428
26429 # Detected run-time system search path for libraries.
26430 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26431
26432 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26433 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26434
26435 # Whether dlopen is supported.
26436 dlopen_support=$enable_dlopen
26437
26438 # Whether dlopen of programs is supported.
26439 dlopen_self=$enable_dlopen_self
26440
26441 # Whether dlopen of statically linked programs is supported.
26442 dlopen_self_static=$enable_dlopen_self_static
26443
26444 # Commands to strip libraries.
26445 old_striplib=$lt_old_striplib
26446 striplib=$lt_striplib
26447
26448
26449 # The linker used to build libraries.
26450 LD=$lt_LD
26451
26452 # How to create reloadable object files.
26453 reload_flag=$lt_reload_flag
26454 reload_cmds=$lt_reload_cmds
26455
26456 # Commands used to build an old-style archive.
26457 old_archive_cmds=$lt_old_archive_cmds
26458
26459 # A language specific compiler.
26460 CC=$lt_compiler
26461
26462 # Is the compiler the GNU compiler?
26463 with_gcc=$GCC
26464
26465 # Compiler flag to turn off builtin functions.
26466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26467
26468 # Additional compiler flags for building library objects.
26469 pic_flag=$lt_lt_prog_compiler_pic
26470
26471 # How to pass a linker flag through the compiler.
26472 wl=$lt_lt_prog_compiler_wl
26473
26474 # Compiler flag to prevent dynamic linking.
26475 link_static_flag=$lt_lt_prog_compiler_static
26476
26477 # Does compiler simultaneously support -c and -o options?
26478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26479
26480 # Whether or not to add -lc for building shared libraries.
26481 build_libtool_need_lc=$archive_cmds_need_lc
26482
26483 # Whether or not to disallow shared libs when runtime libs are static.
26484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26485
26486 # Compiler flag to allow reflexive dlopens.
26487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26488
26489 # Compiler flag to generate shared objects directly from archives.
26490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26491
26492 # Whether the compiler copes with passing no objects directly.
26493 compiler_needs_object=$lt_compiler_needs_object
26494
26495 # Create an old-style archive from a shared archive.
26496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26497
26498 # Create a temporary old-style archive to link instead of a shared archive.
26499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26500
26501 # Commands used to build a shared archive.
26502 archive_cmds=$lt_archive_cmds
26503 archive_expsym_cmds=$lt_archive_expsym_cmds
26504
26505 # Commands used to build a loadable module if different from building
26506 # a shared archive.
26507 module_cmds=$lt_module_cmds
26508 module_expsym_cmds=$lt_module_expsym_cmds
26509
26510 # Whether we are building with GNU ld or not.
26511 with_gnu_ld=$lt_with_gnu_ld
26512
26513 # Flag that allows shared libraries with undefined symbols to be built.
26514 allow_undefined_flag=$lt_allow_undefined_flag
26515
26516 # Flag that enforces no undefined symbols.
26517 no_undefined_flag=$lt_no_undefined_flag
26518
26519 # Flag to hardcode \$libdir into a binary during linking.
26520 # This must work even if \$libdir does not exist
26521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26522
26523 # Whether we need a single "-rpath" flag with a separated argument.
26524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26525
26526 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26527 # DIR into the resulting binary.
26528 hardcode_direct=$hardcode_direct
26529
26530 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26531 # DIR into the resulting binary and the resulting library dependency is
26532 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26533 # library is relocated.
26534 hardcode_direct_absolute=$hardcode_direct_absolute
26535
26536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26537 # into the resulting binary.
26538 hardcode_minus_L=$hardcode_minus_L
26539
26540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26541 # into the resulting binary.
26542 hardcode_shlibpath_var=$hardcode_shlibpath_var
26543
26544 # Set to "yes" if building a shared library automatically hardcodes DIR
26545 # into the library and all subsequent libraries and executables linked
26546 # against it.
26547 hardcode_automatic=$hardcode_automatic
26548
26549 # Set to yes if linker adds runtime paths of dependent libraries
26550 # to runtime path list.
26551 inherit_rpath=$inherit_rpath
26552
26553 # Whether libtool must link a program against all its dependency libraries.
26554 link_all_deplibs=$link_all_deplibs
26555
26556 # Set to "yes" if exported symbols are required.
26557 always_export_symbols=$always_export_symbols
26558
26559 # The commands to list exported symbols.
26560 export_symbols_cmds=$lt_export_symbols_cmds
26561
26562 # Symbols that should not be listed in the preloaded symbols.
26563 exclude_expsyms=$lt_exclude_expsyms
26564
26565 # Symbols that must always be exported.
26566 include_expsyms=$lt_include_expsyms
26567
26568 # Commands necessary for linking programs (against libraries) with templates.
26569 prelink_cmds=$lt_prelink_cmds
26570
26571 # Commands necessary for finishing linking programs.
26572 postlink_cmds=$lt_postlink_cmds
26573
26574 # Specify filename containing input files.
26575 file_list_spec=$lt_file_list_spec
26576
26577 # How to hardcode a shared library path into an executable.
26578 hardcode_action=$hardcode_action
26579
26580 # ### END LIBTOOL CONFIG
26581
26582 _LT_EOF
26583
26584 cat <<'_LT_EOF' >> "$cfgfile"
26585
26586 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26587
26588 # func_munge_path_list VARIABLE PATH
26589 # -----------------------------------
26590 # VARIABLE is name of variable containing _space_ separated list of
26591 # directories to be munged by the contents of PATH, which is string
26592 # having a format:
26593 # "DIR[:DIR]:"
26594 # string "DIR[ DIR]" will be prepended to VARIABLE
26595 # ":DIR[:DIR]"
26596 # string "DIR[ DIR]" will be appended to VARIABLE
26597 # "DIRP[:DIRP]::[DIRA:]DIRA"
26598 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26599 # "DIRA[ DIRA]" will be appended to VARIABLE
26600 # "DIR[:DIR]"
26601 # VARIABLE will be replaced by "DIR[ DIR]"
26602 func_munge_path_list ()
26603 {
26604 case x$2 in
26605 x)
26606 ;;
26607 *:)
26608 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26609 ;;
26610 x:*)
26611 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26612 ;;
26613 *::*)
26614 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26615 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26616 ;;
26617 *)
26618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26619 ;;
26620 esac
26621 }
26622
26623
26624 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26625 func_cc_basename ()
26626 {
26627 for cc_temp in $*""; do
26628 case $cc_temp in
26629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26631 \-*) ;;
26632 *) break;;
26633 esac
26634 done
26635 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26636 }
26637
26638
26639 # ### END FUNCTIONS SHARED WITH CONFIGURE
26640
26641 _LT_EOF
26642
26643 case $host_os in
26644 aix3*)
26645 cat <<\_LT_EOF >> "$cfgfile"
26646 # AIX sometimes has problems with the GCC collect2 program. For some
26647 # reason, if we set the COLLECT_NAMES environment variable, the problems
26648 # vanish in a puff of smoke.
26649 if test set != "${COLLECT_NAMES+set}"; then
26650 COLLECT_NAMES=
26651 export COLLECT_NAMES
26652 fi
26653 _LT_EOF
26654 ;;
26655 esac
26656
26657
26658 ltmain=$ac_aux_dir/ltmain.sh
26659
26660
26661 # We use sed instead of cat because bash on DJGPP gets confused if
26662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26663 # text mode, it properly converts lines to CR/LF. This bash problem
26664 # is reportedly fixed, but why not run on old versions too?
26665 sed '$q' "$ltmain" >> "$cfgfile" \
26666 || (rm -f "$cfgfile"; exit 1)
26667
26668 mv -f "$cfgfile" "$ofile" ||
26669 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26670 chmod +x "$ofile"
26671
26672 ;;
26673 "atf-config":C) (
26674 mkdir -p unit/atf-src;
26675 cd unit/atf-src;
26676 case "$srcdir" in
26677 /*) ;;
26678 *) srcdir="../../$srcdir";;
26679 esac
26680 ${SHELL} "${srcdir}${srcdir:+/unit/atf-src/}./configure" --enable-tools --disable-shared MISSING=: --prefix $atfdir;
26681 ) || as_fn_error $? "Failed to configure ATF." "$LINENO" 5 ;;
26682 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
26683
26684 esac
26685 done # for ac_tag
26686
26687
26688 as_fn_exit 0
26689 _ACEOF
26690 ac_clean_files=$ac_clean_files_save
26691
26692 test $ac_write_fail = 0 ||
26693 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26694
26695
26696 # configure is writing to config.log, and then calls config.status.
26697 # config.status does its own redirection, appending to config.log.
26698 # Unfortunately, on DOS this fails, as config.log is still kept open
26699 # by configure, so config.status won't be able to write to it; its
26700 # output is simply discarded. So we exec the FD to /dev/null,
26701 # effectively closing config.log, so it can be properly (re)opened and
26702 # appended to by config.status. When coming back to configure, we
26703 # need to make the FD available again.
26704 if test "$no_create" != yes; then
26705 ac_cs_success=:
26706 ac_config_status_args=
26707 test "$silent" = yes &&
26708 ac_config_status_args="$ac_config_status_args --quiet"
26709 exec 5>/dev/null
26710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26711 exec 5>>config.log
26712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26713 # would make configure fail if this is the last instruction.
26714 $ac_cs_success || as_fn_exit 1
26715 fi
26716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26719 fi
26720
26721
26722 #
26723 # Now that the Makefiles exist we can ensure that everything is rebuilt.
26724 #
26725
26726 # Check whether --with-make-clean was given.
26727 if test "${with_make_clean+set}" = set; then :
26728 withval=$with_make_clean; make_clean="$withval"
26729 else
26730 make_clean="yes"
26731 fi
26732
26733 case "$make_clean" in
26734 yes)
26735 if test "yes" != "$no_create"
26736 then
26737 if test "yes" = "$silent"
26738 then
26739 make clean > /dev/null
26740 else
26741 make clean
26742 fi
26743 fi
26744 ;;
26745 esac
26746
26747 # Check whether --enable-full-report was given.
26748 if test "${enable_full_report+set}" = set; then :
26749 enableval=$enable_full_report;
26750 fi
26751
26752
26753 report() {
26754 echo "==============================================================================="
26755 echo "Configuration summary:"
26756 echo "-------------------------------------------------------------------------------"
26757 echo "Optional features enabled:"
26758 if $use_threads; then
26759 echo " Multiprocessing support (--enable-threads)"
26760 if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
26761 echo " Mutex lock type: $locktype"
26762 fi
26763 fi
26764 test "large" = "$use_tuning" && echo " Large-system tuning (--with-tuning)"
26765 test "no" = "$use_dnstap" || \
26766 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
26767 test "no" = "$use_geoip" || echo " GeoIP access control (--with-geoip)"
26768 test "no" = "$use_gssapi" || echo " GSS-API (--with-gssapi)"
26769 if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
26770 echo " Algorithm: $with_cc_alg"
26771 fi
26772
26773 # these lines are only printed if run with --enable-full-report
26774 if test "yes" = "$enable_full_report"; then
26775 test "no" = "$enable_ipv6" -o "no" = "$found_ipv6" || \
26776 echo " IPv6 support (--enable-ipv6)"
26777 test "X$CRYPTO" = "X" -o "yes" = "$want_native_pkcs11" || \
26778 echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
26779 test "no" = "$want_crypto_rand" || \
26780 echo " Crypto provider entropy source (--enable-crypto-rand)"
26781 test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
26782 test "X$XMLSTATS" = "X" || echo " XML statistics (--with-libxml2)"
26783 test "X$JSONSTATS" = "X" || echo " JSON statistics (--with-libjson)"
26784 test "X$ZLIB" = "X" || echo " HTTP zlib compression (--with-zlib)"
26785 test "X$NZD_TOOLS" = "X" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
26786 test "no" = "$use_libidn2" || echo " IDN support (--with-libidn2)"
26787 fi
26788
26789 if test "no" != "$use_pkcs11"; then
26790 if test "yes" = "$want_native_pkcs11"; then
26791 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
26792 else
26793 echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
26794 fi
26795 echo " Provider library: $PKCS11_PROVIDER"
26796 fi
26797 if test "yes" = "$OPENSSL_GOST" -o "yes" = "$PKCS11_GOST"; then
26798 echo " GOST algorithm support (encoding: $gosttype) (--with-gost)"
26799 fi
26800 test "yes" = "$OPENSSL_ECDSA" -o "$PKCS11_ECDSA" && \
26801 echo " ECDSA algorithm support (--with-ecdsa)"
26802 test "yes" = "$OPENSSL_ED25519" -o "$PKCS11_ED25519" && \
26803 echo " EDDSA algorithm support (--with-eddsa)"
26804 test "yes" = "$enable_dnsrps" && \
26805 echo " DNS Response Policy Service interface (--enable-dnsrps)"
26806 test "yes" = "$enable_fixed" && \
26807 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
26808 test "yes" = "$enable_seccomp" && \
26809 echo " Use libseccomp system call filtering (--enable-seccomp)"
26810 test "yes" = "$want_backtrace" && \
26811 echo " Print backtrace on crash (--enable-backtrace)"
26812 test "minimal" = "$want_symtable" && \
26813 echo " Use symbol table for backtrace, named only (--enable-symtable)"
26814 test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
26815 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)"
26816 test "no" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
26817 test "yes" = "$want_querytrace" && \
26818 echo " Very verbose query trace logging (--enable-querytrace)"
26819 test "no" = "$atf" || echo " Automated Testing Framework (--with-atf)"
26820
26821 echo " Cryptographic library for DNSSEC: $CRYPTOLIB"
26822
26823 echo " Dynamically loadable zone (DLZ) drivers:"
26824 test "no" = "$use_dlz_bdb" || \
26825 echo " Berkeley DB (--with-dlz-bdb)"
26826 test "no" = "$use_dlz_ldap" || \
26827 echo " LDAP (--with-dlz-ldap)"
26828 test "no" = "$use_dlz_mysql" || \
26829 echo " MySQL (--with-dlz-mysql)"
26830 test "no" = "$use_dlz_odbc" || \
26831 echo " ODBC (--with-dlz-odbc)"
26832 test "no" = "$use_dlz_postgres" || \
26833 echo " Postgres (--with-dlz-postgres)"
26834 test "no" = "$use_dlz_filesystem" || \
26835 echo " Filesystem (--with-dlz-filesystem)"
26836 test "no" = "$use_dlz_stub" || \
26837 echo " Stub (--with-dlz-stub)"
26838 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"
26839
26840 echo "-------------------------------------------------------------------------------"
26841
26842 echo "Features disabled or unavailable on this platform:"
26843 $use_threads || echo " Multiprocessing support (--enable-threads)"
26844 test "no" = "$enable_ipv6" -o "no" = "$found_ipv6" && \
26845 echo " IPv6 support (--enable-ipv6)"
26846 test "large" = "$use_tuning" || echo " Large-system tuning (--with-tuning)"
26847
26848 test "no" = "$use_dnstap" && \
26849 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
26850 test "no" = "$use_geoip" && echo " GeoIP access control (--with-geoip)"
26851 test "no" = "$use_gssapi" && echo " GSS-API (--with-gssapi)"
26852
26853 test "no" = "$enable_dnsrps" && \
26854 echo " DNS Response Policy Service interface (--enable-dnsrps)"
26855
26856 test "yes" = "$enable_fixed" || \
26857 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
26858
26859 if test "X$CRYPTO" = "X" -o "yes" = "$want_native_pkcs11"
26860 then
26861 echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
26862 elif test "no" = "$use_pkcs11"; then
26863 echo " PKCS#11/Cryptoki support (--with-pkcs11)"
26864 fi
26865 test "yes" = "$want_native_pkcs11" ||
26866 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
26867 test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_GOST" -o "yes" = "$PKCS11_GOST" || \
26868 echo " GOST algorithm support (--with-gost)"
26869 test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_ECDSA" -o "yes" = "$PKCS11_ECDSA" || \
26870 echo " ECDSA algorithm support (--with-ecdsa)"
26871 test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_ED25519" -o "yes" = "$PKCS11_ED25519" || \
26872 echo " EDDSA algorithm support (--with-eddsa)"
26873 test "yes" = "$want_crypto_rand" || \
26874 echo " Crypto provider entropy source (--enable-crypto-rand)"
26875
26876 test "yes" = "$enable_seccomp" || \
26877 echo " Use libseccomp system call filtering (--enable-seccomp)"
26878 test "yes" = "$want_backtrace" || \
26879 echo " Print backtrace on crash (--enable-backtrace)"
26880 test "yes" = "$want_querytrace" || \
26881 echo " Very verbose query trace logging (--enable-querytrace)"
26882
26883 test "yes" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
26884 test "no" = "$atf" && echo " Automated Testing Framework (--with-atf)"
26885
26886 test "X$PYTHON" = "X" && echo " Python tools (--with-python)"
26887 test "X$XMLSTATS" = "X" && echo " XML statistics (--with-libxml2)"
26888 test "X$JSONSTATS" = "X" && echo " JSON statistics (--with-libjson)"
26889 test "X$ZLIB" = "X" && echo " HTTP zlib compression (--with-zlib)"
26890 test "X$NZD_TOOLS" = "X" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
26891 test "no" = "$use_libidn2" && echo " IDN support (--with-libidn2)"
26892
26893 echo "-------------------------------------------------------------------------------"
26894 echo "Configured paths:"
26895 echo " prefix: $prefix"
26896 echo " sysconfdir: $sysconfdir"
26897 echo " localstatedir: $localstatedir"
26898
26899
26900 if test "X$ac_unrecognized_opts" != "X"; then
26901 echo
26902 echo "Unrecognized options:"
26903 echo " $ac_unrecognized_opts"
26904 fi
26905
26906 if test "yes" != "$enable_full_report"; then
26907 echo "-------------------------------------------------------------------------------"
26908 echo "For more detail, use --enable-full-report."
26909 fi
26910 echo "==============================================================================="
26911 }
26912
26913 if test "yes" != "$silent"; then
26914 report
26915 fi
26916
26917 if test "X$CRYPTO" = "X"; then
26918 cat << \EOF
26919 BIND 9 is being built without cryptography support. This means it will
26920 not have DNSSEC support. Use --with-openssl, or --with-pkcs11 and
26921 --enable-native-pkcs11 to enable cryptography.
26922 EOF
26923 fi
26924
26925 # Tell Emacs to edit this file in shell mode.
26926 # Local Variables:
26927 # mode: sh
26928 # End:
26929