configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for BIND 9.16.
4 #
5 # Report bugs to <info (at] isc.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and info (at] isc.org about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='BIND'
591 PACKAGE_TARNAME='bind'
592 PACKAGE_VERSION='9.16'
593 PACKAGE_STRING='BIND 9.16'
594 PACKAGE_BUGREPORT='info (at] isc.org'
595 PACKAGE_URL='https://www.isc.org/downloads/'
596
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 BUILD_LIBS
636 BUILD_LDFLAGS
637 BUILD_CPPFLAGS
638 BUILD_CFLAGS
639 BUILD_CC
640 DLZ_DRIVER_MYSQL_LIBS
641 DLZ_DRIVER_MYSQL_INCLUDES
642 DLZ_SYSTEM_TEST
643 DLZ_DRIVER_OBJS
644 DLZ_DRIVER_SRCS
645 DLZ_DRIVER_LIBS
646 DLZ_DRIVER_INCLUDES
647 CONTRIB_DLZ
648 MYSQL_CONFIG
649 PG_CONFIG
650 SO_TARGETS
651 SO_STRIP
652 SO_LD
653 SO_LDFLAGS
654 SO_CFLAGS
655 SO
656 BIND9_CONFIGARGS
657 BIND9_SRCID
658 BIND9_VERSIONSTRING
659 BIND9_MAJOR
660 BIND9_VERSION
661 BIND9_DESCRIPTION
662 BIND9_PRODUCT
663 BIND9_IRS_BUILDINCLUDE
664 BIND9_BIND9_BUILDINCLUDE
665 BIND9_NS_BUILDINCLUDE
666 BIND9_DNS_BUILDINCLUDE
667 BIND9_ISCCFG_BUILDINCLUDE
668 BIND9_ISCCC_BUILDINCLUDE
669 BIND9_ISC_BUILDINCLUDE
670 BIND9_TOP_BUILDDIR
671 LD_WRAP_TESTS
672 UNITTESTS
673 KYUA
674 CMOCKA_LIBS
675 CMOCKA_CFLAGS
676 LIBIDN2_LDFLAGS
677 LIBIDN2_LIBS
678 LIBIDN2_CFLAGS
679 CURL
680 DOXYGEN
681 MANSRCS
682 PDFTARGET
683 HTMLTARGET
684 PDFLATEX
685 RELEASE_DATE
686 HAVE_XELATEX_FALSE
687 HAVE_XELATEX_TRUE
688 LATEXMK
689 XELATEX
690 HAVE_SPHINX_BUILD_FALSE
691 HAVE_SPHINX_BUILD_TRUE
692 SPHINX_BUILD
693 FSTRM_LIBS
694 FSTRM_CFLAGS
695 PROTOBUF_C_LIBS
696 PROTOBUF_C_CFLAGS
697 DNSTAP_MANS
698 DNSTAPTARGETS
699 DNSTAPOBJS
700 DNSTAPSRCS
701 DNSTAP
702 FSTRM_CAPTURE
703 PROTOC_C
704 ISC_PLATFORM_HAVESYSUNH
705 LIBCAP_LIBS
706 DST_EXTRA_SRCS
707 DST_EXTRA_OBJS
708 READLINE_LIB
709 BIND9_CO_RULE
710 LIBTOOL_MODE_UNINSTALL
711 LIBTOOL_MODE_LINK
712 LIBTOOL_MODE_INSTALL
713 LIBTOOL_MODE_COMPILE
714 LIBTOOL_MKDEP_SED
715 SA
716 A
717 O
718 ALWAYS_MAKE_SYMTABLE
719 MKSYMTBL_PROGRAM
720 PURIFY
721 purify_path
722 MKDEPPROG
723 MKDEPCFLAGS
724 MKDEPCC
725 ZLIB_LIBS
726 ZLIB_CFLAGS
727 JSON_C_LIBS
728 JSON_C_CFLAGS
729 LIBXML2_LIBS
730 LIBXML2_CFLAGS
731 NZD_MANS
732 NZDTARGETS
733 NZDSRCS
734 NZD_TOOLS
735 LMDB_LIBS
736 LMDB_CFLAGS
737 DNS_CRYPTO_LIBS
738 DNS_GSSAPI_LIBS
739 DST_GSSAPI_INC
740 USE_GSSAPI
741 ISC_PLATFORM_KRB5HEADER
742 ISC_PLATFORM_GSSAPI_KRB5_HEADER
743 ISC_PLATFORM_GSSAPIHEADER
744 KRB5_CONFIG
745 CRYPTO
746 PKCS11_MANS
747 PKCS11_TOOLS
748 PKCS11_TEST
749 OPENSSL_LIBS
750 OPENSSL_CFLAGS
751 NO_LIBTOOL_DNSLIBS
752 NO_LIBTOOL_ISCLIBS
753 INSTALL_LIBRARY
754 ALWAYS_DEFINES
755 LIBUV_LIBS
756 LIBUV_CFLAGS
757 PTHREAD_CFLAGS
758 PTHREAD_LIBS
759 PTHREAD_CC
760 ax_pthread_config
761 GEOIP2LINKOBJS
762 GEOIP2LINKSRCS
763 MAXMINDDB_PREFIX
764 MAXMINDDB_LIBS
765 MAXMINDDB_CFLAGS
766 ISC_PLATFORM_NORETURN_POST
767 ISC_PLATFORM_NORETURN_PRE
768 PYTEST
769 expanded_sysconfdir
770 PYTHON_INSTALL_LIB
771 PYTHON_INSTALL_DIR
772 PYTHON_TOOLS
773 KEYMGR
774 COVERAGE
775 CHECKDS
776 PYTHON
777 PERL
778 PANDOC
779 W3M
780 LN
781 ARFLAGS
782 XTARGETS
783 PKG_CONFIG_LIBDIR
784 PKG_CONFIG_PATH
785 PKG_CONFIG
786 BACKTRACECFLAGS
787 CCNOOPT
788 CCOPT
789 STD_CWARNINGS
790 STD_CDEFINES
791 STD_CINCLUDES
792 MKDIR_P
793 INSTALL_DATA
794 INSTALL_SCRIPT
795 INSTALL_PROGRAM
796 LT_SYS_LIBRARY_PATH
797 OTOOL64
798 OTOOL
799 LIPO
800 NMEDIT
801 DSYMUTIL
802 MANIFEST_TOOL
803 AWK
804 RANLIB
805 STRIP
806 ac_ct_AR
807 AR
808 DLLTOOL
809 OBJDUMP
810 LN_S
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 SED
817 LIBTOOL
818 SET_MAKE
819 LFS_LIBS
820 LFS_LDFLAGS
821 LFS_CFLAGS
822 EGREP
823 GREP
824 CPP
825 OBJEXT
826 EXEEXT
827 ac_ct_CC
828 CPPFLAGS
829 LDFLAGS
830 CFLAGS
831 CC
832 host_os
833 host_vendor
834 host_cpu
835 host
836 build_os
837 build_vendor
838 build_cpu
839 build
840 MAINT
841 MAINTAINER_MODE_FALSE
842 MAINTAINER_MODE_TRUE
843 target_alias
844 host_alias
845 build_alias
846 LIBS
847 ECHO_T
848 ECHO_N
849 ECHO_C
850 DEFS
851 mandir
852 localedir
853 libdir
854 psdir
855 pdfdir
856 dvidir
857 htmldir
858 infodir
859 docdir
860 oldincludedir
861 includedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files='BIND9_MAKE_INCLUDES
882 BIND9_MAKE_RULES
883 LIBDNS_MAPAPI
884 DLZ_DRIVER_RULES'
885 ac_user_opts='
886 enable_option_checking
887 enable_maintainer_mode
888 enable_largefile
889 enable_shared
890 enable_static
891 with_pic
892 enable_fast_install
893 with_aix_soname
894 with_gnu_ld
895 with_sysroot
896 enable_libtool_lock
897 enable_buffer_useinline
898 enable_warn_shadow
899 enable_warn_error
900 enable_developer
901 enable_fuzzing
902 enable_mutex_atomics
903 with_python
904 with_python_install_dir
905 enable_kqueue
906 enable_epoll
907 enable_devpoll
908 with_geoip2
909 enable_geoip
910 with_maxminddb
911 with_locktype
912 with_libtool
913 enable_pthread_rwlock
914 with_openssl
915 enable_fips_mode
916 enable_native_pkcs11
917 with_pkcs11
918 with_gssapi
919 with_lmdb
920 with_libxml2
921 with_libjson
922 with_json_c
923 with_zlib
924 with_purify
925 with_gperftools_profiler
926 enable_backtrace
927 enable_symtable
928 enable_tcp_fastopen
929 with_readline
930 enable_chroot
931 enable_linux_caps
932 enable_fixed_rrset
933 enable_dnstap
934 with_protobuf_c
935 with_libfstrm
936 with_libidn2
937 with_cmocka
938 with_tuning
939 enable_querytrace
940 enable_auto_validation
941 with_dlopen
942 enable_dnsrps_dl
943 with_dnsrps_libname
944 with_dnsrps_dir
945 enable_dnsrps
946 with_dlz_postgres
947 with_dlz_mysql
948 with_dlz_bdb
949 with_dlz_filesystem
950 with_dlz_ldap
951 with_dlz_odbc
952 with_dlz_stub
953 with_make_clean
954 enable_full_report
955 '
956 ac_precious_vars='build_alias
957 host_alias
958 target_alias
959 CC
960 CFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
964 CPP
965 LT_SYS_LIBRARY_PATH
966 PKG_CONFIG
967 PKG_CONFIG_PATH
968 PKG_CONFIG_LIBDIR
969 PYTHON
970 MAXMINDDB_CFLAGS
971 MAXMINDDB_LIBS
972 MAXMINDDB_PREFIX
973 LIBUV_CFLAGS
974 LIBUV_LIBS
975 OPENSSL_CFLAGS
976 OPENSSL_LIBS
977 LIBXML2_CFLAGS
978 LIBXML2_LIBS
979 JSON_C_CFLAGS
980 JSON_C_LIBS
981 ZLIB_CFLAGS
982 ZLIB_LIBS
983 SPHINX_BUILD
984 LIBIDN2_CFLAGS
985 LIBIDN2_LIBS
986 CMOCKA_CFLAGS
987 CMOCKA_LIBS
988 KYUA'
989
990
991 # Initialize some variables set by options.
992 ac_init_help=
993 ac_init_version=false
994 ac_unrecognized_opts=
995 ac_unrecognized_sep=
996 # The variables have the same names as the options, with
997 # dashes changed to underlines.
998 cache_file=/dev/null
999 exec_prefix=NONE
1000 no_create=
1001 no_recursion=
1002 prefix=NONE
1003 program_prefix=NONE
1004 program_suffix=NONE
1005 program_transform_name=s,x,x,
1006 silent=
1007 site=
1008 srcdir=
1009 verbose=
1010 x_includes=NONE
1011 x_libraries=NONE
1012
1013 # Installation directory options.
1014 # These are left unexpanded so users can "make install exec_prefix=/foo"
1015 # and all the variables that are supposed to be based on exec_prefix
1016 # by default will actually change.
1017 # Use braces instead of parens because sh, perl, etc. also accept them.
1018 # (The list follows the same order as the GNU Coding Standards.)
1019 bindir='${exec_prefix}/bin'
1020 sbindir='${exec_prefix}/sbin'
1021 libexecdir='${exec_prefix}/libexec'
1022 datarootdir='${prefix}/share'
1023 datadir='${datarootdir}'
1024 sysconfdir='${prefix}/etc'
1025 sharedstatedir='${prefix}/com'
1026 localstatedir='${prefix}/var'
1027 includedir='${prefix}/include'
1028 oldincludedir='/usr/include'
1029 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1030 infodir='${datarootdir}/info'
1031 htmldir='${docdir}'
1032 dvidir='${docdir}'
1033 pdfdir='${docdir}'
1034 psdir='${docdir}'
1035 libdir='${exec_prefix}/lib'
1036 localedir='${datarootdir}/locale'
1037 mandir='${datarootdir}/man'
1038
1039 ac_prev=
1040 ac_dashdash=
1041 for ac_option
1042 do
1043 # If the previous option needs an argument, assign it.
1044 if test -n "$ac_prev"; then
1045 eval $ac_prev=\$ac_option
1046 ac_prev=
1047 continue
1048 fi
1049
1050 case $ac_option in
1051 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 *=) ac_optarg= ;;
1053 *) ac_optarg=yes ;;
1054 esac
1055
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1057
1058 case $ac_dashdash$ac_option in
1059 --)
1060 ac_dashdash=yes ;;
1061
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 ac_prev=bindir ;;
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1066
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1071
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1078
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1081
1082 -datadir | --datadir | --datadi | --datad)
1083 ac_prev=datadir ;;
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1086
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1093
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid feature name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "enable_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=no ;;
1109
1110 -docdir | --docdir | --docdi | --doc | --do)
1111 ac_prev=docdir ;;
1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113 docdir=$ac_optarg ;;
1114
1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 ac_prev=dvidir ;;
1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118 dvidir=$ac_optarg ;;
1119
1120 -enable-* | --enable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "enable_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval enable_$ac_useropt=\$ac_optarg ;;
1135
1136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138 | --exec | --exe | --ex)
1139 ac_prev=exec_prefix ;;
1140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142 | --exec=* | --exe=* | --ex=*)
1143 exec_prefix=$ac_optarg ;;
1144
1145 -gas | --gas | --ga | --g)
1146 # Obsolete; use --with-gas.
1147 with_gas=yes ;;
1148
1149 -help | --help | --hel | --he | -h)
1150 ac_init_help=long ;;
1151 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152 ac_init_help=recursive ;;
1153 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154 ac_init_help=short ;;
1155
1156 -host | --host | --hos | --ho)
1157 ac_prev=host_alias ;;
1158 -host=* | --host=* | --hos=* | --ho=*)
1159 host_alias=$ac_optarg ;;
1160
1161 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162 ac_prev=htmldir ;;
1163 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164 | --ht=*)
1165 htmldir=$ac_optarg ;;
1166
1167 -includedir | --includedir | --includedi | --included | --include \
1168 | --includ | --inclu | --incl | --inc)
1169 ac_prev=includedir ;;
1170 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171 | --includ=* | --inclu=* | --incl=* | --inc=*)
1172 includedir=$ac_optarg ;;
1173
1174 -infodir | --infodir | --infodi | --infod | --info | --inf)
1175 ac_prev=infodir ;;
1176 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177 infodir=$ac_optarg ;;
1178
1179 -libdir | --libdir | --libdi | --libd)
1180 ac_prev=libdir ;;
1181 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182 libdir=$ac_optarg ;;
1183
1184 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185 | --libexe | --libex | --libe)
1186 ac_prev=libexecdir ;;
1187 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188 | --libexe=* | --libex=* | --libe=*)
1189 libexecdir=$ac_optarg ;;
1190
1191 -localedir | --localedir | --localedi | --localed | --locale)
1192 ac_prev=localedir ;;
1193 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194 localedir=$ac_optarg ;;
1195
1196 -localstatedir | --localstatedir | --localstatedi | --localstated \
1197 | --localstate | --localstat | --localsta | --localst | --locals)
1198 ac_prev=localstatedir ;;
1199 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201 localstatedir=$ac_optarg ;;
1202
1203 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204 ac_prev=mandir ;;
1205 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206 mandir=$ac_optarg ;;
1207
1208 -nfp | --nfp | --nf)
1209 # Obsolete; use --without-fp.
1210 with_fp=no ;;
1211
1212 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213 | --no-cr | --no-c | -n)
1214 no_create=yes ;;
1215
1216 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218 no_recursion=yes ;;
1219
1220 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222 | --oldin | --oldi | --old | --ol | --o)
1223 ac_prev=oldincludedir ;;
1224 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227 oldincludedir=$ac_optarg ;;
1228
1229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230 ac_prev=prefix ;;
1231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232 prefix=$ac_optarg ;;
1233
1234 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235 | --program-pre | --program-pr | --program-p)
1236 ac_prev=program_prefix ;;
1237 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239 program_prefix=$ac_optarg ;;
1240
1241 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242 | --program-suf | --program-su | --program-s)
1243 ac_prev=program_suffix ;;
1244 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246 program_suffix=$ac_optarg ;;
1247
1248 -program-transform-name | --program-transform-name \
1249 | --program-transform-nam | --program-transform-na \
1250 | --program-transform-n | --program-transform- \
1251 | --program-transform | --program-transfor \
1252 | --program-transfo | --program-transf \
1253 | --program-trans | --program-tran \
1254 | --progr-tra | --program-tr | --program-t)
1255 ac_prev=program_transform_name ;;
1256 -program-transform-name=* | --program-transform-name=* \
1257 | --program-transform-nam=* | --program-transform-na=* \
1258 | --program-transform-n=* | --program-transform-=* \
1259 | --program-transform=* | --program-transfor=* \
1260 | --program-transfo=* | --program-transf=* \
1261 | --program-trans=* | --program-tran=* \
1262 | --progr-tra=* | --program-tr=* | --program-t=*)
1263 program_transform_name=$ac_optarg ;;
1264
1265 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266 ac_prev=pdfdir ;;
1267 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268 pdfdir=$ac_optarg ;;
1269
1270 -psdir | --psdir | --psdi | --psd | --ps)
1271 ac_prev=psdir ;;
1272 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273 psdir=$ac_optarg ;;
1274
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 silent=yes ;;
1278
1279 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280 ac_prev=sbindir ;;
1281 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282 | --sbi=* | --sb=*)
1283 sbindir=$ac_optarg ;;
1284
1285 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287 | --sharedst | --shareds | --shared | --share | --shar \
1288 | --sha | --sh)
1289 ac_prev=sharedstatedir ;;
1290 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293 | --sha=* | --sh=*)
1294 sharedstatedir=$ac_optarg ;;
1295
1296 -site | --site | --sit)
1297 ac_prev=site ;;
1298 -site=* | --site=* | --sit=*)
1299 site=$ac_optarg ;;
1300
1301 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302 ac_prev=srcdir ;;
1303 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304 srcdir=$ac_optarg ;;
1305
1306 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307 | --syscon | --sysco | --sysc | --sys | --sy)
1308 ac_prev=sysconfdir ;;
1309 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311 sysconfdir=$ac_optarg ;;
1312
1313 -target | --target | --targe | --targ | --tar | --ta | --t)
1314 ac_prev=target_alias ;;
1315 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316 target_alias=$ac_optarg ;;
1317
1318 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319 verbose=yes ;;
1320
1321 -version | --version | --versio | --versi | --vers | -V)
1322 ac_init_version=: ;;
1323
1324 -with-* | --with-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error $? "invalid package name: $ac_useropt"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1332 *"
1333 "with_$ac_useropt"
1334 "*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval with_$ac_useropt=\$ac_optarg ;;
1339
1340 -without-* | --without-*)
1341 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 as_fn_error $? "invalid package name: $ac_useropt"
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349 "with_$ac_useropt"
1350 "*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
1355
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1359
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365 x_includes=$ac_optarg ;;
1366
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372 x_libraries=$ac_optarg ;;
1373
1374 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1375 Try \`$0 --help' for more information"
1376 ;;
1377
1378 *=*)
1379 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1380 # Reject names that are not valid shell variable names.
1381 case $ac_envvar in #(
1382 '' | [0-9]* | *[!_$as_cr_alnum]* )
1383 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1384 esac
1385 eval $ac_envvar=\$ac_optarg
1386 export $ac_envvar ;;
1387
1388 *)
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1393 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1394 ;;
1395
1396 esac
1397 done
1398
1399 if test -n "$ac_prev"; then
1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1401 as_fn_error $? "missing argument to $ac_option"
1402 fi
1403
1404 if test -n "$ac_unrecognized_opts"; then
1405 case $enable_option_checking in
1406 no) ;;
1407 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1408 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1409 esac
1410 fi
1411
1412 # Check all directory arguments for consistency.
1413 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414 datadir sysconfdir sharedstatedir localstatedir includedir \
1415 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416 libdir localedir mandir
1417 do
1418 eval ac_val=\$$ac_var
1419 # Remove trailing slashes.
1420 case $ac_val in
1421 */ )
1422 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423 eval $ac_var=\$ac_val;;
1424 esac
1425 # Be sure to have absolute directory names.
1426 case $ac_val in
1427 [\\/$]* | ?:[\\/]* ) continue;;
1428 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429 esac
1430 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1431 done
1432
1433 # There might be people who depend on the old broken behavior: `$host'
1434 # used to hold the argument of --host etc.
1435 # FIXME: To remove some day.
1436 build=$build_alias
1437 host=$host_alias
1438 target=$target_alias
1439
1440 # FIXME: To remove some day.
1441 if test "x$host_alias" != x; then
1442 if test "x$build_alias" = x; then
1443 cross_compiling=maybe
1444 elif test "x$build_alias" != "x$host_alias"; then
1445 cross_compiling=yes
1446 fi
1447 fi
1448
1449 ac_tool_prefix=
1450 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
1452 test "$silent" = yes && exec 6>/dev/null
1453
1454
1455 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di=`ls -di .` &&
1457 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error $? "working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error $? "pwd does not report name of working directory"
1461
1462
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\/\)[^/].*/{
1478 s//\1/
1479 q
1480 }
1481 /^X\(\/\/\)$/{
1482 s//\1/
1483 q
1484 }
1485 /^X\(\/\).*/{
1486 s//\1/
1487 q
1488 }
1489 s/.*/./; q'`
1490 srcdir=$ac_confdir
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 srcdir=..
1493 fi
1494 else
1495 ac_srcdir_defaulted=no
1496 fi
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1500 fi
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1508 fi
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1521
1522 #
1523 # Report the --help message.
1524 #
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures BIND 9.16 to adapt to many kinds of systems.
1530
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1535
1536 Defaults for the options are specified in brackets.
1537
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking ...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1548
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1554
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1559
1560 For better control, use the options below.
1561
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/bind]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1583
1584 cat <<\_ACEOF
1585
1586 System types:
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1589 _ACEOF
1590 fi
1591
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of BIND 9.16:";;
1595 esac
1596 cat <<\_ACEOF
1597
1598 Optional Features:
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --disable-maintainer-mode
1603 disable make rules and dependencies not useful (and
1604 sometimes confusing) to the casual installer
1605 --disable-largefile omit support for large files
1606 --enable-shared[=PKGS] build shared libraries [default=yes]
1607 --enable-static[=PKGS] build static libraries [default=yes]
1608 --enable-fast-install[=PKGS]
1609 optimize for fast installation [default=yes]
1610 --disable-libtool-lock avoid locking (might break parallel builds)
1611 --enable-buffer-useinline
1612 define ISC_BUFFER_USEINLINE when compiling
1613 [default=yes]
1614 --enable-warn-shadow turn on -Wshadow when compiling
1615 --enable-warn-error turn on -Werror when compiling
1616 --enable-developer enable developer build settings
1617 --enable-fuzzing=<afl|libfuzzer>
1618 Enable fuzzing using American Fuzzy Lop or libFuzzer
1619 (default=no)
1620 --enable-mutex-atomics emulate atomics by mutex-locked variables, useful
1621 for debugging [default=no]
1622 --enable-kqueue use BSD kqueue when available [default=yes]
1623 --enable-epoll use Linux epoll when available [default=auto]
1624 --enable-devpoll use /dev/poll when available [default=yes]
1625 --disable-geoip support GeoIP2 geolocation ACLs if available
1626 [default=yes]
1627 --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
1628 implementation
1629 --enable-fips-mode enable FIPS mode in OpenSSL library [default=no]
1630 --enable-native-pkcs11 use native PKCS11 for public-key crypto [default=no]
1631 --enable-backtrace log stack backtrace on abort [default=yes]
1632 --enable-symtable use internal symbol table for backtrace
1633 [all|minimal(default)|none]
1634 --disable-tcp-fastopen disable TCP Fast Open support [default=yes]
1635 --disable-chroot disable chroot
1636 --disable-linux-caps disable Linux capabilities
1637 --enable-fixed-rrset enable fixed rrset ordering [default=no]
1638 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c)
1639 --enable-querytrace enable very verbose query trace logging [default=no]
1640 --enable-auto-validation
1641 turn on DNSSEC validation by default, using the IANA
1642 root key [default=yes]
1643 --enable-dnsrps-dl DNS Response Policy Service delayed link
1644 [default=$librpz_dl]
1645 --enable-dnsrps enable DNS Response Policy Service API
1646 --enable-full-report report values of all configure options
1647
1648 Optional Packages:
1649 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1650 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1651 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1652 both]
1653 --with-aix-soname=aix|svr4|both
1654 shared library versioning (aka "SONAME") variant to
1655 provide on AIX, [default=aix].
1656 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1657 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1658 compiler's sysroot if not specified).
1659 --with-python=PATH specify path to Python interpreter
1660 --with-python-install-dir=PATH
1661 installation directory for Python modules
1662 --with-geoip2 deprecated, use --with-maxminddb
1663 --with-maxminddb=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path)
1664 [default=auto]
1665 --with-locktype=ARG Specify mutex lock type (adaptive or standard)
1666 --with-libtool use GNU libtool
1667 --with-openssl=DIR root of the OpenSSL directory
1668 --with-pkcs11=PATH Build with PKCS11 support [no|path] (PATH is for the
1669 PKCS11 provider)
1670 --with-gssapi=PATH|/path/krb5-config
1671 Specify path for system-supplied GSSAPI
1672 [default=auto]
1673 --with-lmdb=PATH build with LMDB library [yes|no|path]
1674 --with-libxml2 build with libxml2 library [yes|no|auto] (default is
1675 auto)
1676 --with-libjson deprecated, use --with-json-c
1677 --with-json-c build with json-c library [yes|no|detect] (default
1678 is detect)
1679 --with-zlib build with zlib for HTTP compression [default=yes]
1680 --with-purify=PATH use Rational purify
1681 --with-gperftools-profiler
1682 use gperftools CPU profiler
1683 --with-readline=LIBSPEC specify readline library [default auto]
1684 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1685 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1686 --with-libidn2=PATH enable IDN support using GNU libidn2
1687 [yes|no(default)|path]
1688 --with-cmocka=detect enable CMocka based tests (default is detect)
1689 --with-tuning=ARG Specify server tuning (default or small)
1690 --with-dlopen=ARG support dynamically loadable DLZ and DYNDB drivers
1691 --with-dnsrps-libname DNSRPS provider library name (librpz.so)
1692 --with-dnsrps-dir path to DNSRPS provider library
1693 --with-dlz-postgres=PATH
1694 Build with Postgres DLZ driver [yes|no|path].
1695 (Required to use Postgres with DLZ)
1696 --with-dlz-mysql=PATH Build with MySQL DLZ driver [yes|no|path]. (Required
1697 to use MySQL with DLZ)
1698 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver [yes|no|path].
1699 (Required to use Berkeley DB with DLZ)
1700 --with-dlz-filesystem=ARG
1701 Build with filesystem DLZ driver [yes|no]. (Required
1702 to use file system driver with DLZ)
1703 --with-dlz-ldap=PATH Build with LDAP DLZ driver [yes|no|path]. (Required
1704 to use LDAP with DLZ)
1705 --with-dlz-odbc=PATH Build with ODBC DLZ driver [yes|no|path]. (Required
1706 to use ODBC with DLZ)
1707 --with-dlz-stub=ARG Build with stub DLZ driver [yes|no]. (Required to
1708 use stub driver with DLZ)
1709 --with-make-clean run "make clean" at end of configure [yes|no]
1710
1711 Some influential environment variables:
1712 CC C compiler command
1713 CFLAGS C compiler flags
1714 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1715 nonstandard directory <lib dir>
1716 LIBS libraries to pass to the linker, e.g. -l<library>
1717 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1718 you have headers in a nonstandard directory <include dir>
1719 CPP C preprocessor
1720 LT_SYS_LIBRARY_PATH
1721 User-defined run-time library search path.
1722 PKG_CONFIG path to pkg-config utility
1723 PKG_CONFIG_PATH
1724 directories to add to pkg-config's search path
1725 PKG_CONFIG_LIBDIR
1726 path overriding pkg-config's built-in search path
1727 PYTHON path to python executable
1728 MAXMINDDB_CFLAGS
1729 C compiler flags for MAXMINDDB, overriding pkg-config
1730 MAXMINDDB_LIBS
1731 linker flags for MAXMINDDB, overriding pkg-config
1732 MAXMINDDB_PREFIX
1733 value of prefix for libmaxminddb, overriding pkg-config
1734 LIBUV_CFLAGS
1735 C compiler flags for LIBUV, overriding pkg-config
1736 LIBUV_LIBS linker flags for LIBUV, overriding pkg-config
1737 OPENSSL_CFLAGS
1738 C compiler flags for OPENSSL, overriding pkg-config
1739 OPENSSL_LIBS
1740 linker flags for OPENSSL, overriding pkg-config
1741 LIBXML2_CFLAGS
1742 C compiler flags for LIBXML2, overriding pkg-config
1743 LIBXML2_LIBS
1744 linker flags for LIBXML2, overriding pkg-config
1745 JSON_C_CFLAGS
1746 C compiler flags for JSON_C, overriding pkg-config
1747 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1748 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1749 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1750 SPHINX_BUILD
1751 path to sphinx-build binary used to build the documentation
1752 LIBIDN2_CFLAGS
1753 C compiler flags for LIBIDN2, overriding pkg-config
1754 LIBIDN2_LIBS
1755 linker flags for LIBIDN2, overriding pkg-config
1756 CMOCKA_CFLAGS
1757 C compiler flags for CMOCKA, overriding pkg-config
1758 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1759 KYUA path to kyua execution engine
1760
1761 Use these variables to override the choices made by `configure' or to help
1762 it to find libraries and programs with nonstandard names/locations.
1763
1764 Report bugs to <info (at] isc.org>.
1765 BIND home page: <https://www.isc.org/downloads/>.
1766 _ACEOF
1767 ac_status=$?
1768 fi
1769
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" ||
1774 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1775 continue
1776 ac_builddir=.
1777
1778 case "$ac_dir" in
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *)
1781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1782 # A ".." for each directory in $ac_dir_suffix.
1783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1784 case $ac_top_builddir_sub in
1785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787 esac ;;
1788 esac
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1793
1794 case $srcdir in
1795 .) # We are building in place.
1796 ac_srcdir=.
1797 ac_top_srcdir=$ac_top_builddir_sub
1798 ac_abs_top_srcdir=$ac_pwd ;;
1799 [\\/]* | ?:[\\/]* ) # Absolute name.
1800 ac_srcdir=$srcdir$ac_dir_suffix;
1801 ac_top_srcdir=$srcdir
1802 ac_abs_top_srcdir=$srcdir ;;
1803 *) # Relative name.
1804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805 ac_top_srcdir=$ac_top_build_prefix$srcdir
1806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1807 esac
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1809
1810 cd "$ac_dir" || { ac_status=$?; continue; }
1811 # Check for guested configure.
1812 if test -f "$ac_srcdir/configure.gnu"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815 elif test -f "$ac_srcdir/configure"; then
1816 echo &&
1817 $SHELL "$ac_srcdir/configure" --help=recursive
1818 else
1819 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1820 fi || ac_status=$?
1821 cd "$ac_pwd" || { ac_status=$?; break; }
1822 done
1823 fi
1824
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1827 cat <<\_ACEOF
1828 BIND configure 9.16
1829 generated by GNU Autoconf 2.69
1830
1831 Copyright (C) 2012 Free Software Foundation, Inc.
1832 This configure script is free software; the Free Software Foundation
1833 gives unlimited permission to copy, distribute and modify it.
1834 _ACEOF
1835 exit
1836 fi
1837
1838 ## ------------------------ ##
1839 ## Autoconf initialization. ##
1840 ## ------------------------ ##
1841
1842 # ac_fn_c_try_compile LINENO
1843 # --------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_compile ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874 fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_compile
1879
1880 # ac_fn_c_try_cpp LINENO
1881 # ----------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_cpp ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911 fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_cpp
1916
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1921 # accordingly.
1922 ac_fn_c_check_header_mongrel ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 else
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1945 else
1946 ac_header_compiler=no
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1951
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1961 else
1962 ac_header_preproc=no
1963 fi
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1967
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 yes:no: )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ;;
1976 no:yes:* )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ( $as_echo "## --------------------------- ##
1988 ## Report this to info (at] isc.org ##
1989 ## --------------------------- ##"
1990 ) | sed "s/^/$as_me: WARNING: /" >&2
1991 ;;
1992 esac
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 eval "$3=\$ac_header_compiler"
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 fi
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006 } # ac_fn_c_check_header_mongrel
2007
2008 # ac_fn_c_try_run LINENO
2009 # ----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2011 # that executables *can* be run.
2012 ac_fn_c_try_run ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>&5
2023 ac_status=$?
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2026 { { case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_try") 2>&5
2033 ac_status=$?
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; }; }; then :
2036 ac_retval=0
2037 else
2038 $as_echo "$as_me: program exited with status $ac_status" >&5
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=$ac_status
2043 fi
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2047
2048 } # ac_fn_c_try_run
2049
2050 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2051 # -------------------------------------------------------
2052 # Tests whether HEADER exists and can be compiled using the include files in
2053 # INCLUDES, setting the cache variable VAR accordingly.
2054 ac_fn_c_check_header_compile ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 eval "$3=yes"
2069 else
2070 eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_header_compile
2080
2081 # ac_fn_c_try_link LINENO
2082 # -----------------------
2083 # Try to link conftest.$ac_ext, and return whether this succeeded.
2084 ac_fn_c_try_link ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 rm -f conftest.$ac_objext conftest$ac_exeext
2088 if { { ac_try="$ac_link"
2089 case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_link") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } && {
2104 test -z "$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 } && test -s conftest$ac_exeext && {
2107 test "$cross_compiling" = yes ||
2108 test -x conftest$ac_exeext
2109 }; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116 fi
2117 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2118 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2119 # interfere with the next link command; also delete a directory that is
2120 # left behind by Apple's compiler. We do this before executing the actions.
2121 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 as_fn_set_status $ac_retval
2124
2125 } # ac_fn_c_try_link
2126
2127 # ac_fn_c_check_func LINENO FUNC VAR
2128 # ----------------------------------
2129 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2130 ac_fn_c_check_func ()
2131 {
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2142 #define $2 innocuous_$2
2143
2144 /* System header to define __stub macros and hopefully few prototypes,
2145 which can conflict with char $2 (); below.
2146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2147 <limits.h> exists even on freestanding compilers. */
2148
2149 #ifdef __STDC__
2150 # include <limits.h>
2151 #else
2152 # include <assert.h>
2153 #endif
2154
2155 #undef $2
2156
2157 /* Override any GCC internal prototype to avoid an error.
2158 Use char because int might match the return type of a GCC
2159 builtin and then its argument prototype would still apply. */
2160 #ifdef __cplusplus
2161 extern "C"
2162 #endif
2163 char $2 ();
2164 /* The GNU C library defines this for functions which it implements
2165 to always fail with ENOSYS. Some functions are actually named
2166 something starting with __ and the normal name is an alias. */
2167 #if defined __stub_$2 || defined __stub___$2
2168 choke me
2169 #endif
2170
2171 int
2172 main ()
2173 {
2174 return $2 ();
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_link "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext \
2185 conftest$ac_exeext conftest.$ac_ext
2186 fi
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_c_check_func
2193
2194 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2195 # -------------------------------------------
2196 # Tests whether TYPE exists after having included INCLUDES, setting cache
2197 # variable VAR accordingly.
2198 ac_fn_c_check_type ()
2199 {
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 eval "$3=no"
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main ()
2212 {
2213 if (sizeof ($2))
2214 return 0;
2215 ;
2216 return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2222 $4
2223 int
2224 main ()
2225 {
2226 if (sizeof (($2)))
2227 return 0;
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233
2234 else
2235 eval "$3=yes"
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 fi
2241 eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245
2246 } # ac_fn_c_check_type
2247 cat >config.log <<_ACEOF
2248 This file contains any messages produced by compilers while
2249 running configure, to aid debugging if configure makes a mistake.
2250
2251 It was created by BIND $as_me 9.16, which was
2252 generated by GNU Autoconf 2.69. Invocation command line was
2253
2254 $ $0 $@
2255
2256 _ACEOF
2257 exec 5>>config.log
2258 {
2259 cat <<_ASUNAME
2260 ## --------- ##
2261 ## Platform. ##
2262 ## --------- ##
2263
2264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2269
2270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2272
2273 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2274 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2277 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2278 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2279 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2280
2281 _ASUNAME
2282
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 $as_echo "PATH: $as_dir"
2289 done
2290 IFS=$as_save_IFS
2291
2292 } >&5
2293
2294 cat >&5 <<_ACEOF
2295
2296
2297 ## ----------- ##
2298 ## Core tests. ##
2299 ## ----------- ##
2300
2301 _ACEOF
2302
2303
2304 # Keep a trace of the command line.
2305 # Strip out --no-create and --no-recursion so they do not pile up.
2306 # Strip out --silent because we don't want to record it for future runs.
2307 # Also quote any args containing shell meta-characters.
2308 # Make two passes to allow for proper duplicate-argument suppression.
2309 ac_configure_args=
2310 ac_configure_args0=
2311 ac_configure_args1=
2312 ac_must_keep_next=false
2313 for ac_pass in 1 2
2314 do
2315 for ac_arg
2316 do
2317 case $ac_arg in
2318 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2320 | -silent | --silent | --silen | --sile | --sil)
2321 continue ;;
2322 *\'*)
2323 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 esac
2325 case $ac_pass in
2326 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2327 2)
2328 as_fn_append ac_configure_args1 " '$ac_arg'"
2329 if test $ac_must_keep_next = true; then
2330 ac_must_keep_next=false # Got value, back to normal.
2331 else
2332 case $ac_arg in
2333 *=* | --config-cache | -C | -disable-* | --disable-* \
2334 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2335 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2336 | -with-* | --with-* | -without-* | --without-* | --x)
2337 case "$ac_configure_args0 " in
2338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339 esac
2340 ;;
2341 -* ) ac_must_keep_next=true ;;
2342 esac
2343 fi
2344 as_fn_append ac_configure_args " '$ac_arg'"
2345 ;;
2346 esac
2347 done
2348 done
2349 { ac_configure_args0=; unset ac_configure_args0;}
2350 { ac_configure_args1=; unset ac_configure_args1;}
2351
2352 # When interrupted or exit'd, cleanup temporary files, and complete
2353 # config.log. We remove comments because anyway the quotes in there
2354 # would cause problems or look ugly.
2355 # WARNING: Use '\'' to represent an apostrophe within the trap.
2356 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2357 trap 'exit_status=$?
2358 # Save into config.log some information that might help in debugging.
2359 {
2360 echo
2361
2362 $as_echo "## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##"
2365 echo
2366 # The following way of writing the cache mishandles newlines in values,
2367 (
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2380 esac ;;
2381 esac
2382 done
2383 (set) 2>&1 |
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2386 sed -n \
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
2390 *)
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 ;;
2393 esac |
2394 sort
2395 )
2396 echo
2397
2398 $as_echo "## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##"
2401 echo
2402 for ac_var in $ac_subst_vars
2403 do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2411
2412 if test -n "$ac_subst_files"; then
2413 $as_echo "## ------------------- ##
2414 ## File substitutions. ##
2415 ## ------------------- ##"
2416 echo
2417 for ac_var in $ac_subst_files
2418 do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2426 fi
2427
2428 if test -s confdefs.h; then
2429 $as_echo "## ----------- ##
2430 ## confdefs.h. ##
2431 ## ----------- ##"
2432 echo
2433 cat confdefs.h
2434 echo
2435 fi
2436 test "$ac_signal" != 0 &&
2437 $as_echo "$as_me: caught signal $ac_signal"
2438 $as_echo "$as_me: exit $exit_status"
2439 } >&5
2440 rm -f core *.core core.conftest.* &&
2441 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442 exit $exit_status
2443 ' 0
2444 for ac_signal in 1 2 13 15; do
2445 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446 done
2447 ac_signal=0
2448
2449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2450 rm -f -r conftest* confdefs.h
2451
2452 $as_echo "/* confdefs.h */" > confdefs.h
2453
2454 # Predefined preprocessor variables.
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_NAME "$PACKAGE_NAME"
2458 _ACEOF
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462 _ACEOF
2463
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2466 _ACEOF
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_STRING "$PACKAGE_STRING"
2470 _ACEOF
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_URL "$PACKAGE_URL"
2478 _ACEOF
2479
2480
2481 # Let the site file select an alternate cache file if it wants to.
2482 # Prefer an explicitly selected file to automatically selected ones.
2483 ac_site_file1=NONE
2484 ac_site_file2=NONE
2485 if test -n "$CONFIG_SITE"; then
2486 # We do not want a PATH search for config.site.
2487 case $CONFIG_SITE in #((
2488 -*) ac_site_file1=./$CONFIG_SITE;;
2489 */*) ac_site_file1=$CONFIG_SITE;;
2490 *) ac_site_file1=./$CONFIG_SITE;;
2491 esac
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_file1=$prefix/share/config.site
2494 ac_site_file2=$prefix/etc/config.site
2495 else
2496 ac_site_file1=$ac_default_prefix/share/config.site
2497 ac_site_file2=$ac_default_prefix/etc/config.site
2498 fi
2499 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 do
2501 test "x$ac_site_file" = xNONE && continue
2502 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2506 . "$ac_site_file" \
2507 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 as_fn_error $? "failed to load site script $ac_site_file
2510 See \`config.log' for more details" "$LINENO" 5; }
2511 fi
2512 done
2513
2514 if test -r "$cache_file"; then
2515 # Some versions of bash will fail to source /dev/null (special files
2516 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2517 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519 $as_echo "$as_me: loading cache $cache_file" >&6;}
2520 case $cache_file in
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
2523 esac
2524 fi
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528 >$cache_file
2529 fi
2530
2531 # Check that the precious variables saved in the cache have kept the same
2532 # value.
2533 ac_cache_corrupted=false
2534 for ac_var in $ac_precious_vars; do
2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
2539 case $ac_old_set,$ac_new_set in
2540 set,)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,set)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,);;
2549 *)
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578 esac
2579 fi
2580 done
2581 if $ac_cache_corrupted; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2587 fi
2588 ## -------------------- ##
2589 ## Main body of script. ##
2590 ## -------------------- ##
2591
2592 ac_ext=c
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
2598
2599
2600
2601 #
2602 # Enable maintainer mode by default, but allow to disable it in the CI
2603 #
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2606 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2607 # Check whether --enable-maintainer-mode was given.
2608 if test "${enable_maintainer_mode+set}" = set; then :
2609 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2610 else
2611 USE_MAINTAINER_MODE=yes
2612 fi
2613
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2615 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2616 if test $USE_MAINTAINER_MODE = yes; then
2617 MAINTAINER_MODE_TRUE=
2618 MAINTAINER_MODE_FALSE='#'
2619 else
2620 MAINTAINER_MODE_TRUE='#'
2621 MAINTAINER_MODE_FALSE=
2622 fi
2623
2624 MAINT=$MAINTAINER_MODE_TRUE
2625
2626
2627
2628 ac_config_headers="$ac_config_headers config.h"
2629
2630
2631
2632 ac_aux_dir=
2633 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2634 if test -f "$ac_dir/install-sh"; then
2635 ac_aux_dir=$ac_dir
2636 ac_install_sh="$ac_aux_dir/install-sh -c"
2637 break
2638 elif test -f "$ac_dir/install.sh"; then
2639 ac_aux_dir=$ac_dir
2640 ac_install_sh="$ac_aux_dir/install.sh -c"
2641 break
2642 elif test -f "$ac_dir/shtool"; then
2643 ac_aux_dir=$ac_dir
2644 ac_install_sh="$ac_aux_dir/shtool install -c"
2645 break
2646 fi
2647 done
2648 if test -z "$ac_aux_dir"; then
2649 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2650 fi
2651
2652 # These three variables are undocumented and unsupported,
2653 # and are intended to be withdrawn in a future Autoconf release.
2654 # They can cause serious problems if a builder's source tree is in a directory
2655 # whose full name contains unusual characters.
2656 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2657 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2658 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2659
2660
2661 # Make sure we can run config.sub.
2662 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2663 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2666 $as_echo_n "checking build system type... " >&6; }
2667 if ${ac_cv_build+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 ac_build_alias=$build_alias
2671 test "x$ac_build_alias" = x &&
2672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2673 test "x$ac_build_alias" = x &&
2674 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2675 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2677
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2680 $as_echo "$ac_cv_build" >&6; }
2681 case $ac_cv_build in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2684 esac
2685 build=$ac_cv_build
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_build
2688 shift
2689 build_cpu=$1
2690 build_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 build_os=$*
2695 IFS=$ac_save_IFS
2696 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2697
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2700 $as_echo_n "checking host system type... " >&6; }
2701 if ${ac_cv_host+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test "x$host_alias" = x; then
2705 ac_cv_host=$ac_cv_build
2706 else
2707 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2709 fi
2710
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2714 case $ac_cv_host in
2715 *-*-*) ;;
2716 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2717 esac
2718 host=$ac_cv_host
2719 ac_save_IFS=$IFS; IFS='-'
2720 set x $ac_cv_host
2721 shift
2722 host_cpu=$1
2723 host_vendor=$2
2724 shift; shift
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2727 host_os=$*
2728 IFS=$ac_save_IFS
2729 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2730
2731
2732
2733 #
2734 # Enable system extensions to C and POSIX
2735 #
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_CC+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_CC"; then
2781 ac_ct_CC=$CC
2782 # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_ac_ct_CC="gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818 if test "x$ac_ct_CC" = x; then
2819 CC=""
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 CC=$ac_ct_CC
2828 fi
2829 else
2830 CC="$ac_cv_prog_CC"
2831 fi
2832
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}cc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CC="${ac_tool_prefix}cc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 fi
2874 if test -z "$CC"; then
2875 # Extract the first word of "cc", so it can be a program name with args.
2876 set dummy cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 ac_prog_rejected=no
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2894 ac_prog_rejected=yes
2895 continue
2896 fi
2897 ac_cv_prog_CC="cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 if test $ac_prog_rejected = yes; then
2906 # We found a bogon in the path, so make sure we never use it.
2907 set dummy $ac_cv_prog_CC
2908 shift
2909 if test $# != 0; then
2910 # We chose a different compiler from the bogus one.
2911 # However, it has the same basename, so the bogon will be chosen
2912 # first if we set CC to just the basename; use the full file name.
2913 shift
2914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 fi
2916 fi
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in cl.exe
2933 do
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 test -n "$CC" && break
2972 done
2973 fi
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl.exe
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 test -n "$ac_ct_CC" && break
3016 done
3017
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027 CC=$ac_ct_CC
3028 fi
3029 fi
3030
3031 fi
3032
3033
3034 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 as_fn_error $? "no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details" "$LINENO" 5; }
3038
3039 # Provide some information about the compiler.
3040 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3041 set X $ac_compile
3042 ac_compiler=$2
3043 for ac_option in --version -v -V -qversion; do
3044 { { ac_try="$ac_compiler $ac_option >&5"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3052 ac_status=$?
3053 if test -s conftest.err; then
3054 sed '10a\
3055 ... rest of stderr output deleted ...
3056 10q' conftest.err >conftest.er1
3057 cat conftest.er1 >&5
3058 fi
3059 rm -f conftest.er1 conftest.err
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 done
3063
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3079 # of exeext.
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3081 $as_echo_n "checking whether the C compiler works... " >&6; }
3082 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3083
3084 # The possible output files:
3085 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3086
3087 ac_rmfiles=
3088 for ac_file in $ac_files
3089 do
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 esac
3094 done
3095 rm -f $ac_rmfiles
3096
3097 if { { ac_try="$ac_link_default"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link_default") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3109 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3110 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3111 # so that the user can short-circuit this test for compilers unknown to
3112 # Autoconf.
3113 for ac_file in $ac_files ''
3114 do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3118 ;;
3119 [ab].out )
3120 # We found the default executable, but exeext='' is most
3121 # certainly right.
3122 break;;
3123 *.* )
3124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3125 then :; else
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 fi
3128 # We set ac_cv_exeext here because the later test for it is not
3129 # safe: cross compilers may not add the suffix if given an `-o'
3130 # argument, so we may need to know it at that point already.
3131 # Even if this section looks crufty: it has the advantage of
3132 # actually working.
3133 break;;
3134 * )
3135 break;;
3136 esac
3137 done
3138 test "$ac_cv_exeext" = no && ac_cv_exeext=
3139
3140 else
3141 ac_file=''
3142 fi
3143 if test -z "$ac_file"; then :
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error 77 "C compiler cannot create executables
3152 See \`config.log' for more details" "$LINENO" 5; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3155 $as_echo "yes" >&6; }
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3158 $as_echo_n "checking for C compiler default output file name... " >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3160 $as_echo "$ac_file" >&6; }
3161 ac_exeext=$ac_cv_exeext
3162
3163 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3164 ac_clean_files=$ac_clean_files_save
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3166 $as_echo_n "checking for suffix of executables... " >&6; }
3167 if { { ac_try="$ac_link"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_link") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3179 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3180 # work properly (i.e., refer to `conftest.exe'), while it won't with
3181 # `rm'.
3182 for ac_file in conftest.exe conftest conftest.*; do
3183 test -f "$ac_file" || continue
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 break;;
3188 * ) break;;
3189 esac
3190 done
3191 else
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details" "$LINENO" 5; }
3196 fi
3197 rm -f conftest conftest$ac_cv_exeext
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3199 $as_echo "$ac_cv_exeext" >&6; }
3200
3201 rm -f conftest.$ac_ext
3202 EXEEXT=$ac_cv_exeext
3203 ac_exeext=$EXEEXT
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #include <stdio.h>
3207 int
3208 main ()
3209 {
3210 FILE *f = fopen ("conftest.out", "w");
3211 return ferror (f) || fclose (f) != 0;
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 ac_clean_files="$ac_clean_files conftest.out"
3218 # Check that the compiler produces executables we can run. If not, either
3219 # the compiler is broken, or we cross compile.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3221 $as_echo_n "checking whether we are cross compiling... " >&6; }
3222 if test "$cross_compiling" != yes; then
3223 { { ac_try="$ac_link"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_link") 2>&5
3231 ac_status=$?
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }
3234 if { ac_try='./conftest$ac_cv_exeext'
3235 { { case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_try") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; }; then
3245 cross_compiling=no
3246 else
3247 if test "$cross_compiling" = maybe; then
3248 cross_compiling=yes
3249 else
3250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 as_fn_error $? "cannot run C compiled programs.
3253 If you meant to cross compile, use \`--host'.
3254 See \`config.log' for more details" "$LINENO" 5; }
3255 fi
3256 fi
3257 fi
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3259 $as_echo "$cross_compiling" >&6; }
3260
3261 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3262 ac_clean_files=$ac_clean_files_save
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3264 $as_echo_n "checking for suffix of object files... " >&6; }
3265 if ${ac_cv_objext+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3270
3271 int
3272 main ()
3273 {
3274
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.o conftest.obj
3280 if { { ac_try="$ac_compile"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_compile") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 for ac_file in conftest.o conftest.obj conftest.*; do
3292 test -f "$ac_file" || continue;
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 break;;
3297 esac
3298 done
3299 else
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "cannot compute suffix of object files: cannot compile
3306 See \`config.log' for more details" "$LINENO" 5; }
3307 fi
3308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3311 $as_echo "$ac_cv_objext" >&6; }
3312 OBJEXT=$ac_cv_objext
3313 ac_objext=$OBJEXT
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3315 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3316 if ${ac_cv_c_compiler_gnu+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321
3322 int
3323 main ()
3324 {
3325 #ifndef __GNUC__
3326 choke me
3327 #endif
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_compiler_gnu=yes
3335 else
3336 ac_compiler_gnu=no
3337 fi
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3340
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3343 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3344 if test $ac_compiler_gnu = yes; then
3345 GCC=yes
3346 else
3347 GCC=
3348 fi
3349 ac_test_CFLAGS=${CFLAGS+set}
3350 ac_save_CFLAGS=$CFLAGS
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3352 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3353 if ${ac_cv_prog_cc_g+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_save_c_werror_flag=$ac_c_werror_flag
3357 ac_c_werror_flag=yes
3358 ac_cv_prog_cc_g=no
3359 CFLAGS="-g"
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_cv_prog_cc_g=yes
3373 else
3374 CFLAGS=""
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377
3378 int
3379 main ()
3380 {
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 if ac_fn_c_try_compile "$LINENO"; then :
3387
3388 else
3389 ac_c_werror_flag=$ac_save_c_werror_flag
3390 CFLAGS="-g"
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393
3394 int
3395 main ()
3396 {
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_cv_prog_cc_g=yes
3404 fi
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3413 $as_echo "$ac_cv_prog_cc_g" >&6; }
3414 if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3421 fi
3422 else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3427 fi
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3430 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3431 if ${ac_cv_prog_cc_c89+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 ac_cv_prog_cc_c89=no
3435 ac_save_CC=$CC
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #include <stdarg.h>
3439 #include <stdio.h>
3440 struct stat;
3441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3442 struct buf { int x; };
3443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3444 static char *e (p, i)
3445 char **p;
3446 int i;
3447 {
3448 return p[i];
3449 }
3450 static char *f (char * (*g) (char **, int), char **p, ...)
3451 {
3452 char *s;
3453 va_list v;
3454 va_start (v,p);
3455 s = g (p, va_arg (v,int));
3456 va_end (v);
3457 return s;
3458 }
3459
3460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3461 function prototypes and stuff, but not '\xHH' hex character constants.
3462 These don't provoke an error unfortunately, instead are silently treated
3463 as 'x'. The following induces an error, until -std is added to get
3464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3465 array size at least. It's necessary to write '\x00'==0 to get something
3466 that's true only with -std. */
3467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3468
3469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3470 inside strings and character constants. */
3471 #define FOO(x) 'x'
3472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3473
3474 int test (int i, double x);
3475 struct s1 {int (*f) (int a);};
3476 struct s2 {int (*f) (double a);};
3477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478 int argc;
3479 char **argv;
3480 int
3481 main ()
3482 {
3483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3490 do
3491 CC="$ac_save_CC $ac_arg"
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_prog_cc_c89=$ac_arg
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
3497 done
3498 rm -f conftest.$ac_ext
3499 CC=$ac_save_CC
3500
3501 fi
3502 # AC_CACHE_VAL
3503 case "x$ac_cv_prog_cc_c89" in
3504 x)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506 $as_echo "none needed" >&6; } ;;
3507 xno)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3509 $as_echo "unsupported" >&6; } ;;
3510 *)
3511 CC="$CC $ac_cv_prog_cc_c89"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3514 esac
3515 if test "x$ac_cv_prog_cc_c89" != xno; then :
3516
3517 fi
3518
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524
3525
3526 ac_ext=c
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3532 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3533 # On Suns, sometimes $CPP names a directory.
3534 if test -n "$CPP" && test -d "$CPP"; then
3535 CPP=
3536 fi
3537 if test -z "$CPP"; then
3538 if ${ac_cv_prog_CPP+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 # Double quotes because CPP needs to be expanded
3542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3543 do
3544 ac_preproc_ok=false
3545 for ac_c_preproc_warn_flag in '' yes
3546 do
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #ifdef __STDC__
3556 # include <limits.h>
3557 #else
3558 # include <assert.h>
3559 #endif
3560 Syntax error
3561 _ACEOF
3562 if ac_fn_c_try_cpp "$LINENO"; then :
3563
3564 else
3565 # Broken: fails on valid input.
3566 continue
3567 fi
3568 rm -f conftest.err conftest.i conftest.$ac_ext
3569
3570 # OK, works on sane cases. Now check whether nonexistent headers
3571 # can be detected and how.
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 #include <ac_nonexistent.h>
3575 _ACEOF
3576 if ac_fn_c_try_cpp "$LINENO"; then :
3577 # Broken: success on invalid input.
3578 continue
3579 else
3580 # Passes both tests.
3581 ac_preproc_ok=:
3582 break
3583 fi
3584 rm -f conftest.err conftest.i conftest.$ac_ext
3585
3586 done
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.i conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then :
3590 break
3591 fi
3592
3593 done
3594 ac_cv_prog_CPP=$CPP
3595
3596 fi
3597 CPP=$ac_cv_prog_CPP
3598 else
3599 ac_cv_prog_CPP=$CPP
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3602 $as_echo "$CPP" >&6; }
3603 ac_preproc_ok=false
3604 for ac_c_preproc_warn_flag in '' yes
3605 do
3606 # Use a header file that comes with gcc, so configuring glibc
3607 # with a fresh cross-compiler works.
3608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 # <limits.h> exists even on freestanding compilers.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #ifdef __STDC__
3615 # include <limits.h>
3616 #else
3617 # include <assert.h>
3618 #endif
3619 Syntax error
3620 _ACEOF
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3622
3623 else
3624 # Broken: fails on valid input.
3625 continue
3626 fi
3627 rm -f conftest.err conftest.i conftest.$ac_ext
3628
3629 # OK, works on sane cases. Now check whether nonexistent headers
3630 # can be detected and how.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <ac_nonexistent.h>
3634 _ACEOF
3635 if ac_fn_c_try_cpp "$LINENO"; then :
3636 # Broken: success on invalid input.
3637 continue
3638 else
3639 # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3642 fi
3643 rm -f conftest.err conftest.i conftest.$ac_ext
3644
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.i conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then :
3649
3650 else
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details" "$LINENO" 5; }
3655 fi
3656
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
3663
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3665 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3666 if ${ac_cv_path_GREP+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -z "$GREP"; then
3670 ac_path_GREP_found=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_prog in grep ggrep; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3680 as_fn_executable_p "$ac_path_GREP" || continue
3681 # Check for GNU ac_path_GREP and select it if it is found.
3682 # Check for GNU $ac_path_GREP
3683 case `"$ac_path_GREP" --version 2>&1` in
3684 *GNU*)
3685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3686 *)
3687 ac_count=0
3688 $as_echo_n 0123456789 >"conftest.in"
3689 while :
3690 do
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 $as_echo 'GREP' >> "conftest.nl"
3695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697 as_fn_arith $ac_count + 1 && ac_count=$as_val
3698 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_GREP="$ac_path_GREP"
3701 ac_path_GREP_max=$ac_count
3702 fi
3703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3705 done
3706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 esac
3708
3709 $ac_path_GREP_found && break 3
3710 done
3711 done
3712 done
3713 IFS=$as_save_IFS
3714 if test -z "$ac_cv_path_GREP"; then
3715 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3716 fi
3717 else
3718 ac_cv_path_GREP=$GREP
3719 fi
3720
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3723 $as_echo "$ac_cv_path_GREP" >&6; }
3724 GREP="$ac_cv_path_GREP"
3725
3726
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3728 $as_echo_n "checking for egrep... " >&6; }
3729 if ${ac_cv_path_EGREP+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3733 then ac_cv_path_EGREP="$GREP -E"
3734 else
3735 if test -z "$EGREP"; then
3736 ac_path_EGREP_found=false
3737 # Loop through the user's path and test for each of PROGNAME-LIST
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in egrep; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3746 as_fn_executable_p "$ac_path_EGREP" || continue
3747 # Check for GNU ac_path_EGREP and select it if it is found.
3748 # Check for GNU $ac_path_EGREP
3749 case `"$ac_path_EGREP" --version 2>&1` in
3750 *GNU*)
3751 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3752 *)
3753 ac_count=0
3754 $as_echo_n 0123456789 >"conftest.in"
3755 while :
3756 do
3757 cat "conftest.in" "conftest.in" >"conftest.tmp"
3758 mv "conftest.tmp" "conftest.in"
3759 cp "conftest.in" "conftest.nl"
3760 $as_echo 'EGREP' >> "conftest.nl"
3761 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3763 as_fn_arith $ac_count + 1 && ac_count=$as_val
3764 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3765 # Best one so far, save it but keep looking for a better one
3766 ac_cv_path_EGREP="$ac_path_EGREP"
3767 ac_path_EGREP_max=$ac_count
3768 fi
3769 # 10*(2^10) chars as input seems more than enough
3770 test $ac_count -gt 10 && break
3771 done
3772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3773 esac
3774
3775 $ac_path_EGREP_found && break 3
3776 done
3777 done
3778 done
3779 IFS=$as_save_IFS
3780 if test -z "$ac_cv_path_EGREP"; then
3781 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3782 fi
3783 else
3784 ac_cv_path_EGREP=$EGREP
3785 fi
3786
3787 fi
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3790 $as_echo "$ac_cv_path_EGREP" >&6; }
3791 EGREP="$ac_cv_path_EGREP"
3792
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3795 $as_echo_n "checking for ANSI C header files... " >&6; }
3796 if ${ac_cv_header_stdc+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #include <stdlib.h>
3802 #include <stdarg.h>
3803 #include <string.h>
3804 #include <float.h>
3805
3806 int
3807 main ()
3808 {
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_header_stdc=yes
3816 else
3817 ac_cv_header_stdc=no
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820
3821 if test $ac_cv_header_stdc = yes; then
3822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <string.h>
3826
3827 _ACEOF
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "memchr" >/dev/null 2>&1; then :
3830
3831 else
3832 ac_cv_header_stdc=no
3833 fi
3834 rm -f conftest*
3835
3836 fi
3837
3838 if test $ac_cv_header_stdc = yes; then
3839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdlib.h>
3843
3844 _ACEOF
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 $EGREP "free" >/dev/null 2>&1; then :
3847
3848 else
3849 ac_cv_header_stdc=no
3850 fi
3851 rm -f conftest*
3852
3853 fi
3854
3855 if test $ac_cv_header_stdc = yes; then
3856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3857 if test "$cross_compiling" = yes; then :
3858 :
3859 else
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <ctype.h>
3863 #include <stdlib.h>
3864 #if ((' ' & 0x0FF) == 0x020)
3865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3867 #else
3868 # define ISLOWER(c) \
3869 (('a' <= (c) && (c) <= 'i') \
3870 || ('j' <= (c) && (c) <= 'r') \
3871 || ('s' <= (c) && (c) <= 'z'))
3872 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3873 #endif
3874
3875 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3876 int
3877 main ()
3878 {
3879 int i;
3880 for (i = 0; i < 256; i++)
3881 if (XOR (islower (i), ISLOWER (i))
3882 || toupper (i) != TOUPPER (i))
3883 return 2;
3884 return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_run "$LINENO"; then :
3888
3889 else
3890 ac_cv_header_stdc=no
3891 fi
3892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3893 conftest.$ac_objext conftest.beam conftest.$ac_ext
3894 fi
3895
3896 fi
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3899 $as_echo "$ac_cv_header_stdc" >&6; }
3900 if test $ac_cv_header_stdc = yes; then
3901
3902 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3903
3904 fi
3905
3906 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3907 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3908 inttypes.h stdint.h unistd.h
3909 do :
3910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3911 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3912 "
3913 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3914 cat >>confdefs.h <<_ACEOF
3915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3916 _ACEOF
3917
3918 fi
3919
3920 done
3921
3922
3923
3924 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3925 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3926 MINIX=yes
3927 else
3928 MINIX=
3929 fi
3930
3931
3932 if test "$MINIX" = yes; then
3933
3934 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3935
3936
3937 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3938
3939
3940 $as_echo "#define _MINIX 1" >>confdefs.h
3941
3942 fi
3943
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3946 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3947 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952
3953 # define __EXTENSIONS__ 1
3954 $ac_includes_default
3955 int
3956 main ()
3957 {
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_safe_to_define___extensions__=yes
3965 else
3966 ac_cv_safe_to_define___extensions__=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3971 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3972 test $ac_cv_safe_to_define___extensions__ = yes &&
3973 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3974
3975 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3976
3977 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3978
3979 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3980
3981 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3982
3983
3984
3985 #
3986 # Enable large file support
3987 #
3988 # Check whether --enable-largefile was given.
3989 if test "${enable_largefile+set}" = set; then :
3990 enableval=$enable_largefile;
3991 fi
3992
3993 if test "$enable_largefile" != no; then
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3997 if ${ac_cv_sys_largefile_CC+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 ac_cv_sys_largefile_CC=no
4001 if test "$GCC" != yes; then
4002 ac_save_CC=$CC
4003 while :; do
4004 # IRIX 6.2 and later do not support large files by default,
4005 # so use the C compiler's -n32 option if that helps.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <sys/types.h>
4009 /* Check that off_t can represent 2**63 - 1 correctly.
4010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4011 since some C++ compilers masquerading as C compilers
4012 incorrectly reject 9223372036854775807. */
4013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4015 && LARGE_OFF_T % 2147483647 == 1)
4016 ? 1 : -1];
4017 int
4018 main ()
4019 {
4020
4021 ;
4022 return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 break
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext
4029 CC="$CC -n32"
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_sys_largefile_CC=' -n32'; break
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext
4034 break
4035 done
4036 CC=$ac_save_CC
4037 rm -f conftest.$ac_ext
4038 fi
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4041 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4042 if test "$ac_cv_sys_largefile_CC" != no; then
4043 CC=$CC$ac_cv_sys_largefile_CC
4044 fi
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4048 if ${ac_cv_sys_file_offset_bits+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 while :; do
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <sys/types.h>
4055 /* Check that off_t can represent 2**63 - 1 correctly.
4056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4057 since some C++ compilers masquerading as C compilers
4058 incorrectly reject 9223372036854775807. */
4059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4061 && LARGE_OFF_T % 2147483647 == 1)
4062 ? 1 : -1];
4063 int
4064 main ()
4065 {
4066
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072 ac_cv_sys_file_offset_bits=no; break
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 #define _FILE_OFFSET_BITS 64
4078 #include <sys/types.h>
4079 /* Check that off_t can represent 2**63 - 1 correctly.
4080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4081 since some C++ compilers masquerading as C compilers
4082 incorrectly reject 9223372036854775807. */
4083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4085 && LARGE_OFF_T % 2147483647 == 1)
4086 ? 1 : -1];
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_sys_file_offset_bits=64; break
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_cv_sys_file_offset_bits=unknown
4100 break
4101 done
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4105 case $ac_cv_sys_file_offset_bits in #(
4106 no | unknown) ;;
4107 *)
4108 cat >>confdefs.h <<_ACEOF
4109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4110 _ACEOF
4111 ;;
4112 esac
4113 rm -rf conftest*
4114 if test $ac_cv_sys_file_offset_bits = unknown; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4117 if ${ac_cv_sys_large_files+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 while :; do
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <sys/types.h>
4124 /* Check that off_t can represent 2**63 - 1 correctly.
4125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4126 since some C++ compilers masquerading as C compilers
4127 incorrectly reject 9223372036854775807. */
4128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4130 && LARGE_OFF_T % 2147483647 == 1)
4131 ? 1 : -1];
4132 int
4133 main ()
4134 {
4135
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_sys_large_files=no; break
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #define _LARGE_FILES 1
4147 #include <sys/types.h>
4148 /* Check that off_t can represent 2**63 - 1 correctly.
4149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150 since some C++ compilers masquerading as C compilers
4151 incorrectly reject 9223372036854775807. */
4152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154 && LARGE_OFF_T % 2147483647 == 1)
4155 ? 1 : -1];
4156 int
4157 main ()
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_sys_large_files=1; break
4166 fi
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 ac_cv_sys_large_files=unknown
4169 break
4170 done
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4173 $as_echo "$ac_cv_sys_large_files" >&6; }
4174 case $ac_cv_sys_large_files in #(
4175 no | unknown) ;;
4176 *)
4177 cat >>confdefs.h <<_ACEOF
4178 #define _LARGE_FILES $ac_cv_sys_large_files
4179 _ACEOF
4180 ;;
4181 esac
4182 rm -rf conftest*
4183 fi
4184
4185
4186 fi
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4189 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4190 if ${ac_cv_sys_largefile_source+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 while :; do
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #include <sys/types.h> /* for off_t */
4197 #include <stdio.h>
4198 int
4199 main ()
4200 {
4201 int (*fp) (FILE *, off_t, int) = fseeko;
4202 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_link "$LINENO"; then :
4208 ac_cv_sys_largefile_source=no; break
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #define _LARGEFILE_SOURCE 1
4215 #include <sys/types.h> /* for off_t */
4216 #include <stdio.h>
4217 int
4218 main ()
4219 {
4220 int (*fp) (FILE *, off_t, int) = fseeko;
4221 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 if ac_fn_c_try_link "$LINENO"; then :
4227 ac_cv_sys_largefile_source=1; break
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext \
4230 conftest$ac_exeext conftest.$ac_ext
4231 ac_cv_sys_largefile_source=unknown
4232 break
4233 done
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4236 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4237 case $ac_cv_sys_largefile_source in #(
4238 no | unknown) ;;
4239 *)
4240 cat >>confdefs.h <<_ACEOF
4241 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4242 _ACEOF
4243 ;;
4244 esac
4245 rm -rf conftest*
4246
4247 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4248 # in glibc 2.1.3, but that breaks too many other things.
4249 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4250 if test $ac_cv_sys_largefile_source != unknown; then
4251
4252 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4253
4254 fi
4255
4256
4257 LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
4258 LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
4259 LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
4260
4261
4262
4263
4264
4265 # Enable RFC 3542 APIs on macOS
4266
4267 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4271 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4272 set x ${MAKE-make}
4273 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4274 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 cat >conftest.make <<\_ACEOF
4278 SHELL = /bin/sh
4279 all:
4280 @echo '@@@%%%=$(MAKE)=@@@%%%'
4281 _ACEOF
4282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4283 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4284 *@@@%%%=?*=@@@%%%*)
4285 eval ac_cv_prog_make_${ac_make}_set=yes;;
4286 *)
4287 eval ac_cv_prog_make_${ac_make}_set=no;;
4288 esac
4289 rm -f conftest.make
4290 fi
4291 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 SET_MAKE=
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 SET_MAKE="MAKE=${MAKE-make}"
4299 fi
4300
4301
4302 case `pwd` in
4303 *\ * | *\ *)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4305 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4306 esac
4307
4308
4309
4310 macro_version='2.4.6'
4311 macro_revision='2.4.6'
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325 ltmain=$ac_aux_dir/ltmain.sh
4326
4327 # Backslashify metacharacters that are still active within
4328 # double-quoted strings.
4329 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4330
4331 # Same as above, but do not quote variable references.
4332 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4333
4334 # Sed substitution to delay expansion of an escaped shell variable in a
4335 # double_quote_subst'ed string.
4336 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4337
4338 # Sed substitution to delay expansion of an escaped single quote.
4339 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4340
4341 # Sed substitution to avoid accidental globbing in evaled expressions
4342 no_glob_subst='s/\*/\\\*/g'
4343
4344 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4345 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4346 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4349 $as_echo_n "checking how to print strings... " >&6; }
4350 # Test print first, because it will be a builtin if present.
4351 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4352 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4353 ECHO='print -r --'
4354 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4355 ECHO='printf %s\n'
4356 else
4357 # Use this function as a fallback that always works.
4358 func_fallback_echo ()
4359 {
4360 eval 'cat <<_LTECHO_EOF
4361 $1
4362 _LTECHO_EOF'
4363 }
4364 ECHO='func_fallback_echo'
4365 fi
4366
4367 # func_echo_all arg...
4368 # Invoke $ECHO with all args, space-separated.
4369 func_echo_all ()
4370 {
4371 $ECHO ""
4372 }
4373
4374 case $ECHO in
4375 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4376 $as_echo "printf" >&6; } ;;
4377 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4378 $as_echo "print -r" >&6; } ;;
4379 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4380 $as_echo "cat" >&6; } ;;
4381 esac
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4397 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4398 if ${ac_cv_path_SED+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4402 for ac_i in 1 2 3 4 5 6 7; do
4403 ac_script="$ac_script$as_nl$ac_script"
4404 done
4405 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4406 { ac_script=; unset ac_script;}
4407 if test -z "$SED"; then
4408 ac_path_SED_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in sed gsed; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p "$ac_path_SED" || continue
4419 # Check for GNU ac_path_SED and select it if it is found.
4420 # Check for GNU $ac_path_SED
4421 case `"$ac_path_SED" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4424 *)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo '' >> "conftest.nl"
4433 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_SED_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_SED="$ac_path_SED"
4439 ac_path_SED_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447 $ac_path_SED_found && break 3
4448 done
4449 done
4450 done
4451 IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_SED"; then
4453 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4454 fi
4455 else
4456 ac_cv_path_SED=$SED
4457 fi
4458
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4461 $as_echo "$ac_cv_path_SED" >&6; }
4462 SED="$ac_cv_path_SED"
4463 rm -f conftest.sed
4464
4465 test -z "$SED" && SED=sed
4466 Xsed="$SED -e 1s/^X//"
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4479 $as_echo_n "checking for fgrep... " >&6; }
4480 if ${ac_cv_path_FGREP+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4484 then ac_cv_path_FGREP="$GREP -F"
4485 else
4486 if test -z "$FGREP"; then
4487 ac_path_FGREP_found=false
4488 # Loop through the user's path and test for each of PROGNAME-LIST
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_prog in fgrep; do
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4497 as_fn_executable_p "$ac_path_FGREP" || continue
4498 # Check for GNU ac_path_FGREP and select it if it is found.
4499 # Check for GNU $ac_path_FGREP
4500 case `"$ac_path_FGREP" --version 2>&1` in
4501 *GNU*)
4502 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4503 *)
4504 ac_count=0
4505 $as_echo_n 0123456789 >"conftest.in"
4506 while :
4507 do
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 $as_echo 'FGREP' >> "conftest.nl"
4512 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514 as_fn_arith $ac_count + 1 && ac_count=$as_val
4515 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_FGREP="$ac_path_FGREP"
4518 ac_path_FGREP_max=$ac_count
4519 fi
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4522 done
4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526 $ac_path_FGREP_found && break 3
4527 done
4528 done
4529 done
4530 IFS=$as_save_IFS
4531 if test -z "$ac_cv_path_FGREP"; then
4532 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533 fi
4534 else
4535 ac_cv_path_FGREP=$FGREP
4536 fi
4537
4538 fi
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4541 $as_echo "$ac_cv_path_FGREP" >&6; }
4542 FGREP="$ac_cv_path_FGREP"
4543
4544
4545 test -z "$GREP" && GREP=grep
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 # Check whether --with-gnu-ld was given.
4566 if test "${with_gnu_ld+set}" = set; then :
4567 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4568 else
4569 with_gnu_ld=no
4570 fi
4571
4572 ac_prog=ld
4573 if test yes = "$GCC"; then
4574 # Check if gcc -print-prog-name=ld gives a path.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4576 $as_echo_n "checking for ld used by $CC... " >&6; }
4577 case $host in
4578 *-*-mingw*)
4579 # gcc leaves a trailing carriage return, which upsets mingw
4580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4581 *)
4582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4583 esac
4584 case $ac_prog in
4585 # Accept absolute paths.
4586 [\\/]* | ?:[\\/]*)
4587 re_direlt='/[^/][^/]*/\.\./'
4588 # Canonicalize the pathname of ld
4589 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4590 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4591 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4592 done
4593 test -z "$LD" && LD=$ac_prog
4594 ;;
4595 "")
4596 # If it fails, then pretend we aren't using GCC.
4597 ac_prog=ld
4598 ;;
4599 *)
4600 # If it is relative, then search for the first ld in PATH.
4601 with_gnu_ld=unknown
4602 ;;
4603 esac
4604 elif test yes = "$with_gnu_ld"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4606 $as_echo_n "checking for GNU ld... " >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4609 $as_echo_n "checking for non-GNU ld... " >&6; }
4610 fi
4611 if ${lt_cv_path_LD+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -z "$LD"; then
4615 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4616 for ac_dir in $PATH; do
4617 IFS=$lt_save_ifs
4618 test -z "$ac_dir" && ac_dir=.
4619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4620 lt_cv_path_LD=$ac_dir/$ac_prog
4621 # Check to see if the program is GNU ld. I'd rather use --version,
4622 # but apparently some variants of GNU ld only accept -v.
4623 # Break only if it was the GNU/non-GNU ld that we prefer.
4624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4625 *GNU* | *'with BFD'*)
4626 test no != "$with_gnu_ld" && break
4627 ;;
4628 *)
4629 test yes != "$with_gnu_ld" && break
4630 ;;
4631 esac
4632 fi
4633 done
4634 IFS=$lt_save_ifs
4635 else
4636 lt_cv_path_LD=$LD # Let the user override the test with a path.
4637 fi
4638 fi
4639
4640 LD=$lt_cv_path_LD
4641 if test -n "$LD"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4643 $as_echo "$LD" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4651 if ${lt_cv_prog_gnu_ld+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4655 case `$LD -v 2>&1 </dev/null` in
4656 *GNU* | *'with BFD'*)
4657 lt_cv_prog_gnu_ld=yes
4658 ;;
4659 *)
4660 lt_cv_prog_gnu_ld=no
4661 ;;
4662 esac
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4665 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4666 with_gnu_ld=$lt_cv_prog_gnu_ld
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4677 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4678 if ${lt_cv_path_NM+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$NM"; then
4682 # Let the user override the test.
4683 lt_cv_path_NM=$NM
4684 else
4685 lt_nm_to_check=${ac_tool_prefix}nm
4686 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4687 lt_nm_to_check="$lt_nm_to_check nm"
4688 fi
4689 for lt_tmp_nm in $lt_nm_to_check; do
4690 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4691 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4692 IFS=$lt_save_ifs
4693 test -z "$ac_dir" && ac_dir=.
4694 tmp_nm=$ac_dir/$lt_tmp_nm
4695 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4696 # Check to see if the nm accepts a BSD-compat flag.
4697 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4698 # nm: unknown option "B" ignored
4699 # Tru64's nm complains that /dev/null is an invalid object file
4700 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4701 case $build_os in
4702 mingw*) lt_bad_file=conftest.nm/nofile ;;
4703 *) lt_bad_file=/dev/null ;;
4704 esac
4705 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4706 *$lt_bad_file* | *'Invalid file or object type'*)
4707 lt_cv_path_NM="$tmp_nm -B"
4708 break 2
4709 ;;
4710 *)
4711 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4712 */dev/null*)
4713 lt_cv_path_NM="$tmp_nm -p"
4714 break 2
4715 ;;
4716 *)
4717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4718 continue # so that we can try to find one that supports BSD flags
4719 ;;
4720 esac
4721 ;;
4722 esac
4723 fi
4724 done
4725 IFS=$lt_save_ifs
4726 done
4727 : ${lt_cv_path_NM=no}
4728 fi
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4731 $as_echo "$lt_cv_path_NM" >&6; }
4732 if test no != "$lt_cv_path_NM"; then
4733 NM=$lt_cv_path_NM
4734 else
4735 # Didn't find any BSD compatible name lister, look for dumpbin.
4736 if test -n "$DUMPBIN"; then :
4737 # Let the user override the test.
4738 else
4739 if test -n "$ac_tool_prefix"; then
4740 for ac_prog in dumpbin "link -dump"
4741 do
4742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_prog_DUMPBIN+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 if test -n "$DUMPBIN"; then
4750 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 DUMPBIN=$ac_cv_prog_DUMPBIN
4770 if test -n "$DUMPBIN"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4772 $as_echo "$DUMPBIN" >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779 test -n "$DUMPBIN" && break
4780 done
4781 fi
4782 if test -z "$DUMPBIN"; then
4783 ac_ct_DUMPBIN=$DUMPBIN
4784 for ac_prog in dumpbin "link -dump"
4785 do
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$ac_ct_DUMPBIN"; then
4794 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807 done
4808 done
4809 IFS=$as_save_IFS
4810
4811 fi
4812 fi
4813 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4814 if test -n "$ac_ct_DUMPBIN"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4816 $as_echo "$ac_ct_DUMPBIN" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822
4823 test -n "$ac_ct_DUMPBIN" && break
4824 done
4825
4826 if test "x$ac_ct_DUMPBIN" = x; then
4827 DUMPBIN=":"
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 DUMPBIN=$ac_ct_DUMPBIN
4836 fi
4837 fi
4838
4839 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4840 *COFF*)
4841 DUMPBIN="$DUMPBIN -symbols -headers"
4842 ;;
4843 *)
4844 DUMPBIN=:
4845 ;;
4846 esac
4847 fi
4848
4849 if test : != "$DUMPBIN"; then
4850 NM=$DUMPBIN
4851 fi
4852 fi
4853 test -z "$NM" && NM=nm
4854
4855
4856
4857
4858
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4861 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4862 if ${lt_cv_nm_interface+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 lt_cv_nm_interface="BSD nm"
4866 echo "int some_variable = 0;" > conftest.$ac_ext
4867 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4868 (eval "$ac_compile" 2>conftest.err)
4869 cat conftest.err >&5
4870 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4871 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4872 cat conftest.err >&5
4873 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4874 cat conftest.out >&5
4875 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4876 lt_cv_nm_interface="MS dumpbin"
4877 fi
4878 rm -f conftest*
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4881 $as_echo "$lt_cv_nm_interface" >&6; }
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4884 $as_echo_n "checking whether ln -s works... " >&6; }
4885 LN_S=$as_ln_s
4886 if test "$LN_S" = "ln -s"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4891 $as_echo "no, using $LN_S" >&6; }
4892 fi
4893
4894 # find the maximum length of command line arguments
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4896 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4897 if ${lt_cv_sys_max_cmd_len+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 i=0
4901 teststring=ABCD
4902
4903 case $build_os in
4904 msdosdjgpp*)
4905 # On DJGPP, this test can blow up pretty badly due to problems in libc
4906 # (any single argument exceeding 2000 bytes causes a buffer overrun
4907 # during glob expansion). Even if it were fixed, the result of this
4908 # check would be larger than it should be.
4909 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4910 ;;
4911
4912 gnu*)
4913 # Under GNU Hurd, this test is not required because there is
4914 # no limit to the length of command line arguments.
4915 # Libtool will interpret -1 as no limit whatsoever
4916 lt_cv_sys_max_cmd_len=-1;
4917 ;;
4918
4919 cygwin* | mingw* | cegcc*)
4920 # On Win9x/ME, this test blows up -- it succeeds, but takes
4921 # about 5 minutes as the teststring grows exponentially.
4922 # Worse, since 9x/ME are not pre-emptively multitasking,
4923 # you end up with a "frozen" computer, even though with patience
4924 # the test eventually succeeds (with a max line length of 256k).
4925 # Instead, let's just punt: use the minimum linelength reported by
4926 # all of the supported platforms: 8192 (on NT/2K/XP).
4927 lt_cv_sys_max_cmd_len=8192;
4928 ;;
4929
4930 mint*)
4931 # On MiNT this can take a long time and run out of memory.
4932 lt_cv_sys_max_cmd_len=8192;
4933 ;;
4934
4935 amigaos*)
4936 # On AmigaOS with pdksh, this test takes hours, literally.
4937 # So we just punt and use a minimum line length of 8192.
4938 lt_cv_sys_max_cmd_len=8192;
4939 ;;
4940
4941 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4942 # This has been around since 386BSD, at least. Likely further.
4943 if test -x /sbin/sysctl; then
4944 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4945 elif test -x /usr/sbin/sysctl; then
4946 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4947 else
4948 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4949 fi
4950 # And add a safety zone
4951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4953 ;;
4954
4955 interix*)
4956 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4957 lt_cv_sys_max_cmd_len=196608
4958 ;;
4959
4960 os2*)
4961 # The test takes a long time on OS/2.
4962 lt_cv_sys_max_cmd_len=8192
4963 ;;
4964
4965 osf*)
4966 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4967 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4968 # nice to cause kernel panics so lets avoid the loop below.
4969 # First set a reasonable default.
4970 lt_cv_sys_max_cmd_len=16384
4971 #
4972 if test -x /sbin/sysconfig; then
4973 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4974 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4975 esac
4976 fi
4977 ;;
4978 sco3.2v5*)
4979 lt_cv_sys_max_cmd_len=102400
4980 ;;
4981 sysv5* | sco5v6* | sysv4.2uw2*)
4982 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4983 if test -n "$kargmax"; then
4984 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4985 else
4986 lt_cv_sys_max_cmd_len=32768
4987 fi
4988 ;;
4989 *)
4990 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4991 if test -n "$lt_cv_sys_max_cmd_len" && \
4992 test undefined != "$lt_cv_sys_max_cmd_len"; then
4993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4995 else
4996 # Make teststring a little bigger before we do anything with it.
4997 # a 1K string should be a reasonable start.
4998 for i in 1 2 3 4 5 6 7 8; do
4999 teststring=$teststring$teststring
5000 done
5001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5002 # If test is not a shell built-in, we'll probably end up computing a
5003 # maximum length that is only half of the actual maximum length, but
5004 # we can't tell.
5005 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5006 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5007 test 17 != "$i" # 1/2 MB should be enough
5008 do
5009 i=`expr $i + 1`
5010 teststring=$teststring$teststring
5011 done
5012 # Only check the string length outside the loop.
5013 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5014 teststring=
5015 # Add a significant safety factor because C++ compilers can tack on
5016 # massive amounts of additional arguments before passing them to the
5017 # linker. It appears as though 1/2 is a usable value.
5018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5019 fi
5020 ;;
5021 esac
5022
5023 fi
5024
5025 if test -n "$lt_cv_sys_max_cmd_len"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5027 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5030 $as_echo "none" >&6; }
5031 fi
5032 max_cmd_len=$lt_cv_sys_max_cmd_len
5033
5034
5035
5036
5037
5038
5039 : ${CP="cp -f"}
5040 : ${MV="mv -f"}
5041 : ${RM="rm -f"}
5042
5043 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5044 lt_unset=unset
5045 else
5046 lt_unset=false
5047 fi
5048
5049
5050
5051
5052
5053 # test EBCDIC or ASCII
5054 case `echo X|tr X '\101'` in
5055 A) # ASCII based system
5056 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5057 lt_SP2NL='tr \040 \012'
5058 lt_NL2SP='tr \015\012 \040\040'
5059 ;;
5060 *) # EBCDIC based system
5061 lt_SP2NL='tr \100 \n'
5062 lt_NL2SP='tr \r\n \100\100'
5063 ;;
5064 esac
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5075 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5076 if ${lt_cv_to_host_file_cmd+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 case $host in
5080 *-*-mingw* )
5081 case $build in
5082 *-*-mingw* ) # actually msys
5083 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5084 ;;
5085 *-*-cygwin* )
5086 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5087 ;;
5088 * ) # otherwise, assume *nix
5089 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5090 ;;
5091 esac
5092 ;;
5093 *-*-cygwin* )
5094 case $build in
5095 *-*-mingw* ) # actually msys
5096 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5097 ;;
5098 *-*-cygwin* )
5099 lt_cv_to_host_file_cmd=func_convert_file_noop
5100 ;;
5101 * ) # otherwise, assume *nix
5102 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5103 ;;
5104 esac
5105 ;;
5106 * ) # unhandled hosts (and "normal" native builds)
5107 lt_cv_to_host_file_cmd=func_convert_file_noop
5108 ;;
5109 esac
5110
5111 fi
5112
5113 to_host_file_cmd=$lt_cv_to_host_file_cmd
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5115 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5122 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5123 if ${lt_cv_to_tool_file_cmd+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 #assume ordinary cross tools, or native build.
5127 lt_cv_to_tool_file_cmd=func_convert_file_noop
5128 case $host in
5129 *-*-mingw* )
5130 case $build in
5131 *-*-mingw* ) # actually msys
5132 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5133 ;;
5134 esac
5135 ;;
5136 esac
5137
5138 fi
5139
5140 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5142 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5149 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5150 if ${lt_cv_ld_reload_flag+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 lt_cv_ld_reload_flag='-r'
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5156 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5157 reload_flag=$lt_cv_ld_reload_flag
5158 case $reload_flag in
5159 "" | " "*) ;;
5160 *) reload_flag=" $reload_flag" ;;
5161 esac
5162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5163 case $host_os in
5164 cygwin* | mingw* | pw32* | cegcc*)
5165 if test yes != "$GCC"; then
5166 reload_cmds=false
5167 fi
5168 ;;
5169 darwin*)
5170 if test yes = "$GCC"; then
5171 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5172 else
5173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5174 fi
5175 ;;
5176 esac
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186 if test -n "$ac_tool_prefix"; then
5187 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5188 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_OBJDUMP+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$OBJDUMP"; then
5195 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 OBJDUMP=$ac_cv_prog_OBJDUMP
5215 if test -n "$OBJDUMP"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5217 $as_echo "$OBJDUMP" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 fi
5225 if test -z "$ac_cv_prog_OBJDUMP"; then
5226 ac_ct_OBJDUMP=$OBJDUMP
5227 # Extract the first word of "objdump", so it can be a program name with args.
5228 set dummy objdump; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$ac_ct_OBJDUMP"; then
5235 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5255 if test -n "$ac_ct_OBJDUMP"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5257 $as_echo "$ac_ct_OBJDUMP" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263 if test "x$ac_ct_OBJDUMP" = x; then
5264 OBJDUMP="false"
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267 yes:)
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272 OBJDUMP=$ac_ct_OBJDUMP
5273 fi
5274 else
5275 OBJDUMP="$ac_cv_prog_OBJDUMP"
5276 fi
5277
5278 test -z "$OBJDUMP" && OBJDUMP=objdump
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5289 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5290 if ${lt_cv_deplibs_check_method+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 lt_cv_file_magic_cmd='$MAGIC_CMD'
5294 lt_cv_file_magic_test_file=
5295 lt_cv_deplibs_check_method='unknown'
5296 # Need to set the preceding variable on all platforms that support
5297 # interlibrary dependencies.
5298 # 'none' -- dependencies not supported.
5299 # 'unknown' -- same as none, but documents that we really don't know.
5300 # 'pass_all' -- all dependencies passed with no checks.
5301 # 'test_compile' -- check by making test program.
5302 # 'file_magic [[regex]]' -- check by looking for files in library path
5303 # that responds to the $file_magic_cmd with a given extended regex.
5304 # If you have 'file' or equivalent on your system and you're not sure
5305 # whether 'pass_all' will *always* work, you probably want this one.
5306
5307 case $host_os in
5308 aix[4-9]*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311
5312 beos*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 bsdi[45]*)
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5318 lt_cv_file_magic_cmd='/usr/bin/file -L'
5319 lt_cv_file_magic_test_file=/shlib/libc.so
5320 ;;
5321
5322 cygwin*)
5323 # func_win32_libid is a shell function defined in ltmain.sh
5324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5325 lt_cv_file_magic_cmd='func_win32_libid'
5326 ;;
5327
5328 mingw* | pw32*)
5329 # Base MSYS/MinGW do not provide the 'file' command needed by
5330 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5331 # unless we find 'file', for example because we are cross-compiling.
5332 if ( file / ) >/dev/null 2>&1; then
5333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5334 lt_cv_file_magic_cmd='func_win32_libid'
5335 else
5336 # Keep this pattern in sync with the one in func_win32_libid.
5337 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5338 lt_cv_file_magic_cmd='$OBJDUMP -f'
5339 fi
5340 ;;
5341
5342 cegcc*)
5343 # use the weaker test based on 'objdump'. See mingw*.
5344 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5345 lt_cv_file_magic_cmd='$OBJDUMP -f'
5346 ;;
5347
5348 darwin* | rhapsody*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 freebsd* | dragonfly*)
5353 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5354 case $host_cpu in
5355 i*86 )
5356 # Not sure whether the presence of OpenBSD here was a mistake.
5357 # Let's accept both of them until this is cleared up.
5358 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5359 lt_cv_file_magic_cmd=/usr/bin/file
5360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5361 ;;
5362 esac
5363 else
5364 lt_cv_deplibs_check_method=pass_all
5365 fi
5366 ;;
5367
5368 haiku*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371
5372 hpux10.20* | hpux11*)
5373 lt_cv_file_magic_cmd=/usr/bin/file
5374 case $host_cpu in
5375 ia64*)
5376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5377 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5378 ;;
5379 hppa*64*)
5380 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]'
5381 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5382 ;;
5383 *)
5384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5385 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5386 ;;
5387 esac
5388 ;;
5389
5390 interix[3-9]*)
5391 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5393 ;;
5394
5395 irix5* | irix6* | nonstopux*)
5396 case $LD in
5397 *-32|*"-32 ") libmagic=32-bit;;
5398 *-n32|*"-n32 ") libmagic=N32;;
5399 *-64|*"-64 ") libmagic=64-bit;;
5400 *) libmagic=never-match;;
5401 esac
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404
5405 # This must be glibc/ELF.
5406 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409
5410 netbsd*)
5411 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5413 else
5414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5415 fi
5416 ;;
5417
5418 newos6*)
5419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5420 lt_cv_file_magic_cmd=/usr/bin/file
5421 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5422 ;;
5423
5424 *nto* | *qnx*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428 openbsd* | bitrig*)
5429 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5431 else
5432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5433 fi
5434 ;;
5435
5436 osf3* | osf4* | osf5*)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439
5440 rdos*)
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443
5444 solaris*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
5448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451
5452 sysv4 | sysv4.3*)
5453 case $host_vendor in
5454 motorola)
5455 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]'
5456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5457 ;;
5458 ncr)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461 sequent)
5462 lt_cv_file_magic_cmd='/bin/file'
5463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5464 ;;
5465 sni)
5466 lt_cv_file_magic_cmd='/bin/file'
5467 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5468 lt_cv_file_magic_test_file=/lib/libc.so
5469 ;;
5470 siemens)
5471 lt_cv_deplibs_check_method=pass_all
5472 ;;
5473 pc)
5474 lt_cv_deplibs_check_method=pass_all
5475 ;;
5476 esac
5477 ;;
5478
5479 tpf*)
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482 os2*)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485 esac
5486
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5489 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5490
5491 file_magic_glob=
5492 want_nocaseglob=no
5493 if test "$build" = "$host"; then
5494 case $host_os in
5495 mingw* | pw32*)
5496 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5497 want_nocaseglob=yes
5498 else
5499 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5500 fi
5501 ;;
5502 esac
5503 fi
5504
5505 file_magic_cmd=$lt_cv_file_magic_cmd
5506 deplibs_check_method=$lt_cv_deplibs_check_method
5507 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_DLLTOOL+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$DLLTOOL"; then
5539 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 DLLTOOL=$ac_cv_prog_DLLTOOL
5559 if test -n "$DLLTOOL"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5561 $as_echo "$DLLTOOL" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 fi
5569 if test -z "$ac_cv_prog_DLLTOOL"; then
5570 ac_ct_DLLTOOL=$DLLTOOL
5571 # Extract the first word of "dlltool", so it can be a program name with args.
5572 set dummy dlltool; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$ac_ct_DLLTOOL"; then
5579 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5599 if test -n "$ac_ct_DLLTOOL"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5601 $as_echo "$ac_ct_DLLTOOL" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607 if test "x$ac_ct_DLLTOOL" = x; then
5608 DLLTOOL="false"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 DLLTOOL=$ac_ct_DLLTOOL
5617 fi
5618 else
5619 DLLTOOL="$ac_cv_prog_DLLTOOL"
5620 fi
5621
5622 test -z "$DLLTOOL" && DLLTOOL=dlltool
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5634 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5635 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 lt_cv_sharedlib_from_linklib_cmd='unknown'
5639
5640 case $host_os in
5641 cygwin* | mingw* | pw32* | cegcc*)
5642 # two different shell functions defined in ltmain.sh;
5643 # decide which one to use based on capabilities of $DLLTOOL
5644 case `$DLLTOOL --help 2>&1` in
5645 *--identify-strict*)
5646 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5647 ;;
5648 *)
5649 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5650 ;;
5651 esac
5652 ;;
5653 *)
5654 # fallback: assume linklib IS sharedlib
5655 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5656 ;;
5657 esac
5658
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5661 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5662 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5663 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5664
5665
5666
5667
5668
5669
5670
5671 if test -n "$ac_tool_prefix"; then
5672 for ac_prog in ar
5673 do
5674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_AR+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$AR"; then
5682 ac_cv_prog_AR="$AR" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 AR=$ac_cv_prog_AR
5702 if test -n "$AR"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5704 $as_echo "$AR" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 test -n "$AR" && break
5712 done
5713 fi
5714 if test -z "$AR"; then
5715 ac_ct_AR=$AR
5716 for ac_prog in ar
5717 do
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$ac_ct_AR"; then
5726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_ac_ct_AR="$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739 done
5740 done
5741 IFS=$as_save_IFS
5742
5743 fi
5744 fi
5745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5746 if test -n "$ac_ct_AR"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5748 $as_echo "$ac_ct_AR" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5752 fi
5753
5754
5755 test -n "$ac_ct_AR" && break
5756 done
5757
5758 if test "x$ac_ct_AR" = x; then
5759 AR="false"
5760 else
5761 case $cross_compiling:$ac_tool_warned in
5762 yes:)
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5765 ac_tool_warned=yes ;;
5766 esac
5767 AR=$ac_ct_AR
5768 fi
5769 fi
5770
5771 : ${AR=ar}
5772 : ${AR_FLAGS=cru}
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5785 $as_echo_n "checking for archiver @FILE support... " >&6; }
5786 if ${lt_cv_ar_at_file+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 lt_cv_ar_at_file=no
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792
5793 int
5794 main ()
5795 {
5796
5797 ;
5798 return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802 echo conftest.$ac_objext > conftest.lst
5803 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5805 (eval $lt_ar_try) 2>&5
5806 ac_status=$?
5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808 test $ac_status = 0; }
5809 if test 0 -eq "$ac_status"; then
5810 # Ensure the archiver fails upon bogus file names.
5811 rm -f conftest.$ac_objext libconftest.a
5812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5813 (eval $lt_ar_try) 2>&5
5814 ac_status=$?
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; }
5817 if test 0 -ne "$ac_status"; then
5818 lt_cv_ar_at_file=@
5819 fi
5820 fi
5821 rm -f conftest.* libconftest.a
5822
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5828 $as_echo "$lt_cv_ar_at_file" >&6; }
5829
5830 if test no = "$lt_cv_ar_at_file"; then
5831 archiver_list_spec=
5832 else
5833 archiver_list_spec=$lt_cv_ar_at_file
5834 fi
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}strip; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_STRIP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$STRIP"; then
5851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 STRIP=$ac_cv_prog_STRIP
5871 if test -n "$STRIP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5873 $as_echo "$STRIP" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880 fi
5881 if test -z "$ac_cv_prog_STRIP"; then
5882 ac_ct_STRIP=$STRIP
5883 # Extract the first word of "strip", so it can be a program name with args.
5884 set dummy strip; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$ac_ct_STRIP"; then
5891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_ac_ct_STRIP="strip"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5911 if test -n "$ac_ct_STRIP"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5913 $as_echo "$ac_ct_STRIP" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919 if test "x$ac_ct_STRIP" = x; then
5920 STRIP=":"
5921 else
5922 case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928 STRIP=$ac_ct_STRIP
5929 fi
5930 else
5931 STRIP="$ac_cv_prog_STRIP"
5932 fi
5933
5934 test -z "$STRIP" && STRIP=:
5935
5936
5937
5938
5939
5940
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_RANLIB+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$RANLIB"; then
5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 RANLIB=$ac_cv_prog_RANLIB
5970 if test -n "$RANLIB"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5972 $as_echo "$RANLIB" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979 fi
5980 if test -z "$ac_cv_prog_RANLIB"; then
5981 ac_ct_RANLIB=$RANLIB
5982 # Extract the first word of "ranlib", so it can be a program name with args.
5983 set dummy ranlib; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$ac_ct_RANLIB"; then
5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_ac_ct_RANLIB="ranlib"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010 if test -n "$ac_ct_RANLIB"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6012 $as_echo "$ac_ct_RANLIB" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018 if test "x$ac_ct_RANLIB" = x; then
6019 RANLIB=":"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027 RANLIB=$ac_ct_RANLIB
6028 fi
6029 else
6030 RANLIB="$ac_cv_prog_RANLIB"
6031 fi
6032
6033 test -z "$RANLIB" && RANLIB=:
6034
6035
6036
6037
6038
6039
6040 # Determine commands to create old-style static archives.
6041 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6042 old_postinstall_cmds='chmod 644 $oldlib'
6043 old_postuninstall_cmds=
6044
6045 if test -n "$RANLIB"; then
6046 case $host_os in
6047 bitrig* | openbsd*)
6048 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6049 ;;
6050 *)
6051 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6052 ;;
6053 esac
6054 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6055 fi
6056
6057 case $host_os in
6058 darwin*)
6059 lock_old_archive_extraction=yes ;;
6060 *)
6061 lock_old_archive_extraction=no ;;
6062 esac
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 for ac_prog in gawk mawk nawk awk
6085 do
6086 # Extract the first word of "$ac_prog", so it can be a program name with args.
6087 set dummy $ac_prog; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_AWK+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$AWK"; then
6094 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_AWK="$ac_prog"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 AWK=$ac_cv_prog_AWK
6114 if test -n "$AWK"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6116 $as_echo "$AWK" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 test -n "$AWK" && break
6124 done
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144 # If no C compiler was specified, use CC.
6145 LTCC=${LTCC-"$CC"}
6146
6147 # If no C compiler flags were specified, use CFLAGS.
6148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6149
6150 # Allow CC to be a program name with arguments.
6151 compiler=$CC
6152
6153
6154 # Check for command to grab the raw symbol name followed by C symbol from nm.
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6156 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6157 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160
6161 # These are sane defaults that work on at least a few old systems.
6162 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6163
6164 # Character class describing NM global symbol codes.
6165 symcode='[BCDEGRST]'
6166
6167 # Regexp to match symbols that can be accessed directly from C.
6168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6169
6170 # Define system-specific variables.
6171 case $host_os in
6172 aix*)
6173 symcode='[BCDT]'
6174 ;;
6175 cygwin* | mingw* | pw32* | cegcc*)
6176 symcode='[ABCDGISTW]'
6177 ;;
6178 hpux*)
6179 if test ia64 = "$host_cpu"; then
6180 symcode='[ABCDEGRST]'
6181 fi
6182 ;;
6183 irix* | nonstopux*)
6184 symcode='[BCDEGRST]'
6185 ;;
6186 osf*)
6187 symcode='[BCDEGQRST]'
6188 ;;
6189 solaris*)
6190 symcode='[BDRT]'
6191 ;;
6192 sco3.2v5*)
6193 symcode='[DT]'
6194 ;;
6195 sysv4.2uw2*)
6196 symcode='[DT]'
6197 ;;
6198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6199 symcode='[ABDT]'
6200 ;;
6201 sysv4)
6202 symcode='[DFNSTU]'
6203 ;;
6204 esac
6205
6206 # If we're using GNU nm, then use its standard symbol codes.
6207 case `$NM -V 2>&1` in
6208 *GNU* | *'with BFD'*)
6209 symcode='[ABCDGIRSTW]' ;;
6210 esac
6211
6212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6213 # Gets list of data symbols to import.
6214 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6215 # Adjust the below global symbol transforms to fixup imported variables.
6216 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6217 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6218 lt_c_name_lib_hook="\
6219 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6220 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6221 else
6222 # Disable hooks by default.
6223 lt_cv_sys_global_symbol_to_import=
6224 lt_cdecl_hook=
6225 lt_c_name_hook=
6226 lt_c_name_lib_hook=
6227 fi
6228
6229 # Transform an extracted symbol line into a proper C declaration.
6230 # Some systems (esp. on ia64) link data and code symbols differently,
6231 # so use this general approach.
6232 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6233 $lt_cdecl_hook\
6234 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6235 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6236
6237 # Transform an extracted symbol line into symbol name and symbol address
6238 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6239 $lt_c_name_hook\
6240 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6241 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6242
6243 # Transform an extracted symbol line into symbol name with lib prefix and
6244 # symbol address.
6245 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6246 $lt_c_name_lib_hook\
6247 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6248 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6249 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6250
6251 # Handle CRLF in mingw tool chain
6252 opt_cr=
6253 case $build_os in
6254 mingw*)
6255 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6256 ;;
6257 esac
6258
6259 # Try without a prefix underscore, then with it.
6260 for ac_symprfx in "" "_"; do
6261
6262 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6263 symxfrm="\\1 $ac_symprfx\\2 \\2"
6264
6265 # Write the raw and C identifiers.
6266 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6267 # Fake it for dumpbin and say T for any non-static function,
6268 # D for any global variable and I for any imported variable.
6269 # Also find C++ and __fastcall symbols from MSVC++,
6270 # which start with @ or ?.
6271 lt_cv_sys_global_symbol_pipe="$AWK '"\
6272 " {last_section=section; section=\$ 3};"\
6273 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6274 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6275 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6276 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6277 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6278 " \$ 0!~/External *\|/{next};"\
6279 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6280 " {if(hide[section]) next};"\
6281 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6282 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6283 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6284 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6285 " ' prfx=^$ac_symprfx"
6286 else
6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288 fi
6289 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6290
6291 # Check to see that the pipe works correctly.
6292 pipe_works=no
6293
6294 rm -f conftest*
6295 cat > conftest.$ac_ext <<_LT_EOF
6296 #ifdef __cplusplus
6297 extern "C" {
6298 #endif
6299 char nm_test_var;
6300 void nm_test_func(void);
6301 void nm_test_func(void){}
6302 #ifdef __cplusplus
6303 }
6304 #endif
6305 int main(){nm_test_var='a';nm_test_func();return(0);}
6306 _LT_EOF
6307
6308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6309 (eval $ac_compile) 2>&5
6310 ac_status=$?
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; }; then
6313 # Now try to grab the symbols.
6314 nlist=conftest.nm
6315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6316 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6317 ac_status=$?
6318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319 test $ac_status = 0; } && test -s "$nlist"; then
6320 # Try sorting and uniquifying the output.
6321 if sort "$nlist" | uniq > "$nlist"T; then
6322 mv -f "$nlist"T "$nlist"
6323 else
6324 rm -f "$nlist"T
6325 fi
6326
6327 # Make sure that we snagged all the symbols we need.
6328 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6329 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6330 cat <<_LT_EOF > conftest.$ac_ext
6331 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6332 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6333 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6334 relocations are performed -- see ld's documentation on pseudo-relocs. */
6335 # define LT_DLSYM_CONST
6336 #elif defined __osf__
6337 /* This system does not cope well with relocations in const data. */
6338 # define LT_DLSYM_CONST
6339 #else
6340 # define LT_DLSYM_CONST const
6341 #endif
6342
6343 #ifdef __cplusplus
6344 extern "C" {
6345 #endif
6346
6347 _LT_EOF
6348 # Now generate the symbol file.
6349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6350
6351 cat <<_LT_EOF >> conftest.$ac_ext
6352
6353 /* The mapping between symbol names and symbols. */
6354 LT_DLSYM_CONST struct {
6355 const char *name;
6356 void *address;
6357 }
6358 lt__PROGRAM__LTX_preloaded_symbols[] =
6359 {
6360 { "@PROGRAM@", (void *) 0 },
6361 _LT_EOF
6362 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6363 cat <<\_LT_EOF >> conftest.$ac_ext
6364 {0, (void *) 0}
6365 };
6366
6367 /* This works around a problem in FreeBSD linker */
6368 #ifdef FREEBSD_WORKAROUND
6369 static const void *lt_preloaded_setup() {
6370 return lt__PROGRAM__LTX_preloaded_symbols;
6371 }
6372 #endif
6373
6374 #ifdef __cplusplus
6375 }
6376 #endif
6377 _LT_EOF
6378 # Now try linking the two files.
6379 mv conftest.$ac_objext conftstm.$ac_objext
6380 lt_globsym_save_LIBS=$LIBS
6381 lt_globsym_save_CFLAGS=$CFLAGS
6382 LIBS=conftstm.$ac_objext
6383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6385 (eval $ac_link) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6389 pipe_works=yes
6390 fi
6391 LIBS=$lt_globsym_save_LIBS
6392 CFLAGS=$lt_globsym_save_CFLAGS
6393 else
6394 echo "cannot find nm_test_func in $nlist" >&5
6395 fi
6396 else
6397 echo "cannot find nm_test_var in $nlist" >&5
6398 fi
6399 else
6400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6401 fi
6402 else
6403 echo "$progname: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6405 fi
6406 rm -rf conftest* conftst*
6407
6408 # Do not use the global_symbol_pipe unless it works.
6409 if test yes = "$pipe_works"; then
6410 break
6411 else
6412 lt_cv_sys_global_symbol_pipe=
6413 fi
6414 done
6415
6416 fi
6417
6418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6419 lt_cv_sys_global_symbol_to_cdecl=
6420 fi
6421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6423 $as_echo "failed" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6426 $as_echo "ok" >&6; }
6427 fi
6428
6429 # Response file support.
6430 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6431 nm_file_list_spec='@'
6432 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6433 nm_file_list_spec='@'
6434 fi
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6473 $as_echo_n "checking for sysroot... " >&6; }
6474
6475 # Check whether --with-sysroot was given.
6476 if test "${with_sysroot+set}" = set; then :
6477 withval=$with_sysroot;
6478 else
6479 with_sysroot=no
6480 fi
6481
6482
6483 lt_sysroot=
6484 case $with_sysroot in #(
6485 yes)
6486 if test yes = "$GCC"; then
6487 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6488 fi
6489 ;; #(
6490 /*)
6491 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6492 ;; #(
6493 no|'')
6494 ;; #(
6495 *)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6497 $as_echo "$with_sysroot" >&6; }
6498 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6499 ;;
6500 esac
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6503 $as_echo "${lt_sysroot:-no}" >&6; }
6504
6505
6506
6507
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6510 $as_echo_n "checking for a working dd... " >&6; }
6511 if ${ac_cv_path_lt_DD+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 printf 0123456789abcdef0123456789abcdef >conftest.i
6515 cat conftest.i conftest.i >conftest2.i
6516 : ${lt_DD:=$DD}
6517 if test -z "$lt_DD"; then
6518 ac_path_lt_DD_found=false
6519 # Loop through the user's path and test for each of PROGNAME-LIST
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_prog in dd; do
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6528 as_fn_executable_p "$ac_path_lt_DD" || continue
6529 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6530 cmp -s conftest.i conftest.out \
6531 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6532 fi
6533 $ac_path_lt_DD_found && break 3
6534 done
6535 done
6536 done
6537 IFS=$as_save_IFS
6538 if test -z "$ac_cv_path_lt_DD"; then
6539 :
6540 fi
6541 else
6542 ac_cv_path_lt_DD=$lt_DD
6543 fi
6544
6545 rm -f conftest.i conftest2.i conftest.out
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6548 $as_echo "$ac_cv_path_lt_DD" >&6; }
6549
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6552 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6553 if ${lt_cv_truncate_bin+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 printf 0123456789abcdef0123456789abcdef >conftest.i
6557 cat conftest.i conftest.i >conftest2.i
6558 lt_cv_truncate_bin=
6559 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6560 cmp -s conftest.i conftest.out \
6561 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6562 fi
6563 rm -f conftest.i conftest2.i conftest.out
6564 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6567 $as_echo "$lt_cv_truncate_bin" >&6; }
6568
6569
6570
6571
6572
6573
6574
6575 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6576 func_cc_basename ()
6577 {
6578 for cc_temp in $*""; do
6579 case $cc_temp in
6580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6582 \-*) ;;
6583 *) break;;
6584 esac
6585 done
6586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6587 }
6588
6589 # Check whether --enable-libtool-lock was given.
6590 if test "${enable_libtool_lock+set}" = set; then :
6591 enableval=$enable_libtool_lock;
6592 fi
6593
6594 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6595
6596 # Some flags need to be propagated to the compiler or linker for good
6597 # libtool support.
6598 case $host in
6599 ia64-*-hpux*)
6600 # Find out what ABI is being produced by ac_compile, and set mode
6601 # options accordingly.
6602 echo 'int i;' > conftest.$ac_ext
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }; then
6608 case `/usr/bin/file conftest.$ac_objext` in
6609 *ELF-32*)
6610 HPUX_IA64_MODE=32
6611 ;;
6612 *ELF-64*)
6613 HPUX_IA64_MODE=64
6614 ;;
6615 esac
6616 fi
6617 rm -rf conftest*
6618 ;;
6619 *-*-irix6*)
6620 # Find out what ABI is being produced by ac_compile, and set linker
6621 # options accordingly.
6622 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624 (eval $ac_compile) 2>&5
6625 ac_status=$?
6626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627 test $ac_status = 0; }; then
6628 if test yes = "$lt_cv_prog_gnu_ld"; then
6629 case `/usr/bin/file conftest.$ac_objext` in
6630 *32-bit*)
6631 LD="${LD-ld} -melf32bsmip"
6632 ;;
6633 *N32*)
6634 LD="${LD-ld} -melf32bmipn32"
6635 ;;
6636 *64-bit*)
6637 LD="${LD-ld} -melf64bmip"
6638 ;;
6639 esac
6640 else
6641 case `/usr/bin/file conftest.$ac_objext` in
6642 *32-bit*)
6643 LD="${LD-ld} -32"
6644 ;;
6645 *N32*)
6646 LD="${LD-ld} -n32"
6647 ;;
6648 *64-bit*)
6649 LD="${LD-ld} -64"
6650 ;;
6651 esac
6652 fi
6653 fi
6654 rm -rf conftest*
6655 ;;
6656
6657 mips64*-*linux*)
6658 # Find out what ABI is being produced by ac_compile, and set linker
6659 # options accordingly.
6660 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662 (eval $ac_compile) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
6666 emul=elf
6667 case `/usr/bin/file conftest.$ac_objext` in
6668 *32-bit*)
6669 emul="${emul}32"
6670 ;;
6671 *64-bit*)
6672 emul="${emul}64"
6673 ;;
6674 esac
6675 case `/usr/bin/file conftest.$ac_objext` in
6676 *MSB*)
6677 emul="${emul}btsmip"
6678 ;;
6679 *LSB*)
6680 emul="${emul}ltsmip"
6681 ;;
6682 esac
6683 case `/usr/bin/file conftest.$ac_objext` in
6684 *N32*)
6685 emul="${emul}n32"
6686 ;;
6687 esac
6688 LD="${LD-ld} -m $emul"
6689 fi
6690 rm -rf conftest*
6691 ;;
6692
6693 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6694 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6695 # Find out what ABI is being produced by ac_compile, and set linker
6696 # options accordingly. Note that the listed cases only cover the
6697 # situations where additional linker options are needed (such as when
6698 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6699 # vice versa); the common cases where no linker options are needed do
6700 # not appear in the list.
6701 echo 'int i;' > conftest.$ac_ext
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6703 (eval $ac_compile) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }; then
6707 case `/usr/bin/file conftest.o` in
6708 *32-bit*)
6709 case $host in
6710 x86_64-*kfreebsd*-gnu)
6711 LD="${LD-ld} -m elf_i386_fbsd"
6712 ;;
6713 x86_64-*linux*)
6714 case `/usr/bin/file conftest.o` in
6715 *x86-64*)
6716 LD="${LD-ld} -m elf32_x86_64"
6717 ;;
6718 *)
6719 LD="${LD-ld} -m elf_i386"
6720 ;;
6721 esac
6722 ;;
6723 powerpc64le-*linux*)
6724 LD="${LD-ld} -m elf32lppclinux"
6725 ;;
6726 powerpc64-*linux*)
6727 LD="${LD-ld} -m elf32ppclinux"
6728 ;;
6729 s390x-*linux*)
6730 LD="${LD-ld} -m elf_s390"
6731 ;;
6732 sparc64-*linux*)
6733 LD="${LD-ld} -m elf32_sparc"
6734 ;;
6735 esac
6736 ;;
6737 *64-bit*)
6738 case $host in
6739 x86_64-*kfreebsd*-gnu)
6740 LD="${LD-ld} -m elf_x86_64_fbsd"
6741 ;;
6742 x86_64-*linux*)
6743 LD="${LD-ld} -m elf_x86_64"
6744 ;;
6745 powerpcle-*linux*)
6746 LD="${LD-ld} -m elf64lppc"
6747 ;;
6748 powerpc-*linux*)
6749 LD="${LD-ld} -m elf64ppc"
6750 ;;
6751 s390*-*linux*|s390*-*tpf*)
6752 LD="${LD-ld} -m elf64_s390"
6753 ;;
6754 sparc*-*linux*)
6755 LD="${LD-ld} -m elf64_sparc"
6756 ;;
6757 esac
6758 ;;
6759 esac
6760 fi
6761 rm -rf conftest*
6762 ;;
6763
6764 *-*-sco3.2v5*)
6765 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6766 SAVE_CFLAGS=$CFLAGS
6767 CFLAGS="$CFLAGS -belf"
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6769 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6770 if ${lt_cv_cc_needs_belf+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 ac_ext=c
6774 ac_cpp='$CPP $CPPFLAGS'
6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781
6782 int
6783 main ()
6784 {
6785
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791 lt_cv_cc_needs_belf=yes
6792 else
6793 lt_cv_cc_needs_belf=no
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6797 ac_ext=c
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6805 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6806 if test yes != "$lt_cv_cc_needs_belf"; then
6807 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6808 CFLAGS=$SAVE_CFLAGS
6809 fi
6810 ;;
6811 *-*solaris*)
6812 # Find out what ABI is being produced by ac_compile, and set linker
6813 # options accordingly.
6814 echo 'int i;' > conftest.$ac_ext
6815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6816 (eval $ac_compile) 2>&5
6817 ac_status=$?
6818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819 test $ac_status = 0; }; then
6820 case `/usr/bin/file conftest.o` in
6821 *64-bit*)
6822 case $lt_cv_prog_gnu_ld in
6823 yes*)
6824 case $host in
6825 i?86-*-solaris*|x86_64-*-solaris*)
6826 LD="${LD-ld} -m elf_x86_64"
6827 ;;
6828 sparc*-*-solaris*)
6829 LD="${LD-ld} -m elf64_sparc"
6830 ;;
6831 esac
6832 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6833 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6834 LD=${LD-ld}_sol2
6835 fi
6836 ;;
6837 *)
6838 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6839 LD="${LD-ld} -64"
6840 fi
6841 ;;
6842 esac
6843 ;;
6844 esac
6845 fi
6846 rm -rf conftest*
6847 ;;
6848 esac
6849
6850 need_locks=$enable_libtool_lock
6851
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}mt; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$MANIFEST_TOOL"; then
6861 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6881 if test -n "$MANIFEST_TOOL"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6883 $as_echo "$MANIFEST_TOOL" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888
6889
6890 fi
6891 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6892 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6893 # Extract the first word of "mt", so it can be a program name with args.
6894 set dummy mt; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$ac_ct_MANIFEST_TOOL"; then
6901 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6921 if test -n "$ac_ct_MANIFEST_TOOL"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6923 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6930 MANIFEST_TOOL=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933 yes:)
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936 ac_tool_warned=yes ;;
6937 esac
6938 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6939 fi
6940 else
6941 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6942 fi
6943
6944 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6946 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6947 if ${lt_cv_path_mainfest_tool+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 lt_cv_path_mainfest_tool=no
6951 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6952 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6953 cat conftest.err >&5
6954 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6955 lt_cv_path_mainfest_tool=yes
6956 fi
6957 rm -f conftest*
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6960 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6961 if test yes != "$lt_cv_path_mainfest_tool"; then
6962 MANIFEST_TOOL=:
6963 fi
6964
6965
6966
6967
6968
6969
6970 case $host_os in
6971 rhapsody* | darwin*)
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$DSYMUTIL"; then
6981 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7001 if test -n "$DSYMUTIL"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7003 $as_echo "$DSYMUTIL" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_DSYMUTIL"; then
7012 ac_ct_DSYMUTIL=$DSYMUTIL
7013 # Extract the first word of "dsymutil", so it can be a program name with args.
7014 set dummy dsymutil; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$ac_ct_DSYMUTIL"; then
7021 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7041 if test -n "$ac_ct_DSYMUTIL"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7043 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049 if test "x$ac_ct_DSYMUTIL" = x; then
7050 DSYMUTIL=":"
7051 else
7052 case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058 DSYMUTIL=$ac_ct_DSYMUTIL
7059 fi
7060 else
7061 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7062 fi
7063
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_NMEDIT+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 if test -n "$NMEDIT"; then
7073 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 NMEDIT=$ac_cv_prog_NMEDIT
7093 if test -n "$NMEDIT"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7095 $as_echo "$NMEDIT" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_NMEDIT"; then
7104 ac_ct_NMEDIT=$NMEDIT
7105 # Extract the first word of "nmedit", so it can be a program name with args.
7106 set dummy nmedit; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 if test -n "$ac_ct_NMEDIT"; then
7113 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7133 if test -n "$ac_ct_NMEDIT"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7135 $as_echo "$ac_ct_NMEDIT" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141 if test "x$ac_ct_NMEDIT" = x; then
7142 NMEDIT=":"
7143 else
7144 case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150 NMEDIT=$ac_ct_NMEDIT
7151 fi
7152 else
7153 NMEDIT="$ac_cv_prog_NMEDIT"
7154 fi
7155
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_LIPO+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$LIPO"; then
7165 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 LIPO=$ac_cv_prog_LIPO
7185 if test -n "$LIPO"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7187 $as_echo "$LIPO" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_LIPO"; then
7196 ac_ct_LIPO=$LIPO
7197 # Extract the first word of "lipo", so it can be a program name with args.
7198 set dummy lipo; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$ac_ct_LIPO"; then
7205 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_LIPO="lipo"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7225 if test -n "$ac_ct_LIPO"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7227 $as_echo "$ac_ct_LIPO" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_LIPO" = x; then
7234 LIPO=":"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 LIPO=$ac_ct_LIPO
7243 fi
7244 else
7245 LIPO="$ac_cv_prog_LIPO"
7246 fi
7247
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}otool; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_OTOOL+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 if test -n "$OTOOL"; then
7257 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 OTOOL=$ac_cv_prog_OTOOL
7277 if test -n "$OTOOL"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7279 $as_echo "$OTOOL" >&6; }
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_OTOOL"; then
7288 ac_ct_OTOOL=$OTOOL
7289 # Extract the first word of "otool", so it can be a program name with args.
7290 set dummy otool; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 if test -n "$ac_ct_OTOOL"; then
7297 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_OTOOL="otool"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7317 if test -n "$ac_ct_OTOOL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7319 $as_echo "$ac_ct_OTOOL" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325 if test "x$ac_ct_OTOOL" = x; then
7326 OTOOL=":"
7327 else
7328 case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334 OTOOL=$ac_ct_OTOOL
7335 fi
7336 else
7337 OTOOL="$ac_cv_prog_OTOOL"
7338 fi
7339
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_OTOOL64+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$OTOOL64"; then
7349 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 OTOOL64=$ac_cv_prog_OTOOL64
7369 if test -n "$OTOOL64"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7371 $as_echo "$OTOOL64" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_OTOOL64"; then
7380 ac_ct_OTOOL64=$OTOOL64
7381 # Extract the first word of "otool64", so it can be a program name with args.
7382 set dummy otool64; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 if test -n "$ac_ct_OTOOL64"; then
7389 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_ac_ct_OTOOL64="otool64"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7409 if test -n "$ac_ct_OTOOL64"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7411 $as_echo "$ac_ct_OTOOL64" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417 if test "x$ac_ct_OTOOL64" = x; then
7418 OTOOL64=":"
7419 else
7420 case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426 OTOOL64=$ac_ct_OTOOL64
7427 fi
7428 else
7429 OTOOL64="$ac_cv_prog_OTOOL64"
7430 fi
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7459 $as_echo_n "checking for -single_module linker flag... " >&6; }
7460 if ${lt_cv_apple_cc_single_mod+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 lt_cv_apple_cc_single_mod=no
7464 if test -z "$LT_MULTI_MODULE"; then
7465 # By default we will add the -single_module flag. You can override
7466 # by either setting the environment variable LT_MULTI_MODULE
7467 # non-empty at configure time, or by adding -multi_module to the
7468 # link flags.
7469 rm -rf libconftest.dylib*
7470 echo "int foo(void){return 1;}" > conftest.c
7471 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7472 -dynamiclib -Wl,-single_module conftest.c" >&5
7473 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7474 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7475 _lt_result=$?
7476 # If there is a non-empty error log, and "single_module"
7477 # appears in it, assume the flag caused a linker warning
7478 if test -s conftest.err && $GREP single_module conftest.err; then
7479 cat conftest.err >&5
7480 # Otherwise, if the output was created with a 0 exit code from
7481 # the compiler, it worked.
7482 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7483 lt_cv_apple_cc_single_mod=yes
7484 else
7485 cat conftest.err >&5
7486 fi
7487 rm -rf libconftest.dylib*
7488 rm -f conftest.*
7489 fi
7490 fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7492 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7495 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7496 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 lt_cv_ld_exported_symbols_list=no
7500 save_LDFLAGS=$LDFLAGS
7501 echo "_main" > conftest.sym
7502 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505
7506 int
7507 main ()
7508 {
7509
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"; then :
7515 lt_cv_ld_exported_symbols_list=yes
7516 else
7517 lt_cv_ld_exported_symbols_list=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext \
7520 conftest$ac_exeext conftest.$ac_ext
7521 LDFLAGS=$save_LDFLAGS
7522
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7525 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7526
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7528 $as_echo_n "checking for -force_load linker flag... " >&6; }
7529 if ${lt_cv_ld_force_load+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 lt_cv_ld_force_load=no
7533 cat > conftest.c << _LT_EOF
7534 int forced_loaded() { return 2;}
7535 _LT_EOF
7536 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7537 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7538 echo "$AR cru libconftest.a conftest.o" >&5
7539 $AR cru libconftest.a conftest.o 2>&5
7540 echo "$RANLIB libconftest.a" >&5
7541 $RANLIB libconftest.a 2>&5
7542 cat > conftest.c << _LT_EOF
7543 int main() { return 0;}
7544 _LT_EOF
7545 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7546 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7547 _lt_result=$?
7548 if test -s conftest.err && $GREP force_load conftest.err; then
7549 cat conftest.err >&5
7550 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7551 lt_cv_ld_force_load=yes
7552 else
7553 cat conftest.err >&5
7554 fi
7555 rm -f conftest.err libconftest.a conftest conftest.c
7556 rm -rf conftest.dSYM
7557
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7560 $as_echo "$lt_cv_ld_force_load" >&6; }
7561 case $host_os in
7562 rhapsody* | darwin1.[012])
7563 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7564 darwin1.*)
7565 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7566 darwin*)
7567 case ${MACOSX_DEPLOYMENT_TARGET},$host in
7568 10.[012],*|,*powerpc*)
7569 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7570 *)
7571 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7572 esac
7573 ;;
7574 esac
7575 if test yes = "$lt_cv_apple_cc_single_mod"; then
7576 _lt_dar_single_mod='$single_module'
7577 fi
7578 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7579 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7580 else
7581 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7582 fi
7583 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7584 _lt_dsymutil='~$DSYMUTIL $lib || :'
7585 else
7586 _lt_dsymutil=
7587 fi
7588 ;;
7589 esac
7590
7591 # func_munge_path_list VARIABLE PATH
7592 # -----------------------------------
7593 # VARIABLE is name of variable containing _space_ separated list of
7594 # directories to be munged by the contents of PATH, which is string
7595 # having a format:
7596 # "DIR[:DIR]:"
7597 # string "DIR[ DIR]" will be prepended to VARIABLE
7598 # ":DIR[:DIR]"
7599 # string "DIR[ DIR]" will be appended to VARIABLE
7600 # "DIRP[:DIRP]::[DIRA:]DIRA"
7601 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7602 # "DIRA[ DIRA]" will be appended to VARIABLE
7603 # "DIR[:DIR]"
7604 # VARIABLE will be replaced by "DIR[ DIR]"
7605 func_munge_path_list ()
7606 {
7607 case x$2 in
7608 x)
7609 ;;
7610 *:)
7611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7612 ;;
7613 x:*)
7614 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7615 ;;
7616 *::*)
7617 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7618 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7619 ;;
7620 *)
7621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7622 ;;
7623 esac
7624 }
7625
7626 for ac_header in dlfcn.h
7627 do :
7628 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7629 "
7630 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_DLFCN_H 1
7633 _ACEOF
7634
7635 fi
7636
7637 done
7638
7639
7640
7641
7642
7643 # Set options
7644
7645
7646
7647 enable_dlopen=no
7648
7649
7650 enable_win32_dll=no
7651
7652
7653 # Check whether --enable-shared was given.
7654 if test "${enable_shared+set}" = set; then :
7655 enableval=$enable_shared; p=${PACKAGE-default}
7656 case $enableval in
7657 yes) enable_shared=yes ;;
7658 no) enable_shared=no ;;
7659 *)
7660 enable_shared=no
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7663 for pkg in $enableval; do
7664 IFS=$lt_save_ifs
7665 if test "X$pkg" = "X$p"; then
7666 enable_shared=yes
7667 fi
7668 done
7669 IFS=$lt_save_ifs
7670 ;;
7671 esac
7672 else
7673 enable_shared=yes
7674 fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 # Check whether --enable-static was given.
7685 if test "${enable_static+set}" = set; then :
7686 enableval=$enable_static; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_static=yes ;;
7689 no) enable_static=no ;;
7690 *)
7691 enable_static=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7694 for pkg in $enableval; do
7695 IFS=$lt_save_ifs
7696 if test "X$pkg" = "X$p"; then
7697 enable_static=yes
7698 fi
7699 done
7700 IFS=$lt_save_ifs
7701 ;;
7702 esac
7703 else
7704 enable_static=yes
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 # Check whether --with-pic was given.
7717 if test "${with_pic+set}" = set; then :
7718 withval=$with_pic; lt_p=${PACKAGE-default}
7719 case $withval in
7720 yes|no) pic_mode=$withval ;;
7721 *)
7722 pic_mode=default
7723 # Look at the argument we got. We use all the common list separators.
7724 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7725 for lt_pkg in $withval; do
7726 IFS=$lt_save_ifs
7727 if test "X$lt_pkg" = "X$lt_p"; then
7728 pic_mode=yes
7729 fi
7730 done
7731 IFS=$lt_save_ifs
7732 ;;
7733 esac
7734 else
7735 pic_mode=default
7736 fi
7737
7738
7739
7740
7741
7742
7743
7744
7745 # Check whether --enable-fast-install was given.
7746 if test "${enable_fast_install+set}" = set; then :
7747 enableval=$enable_fast_install; p=${PACKAGE-default}
7748 case $enableval in
7749 yes) enable_fast_install=yes ;;
7750 no) enable_fast_install=no ;;
7751 *)
7752 enable_fast_install=no
7753 # Look at the argument we got. We use all the common list separators.
7754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7755 for pkg in $enableval; do
7756 IFS=$lt_save_ifs
7757 if test "X$pkg" = "X$p"; then
7758 enable_fast_install=yes
7759 fi
7760 done
7761 IFS=$lt_save_ifs
7762 ;;
7763 esac
7764 else
7765 enable_fast_install=yes
7766 fi
7767
7768
7769
7770
7771
7772
7773
7774
7775 shared_archive_member_spec=
7776 case $host,$enable_shared in
7777 power*-*-aix[5-9]*,yes)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7779 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7780
7781 # Check whether --with-aix-soname was given.
7782 if test "${with_aix_soname+set}" = set; then :
7783 withval=$with_aix_soname; case $withval in
7784 aix|svr4|both)
7785 ;;
7786 *)
7787 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7788 ;;
7789 esac
7790 lt_cv_with_aix_soname=$with_aix_soname
7791 else
7792 if ${lt_cv_with_aix_soname+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 lt_cv_with_aix_soname=aix
7796 fi
7797
7798 with_aix_soname=$lt_cv_with_aix_soname
7799 fi
7800
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7802 $as_echo "$with_aix_soname" >&6; }
7803 if test aix != "$with_aix_soname"; then
7804 # For the AIX way of multilib, we name the shared archive member
7805 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7806 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7807 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7808 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7809 if test 64 = "${OBJECT_MODE-32}"; then
7810 shared_archive_member_spec=shr_64
7811 else
7812 shared_archive_member_spec=shr
7813 fi
7814 fi
7815 ;;
7816 *)
7817 with_aix_soname=aix
7818 ;;
7819 esac
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830 # This can be used to rebuild libtool when needed
7831 LIBTOOL_DEPS=$ltmain
7832
7833 # Always use our own libtool.
7834 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 test -z "$LN_S" && LN_S="ln -s"
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 if test -n "${ZSH_VERSION+set}"; then
7881 setopt NO_GLOB_SUBST
7882 fi
7883
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7885 $as_echo_n "checking for objdir... " >&6; }
7886 if ${lt_cv_objdir+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 rm -f .libs 2>/dev/null
7890 mkdir .libs 2>/dev/null
7891 if test -d .libs; then
7892 lt_cv_objdir=.libs
7893 else
7894 # MS-DOS does not allow filenames that begin with a dot.
7895 lt_cv_objdir=_libs
7896 fi
7897 rmdir .libs 2>/dev/null
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7900 $as_echo "$lt_cv_objdir" >&6; }
7901 objdir=$lt_cv_objdir
7902
7903
7904
7905
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define LT_OBJDIR "$lt_cv_objdir/"
7909 _ACEOF
7910
7911
7912
7913
7914 case $host_os in
7915 aix3*)
7916 # AIX sometimes has problems with the GCC collect2 program. For some
7917 # reason, if we set the COLLECT_NAMES environment variable, the problems
7918 # vanish in a puff of smoke.
7919 if test set != "${COLLECT_NAMES+set}"; then
7920 COLLECT_NAMES=
7921 export COLLECT_NAMES
7922 fi
7923 ;;
7924 esac
7925
7926 # Global variables:
7927 ofile=libtool
7928 can_build_shared=yes
7929
7930 # All known linkers require a '.a' archive for static linking (except MSVC,
7931 # which needs '.lib').
7932 libext=a
7933
7934 with_gnu_ld=$lt_cv_prog_gnu_ld
7935
7936 old_CC=$CC
7937 old_CFLAGS=$CFLAGS
7938
7939 # Set sane defaults for various variables
7940 test -z "$CC" && CC=cc
7941 test -z "$LTCC" && LTCC=$CC
7942 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7943 test -z "$LD" && LD=ld
7944 test -z "$ac_objext" && ac_objext=o
7945
7946 func_cc_basename $compiler
7947 cc_basename=$func_cc_basename_result
7948
7949
7950 # Only perform the check for file, if the check method requires it
7951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7952 case $deplibs_check_method in
7953 file_magic*)
7954 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7956 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7957 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 case $MAGIC_CMD in
7961 [\\/*] | ?:[\\/]*)
7962 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7963 ;;
7964 *)
7965 lt_save_MAGIC_CMD=$MAGIC_CMD
7966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7967 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7968 for ac_dir in $ac_dummy; do
7969 IFS=$lt_save_ifs
7970 test -z "$ac_dir" && ac_dir=.
7971 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7972 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7973 if test -n "$file_magic_test_file"; then
7974 case $deplibs_check_method in
7975 "file_magic "*)
7976 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7977 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7978 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7979 $EGREP "$file_magic_regex" > /dev/null; then
7980 :
7981 else
7982 cat <<_LT_EOF 1>&2
7983
7984 *** Warning: the command libtool uses to detect shared libraries,
7985 *** $file_magic_cmd, produces output that libtool cannot recognize.
7986 *** The result is that libtool may fail to recognize shared libraries
7987 *** as such. This will affect the creation of libtool libraries that
7988 *** depend on shared libraries, but programs linked with such libtool
7989 *** libraries will work regardless of this problem. Nevertheless, you
7990 *** may want to report the problem to your system manager and/or to
7991 *** bug-libtool (at] gnu.org
7992
7993 _LT_EOF
7994 fi ;;
7995 esac
7996 fi
7997 break
7998 fi
7999 done
8000 IFS=$lt_save_ifs
8001 MAGIC_CMD=$lt_save_MAGIC_CMD
8002 ;;
8003 esac
8004 fi
8005
8006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8007 if test -n "$MAGIC_CMD"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8009 $as_echo "$MAGIC_CMD" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016
8017
8018
8019 if test -z "$lt_cv_path_MAGIC_CMD"; then
8020 if test -n "$ac_tool_prefix"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8022 $as_echo_n "checking for file... " >&6; }
8023 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 case $MAGIC_CMD in
8027 [\\/*] | ?:[\\/]*)
8028 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8029 ;;
8030 *)
8031 lt_save_MAGIC_CMD=$MAGIC_CMD
8032 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8033 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8034 for ac_dir in $ac_dummy; do
8035 IFS=$lt_save_ifs
8036 test -z "$ac_dir" && ac_dir=.
8037 if test -f "$ac_dir/file"; then
8038 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8039 if test -n "$file_magic_test_file"; then
8040 case $deplibs_check_method in
8041 "file_magic "*)
8042 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8043 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8045 $EGREP "$file_magic_regex" > /dev/null; then
8046 :
8047 else
8048 cat <<_LT_EOF 1>&2
8049
8050 *** Warning: the command libtool uses to detect shared libraries,
8051 *** $file_magic_cmd, produces output that libtool cannot recognize.
8052 *** The result is that libtool may fail to recognize shared libraries
8053 *** as such. This will affect the creation of libtool libraries that
8054 *** depend on shared libraries, but programs linked with such libtool
8055 *** libraries will work regardless of this problem. Nevertheless, you
8056 *** may want to report the problem to your system manager and/or to
8057 *** bug-libtool (at] gnu.org
8058
8059 _LT_EOF
8060 fi ;;
8061 esac
8062 fi
8063 break
8064 fi
8065 done
8066 IFS=$lt_save_ifs
8067 MAGIC_CMD=$lt_save_MAGIC_CMD
8068 ;;
8069 esac
8070 fi
8071
8072 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8073 if test -n "$MAGIC_CMD"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8075 $as_echo "$MAGIC_CMD" >&6; }
8076 else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082 else
8083 MAGIC_CMD=:
8084 fi
8085 fi
8086
8087 fi
8088 ;;
8089 esac
8090
8091 # Use C for the default configuration in the libtool script
8092
8093 lt_save_CC=$CC
8094 ac_ext=c
8095 ac_cpp='$CPP $CPPFLAGS'
8096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8099
8100
8101 # Source file extension for C test sources.
8102 ac_ext=c
8103
8104 # Object file extension for compiled C test sources.
8105 objext=o
8106 objext=$objext
8107
8108 # Code to be used in simple compile tests
8109 lt_simple_compile_test_code="int some_variable = 0;"
8110
8111 # Code to be used in simple link tests
8112 lt_simple_link_test_code='int main(){return(0);}'
8113
8114
8115
8116
8117
8118
8119
8120 # If no C compiler was specified, use CC.
8121 LTCC=${LTCC-"$CC"}
8122
8123 # If no C compiler flags were specified, use CFLAGS.
8124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8125
8126 # Allow CC to be a program name with arguments.
8127 compiler=$CC
8128
8129 # Save the default compiler, since it gets overwritten when the other
8130 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8131 compiler_DEFAULT=$CC
8132
8133 # save warnings/boilerplate of simple test code
8134 ac_outfile=conftest.$ac_objext
8135 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8136 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8137 _lt_compiler_boilerplate=`cat conftest.err`
8138 $RM conftest*
8139
8140 ac_outfile=conftest.$ac_objext
8141 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8142 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8143 _lt_linker_boilerplate=`cat conftest.err`
8144 $RM -r conftest*
8145
8146
8147 ## CAVEAT EMPTOR:
8148 ## There is no encapsulation within the following macros, do not change
8149 ## the running order or otherwise move them around unless you know exactly
8150 ## what you are doing...
8151 if test -n "$compiler"; then
8152
8153 lt_prog_compiler_no_builtin_flag=
8154
8155 if test yes = "$GCC"; then
8156 case $cc_basename in
8157 nvcc*)
8158 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8159 *)
8160 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8161 esac
8162
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8164 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8165 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 lt_cv_prog_compiler_rtti_exceptions=no
8169 ac_outfile=conftest.$ac_objext
8170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8172 # Insert the option either (1) after the last *FLAGS variable, or
8173 # (2) before a word containing "conftest.", or (3) at the end.
8174 # Note that $ac_compile itself does not contain backslashes and begins
8175 # with a dollar sign (not a hyphen), so the echo should work correctly.
8176 # The option is referenced via a variable to avoid confusing sed.
8177 lt_compile=`echo "$ac_compile" | $SED \
8178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180 -e 's:$: $lt_compiler_flag:'`
8181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8182 (eval "$lt_compile" 2>conftest.err)
8183 ac_status=$?
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 if (exit $ac_status) && test -s "$ac_outfile"; then
8187 # The compiler can only warn and ignore the option if not recognized
8188 # So say no if there are warnings other than the usual output.
8189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_rtti_exceptions=yes
8193 fi
8194 fi
8195 $RM conftest*
8196
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8199 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8200
8201 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8202 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8203 else
8204 :
8205 fi
8206
8207 fi
8208
8209
8210
8211
8212
8213
8214 lt_prog_compiler_wl=
8215 lt_prog_compiler_pic=
8216 lt_prog_compiler_static=
8217
8218
8219 if test yes = "$GCC"; then
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_static='-static'
8222
8223 case $host_os in
8224 aix*)
8225 # All AIX code is PIC.
8226 if test ia64 = "$host_cpu"; then
8227 # AIX 5 now supports IA64 processor
8228 lt_prog_compiler_static='-Bstatic'
8229 fi
8230 lt_prog_compiler_pic='-fPIC'
8231 ;;
8232
8233 amigaos*)
8234 case $host_cpu in
8235 powerpc)
8236 # see comment about AmigaOS4 .so support
8237 lt_prog_compiler_pic='-fPIC'
8238 ;;
8239 m68k)
8240 # FIXME: we need at least 68020 code to build shared libraries, but
8241 # adding the '-m68020' flag to GCC prevents building anything better,
8242 # like '-m68040'.
8243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8244 ;;
8245 esac
8246 ;;
8247
8248 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8249 # PIC is the default for these OSes.
8250 ;;
8251
8252 mingw* | cygwin* | pw32* | os2* | cegcc*)
8253 # This hack is so that the source file can tell whether it is being
8254 # built for inclusion in a dll (and should export symbols for example).
8255 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8256 # (--disable-auto-import) libraries
8257 lt_prog_compiler_pic='-DDLL_EXPORT'
8258 case $host_os in
8259 os2*)
8260 lt_prog_compiler_static='$wl-static'
8261 ;;
8262 esac
8263 ;;
8264
8265 darwin* | rhapsody*)
8266 # PIC is the default on this platform
8267 # Common symbols not allowed in MH_DYLIB files
8268 lt_prog_compiler_pic='-fno-common'
8269 ;;
8270
8271 haiku*)
8272 # PIC is the default for Haiku.
8273 # The "-static" flag exists, but is broken.
8274 lt_prog_compiler_static=
8275 ;;
8276
8277 hpux*)
8278 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8279 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8280 # sets the default TLS model and affects inlining.
8281 case $host_cpu in
8282 hppa*64*)
8283 # +Z the default
8284 ;;
8285 *)
8286 lt_prog_compiler_pic='-fPIC'
8287 ;;
8288 esac
8289 ;;
8290
8291 interix[3-9]*)
8292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8293 # Instead, we relocate shared libraries at runtime.
8294 ;;
8295
8296 msdosdjgpp*)
8297 # Just because we use GCC doesn't mean we suddenly get shared libraries
8298 # on systems that don't support them.
8299 lt_prog_compiler_can_build_shared=no
8300 enable_shared=no
8301 ;;
8302
8303 *nto* | *qnx*)
8304 # QNX uses GNU C++, but need to define -shared option too, otherwise
8305 # it will coredump.
8306 lt_prog_compiler_pic='-fPIC -shared'
8307 ;;
8308
8309 sysv4*MP*)
8310 if test -d /usr/nec; then
8311 lt_prog_compiler_pic=-Kconform_pic
8312 fi
8313 ;;
8314
8315 *)
8316 lt_prog_compiler_pic='-fPIC'
8317 ;;
8318 esac
8319
8320 case $cc_basename in
8321 nvcc*) # Cuda Compiler Driver 2.2
8322 lt_prog_compiler_wl='-Xlinker '
8323 if test -n "$lt_prog_compiler_pic"; then
8324 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8325 fi
8326 ;;
8327 esac
8328 else
8329 # PORTME Check for flag to pass linker flags through the system compiler.
8330 case $host_os in
8331 aix*)
8332 lt_prog_compiler_wl='-Wl,'
8333 if test ia64 = "$host_cpu"; then
8334 # AIX 5 now supports IA64 processor
8335 lt_prog_compiler_static='-Bstatic'
8336 else
8337 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8338 fi
8339 ;;
8340
8341 darwin* | rhapsody*)
8342 # PIC is the default on this platform
8343 # Common symbols not allowed in MH_DYLIB files
8344 lt_prog_compiler_pic='-fno-common'
8345 case $cc_basename in
8346 nagfor*)
8347 # NAG Fortran compiler
8348 lt_prog_compiler_wl='-Wl,-Wl,,'
8349 lt_prog_compiler_pic='-PIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 ;;
8352 esac
8353 ;;
8354
8355 mingw* | cygwin* | pw32* | os2* | cegcc*)
8356 # This hack is so that the source file can tell whether it is being
8357 # built for inclusion in a dll (and should export symbols for example).
8358 lt_prog_compiler_pic='-DDLL_EXPORT'
8359 case $host_os in
8360 os2*)
8361 lt_prog_compiler_static='$wl-static'
8362 ;;
8363 esac
8364 ;;
8365
8366 hpux9* | hpux10* | hpux11*)
8367 lt_prog_compiler_wl='-Wl,'
8368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8369 # not for PA HP-UX.
8370 case $host_cpu in
8371 hppa*64*|ia64*)
8372 # +Z the default
8373 ;;
8374 *)
8375 lt_prog_compiler_pic='+Z'
8376 ;;
8377 esac
8378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8379 lt_prog_compiler_static='$wl-a ${wl}archive'
8380 ;;
8381
8382 irix5* | irix6* | nonstopux*)
8383 lt_prog_compiler_wl='-Wl,'
8384 # PIC (with -KPIC) is the default.
8385 lt_prog_compiler_static='-non_shared'
8386 ;;
8387
8388 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8389 case $cc_basename in
8390 # old Intel for x86_64, which still supported -KPIC.
8391 ecc*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-static'
8395 ;;
8396 # icc used to be incompatible with GCC.
8397 # ICC 10 doesn't accept -KPIC any more.
8398 icc* | ifort*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-fPIC'
8401 lt_prog_compiler_static='-static'
8402 ;;
8403 # Lahey Fortran 8.1.
8404 lf95*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='--shared'
8407 lt_prog_compiler_static='--static'
8408 ;;
8409 nagfor*)
8410 # NAG Fortran compiler
8411 lt_prog_compiler_wl='-Wl,-Wl,,'
8412 lt_prog_compiler_pic='-PIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 ;;
8415 tcc*)
8416 # Fabrice Bellard et al's Tiny C Compiler
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-fPIC'
8419 lt_prog_compiler_static='-static'
8420 ;;
8421 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8422 # Portland Group compilers (*not* the Pentium gcc compiler,
8423 # which looks to be a dead project)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-fpic'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428 ccc*)
8429 lt_prog_compiler_wl='-Wl,'
8430 # All Alpha code is PIC.
8431 lt_prog_compiler_static='-non_shared'
8432 ;;
8433 xl* | bgxl* | bgf* | mpixl*)
8434 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8435 lt_prog_compiler_wl='-Wl,'
8436 lt_prog_compiler_pic='-qpic'
8437 lt_prog_compiler_static='-qstaticlink'
8438 ;;
8439 *)
8440 case `$CC -V 2>&1 | sed 5q` in
8441 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8442 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 lt_prog_compiler_wl=''
8446 ;;
8447 *Sun\ F* | *Sun*Fortran*)
8448 lt_prog_compiler_pic='-KPIC'
8449 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_wl='-Qoption ld '
8451 ;;
8452 *Sun\ C*)
8453 # Sun C 5.9
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_wl='-Wl,'
8457 ;;
8458 *Intel*\ [CF]*Compiler*)
8459 lt_prog_compiler_wl='-Wl,'
8460 lt_prog_compiler_pic='-fPIC'
8461 lt_prog_compiler_static='-static'
8462 ;;
8463 *Portland\ Group*)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-fpic'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468 esac
8469 ;;
8470 esac
8471 ;;
8472
8473 newsos6)
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 ;;
8477
8478 *nto* | *qnx*)
8479 # QNX uses GNU C++, but need to define -shared option too, otherwise
8480 # it will coredump.
8481 lt_prog_compiler_pic='-fPIC -shared'
8482 ;;
8483
8484 osf3* | osf4* | osf5*)
8485 lt_prog_compiler_wl='-Wl,'
8486 # All OSF/1 code is PIC.
8487 lt_prog_compiler_static='-non_shared'
8488 ;;
8489
8490 rdos*)
8491 lt_prog_compiler_static='-non_shared'
8492 ;;
8493
8494 solaris*)
8495 lt_prog_compiler_pic='-KPIC'
8496 lt_prog_compiler_static='-Bstatic'
8497 case $cc_basename in
8498 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8499 lt_prog_compiler_wl='-Qoption ld ';;
8500 *)
8501 lt_prog_compiler_wl='-Wl,';;
8502 esac
8503 ;;
8504
8505 sunos4*)
8506 lt_prog_compiler_wl='-Qoption ld '
8507 lt_prog_compiler_pic='-PIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510
8511 sysv4 | sysv4.2uw2* | sysv4.3*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-KPIC'
8514 lt_prog_compiler_static='-Bstatic'
8515 ;;
8516
8517 sysv4*MP*)
8518 if test -d /usr/nec; then
8519 lt_prog_compiler_pic='-Kconform_pic'
8520 lt_prog_compiler_static='-Bstatic'
8521 fi
8522 ;;
8523
8524 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
8529
8530 unicos*)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_can_build_shared=no
8533 ;;
8534
8535 uts4*)
8536 lt_prog_compiler_pic='-pic'
8537 lt_prog_compiler_static='-Bstatic'
8538 ;;
8539
8540 *)
8541 lt_prog_compiler_can_build_shared=no
8542 ;;
8543 esac
8544 fi
8545
8546 case $host_os in
8547 # For platforms that do not support PIC, -DPIC is meaningless:
8548 *djgpp*)
8549 lt_prog_compiler_pic=
8550 ;;
8551 *)
8552 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8553 ;;
8554 esac
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8557 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8558 if ${lt_cv_prog_compiler_pic+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8564 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8565 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8566
8567 #
8568 # Check to make sure the PIC flag actually works.
8569 #
8570 if test -n "$lt_prog_compiler_pic"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8572 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8573 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_prog_compiler_pic_works=no
8577 ac_outfile=conftest.$ac_objext
8578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8579 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8580 # Insert the option either (1) after the last *FLAGS variable, or
8581 # (2) before a word containing "conftest.", or (3) at the end.
8582 # Note that $ac_compile itself does not contain backslashes and begins
8583 # with a dollar sign (not a hyphen), so the echo should work correctly.
8584 # The option is referenced via a variable to avoid confusing sed.
8585 lt_compile=`echo "$ac_compile" | $SED \
8586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8588 -e 's:$: $lt_compiler_flag:'`
8589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8590 (eval "$lt_compile" 2>conftest.err)
8591 ac_status=$?
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 if (exit $ac_status) && test -s "$ac_outfile"; then
8595 # The compiler can only warn and ignore the option if not recognized
8596 # So say no if there are warnings other than the usual output.
8597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8600 lt_cv_prog_compiler_pic_works=yes
8601 fi
8602 fi
8603 $RM conftest*
8604
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8607 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8608
8609 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8610 case $lt_prog_compiler_pic in
8611 "" | " "*) ;;
8612 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8613 esac
8614 else
8615 lt_prog_compiler_pic=
8616 lt_prog_compiler_can_build_shared=no
8617 fi
8618
8619 fi
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 #
8632 # Check to make sure the static flag actually works.
8633 #
8634 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8636 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8637 if ${lt_cv_prog_compiler_static_works+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 lt_cv_prog_compiler_static_works=no
8641 save_LDFLAGS=$LDFLAGS
8642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8645 # The linker can only warn and ignore the option if not recognized
8646 # So say no if there are warnings
8647 if test -s conftest.err; then
8648 # Append any errors to the config.log.
8649 cat conftest.err 1>&5
8650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8652 if diff conftest.exp conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_static_works=yes
8654 fi
8655 else
8656 lt_cv_prog_compiler_static_works=yes
8657 fi
8658 fi
8659 $RM -r conftest*
8660 LDFLAGS=$save_LDFLAGS
8661
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8664 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8665
8666 if test yes = "$lt_cv_prog_compiler_static_works"; then
8667 :
8668 else
8669 lt_prog_compiler_static=
8670 fi
8671
8672
8673
8674
8675
8676
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8679 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8680 if ${lt_cv_prog_compiler_c_o+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 lt_cv_prog_compiler_c_o=no
8684 $RM -r conftest 2>/dev/null
8685 mkdir conftest
8686 cd conftest
8687 mkdir out
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689
8690 lt_compiler_flag="-o out/conftest2.$ac_objext"
8691 # Insert the option either (1) after the last *FLAGS variable, or
8692 # (2) before a word containing "conftest.", or (3) at the end.
8693 # Note that $ac_compile itself does not contain backslashes and begins
8694 # with a dollar sign (not a hyphen), so the echo should work correctly.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
8699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8700 (eval "$lt_compile" 2>out/conftest.err)
8701 ac_status=$?
8702 cat out/conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8705 then
8706 # The compiler can only warn and ignore the option if not recognized
8707 # So say no if there are warnings
8708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8711 lt_cv_prog_compiler_c_o=yes
8712 fi
8713 fi
8714 chmod u+w . 2>&5
8715 $RM conftest*
8716 # SGI C++ compiler will create directory out/ii_files/ for
8717 # template instantiation
8718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8719 $RM out/* && rmdir out
8720 cd ..
8721 $RM -r conftest
8722 $RM conftest*
8723
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8726 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8727
8728
8729
8730
8731
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8735 if ${lt_cv_prog_compiler_c_o+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 lt_cv_prog_compiler_c_o=no
8739 $RM -r conftest 2>/dev/null
8740 mkdir conftest
8741 cd conftest
8742 mkdir out
8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744
8745 lt_compiler_flag="-o out/conftest2.$ac_objext"
8746 # Insert the option either (1) after the last *FLAGS variable, or
8747 # (2) before a word containing "conftest.", or (3) at the end.
8748 # Note that $ac_compile itself does not contain backslashes and begins
8749 # with a dollar sign (not a hyphen), so the echo should work correctly.
8750 lt_compile=`echo "$ac_compile" | $SED \
8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753 -e 's:$: $lt_compiler_flag:'`
8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8755 (eval "$lt_compile" 2>out/conftest.err)
8756 ac_status=$?
8757 cat out/conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8760 then
8761 # The compiler can only warn and ignore the option if not recognized
8762 # So say no if there are warnings
8763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8766 lt_cv_prog_compiler_c_o=yes
8767 fi
8768 fi
8769 chmod u+w . 2>&5
8770 $RM conftest*
8771 # SGI C++ compiler will create directory out/ii_files/ for
8772 # template instantiation
8773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8774 $RM out/* && rmdir out
8775 cd ..
8776 $RM -r conftest
8777 $RM conftest*
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8781 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8782
8783
8784
8785
8786 hard_links=nottested
8787 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8788 # do not overwrite the value of need_locks provided by the user
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8790 $as_echo_n "checking if we can lock with hard links... " >&6; }
8791 hard_links=yes
8792 $RM conftest*
8793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8794 touch conftest.a
8795 ln conftest.a conftest.b 2>&5 || hard_links=no
8796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8798 $as_echo "$hard_links" >&6; }
8799 if test no = "$hard_links"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8801 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8802 need_locks=warn
8803 fi
8804 else
8805 need_locks=no
8806 fi
8807
8808
8809
8810
8811
8812
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8814 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8815
8816 runpath_var=
8817 allow_undefined_flag=
8818 always_export_symbols=no
8819 archive_cmds=
8820 archive_expsym_cmds=
8821 compiler_needs_object=no
8822 enable_shared_with_static_runtimes=no
8823 export_dynamic_flag_spec=
8824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8825 hardcode_automatic=no
8826 hardcode_direct=no
8827 hardcode_direct_absolute=no
8828 hardcode_libdir_flag_spec=
8829 hardcode_libdir_separator=
8830 hardcode_minus_L=no
8831 hardcode_shlibpath_var=unsupported
8832 inherit_rpath=no
8833 link_all_deplibs=unknown
8834 module_cmds=
8835 module_expsym_cmds=
8836 old_archive_from_new_cmds=
8837 old_archive_from_expsyms_cmds=
8838 thread_safe_flag_spec=
8839 whole_archive_flag_spec=
8840 # include_expsyms should be a list of space-separated symbols to be *always*
8841 # included in the symbol list
8842 include_expsyms=
8843 # exclude_expsyms can be an extended regexp of symbols to exclude
8844 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8845 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8846 # as well as any symbol that contains 'd'.
8847 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8849 # platforms (ab)use it in PIC code, but their linkers get confused if
8850 # the symbol is explicitly referenced. Since portable code cannot
8851 # rely on this symbol name, it's probably fine to never include it in
8852 # preloaded symbol tables.
8853 # Exclude shared library initialization/finalization symbols.
8854 extract_expsyms_cmds=
8855
8856 case $host_os in
8857 cygwin* | mingw* | pw32* | cegcc*)
8858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8859 # When not using gcc, we currently assume that we are using
8860 # Microsoft Visual C++.
8861 if test yes != "$GCC"; then
8862 with_gnu_ld=no
8863 fi
8864 ;;
8865 interix*)
8866 # we just hope/assume this is gcc and not c89 (= MSVC++)
8867 with_gnu_ld=yes
8868 ;;
8869 openbsd* | bitrig*)
8870 with_gnu_ld=no
8871 ;;
8872 esac
8873
8874 ld_shlibs=yes
8875
8876 # On some targets, GNU ld is compatible enough with the native linker
8877 # that we're better off using the native interface for both.
8878 lt_use_gnu_ld_interface=no
8879 if test yes = "$with_gnu_ld"; then
8880 case $host_os in
8881 aix*)
8882 # The AIX port of GNU ld has always aspired to compatibility
8883 # with the native linker. However, as the warning in the GNU ld
8884 # block says, versions before 2.19.5* couldn't really create working
8885 # shared libraries, regardless of the interface used.
8886 case `$LD -v 2>&1` in
8887 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8888 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8889 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8890 *)
8891 lt_use_gnu_ld_interface=yes
8892 ;;
8893 esac
8894 ;;
8895 *)
8896 lt_use_gnu_ld_interface=yes
8897 ;;
8898 esac
8899 fi
8900
8901 if test yes = "$lt_use_gnu_ld_interface"; then
8902 # If archive_cmds runs LD, not CC, wlarc should be empty
8903 wlarc='$wl'
8904
8905 # Set some defaults for GNU ld with shared library support. These
8906 # are reset later if shared libraries are not supported. Putting them
8907 # here allows them to be overridden if necessary.
8908 runpath_var=LD_RUN_PATH
8909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8910 export_dynamic_flag_spec='$wl--export-dynamic'
8911 # ancient GNU ld didn't support --whole-archive et. al.
8912 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8913 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8914 else
8915 whole_archive_flag_spec=
8916 fi
8917 supports_anon_versioning=no
8918 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8919 *GNU\ gold*) supports_anon_versioning=yes ;;
8920 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8921 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8922 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8923 *\ 2.11.*) ;; # other 2.11 versions
8924 *) supports_anon_versioning=yes ;;
8925 esac
8926
8927 # See if GNU ld supports shared libraries.
8928 case $host_os in
8929 aix[3-9]*)
8930 # On AIX/PPC, the GNU linker is very broken
8931 if test ia64 != "$host_cpu"; then
8932 ld_shlibs=no
8933 cat <<_LT_EOF 1>&2
8934
8935 *** Warning: the GNU linker, at least up to release 2.19, is reported
8936 *** to be unable to reliably create shared libraries on AIX.
8937 *** Therefore, libtool is disabling shared libraries support. If you
8938 *** really care for shared libraries, you may want to install binutils
8939 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8940 *** You will then need to restart the configuration process.
8941
8942 _LT_EOF
8943 fi
8944 ;;
8945
8946 amigaos*)
8947 case $host_cpu in
8948 powerpc)
8949 # see comment about AmigaOS4 .so support
8950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8951 archive_expsym_cmds=''
8952 ;;
8953 m68k)
8954 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)'
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_minus_L=yes
8957 ;;
8958 esac
8959 ;;
8960
8961 beos*)
8962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8963 allow_undefined_flag=unsupported
8964 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8965 # support --undefined. This deserves some investigation. FIXME
8966 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8967 else
8968 ld_shlibs=no
8969 fi
8970 ;;
8971
8972 cygwin* | mingw* | pw32* | cegcc*)
8973 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8974 # as there is no search path for DLLs.
8975 hardcode_libdir_flag_spec='-L$libdir'
8976 export_dynamic_flag_spec='$wl--export-all-symbols'
8977 allow_undefined_flag=unsupported
8978 always_export_symbols=no
8979 enable_shared_with_static_runtimes=yes
8980 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'
8981 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8982
8983 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8985 # If the export-symbols file already is a .def file, use it as
8986 # is; otherwise, prepend EXPORTS...
8987 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8988 cp $export_symbols $output_objdir/$soname.def;
8989 else
8990 echo EXPORTS > $output_objdir/$soname.def;
8991 cat $export_symbols >> $output_objdir/$soname.def;
8992 fi~
8993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8994 else
8995 ld_shlibs=no
8996 fi
8997 ;;
8998
8999 haiku*)
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9001 link_all_deplibs=yes
9002 ;;
9003
9004 os2*)
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 allow_undefined_flag=unsupported
9008 shrext_cmds=.dll
9009 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9010 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9011 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9012 $ECHO EXPORTS >> $output_objdir/$libname.def~
9013 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9014 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9015 emximp -o $lib $output_objdir/$libname.def'
9016 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9017 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9018 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9019 $ECHO EXPORTS >> $output_objdir/$libname.def~
9020 prefix_cmds="$SED"~
9021 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9022 prefix_cmds="$prefix_cmds -e 1d";
9023 fi~
9024 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9025 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9026 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9027 emximp -o $lib $output_objdir/$libname.def'
9028 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9029 enable_shared_with_static_runtimes=yes
9030 ;;
9031
9032 interix[3-9]*)
9033 hardcode_direct=no
9034 hardcode_shlibpath_var=no
9035 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9036 export_dynamic_flag_spec='$wl-E'
9037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9038 # Instead, shared libraries are loaded at an image base (0x10000000 by
9039 # default) and relocated if they conflict, which is a slow very memory
9040 # consuming and fragmenting process. To avoid this, we pick a random,
9041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9043 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9044 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'
9045 ;;
9046
9047 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9048 tmp_diet=no
9049 if test linux-dietlibc = "$host_os"; then
9050 case $cc_basename in
9051 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9052 esac
9053 fi
9054 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9055 && test no = "$tmp_diet"
9056 then
9057 tmp_addflag=' $pic_flag'
9058 tmp_sharedflag='-shared'
9059 case $cc_basename,$host_cpu in
9060 pgcc*) # Portland Group C compiler
9061 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'
9062 tmp_addflag=' $pic_flag'
9063 ;;
9064 pgf77* | pgf90* | pgf95* | pgfortran*)
9065 # Portland Group f77 and f90 compilers
9066 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'
9067 tmp_addflag=' $pic_flag -Mnomain' ;;
9068 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9069 tmp_addflag=' -i_dynamic' ;;
9070 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9071 tmp_addflag=' -i_dynamic -nofor_main' ;;
9072 ifc* | ifort*) # Intel Fortran compiler
9073 tmp_addflag=' -nofor_main' ;;
9074 lf95*) # Lahey Fortran 8.1
9075 whole_archive_flag_spec=
9076 tmp_sharedflag='--shared' ;;
9077 nagfor*) # NAGFOR 5.3
9078 tmp_sharedflag='-Wl,-shared' ;;
9079 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9080 tmp_sharedflag='-qmkshrobj'
9081 tmp_addflag= ;;
9082 nvcc*) # Cuda Compiler Driver 2.2
9083 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'
9084 compiler_needs_object=yes
9085 ;;
9086 esac
9087 case `$CC -V 2>&1 | sed 5q` in
9088 *Sun\ C*) # Sun C 5.9
9089 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'
9090 compiler_needs_object=yes
9091 tmp_sharedflag='-G' ;;
9092 *Sun\ F*) # Sun Fortran 8.3
9093 tmp_sharedflag='-G' ;;
9094 esac
9095 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9096
9097 if test yes = "$supports_anon_versioning"; then
9098 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9100 echo "local: *; };" >> $output_objdir/$libname.ver~
9101 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9102 fi
9103
9104 case $cc_basename in
9105 tcc*)
9106 export_dynamic_flag_spec='-rdynamic'
9107 ;;
9108 xlf* | bgf* | bgxlf* | mpixlf*)
9109 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9110 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9111 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9112 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9113 if test yes = "$supports_anon_versioning"; then
9114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116 echo "local: *; };" >> $output_objdir/$libname.ver~
9117 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9118 fi
9119 ;;
9120 esac
9121 else
9122 ld_shlibs=no
9123 fi
9124 ;;
9125
9126 netbsd*)
9127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9129 wlarc=
9130 else
9131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9133 fi
9134 ;;
9135
9136 solaris*)
9137 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9138 ld_shlibs=no
9139 cat <<_LT_EOF 1>&2
9140
9141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9142 *** create shared libraries on Solaris systems. Therefore, libtool
9143 *** is disabling shared libraries support. We urge you to upgrade GNU
9144 *** binutils to release 2.9.1 or newer. Another option is to modify
9145 *** your PATH or compiler configuration so that the native linker is
9146 *** used, and then restart.
9147
9148 _LT_EOF
9149 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9158 case `$LD -v 2>&1` in
9159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9160 ld_shlibs=no
9161 cat <<_LT_EOF 1>&2
9162
9163 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9164 *** reliably create shared libraries on SCO systems. Therefore, libtool
9165 *** is disabling shared libraries support. We urge you to upgrade GNU
9166 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9167 *** your PATH or compiler configuration so that the native linker is
9168 *** used, and then restart.
9169
9170 _LT_EOF
9171 ;;
9172 *)
9173 # For security reasons, it is highly recommended that you always
9174 # use absolute paths for naming shared libraries, and exclude the
9175 # DT_RUNPATH tag from executables and libraries. But doing so
9176 # requires that you compile everything twice, which is a pain.
9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185 esac
9186 ;;
9187
9188 sunos4*)
9189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9190 wlarc=
9191 hardcode_direct=yes
9192 hardcode_shlibpath_var=no
9193 ;;
9194
9195 *)
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9198 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9199 else
9200 ld_shlibs=no
9201 fi
9202 ;;
9203 esac
9204
9205 if test no = "$ld_shlibs"; then
9206 runpath_var=
9207 hardcode_libdir_flag_spec=
9208 export_dynamic_flag_spec=
9209 whole_archive_flag_spec=
9210 fi
9211 else
9212 # PORTME fill in a description of your system's linker (not GNU ld)
9213 case $host_os in
9214 aix3*)
9215 allow_undefined_flag=unsupported
9216 always_export_symbols=yes
9217 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'
9218 # Note: this linker hardcodes the directories in LIBPATH if there
9219 # are no directories specified by -L.
9220 hardcode_minus_L=yes
9221 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9222 # Neither direct hardcoding nor static linking is supported with a
9223 # broken collect2.
9224 hardcode_direct=unsupported
9225 fi
9226 ;;
9227
9228 aix[4-9]*)
9229 if test ia64 = "$host_cpu"; then
9230 # On IA64, the linker does run time linking by default, so we don't
9231 # have to do anything special.
9232 aix_use_runtimelinking=no
9233 exp_sym_flag='-Bexport'
9234 no_entry_flag=
9235 else
9236 # If we're using GNU nm, then we don't want the "-C" option.
9237 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9238 # Without the "-l" option, or with the "-B" option, AIX nm treats
9239 # weak defined symbols like other global defined symbols, whereas
9240 # GNU nm marks them as "W".
9241 # While the 'weak' keyword is ignored in the Export File, we need
9242 # it in the Import File for the 'aix-soname' feature, so we have
9243 # to replace the "-B" option with "-P" for AIX nm.
9244 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9245 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'
9246 else
9247 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'
9248 fi
9249 aix_use_runtimelinking=no
9250
9251 # Test if we are trying to use run time linking or normal
9252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9253 # have runtime linking enabled, and use it for executables.
9254 # For shared libraries, we enable/disable runtime linking
9255 # depending on the kind of the shared library created -
9256 # when "with_aix_soname,aix_use_runtimelinking" is:
9257 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9258 # "aix,yes" lib.so shared, rtl:yes, for executables
9259 # lib.a static archive
9260 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9261 # lib.a(lib.so.V) shared, rtl:no, for executables
9262 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9263 # lib.a(lib.so.V) shared, rtl:no
9264 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9265 # lib.a static archive
9266 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9267 for ld_flag in $LDFLAGS; do
9268 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9269 aix_use_runtimelinking=yes
9270 break
9271 fi
9272 done
9273 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9274 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9275 # so we don't have lib.a shared libs to link our executables.
9276 # We have to force runtime linking in this case.
9277 aix_use_runtimelinking=yes
9278 LDFLAGS="$LDFLAGS -Wl,-brtl"
9279 fi
9280 ;;
9281 esac
9282
9283 exp_sym_flag='-bexport'
9284 no_entry_flag='-bnoentry'
9285 fi
9286
9287 # When large executables or shared objects are built, AIX ld can
9288 # have problems creating the table of contents. If linking a library
9289 # or program results in "error TOC overflow" add -mminimal-toc to
9290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9292
9293 archive_cmds=''
9294 hardcode_direct=yes
9295 hardcode_direct_absolute=yes
9296 hardcode_libdir_separator=':'
9297 link_all_deplibs=yes
9298 file_list_spec='$wl-f,'
9299 case $with_aix_soname,$aix_use_runtimelinking in
9300 aix,*) ;; # traditional, no import file
9301 svr4,* | *,yes) # use import file
9302 # The Import File defines what to hardcode.
9303 hardcode_direct=no
9304 hardcode_direct_absolute=no
9305 ;;
9306 esac
9307
9308 if test yes = "$GCC"; then
9309 case $host_os in aix4.[012]|aix4.[012].*)
9310 # We only want to do this on AIX 4.2 and lower, the check
9311 # below for broken collect2 doesn't work under 4.3+
9312 collect2name=`$CC -print-prog-name=collect2`
9313 if test -f "$collect2name" &&
9314 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9315 then
9316 # We have reworked collect2
9317 :
9318 else
9319 # We have old collect2
9320 hardcode_direct=unsupported
9321 # It fails to find uninstalled libraries when the uninstalled
9322 # path is not listed in the libpath. Setting hardcode_minus_L
9323 # to unsupported forces relinking
9324 hardcode_minus_L=yes
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_libdir_separator=
9327 fi
9328 ;;
9329 esac
9330 shared_flag='-shared'
9331 if test yes = "$aix_use_runtimelinking"; then
9332 shared_flag="$shared_flag "'$wl-G'
9333 fi
9334 # Need to ensure runtime linking is disabled for the traditional
9335 # shared library, or the linker may eventually find shared libraries
9336 # /with/ Import File - we do not want to mix them.
9337 shared_flag_aix='-shared'
9338 shared_flag_svr4='-shared $wl-G'
9339 else
9340 # not using gcc
9341 if test ia64 = "$host_cpu"; then
9342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9343 # chokes on -Wl,-G. The following line is correct:
9344 shared_flag='-G'
9345 else
9346 if test yes = "$aix_use_runtimelinking"; then
9347 shared_flag='$wl-G'
9348 else
9349 shared_flag='$wl-bM:SRE'
9350 fi
9351 shared_flag_aix='$wl-bM:SRE'
9352 shared_flag_svr4='$wl-G'
9353 fi
9354 fi
9355
9356 export_dynamic_flag_spec='$wl-bexpall'
9357 # It seems that -bexpall does not export symbols beginning with
9358 # underscore (_), so it is better to generate a list of symbols to export.
9359 always_export_symbols=yes
9360 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9361 # Warning - without using the other runtime loading flags (-brtl),
9362 # -berok will link without error, but may produce a broken library.
9363 allow_undefined_flag='-berok'
9364 # Determine the default libpath from the value encoded in an
9365 # empty executable.
9366 if test set = "${lt_cv_aix_libpath+set}"; then
9367 aix_libpath=$lt_cv_aix_libpath
9368 else
9369 if ${lt_cv_aix_libpath_+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374
9375 int
9376 main ()
9377 {
9378
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 if ac_fn_c_try_link "$LINENO"; then :
9384
9385 lt_aix_libpath_sed='
9386 /Import File Strings/,/^$/ {
9387 /^0/ {
9388 s/^0 *\([^ ]*\) *$/\1/
9389 p
9390 }
9391 }'
9392 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9393 # Check for a 64-bit object if we didn't find anything.
9394 if test -z "$lt_cv_aix_libpath_"; then
9395 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9396 fi
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 if test -z "$lt_cv_aix_libpath_"; then
9401 lt_cv_aix_libpath_=/usr/lib:/lib
9402 fi
9403
9404 fi
9405
9406 aix_libpath=$lt_cv_aix_libpath_
9407 fi
9408
9409 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9410 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
9411 else
9412 if test ia64 = "$host_cpu"; then
9413 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9414 allow_undefined_flag="-z nodefs"
9415 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"
9416 else
9417 # Determine the default libpath from the value encoded in an
9418 # empty executable.
9419 if test set = "${lt_cv_aix_libpath+set}"; then
9420 aix_libpath=$lt_cv_aix_libpath
9421 else
9422 if ${lt_cv_aix_libpath_+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427
9428 int
9429 main ()
9430 {
9431
9432 ;
9433 return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_link "$LINENO"; then :
9437
9438 lt_aix_libpath_sed='
9439 /Import File Strings/,/^$/ {
9440 /^0/ {
9441 s/^0 *\([^ ]*\) *$/\1/
9442 p
9443 }
9444 }'
9445 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 # Check for a 64-bit object if we didn't find anything.
9447 if test -z "$lt_cv_aix_libpath_"; then
9448 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449 fi
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
9453 if test -z "$lt_cv_aix_libpath_"; then
9454 lt_cv_aix_libpath_=/usr/lib:/lib
9455 fi
9456
9457 fi
9458
9459 aix_libpath=$lt_cv_aix_libpath_
9460 fi
9461
9462 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9463 # Warning - without using the other run time loading flags,
9464 # -berok will link without error, but may produce a broken library.
9465 no_undefined_flag=' $wl-bernotok'
9466 allow_undefined_flag=' $wl-berok'
9467 if test yes = "$with_gnu_ld"; then
9468 # We only use this code for GNU lds that support --whole-archive.
9469 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9470 else
9471 # Exported symbols can be pulled into shared objects from archives
9472 whole_archive_flag_spec='$convenience'
9473 fi
9474 archive_cmds_need_lc=yes
9475 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9476 # -brtl affects multiple linker settings, -berok does not and is overridden later
9477 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9478 if test svr4 != "$with_aix_soname"; then
9479 # This is similar to how AIX traditionally builds its shared libraries.
9480 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'
9481 fi
9482 if test aix != "$with_aix_soname"; then
9483 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'
9484 else
9485 # used by -dlpreopen to get the symbols
9486 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9487 fi
9488 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9489 fi
9490 fi
9491 ;;
9492
9493 amigaos*)
9494 case $host_cpu in
9495 powerpc)
9496 # see comment about AmigaOS4 .so support
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9498 archive_expsym_cmds=''
9499 ;;
9500 m68k)
9501 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)'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_minus_L=yes
9504 ;;
9505 esac
9506 ;;
9507
9508 bsdi[45]*)
9509 export_dynamic_flag_spec=-rdynamic
9510 ;;
9511
9512 cygwin* | mingw* | pw32* | cegcc*)
9513 # When not using gcc, we currently assume that we are using
9514 # Microsoft Visual C++.
9515 # hardcode_libdir_flag_spec is actually meaningless, as there is
9516 # no search path for DLLs.
9517 case $cc_basename in
9518 cl*)
9519 # Native MSVC
9520 hardcode_libdir_flag_spec=' '
9521 allow_undefined_flag=unsupported
9522 always_export_symbols=yes
9523 file_list_spec='@'
9524 # Tell ltmain to make .lib files, not .a files.
9525 libext=lib
9526 # Tell ltmain to make .dll files, not .so files.
9527 shrext_cmds=.dll
9528 # FIXME: Setting linknames here is a bad hack.
9529 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9530 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9531 cp "$export_symbols" "$output_objdir/$soname.def";
9532 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9533 else
9534 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9535 fi~
9536 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9537 linknames='
9538 # The linker will not automatically build a static lib if we build a DLL.
9539 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9540 enable_shared_with_static_runtimes=yes
9541 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9543 # Don't use ranlib
9544 old_postinstall_cmds='chmod 644 $oldlib'
9545 postlink_cmds='lt_outputfile="@OUTPUT@"~
9546 lt_tool_outputfile="@TOOL_OUTPUT@"~
9547 case $lt_outputfile in
9548 *.exe|*.EXE) ;;
9549 *)
9550 lt_outputfile=$lt_outputfile.exe
9551 lt_tool_outputfile=$lt_tool_outputfile.exe
9552 ;;
9553 esac~
9554 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9555 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9556 $RM "$lt_outputfile.manifest";
9557 fi'
9558 ;;
9559 *)
9560 # Assume MSVC wrapper
9561 hardcode_libdir_flag_spec=' '
9562 allow_undefined_flag=unsupported
9563 # Tell ltmain to make .lib files, not .a files.
9564 libext=lib
9565 # Tell ltmain to make .dll files, not .so files.
9566 shrext_cmds=.dll
9567 # FIXME: Setting linknames here is a bad hack.
9568 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9569 # The linker will automatically build a .lib file if we build a DLL.
9570 old_archive_from_new_cmds='true'
9571 # FIXME: Should let the user specify the lib program.
9572 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9573 enable_shared_with_static_runtimes=yes
9574 ;;
9575 esac
9576 ;;
9577
9578 darwin* | rhapsody*)
9579
9580
9581 archive_cmds_need_lc=no
9582 hardcode_direct=no
9583 hardcode_automatic=yes
9584 hardcode_shlibpath_var=unsupported
9585 if test yes = "$lt_cv_ld_force_load"; then
9586 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\"`'
9587
9588 else
9589 whole_archive_flag_spec=''
9590 fi
9591 link_all_deplibs=yes
9592 allow_undefined_flag=$_lt_dar_allow_undefined
9593 case $cc_basename in
9594 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9595 *) _lt_dar_can_shared=$GCC ;;
9596 esac
9597 if test yes = "$_lt_dar_can_shared"; then
9598 output_verbose_link_cmd=func_echo_all
9599 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9600 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9601 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"
9602 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"
9603
9604 else
9605 ld_shlibs=no
9606 fi
9607
9608 ;;
9609
9610 dgux*)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_shlibpath_var=no
9614 ;;
9615
9616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9617 # support. Future versions do this automatically, but an explicit c++rt0.o
9618 # does not break anything, and helps significantly (at the cost of a little
9619 # extra space).
9620 freebsd2.2*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_direct=yes
9624 hardcode_shlibpath_var=no
9625 ;;
9626
9627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9628 freebsd2.*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_direct=yes
9631 hardcode_minus_L=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9636 freebsd* | dragonfly*)
9637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9638 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_direct=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 hpux9*)
9644 if test yes = "$GCC"; then
9645 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'
9646 else
9647 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'
9648 fi
9649 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9650 hardcode_libdir_separator=:
9651 hardcode_direct=yes
9652
9653 # hardcode_minus_L: Not really in the search PATH,
9654 # but as the default location of the library.
9655 hardcode_minus_L=yes
9656 export_dynamic_flag_spec='$wl-E'
9657 ;;
9658
9659 hpux10*)
9660 if test yes,no = "$GCC,$with_gnu_ld"; then
9661 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9662 else
9663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9664 fi
9665 if test no = "$with_gnu_ld"; then
9666 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9667 hardcode_libdir_separator=:
9668 hardcode_direct=yes
9669 hardcode_direct_absolute=yes
9670 export_dynamic_flag_spec='$wl-E'
9671 # hardcode_minus_L: Not really in the search PATH,
9672 # but as the default location of the library.
9673 hardcode_minus_L=yes
9674 fi
9675 ;;
9676
9677 hpux11*)
9678 if test yes,no = "$GCC,$with_gnu_ld"; then
9679 case $host_cpu in
9680 hppa*64*)
9681 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 ;;
9683 ia64*)
9684 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9685 ;;
9686 *)
9687 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9688 ;;
9689 esac
9690 else
9691 case $host_cpu in
9692 hppa*64*)
9693 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 ;;
9695 ia64*)
9696 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 *)
9699
9700 # Older versions of the 11.00 compiler do not understand -b yet
9701 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9703 $as_echo_n "checking if $CC understands -b... " >&6; }
9704 if ${lt_cv_prog_compiler__b+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 lt_cv_prog_compiler__b=no
9708 save_LDFLAGS=$LDFLAGS
9709 LDFLAGS="$LDFLAGS -b"
9710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9712 # The linker can only warn and ignore the option if not recognized
9713 # So say no if there are warnings
9714 if test -s conftest.err; then
9715 # Append any errors to the config.log.
9716 cat conftest.err 1>&5
9717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9719 if diff conftest.exp conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler__b=yes
9721 fi
9722 else
9723 lt_cv_prog_compiler__b=yes
9724 fi
9725 fi
9726 $RM -r conftest*
9727 LDFLAGS=$save_LDFLAGS
9728
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9731 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9732
9733 if test yes = "$lt_cv_prog_compiler__b"; then
9734 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9735 else
9736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9737 fi
9738
9739 ;;
9740 esac
9741 fi
9742 if test no = "$with_gnu_ld"; then
9743 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9744 hardcode_libdir_separator=:
9745
9746 case $host_cpu in
9747 hppa*64*|ia64*)
9748 hardcode_direct=no
9749 hardcode_shlibpath_var=no
9750 ;;
9751 *)
9752 hardcode_direct=yes
9753 hardcode_direct_absolute=yes
9754 export_dynamic_flag_spec='$wl-E'
9755
9756 # hardcode_minus_L: Not really in the search PATH,
9757 # but as the default location of the library.
9758 hardcode_minus_L=yes
9759 ;;
9760 esac
9761 fi
9762 ;;
9763
9764 irix5* | irix6* | nonstopux*)
9765 if test yes = "$GCC"; then
9766 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'
9767 # Try to use the -exported_symbol ld option, if it does not
9768 # work, assume that -exports_file does not work either and
9769 # implicitly export all symbols.
9770 # This should be the same for all languages, so no per-tag cache variable.
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9772 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9773 if ${lt_cv_irix_exported_symbol+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 save_LDFLAGS=$LDFLAGS
9777 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 int foo (void) { return 0; }
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"; then :
9783 lt_cv_irix_exported_symbol=yes
9784 else
9785 lt_cv_irix_exported_symbol=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 LDFLAGS=$save_LDFLAGS
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9792 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9793 if test yes = "$lt_cv_irix_exported_symbol"; then
9794 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'
9795 fi
9796 else
9797 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'
9798 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'
9799 fi
9800 archive_cmds_need_lc='no'
9801 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9802 hardcode_libdir_separator=:
9803 inherit_rpath=yes
9804 link_all_deplibs=yes
9805 ;;
9806
9807 linux*)
9808 case $cc_basename in
9809 tcc*)
9810 # Fabrice Bellard et al's Tiny C Compiler
9811 ld_shlibs=yes
9812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 esac
9815 ;;
9816
9817 netbsd*)
9818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9820 else
9821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9822 fi
9823 hardcode_libdir_flag_spec='-R$libdir'
9824 hardcode_direct=yes
9825 hardcode_shlibpath_var=no
9826 ;;
9827
9828 newsos6)
9829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830 hardcode_direct=yes
9831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9832 hardcode_libdir_separator=:
9833 hardcode_shlibpath_var=no
9834 ;;
9835
9836 *nto* | *qnx*)
9837 ;;
9838
9839 openbsd* | bitrig*)
9840 if test -f /usr/libexec/ld.so; then
9841 hardcode_direct=yes
9842 hardcode_shlibpath_var=no
9843 hardcode_direct_absolute=yes
9844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9847 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9848 export_dynamic_flag_spec='$wl-E'
9849 else
9850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9851 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9852 fi
9853 else
9854 ld_shlibs=no
9855 fi
9856 ;;
9857
9858 os2*)
9859 hardcode_libdir_flag_spec='-L$libdir'
9860 hardcode_minus_L=yes
9861 allow_undefined_flag=unsupported
9862 shrext_cmds=.dll
9863 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9864 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9865 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9866 $ECHO EXPORTS >> $output_objdir/$libname.def~
9867 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9868 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9869 emximp -o $lib $output_objdir/$libname.def'
9870 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9871 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9872 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9873 $ECHO EXPORTS >> $output_objdir/$libname.def~
9874 prefix_cmds="$SED"~
9875 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9876 prefix_cmds="$prefix_cmds -e 1d";
9877 fi~
9878 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9879 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9881 emximp -o $lib $output_objdir/$libname.def'
9882 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9883 enable_shared_with_static_runtimes=yes
9884 ;;
9885
9886 osf3*)
9887 if test yes = "$GCC"; then
9888 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9889 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'
9890 else
9891 allow_undefined_flag=' -expect_unresolved \*'
9892 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'
9893 fi
9894 archive_cmds_need_lc='no'
9895 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9896 hardcode_libdir_separator=:
9897 ;;
9898
9899 osf4* | osf5*) # as osf3* with the addition of -msym flag
9900 if test yes = "$GCC"; then
9901 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9902 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'
9903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9904 else
9905 allow_undefined_flag=' -expect_unresolved \*'
9906 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'
9907 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~
9908 $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'
9909
9910 # Both c and cxx compiler support -rpath directly
9911 hardcode_libdir_flag_spec='-rpath $libdir'
9912 fi
9913 archive_cmds_need_lc='no'
9914 hardcode_libdir_separator=:
9915 ;;
9916
9917 solaris*)
9918 no_undefined_flag=' -z defs'
9919 if test yes = "$GCC"; then
9920 wlarc='$wl'
9921 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9923 $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'
9924 else
9925 case `$CC -V 2>&1` in
9926 *"Compilers 5.0"*)
9927 wlarc=''
9928 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9930 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9931 ;;
9932 *)
9933 wlarc='$wl'
9934 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9937 ;;
9938 esac
9939 fi
9940 hardcode_libdir_flag_spec='-R$libdir'
9941 hardcode_shlibpath_var=no
9942 case $host_os in
9943 solaris2.[0-5] | solaris2.[0-5].*) ;;
9944 *)
9945 # The compiler driver will combine and reorder linker options,
9946 # but understands '-z linker_flag'. GCC discards it without '$wl',
9947 # but is careful enough not to reorder.
9948 # Supported since Solaris 2.6 (maybe 2.5.1?)
9949 if test yes = "$GCC"; then
9950 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9951 else
9952 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9953 fi
9954 ;;
9955 esac
9956 link_all_deplibs=yes
9957 ;;
9958
9959 sunos4*)
9960 if test sequent = "$host_vendor"; then
9961 # Use $CC to link under sequent, because it throws in some extra .o
9962 # files that make .init and .fini sections work.
9963 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9964 else
9965 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9966 fi
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_direct=yes
9969 hardcode_minus_L=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 sysv4)
9974 case $host_vendor in
9975 sni)
9976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_direct=yes # is this really true???
9978 ;;
9979 siemens)
9980 ## LD is ld it makes a PLAMLIB
9981 ## CC just makes a GrossModule.
9982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9983 reload_cmds='$CC -r -o $output$reload_objs'
9984 hardcode_direct=no
9985 ;;
9986 motorola)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9989 ;;
9990 esac
9991 runpath_var='LD_RUN_PATH'
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 sysv4.3*)
9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_shlibpath_var=no
9998 export_dynamic_flag_spec='-Bexport'
9999 ;;
10000
10001 sysv4*MP*)
10002 if test -d /usr/nec; then
10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_shlibpath_var=no
10005 runpath_var=LD_RUN_PATH
10006 hardcode_runpath_var=yes
10007 ld_shlibs=yes
10008 fi
10009 ;;
10010
10011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10012 no_undefined_flag='$wl-z,text'
10013 archive_cmds_need_lc=no
10014 hardcode_shlibpath_var=no
10015 runpath_var='LD_RUN_PATH'
10016
10017 if test yes = "$GCC"; then
10018 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 fi
10024 ;;
10025
10026 sysv5* | sco3.2v5* | sco5v6*)
10027 # Note: We CANNOT use -z defs as we might desire, because we do not
10028 # link with -lc, and that would cause any symbols used from libc to
10029 # always be unresolved, which means just about no library would
10030 # ever link correctly. If we're not using GNU ld we use -z text
10031 # though, which does catch some bad symbols but isn't as heavy-handed
10032 # as -z defs.
10033 no_undefined_flag='$wl-z,text'
10034 allow_undefined_flag='$wl-z,nodefs'
10035 archive_cmds_need_lc=no
10036 hardcode_shlibpath_var=no
10037 hardcode_libdir_flag_spec='$wl-R,$libdir'
10038 hardcode_libdir_separator=':'
10039 link_all_deplibs=yes
10040 export_dynamic_flag_spec='$wl-Bexport'
10041 runpath_var='LD_RUN_PATH'
10042
10043 if test yes = "$GCC"; then
10044 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 else
10047 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 fi
10050 ;;
10051
10052 uts4*)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_shlibpath_var=no
10056 ;;
10057
10058 *)
10059 ld_shlibs=no
10060 ;;
10061 esac
10062
10063 if test sni = "$host_vendor"; then
10064 case $host in
10065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10066 export_dynamic_flag_spec='$wl-Blargedynsym'
10067 ;;
10068 esac
10069 fi
10070 fi
10071
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10073 $as_echo "$ld_shlibs" >&6; }
10074 test no = "$ld_shlibs" && can_build_shared=no
10075
10076 with_gnu_ld=$with_gnu_ld
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 #
10093 # Do we need to explicitly link libc?
10094 #
10095 case "x$archive_cmds_need_lc" in
10096 x|xyes)
10097 # Assume -lc should be added
10098 archive_cmds_need_lc=yes
10099
10100 if test yes,yes = "$GCC,$enable_shared"; then
10101 case $archive_cmds in
10102 *'~'*)
10103 # FIXME: we may have to deal with multi-command sequences.
10104 ;;
10105 '$CC '*)
10106 # Test whether the compiler implicitly links with -lc since on some
10107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10108 # to ld, don't add -lc before -lgcc.
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10110 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10111 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 $RM conftest*
10115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10116
10117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10118 (eval $ac_compile) 2>&5
10119 ac_status=$?
10120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10121 test $ac_status = 0; } 2>conftest.err; then
10122 soname=conftest
10123 lib=conftest
10124 libobjs=conftest.$ac_objext
10125 deplibs=
10126 wl=$lt_prog_compiler_wl
10127 pic_flag=$lt_prog_compiler_pic
10128 compiler_flags=-v
10129 linker_flags=-v
10130 verstring=
10131 output_objdir=.
10132 libname=conftest
10133 lt_save_allow_undefined_flag=$allow_undefined_flag
10134 allow_undefined_flag=
10135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10136 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10137 ac_status=$?
10138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10139 test $ac_status = 0; }
10140 then
10141 lt_cv_archive_cmds_need_lc=no
10142 else
10143 lt_cv_archive_cmds_need_lc=yes
10144 fi
10145 allow_undefined_flag=$lt_save_allow_undefined_flag
10146 else
10147 cat conftest.err 1>&5
10148 fi
10149 $RM conftest*
10150
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10153 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10154 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10155 ;;
10156 esac
10157 fi
10158 ;;
10159 esac
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
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10314
10315 if test yes = "$GCC"; then
10316 case $host_os in
10317 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10318 *) lt_awk_arg='/^libraries:/' ;;
10319 esac
10320 case $host_os in
10321 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10322 *) lt_sed_strip_eq='s|=/|/|g' ;;
10323 esac
10324 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10325 case $lt_search_path_spec in
10326 *\;*)
10327 # if the path contains ";" then we assume it to be the separator
10328 # otherwise default to the standard path separator (i.e. ":") - it is
10329 # assumed that no part of a normal pathname contains ";" but that should
10330 # okay in the real world where ";" in dirpaths is itself problematic.
10331 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10332 ;;
10333 *)
10334 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10335 ;;
10336 esac
10337 # Ok, now we have the path, separated by spaces, we can step through it
10338 # and add multilib dir if necessary...
10339 lt_tmp_lt_search_path_spec=
10340 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10341 # ...but if some path component already ends with the multilib dir we assume
10342 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10343 case "$lt_multi_os_dir; $lt_search_path_spec " in
10344 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10345 lt_multi_os_dir=
10346 ;;
10347 esac
10348 for lt_sys_path in $lt_search_path_spec; do
10349 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10350 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10351 elif test -n "$lt_multi_os_dir"; then
10352 test -d "$lt_sys_path" && \
10353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10354 fi
10355 done
10356 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10357 BEGIN {RS = " "; FS = "/|\n";} {
10358 lt_foo = "";
10359 lt_count = 0;
10360 for (lt_i = NF; lt_i > 0; lt_i--) {
10361 if ($lt_i != "" && $lt_i != ".") {
10362 if ($lt_i == "..") {
10363 lt_count++;
10364 } else {
10365 if (lt_count == 0) {
10366 lt_foo = "/" $lt_i lt_foo;
10367 } else {
10368 lt_count--;
10369 }
10370 }
10371 }
10372 }
10373 if (lt_foo != "") { lt_freq[lt_foo]++; }
10374 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10375 }'`
10376 # AWK program above erroneously prepends '/' to C:/dos/paths
10377 # for these hosts.
10378 case $host_os in
10379 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10380 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10381 esac
10382 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10383 else
10384 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10385 fi
10386 library_names_spec=
10387 libname_spec='lib$name'
10388 soname_spec=
10389 shrext_cmds=.so
10390 postinstall_cmds=
10391 postuninstall_cmds=
10392 finish_cmds=
10393 finish_eval=
10394 shlibpath_var=
10395 shlibpath_overrides_runpath=unknown
10396 version_type=none
10397 dynamic_linker="$host_os ld.so"
10398 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10399 need_lib_prefix=unknown
10400 hardcode_into_libs=no
10401
10402 # when you set need_version to no, make sure it does not cause -set_version
10403 # flags to be left without arguments
10404 need_version=unknown
10405
10406
10407
10408 case $host_os in
10409 aix3*)
10410 version_type=linux # correct to gnu/linux during the next big refactor
10411 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10412 shlibpath_var=LIBPATH
10413
10414 # AIX 3 has no versioning support, so we append a major version to the name.
10415 soname_spec='$libname$release$shared_ext$major'
10416 ;;
10417
10418 aix[4-9]*)
10419 version_type=linux # correct to gnu/linux during the next big refactor
10420 need_lib_prefix=no
10421 need_version=no
10422 hardcode_into_libs=yes
10423 if test ia64 = "$host_cpu"; then
10424 # AIX 5 supports IA64
10425 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 else
10428 # With GCC up to 2.95.x, collect2 would create an import file
10429 # for dependence libraries. The import file would start with
10430 # the line '#! .'. This would cause the generated library to
10431 # depend on '.', always an invalid library. This was fixed in
10432 # development snapshots of GCC prior to 3.0.
10433 case $host_os in
10434 aix4 | aix4.[01] | aix4.[01].*)
10435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10436 echo ' yes '
10437 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10438 :
10439 else
10440 can_build_shared=no
10441 fi
10442 ;;
10443 esac
10444 # Using Import Files as archive members, it is possible to support
10445 # filename-based versioning of shared library archives on AIX. While
10446 # this would work for both with and without runtime linking, it will
10447 # prevent static linking of such archives. So we do filename-based
10448 # shared library versioning with .so extension only, which is used
10449 # when both runtime linking and shared linking is enabled.
10450 # Unfortunately, runtime linking may impact performance, so we do
10451 # not want this to be the default eventually. Also, we use the
10452 # versioned .so libs for executables only if there is the -brtl
10453 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10454 # To allow for filename-based versioning support, we need to create
10455 # libNAME.so.V as an archive file, containing:
10456 # *) an Import File, referring to the versioned filename of the
10457 # archive as well as the shared archive member, telling the
10458 # bitwidth (32 or 64) of that shared object, and providing the
10459 # list of exported symbols of that shared object, eventually
10460 # decorated with the 'weak' keyword
10461 # *) the shared object with the F_LOADONLY flag set, to really avoid
10462 # it being seen by the linker.
10463 # At run time we better use the real file rather than another symlink,
10464 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10465
10466 case $with_aix_soname,$aix_use_runtimelinking in
10467 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10468 # soname into executable. Probably we can add versioning support to
10469 # collect2, so additional links can be useful in future.
10470 aix,yes) # traditional libtool
10471 dynamic_linker='AIX unversionable lib.so'
10472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10473 # instead of lib<name>.a to let people know that these are not
10474 # typical AIX shared libraries.
10475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10476 ;;
10477 aix,no) # traditional AIX only
10478 dynamic_linker='AIX lib.a(lib.so.V)'
10479 # We preserve .a as extension for shared libraries through AIX4.2
10480 # and later when we are not doing run time linking.
10481 library_names_spec='$libname$release.a $libname.a'
10482 soname_spec='$libname$release$shared_ext$major'
10483 ;;
10484 svr4,*) # full svr4 only
10485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10487 # We do not specify a path in Import Files, so LIBPATH fires.
10488 shlibpath_overrides_runpath=yes
10489 ;;
10490 *,yes) # both, prefer svr4
10491 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10492 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10493 # unpreferred sharedlib libNAME.a needs extra handling
10494 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"'
10495 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"'
10496 # We do not specify a path in Import Files, so LIBPATH fires.
10497 shlibpath_overrides_runpath=yes
10498 ;;
10499 *,no) # both, prefer aix
10500 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10501 library_names_spec='$libname$release.a $libname.a'
10502 soname_spec='$libname$release$shared_ext$major'
10503 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10504 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)'
10505 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"'
10506 ;;
10507 esac
10508 shlibpath_var=LIBPATH
10509 fi
10510 ;;
10511
10512 amigaos*)
10513 case $host_cpu in
10514 powerpc)
10515 # Since July 2007 AmigaOS4 officially supports .so libraries.
10516 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10518 ;;
10519 m68k)
10520 library_names_spec='$libname.ixlibrary $libname.a'
10521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10522 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'
10523 ;;
10524 esac
10525 ;;
10526
10527 beos*)
10528 library_names_spec='$libname$shared_ext'
10529 dynamic_linker="$host_os ld.so"
10530 shlibpath_var=LIBRARY_PATH
10531 ;;
10532
10533 bsdi[45]*)
10534 version_type=linux # correct to gnu/linux during the next big refactor
10535 need_version=no
10536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10537 soname_spec='$libname$release$shared_ext$major'
10538 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10541 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10542 # the default ld.so.conf also contains /usr/contrib/lib and
10543 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10544 # libtool to hard-code these into programs
10545 ;;
10546
10547 cygwin* | mingw* | pw32* | cegcc*)
10548 version_type=windows
10549 shrext_cmds=.dll
10550 need_version=no
10551 need_lib_prefix=no
10552
10553 case $GCC,$cc_basename in
10554 yes,*)
10555 # gcc
10556 library_names_spec='$libname.dll.a'
10557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10558 postinstall_cmds='base_file=`basename \$file`~
10559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10560 dldir=$destdir/`dirname \$dlpath`~
10561 test -d \$dldir || mkdir -p \$dldir~
10562 $install_prog $dir/$dlname \$dldir/$dlname~
10563 chmod a+x \$dldir/$dlname~
10564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10566 fi'
10567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10568 dlpath=$dir/\$dldll~
10569 $RM \$dlpath'
10570 shlibpath_overrides_runpath=yes
10571
10572 case $host_os in
10573 cygwin*)
10574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10575 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10576
10577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10578 ;;
10579 mingw* | cegcc*)
10580 # MinGW DLLs use traditional 'lib' prefix
10581 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10582 ;;
10583 pw32*)
10584 # pw32 DLLs use 'pw' prefix rather than 'lib'
10585 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10586 ;;
10587 esac
10588 dynamic_linker='Win32 ld.exe'
10589 ;;
10590
10591 *,cl*)
10592 # Native MSVC
10593 libname_spec='$name'
10594 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10595 library_names_spec='$libname.dll.lib'
10596
10597 case $build_os in
10598 mingw*)
10599 sys_lib_search_path_spec=
10600 lt_save_ifs=$IFS
10601 IFS=';'
10602 for lt_path in $LIB
10603 do
10604 IFS=$lt_save_ifs
10605 # Let DOS variable expansion print the short 8.3 style file name.
10606 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10607 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10608 done
10609 IFS=$lt_save_ifs
10610 # Convert to MSYS style.
10611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10612 ;;
10613 cygwin*)
10614 # Convert to unix form, then to dos form, then back to unix form
10615 # but this time dos style (no spaces!) so that the unix form looks
10616 # like /cygdrive/c/PROGRA~1:/cygdr...
10617 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10618 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10619 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10620 ;;
10621 *)
10622 sys_lib_search_path_spec=$LIB
10623 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10624 # It is most probably a Windows format PATH.
10625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10626 else
10627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10628 fi
10629 # FIXME: find the short name or the path components, as spaces are
10630 # common. (e.g. "Program Files" -> "PROGRA~1")
10631 ;;
10632 esac
10633
10634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10635 postinstall_cmds='base_file=`basename \$file`~
10636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10637 dldir=$destdir/`dirname \$dlpath`~
10638 test -d \$dldir || mkdir -p \$dldir~
10639 $install_prog $dir/$dlname \$dldir/$dlname'
10640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10641 dlpath=$dir/\$dldll~
10642 $RM \$dlpath'
10643 shlibpath_overrides_runpath=yes
10644 dynamic_linker='Win32 link.exe'
10645 ;;
10646
10647 *)
10648 # Assume MSVC wrapper
10649 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10650 dynamic_linker='Win32 ld.exe'
10651 ;;
10652 esac
10653 # FIXME: first we should search . and the directory the executable is in
10654 shlibpath_var=PATH
10655 ;;
10656
10657 darwin* | rhapsody*)
10658 dynamic_linker="$host_os dyld"
10659 version_type=darwin
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10663 soname_spec='$libname$release$major$shared_ext'
10664 shlibpath_overrides_runpath=yes
10665 shlibpath_var=DYLD_LIBRARY_PATH
10666 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10667
10668 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10670 ;;
10671
10672 dgux*)
10673 version_type=linux # correct to gnu/linux during the next big refactor
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10677 soname_spec='$libname$release$shared_ext$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 ;;
10680
10681 freebsd* | dragonfly*)
10682 # DragonFly does not have aout. When/if they implement a new
10683 # versioning mechanism, adjust this.
10684 if test -x /usr/bin/objformat; then
10685 objformat=`/usr/bin/objformat`
10686 else
10687 case $host_os in
10688 freebsd[23].*) objformat=aout ;;
10689 *) objformat=elf ;;
10690 esac
10691 fi
10692 version_type=freebsd-$objformat
10693 case $version_type in
10694 freebsd-elf*)
10695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696 soname_spec='$libname$release$shared_ext$major'
10697 need_version=no
10698 need_lib_prefix=no
10699 ;;
10700 freebsd-*)
10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10702 need_version=yes
10703 ;;
10704 esac
10705 shlibpath_var=LD_LIBRARY_PATH
10706 case $host_os in
10707 freebsd2.*)
10708 shlibpath_overrides_runpath=yes
10709 ;;
10710 freebsd3.[01]* | freebsdelf3.[01]*)
10711 shlibpath_overrides_runpath=yes
10712 hardcode_into_libs=yes
10713 ;;
10714 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10715 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10716 shlibpath_overrides_runpath=no
10717 hardcode_into_libs=yes
10718 ;;
10719 *) # from 4.6 on, and DragonFly
10720 shlibpath_overrides_runpath=yes
10721 hardcode_into_libs=yes
10722 ;;
10723 esac
10724 ;;
10725
10726 haiku*)
10727 version_type=linux # correct to gnu/linux during the next big refactor
10728 need_lib_prefix=no
10729 need_version=no
10730 dynamic_linker="$host_os runtime_loader"
10731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10732 soname_spec='$libname$release$shared_ext$major'
10733 shlibpath_var=LIBRARY_PATH
10734 shlibpath_overrides_runpath=no
10735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10736 hardcode_into_libs=yes
10737 ;;
10738
10739 hpux9* | hpux10* | hpux11*)
10740 # Give a soname corresponding to the major version so that dld.sl refuses to
10741 # link against other versions.
10742 version_type=sunos
10743 need_lib_prefix=no
10744 need_version=no
10745 case $host_cpu in
10746 ia64*)
10747 shrext_cmds='.so'
10748 hardcode_into_libs=yes
10749 dynamic_linker="$host_os dld.so"
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10753 soname_spec='$libname$release$shared_ext$major'
10754 if test 32 = "$HPUX_IA64_MODE"; then
10755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10756 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10757 else
10758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10759 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10760 fi
10761 ;;
10762 hppa*64*)
10763 shrext_cmds='.sl'
10764 hardcode_into_libs=yes
10765 dynamic_linker="$host_os dld.sl"
10766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769 soname_spec='$libname$release$shared_ext$major'
10770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10772 ;;
10773 *)
10774 shrext_cmds='.sl'
10775 dynamic_linker="$host_os dld.sl"
10776 shlibpath_var=SHLIB_PATH
10777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10779 soname_spec='$libname$release$shared_ext$major'
10780 ;;
10781 esac
10782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10783 postinstall_cmds='chmod 555 $lib'
10784 # or fails outright, so override atomically:
10785 install_override_mode=555
10786 ;;
10787
10788 interix[3-9]*)
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10793 soname_spec='$libname$release$shared_ext$major'
10794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 ;;
10799
10800 irix5* | irix6* | nonstopux*)
10801 case $host_os in
10802 nonstopux*) version_type=nonstopux ;;
10803 *)
10804 if test yes = "$lt_cv_prog_gnu_ld"; then
10805 version_type=linux # correct to gnu/linux during the next big refactor
10806 else
10807 version_type=irix
10808 fi ;;
10809 esac
10810 need_lib_prefix=no
10811 need_version=no
10812 soname_spec='$libname$release$shared_ext$major'
10813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10814 case $host_os in
10815 irix5* | nonstopux*)
10816 libsuff= shlibsuff=
10817 ;;
10818 *)
10819 case $LD in # libtool.m4 will add one of these switches to LD
10820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10821 libsuff= shlibsuff= libmagic=32-bit;;
10822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10823 libsuff=32 shlibsuff=N32 libmagic=N32;;
10824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10826 *) libsuff= shlibsuff= libmagic=never-match;;
10827 esac
10828 ;;
10829 esac
10830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10831 shlibpath_overrides_runpath=no
10832 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10833 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 # No shared lib support for Linux oldld, aout, or coff.
10838 linux*oldld* | linux*aout* | linux*coff*)
10839 dynamic_linker=no
10840 ;;
10841
10842 linux*android*)
10843 version_type=none # Android doesn't support versioned libraries.
10844 need_lib_prefix=no
10845 need_version=no
10846 library_names_spec='$libname$release$shared_ext'
10847 soname_spec='$libname$release$shared_ext'
10848 finish_cmds=
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851
10852 # This implies no fast_install, which is unacceptable.
10853 # Some rework will be needed to allow for fast_install
10854 # before this can be enabled.
10855 hardcode_into_libs=yes
10856
10857 dynamic_linker='Android linker'
10858 # Don't embed -rpath directories since the linker doesn't support them.
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 ;;
10861
10862 # This must be glibc/ELF.
10863 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868 soname_spec='$libname$release$shared_ext$major'
10869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=no
10872
10873 # Some binutils ld are patched to set DT_RUNPATH
10874 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 lt_cv_shlibpath_overrides_runpath=no
10878 save_LDFLAGS=$LDFLAGS
10879 save_libdir=$libdir
10880 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10881 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884
10885 int
10886 main ()
10887 {
10888
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10895 lt_cv_shlibpath_overrides_runpath=yes
10896 fi
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LDFLAGS=$save_LDFLAGS
10901 libdir=$save_libdir
10902
10903 fi
10904
10905 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10906
10907 # This implies no fast_install, which is unacceptable.
10908 # Some rework will be needed to allow for fast_install
10909 # before this can be enabled.
10910 hardcode_into_libs=yes
10911
10912 # Ideally, we could use ldconfig to report *all* directores which are
10913 # searched for libraries, however this is still not possible. Aside from not
10914 # being certain /sbin/ldconfig is available, command
10915 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10916 # even though it is searched at run-time. Try to do the best guess by
10917 # appending ld.so.conf contents (and includes) to the search path.
10918 if test -f /etc/ld.so.conf; then
10919 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' ' '`
10920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10921 fi
10922
10923 # We used to test for /lib/ld.so.1 and disable shared libraries on
10924 # powerpc, because MkLinux only supported shared libraries with the
10925 # GNU dynamic linker. Since this was broken with cross compilers,
10926 # most powerpc-linux boxes support dynamic linking these days and
10927 # people can always --disable-shared, the test was removed, and we
10928 # assume the GNU/Linux dynamic linker is in use.
10929 dynamic_linker='GNU/Linux ld.so'
10930 ;;
10931
10932 netbsd*)
10933 version_type=sunos
10934 need_lib_prefix=no
10935 need_version=no
10936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10939 dynamic_linker='NetBSD (a.out) ld.so'
10940 else
10941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec='$libname$release$shared_ext$major'
10943 dynamic_linker='NetBSD ld.elf_so'
10944 fi
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10947 hardcode_into_libs=yes
10948 ;;
10949
10950 newsos6)
10951 version_type=linux # correct to gnu/linux during the next big refactor
10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10955 ;;
10956
10957 *nto* | *qnx*)
10958 version_type=qnx
10959 need_lib_prefix=no
10960 need_version=no
10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962 soname_spec='$libname$release$shared_ext$major'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=no
10965 hardcode_into_libs=yes
10966 dynamic_linker='ldqnx.so'
10967 ;;
10968
10969 openbsd* | bitrig*)
10970 version_type=sunos
10971 sys_lib_dlsearch_path_spec=/usr/lib
10972 need_lib_prefix=no
10973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10974 need_version=no
10975 else
10976 need_version=yes
10977 fi
10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes
10982 ;;
10983
10984 os2*)
10985 libname_spec='$name'
10986 version_type=windows
10987 shrext_cmds=.dll
10988 need_version=no
10989 need_lib_prefix=no
10990 # OS/2 can only load a DLL with a base name of 8 characters or less.
10991 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10992 v=$($ECHO $release$versuffix | tr -d .-);
10993 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10994 $ECHO $n$v`$shared_ext'
10995 library_names_spec='${libname}_dll.$libext'
10996 dynamic_linker='OS/2 ld.exe'
10997 shlibpath_var=BEGINLIBPATH
10998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11000 postinstall_cmds='base_file=`basename \$file`~
11001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11002 dldir=$destdir/`dirname \$dlpath`~
11003 test -d \$dldir || mkdir -p \$dldir~
11004 $install_prog $dir/$dlname \$dldir/$dlname~
11005 chmod a+x \$dldir/$dlname~
11006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11008 fi'
11009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11010 dlpath=$dir/\$dldll~
11011 $RM \$dlpath'
11012 ;;
11013
11014 osf3* | osf4* | osf5*)
11015 version_type=osf
11016 need_lib_prefix=no
11017 need_version=no
11018 soname_spec='$libname$release$shared_ext$major'
11019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11023 ;;
11024
11025 rdos*)
11026 dynamic_linker=no
11027 ;;
11028
11029 solaris*)
11030 version_type=linux # correct to gnu/linux during the next big refactor
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034 soname_spec='$libname$release$shared_ext$major'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 hardcode_into_libs=yes
11038 # ldd complains unless libraries are executable
11039 postinstall_cmds='chmod +x $lib'
11040 ;;
11041
11042 sunos4*)
11043 version_type=sunos
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 if test yes = "$with_gnu_ld"; then
11049 need_lib_prefix=no
11050 fi
11051 need_version=yes
11052 ;;
11053
11054 sysv4 | sysv4.3*)
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057 soname_spec='$libname$release$shared_ext$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 case $host_vendor in
11060 sni)
11061 shlibpath_overrides_runpath=no
11062 need_lib_prefix=no
11063 runpath_var=LD_RUN_PATH
11064 ;;
11065 siemens)
11066 need_lib_prefix=no
11067 ;;
11068 motorola)
11069 need_lib_prefix=no
11070 need_version=no
11071 shlibpath_overrides_runpath=no
11072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11073 ;;
11074 esac
11075 ;;
11076
11077 sysv4*MP*)
11078 if test -d /usr/nec; then
11079 version_type=linux # correct to gnu/linux during the next big refactor
11080 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11081 soname_spec='$libname$shared_ext.$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 fi
11084 ;;
11085
11086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11087 version_type=sco
11088 need_lib_prefix=no
11089 need_version=no
11090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11091 soname_spec='$libname$release$shared_ext$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes
11094 hardcode_into_libs=yes
11095 if test yes = "$with_gnu_ld"; then
11096 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11097 else
11098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11099 case $host_os in
11100 sco3.2v5*)
11101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11102 ;;
11103 esac
11104 fi
11105 sys_lib_dlsearch_path_spec='/usr/lib'
11106 ;;
11107
11108 tpf*)
11109 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=no
11116 hardcode_into_libs=yes
11117 ;;
11118
11119 uts4*)
11120 version_type=linux # correct to gnu/linux during the next big refactor
11121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122 soname_spec='$libname$release$shared_ext$major'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 ;;
11125
11126 *)
11127 dynamic_linker=no
11128 ;;
11129 esac
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11131 $as_echo "$dynamic_linker" >&6; }
11132 test no = "$dynamic_linker" && can_build_shared=no
11133
11134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11135 if test yes = "$GCC"; then
11136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11137 fi
11138
11139 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11140 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11141 fi
11142
11143 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11144 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11145 fi
11146
11147 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11148 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11149
11150 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11151 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11152
11153 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11154 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11253 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11254 hardcode_action=
11255 if test -n "$hardcode_libdir_flag_spec" ||
11256 test -n "$runpath_var" ||
11257 test yes = "$hardcode_automatic"; then
11258
11259 # We can hardcode non-existent directories.
11260 if test no != "$hardcode_direct" &&
11261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11262 # have to relink, otherwise we might link with an installed library
11263 # when we should be linking with a yet-to-be-installed one
11264 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11265 test no != "$hardcode_minus_L"; then
11266 # Linking always hardcodes the temporary library directory.
11267 hardcode_action=relink
11268 else
11269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11270 hardcode_action=immediate
11271 fi
11272 else
11273 # We cannot hardcode anything, or else we can only hardcode existing
11274 # directories.
11275 hardcode_action=unsupported
11276 fi
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11278 $as_echo "$hardcode_action" >&6; }
11279
11280 if test relink = "$hardcode_action" ||
11281 test yes = "$inherit_rpath"; then
11282 # Fast installation is not supported
11283 enable_fast_install=no
11284 elif test yes = "$shlibpath_overrides_runpath" ||
11285 test no = "$enable_shared"; then
11286 # Fast installation is not necessary
11287 enable_fast_install=needless
11288 fi
11289
11290
11291
11292
11293
11294
11295 if test yes != "$enable_dlopen"; then
11296 enable_dlopen=unknown
11297 enable_dlopen_self=unknown
11298 enable_dlopen_self_static=unknown
11299 else
11300 lt_cv_dlopen=no
11301 lt_cv_dlopen_libs=
11302
11303 case $host_os in
11304 beos*)
11305 lt_cv_dlopen=load_add_on
11306 lt_cv_dlopen_libs=
11307 lt_cv_dlopen_self=yes
11308 ;;
11309
11310 mingw* | pw32* | cegcc*)
11311 lt_cv_dlopen=LoadLibrary
11312 lt_cv_dlopen_libs=
11313 ;;
11314
11315 cygwin*)
11316 lt_cv_dlopen=dlopen
11317 lt_cv_dlopen_libs=
11318 ;;
11319
11320 darwin*)
11321 # if libdl is installed we need to link against it
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11324 if ${ac_cv_lib_dl_dlopen+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldl $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_dl_dlopen=yes
11349 else
11350 ac_cv_lib_dl_dlopen=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11359 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11360 else
11361
11362 lt_cv_dlopen=dyld
11363 lt_cv_dlopen_libs=
11364 lt_cv_dlopen_self=yes
11365
11366 fi
11367
11368 ;;
11369
11370 tpf*)
11371 # Don't try to run any link tests for TPF. We know it's impossible
11372 # because TPF is a cross-compiler, and we know how we open DSOs.
11373 lt_cv_dlopen=dlopen
11374 lt_cv_dlopen_libs=
11375 lt_cv_dlopen_self=no
11376 ;;
11377
11378 *)
11379 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11380 if test "x$ac_cv_func_shl_load" = xyes; then :
11381 lt_cv_dlopen=shl_load
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11384 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11385 if ${ac_cv_lib_dld_shl_load+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldld $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char shl_load ();
11400 int
11401 main ()
11402 {
11403 return shl_load ();
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dld_shl_load=yes
11410 else
11411 ac_cv_lib_dld_shl_load=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11418 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11419 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11420 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11421 else
11422 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11423 if test "x$ac_cv_func_dlopen" = xyes; then :
11424 lt_cv_dlopen=dlopen
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11428 if ${ac_cv_lib_dl_dlopen+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-ldl $LIBS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char dlopen ();
11443 int
11444 main ()
11445 {
11446 return dlopen ();
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_dl_dlopen=yes
11453 else
11454 ac_cv_lib_dl_dlopen=no
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11463 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11466 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11467 if ${ac_cv_lib_svld_dlopen+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-lsvld $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char dlopen ();
11482 int
11483 main ()
11484 {
11485 return dlopen ();
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_svld_dlopen=yes
11492 else
11493 ac_cv_lib_svld_dlopen=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11500 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11501 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11502 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11505 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11506 if ${ac_cv_lib_dld_dld_link+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-ldld $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char dld_link ();
11521 int
11522 main ()
11523 {
11524 return dld_link ();
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_dld_dld_link=yes
11531 else
11532 ac_cv_lib_dld_dld_link=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11539 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11540 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11541 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11542 fi
11543
11544
11545 fi
11546
11547
11548 fi
11549
11550
11551 fi
11552
11553
11554 fi
11555
11556
11557 fi
11558
11559 ;;
11560 esac
11561
11562 if test no = "$lt_cv_dlopen"; then
11563 enable_dlopen=no
11564 else
11565 enable_dlopen=yes
11566 fi
11567
11568 case $lt_cv_dlopen in
11569 dlopen)
11570 save_CPPFLAGS=$CPPFLAGS
11571 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11572
11573 save_LDFLAGS=$LDFLAGS
11574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11575
11576 save_LIBS=$LIBS
11577 LIBS="$lt_cv_dlopen_libs $LIBS"
11578
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11580 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11581 if ${lt_cv_dlopen_self+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test yes = "$cross_compiling"; then :
11585 lt_cv_dlopen_self=cross
11586 else
11587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11588 lt_status=$lt_dlunknown
11589 cat > conftest.$ac_ext <<_LT_EOF
11590 #line $LINENO "configure"
11591 #include "confdefs.h"
11592
11593 #if HAVE_DLFCN_H
11594 #include <dlfcn.h>
11595 #endif
11596
11597 #include <stdio.h>
11598
11599 #ifdef RTLD_GLOBAL
11600 # define LT_DLGLOBAL RTLD_GLOBAL
11601 #else
11602 # ifdef DL_GLOBAL
11603 # define LT_DLGLOBAL DL_GLOBAL
11604 # else
11605 # define LT_DLGLOBAL 0
11606 # endif
11607 #endif
11608
11609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610 find out it does not work in some platform. */
11611 #ifndef LT_DLLAZY_OR_NOW
11612 # ifdef RTLD_LAZY
11613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11614 # else
11615 # ifdef DL_LAZY
11616 # define LT_DLLAZY_OR_NOW DL_LAZY
11617 # else
11618 # ifdef RTLD_NOW
11619 # define LT_DLLAZY_OR_NOW RTLD_NOW
11620 # else
11621 # ifdef DL_NOW
11622 # define LT_DLLAZY_OR_NOW DL_NOW
11623 # else
11624 # define LT_DLLAZY_OR_NOW 0
11625 # endif
11626 # endif
11627 # endif
11628 # endif
11629 #endif
11630
11631 /* When -fvisibility=hidden is used, assume the code has been annotated
11632 correspondingly for the symbols needed. */
11633 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11634 int fnord () __attribute__((visibility("default")));
11635 #endif
11636
11637 int fnord () { return 42; }
11638 int main ()
11639 {
11640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641 int status = $lt_dlunknown;
11642
11643 if (self)
11644 {
11645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11646 else
11647 {
11648 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11649 else puts (dlerror ());
11650 }
11651 /* dlclose (self); */
11652 }
11653 else
11654 puts (dlerror ());
11655
11656 return status;
11657 }
11658 _LT_EOF
11659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11660 (eval $ac_link) 2>&5
11661 ac_status=$?
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11664 (./conftest; exit; ) >&5 2>/dev/null
11665 lt_status=$?
11666 case x$lt_status in
11667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11670 esac
11671 else :
11672 # compilation failed
11673 lt_cv_dlopen_self=no
11674 fi
11675 fi
11676 rm -fr conftest*
11677
11678
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11681 $as_echo "$lt_cv_dlopen_self" >&6; }
11682
11683 if test yes = "$lt_cv_dlopen_self"; then
11684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11686 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11687 if ${lt_cv_dlopen_self_static+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 if test yes = "$cross_compiling"; then :
11691 lt_cv_dlopen_self_static=cross
11692 else
11693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11694 lt_status=$lt_dlunknown
11695 cat > conftest.$ac_ext <<_LT_EOF
11696 #line $LINENO "configure"
11697 #include "confdefs.h"
11698
11699 #if HAVE_DLFCN_H
11700 #include <dlfcn.h>
11701 #endif
11702
11703 #include <stdio.h>
11704
11705 #ifdef RTLD_GLOBAL
11706 # define LT_DLGLOBAL RTLD_GLOBAL
11707 #else
11708 # ifdef DL_GLOBAL
11709 # define LT_DLGLOBAL DL_GLOBAL
11710 # else
11711 # define LT_DLGLOBAL 0
11712 # endif
11713 #endif
11714
11715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11716 find out it does not work in some platform. */
11717 #ifndef LT_DLLAZY_OR_NOW
11718 # ifdef RTLD_LAZY
11719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11720 # else
11721 # ifdef DL_LAZY
11722 # define LT_DLLAZY_OR_NOW DL_LAZY
11723 # else
11724 # ifdef RTLD_NOW
11725 # define LT_DLLAZY_OR_NOW RTLD_NOW
11726 # else
11727 # ifdef DL_NOW
11728 # define LT_DLLAZY_OR_NOW DL_NOW
11729 # else
11730 # define LT_DLLAZY_OR_NOW 0
11731 # endif
11732 # endif
11733 # endif
11734 # endif
11735 #endif
11736
11737 /* When -fvisibility=hidden is used, assume the code has been annotated
11738 correspondingly for the symbols needed. */
11739 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11740 int fnord () __attribute__((visibility("default")));
11741 #endif
11742
11743 int fnord () { return 42; }
11744 int main ()
11745 {
11746 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11747 int status = $lt_dlunknown;
11748
11749 if (self)
11750 {
11751 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11752 else
11753 {
11754 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11755 else puts (dlerror ());
11756 }
11757 /* dlclose (self); */
11758 }
11759 else
11760 puts (dlerror ());
11761
11762 return status;
11763 }
11764 _LT_EOF
11765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11766 (eval $ac_link) 2>&5
11767 ac_status=$?
11768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11770 (./conftest; exit; ) >&5 2>/dev/null
11771 lt_status=$?
11772 case x$lt_status in
11773 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11774 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11775 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11776 esac
11777 else :
11778 # compilation failed
11779 lt_cv_dlopen_self_static=no
11780 fi
11781 fi
11782 rm -fr conftest*
11783
11784
11785 fi
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11787 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11788 fi
11789
11790 CPPFLAGS=$save_CPPFLAGS
11791 LDFLAGS=$save_LDFLAGS
11792 LIBS=$save_LIBS
11793 ;;
11794 esac
11795
11796 case $lt_cv_dlopen_self in
11797 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11798 *) enable_dlopen_self=unknown ;;
11799 esac
11800
11801 case $lt_cv_dlopen_self_static in
11802 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11803 *) enable_dlopen_self_static=unknown ;;
11804 esac
11805 fi
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823 striplib=
11824 old_striplib=
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11826 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11827 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11828 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11829 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831 $as_echo "yes" >&6; }
11832 else
11833 # FIXME - insert some real tests, host_os isn't really good enough
11834 case $host_os in
11835 darwin*)
11836 if test -n "$STRIP"; then
11837 striplib="$STRIP -x"
11838 old_striplib="$STRIP -S"
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11840 $as_echo "yes" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 fi
11845 ;;
11846 *)
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 ;;
11850 esac
11851 fi
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864 # Report what library types will actually be built
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11866 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11868 $as_echo "$can_build_shared" >&6; }
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11871 $as_echo_n "checking whether to build shared libraries... " >&6; }
11872 test no = "$can_build_shared" && enable_shared=no
11873
11874 # On AIX, shared libraries and static libraries use the same namespace, and
11875 # are all built from PIC.
11876 case $host_os in
11877 aix3*)
11878 test yes = "$enable_shared" && enable_static=no
11879 if test -n "$RANLIB"; then
11880 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11881 postinstall_cmds='$RANLIB $lib'
11882 fi
11883 ;;
11884
11885 aix[4-9]*)
11886 if test ia64 != "$host_cpu"; then
11887 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11888 yes,aix,yes) ;; # shared object as lib.so file only
11889 yes,svr4,*) ;; # shared object as lib.so archive member only
11890 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11891 esac
11892 fi
11893 ;;
11894 esac
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11896 $as_echo "$enable_shared" >&6; }
11897
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11899 $as_echo_n "checking whether to build static libraries... " >&6; }
11900 # Make sure either enable_shared or enable_static is yes.
11901 test yes = "$enable_shared" || enable_static=yes
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11903 $as_echo "$enable_static" >&6; }
11904
11905
11906
11907
11908 fi
11909 ac_ext=c
11910 ac_cpp='$CPP $CPPFLAGS'
11911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11914
11915 CC=$lt_save_CC
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931 ac_config_commands="$ac_config_commands libtool"
11932
11933
11934
11935
11936 # Only expand once:
11937
11938
11939 # Find a good install program. We prefer a C program (faster),
11940 # so one script is as good as another. But avoid the broken or
11941 # incompatible versions:
11942 # SysV /etc/install, /usr/sbin/install
11943 # SunOS /usr/etc/install
11944 # IRIX /sbin/install
11945 # AIX /bin/install
11946 # AmigaOS /C/install, which installs bootblocks on floppy discs
11947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11950 # OS/2's system install, which has a completely different semantic
11951 # ./install, which can be erroneously created by make from ./install.sh.
11952 # Reject install programs that cannot install multiple files.
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11954 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11955 if test -z "$INSTALL"; then
11956 if ${ac_cv_path_install+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 # Account for people who put trailing slashes in PATH elements.
11965 case $as_dir/ in #((
11966 ./ | .// | /[cC]/* | \
11967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11968 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11969 /usr/ucb/* ) ;;
11970 *)
11971 # OSF1 and SCO ODT 3.0 have their own names for install.
11972 # Don't use installbsd from OSF since it installs stuff as root
11973 # by default.
11974 for ac_prog in ginstall scoinst install; do
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11977 if test $ac_prog = install &&
11978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11979 # AIX install. It has an incompatible calling convention.
11980 :
11981 elif test $ac_prog = install &&
11982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11983 # program-specific install script used by HP pwplus--don't use.
11984 :
11985 else
11986 rm -rf conftest.one conftest.two conftest.dir
11987 echo one > conftest.one
11988 echo two > conftest.two
11989 mkdir conftest.dir
11990 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11991 test -s conftest.one && test -s conftest.two &&
11992 test -s conftest.dir/conftest.one &&
11993 test -s conftest.dir/conftest.two
11994 then
11995 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11996 break 3
11997 fi
11998 fi
11999 fi
12000 done
12001 done
12002 ;;
12003 esac
12004
12005 done
12006 IFS=$as_save_IFS
12007
12008 rm -rf conftest.one conftest.two conftest.dir
12009
12010 fi
12011 if test "${ac_cv_path_install+set}" = set; then
12012 INSTALL=$ac_cv_path_install
12013 else
12014 # As a last resort, use the slow shell script. Don't cache a
12015 # value for INSTALL within a source directory, because that will
12016 # break other packages using the cache if that directory is
12017 # removed, or if the value is a relative name.
12018 INSTALL=$ac_install_sh
12019 fi
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12022 $as_echo "$INSTALL" >&6; }
12023
12024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12025 # It thinks the first close brace ends the variable substitution.
12026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12027
12028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12029
12030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12031
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12033 $as_echo_n "checking whether ln -s works... " >&6; }
12034 LN_S=$as_ln_s
12035 if test "$LN_S" = "ln -s"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037 $as_echo "yes" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12040 $as_echo "no, using $LN_S" >&6; }
12041 fi
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
12044 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
12045 if ${ac_cv_prog_shell+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 ac_test_shell_script='
12049 test "$(expr 1 + 1)" = "2" &&
12050 test "$(( 1 + 1 ))" = "2"
12051 '
12052
12053 for ac_cv_prog_shell in \
12054 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
12055 case $ac_cv_prog_shell in #(
12056 /*) :
12057
12058 if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
12059 break
12060 fi
12061 ;; #(
12062 *) :
12063 ;;
12064 esac
12065 done
12066
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
12069 $as_echo "$ac_cv_prog_shell" >&6; }
12070 if test "$ac_cv_prog_shell" = "no"; then :
12071 SHELL=/bin/sh
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
12073 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
12074
12075 else
12076 SHELL="$ac_cv_prog_shell"
12077
12078 fi
12079
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12082 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12083 if test -z "$MKDIR_P"; then
12084 if ${ac_cv_path_mkdir+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12089 do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
12092 for ac_prog in mkdir gmkdir; do
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12096 'mkdir (GNU coreutils) '* | \
12097 'mkdir (coreutils) '* | \
12098 'mkdir (fileutils) '4.1*)
12099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12100 break 3;;
12101 esac
12102 done
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi
12108
12109 test -d ./--version && rmdir ./--version
12110 if test "${ac_cv_path_mkdir+set}" = set; then
12111 MKDIR_P="$ac_cv_path_mkdir -p"
12112 else
12113 # As a last resort, use the slow shell script. Don't cache a
12114 # value for MKDIR_P within a source directory, because that will
12115 # break other packages using the cache if that directory is
12116 # removed, or if the value is a relative name.
12117 MKDIR_P="$ac_install_sh -d"
12118 fi
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12121 $as_echo "$MKDIR_P" >&6; }
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131 #
12132 # Use pkg-config
12133 #
12134
12135
12136
12137
12138
12139
12140
12141
12142 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12143 if test -n "$ac_tool_prefix"; then
12144 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12145 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 case $PKG_CONFIG in
12152 [\\/]* | ?:[\\/]*)
12153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12154 ;;
12155 *)
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12166 fi
12167 done
12168 done
12169 IFS=$as_save_IFS
12170
12171 ;;
12172 esac
12173 fi
12174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12175 if test -n "$PKG_CONFIG"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12177 $as_echo "$PKG_CONFIG" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 fi
12182
12183
12184 fi
12185 if test -z "$ac_cv_path_PKG_CONFIG"; then
12186 ac_pt_PKG_CONFIG=$PKG_CONFIG
12187 # Extract the first word of "pkg-config", so it can be a program name with args.
12188 set dummy pkg-config; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 case $ac_pt_PKG_CONFIG in
12195 [\\/]* | ?:[\\/]*)
12196 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12197 ;;
12198 *)
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12201 do
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 break 2
12209 fi
12210 done
12211 done
12212 IFS=$as_save_IFS
12213
12214 ;;
12215 esac
12216 fi
12217 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12218 if test -n "$ac_pt_PKG_CONFIG"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12220 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225
12226 if test "x$ac_pt_PKG_CONFIG" = x; then
12227 PKG_CONFIG=""
12228 else
12229 case $cross_compiling:$ac_tool_warned in
12230 yes:)
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12233 ac_tool_warned=yes ;;
12234 esac
12235 PKG_CONFIG=$ac_pt_PKG_CONFIG
12236 fi
12237 else
12238 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12239 fi
12240
12241 fi
12242 if test -n "$PKG_CONFIG"; then
12243 _pkg_min_version=0.9.0
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12245 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12246 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 $as_echo "yes" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 PKG_CONFIG=""
12253 fi
12254 fi
12255 if test -z "$PKG_CONFIG"; then :
12256 as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
12257 fi
12258
12259 # [pairwise: --enable-buffer-useinline, --disable-buffer-useinline]
12260 # Check whether --enable-buffer_useinline was given.
12261 if test "${enable_buffer_useinline+set}" = set; then :
12262 enableval=$enable_buffer_useinline; if test yes = "${enable}"
12263 then
12264
12265 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
12266
12267 fi
12268 else
12269 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
12270
12271 fi
12272
12273
12274 # [pairwise: --enable-warn-shadow, --disable-warn-shadow]
12275 # Check whether --enable-warn_shadow was given.
12276 if test "${enable_warn_shadow+set}" = set; then :
12277 enableval=$enable_warn_shadow;
12278 fi
12279
12280
12281 # [pairwise: --enable-warn-error, --disable-warn-error]
12282 # Check whether --enable-warn_error was given.
12283 if test "${enable_warn_error+set}" = set; then :
12284 enableval=$enable_warn_error;
12285 fi
12286
12287
12288 # [pairwise: --enable-developer, --disable-developer]
12289 # Check whether --enable-developer was given.
12290 if test "${enable_developer+set}" = set; then :
12291 enableval=$enable_developer;
12292 fi
12293
12294
12295 XTARGETS=
12296 if test "$enable_developer" = "yes"; then :
12297 STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
12298 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
12299 test "${enable_querytrace+set}" = set || enable_querytrace=yes
12300 test "${with_cmocka+set}" = set || with_cmocka=yes
12301 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
12302 test "${enable_symtable+set}" = set || enable_symtable=all
12303 test "${enable_warn_error+set}" = set || enable_warn_error=yes
12304 test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
12305 test "${with_zlib+set}" = set || with_zlib=yes
12306 XTARGETS='${XTARGETS}'
12307
12308 fi
12309
12310
12311 # Fuzzing is not included in pairwise testing as fuzzing tools are
12312 # not present in the relevant Docker image.
12313 #
12314 # [pairwise: skip]
12315 # Check whether --enable-fuzzing was given.
12316 if test "${enable_fuzzing+set}" = set; then :
12317 enableval=$enable_fuzzing;
12318 else
12319 enable_fuzzing=no
12320 fi
12321
12322
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
12324 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
12325 case $enable_fuzzing in #(
12326 no) :
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; } ;; #(
12329 afl) :
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
12332 $as_echo "using AFL" >&6; }
12333
12334 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
12335
12336 CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
12337 LIBS="$LIBS -lpthread" ;; #(
12338 libfuzzer) :
12339
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
12341 $as_echo "using libFuzzer" >&6; }
12342 CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
12343 LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
12344 *) :
12345 as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
12346 *) :
12347 ;;
12348 esac
12349
12350 if test "$enable_fuzzing" = "afl"; then :
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
12352 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355
12356 int
12357 main ()
12358 {
12359 #ifndef __AFL_COMPILER
12360 #error AFL compiler required
12361 #endif
12362
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_compile "$LINENO"; then :
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12369 $as_echo "yes" >&6; }
12370 else
12371 as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374
12375 fi
12376
12377 # [pairwise: --enable-mutex-atomics, --disable-mutex-atomics]
12378 # Check whether --enable-mutex_atomics was given.
12379 if test "${enable_mutex_atomics+set}" = set; then :
12380 enableval=$enable_mutex_atomics;
12381 else
12382 enable_mutex_atomics=no
12383 fi
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to emulate atomics with mutexes" >&5
12387 $as_echo_n "checking whether to emulate atomics with mutexes... " >&6; }
12388 case "$enable_mutex_atomics" in
12389 yes)
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12391 $as_echo "yes" >&6; }
12392
12393 $as_echo "#define ISC_MUTEX_ATOMICS 1" >>confdefs.h
12394
12395 ;;
12396 no)
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12399 ;;
12400 *)
12401 as_fn_error $? "\"--enable-mutex-atomics requires yes or no\"" "$LINENO" 5
12402 ;;
12403 esac
12404
12405 #
12406 # Make very sure that these are the first files processed by
12407 # config.status, since we use the processed output as the input for
12408 # AC_SUBST_FILE() substitutions in other files.
12409 #
12410 ac_config_files="$ac_config_files make/rules make/includes"
12411
12412
12413 # Extract the first word of "ar", so it can be a program name with args.
12414 set dummy ar; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_path_AR+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 case $AR in
12421 [\\/]* | ?:[\\/]*)
12422 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12423 ;;
12424 *)
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12427 do
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12432 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12435 fi
12436 done
12437 done
12438 IFS=$as_save_IFS
12439
12440 ;;
12441 esac
12442 fi
12443 AR=$ac_cv_path_AR
12444 if test -n "$AR"; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12446 $as_echo "$AR" >&6; }
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12450 fi
12451
12452
12453 ARFLAGS="cruv"
12454
12455
12456
12457 # The POSIX ln(1) program. Non-POSIX systems may substitute
12458 # "copy" or something.
12459 LN=ln
12460
12461
12462 case "$AR" in
12463 "")
12464 as_fn_error $? "
12465 ar program not found. Please fix your PATH to include the directory in
12466 which ar resides, or set AR in the environment with the full path to ar.
12467 " "$LINENO" 5
12468
12469 ;;
12470 esac
12471
12472 #
12473 # Look for w3m
12474 #
12475 for ac_prog in w3m
12476 do
12477 # Extract the first word of "$ac_prog", so it can be a program name with args.
12478 set dummy $ac_prog; ac_word=$2
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12480 $as_echo_n "checking for $ac_word... " >&6; }
12481 if ${ac_cv_path_W3M+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 case $W3M in
12485 [\\/]* | ?:[\\/]*)
12486 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
12487 ;;
12488 *)
12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490 for as_dir in $PATH
12491 do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12496 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500 done
12501 done
12502 IFS=$as_save_IFS
12503
12504 ;;
12505 esac
12506 fi
12507 W3M=$ac_cv_path_W3M
12508 if test -n "$W3M"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
12510 $as_echo "$W3M" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516
12517 test -n "$W3M" && break
12518 done
12519 test -n "$W3M" || W3M="w3m"
12520
12521
12522
12523 #
12524 # Look for pandoc
12525 #
12526 # Extract the first word of "pandoc", so it can be a program name with args.
12527 set dummy pandoc; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if ${ac_cv_path_PANDOC+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 case $PANDOC in
12534 [\\/]* | ?:[\\/]*)
12535 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
12536 ;;
12537 *)
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
12554 ;;
12555 esac
12556 fi
12557 PANDOC=$ac_cv_path_PANDOC
12558 if test -n "$PANDOC"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
12560 $as_echo "$PANDOC" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564 fi
12565
12566
12567
12568
12569 #
12570 # Perl is optional; it is used only by some of the system test scripts.
12571 # Note: the backtrace feature (see below) uses perl to build the symbol table,
12572 # but it still compiles without perl, in which case an empty table will be used.
12573 #
12574 for ac_prog in perl5 perl
12575 do
12576 # Extract the first word of "$ac_prog", so it can be a program name with args.
12577 set dummy $ac_prog; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_path_PERL+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 case $PERL in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12586 ;;
12587 *)
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599 done
12600 done
12601 IFS=$as_save_IFS
12602
12603 ;;
12604 esac
12605 fi
12606 PERL=$ac_cv_path_PERL
12607 if test -n "$PERL"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12609 $as_echo "$PERL" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615
12616 test -n "$PERL" && break
12617 done
12618
12619
12620
12621 #
12622 # Python is also optional but required by default so that dnssec-keymgr gets
12623 # installed unless explicitly prevented by the user using --without-python.
12624 #
12625 testminvers='import sys
12626 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
12627 exit(1)'
12628
12629 testargparse='try: import argparse
12630 except: exit(1)'
12631
12632 testply='try: import ply
12633 except: exit(1)'
12634
12635 testsetup='try: from distutils.core import setup
12636 except: exit(1)'
12637
12638 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
12639
12640
12641
12642 # [pairwise: --with-python, --without-python]
12643
12644 # Check whether --with-python was given.
12645 if test "${with_python+set}" = set; then :
12646 withval=$with_python;
12647 else
12648 with_python=$default_with_python
12649 fi
12650
12651
12652 # [pairwise: skip]
12653
12654 # Check whether --with-python-install-dir was given.
12655 if test "${with_python_install_dir+set}" = set; then :
12656 withval=$with_python_install_dir;
12657 else
12658 with_python_install_dir=""
12659 fi
12660
12661
12662 if test "$with_python" = "yes"; then :
12663 with_python=$default_with_python
12664 fi
12665
12666 if test "$with_python" = "no"; then :
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12668 $as_echo_n "checking for Python support... " >&6; }
12669 unset PYTHON
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12671 $as_echo "disabled" >&6; }
12672 else
12673 for p in $with_python
12674 do
12675 case $p in #(
12676 /*) :
12677 PYTHON="$p" ;; #(
12678 *) :
12679 ;;
12680 esac
12681
12682 # Extract the first word of "$p", so it can be a program name with args.
12683 set dummy $p; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if ${ac_cv_path_PYTHON+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 case $PYTHON in
12690 [\\/]* | ?:[\\/]*)
12691 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12692 ;;
12693 *)
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 ;;
12710 esac
12711 fi
12712 PYTHON=$ac_cv_path_PYTHON
12713 if test -n "$PYTHON"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12715 $as_echo "$PYTHON" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721
12722 # Do not cache the result of the check from the previous line. If the
12723 # first found Python interpreter has missing module dependencies and
12724 # the result of the above check is cached, subsequent module checks
12725 # will erroneously keep on using the cached path to the first found
12726 # Python interpreter instead of different ones.
12727 unset ac_cv_path_PYTHON
12728
12729 if test -z "$PYTHON"; then :
12730 continue
12731 fi
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
12734 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
12735 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737 $as_echo "yes" >&6; }
12738 else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12741 unset PYTHON
12742 continue
12743 fi
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
12746 $as_echo_n "checking Python module 'argparse'... " >&6; }
12747 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749 $as_echo "yes" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 unset PYTHON
12754 continue
12755 fi
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
12758 $as_echo_n "checking Python module 'ply'... " >&6; }
12759 if "$PYTHON" -c "$testply" 2>/dev/null; then :
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761 $as_echo "yes" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 unset PYTHON
12766 continue
12767 fi
12768
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5
12770 $as_echo_n "checking Python module 'distutils.core setup'... " >&6; }
12771 if "$PYTHON" -c "$testsetup" 2>/dev/null; then :
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12773 $as_echo "yes" >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 unset PYTHON
12778 continue
12779 fi
12780
12781 # Stop looking any further once we find a Python interpreter
12782 # satisfying all requirements.
12783 break
12784 done
12785
12786 if test "X$PYTHON" = "X"; then :
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12788 $as_echo_n "checking for Python support... " >&6; }
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5
12792 fi
12793 fi
12794
12795 PYTHON_TOOLS=''
12796 CHECKDS=''
12797 COVERAGE=''
12798 KEYMGR=''
12799 if test "X$PYTHON" != "X"; then :
12800 PYTHON_TOOLS=python
12801 CHECKDS=checkds
12802 COVERAGE=coverage
12803 KEYMGR=keymgr
12804 PYTHON_INSTALL_DIR="$with_python_install_dir"
12805 if test -n "$with_python_install_dir"; then :
12806 PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
12807 fi
12808 fi
12809
12810
12811
12812
12813
12814
12815
12816 #
12817 # expanded_sysconfdir is needed for replacement in the python utilities
12818 #
12819 expanded_sysconfdir=`eval echo $sysconfdir`
12820
12821
12822 #
12823 # Make sure INSTALL uses an absolute path, else it will be wrong in all
12824 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
12825 # configure based on the location of the file where it is substituted.
12826 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
12827 # subdirectory of install-sh, This relative path will be wrong for all
12828 # directories more than one level down from install-sh.
12829 #
12830 case "$INSTALL" in
12831 /*)
12832 ;;
12833 *)
12834 #
12835 # Not all systems have dirname.
12836 #
12837
12838 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
12839
12840
12841 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
12842 test "X$ac_dir" = "X$ac_prog" && ac_dir=.
12843 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
12844 INSTALL="$ac_dir/$ac_prog"
12845 ;;
12846 esac
12847
12848 for ac_prog in pytest-3 py.test-3 pytest pytest-pypy
12849 do
12850 # Extract the first word of "$ac_prog", so it can be a program name with args.
12851 set dummy $ac_prog; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_path_PYTEST+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 case $PYTEST in
12858 [\\/]* | ?:[\\/]*)
12859 ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
12860 ;;
12861 *)
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_path_PYTEST="$as_dir/$ac_word$ac_exec_ext"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12872 fi
12873 done
12874 done
12875 IFS=$as_save_IFS
12876
12877 ;;
12878 esac
12879 fi
12880 PYTEST=$ac_cv_path_PYTEST
12881 if test -n "$PYTEST"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
12883 $as_echo "$PYTEST" >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12887 fi
12888
12889
12890 test -n "$PYTEST" && break
12891 done
12892
12893 if test -z "$PYTEST"; then :
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
12895 $as_echo "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
12896 fi
12897
12898
12899
12900 ac_ext=c
12901 ac_cpp='$CPP $CPPFLAGS'
12902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12905 if test -n "$ac_tool_prefix"; then
12906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if ${ac_cv_prog_CC+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 if test -n "$CC"; then
12914 ac_cv_prog_CC="$CC" # Let the user override the test.
12915 else
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927 done
12928 done
12929 IFS=$as_save_IFS
12930
12931 fi
12932 fi
12933 CC=$ac_cv_prog_CC
12934 if test -n "$CC"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12936 $as_echo "$CC" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941
12942
12943 fi
12944 if test -z "$ac_cv_prog_CC"; then
12945 ac_ct_CC=$CC
12946 # Extract the first word of "gcc", so it can be a program name with args.
12947 set dummy gcc; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 if test -n "$ac_ct_CC"; then
12954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12955 else
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12958 do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_prog_ac_ct_CC="gcc"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12966 fi
12967 done
12968 done
12969 IFS=$as_save_IFS
12970
12971 fi
12972 fi
12973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12974 if test -n "$ac_ct_CC"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12976 $as_echo "$ac_ct_CC" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980 fi
12981
12982 if test "x$ac_ct_CC" = x; then
12983 CC=""
12984 else
12985 case $cross_compiling:$ac_tool_warned in
12986 yes:)
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12989 ac_tool_warned=yes ;;
12990 esac
12991 CC=$ac_ct_CC
12992 fi
12993 else
12994 CC="$ac_cv_prog_CC"
12995 fi
12996
12997 if test -z "$CC"; then
12998 if test -n "$ac_tool_prefix"; then
12999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13000 set dummy ${ac_tool_prefix}cc; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002 $as_echo_n "checking for $ac_word... " >&6; }
13003 if ${ac_cv_prog_CC+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 if test -n "$CC"; then
13007 ac_cv_prog_CC="$CC" # Let the user override the test.
13008 else
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13011 do
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016 ac_cv_prog_CC="${ac_tool_prefix}cc"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13019 fi
13020 done
13021 done
13022 IFS=$as_save_IFS
13023
13024 fi
13025 fi
13026 CC=$ac_cv_prog_CC
13027 if test -n "$CC"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13029 $as_echo "$CC" >&6; }
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13033 fi
13034
13035
13036 fi
13037 fi
13038 if test -z "$CC"; then
13039 # Extract the first word of "cc", so it can be a program name with args.
13040 set dummy cc; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_prog_CC+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test -n "$CC"; then
13047 ac_cv_prog_CC="$CC" # Let the user override the test.
13048 else
13049 ac_prog_rejected=no
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13058 ac_prog_rejected=yes
13059 continue
13060 fi
13061 ac_cv_prog_CC="cc"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13064 fi
13065 done
13066 done
13067 IFS=$as_save_IFS
13068
13069 if test $ac_prog_rejected = yes; then
13070 # We found a bogon in the path, so make sure we never use it.
13071 set dummy $ac_cv_prog_CC
13072 shift
13073 if test $# != 0; then
13074 # We chose a different compiler from the bogus one.
13075 # However, it has the same basename, so the bogon will be chosen
13076 # first if we set CC to just the basename; use the full file name.
13077 shift
13078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13079 fi
13080 fi
13081 fi
13082 fi
13083 CC=$ac_cv_prog_CC
13084 if test -n "$CC"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13086 $as_echo "$CC" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092
13093 fi
13094 if test -z "$CC"; then
13095 if test -n "$ac_tool_prefix"; then
13096 for ac_prog in cl.exe
13097 do
13098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if ${ac_cv_prog_CC+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 if test -n "$CC"; then
13106 ac_cv_prog_CC="$CC" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13118 fi
13119 done
13120 done
13121 IFS=$as_save_IFS
13122
13123 fi
13124 fi
13125 CC=$ac_cv_prog_CC
13126 if test -n "$CC"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13128 $as_echo "$CC" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132 fi
13133
13134
13135 test -n "$CC" && break
13136 done
13137 fi
13138 if test -z "$CC"; then
13139 ac_ct_CC=$CC
13140 for ac_prog in cl.exe
13141 do
13142 # Extract the first word of "$ac_prog", so it can be a program name with args.
13143 set dummy $ac_prog; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$ac_ct_CC"; then
13150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_prog_ac_ct_CC="$ac_prog"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13170 if test -n "$ac_ct_CC"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13172 $as_echo "$ac_ct_CC" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178
13179 test -n "$ac_ct_CC" && break
13180 done
13181
13182 if test "x$ac_ct_CC" = x; then
13183 CC=""
13184 else
13185 case $cross_compiling:$ac_tool_warned in
13186 yes:)
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13189 ac_tool_warned=yes ;;
13190 esac
13191 CC=$ac_ct_CC
13192 fi
13193 fi
13194
13195 fi
13196
13197
13198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13200 as_fn_error $? "no acceptable C compiler found in \$PATH
13201 See \`config.log' for more details" "$LINENO" 5; }
13202
13203 # Provide some information about the compiler.
13204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13205 set X $ac_compile
13206 ac_compiler=$2
13207 for ac_option in --version -v -V -qversion; do
13208 { { ac_try="$ac_compiler $ac_option >&5"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13214 $as_echo "$ac_try_echo"; } >&5
13215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13216 ac_status=$?
13217 if test -s conftest.err; then
13218 sed '10a\
13219 ... rest of stderr output deleted ...
13220 10q' conftest.err >conftest.er1
13221 cat conftest.er1 >&5
13222 fi
13223 rm -f conftest.er1 conftest.err
13224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13225 test $ac_status = 0; }
13226 done
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13229 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13230 if ${ac_cv_c_compiler_gnu+:} false; then :
13231 $as_echo_n "(cached) " >&6
13232 else
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235
13236 int
13237 main ()
13238 {
13239 #ifndef __GNUC__
13240 choke me
13241 #endif
13242
13243 ;
13244 return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_c_try_compile "$LINENO"; then :
13248 ac_compiler_gnu=yes
13249 else
13250 ac_compiler_gnu=no
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13254
13255 fi
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13257 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13258 if test $ac_compiler_gnu = yes; then
13259 GCC=yes
13260 else
13261 GCC=
13262 fi
13263 ac_test_CFLAGS=${CFLAGS+set}
13264 ac_save_CFLAGS=$CFLAGS
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13266 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13267 if ${ac_cv_prog_cc_g+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 ac_save_c_werror_flag=$ac_c_werror_flag
13271 ac_c_werror_flag=yes
13272 ac_cv_prog_cc_g=no
13273 CFLAGS="-g"
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276
13277 int
13278 main ()
13279 {
13280
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286 ac_cv_prog_cc_g=yes
13287 else
13288 CFLAGS=""
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 int
13293 main ()
13294 {
13295
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_compile "$LINENO"; then :
13301
13302 else
13303 ac_c_werror_flag=$ac_save_c_werror_flag
13304 CFLAGS="-g"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307
13308 int
13309 main ()
13310 {
13311
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 if ac_fn_c_try_compile "$LINENO"; then :
13317 ac_cv_prog_cc_g=yes
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 fi
13321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 ac_c_werror_flag=$ac_save_c_werror_flag
13325 fi
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13327 $as_echo "$ac_cv_prog_cc_g" >&6; }
13328 if test "$ac_test_CFLAGS" = set; then
13329 CFLAGS=$ac_save_CFLAGS
13330 elif test $ac_cv_prog_cc_g = yes; then
13331 if test "$GCC" = yes; then
13332 CFLAGS="-g -O2"
13333 else
13334 CFLAGS="-g"
13335 fi
13336 else
13337 if test "$GCC" = yes; then
13338 CFLAGS="-O2"
13339 else
13340 CFLAGS=
13341 fi
13342 fi
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13344 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13345 if ${ac_cv_prog_cc_c89+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 ac_cv_prog_cc_c89=no
13349 ac_save_CC=$CC
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include <stdarg.h>
13353 #include <stdio.h>
13354 struct stat;
13355 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13356 struct buf { int x; };
13357 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13358 static char *e (p, i)
13359 char **p;
13360 int i;
13361 {
13362 return p[i];
13363 }
13364 static char *f (char * (*g) (char **, int), char **p, ...)
13365 {
13366 char *s;
13367 va_list v;
13368 va_start (v,p);
13369 s = g (p, va_arg (v,int));
13370 va_end (v);
13371 return s;
13372 }
13373
13374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13375 function prototypes and stuff, but not '\xHH' hex character constants.
13376 These don't provoke an error unfortunately, instead are silently treated
13377 as 'x'. The following induces an error, until -std is added to get
13378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13379 array size at least. It's necessary to write '\x00'==0 to get something
13380 that's true only with -std. */
13381 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13382
13383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13384 inside strings and character constants. */
13385 #define FOO(x) 'x'
13386 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13387
13388 int test (int i, double x);
13389 struct s1 {int (*f) (int a);};
13390 struct s2 {int (*f) (double a);};
13391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13392 int argc;
13393 char **argv;
13394 int
13395 main ()
13396 {
13397 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13398 ;
13399 return 0;
13400 }
13401 _ACEOF
13402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13404 do
13405 CC="$ac_save_CC $ac_arg"
13406 if ac_fn_c_try_compile "$LINENO"; then :
13407 ac_cv_prog_cc_c89=$ac_arg
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext
13410 test "x$ac_cv_prog_cc_c89" != "xno" && break
13411 done
13412 rm -f conftest.$ac_ext
13413 CC=$ac_save_CC
13414
13415 fi
13416 # AC_CACHE_VAL
13417 case "x$ac_cv_prog_cc_c89" in
13418 x)
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13420 $as_echo "none needed" >&6; } ;;
13421 xno)
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13423 $as_echo "unsupported" >&6; } ;;
13424 *)
13425 CC="$CC $ac_cv_prog_cc_c89"
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13427 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13428 esac
13429 if test "x$ac_cv_prog_cc_c89" != xno; then :
13430
13431 fi
13432
13433 ac_ext=c
13434 ac_cpp='$CPP $CPPFLAGS'
13435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13440 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13441 if ${ac_cv_prog_cc_c99+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 ac_cv_prog_cc_c99=no
13445 ac_save_CC=$CC
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <stdarg.h>
13449 #include <stdbool.h>
13450 #include <stdlib.h>
13451 #include <wchar.h>
13452 #include <stdio.h>
13453
13454 // Check varargs macros. These examples are taken from C99 6.10.3.5.
13455 #define debug(...) fprintf (stderr, __VA_ARGS__)
13456 #define showlist(...) puts (#__VA_ARGS__)
13457 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13458 static void
13459 test_varargs_macros (void)
13460 {
13461 int x = 1234;
13462 int y = 5678;
13463 debug ("Flag");
13464 debug ("X = %d\n", x);
13465 showlist (The first, second, and third items.);
13466 report (x>y, "x is %d but y is %d", x, y);
13467 }
13468
13469 // Check long long types.
13470 #define BIG64 18446744073709551615ull
13471 #define BIG32 4294967295ul
13472 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13473 #if !BIG_OK
13474 your preprocessor is broken;
13475 #endif
13476 #if BIG_OK
13477 #else
13478 your preprocessor is broken;
13479 #endif
13480 static long long int bignum = -9223372036854775807LL;
13481 static unsigned long long int ubignum = BIG64;
13482
13483 struct incomplete_array
13484 {
13485 int datasize;
13486 double data[];
13487 };
13488
13489 struct named_init {
13490 int number;
13491 const wchar_t *name;
13492 double average;
13493 };
13494
13495 typedef const char *ccp;
13496
13497 static inline int
13498 test_restrict (ccp restrict text)
13499 {
13500 // See if C++-style comments work.
13501 // Iterate through items via the restricted pointer.
13502 // Also check for declarations in for loops.
13503 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13504 continue;
13505 return 0;
13506 }
13507
13508 // Check varargs and va_copy.
13509 static void
13510 test_varargs (const char *format, ...)
13511 {
13512 va_list args;
13513 va_start (args, format);
13514 va_list args_copy;
13515 va_copy (args_copy, args);
13516
13517 const char *str;
13518 int number;
13519 float fnumber;
13520
13521 while (*format)
13522 {
13523 switch (*format++)
13524 {
13525 case 's': // string
13526 str = va_arg (args_copy, const char *);
13527 break;
13528 case 'd': // int
13529 number = va_arg (args_copy, int);
13530 break;
13531 case 'f': // float
13532 fnumber = va_arg (args_copy, double);
13533 break;
13534 default:
13535 break;
13536 }
13537 }
13538 va_end (args_copy);
13539 va_end (args);
13540 }
13541
13542 int
13543 main ()
13544 {
13545
13546 // Check bool.
13547 _Bool success = false;
13548
13549 // Check restrict.
13550 if (test_restrict ("String literal") == 0)
13551 success = true;
13552 char *restrict newvar = "Another string";
13553
13554 // Check varargs.
13555 test_varargs ("s, d' f .", "string", 65, 34.234);
13556 test_varargs_macros ();
13557
13558 // Check flexible array members.
13559 struct incomplete_array *ia =
13560 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13561 ia->datasize = 10;
13562 for (int i = 0; i < ia->datasize; ++i)
13563 ia->data[i] = i * 1.234;
13564
13565 // Check named initializers.
13566 struct named_init ni = {
13567 .number = 34,
13568 .name = L"Test wide string",
13569 .average = 543.34343,
13570 };
13571
13572 ni.number = 58;
13573
13574 int dynamic_array[ni.number];
13575 dynamic_array[ni.number - 1] = 543;
13576
13577 // work around unused variable warnings
13578 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13579 || dynamic_array[ni.number - 1] != 543);
13580
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13586 do
13587 CC="$ac_save_CC $ac_arg"
13588 if ac_fn_c_try_compile "$LINENO"; then :
13589 ac_cv_prog_cc_c99=$ac_arg
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext
13592 test "x$ac_cv_prog_cc_c99" != "xno" && break
13593 done
13594 rm -f conftest.$ac_ext
13595 CC=$ac_save_CC
13596
13597 fi
13598 # AC_CACHE_VAL
13599 case "x$ac_cv_prog_cc_c99" in
13600 x)
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13602 $as_echo "none needed" >&6; } ;;
13603 xno)
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13605 $as_echo "unsupported" >&6; } ;;
13606 *)
13607 CC="$CC $ac_cv_prog_cc_c99"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13609 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13610 esac
13611 if test "x$ac_cv_prog_cc_c99" != xno; then :
13612
13613 fi
13614
13615
13616
13617 #
13618 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
13619 #
13620 case $host in #(
13621 *-solaris*) :
13622
13623 if test "$GCC" = "yes"; then :
13624 LDFLAGS="$LDFLAGS -zrelax=transtls"
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5
13626 $as_echo "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
13627
13628 fi
13629 ;; #(
13630 *-darwin*) :
13631 LDFLAGS="$LDFLAGS -Wl,-flat_namespace" ;; #(
13632 *) :
13633 ;;
13634 esac
13635
13636 #
13637 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
13638 #
13639 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
13640 CCNOOPT="-O0"
13641 fi
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13644 $as_echo_n "checking for ANSI C header files... " >&6; }
13645 if ${ac_cv_header_stdc+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 #include <stdlib.h>
13651 #include <stdarg.h>
13652 #include <string.h>
13653 #include <float.h>
13654
13655 int
13656 main ()
13657 {
13658
13659 ;
13660 return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"; then :
13664 ac_cv_header_stdc=yes
13665 else
13666 ac_cv_header_stdc=no
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669
13670 if test $ac_cv_header_stdc = yes; then
13671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674 #include <string.h>
13675
13676 _ACEOF
13677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13678 $EGREP "memchr" >/dev/null 2>&1; then :
13679
13680 else
13681 ac_cv_header_stdc=no
13682 fi
13683 rm -f conftest*
13684
13685 fi
13686
13687 if test $ac_cv_header_stdc = yes; then
13688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 #include <stdlib.h>
13692
13693 _ACEOF
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "free" >/dev/null 2>&1; then :
13696
13697 else
13698 ac_cv_header_stdc=no
13699 fi
13700 rm -f conftest*
13701
13702 fi
13703
13704 if test $ac_cv_header_stdc = yes; then
13705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13706 if test "$cross_compiling" = yes; then :
13707 :
13708 else
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 #include <ctype.h>
13712 #include <stdlib.h>
13713 #if ((' ' & 0x0FF) == 0x020)
13714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13716 #else
13717 # define ISLOWER(c) \
13718 (('a' <= (c) && (c) <= 'i') \
13719 || ('j' <= (c) && (c) <= 'r') \
13720 || ('s' <= (c) && (c) <= 'z'))
13721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13722 #endif
13723
13724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13725 int
13726 main ()
13727 {
13728 int i;
13729 for (i = 0; i < 256; i++)
13730 if (XOR (islower (i), ISLOWER (i))
13731 || toupper (i) != TOUPPER (i))
13732 return 2;
13733 return 0;
13734 }
13735 _ACEOF
13736 if ac_fn_c_try_run "$LINENO"; then :
13737
13738 else
13739 ac_cv_header_stdc=no
13740 fi
13741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13742 conftest.$ac_objext conftest.beam conftest.$ac_ext
13743 fi
13744
13745 fi
13746 fi
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13748 $as_echo "$ac_cv_header_stdc" >&6; }
13749 if test $ac_cv_header_stdc = yes; then
13750
13751 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13752
13753 fi
13754
13755
13756 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
13757 do :
13758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13759 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13760 #ifdef HAVE_SYS_PARAM_H
13761 # include <sys/param.h>
13762 #endif
13763 #ifdef HAVE_SYS_SOCKET_H
13764 # include <sys/socket.h>
13765 #endif
13766
13767 "
13768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13769 cat >>confdefs.h <<_ACEOF
13770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13771 _ACEOF
13772
13773 fi
13774
13775 done
13776
13777
13778 #
13779 # Check for thread local storage
13780 #
13781 for ac_header in threads.h
13782 do :
13783 ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
13784 if test "x$ac_cv_header_threads_h" = xyes; then :
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_THREADS_H 1
13787 _ACEOF
13788
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
13790 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793
13794 #include <threads.h>
13795
13796 int
13797 main ()
13798 {
13799
13800 static thread_local int tls = 0;
13801 return (tls);
13802
13803 ;
13804 return 0;
13805 }
13806
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"; then :
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13811 $as_echo "yes" >&6; }
13812
13813 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
13814
13815
13816 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13817
13818
13819 else
13820
13821 as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
13822
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825
13826 else
13827
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
13829 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832
13833
13834 int
13835 main ()
13836 {
13837
13838 static __thread int tls = 0;
13839 return (tls);
13840
13841 ;
13842 return 0;
13843 }
13844
13845 _ACEOF
13846 if ac_fn_c_try_compile "$LINENO"; then :
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13849 $as_echo "yes" >&6; }
13850
13851 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
13852
13853
13854 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13855
13856
13857 else
13858
13859 as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
13860
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863
13864 fi
13865
13866 done
13867
13868
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13870 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13871 if ${ac_cv_c_const+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876
13877 int
13878 main ()
13879 {
13880
13881 #ifndef __cplusplus
13882 /* Ultrix mips cc rejects this sort of thing. */
13883 typedef int charset[2];
13884 const charset cs = { 0, 0 };
13885 /* SunOS 4.1.1 cc rejects this. */
13886 char const *const *pcpcc;
13887 char **ppc;
13888 /* NEC SVR4.0.2 mips cc rejects this. */
13889 struct point {int x, y;};
13890 static struct point const zero = {0,0};
13891 /* AIX XL C 1.02.0.0 rejects this.
13892 It does not let you subtract one const X* pointer from another in
13893 an arm of an if-expression whose if-part is not a constant
13894 expression */
13895 const char *g = "string";
13896 pcpcc = &g + (g ? g-g : 0);
13897 /* HPUX 7.0 cc rejects these. */
13898 ++pcpcc;
13899 ppc = (char**) pcpcc;
13900 pcpcc = (char const *const *) ppc;
13901 { /* SCO 3.2v4 cc rejects this sort of thing. */
13902 char tx;
13903 char *t = &tx;
13904 char const *s = 0 ? (char *) 0 : (char const *) 0;
13905
13906 *t++ = 0;
13907 if (s) return 0;
13908 }
13909 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13910 int x[] = {25, 17};
13911 const int *foo = &x[0];
13912 ++foo;
13913 }
13914 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13915 typedef const int *iptr;
13916 iptr p = 0;
13917 ++p;
13918 }
13919 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13920 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13921 struct s { int j; const int *ap[3]; } bx;
13922 struct s *b = &bx; b->j = 5;
13923 }
13924 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13925 const int foo = 10;
13926 if (!foo) return 0;
13927 }
13928 return !cs[0] && !zero.x;
13929 #endif
13930
13931 ;
13932 return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 ac_cv_c_const=yes
13937 else
13938 ac_cv_c_const=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13943 $as_echo "$ac_cv_c_const" >&6; }
13944 if test $ac_cv_c_const = no; then
13945
13946 $as_echo "#define const /**/" >>confdefs.h
13947
13948 fi
13949
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13951 $as_echo_n "checking for inline... " >&6; }
13952 if ${ac_cv_c_inline+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 ac_cv_c_inline=no
13956 for ac_kw in inline __inline__ __inline; do
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #ifndef __cplusplus
13960 typedef int foo_t;
13961 static $ac_kw foo_t static_foo () {return 0; }
13962 $ac_kw foo_t foo () {return 0; }
13963 #endif
13964
13965 _ACEOF
13966 if ac_fn_c_try_compile "$LINENO"; then :
13967 ac_cv_c_inline=$ac_kw
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 test "$ac_cv_c_inline" != no && break
13971 done
13972
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13975 $as_echo "$ac_cv_c_inline" >&6; }
13976
13977 case $ac_cv_c_inline in
13978 inline | yes) ;;
13979 *)
13980 case $ac_cv_c_inline in
13981 no) ac_val=;;
13982 *) ac_val=$ac_cv_c_inline;;
13983 esac
13984 cat >>confdefs.h <<_ACEOF
13985 #ifndef __cplusplus
13986 #define inline $ac_val
13987 #endif
13988 _ACEOF
13989 ;;
13990 esac
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13993 $as_echo_n "checking for working volatile... " >&6; }
13994 if ${ac_cv_c_volatile+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999
14000 int
14001 main ()
14002 {
14003
14004 volatile int x;
14005 int * volatile y = (int *) 0;
14006 return !x && !y;
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 ac_cv_c_volatile=yes
14013 else
14014 ac_cv_c_volatile=no
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14019 $as_echo "$ac_cv_c_volatile" >&6; }
14020 if test $ac_cv_c_volatile = no; then
14021
14022 $as_echo "#define volatile /**/" >>confdefs.h
14023
14024 fi
14025
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14028 $as_echo_n "checking for flexible array members... " >&6; }
14029 if ${ac_cv_c_flexmember+:} false; then :
14030 $as_echo_n "(cached) " >&6
14031 else
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14034 #include <stdlib.h>
14035 #include <stdio.h>
14036 #include <stddef.h>
14037 struct s { int n; double d[]; };
14038 int
14039 main ()
14040 {
14041 int m = getchar ();
14042 struct s *p = malloc (offsetof (struct s, d)
14043 + m * sizeof (double));
14044 p->d[0] = 0.0;
14045 return p->d != (double *) NULL;
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"; then :
14051 ac_cv_c_flexmember=yes
14052 else
14053 ac_cv_c_flexmember=no
14054 fi
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14058 $as_echo "$ac_cv_c_flexmember" >&6; }
14059 if test $ac_cv_c_flexmember = yes; then
14060
14061 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14062
14063 else
14064 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14065
14066 fi
14067
14068
14069 #
14070 # Check for yield support on ARM processors
14071 #
14072 case $host in #(
14073 arm*) :
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
14075 $as_echo_n "checking for yield instruction support... " >&6; }
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078
14079 int
14080 main ()
14081 {
14082 __asm__ __volatile__ ("yield")
14083 ;
14084 return 0;
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14089 $as_echo "yes" >&6; }
14090
14091 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
14092
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
14098 *) :
14099 ;;
14100 esac
14101
14102 #
14103 # Check for pause support on SPARC processors
14104 #
14105 case $host in #(
14106 sparc*) :
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
14108 $as_echo_n "checking for pause instruction support... " >&6; }
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111
14112 int
14113 main ()
14114 {
14115 __asm__ __volatile__ ("pause")
14116 ;
14117 return 0;
14118 }
14119 _ACEOF
14120 if ac_fn_c_try_compile "$LINENO"; then :
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14122 $as_echo "yes" >&6; }
14123
14124 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
14125
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
14131 *) :
14132 ;;
14133 esac
14134
14135 for ac_func in sysctlbyname
14136 do :
14137 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
14138 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_SYSCTLBYNAME 1
14141 _ACEOF
14142
14143 fi
14144 done
14145
14146
14147 #
14148 # Check for the existence of mmap to enable the fast format zones
14149 #
14150 for ac_func in mmap
14151 do :
14152 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14153 if test "x$ac_cv_func_mmap" = xyes; then :
14154 cat >>confdefs.h <<_ACEOF
14155 #define HAVE_MMAP 1
14156 _ACEOF
14157
14158 fi
14159 done
14160
14161
14162 #
14163 # Older versions of HP/UX don't define seteuid() and setegid()
14164 #
14165 for ac_func in seteuid setresuid
14166 do :
14167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14170 cat >>confdefs.h <<_ACEOF
14171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14172 _ACEOF
14173
14174 fi
14175 done
14176
14177 for ac_func in setegid setresgid
14178 do :
14179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14181 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14182 cat >>confdefs.h <<_ACEOF
14183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14184 _ACEOF
14185
14186 fi
14187 done
14188
14189
14190 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14191 if test "x$ac_cv_type_size_t" = xyes; then :
14192
14193 else
14194
14195 cat >>confdefs.h <<_ACEOF
14196 #define size_t unsigned int
14197 _ACEOF
14198
14199 fi
14200
14201 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14202 if test "x$ac_cv_type_ssize_t" = xyes; then :
14203
14204 else
14205
14206 cat >>confdefs.h <<_ACEOF
14207 #define ssize_t int
14208 _ACEOF
14209
14210 fi
14211
14212
14213 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14214 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14215
14216 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14217
14218 else
14219 for ac_type in 'unsigned int' 'unsigned long int' \
14220 'unsigned long long int'; do
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223 $ac_includes_default
14224 int
14225 main ()
14226 {
14227 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14228 test_array [0] = 0;
14229 return test_array [0];
14230
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236
14237 cat >>confdefs.h <<_ACEOF
14238 #define uintptr_t $ac_type
14239 _ACEOF
14240
14241 ac_type=
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 test -z "$ac_type" && break
14245 done
14246 fi
14247
14248
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14251 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14252 if ${ac_cv_header_time+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <sys/types.h>
14258 #include <sys/time.h>
14259 #include <time.h>
14260
14261 int
14262 main ()
14263 {
14264 if ((struct tm *) 0)
14265 return 0;
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_compile "$LINENO"; then :
14271 ac_cv_header_time=yes
14272 else
14273 ac_cv_header_time=no
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 fi
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14278 $as_echo "$ac_cv_header_time" >&6; }
14279 if test $ac_cv_header_time = yes; then
14280
14281 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14282
14283 fi
14284
14285
14286 #
14287 # check for uname library routine
14288 #
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
14290 $as_echo_n "checking for uname... " >&6; }
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14293 #include <sys/utsname.h>
14294 #include <stdio.h>
14295
14296 int
14297 main ()
14298 {
14299
14300 struct utsname uts;
14301 uname(&uts);
14302 printf("running on %s %s %s for %s\n",
14303 uts.sysname, uts.release, uts.version, uts.machine);
14304
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_c_try_compile "$LINENO"; then :
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312
14313 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
14314
14315
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
14320 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
14321
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324
14325 #
14326 # check for GCC noreturn attribute
14327 #
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
14329 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332
14333 int
14334 main ()
14335 {
14336 void foo() __attribute__((noreturn));
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14343 $as_echo "yes" >&6; }
14344 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
14345 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
14350 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
14351 fi
14352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353
14354
14355
14356 #
14357 # check if we have kqueue
14358 #
14359 # [pairwise: --enable-kqueue, --disable-kqueue]
14360 # Check whether --enable-kqueue was given.
14361 if test "${enable_kqueue+set}" = set; then :
14362 enableval=$enable_kqueue;
14363 else
14364 enable_kqueue="yes"
14365 fi
14366
14367
14368 if test "$enable_kqueue" = "yes"; then :
14369 for ac_func in kqueue
14370 do :
14371 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14372 if test "x$ac_cv_func_kqueue" = xyes; then :
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_KQUEUE 1
14375 _ACEOF
14376
14377 fi
14378 done
14379
14380 fi
14381
14382 #
14383 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
14384 # so we need to try running the code, not just test its existence.
14385 #
14386 # [pairwise: --enable-epoll, --disable-epoll]
14387 # Check whether --enable-epoll was given.
14388 if test "${enable_epoll+set}" = set; then :
14389 enableval=$enable_epoll;
14390 else
14391 enable_epoll="yes"
14392 fi
14393
14394
14395 if test "$enable_epoll" = "yes"; then :
14396 for ac_func in epoll_create1
14397 do :
14398 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
14399 if test "x$ac_cv_func_epoll_create1" = xyes; then :
14400 cat >>confdefs.h <<_ACEOF
14401 #define HAVE_EPOLL_CREATE1 1
14402 _ACEOF
14403
14404 fi
14405 done
14406
14407 fi
14408
14409 #
14410 # check if we support /dev/poll
14411 #
14412 # [pairwise: --enable-devpoll, --disable-devpoll]
14413 # Check whether --enable-devpoll was given.
14414 if test "${enable_devpoll+set}" = set; then :
14415 enableval=$enable_devpoll;
14416 else
14417 enable_devpoll="yes"
14418 fi
14419
14420 if test "$enable_devpoll" = "yes"; then :
14421 for ac_header in sys/devpoll.h devpoll.h
14422 do :
14423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14424 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14426 cat >>confdefs.h <<_ACEOF
14427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428 _ACEOF
14429
14430 fi
14431
14432 done
14433
14434 fi
14435
14436 #
14437 # Find the machine's endian flavor.
14438 #
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14440 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14441 if ${ac_cv_c_bigendian+:} false; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 ac_cv_c_bigendian=unknown
14445 # See if we're dealing with a universal compiler.
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14448 #ifndef __APPLE_CC__
14449 not a universal capable compiler
14450 #endif
14451 typedef int dummy;
14452
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455
14456 # Check for potential -arch flags. It is not universal unless
14457 # there are at least two -arch flags with different values.
14458 ac_arch=
14459 ac_prev=
14460 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14461 if test -n "$ac_prev"; then
14462 case $ac_word in
14463 i?86 | x86_64 | ppc | ppc64)
14464 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14465 ac_arch=$ac_word
14466 else
14467 ac_cv_c_bigendian=universal
14468 break
14469 fi
14470 ;;
14471 esac
14472 ac_prev=
14473 elif test "x$ac_word" = "x-arch"; then
14474 ac_prev=arch
14475 fi
14476 done
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 if test $ac_cv_c_bigendian = unknown; then
14480 # See if sys/param.h defines the BYTE_ORDER macro.
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 #include <sys/types.h>
14484 #include <sys/param.h>
14485
14486 int
14487 main ()
14488 {
14489 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14490 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14491 && LITTLE_ENDIAN)
14492 bogus endian macros
14493 #endif
14494
14495 ;
14496 return 0;
14497 }
14498 _ACEOF
14499 if ac_fn_c_try_compile "$LINENO"; then :
14500 # It does; now see whether it defined to BIG_ENDIAN or not.
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503 #include <sys/types.h>
14504 #include <sys/param.h>
14505
14506 int
14507 main ()
14508 {
14509 #if BYTE_ORDER != BIG_ENDIAN
14510 not big endian
14511 #endif
14512
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 ac_cv_c_bigendian=yes
14519 else
14520 ac_cv_c_bigendian=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 fi
14526 if test $ac_cv_c_bigendian = unknown; then
14527 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #include <limits.h>
14531
14532 int
14533 main ()
14534 {
14535 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14536 bogus endian macros
14537 #endif
14538
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544 # It does; now see whether it defined to _BIG_ENDIAN or not.
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #include <limits.h>
14548
14549 int
14550 main ()
14551 {
14552 #ifndef _BIG_ENDIAN
14553 not big endian
14554 #endif
14555
14556 ;
14557 return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_compile "$LINENO"; then :
14561 ac_cv_c_bigendian=yes
14562 else
14563 ac_cv_c_bigendian=no
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 fi
14569 if test $ac_cv_c_bigendian = unknown; then
14570 # Compile a test program.
14571 if test "$cross_compiling" = yes; then :
14572 # Try to guess by grepping values from an object file.
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575 short int ascii_mm[] =
14576 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14577 short int ascii_ii[] =
14578 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14579 int use_ascii (int i) {
14580 return ascii_mm[i] + ascii_ii[i];
14581 }
14582 short int ebcdic_ii[] =
14583 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14584 short int ebcdic_mm[] =
14585 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14586 int use_ebcdic (int i) {
14587 return ebcdic_mm[i] + ebcdic_ii[i];
14588 }
14589 extern int foo;
14590
14591 int
14592 main ()
14593 {
14594 return use_ascii (foo) == use_ebcdic (foo);
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_c_try_compile "$LINENO"; then :
14600 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14601 ac_cv_c_bigendian=yes
14602 fi
14603 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14604 if test "$ac_cv_c_bigendian" = unknown; then
14605 ac_cv_c_bigendian=no
14606 else
14607 # finding both strings is unlikely to happen, but who knows?
14608 ac_cv_c_bigendian=unknown
14609 fi
14610 fi
14611 fi
14612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 else
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 $ac_includes_default
14617 int
14618 main ()
14619 {
14620
14621 /* Are we little or big endian? From Harbison&Steele. */
14622 union
14623 {
14624 long int l;
14625 char c[sizeof (long int)];
14626 } u;
14627 u.l = 1;
14628 return u.c[sizeof (long int) - 1] == 1;
14629
14630 ;
14631 return 0;
14632 }
14633 _ACEOF
14634 if ac_fn_c_try_run "$LINENO"; then :
14635 ac_cv_c_bigendian=no
14636 else
14637 ac_cv_c_bigendian=yes
14638 fi
14639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14640 conftest.$ac_objext conftest.beam conftest.$ac_ext
14641 fi
14642
14643 fi
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14646 $as_echo "$ac_cv_c_bigendian" >&6; }
14647 case $ac_cv_c_bigendian in #(
14648 yes)
14649 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14650 ;; #(
14651 no)
14652 ;; #(
14653 universal)
14654
14655 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14656
14657 ;; #(
14658 *)
14659 as_fn_error $? "unknown endianness
14660 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14661 esac
14662
14663
14664 #
14665 # GeoIP support?
14666 #
14667 # Should be on by default if libmaxminddb exists.
14668 #
14669 # [pairwise: skip]
14670
14671 # Check whether --with-geoip2 was given.
14672 if test "${with_geoip2+set}" = set; then :
14673 withval=$with_geoip2; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&5
14674 $as_echo "$as_me: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&2;}
14675 else
14676 with_geoip2="auto"
14677 fi
14678
14679
14680 # [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]
14681 # Check whether --enable-geoip was given.
14682 if test "${enable_geoip+set}" = set; then :
14683 enableval=$enable_geoip;
14684 else
14685 enable_geoip="yes"
14686 fi
14687
14688
14689 # [pairwise: skip]
14690
14691 # Check whether --with-maxminddb was given.
14692 if test "${with_maxminddb+set}" = set; then :
14693 withval=$with_maxminddb;
14694 else
14695 with_maxminddb="$with_geoip2"
14696 fi
14697
14698
14699 GEOIP2LINKSRCS=
14700 GEOIP2LINKOBJS=
14701 if test "$enable_geoip" = "yes"; then :
14702 case $with_maxminddb in #(
14703 no) :
14704 as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
14705 auto) :
14706
14707 pkg_failed=no
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14709 $as_echo_n "checking for libmaxminddb... " >&6; }
14710
14711 if test -n "$MAXMINDDB_CFLAGS"; then
14712 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14713 elif test -n "$PKG_CONFIG"; then
14714 if test -n "$PKG_CONFIG" && \
14715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14716 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14717 ac_status=$?
14718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14719 test $ac_status = 0; }; then
14720 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14721 test "x$?" != "x0" && pkg_failed=yes
14722 else
14723 pkg_failed=yes
14724 fi
14725 else
14726 pkg_failed=untried
14727 fi
14728 if test -n "$MAXMINDDB_LIBS"; then
14729 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14730 elif test -n "$PKG_CONFIG"; then
14731 if test -n "$PKG_CONFIG" && \
14732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14733 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14734 ac_status=$?
14735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14736 test $ac_status = 0; }; then
14737 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14738 test "x$?" != "x0" && pkg_failed=yes
14739 else
14740 pkg_failed=yes
14741 fi
14742 else
14743 pkg_failed=untried
14744 fi
14745
14746
14747
14748 if test $pkg_failed = yes; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14750 $as_echo "no" >&6; }
14751
14752 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14753 _pkg_short_errors_supported=yes
14754 else
14755 _pkg_short_errors_supported=no
14756 fi
14757 if test $_pkg_short_errors_supported = yes; then
14758 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14759 else
14760 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14761 fi
14762 # Put the nasty error message in config.log where it belongs
14763 echo "$MAXMINDDB_PKG_ERRORS" >&5
14764
14765 :
14766 elif test $pkg_failed = untried; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 $as_echo "no" >&6; }
14769 :
14770 else
14771 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14772 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14774 $as_echo "yes" >&6; }
14775
14776 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14777
14778
14779 if test -n "$MAXMINDDB_PREFIX"; then
14780 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14781 elif test -n "$PKG_CONFIG"; then
14782 if test -n "$PKG_CONFIG" && \
14783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14784 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14785 ac_status=$?
14786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787 test $ac_status = 0; }; then
14788 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14789 test "x$?" != "x0" && pkg_failed=yes
14790 else
14791 pkg_failed=yes
14792 fi
14793 else
14794 pkg_failed=untried
14795 fi
14796 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14797
14798 if test "x$MAXMINDDB_PREFIX" = x""; then :
14799 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14800 fi
14801 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14802 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14803
14804 fi ;; #(
14805 yes) :
14806
14807 pkg_failed=no
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14809 $as_echo_n "checking for libmaxminddb... " >&6; }
14810
14811 if test -n "$MAXMINDDB_CFLAGS"; then
14812 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14813 elif test -n "$PKG_CONFIG"; then
14814 if test -n "$PKG_CONFIG" && \
14815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14816 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14817 ac_status=$?
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; }; then
14820 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14821 test "x$?" != "x0" && pkg_failed=yes
14822 else
14823 pkg_failed=yes
14824 fi
14825 else
14826 pkg_failed=untried
14827 fi
14828 if test -n "$MAXMINDDB_LIBS"; then
14829 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14830 elif test -n "$PKG_CONFIG"; then
14831 if test -n "$PKG_CONFIG" && \
14832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14833 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14834 ac_status=$?
14835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14836 test $ac_status = 0; }; then
14837 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14838 test "x$?" != "x0" && pkg_failed=yes
14839 else
14840 pkg_failed=yes
14841 fi
14842 else
14843 pkg_failed=untried
14844 fi
14845
14846
14847
14848 if test $pkg_failed = yes; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14850 $as_echo "no" >&6; }
14851
14852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14853 _pkg_short_errors_supported=yes
14854 else
14855 _pkg_short_errors_supported=no
14856 fi
14857 if test $_pkg_short_errors_supported = yes; then
14858 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14859 else
14860 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14861 fi
14862 # Put the nasty error message in config.log where it belongs
14863 echo "$MAXMINDDB_PKG_ERRORS" >&5
14864
14865 as_fn_error $? "Package requirements (libmaxminddb) were not met:
14866
14867 $MAXMINDDB_PKG_ERRORS
14868
14869 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14870 installed software in a non-standard prefix.
14871
14872 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
14873 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
14874 See the pkg-config man page for more details." "$LINENO" 5
14875 elif test $pkg_failed = untried; then
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877 $as_echo "no" >&6; }
14878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14881 is in your PATH or set the PKG_CONFIG environment variable to the full
14882 path to pkg-config.
14883
14884 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
14885 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
14886 See the pkg-config man page for more details.
14887
14888 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14889 See \`config.log' for more details" "$LINENO" 5; }
14890 else
14891 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14892 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14894 $as_echo "yes" >&6; }
14895
14896 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14897
14898
14899 if test -n "$MAXMINDDB_PREFIX"; then
14900 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14901 elif test -n "$PKG_CONFIG"; then
14902 if test -n "$PKG_CONFIG" && \
14903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14904 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14905 ac_status=$?
14906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14907 test $ac_status = 0; }; then
14908 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14909 test "x$?" != "x0" && pkg_failed=yes
14910 else
14911 pkg_failed=yes
14912 fi
14913 else
14914 pkg_failed=untried
14915 fi
14916 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14917
14918 if test "x$MAXMINDDB_PREFIX" = x""; then :
14919 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14920 fi
14921 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14922 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14923
14924 fi ;; #(
14925 *) :
14926 # default
14927
14928
14929 CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
14930
14931
14932
14933 CFLAGS_maxminddb_ax_save_flags=$CFLAGS
14934
14935
14936
14937 CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
14938
14939
14940
14941 CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
14942
14943
14944
14945 ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
14946
14947
14948
14949 FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
14950
14951
14952
14953 FCLIBS_maxminddb_ax_save_flags=$FCLIBS
14954
14955
14956
14957 FFLAGS_maxminddb_ax_save_flags=$FFLAGS
14958
14959
14960
14961 FLIBS_maxminddb_ax_save_flags=$FLIBS
14962
14963
14964
14965 GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
14966
14967
14968
14969 JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
14970
14971
14972
14973 LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
14974
14975
14976
14977 LIBS_maxminddb_ax_save_flags=$LIBS
14978
14979
14980
14981 OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
14982
14983
14984
14985 OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
14986
14987
14988
14989 UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
14990
14991
14992
14993 VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
14994
14995
14996
14997 MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
14998 MAXMINDDB_LIBS="-L$with_maxminddb/lib"
14999 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
15000 LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
15002 $as_echo_n "checking for library containing MMDB_open... " >&6; }
15003 if ${ac_cv_search_MMDB_open+:} false; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 ac_func_search_save_LIBS=$LIBS
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009
15010 /* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15013 #ifdef __cplusplus
15014 extern "C"
15015 #endif
15016 char MMDB_open ();
15017 int
15018 main ()
15019 {
15020 return MMDB_open ();
15021 ;
15022 return 0;
15023 }
15024 _ACEOF
15025 for ac_lib in '' maxminddb; do
15026 if test -z "$ac_lib"; then
15027 ac_res="none required"
15028 else
15029 ac_res=-l$ac_lib
15030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15031 fi
15032 if ac_fn_c_try_link "$LINENO"; then :
15033 ac_cv_search_MMDB_open=$ac_res
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext
15037 if ${ac_cv_search_MMDB_open+:} false; then :
15038 break
15039 fi
15040 done
15041 if ${ac_cv_search_MMDB_open+:} false; then :
15042
15043 else
15044 ac_cv_search_MMDB_open=no
15045 fi
15046 rm conftest.$ac_ext
15047 LIBS=$ac_func_search_save_LIBS
15048 fi
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
15050 $as_echo "$ac_cv_search_MMDB_open" >&6; }
15051 ac_res=$ac_cv_search_MMDB_open
15052 if test "$ac_res" != no; then :
15053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15054
15055 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
15056
15057 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
15058 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
15059 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open"
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
15061 $as_echo "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
15062 eval MAXMINDDB_PREFIX=\$$with_maxminddb
15063
15064 else
15065 as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
15066 fi
15067
15068
15069 CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
15070
15071
15072 CFLAGS=$CFLAGS_maxminddb_ax_save_flags
15073
15074
15075 CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
15076
15077
15078 CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
15079
15080
15081 ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
15082
15083
15084 FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
15085
15086
15087 FCLIBS=$FCLIBS_maxminddb_ax_save_flags
15088
15089
15090 FFLAGS=$FFLAGS_maxminddb_ax_save_flags
15091
15092
15093 FLIBS=$FLIBS_maxminddb_ax_save_flags
15094
15095
15096 GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
15097
15098
15099 JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
15100
15101
15102 LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
15103
15104
15105 LIBS=$LIBS_maxminddb_ax_save_flags
15106
15107
15108 OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
15109
15110
15111 OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
15112
15113
15114 UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
15115
15116
15117 VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
15118
15119
15120
15121 ;;
15122 esac
15123
15124
15125 fi
15126
15127
15128
15129
15130
15131
15132 #
15133 # Do we have arc4random(), etc ?
15134 #
15135 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
15136 do :
15137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15140 cat >>confdefs.h <<_ACEOF
15141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15142 _ACEOF
15143
15144 fi
15145 done
15146
15147
15148
15149
15150
15151
15152 ac_ext=c
15153 ac_cpp='$CPP $CPPFLAGS'
15154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15157
15158 ax_pthread_ok=no
15159
15160 # We used to check for pthread.h first, but this fails if pthread.h
15161 # requires special compiler flags (e.g. on Tru64 or Sequent).
15162 # It gets checked for in the link test anyway.
15163
15164 # First of all, check if the user has set any of the PTHREAD_LIBS,
15165 # etcetera environment variables, and if threads linking works using
15166 # them:
15167 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15168 ax_pthread_save_CC="$CC"
15169 ax_pthread_save_CFLAGS="$CFLAGS"
15170 ax_pthread_save_LIBS="$LIBS"
15171 if test "x$PTHREAD_CC" != "x"; then :
15172 CC="$PTHREAD_CC"
15173 fi
15174 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15175 LIBS="$PTHREAD_LIBS $LIBS"
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15177 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15184 #ifdef __cplusplus
15185 extern "C"
15186 #endif
15187 char pthread_join ();
15188 int
15189 main ()
15190 {
15191 return pthread_join ();
15192 ;
15193 return 0;
15194 }
15195 _ACEOF
15196 if ac_fn_c_try_link "$LINENO"; then :
15197 ax_pthread_ok=yes
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15202 $as_echo "$ax_pthread_ok" >&6; }
15203 if test "x$ax_pthread_ok" = "xno"; then
15204 PTHREAD_LIBS=""
15205 PTHREAD_CFLAGS=""
15206 fi
15207 CC="$ax_pthread_save_CC"
15208 CFLAGS="$ax_pthread_save_CFLAGS"
15209 LIBS="$ax_pthread_save_LIBS"
15210 fi
15211
15212 # We must check for the threads library under a number of different
15213 # names; the ordering is very important because some systems
15214 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15215 # libraries is broken (non-POSIX).
15216
15217 # Create a list of thread flags to try. Items starting with a "-" are
15218 # C compiler flags, and other items are library names, except for "none"
15219 # which indicates that we try without any flags at all, and "pthread-config"
15220 # which is a program returning the flags for the Pth emulation library.
15221
15222 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15223
15224 # The ordering *is* (sometimes) important. Some notes on the
15225 # individual items follow:
15226
15227 # pthreads: AIX (must check this before -lpthread)
15228 # none: in case threads are in libc; should be tried before -Kthread and
15229 # other compiler flags to prevent continual compiler warnings
15230 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15231 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15232 # (Note: HP C rejects this with "bad form for `-t' option")
15233 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15234 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15235 # doesn't hurt to check since this sometimes defines pthreads and
15236 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15237 # is present but should not be used directly; and before -mthreads,
15238 # because the compiler interprets this as "-mt" + "-hreads")
15239 # -mthreads: Mingw32/gcc, Lynx/gcc
15240 # pthread: Linux, etcetera
15241 # --thread-safe: KAI C++
15242 # pthread-config: use pthread-config program (for GNU Pth library)
15243
15244 case $host_os in
15245
15246 freebsd*)
15247
15248 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15249 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15250
15251 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15252 ;;
15253
15254 hpux*)
15255
15256 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15257 # multi-threading and also sets -lpthread."
15258
15259 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15260 ;;
15261
15262 openedition*)
15263
15264 # IBM z/OS requires a feature-test macro to be defined in order to
15265 # enable POSIX threads at all, so give the user a hint if this is
15266 # not set. (We don't define these ourselves, as they can affect
15267 # other portions of the system API in unpredictable ways.)
15268
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271
15272 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15273 AX_PTHREAD_ZOS_MISSING
15274 # endif
15275
15276 _ACEOF
15277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15278 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15280 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15281 fi
15282 rm -f conftest*
15283
15284 ;;
15285
15286 solaris*)
15287
15288 # On Solaris (at least, for some versions), libc contains stubbed
15289 # (non-functional) versions of the pthreads routines, so link-based
15290 # tests will erroneously succeed. (N.B.: The stubs are missing
15291 # pthread_cleanup_push, or rather a function called by this macro,
15292 # so we could check for that, but who knows whether they'll stub
15293 # that too in a future libc.) So we'll check first for the
15294 # standard Solaris way of linking pthreads (-mt -lpthread).
15295
15296 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15297 ;;
15298 esac
15299
15300 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15301
15302 if test "x$GCC" = "xyes"; then :
15303 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15304 fi
15305
15306 # The presence of a feature test macro requesting re-entrant function
15307 # definitions is, on some systems, a strong hint that pthreads support is
15308 # correctly enabled
15309
15310 case $host_os in
15311 darwin* | hpux* | linux* | osf* | solaris*)
15312 ax_pthread_check_macro="_REENTRANT"
15313 ;;
15314
15315 aix*)
15316 ax_pthread_check_macro="_THREAD_SAFE"
15317 ;;
15318
15319 *)
15320 ax_pthread_check_macro="--"
15321 ;;
15322 esac
15323 if test "x$ax_pthread_check_macro" = "x--"; then :
15324 ax_pthread_check_cond=0
15325 else
15326 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15327 fi
15328
15329 # Are we compiling with Clang?
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15332 $as_echo_n "checking whether $CC is Clang... " >&6; }
15333 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 ax_cv_PTHREAD_CLANG=no
15337 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15338 if test "x$GCC" = "xyes"; then
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15342 # if defined(__clang__) && defined(__llvm__)
15343 AX_PTHREAD_CC_IS_CLANG
15344 # endif
15345
15346 _ACEOF
15347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15348 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15349 ax_cv_PTHREAD_CLANG=yes
15350 fi
15351 rm -f conftest*
15352
15353 fi
15354
15355 fi
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15357 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15358 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15359
15360 ax_pthread_clang_warning=no
15361
15362 # Clang needs special handling, because older versions handle the -pthread
15363 # option in a rather... idiosyncratic way
15364
15365 if test "x$ax_pthread_clang" = "xyes"; then
15366
15367 # Clang takes -pthread; it has never supported any other flag
15368
15369 # (Note 1: This will need to be revisited if a system that Clang
15370 # supports has POSIX threads in a separate library. This tends not
15371 # to be the way of modern systems, but it's conceivable.)
15372
15373 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15374 # to get POSIX threads support; the API is always present and
15375 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15376 # -pthread does define _REENTRANT, and while the Darwin headers
15377 # ignore this macro, third-party headers might not.)
15378
15379 PTHREAD_CFLAGS="-pthread"
15380 PTHREAD_LIBS=
15381
15382 ax_pthread_ok=yes
15383
15384 # However, older versions of Clang make a point of warning the user
15385 # that, in an invocation where only linking and no compilation is
15386 # taking place, the -pthread option has no effect ("argument unused
15387 # during compilation"). They expect -pthread to be passed in only
15388 # when source code is being compiled.
15389 #
15390 # Problem is, this is at odds with the way Automake and most other
15391 # C build frameworks function, which is that the same flags used in
15392 # compilation (CFLAGS) are also used in linking. Many systems
15393 # supported by AX_PTHREAD require exactly this for POSIX threads
15394 # support, and in fact it is often not straightforward to specify a
15395 # flag that is used only in the compilation phase and not in
15396 # linking. Such a scenario is extremely rare in practice.
15397 #
15398 # Even though use of the -pthread flag in linking would only print
15399 # a warning, this can be a nuisance for well-run software projects
15400 # that build with -Werror. So if the active version of Clang has
15401 # this misfeature, we search for an option to squash it.
15402
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15404 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15405 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
15406 $as_echo_n "(cached) " >&6
15407 else
15408 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15409 # Create an alternate version of $ac_link that compiles and
15410 # links in two steps (.c -> .o, .o -> exe) instead of one
15411 # (.c -> exe), because the warning occurs only in the second
15412 # step
15413 ax_pthread_save_ac_link="$ac_link"
15414 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15415 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
15416 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15417 ax_pthread_save_CFLAGS="$CFLAGS"
15418 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15419 if test "x$ax_pthread_try" = "xunknown"; then :
15420 break
15421 fi
15422 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15423 ac_link="$ax_pthread_save_ac_link"
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 int main(void){return 0;}
15427 _ACEOF
15428 if ac_fn_c_try_link "$LINENO"; then :
15429 ac_link="$ax_pthread_2step_ac_link"
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 int main(void){return 0;}
15433 _ACEOF
15434 if ac_fn_c_try_link "$LINENO"; then :
15435 break
15436 fi
15437 rm -f core conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15439
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 done
15444 ac_link="$ax_pthread_save_ac_link"
15445 CFLAGS="$ax_pthread_save_CFLAGS"
15446 if test "x$ax_pthread_try" = "x"; then :
15447 ax_pthread_try=no
15448 fi
15449 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15450
15451 fi
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15453 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15454
15455 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15456 no | unknown) ;;
15457 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15458 esac
15459
15460 fi # $ax_pthread_clang = yes
15461
15462 if test "x$ax_pthread_ok" = "xno"; then
15463 for ax_pthread_try_flag in $ax_pthread_flags; do
15464
15465 case $ax_pthread_try_flag in
15466 none)
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15468 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15469 ;;
15470
15471 -mt,pthread)
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
15473 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
15474 PTHREAD_CFLAGS="-mt"
15475 PTHREAD_LIBS="-lpthread"
15476 ;;
15477
15478 -*)
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15480 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15481 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15482 ;;
15483
15484 pthread-config)
15485 # Extract the first word of "pthread-config", so it can be a program name with args.
15486 set dummy pthread-config; ac_word=$2
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488 $as_echo_n "checking for $ac_word... " >&6; }
15489 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 if test -n "$ax_pthread_config"; then
15493 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15494 else
15495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15497 do
15498 IFS=$as_save_IFS
15499 test -z "$as_dir" && as_dir=.
15500 for ac_exec_ext in '' $ac_executable_extensions; do
15501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15502 ac_cv_prog_ax_pthread_config="yes"
15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15504 break 2
15505 fi
15506 done
15507 done
15508 IFS=$as_save_IFS
15509
15510 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15511 fi
15512 fi
15513 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15514 if test -n "$ax_pthread_config"; then
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15516 $as_echo "$ax_pthread_config" >&6; }
15517 else
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15519 $as_echo "no" >&6; }
15520 fi
15521
15522
15523 if test "x$ax_pthread_config" = "xno"; then :
15524 continue
15525 fi
15526 PTHREAD_CFLAGS="`pthread-config --cflags`"
15527 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15528 ;;
15529
15530 *)
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15532 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15533 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15534 ;;
15535 esac
15536
15537 ax_pthread_save_CFLAGS="$CFLAGS"
15538 ax_pthread_save_LIBS="$LIBS"
15539 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15540 LIBS="$PTHREAD_LIBS $LIBS"
15541
15542 # Check for various functions. We must include pthread.h,
15543 # since some functions may be macros. (On the Sequent, we
15544 # need a special flag -Kthread to make this header compile.)
15545 # We check for pthread_join because it is in -lpthread on IRIX
15546 # while pthread_create is in libc. We check for pthread_attr_init
15547 # due to DEC craziness with -lpthreads. We check for
15548 # pthread_cleanup_push because it is one of the few pthread
15549 # functions on Solaris that doesn't have a non-functional libc stub.
15550 # We try pthread_create on general principles.
15551
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15554 #include <pthread.h>
15555 # if $ax_pthread_check_cond
15556 # error "$ax_pthread_check_macro must be defined"
15557 # endif
15558 static void routine(void *a) { a = 0; }
15559 static void *start_routine(void *a) { return a; }
15560 int
15561 main ()
15562 {
15563 pthread_t th; pthread_attr_t attr;
15564 pthread_create(&th, 0, start_routine, 0);
15565 pthread_join(th, 0);
15566 pthread_attr_init(&attr);
15567 pthread_cleanup_push(routine, 0);
15568 pthread_cleanup_pop(0) /* ; */
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_link "$LINENO"; then :
15574 ax_pthread_ok=yes
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578
15579 CFLAGS="$ax_pthread_save_CFLAGS"
15580 LIBS="$ax_pthread_save_LIBS"
15581
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15583 $as_echo "$ax_pthread_ok" >&6; }
15584 if test "x$ax_pthread_ok" = "xyes"; then :
15585 break
15586 fi
15587
15588 PTHREAD_LIBS=""
15589 PTHREAD_CFLAGS=""
15590 done
15591 fi
15592
15593 # Various other checks:
15594 if test "x$ax_pthread_ok" = "xyes"; then
15595 ax_pthread_save_CFLAGS="$CFLAGS"
15596 ax_pthread_save_LIBS="$LIBS"
15597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15598 LIBS="$PTHREAD_LIBS $LIBS"
15599
15600 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15602 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15603 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
15604 $as_echo_n "(cached) " >&6
15605 else
15606 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15607 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 #include <pthread.h>
15611 int
15612 main ()
15613 {
15614 int attr = $ax_pthread_attr; return attr /* ; */
15615 ;
15616 return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_link "$LINENO"; then :
15620 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624 done
15625
15626 fi
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15628 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15629 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15630 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15631 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
15632
15633 cat >>confdefs.h <<_ACEOF
15634 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
15635 _ACEOF
15636
15637 ax_pthread_joinable_attr_defined=yes
15638
15639 fi
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15642 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
15643 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 ax_cv_PTHREAD_SPECIAL_FLAGS=no
15647 case $host_os in
15648 solaris*)
15649 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15650 ;;
15651 esac
15652
15653 fi
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15655 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15656 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15657 test "x$ax_pthread_special_flags_added" != "xyes"; then :
15658 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15659 ax_pthread_special_flags_added=yes
15660 fi
15661
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15663 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15664 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 #include <pthread.h>
15670 int
15671 main ()
15672 {
15673 int i = PTHREAD_PRIO_INHERIT;
15674 ;
15675 return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_link "$LINENO"; then :
15679 ax_cv_PTHREAD_PRIO_INHERIT=yes
15680 else
15681 ax_cv_PTHREAD_PRIO_INHERIT=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15688 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15689 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15690 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
15691
15692 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15693
15694 ax_pthread_prio_inherit_defined=yes
15695
15696 fi
15697
15698 CFLAGS="$ax_pthread_save_CFLAGS"
15699 LIBS="$ax_pthread_save_LIBS"
15700
15701 # More AIX lossage: compile with *_r variant
15702 if test "x$GCC" != "xyes"; then
15703 case $host_os in
15704 aix*)
15705 case "x/$CC" in #(
15706 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15707 #handle absolute path differently from PATH based program lookup
15708 case "x$CC" in #(
15709 x/*) :
15710 if as_fn_executable_p ${CC}_r; then :
15711 PTHREAD_CC="${CC}_r"
15712 fi ;; #(
15713 *) :
15714 for ac_prog in ${CC}_r
15715 do
15716 # Extract the first word of "$ac_prog", so it can be a program name with args.
15717 set dummy $ac_prog; ac_word=$2
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15719 $as_echo_n "checking for $ac_word... " >&6; }
15720 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 if test -n "$PTHREAD_CC"; then
15724 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15725 else
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 for as_dir in $PATH
15728 do
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_prog_PTHREAD_CC="$ac_prog"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15735 break 2
15736 fi
15737 done
15738 done
15739 IFS=$as_save_IFS
15740
15741 fi
15742 fi
15743 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15744 if test -n "$PTHREAD_CC"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15746 $as_echo "$PTHREAD_CC" >&6; }
15747 else
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15749 $as_echo "no" >&6; }
15750 fi
15751
15752
15753 test -n "$PTHREAD_CC" && break
15754 done
15755 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15756 ;;
15757 esac ;; #(
15758 *) :
15759 ;;
15760 esac
15761 ;;
15762 esac
15763 fi
15764 fi
15765
15766 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15767
15768
15769
15770
15771
15772 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15773 if test "x$ax_pthread_ok" = "xyes"; then
15774
15775 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15776
15777 :
15778 else
15779 ax_pthread_ok=no
15780
15781 fi
15782 ac_ext=c
15783 ac_cpp='$CPP $CPPFLAGS'
15784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15787
15788
15789
15790 LIBS="$PTHREAD_LIBS $LIBS"
15791 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15792 CC="$PTHREAD_CC"
15793
15794 for ac_func in pthread_attr_getstacksize pthread_attr_setstacksize
15795 do :
15796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15799 cat >>confdefs.h <<_ACEOF
15800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15801 _ACEOF
15802
15803 fi
15804 done
15805
15806
15807 # [pairwise: --with-locktype=adaptive, --with-locktype=standard]
15808
15809 # Check whether --with-locktype was given.
15810 if test "${with_locktype+set}" = set; then :
15811 withval=$with_locktype;
15812 else
15813 with_locktype="adaptive"
15814 fi
15815
15816
15817 case $with_locktype in #(
15818 adaptive) :
15819
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
15821 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824
15825 #ifndef _GNU_SOURCE
15826 #define _GNU_SOURCE
15827 #endif
15828 #include <pthread.h>
15829
15830 int
15831 main ()
15832 {
15833
15834 return (PTHREAD_MUTEX_ADAPTIVE_NP);
15835
15836
15837 ;
15838 return 0;
15839 }
15840 _ACEOF
15841 if ac_fn_c_try_compile "$LINENO"; then :
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
15843 $as_echo "using adaptive lock type" >&6; }
15844
15845 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
15846
15847 else
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15849 $as_echo "using standard lock type" >&6; }
15850
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
15853 standard) :
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15855 $as_echo "using standard lock type" >&6; } ;; #(
15856 *) :
15857 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
15858 ;;
15859 esac
15860
15861 for ac_header in sched.h
15862 do :
15863 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15864 if test "x$ac_cv_header_sched_h" = xyes; then :
15865 cat >>confdefs.h <<_ACEOF
15866 #define HAVE_SCHED_H 1
15867 _ACEOF
15868
15869 fi
15870
15871 done
15872
15873
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15875 $as_echo_n "checking for library containing sched_yield... " >&6; }
15876 if ${ac_cv_search_sched_yield+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 ac_func_search_save_LIBS=$LIBS
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882
15883 /* Override any GCC internal prototype to avoid an error.
15884 Use char because int might match the return type of a GCC
15885 builtin and then its argument prototype would still apply. */
15886 #ifdef __cplusplus
15887 extern "C"
15888 #endif
15889 char sched_yield ();
15890 int
15891 main ()
15892 {
15893 return sched_yield ();
15894 ;
15895 return 0;
15896 }
15897 _ACEOF
15898 for ac_lib in '' rt; do
15899 if test -z "$ac_lib"; then
15900 ac_res="none required"
15901 else
15902 ac_res=-l$ac_lib
15903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15904 fi
15905 if ac_fn_c_try_link "$LINENO"; then :
15906 ac_cv_search_sched_yield=$ac_res
15907 fi
15908 rm -f core conftest.err conftest.$ac_objext \
15909 conftest$ac_exeext
15910 if ${ac_cv_search_sched_yield+:} false; then :
15911 break
15912 fi
15913 done
15914 if ${ac_cv_search_sched_yield+:} false; then :
15915
15916 else
15917 ac_cv_search_sched_yield=no
15918 fi
15919 rm conftest.$ac_ext
15920 LIBS=$ac_func_search_save_LIBS
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15923 $as_echo "$ac_cv_search_sched_yield" >&6; }
15924 ac_res=$ac_cv_search_sched_yield
15925 if test "$ac_res" != no; then :
15926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15927
15928 fi
15929
15930 for ac_func in sched_yield pthread_yield pthread_yield_np
15931 do :
15932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15934 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15935 cat >>confdefs.h <<_ACEOF
15936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15937 _ACEOF
15938
15939 fi
15940 done
15941
15942
15943 for ac_header in sys/cpuset.h
15944 do :
15945 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
15946 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
15947 cat >>confdefs.h <<_ACEOF
15948 #define HAVE_SYS_CPUSET_H 1
15949 _ACEOF
15950
15951 fi
15952
15953 done
15954
15955 for ac_header in sys/procset.h
15956 do :
15957 ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
15958 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
15959 cat >>confdefs.h <<_ACEOF
15960 #define HAVE_SYS_PROCSET_H 1
15961 _ACEOF
15962
15963 fi
15964
15965 done
15966
15967 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
15968 do :
15969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15971 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15972 cat >>confdefs.h <<_ACEOF
15973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15974 _ACEOF
15975
15976 fi
15977 done
15978
15979
15980 # Look for functions relating to thread naming
15981 for ac_func in pthread_setname_np pthread_set_name_np
15982 do :
15983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15985 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15986 cat >>confdefs.h <<_ACEOF
15987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15988 _ACEOF
15989
15990 fi
15991 done
15992
15993 for ac_header in pthread_np.h
15994 do :
15995 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
15996 "
15997 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_PTHREAD_NP_H 1
16000 _ACEOF
16001
16002 fi
16003
16004 done
16005
16006
16007 # libuv
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv" >&5
16009 $as_echo_n "checking for libuv... " >&6; }
16010
16011 pkg_failed=no
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0" >&5
16013 $as_echo_n "checking for libuv >= 1.0.0... " >&6; }
16014
16015 if test -n "$LIBUV_CFLAGS"; then
16016 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
16017 elif test -n "$PKG_CONFIG"; then
16018 if test -n "$PKG_CONFIG" && \
16019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
16020 ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
16021 ac_status=$?
16022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16023 test $ac_status = 0; }; then
16024 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0" 2>/dev/null`
16025 test "x$?" != "x0" && pkg_failed=yes
16026 else
16027 pkg_failed=yes
16028 fi
16029 else
16030 pkg_failed=untried
16031 fi
16032 if test -n "$LIBUV_LIBS"; then
16033 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
16034 elif test -n "$PKG_CONFIG"; then
16035 if test -n "$PKG_CONFIG" && \
16036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
16037 ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
16038 ac_status=$?
16039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; }; then
16041 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0" 2>/dev/null`
16042 test "x$?" != "x0" && pkg_failed=yes
16043 else
16044 pkg_failed=yes
16045 fi
16046 else
16047 pkg_failed=untried
16048 fi
16049
16050
16051
16052 if test $pkg_failed = yes; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16054 $as_echo "no" >&6; }
16055
16056 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16057 _pkg_short_errors_supported=yes
16058 else
16059 _pkg_short_errors_supported=no
16060 fi
16061 if test $_pkg_short_errors_supported = yes; then
16062 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
16063 else
16064 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
16065 fi
16066 # Put the nasty error message in config.log where it belongs
16067 echo "$LIBUV_PKG_ERRORS" >&5
16068
16069 as_fn_error $? "libuv not found" "$LINENO" 5
16070 elif test $pkg_failed = untried; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16073 as_fn_error $? "libuv not found" "$LINENO" 5
16074 else
16075 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
16076 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16078 $as_echo "yes" >&6; }
16079
16080 fi
16081
16082
16083
16084
16085
16086 CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
16087
16088
16089
16090 CFLAGS_libuv_ax_save_flags=$CFLAGS
16091
16092
16093
16094 CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
16095
16096
16097
16098 CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
16099
16100
16101
16102 ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
16103
16104
16105
16106 FCFLAGS_libuv_ax_save_flags=$FCFLAGS
16107
16108
16109
16110 FCLIBS_libuv_ax_save_flags=$FCLIBS
16111
16112
16113
16114 FFLAGS_libuv_ax_save_flags=$FFLAGS
16115
16116
16117
16118 FLIBS_libuv_ax_save_flags=$FLIBS
16119
16120
16121
16122 GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
16123
16124
16125
16126 JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
16127
16128
16129
16130 LDFLAGS_libuv_ax_save_flags=$LDFLAGS
16131
16132
16133
16134 LIBS_libuv_ax_save_flags=$LIBS
16135
16136
16137
16138 OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
16139
16140
16141
16142 OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
16143
16144
16145
16146 UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
16147
16148
16149
16150 VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
16151
16152
16153
16154 CFLAGS="$CFLAGS $LIBUV_CFLAGS"
16155 LIBS="$LDFLAGS $LIBUV_LIBS"
16156 # Those functions are only provided in newer versions of libuv, we'll be emulating them
16157 # for now
16158 for ac_func in uv_handle_get_data uv_handle_set_data uv_import uv_udp_connect uv_translate_sys_error
16159 do :
16160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16163 cat >>confdefs.h <<_ACEOF
16164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16165 _ACEOF
16166
16167 fi
16168 done
16169
16170
16171 CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags
16172
16173
16174 CFLAGS=$CFLAGS_libuv_ax_save_flags
16175
16176
16177 CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags
16178
16179
16180 CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags
16181
16182
16183 ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags
16184
16185
16186 FCFLAGS=$FCFLAGS_libuv_ax_save_flags
16187
16188
16189 FCLIBS=$FCLIBS_libuv_ax_save_flags
16190
16191
16192 FFLAGS=$FFLAGS_libuv_ax_save_flags
16193
16194
16195 FLIBS=$FLIBS_libuv_ax_save_flags
16196
16197
16198 GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags
16199
16200
16201 JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags
16202
16203
16204 LDFLAGS=$LDFLAGS_libuv_ax_save_flags
16205
16206
16207 LIBS=$LIBS_libuv_ax_save_flags
16208
16209
16210 OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags
16211
16212
16213 OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags
16214
16215
16216 UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags
16217
16218
16219 VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags
16220
16221
16222
16223
16224 #
16225 # flockfile is usually provided by pthreads
16226 #
16227 for ac_func in flockfile getc_unlocked
16228 do :
16229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16232 cat >>confdefs.h <<_ACEOF
16233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16234 _ACEOF
16235
16236 fi
16237 done
16238
16239
16240 #
16241 # Look for sysconf to allow detection of the number of processors.
16242 #
16243 for ac_func in sysconf
16244 do :
16245 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
16246 if test "x$ac_cv_func_sysconf" = xyes; then :
16247 cat >>confdefs.h <<_ACEOF
16248 #define HAVE_SYSCONF 1
16249 _ACEOF
16250
16251 fi
16252 done
16253
16254
16255
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
16258 $as_echo_n "checking for libtool... " >&6; }
16259
16260 # [pairwise: --with-libtool, --without-libtool]
16261
16262 # Check whether --with-libtool was given.
16263 if test "${with_libtool+set}" = set; then :
16264 withval=$with_libtool; use_libtool="$withval"
16265 else
16266 use_libtool="no"
16267 fi
16268
16269 NO_LIBTOOL_ISCLIBS=
16270 NO_LIBTOOL_DNSLIBS=
16271 case $use_libtool in
16272 yes)
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16274 $as_echo "yes" >&6; }
16275
16276 O=lo
16277 A=la
16278 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
16279 LIBTOOL_MODE_COMPILE='--mode=compile'
16280 LIBTOOL_MODE_INSTALL='--mode=install'
16281 LIBTOOL_MODE_LINK='--mode=link'
16282 LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
16283 INSTALL_LIBRARY='${INSTALL_PROGRAM}'
16284
16285 $as_echo "#define USE_LIBTOOL 1" >>confdefs.h
16286
16287 ;;
16288 *)
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16291 O=o
16292 A=a
16293 LIBTOOL=
16294
16295 LIBTOOL_MKDEP_SED=
16296 LIBTOOL_MODE_COMPILE=
16297 LIBTOOL_MODE_INSTALL=
16298 LIBTOOL_MODE_LINK=
16299 LIBTOOL_MODE_UNINSTALL=
16300 INSTALL_LIBRARY='${INSTALL_DATA}'
16301 NO_LIBTOOL_ISCLIBS='${NO_LIBTOOL_ISCLIBS}'
16302 NO_LIBTOOL_DNSLIBS='${NO_LIBTOOL_DNSLIBS}'
16303 ;;
16304 esac
16305
16306
16307
16308
16309 #
16310 # Do we want to use pthread rwlock?
16311 #
16312 # [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock]
16313 # Check whether --enable-pthread_rwlock was given.
16314 if test "${enable_pthread_rwlock+set}" = set; then :
16315 enableval=$enable_pthread_rwlock;
16316 else
16317 enable_pthread_rwlock=no
16318 fi
16319
16320
16321 if test "$enable_pthread_rwlock" = "yes"; then :
16322 for ac_func in pthread_rwlock_rdlock
16323 do :
16324 ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
16325 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes; then :
16326 cat >>confdefs.h <<_ACEOF
16327 #define HAVE_PTHREAD_RWLOCK_RDLOCK 1
16328 _ACEOF
16329
16330 else
16331 as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
16332 fi
16333 done
16334
16335
16336 $as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
16337
16338
16339 fi
16340
16341 CRYPTO=OpenSSL
16342
16343 #
16344 # OpenSSL/LibreSSL is mandatory
16345 #
16346
16347 pkg_failed=no
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5
16349 $as_echo_n "checking for libssl libcrypto... " >&6; }
16350
16351 if test -n "$OPENSSL_CFLAGS"; then
16352 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16353 elif test -n "$PKG_CONFIG"; then
16354 if test -n "$PKG_CONFIG" && \
16355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
16356 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
16357 ac_status=$?
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; }; then
16360 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null`
16361 test "x$?" != "x0" && pkg_failed=yes
16362 else
16363 pkg_failed=yes
16364 fi
16365 else
16366 pkg_failed=untried
16367 fi
16368 if test -n "$OPENSSL_LIBS"; then
16369 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16370 elif test -n "$PKG_CONFIG"; then
16371 if test -n "$PKG_CONFIG" && \
16372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
16373 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
16374 ac_status=$?
16375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16376 test $ac_status = 0; }; then
16377 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null`
16378 test "x$?" != "x0" && pkg_failed=yes
16379 else
16380 pkg_failed=yes
16381 fi
16382 else
16383 pkg_failed=untried
16384 fi
16385
16386
16387
16388 if test $pkg_failed = yes; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16391
16392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16393 _pkg_short_errors_supported=yes
16394 else
16395 _pkg_short_errors_supported=no
16396 fi
16397 if test $_pkg_short_errors_supported = yes; then
16398 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1`
16399 else
16400 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1`
16401 fi
16402 # Put the nasty error message in config.log where it belongs
16403 echo "$OPENSSL_PKG_ERRORS" >&5
16404
16405
16406 found=false
16407 default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
16408
16409 # Check whether --with-openssl was given.
16410 if test "${with_openssl+set}" = set; then :
16411 withval=$with_openssl;
16412 case $with_openssl in #(
16413 ""|y|ye|yes) :
16414 ssldirs="$default_ssldirs" ;; #(
16415 n|no) :
16416 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
16417 *) :
16418 ssldirs="$withval" ;; #(
16419 *) :
16420 ssldirs="$default_ssldirs"
16421 ;;
16422 esac
16423
16424 else
16425
16426 # if pkg-config is installed and openssl has installed a .pc file,
16427 # then use that information and don't search ssldirs
16428
16429 pkg_failed=no
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
16431 $as_echo_n "checking for crypto... " >&6; }
16432
16433 if test -n "$OPENSSL_CFLAGS"; then
16434 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16435 elif test -n "$PKG_CONFIG"; then
16436 if test -n "$PKG_CONFIG" && \
16437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16438 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16439 ac_status=$?
16440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16441 test $ac_status = 0; }; then
16442 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
16443 test "x$?" != "x0" && pkg_failed=yes
16444 else
16445 pkg_failed=yes
16446 fi
16447 else
16448 pkg_failed=untried
16449 fi
16450 if test -n "$OPENSSL_LIBS"; then
16451 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16452 elif test -n "$PKG_CONFIG"; then
16453 if test -n "$PKG_CONFIG" && \
16454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16455 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16456 ac_status=$?
16457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16458 test $ac_status = 0; }; then
16459 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
16460 test "x$?" != "x0" && pkg_failed=yes
16461 else
16462 pkg_failed=yes
16463 fi
16464 else
16465 pkg_failed=untried
16466 fi
16467
16468
16469
16470 if test $pkg_failed = yes; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16472 $as_echo "no" >&6; }
16473
16474 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16475 _pkg_short_errors_supported=yes
16476 else
16477 _pkg_short_errors_supported=no
16478 fi
16479 if test $_pkg_short_errors_supported = yes; then
16480 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
16481 else
16482 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
16483 fi
16484 # Put the nasty error message in config.log where it belongs
16485 echo "$OPENSSL_PKG_ERRORS" >&5
16486
16487 ssldirs="$default_ssldirs"
16488 elif test $pkg_failed = untried; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490 $as_echo "no" >&6; }
16491 ssldirs="$default_ssldirs"
16492 else
16493 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16494 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16496 $as_echo "yes" >&6; }
16497 found=true
16498 fi
16499
16500
16501
16502 fi
16503
16504
16505
16506 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
16507 # an 'openssl' subdirectory
16508
16509 if ! $found; then :
16510
16511 OPENSSL_CFLAGS=
16512 for ssldir in $ssldirs; do
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
16514 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
16515 if test -f "$ssldir/include/openssl/ssl.h"; then :
16516
16517 OPENSSL_CFLAGS="-I$ssldir/include"
16518 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto"
16519 found=true
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16521 $as_echo "yes" >&6; }
16522 break
16523
16524 else
16525
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16528
16529 fi
16530 done
16531
16532 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
16533 # it will just work!
16534
16535 fi
16536
16537 # try the preprocessor and linker with our new flags,
16538 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
16539
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
16541 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
16542 # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
16543
16544 save_LIBS="$LIBS"
16545 save_CPPFLAGS="$CPPFLAGS"
16546 LIBS="$OPENSSL_LIBS $LIBS"
16547 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16550
16551 #include <openssl/crypto.h>
16552
16553 int
16554 main ()
16555 {
16556
16557 OPENSSL_free(NULL);
16558
16559 ;
16560 return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"; then :
16564
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16567 :
16568
16569 else
16570
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16575 as_fn_error $? "OpenSSL/LibreSSL not found
16576 See \`config.log' for more details" "$LINENO" 5; }
16577
16578 fi
16579 rm -f core conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16581 CPPFLAGS="$save_CPPFLAGS"
16582 LIBS="$save_LIBS"
16583
16584
16585
16586
16587 elif test $pkg_failed = untried; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589 $as_echo "no" >&6; }
16590
16591 found=false
16592 default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
16593
16594 # Check whether --with-openssl was given.
16595 if test "${with_openssl+set}" = set; then :
16596 withval=$with_openssl;
16597 case $with_openssl in #(
16598 ""|y|ye|yes) :
16599 ssldirs="$default_ssldirs" ;; #(
16600 n|no) :
16601 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
16602 *) :
16603 ssldirs="$withval" ;; #(
16604 *) :
16605 ssldirs="$default_ssldirs"
16606 ;;
16607 esac
16608
16609 else
16610
16611 # if pkg-config is installed and openssl has installed a .pc file,
16612 # then use that information and don't search ssldirs
16613
16614 pkg_failed=no
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
16616 $as_echo_n "checking for crypto... " >&6; }
16617
16618 if test -n "$OPENSSL_CFLAGS"; then
16619 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16620 elif test -n "$PKG_CONFIG"; then
16621 if test -n "$PKG_CONFIG" && \
16622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16623 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16624 ac_status=$?
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; }; then
16627 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
16628 test "x$?" != "x0" && pkg_failed=yes
16629 else
16630 pkg_failed=yes
16631 fi
16632 else
16633 pkg_failed=untried
16634 fi
16635 if test -n "$OPENSSL_LIBS"; then
16636 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16637 elif test -n "$PKG_CONFIG"; then
16638 if test -n "$PKG_CONFIG" && \
16639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16640 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16641 ac_status=$?
16642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16643 test $ac_status = 0; }; then
16644 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
16645 test "x$?" != "x0" && pkg_failed=yes
16646 else
16647 pkg_failed=yes
16648 fi
16649 else
16650 pkg_failed=untried
16651 fi
16652
16653
16654
16655 if test $pkg_failed = yes; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16658
16659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16660 _pkg_short_errors_supported=yes
16661 else
16662 _pkg_short_errors_supported=no
16663 fi
16664 if test $_pkg_short_errors_supported = yes; then
16665 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
16666 else
16667 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
16668 fi
16669 # Put the nasty error message in config.log where it belongs
16670 echo "$OPENSSL_PKG_ERRORS" >&5
16671
16672 ssldirs="$default_ssldirs"
16673 elif test $pkg_failed = untried; then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16676 ssldirs="$default_ssldirs"
16677 else
16678 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16679 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16681 $as_echo "yes" >&6; }
16682 found=true
16683 fi
16684
16685
16686
16687 fi
16688
16689
16690
16691 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
16692 # an 'openssl' subdirectory
16693
16694 if ! $found; then :
16695
16696 OPENSSL_CFLAGS=
16697 for ssldir in $ssldirs; do
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
16699 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
16700 if test -f "$ssldir/include/openssl/ssl.h"; then :
16701
16702 OPENSSL_CFLAGS="-I$ssldir/include"
16703 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto"
16704 found=true
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16706 $as_echo "yes" >&6; }
16707 break
16708
16709 else
16710
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712 $as_echo "no" >&6; }
16713
16714 fi
16715 done
16716
16717 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
16718 # it will just work!
16719
16720 fi
16721
16722 # try the preprocessor and linker with our new flags,
16723 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
16724
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
16726 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
16727 # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
16728
16729 save_LIBS="$LIBS"
16730 save_CPPFLAGS="$CPPFLAGS"
16731 LIBS="$OPENSSL_LIBS $LIBS"
16732 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735
16736 #include <openssl/crypto.h>
16737
16738 int
16739 main ()
16740 {
16741
16742 OPENSSL_free(NULL);
16743
16744 ;
16745 return 0;
16746 }
16747 _ACEOF
16748 if ac_fn_c_try_link "$LINENO"; then :
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16751 $as_echo "yes" >&6; }
16752 :
16753
16754 else
16755
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16757 $as_echo "no" >&6; }
16758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16760 as_fn_error $? "OpenSSL/LibreSSL not found
16761 See \`config.log' for more details" "$LINENO" 5; }
16762
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16766 CPPFLAGS="$save_CPPFLAGS"
16767 LIBS="$save_LIBS"
16768
16769
16770
16771
16772 else
16773 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16774 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16776 $as_echo "yes" >&6; }
16777
16778 fi
16779
16780
16781
16782 CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
16783
16784
16785
16786 CFLAGS_openssl_ax_save_flags=$CFLAGS
16787
16788
16789
16790 CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
16791
16792
16793
16794 CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
16795
16796
16797
16798 ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
16799
16800
16801
16802 FCFLAGS_openssl_ax_save_flags=$FCFLAGS
16803
16804
16805
16806 FCLIBS_openssl_ax_save_flags=$FCLIBS
16807
16808
16809
16810 FFLAGS_openssl_ax_save_flags=$FFLAGS
16811
16812
16813
16814 FLIBS_openssl_ax_save_flags=$FLIBS
16815
16816
16817
16818 GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
16819
16820
16821
16822 JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
16823
16824
16825
16826 LDFLAGS_openssl_ax_save_flags=$LDFLAGS
16827
16828
16829
16830 LIBS_openssl_ax_save_flags=$LIBS
16831
16832
16833
16834 OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
16835
16836
16837
16838 OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
16839
16840
16841
16842 UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
16843
16844
16845
16846 VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
16847
16848
16849
16850
16851 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
16852 LIBS="$LIBS $OPENSSL_LIBS"
16853
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5
16855 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; }
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 #include <openssl/opensslv.h>
16859 int
16860 main ()
16861 {
16862 #if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\
16863 (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL))
16864 #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required
16865 #endif
16866
16867 ;
16868 return 0;
16869 }
16870 _ACEOF
16871 if ac_fn_c_try_compile "$LINENO"; then :
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16873 $as_echo "yes" >&6; }
16874 else
16875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16877 as_fn_error $? "not found
16878 See \`config.log' for more details" "$LINENO" 5; }
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881
16882 #
16883 # Check for functions added in OpenSSL or LibreSSL
16884 #
16885
16886 for ac_func in OPENSSL_init_ssl OPENSSL_init_crypto
16887 do :
16888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16889 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16890 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16891 cat >>confdefs.h <<_ACEOF
16892 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16893 _ACEOF
16894
16895 fi
16896 done
16897
16898 for ac_func in CRYPTO_zalloc
16899 do :
16900 ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
16901 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
16902 cat >>confdefs.h <<_ACEOF
16903 #define HAVE_CRYPTO_ZALLOC 1
16904 _ACEOF
16905
16906 fi
16907 done
16908
16909 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
16910 do :
16911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16913 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16914 cat >>confdefs.h <<_ACEOF
16915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16916 _ACEOF
16917
16918 fi
16919 done
16920
16921 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
16922 do :
16923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16926 cat >>confdefs.h <<_ACEOF
16927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16928 _ACEOF
16929
16930 fi
16931 done
16932
16933 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
16934 do :
16935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16937 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16938 cat >>confdefs.h <<_ACEOF
16939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16940 _ACEOF
16941
16942 fi
16943 done
16944
16945 for ac_func in SSL_read_ex SSL_peek_ex SSL_write_ex
16946 do :
16947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16948 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16949 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16950 cat >>confdefs.h <<_ACEOF
16951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16952 _ACEOF
16953
16954 fi
16955 done
16956
16957 for ac_func in BIO_read_ex BIO_write_ex
16958 do :
16959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16962 cat >>confdefs.h <<_ACEOF
16963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 _ACEOF
16965
16966 fi
16967 done
16968
16969 for ac_func in SSL_CTX_up_ref
16970 do :
16971 ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref"
16972 if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes; then :
16973 cat >>confdefs.h <<_ACEOF
16974 #define HAVE_SSL_CTX_UP_REF 1
16975 _ACEOF
16976
16977 fi
16978 done
16979
16980 for ac_func in SSL_CTX_set_min_proto_version
16981 do :
16982 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version"
16983 if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes; then :
16984 cat >>confdefs.h <<_ACEOF
16985 #define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1
16986 _ACEOF
16987
16988 fi
16989 done
16990
16991
16992 #
16993 # Check for algorithm support in OpenSSL
16994 #
16995
16996 for ac_func in ECDSA_sign ECDSA_verify
16997 do :
16998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17001 cat >>confdefs.h <<_ACEOF
17002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17003 _ACEOF
17004 :
17005 else
17006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17008 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
17009 See \`config.log' for more details" "$LINENO" 5; }
17010 fi
17011 done
17012
17013
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
17015 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17018 #include <openssl/evp.h>
17019 #include <openssl/ec.h>
17020 int
17021 main ()
17022 {
17023 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_compile "$LINENO"; then :
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17030 $as_echo "yes" >&6; }
17031 else
17032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17034 as_fn_error $? "not found. ECDSA P-256 support in OpenSSL is mandatory.
17035 See \`config.log' for more details" "$LINENO" 5; }
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
17040 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17043 #include <openssl/evp.h>
17044 #include <openssl/ec.h>
17045 int
17046 main ()
17047 {
17048 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_compile "$LINENO"; then :
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17055 $as_echo "yes" >&6; }
17056 else
17057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17059 as_fn_error $? "not found. ECDSA P-384 support in OpenSSL is mandatory.
17060 See \`config.log' for more details" "$LINENO" 5; }
17061 fi
17062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
17065 $as_echo_n "checking for Ed25519 support... " >&6; }
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17068 #include <openssl/evp.h>
17069 #include <openssl/ec.h>
17070 int
17071 main ()
17072 {
17073 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
17074 ;
17075 return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_compile "$LINENO"; then :
17079
17080 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17083 $as_echo "yes" >&6; }
17084 else
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17086 $as_echo "no" >&6; }
17087 fi
17088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17089
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
17091 $as_echo_n "checking for Ed448 support... " >&6; }
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 #include <openssl/evp.h>
17095 #include <openssl/ec.h>
17096 int
17097 main ()
17098 {
17099 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
17100 ;
17101 return 0;
17102 }
17103 _ACEOF
17104 if ac_fn_c_try_compile "$LINENO"; then :
17105
17106 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17109 $as_echo "yes" >&6; }
17110 else
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112 $as_echo "no" >&6; }
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115
17116 #
17117 # Check for OpenSSL SHA-1 support
17118 #
17119 for ac_func in EVP_sha1
17120 do :
17121 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
17122 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_EVP_SHA1 1
17125 _ACEOF
17126 :
17127 else
17128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17130 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
17131 See \`config.log' for more details" "$LINENO" 5; }
17132 fi
17133 done
17134
17135
17136 #
17137 # Check for OpenSSL SHA-2 support
17138 #
17139 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
17140 do :
17141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17143 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17144 cat >>confdefs.h <<_ACEOF
17145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17146 _ACEOF
17147 :
17148 else
17149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17151 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
17152 See \`config.log' for more details" "$LINENO" 5; }
17153 fi
17154 done
17155
17156
17157 #
17158 # Check for OpenSSL AES support
17159 #
17160 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
17161 do :
17162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17165 cat >>confdefs.h <<_ACEOF
17166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17167 _ACEOF
17168 :
17169 else
17170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17172 as_fn_error $? "AES support in OpenSSL is mandatory.
17173 See \`config.log' for more details" "$LINENO" 5; }
17174 fi
17175 done
17176
17177
17178 #
17179 # Check for OpenSSL 1.1.x/LibreSSL functions
17180 #
17181 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
17182 do :
17183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17185 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17186 cat >>confdefs.h <<_ACEOF
17187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17188 _ACEOF
17189
17190 fi
17191 done
17192
17193
17194 for ac_func in TLS_server_method TLS_client_method
17195 do :
17196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17199 cat >>confdefs.h <<_ACEOF
17200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201 _ACEOF
17202
17203 fi
17204 done
17205
17206
17207 #
17208 # Check whether FIPS mode is available and whether we should enable it
17209 #
17210 # FIPS is not included in pairwise testing as the relevant Docker image
17211 # does not support FIPS mode.
17212 #
17213 # [pairwise: skip]
17214 # Check whether --enable-fips-mode was given.
17215 if test "${enable_fips_mode+set}" = set; then :
17216 enableval=$enable_fips_mode;
17217 else
17218 enable_fips_mode="no"
17219 fi
17220
17221
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
17223 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
17224 case $enable_fips_mode in #(
17225 yes) :
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17227 $as_echo "yes" >&6; }
17228 for ac_func in FIPS_mode
17229 do :
17230 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
17231 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
17232 cat >>confdefs.h <<_ACEOF
17233 #define HAVE_FIPS_MODE 1
17234 _ACEOF
17235
17236 else
17237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17239 as_fn_error $? "OpenSSL FIPS mode requested but not available.
17240 See \`config.log' for more details" "$LINENO" 5; }
17241 fi
17242 done
17243 ;; #(
17244 no) :
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246 $as_echo "no" >&6; } ;; #(
17247 *) :
17248 ;;
17249 esac
17250
17251
17252 CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
17253
17254
17255 CFLAGS=$CFLAGS_openssl_ax_save_flags
17256
17257
17258 CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
17259
17260
17261 CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
17262
17263
17264 ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
17265
17266
17267 FCFLAGS=$FCFLAGS_openssl_ax_save_flags
17268
17269
17270 FCLIBS=$FCLIBS_openssl_ax_save_flags
17271
17272
17273 FFLAGS=$FFLAGS_openssl_ax_save_flags
17274
17275
17276 FLIBS=$FLIBS_openssl_ax_save_flags
17277
17278
17279 GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
17280
17281
17282 JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
17283
17284
17285 LDFLAGS=$LDFLAGS_openssl_ax_save_flags
17286
17287
17288 LIBS=$LIBS_openssl_ax_save_flags
17289
17290
17291 OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
17292
17293
17294 OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
17295
17296
17297 UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
17298
17299
17300 VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
17301
17302
17303
17304
17305
17306
17307
17308 PKCS11_TOOLS=
17309 PKCS11_TEST=
17310 PKCS11_MANS=
17311 #
17312 # was --enable-native-pkcs11 specified?
17313 #
17314 # [pairwise: --enable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --without-dlopen]
17315 # Check whether --enable-native-pkcs11 was given.
17316 if test "${enable_native_pkcs11+set}" = set; then :
17317 enableval=$enable_native_pkcs11; :
17318 else
17319 enable_native_pkcs11="no"
17320 fi
17321
17322
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
17324 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
17325 case $enable_native_pkcs11 in #(
17326 no) :
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17328 $as_echo "no" >&6; } ;; #(
17329 yes) :
17330 PKCS11_TOOLS=pkcs11
17331 PKCS11_TEST=pkcs11
17332 PKCS11_MANS='${pkcs11_man8_MANS}'
17333 CRYPTO=pkcs11
17334 if $use_threads; then :
17335 :
17336 else
17337 as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
17338 fi
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17340 $as_echo "yes" >&6; }
17341 for ac_func in getpassphrase
17342 do :
17343 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
17344 if test "x$ac_cv_func_getpassphrase" = xyes; then :
17345 cat >>confdefs.h <<_ACEOF
17346 #define HAVE_GETPASSPHRASE 1
17347 _ACEOF
17348
17349 fi
17350 done
17351
17352 ;; #(
17353 *) :
17354 ;;
17355 esac
17356
17357
17358
17359
17360
17361 case $CRYPTO in #(
17362 pkcs11) :
17363
17364 $as_echo "#define USE_PKCS11 1" >>confdefs.h
17365 ;; #(
17366 *) :
17367
17368 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
17369 ;;
17370 esac
17371
17372 # preparation for automake
17373 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
17374
17375 #
17376 # was --with-pkcs11 specified?
17377 #
17378 # [pairwise: skip]
17379
17380 # Check whether --with-pkcs11 was given.
17381 if test "${with_pkcs11+set}" = set; then :
17382 withval=$with_pkcs11; :
17383 else
17384 with_pkcs11="undefined"
17385 fi
17386
17387
17388 case $with_pkcs11 in #(
17389 yes|auto) :
17390 as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
17391 no|undefined) :
17392 with_pkcs11="undefined" ;; #(
17393 *) :
17394 ;;
17395 esac
17396
17397 cat >>confdefs.h <<_ACEOF
17398 #define PK11_LIB_LOCATION "$with_pkcs11"
17399 _ACEOF
17400
17401
17402 # for PKCS11 benchmarks
17403
17404 have_clock_gt=no
17405 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17406 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17407 have_clock_gt=yes
17408 fi
17409
17410 if test "no" = "$have_clock_gt"; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17412 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17413 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17414 $as_echo_n "(cached) " >&6
17415 else
17416 ac_check_lib_save_LIBS=$LIBS
17417 LIBS="-lrt $LIBS"
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17424 #ifdef __cplusplus
17425 extern "C"
17426 #endif
17427 char clock_gettime ();
17428 int
17429 main ()
17430 {
17431 return clock_gettime ();
17432 ;
17433 return 0;
17434 }
17435 _ACEOF
17436 if ac_fn_c_try_link "$LINENO"; then :
17437 ac_cv_lib_rt_clock_gettime=yes
17438 else
17439 ac_cv_lib_rt_clock_gettime=no
17440 fi
17441 rm -f core conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17444 fi
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17446 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17447 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17448 have_clock_gt=rt
17449 fi
17450
17451 fi
17452
17453 if test "no" != "$have_clock_gt"; then
17454
17455 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17456
17457 fi
17458
17459 if test "rt" = "$have_clock_gt"; then
17460 LIBS="-lrt $LIBS"
17461 fi
17462
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
17464 $as_echo_n "checking for GSSAPI library... " >&6; }
17465
17466 # [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi]
17467
17468 # Check whether --with-gssapi was given.
17469 if test "${with_gssapi+set}" = set; then :
17470 withval=$with_gssapi; use_gssapi="$withval"
17471 else
17472 use_gssapi="auto"
17473 fi
17474
17475
17476 # first try using krb5-config, if that does not work then fall back to "yes" method.
17477
17478 case "$use_gssapi" in
17479 */krb5-config|krb5-config)
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
17481 $as_echo "trying $use_gssapi" >&6; }
17482 if test krb5-config = "$use_gssapi"
17483 then
17484 # Extract the first word of "$use_gssapi", so it can be a program name with args.
17485 set dummy $use_gssapi; ac_word=$2
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17487 $as_echo_n "checking for $ac_word... " >&6; }
17488 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17489 $as_echo_n "(cached) " >&6
17490 else
17491 case $KRB5_CONFIG in
17492 [\\/]* | ?:[\\/]*)
17493 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17494 ;;
17495 *)
17496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17497 for as_dir in $PATH
17498 do
17499 IFS=$as_save_IFS
17500 test -z "$as_dir" && as_dir=.
17501 for ac_exec_ext in '' $ac_executable_extensions; do
17502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17503 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17505 break 2
17506 fi
17507 done
17508 done
17509 IFS=$as_save_IFS
17510
17511 ;;
17512 esac
17513 fi
17514 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17515 if test -n "$KRB5_CONFIG"; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17517 $as_echo "$KRB5_CONFIG" >&6; }
17518 else
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17520 $as_echo "no" >&6; }
17521 fi
17522
17523
17524 else
17525 KRB5_CONFIG="$use_gssapi"
17526 fi
17527 gssapi_cflags=`$KRB5_CONFIG --cflags gssapi krb5`
17528 gssapi_libs=`$KRB5_CONFIG --libs gssapi krb5`
17529 saved_cppflags="$CPPFLAGS"
17530 CPPFLAGS="$gssapi_cflags $CPPFLAGS"
17531 for ac_header in gssapi.h gssapi/gssapi.h
17532 do :
17533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17534 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17535 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17536 cat >>confdefs.h <<_ACEOF
17537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17538 _ACEOF
17539 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
17540 fi
17541
17542 done
17543
17544 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
17546 $as_echo "krb5-config: gssapi.h not found" >&6; }
17547 CPPFLAGS="$saved_cppflags"
17548 use_gssapi="yes"
17549 else
17550 for ac_header in krb5/krb5.h krb5.h
17551 do :
17552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17553 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17555 cat >>confdefs.h <<_ACEOF
17556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17557 _ACEOF
17558 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
17559 fi
17560
17561 done
17562
17563 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
17565 $as_echo "krb5-config: krb5.h not found" >&6; }
17566 CPPFLAGS="$saved_cppflags"
17567 use_gssapi="yes"
17568 else
17569 CPPFLAGS="$saved_cppflags"
17570 saved_libs="$LIBS"
17571 LIBS=$gssapi_libs
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
17573 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17576
17577 int
17578 main ()
17579 {
17580 gss_acquire_cred();krb5_init_context()
17581 ;
17582 return 0;
17583 }
17584 _ACEOF
17585 if ac_fn_c_try_link "$LINENO"; then :
17586 gssapi_linked=yes
17587 else
17588 gssapi_linked=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17592 case $gssapi_linked in
17593 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
17594 $as_echo "krb5-config: linked" >&6; };;
17595 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
17596 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
17597 use_gssapi="yes"
17598 ;;
17599 esac
17600 LIBS=$saved_libs
17601 fi
17602 fi
17603 if test "yes" = "$use_gssapi"; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
17605 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
17606 fi
17607 ;;
17608 esac
17609
17610 case "$host" in
17611 *darwin*)
17612 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
17613 then
17614 use_gssapi=framework
17615 fi
17616 ;;
17617 esac
17618
17619 # gssapi is just the framework, we really require kerberos v5, so
17620 # look for those headers (the gssapi headers must be there, too)
17621 # The problem with this implementation is that it doesn't allow
17622 # for the specification of gssapi and krb5 headers in different locations,
17623 # which probably ought to be fixed although fixing might raise the issue of
17624 # trying to build with incompatible versions of gssapi and krb5.
17625 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
17626 then
17627 # first, deal with the obvious
17628 if test \( -f /usr/include/kerberosv5/krb5.h -o \
17629 -f /usr/include/krb5/krb5.h -o \
17630 -f /usr/include/krb5.h \) -a \
17631 \( -f /usr/include/gssapi.h -o \
17632 -f /usr/include/gssapi/gssapi.h \)
17633 then
17634 use_gssapi=/usr
17635 else
17636 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
17637 for d in $krb5dirs
17638 do
17639 if test -f $d/include/gssapi/gssapi_krb5.h -o \
17640 -f $d/include/krb5.h
17641 then
17642 if test -f $d/include/gssapi/gssapi.h -o \
17643 -f $d/include/gssapi.h
17644 then
17645 use_gssapi=$d
17646 break
17647 fi
17648 fi
17649 done
17650 if test "auto" = "$use_gssapi"
17651 then
17652 use_gssapi="no"
17653 fi
17654 fi
17655 fi
17656
17657 case "$use_gssapi" in
17658 no)
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17660 $as_echo "disabled" >&6; }
17661 USE_GSSAPI=''
17662 ;;
17663 yes)
17664 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
17665 ;;
17666 */krb5-config|krb5-config)
17667 USE_GSSAPI='-DGSSAPI'
17668 DST_GSSAPI_INC="$gssapi_cflags"
17669 DNS_GSSAPI_LIBS="$gssapi_libs"
17670 ;;
17671 framework)
17672 USE_GSSAPI='-DGSSAPI'
17673 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
17674 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
17675 DNS_GSSAPI_LIBS="-framework Kerberos"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
17677 $as_echo "framework" >&6; }
17678 ;;
17679
17680 *)
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
17682 $as_echo "looking in $use_gssapi/lib" >&6; }
17683 USE_GSSAPI='-DGSSAPI'
17684 saved_cppflags="$CPPFLAGS"
17685 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
17686 for ac_header in gssapi.h gssapi/gssapi.h
17687 do :
17688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17689 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17691 cat >>confdefs.h <<_ACEOF
17692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17693 _ACEOF
17694 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
17695 gssapi_hack="#include <$ac_header>"
17696 fi
17697
17698 done
17699
17700
17701 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
17702 as_fn_error $? "gssapi.h not found" "$LINENO" 5
17703 fi
17704
17705 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17706 do :
17707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17710 cat >>confdefs.h <<_ACEOF
17711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17712 _ACEOF
17713 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
17714 gssapi_krb5_hack="#include <$ac_header>"
17715 fi
17716
17717 done
17718
17719
17720 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
17721 do :
17722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17725 cat >>confdefs.h <<_ACEOF
17726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17727 _ACEOF
17728 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
17729 krb5_hack="#include <$ac_header>"
17730 fi
17731
17732 done
17733
17734
17735 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
17736 as_fn_error $? "krb5.h not found" "$LINENO" 5
17737 fi
17738
17739 #
17740 # XXXDCL This probably doesn't work right on all systems.
17741 # It will need to be worked on as problems become evident.
17742 #
17743 # Essentially the problems here relate to two different
17744 # areas. The first area is building with either KTH
17745 # or MIT Kerberos, particularly when both are present on
17746 # the machine. The other is static versus dynamic linking.
17747 #
17748 # On the KTH vs MIT issue, Both have libkrb5 that can mess
17749 # up the works if one implementation ends up trying to
17750 # use the other's krb. This is unfortunately a situation
17751 # that very easily arises.
17752 #
17753 # Dynamic linking when the dependency information is built
17754 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
17755 # all such problems go away, but when that setup is not
17756 # present, because either the dynamic libraries lack
17757 # dependencies or static linking is being done, then the
17758 # problems start to show up.
17759 saved_libs="$LIBS"
17760 for TRY_LIBS in \
17761 "-lgssapi_krb5" \
17762 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
17763 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
17764 "-lgssapi" \
17765 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
17766 "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
17767 "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
17768 "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
17769 "-lgss -lkrb5"
17770 do
17771 # Note that this does not include $saved_libs, because
17772 # on FreeBSD machines this configure script has added
17773 # -L/usr/local/lib to LIBS, which can make the
17774 # -lgssapi_krb5 test succeed with shared libraries even
17775 # when you are trying to build with KTH in /usr/lib.
17776 if test "/usr" = "$use_gssapi"
17777 then
17778 LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
17779 else
17780 LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
17781 fi
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
17783 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17786
17787 #include <sys/types.h>
17788 $gssapi_hack
17789 $gssapi_krb5_hack
17790 $krb5_hack
17791
17792 int
17793 main ()
17794 {
17795 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
17796 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
17797 gsskrb5_register_acceptor_identity(NULL);
17798 #endif
17799 ;
17800 return 0;
17801 }
17802 _ACEOF
17803 if ac_fn_c_try_link "$LINENO"; then :
17804 gssapi_linked=yes
17805 else
17806 gssapi_linked=no
17807 fi
17808 rm -f core conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17810 case $gssapi_linked in
17811 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17812 $as_echo "yes" >&6; }; break ;;
17813 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814 $as_echo "no" >&6; } ;;
17815 esac
17816 done
17817
17818 CPPFLAGS="$saved_cppflags"
17819
17820 case $gssapi_linked in
17821 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
17822 esac
17823
17824 #
17825 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
17826 # but MIT in /usr/local/lib and trying to build with KTH.
17827 # /usr/local/lib can end up earlier on the link lines.
17828 # Like most kludges, this one is not only inelegant it
17829 # is also likely to be the wrong thing to do at least as
17830 # many times as it is the right thing. Something better
17831 # needs to be done.
17832 #
17833 if test "/usr" = "$use_gssapi" -a \
17834 -f /usr/local/lib/libkrb5.a; then
17835 FIX_KTH_VS_MIT=yes
17836 fi
17837
17838 case "$FIX_KTH_VS_MIT" in
17839 yes)
17840 case "$enable_static_linking" in
17841 yes) gssapi_lib_suffix=".a" ;;
17842 *) gssapi_lib_suffix=".so" ;;
17843 esac
17844
17845 for lib in $LIBS; do
17846 case $lib in
17847 -L*)
17848 ;;
17849 -l*)
17850 new_lib=`echo $lib |
17851 sed -e s%^-l%$use_gssapi/lib/lib% \
17852 -e s%$%$gssapi_lib_suffix%`
17853 NEW_LIBS="$NEW_LIBS $new_lib"
17854 ;;
17855 *)
17856 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
17857 ;;
17858 esac
17859 done
17860 LIBS="$NEW_LIBS"
17861 ;;
17862 esac
17863
17864 DST_GSSAPI_INC="-I$use_gssapi/include"
17865 DNS_GSSAPI_LIBS="$LIBS"
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
17868 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
17869 LIBS="$saved_libs"
17870 ;;
17871 esac
17872
17873
17874
17875
17876
17877
17878
17879
17880 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
17881
17882 #
17883 # Applications linking with libdns also need to link with these libraries.
17884 #
17885
17886
17887
17888 #
17889 # was --with-lmdb specified?
17890 #
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
17892 $as_echo_n "checking for lmdb library... " >&6; }
17893
17894 # [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb]
17895
17896 # Check whether --with-lmdb was given.
17897 if test "${with_lmdb+set}" = set; then :
17898 withval=$with_lmdb; use_lmdb="$withval"
17899 else
17900 use_lmdb="auto"
17901 fi
17902
17903
17904 have_lmdb=""
17905 case "$use_lmdb" in
17906 no)
17907 LMDB_LIBS=""
17908 ;;
17909 auto|yes)
17910 for d in /usr /usr/local /opt/local
17911 do
17912 if test -f "${d}/include/lmdb.h"
17913 then
17914 if test ${d} != /usr
17915 then
17916 LMDB_CFLAGS="-I ${d}/include"
17917 LMDB_LIBS="-L${d}/lib"
17918 fi
17919 have_lmdb="yes"
17920 fi
17921 done
17922 ;;
17923 *)
17924 if test -f "${use_lmdb}/include/lmdb.h"
17925 then
17926 LMDB_CFLAGS="-I${use_lmdb}/include"
17927 LMDB_LIBS="-L${use_lmdb}/lib"
17928 have_lmdb="yes"
17929 else
17930 as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
17931 fi
17932 ;;
17933 esac
17934
17935 if test "X${have_lmdb}" != "X"
17936 then
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17938 $as_echo "yes" >&6; }
17939
17940
17941 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
17942
17943
17944
17945 CFLAGS_lmdb_ax_save_flags=$CFLAGS
17946
17947
17948
17949 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
17950
17951
17952
17953 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
17954
17955
17956
17957 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
17958
17959
17960
17961 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
17962
17963
17964
17965 FCLIBS_lmdb_ax_save_flags=$FCLIBS
17966
17967
17968
17969 FFLAGS_lmdb_ax_save_flags=$FFLAGS
17970
17971
17972
17973 FLIBS_lmdb_ax_save_flags=$FLIBS
17974
17975
17976
17977 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
17978
17979
17980
17981 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
17982
17983
17984
17985 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
17986
17987
17988
17989 LIBS_lmdb_ax_save_flags=$LIBS
17990
17991
17992
17993 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
17994
17995
17996
17997 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
17998
17999
18000
18001 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
18002
18003
18004
18005 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
18006
18007
18008
18009 CFLAGS="$CFLAGS $LMDB_CFLAGS"
18010 LIBS="$LIBS $LMDB_LIBS"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
18012 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
18013 if ${ac_cv_search_mdb_env_create+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 ac_func_search_save_LIBS=$LIBS
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18019
18020 /* Override any GCC internal prototype to avoid an error.
18021 Use char because int might match the return type of a GCC
18022 builtin and then its argument prototype would still apply. */
18023 #ifdef __cplusplus
18024 extern "C"
18025 #endif
18026 char mdb_env_create ();
18027 int
18028 main ()
18029 {
18030 return mdb_env_create ();
18031 ;
18032 return 0;
18033 }
18034 _ACEOF
18035 for ac_lib in '' lmdb; do
18036 if test -z "$ac_lib"; then
18037 ac_res="none required"
18038 else
18039 ac_res=-l$ac_lib
18040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18041 fi
18042 if ac_fn_c_try_link "$LINENO"; then :
18043 ac_cv_search_mdb_env_create=$ac_res
18044 fi
18045 rm -f core conftest.err conftest.$ac_objext \
18046 conftest$ac_exeext
18047 if ${ac_cv_search_mdb_env_create+:} false; then :
18048 break
18049 fi
18050 done
18051 if ${ac_cv_search_mdb_env_create+:} false; then :
18052
18053 else
18054 ac_cv_search_mdb_env_create=no
18055 fi
18056 rm conftest.$ac_ext
18057 LIBS=$ac_func_search_save_LIBS
18058 fi
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
18060 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
18061 ac_res=$ac_cv_search_mdb_env_create
18062 if test "$ac_res" != no; then :
18063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18064
18065 else
18066 as_fn_error $? "found lmdb include but not library." "$LINENO" 5
18067 have_lmdb=""
18068 fi
18069
18070 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
18071
18072 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
18073
18074
18075 CFLAGS=$CFLAGS_lmdb_ax_save_flags
18076
18077
18078 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
18079
18080
18081 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
18082
18083
18084 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
18085
18086
18087 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
18088
18089
18090 FCLIBS=$FCLIBS_lmdb_ax_save_flags
18091
18092
18093 FFLAGS=$FFLAGS_lmdb_ax_save_flags
18094
18095
18096 FLIBS=$FLIBS_lmdb_ax_save_flags
18097
18098
18099 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
18100
18101
18102 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
18103
18104
18105 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
18106
18107
18108 LIBS=$LIBS_lmdb_ax_save_flags
18109
18110
18111 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
18112
18113
18114 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
18115
18116
18117 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
18118
18119
18120 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
18121
18122
18123
18124 elif test "X$use_lmdb" = Xyes
18125 then
18126 as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
18127 else
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129 $as_echo "no" >&6; }
18130 fi
18131
18132
18133
18134 NZD_TOOLS=""
18135 NZDSRCS=
18136 NZDTARGETS=
18137 if test "X${have_lmdb}" != "X"
18138 then
18139
18140 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
18141
18142 NZD_TOOLS="nzd"
18143 NZDSRCS='${NZDSRCS}'
18144 NZDTARGETS='${NZDTARGETS}'
18145 NZD_MANS='${nzd_man8_MANS}'
18146 fi
18147
18148
18149
18150
18151
18152 #
18153 # was --with-libxml2 specified?
18154 #
18155 # [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2]
18156
18157 # Check whether --with-libxml2 was given.
18158 if test "${with_libxml2+set}" = set; then :
18159 withval=$with_libxml2;
18160 else
18161 with_libxml2="auto"
18162 fi
18163
18164
18165 case $with_libxml2 in #(
18166 no) :
18167 ;; #(
18168 auto) :
18169
18170 pkg_failed=no
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
18172 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
18173
18174 if test -n "$LIBXML2_CFLAGS"; then
18175 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
18176 elif test -n "$PKG_CONFIG"; then
18177 if test -n "$PKG_CONFIG" && \
18178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18179 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18180 ac_status=$?
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; }; then
18183 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
18184 test "x$?" != "x0" && pkg_failed=yes
18185 else
18186 pkg_failed=yes
18187 fi
18188 else
18189 pkg_failed=untried
18190 fi
18191 if test -n "$LIBXML2_LIBS"; then
18192 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
18193 elif test -n "$PKG_CONFIG"; then
18194 if test -n "$PKG_CONFIG" && \
18195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18196 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18197 ac_status=$?
18198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18199 test $ac_status = 0; }; then
18200 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
18201 test "x$?" != "x0" && pkg_failed=yes
18202 else
18203 pkg_failed=yes
18204 fi
18205 else
18206 pkg_failed=untried
18207 fi
18208
18209
18210
18211 if test $pkg_failed = yes; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213 $as_echo "no" >&6; }
18214
18215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18216 _pkg_short_errors_supported=yes
18217 else
18218 _pkg_short_errors_supported=no
18219 fi
18220 if test $_pkg_short_errors_supported = yes; then
18221 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18222 else
18223 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18224 fi
18225 # Put the nasty error message in config.log where it belongs
18226 echo "$LIBXML2_PKG_ERRORS" >&5
18227
18228 :
18229 elif test $pkg_failed = untried; then
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18231 $as_echo "no" >&6; }
18232 :
18233 else
18234 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
18235 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18237 $as_echo "yes" >&6; }
18238
18239 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
18240
18241 fi ;; #(
18242 yes) :
18243
18244 pkg_failed=no
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
18246 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
18247
18248 if test -n "$LIBXML2_CFLAGS"; then
18249 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
18250 elif test -n "$PKG_CONFIG"; then
18251 if test -n "$PKG_CONFIG" && \
18252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18253 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18254 ac_status=$?
18255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18256 test $ac_status = 0; }; then
18257 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
18258 test "x$?" != "x0" && pkg_failed=yes
18259 else
18260 pkg_failed=yes
18261 fi
18262 else
18263 pkg_failed=untried
18264 fi
18265 if test -n "$LIBXML2_LIBS"; then
18266 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
18267 elif test -n "$PKG_CONFIG"; then
18268 if test -n "$PKG_CONFIG" && \
18269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18270 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18271 ac_status=$?
18272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18273 test $ac_status = 0; }; then
18274 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
18275 test "x$?" != "x0" && pkg_failed=yes
18276 else
18277 pkg_failed=yes
18278 fi
18279 else
18280 pkg_failed=untried
18281 fi
18282
18283
18284
18285 if test $pkg_failed = yes; then
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18287 $as_echo "no" >&6; }
18288
18289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18290 _pkg_short_errors_supported=yes
18291 else
18292 _pkg_short_errors_supported=no
18293 fi
18294 if test $_pkg_short_errors_supported = yes; then
18295 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18296 else
18297 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18298 fi
18299 # Put the nasty error message in config.log where it belongs
18300 echo "$LIBXML2_PKG_ERRORS" >&5
18301
18302 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
18303
18304 $LIBXML2_PKG_ERRORS
18305
18306 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18307 installed software in a non-standard prefix.
18308
18309 Alternatively, you may set the environment variables LIBXML2_CFLAGS
18310 and LIBXML2_LIBS to avoid the need to call pkg-config.
18311 See the pkg-config man page for more details." "$LINENO" 5
18312 elif test $pkg_failed = untried; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18317 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18318 is in your PATH or set the PKG_CONFIG environment variable to the full
18319 path to pkg-config.
18320
18321 Alternatively, you may set the environment variables LIBXML2_CFLAGS
18322 and LIBXML2_LIBS to avoid the need to call pkg-config.
18323 See the pkg-config man page for more details.
18324
18325 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18326 See \`config.log' for more details" "$LINENO" 5; }
18327 else
18328 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
18329 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18332
18333 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
18334
18335 fi ;; #(
18336 *) :
18337 as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
18338 esac
18339
18340 #
18341 # DEPRECATED
18342 #
18343 # [pairwise: skip]
18344
18345 # Check whether --with-libjson was given.
18346 if test "${with_libjson+set}" = set; then :
18347 withval=$with_libjson; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&5
18348 $as_echo "$as_me: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&2;}
18349 else
18350 with_libjson="detect"
18351 fi
18352
18353
18354 #
18355 # was --with-json-c specified?
18356 #
18357 # [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c]
18358
18359 # Check whether --with-json-c was given.
18360 if test "${with_json_c+set}" = set; then :
18361 withval=$with_json_c;
18362 else
18363 with_json_c="$with_libjson"
18364 fi
18365
18366
18367 case $with_json_c in #(
18368 no) :
18369 ;; #(
18370 detect) :
18371
18372 pkg_failed=no
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
18374 $as_echo_n "checking for json-c >= 0.11... " >&6; }
18375
18376 if test -n "$JSON_C_CFLAGS"; then
18377 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
18378 elif test -n "$PKG_CONFIG"; then
18379 if test -n "$PKG_CONFIG" && \
18380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18381 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18382 ac_status=$?
18383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18384 test $ac_status = 0; }; then
18385 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
18386 test "x$?" != "x0" && pkg_failed=yes
18387 else
18388 pkg_failed=yes
18389 fi
18390 else
18391 pkg_failed=untried
18392 fi
18393 if test -n "$JSON_C_LIBS"; then
18394 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
18395 elif test -n "$PKG_CONFIG"; then
18396 if test -n "$PKG_CONFIG" && \
18397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18398 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18401 test $ac_status = 0; }; then
18402 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
18403 test "x$?" != "x0" && pkg_failed=yes
18404 else
18405 pkg_failed=yes
18406 fi
18407 else
18408 pkg_failed=untried
18409 fi
18410
18411
18412
18413 if test $pkg_failed = yes; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416
18417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18418 _pkg_short_errors_supported=yes
18419 else
18420 _pkg_short_errors_supported=no
18421 fi
18422 if test $_pkg_short_errors_supported = yes; then
18423 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18424 else
18425 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18426 fi
18427 # Put the nasty error message in config.log where it belongs
18428 echo "$JSON_C_PKG_ERRORS" >&5
18429
18430 :
18431 elif test $pkg_failed = untried; then
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433 $as_echo "no" >&6; }
18434 :
18435 else
18436 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
18437 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18439 $as_echo "yes" >&6; }
18440
18441 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
18442
18443 fi ;; #(
18444 yes) :
18445
18446 pkg_failed=no
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
18448 $as_echo_n "checking for json-c >= 0.11... " >&6; }
18449
18450 if test -n "$JSON_C_CFLAGS"; then
18451 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
18452 elif test -n "$PKG_CONFIG"; then
18453 if test -n "$PKG_CONFIG" && \
18454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18455 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18456 ac_status=$?
18457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18458 test $ac_status = 0; }; then
18459 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
18460 test "x$?" != "x0" && pkg_failed=yes
18461 else
18462 pkg_failed=yes
18463 fi
18464 else
18465 pkg_failed=untried
18466 fi
18467 if test -n "$JSON_C_LIBS"; then
18468 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
18469 elif test -n "$PKG_CONFIG"; then
18470 if test -n "$PKG_CONFIG" && \
18471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18472 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18475 test $ac_status = 0; }; then
18476 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
18477 test "x$?" != "x0" && pkg_failed=yes
18478 else
18479 pkg_failed=yes
18480 fi
18481 else
18482 pkg_failed=untried
18483 fi
18484
18485
18486
18487 if test $pkg_failed = yes; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18489 $as_echo "no" >&6; }
18490
18491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18492 _pkg_short_errors_supported=yes
18493 else
18494 _pkg_short_errors_supported=no
18495 fi
18496 if test $_pkg_short_errors_supported = yes; then
18497 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18498 else
18499 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18500 fi
18501 # Put the nasty error message in config.log where it belongs
18502 echo "$JSON_C_PKG_ERRORS" >&5
18503
18504 as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
18505
18506 $JSON_C_PKG_ERRORS
18507
18508 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18509 installed software in a non-standard prefix.
18510
18511 Alternatively, you may set the environment variables JSON_C_CFLAGS
18512 and JSON_C_LIBS to avoid the need to call pkg-config.
18513 See the pkg-config man page for more details." "$LINENO" 5
18514 elif test $pkg_failed = untried; then
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18516 $as_echo "no" >&6; }
18517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18519 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18520 is in your PATH or set the PKG_CONFIG environment variable to the full
18521 path to pkg-config.
18522
18523 Alternatively, you may set the environment variables JSON_C_CFLAGS
18524 and JSON_C_LIBS to avoid the need to call pkg-config.
18525 See the pkg-config man page for more details.
18526
18527 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18528 See \`config.log' for more details" "$LINENO" 5; }
18529 else
18530 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
18531 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18533 $as_echo "yes" >&6; }
18534
18535 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
18536
18537 fi ;; #(
18538 *) :
18539 as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
18540 ;;
18541 esac
18542
18543
18544
18545
18546 # [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib]
18547
18548 # Check whether --with-zlib was given.
18549 if test "${with_zlib+set}" = set; then :
18550 withval=$with_zlib;
18551 else
18552 with_zlib="auto"
18553 fi
18554
18555
18556 case $with_zlib in #(
18557 no) :
18558 ;; #(
18559 auto) :
18560
18561 pkg_failed=no
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
18563 $as_echo_n "checking for zlib... " >&6; }
18564
18565 if test -n "$ZLIB_CFLAGS"; then
18566 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18567 elif test -n "$PKG_CONFIG"; then
18568 if test -n "$PKG_CONFIG" && \
18569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18570 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18571 ac_status=$?
18572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18573 test $ac_status = 0; }; then
18574 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
18575 test "x$?" != "x0" && pkg_failed=yes
18576 else
18577 pkg_failed=yes
18578 fi
18579 else
18580 pkg_failed=untried
18581 fi
18582 if test -n "$ZLIB_LIBS"; then
18583 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18584 elif test -n "$PKG_CONFIG"; then
18585 if test -n "$PKG_CONFIG" && \
18586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18587 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18588 ac_status=$?
18589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18590 test $ac_status = 0; }; then
18591 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
18592 test "x$?" != "x0" && pkg_failed=yes
18593 else
18594 pkg_failed=yes
18595 fi
18596 else
18597 pkg_failed=untried
18598 fi
18599
18600
18601
18602 if test $pkg_failed = yes; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604 $as_echo "no" >&6; }
18605
18606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18607 _pkg_short_errors_supported=yes
18608 else
18609 _pkg_short_errors_supported=no
18610 fi
18611 if test $_pkg_short_errors_supported = yes; then
18612 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
18613 else
18614 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
18615 fi
18616 # Put the nasty error message in config.log where it belongs
18617 echo "$ZLIB_PKG_ERRORS" >&5
18618
18619 :
18620 elif test $pkg_failed = untried; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18623 :
18624 else
18625 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18626 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 $as_echo "yes" >&6; }
18629
18630 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18631
18632 fi ;; #(
18633 yes) :
18634
18635 pkg_failed=no
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
18637 $as_echo_n "checking for zlib... " >&6; }
18638
18639 if test -n "$ZLIB_CFLAGS"; then
18640 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18641 elif test -n "$PKG_CONFIG"; then
18642 if test -n "$PKG_CONFIG" && \
18643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18644 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18645 ac_status=$?
18646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18647 test $ac_status = 0; }; then
18648 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
18649 test "x$?" != "x0" && pkg_failed=yes
18650 else
18651 pkg_failed=yes
18652 fi
18653 else
18654 pkg_failed=untried
18655 fi
18656 if test -n "$ZLIB_LIBS"; then
18657 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18658 elif test -n "$PKG_CONFIG"; then
18659 if test -n "$PKG_CONFIG" && \
18660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18661 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18662 ac_status=$?
18663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18664 test $ac_status = 0; }; then
18665 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
18666 test "x$?" != "x0" && pkg_failed=yes
18667 else
18668 pkg_failed=yes
18669 fi
18670 else
18671 pkg_failed=untried
18672 fi
18673
18674
18675
18676 if test $pkg_failed = yes; then
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18678 $as_echo "no" >&6; }
18679
18680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18681 _pkg_short_errors_supported=yes
18682 else
18683 _pkg_short_errors_supported=no
18684 fi
18685 if test $_pkg_short_errors_supported = yes; then
18686 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
18687 else
18688 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
18689 fi
18690 # Put the nasty error message in config.log where it belongs
18691 echo "$ZLIB_PKG_ERRORS" >&5
18692
18693 as_fn_error $? "Package requirements (zlib) were not met:
18694
18695 $ZLIB_PKG_ERRORS
18696
18697 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18698 installed software in a non-standard prefix.
18699
18700 Alternatively, you may set the environment variables ZLIB_CFLAGS
18701 and ZLIB_LIBS to avoid the need to call pkg-config.
18702 See the pkg-config man page for more details." "$LINENO" 5
18703 elif test $pkg_failed = untried; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18705 $as_echo "no" >&6; }
18706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18708 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18709 is in your PATH or set the PKG_CONFIG environment variable to the full
18710 path to pkg-config.
18711
18712 Alternatively, you may set the environment variables ZLIB_CFLAGS
18713 and ZLIB_LIBS to avoid the need to call pkg-config.
18714 See the pkg-config man page for more details.
18715
18716 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18717 See \`config.log' for more details" "$LINENO" 5; }
18718 else
18719 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18720 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18722 $as_echo "yes" >&6; }
18723
18724 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18725
18726 fi ;; #(
18727 *) :
18728 as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
18729 esac
18730
18731
18732
18733 #
18734 # In solaris 10, SMF can manage named service
18735 #
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
18737 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
18738 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
18739 $as_echo_n "(cached) " >&6
18740 else
18741 ac_check_lib_save_LIBS=$LIBS
18742 LIBS="-lscf $LIBS"
18743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h. */
18745
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char smf_enable_instance ();
18753 int
18754 main ()
18755 {
18756 return smf_enable_instance ();
18757 ;
18758 return 0;
18759 }
18760 _ACEOF
18761 if ac_fn_c_try_link "$LINENO"; then :
18762 ac_cv_lib_scf_smf_enable_instance=yes
18763 else
18764 ac_cv_lib_scf_smf_enable_instance=no
18765 fi
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768 LIBS=$ac_check_lib_save_LIBS
18769 fi
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
18771 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
18772 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
18773 cat >>confdefs.h <<_ACEOF
18774 #define HAVE_LIBSCF 1
18775 _ACEOF
18776
18777 LIBS="-lscf $LIBS"
18778
18779 fi
18780
18781
18782 #
18783 # Additional compiler settings.
18784 #
18785 MKDEPCC="$CC"
18786
18787 MKDEPCFLAGS="-M"
18788 case $host in #(
18789 *-solaris*) :
18790
18791 if test "$GCC" != "yes"; then :
18792 MKDEPCFLAGS="-xM"
18793 fi ;; #(
18794 *) :
18795 ;;
18796 esac
18797
18798 if test "$GCC" = "yes"; then :
18799 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers"
18800
18801 fi
18802
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
18804 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
18805 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807 else
18808
18809 ax_check_save_flags=$CFLAGS
18810 CFLAGS="$CFLAGS -fno-strict-aliasing"
18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18813
18814 int
18815 main ()
18816 {
18817
18818 ;
18819 return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_c_try_compile "$LINENO"; then :
18823 ax_cv_check_cflags___fno_strict_aliasing=yes
18824 else
18825 ax_cv_check_cflags___fno_strict_aliasing=no
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 CFLAGS=$ax_check_save_flags
18829 fi
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
18831 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
18832 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
18833 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
18834 else
18835 :
18836 fi
18837
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
18839 $as_echo_n "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
18840 if ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+:} false; then :
18841 $as_echo_n "(cached) " >&6
18842 else
18843
18844 ax_check_save_flags=$CFLAGS
18845 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848
18849 int
18850 main ()
18851 {
18852
18853 ;
18854 return 0;
18855 }
18856 _ACEOF
18857 if ac_fn_c_try_compile "$LINENO"; then :
18858 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
18859 else
18860 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
18861 fi
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863 CFLAGS=$ax_check_save_flags
18864 fi
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
18866 $as_echo "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
18867 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes; then :
18868 STC_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
18869 else
18870 :
18871 fi
18872
18873 if test "$enable_warn_shadow" = "yes"; then :
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
18875 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
18876 if ${ax_cv_check_cflags___Wshadow+:} false; then :
18877 $as_echo_n "(cached) " >&6
18878 else
18879
18880 ax_check_save_flags=$CFLAGS
18881 CFLAGS="$CFLAGS -Wshadow"
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18884
18885 int
18886 main ()
18887 {
18888
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 if ac_fn_c_try_compile "$LINENO"; then :
18894 ax_cv_check_cflags___Wshadow=yes
18895 else
18896 ax_cv_check_cflags___Wshadow=no
18897 fi
18898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18899 CFLAGS=$ax_check_save_flags
18900 fi
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
18902 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
18903 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
18904 STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
18905 else
18906 :
18907 fi
18908
18909 fi
18910 if test "$enable_warn_error" = "yes"; then :
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
18912 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
18913 if ${ax_cv_check_cflags___Werror+:} false; then :
18914 $as_echo_n "(cached) " >&6
18915 else
18916
18917 ax_check_save_flags=$CFLAGS
18918 CFLAGS="$CFLAGS -Werror"
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18921
18922 int
18923 main ()
18924 {
18925
18926 ;
18927 return 0;
18928 }
18929 _ACEOF
18930 if ac_fn_c_try_compile "$LINENO"; then :
18931 ax_cv_check_cflags___Werror=yes
18932 else
18933 ax_cv_check_cflags___Werror=no
18934 fi
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 CFLAGS=$ax_check_save_flags
18937 fi
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
18939 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
18940 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
18941 STD_CWARNINGS="$STD_CWARNINGS -Werror"
18942 else
18943 :
18944 fi
18945
18946 fi
18947
18948
18949
18950
18951
18952 #
18953 # -lxnet buys us one big porting headache... standards, gotta love 'em.
18954 #
18955 # AC_CHECK_LIB(xnet, socket, ,
18956 # AC_CHECK_LIB(socket, socket)
18957 # )
18958 #
18959 # Use this for now, instead:
18960 #
18961 case "$host" in
18962 *-linux*)
18963 ;;
18964 *)
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18966 $as_echo_n "checking for socket in -lsocket... " >&6; }
18967 if ${ac_cv_lib_socket_socket+:} false; then :
18968 $as_echo_n "(cached) " >&6
18969 else
18970 ac_check_lib_save_LIBS=$LIBS
18971 LIBS="-lsocket $LIBS"
18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h. */
18974
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char socket ();
18982 int
18983 main ()
18984 {
18985 return socket ();
18986 ;
18987 return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"; then :
18991 ac_cv_lib_socket_socket=yes
18992 else
18993 ac_cv_lib_socket_socket=no
18994 fi
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997 LIBS=$ac_check_lib_save_LIBS
18998 fi
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
19000 $as_echo "$ac_cv_lib_socket_socket" >&6; }
19001 if test "x$ac_cv_lib_socket_socket" = xyes; then :
19002 cat >>confdefs.h <<_ACEOF
19003 #define HAVE_LIBSOCKET 1
19004 _ACEOF
19005
19006 LIBS="-lsocket $LIBS"
19007
19008 fi
19009
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
19011 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
19012 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
19013 $as_echo_n "(cached) " >&6
19014 else
19015 ac_check_lib_save_LIBS=$LIBS
19016 LIBS="-lnsl $LIBS"
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 char inet_addr ();
19027 int
19028 main ()
19029 {
19030 return inet_addr ();
19031 ;
19032 return 0;
19033 }
19034 _ACEOF
19035 if ac_fn_c_try_link "$LINENO"; then :
19036 ac_cv_lib_nsl_inet_addr=yes
19037 else
19038 ac_cv_lib_nsl_inet_addr=no
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042 LIBS=$ac_check_lib_save_LIBS
19043 fi
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
19045 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
19046 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_LIBNSL 1
19049 _ACEOF
19050
19051 LIBS="-lnsl $LIBS"
19052
19053 fi
19054
19055 ;;
19056 esac
19057
19058 #
19059 # Work around Solaris's select() limitations.
19060 #
19061 case "$host" in
19062 *-solaris2.[89]|*-solaris2.1?)
19063
19064 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
19065
19066 ;;
19067 esac
19068
19069 #
19070 # Purify support
19071 #
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
19073 $as_echo_n "checking whether to use purify... " >&6; }
19074
19075 # Purify is not included in pairwise testing as that tool is not present
19076 # in the relevant Docker image.
19077 #
19078 # [pairwise: skip]
19079
19080 # Check whether --with-purify was given.
19081 if test "${with_purify+set}" = set; then :
19082 withval=$with_purify; use_purify="$withval"
19083 else
19084 use_purify="no"
19085 fi
19086
19087
19088 case "$use_purify" in
19089 no)
19090 ;;
19091 yes)
19092 # Extract the first word of "purify", so it can be a program name with args.
19093 set dummy purify; ac_word=$2
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19095 $as_echo_n "checking for $ac_word... " >&6; }
19096 if ${ac_cv_path_purify_path+:} false; then :
19097 $as_echo_n "(cached) " >&6
19098 else
19099 case $purify_path in
19100 [\\/]* | ?:[\\/]*)
19101 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
19102 ;;
19103 *)
19104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19105 for as_dir in $PATH
19106 do
19107 IFS=$as_save_IFS
19108 test -z "$as_dir" && as_dir=.
19109 for ac_exec_ext in '' $ac_executable_extensions; do
19110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19111 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
19112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19113 break 2
19114 fi
19115 done
19116 done
19117 IFS=$as_save_IFS
19118
19119 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
19120 ;;
19121 esac
19122 fi
19123 purify_path=$ac_cv_path_purify_path
19124 if test -n "$purify_path"; then
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
19126 $as_echo "$purify_path" >&6; }
19127 else
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19129 $as_echo "no" >&6; }
19130 fi
19131
19132
19133 ;;
19134 *)
19135 purify_path="$use_purify"
19136 ;;
19137 esac
19138
19139 case "$use_purify" in
19140 no)
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143 PURIFY=""
19144 ;;
19145 *)
19146 if test -f "$purify_path" || test purify = "$purify_path"; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
19148 $as_echo "$purify_path" >&6; }
19149 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
19150 PURIFY="$purify_path $PURIFYFLAGS"
19151 else
19152 as_fn_error $? "$purify_path not found.
19153
19154 Please choose the proper path with the following command:
19155
19156 configure --with-purify=PATH
19157 " "$LINENO" 5
19158 fi
19159 ;;
19160 esac
19161
19162
19163
19164 #
19165 # Google/Great Performance Tools CPU Profiler
19166 #
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
19168 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
19169
19170 # Google/Great Performance Tools CPU Profiler is not included in
19171 # pairwise testing as that tool is not present in the relevant Docker
19172 # image.
19173 #
19174 # [pairwise: skip]
19175
19176 # Check whether --with-gperftools-profiler was given.
19177 if test "${with_gperftools_profiler+set}" = set; then :
19178 withval=$with_gperftools_profiler; use_profiler="$withval"
19179 else
19180 use_profiler="no"
19181 fi
19182
19183
19184 case $use_profiler in
19185 yes)
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19187 $as_echo "yes" >&6; }
19188
19189 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
19190
19191 LIBS="$LIBS -lprofiler"
19192 ;;
19193 *)
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19195 $as_echo "no" >&6; }
19196 ;;
19197 esac
19198
19199 #
19200 # enable/disable dumping stack backtrace. Also check if the system supports
19201 # glibc-compatible backtrace() function.
19202 #
19203 # [pairwise: --enable-backtrace, --disable-backtrace]
19204 # Check whether --enable-backtrace was given.
19205 if test "${enable_backtrace+set}" = set; then :
19206 enableval=$enable_backtrace;
19207 else
19208 enable_backtrace="yes"
19209 fi
19210
19211
19212 if test "$enable_backtrace" = "yes"; then :
19213
19214 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
19215
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19218 #include <execinfo.h>
19219 int
19220 main ()
19221 {
19222 return (backtrace((void **)0, 0));
19223
19224 ;
19225 return 0;
19226 }
19227 _ACEOF
19228 if ac_fn_c_try_link "$LINENO"; then :
19229
19230 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
19231
19232 else
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19235 #include <stddef.h>
19236 int
19237 main ()
19238 {
19239 return _Unwind_Backtrace(NULL, NULL);
19240
19241 ;
19242 return 0;
19243 }
19244 _ACEOF
19245 if ac_fn_c_try_link "$LINENO"; then :
19246
19247 $as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
19248
19249
19250 fi
19251 rm -f core conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19253
19254 fi
19255 rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257 fi
19258
19259 # [pairwise: --enable-symtable, --disable-symtable]
19260 # Check whether --enable-symtable was given.
19261 if test "${enable_symtable+set}" = set; then :
19262 enableval=$enable_symtable; want_symtable="$enableval"
19263 else
19264 want_symtable="minimal"
19265 fi
19266
19267 case $want_symtable in
19268 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
19269 if test "" = "$PERL"
19270 then
19271 as_fn_error $? "Internal symbol table requires perl but no perl is found.
19272 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
19273 fi
19274 if test "yes" = "$use_libtool"; then
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
19276 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
19277 else
19278 # we generate the internal symbol table only for those systems
19279 # known to work to avoid unexpected build failure. Also, warn
19280 # about unsupported systems when the feature is enabled
19281 # manually.
19282 case $host_os in
19283 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
19284 MKSYMTBL_PROGRAM="$PERL"
19285 if test "all" = "$want_symtable"; then
19286 ALWAYS_MAKE_SYMTABLE="yes"
19287 fi
19288 ;;
19289 *)
19290 if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
19291 then
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
19293 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
19294 fi
19295 esac
19296 fi
19297 ;;
19298 *)
19299 ;;
19300 esac
19301
19302
19303
19304 #
19305 # File name extension for static archive files, for those few places
19306 # where they are treated differently from dynamic ones.
19307 #
19308 SA=a
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319 BIND9_CO_RULE=".c.$O:"
19320
19321
19322 #
19323 # Here begins a very long section to determine the system's networking
19324 # capabilities. The order of the tests is significant.
19325 #
19326
19327 #
19328 # We do the IPv6 compilation checking after libtool so that we can put
19329 # the right suffix on the files.
19330 #
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
19332 $as_echo_n "checking for IPv6 structures... " >&6; }
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/in.h>
19339
19340 int
19341 main ()
19342 {
19343
19344 struct sockaddr_in6 sin6;
19345 struct in6_addr in6;
19346 struct in6_pktinfo in6_pi;
19347 struct sockaddr_storage storage;
19348 in6 = in6addr_any;
19349 in6 = in6addr_loopback;
19350 sin6.sin6_scope_id = 0;
19351 return (0);
19352
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"; then :
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19359 $as_echo "yes" >&6; }
19360 else
19361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19363 as_fn_error $? "IPv6 support is mandatory
19364 See \`config.log' for more details" "$LINENO" 5; }
19365 fi
19366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367
19368 #
19369 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
19370 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
19371 # comment in lib/isc/unix/socket.c).
19372 #
19373 # [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen]
19374 # Check whether --enable-tcp_fastopen was given.
19375 if test "${enable_tcp_fastopen+set}" = set; then :
19376 enableval=$enable_tcp_fastopen;
19377 else
19378 enable_tcp_fastopen="yes"
19379 fi
19380
19381
19382 if test "$enable_tcp_fastopen" = "yes"; then :
19383
19384 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
19385
19386 fi
19387
19388 #
19389 # Check for some other useful functions that are not ever-present.
19390 #
19391 for ac_func in strlcpy strlcat
19392 do :
19393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19395 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19396 cat >>confdefs.h <<_ACEOF
19397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19398 _ACEOF
19399
19400 fi
19401 done
19402
19403
19404
19405
19406 # [pairwise: --with-readline=auto, --with-readline=yes, --without-readline]
19407
19408 # Check whether --with-readline was given.
19409 if test "${with_readline+set}" = set; then :
19410 withval=$with_readline; use_readline="$withval"
19411 else
19412 use_readline="auto"
19413 fi
19414
19415 case "$use_readline" in
19416 no) ;;
19417 *)
19418 saved_LIBS="$LIBS"
19419 case "$use_readline" in
19420 yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
19421 *) try_readline="$use_readline"
19422 esac
19423 for readline in "$try_readline" $or_readline
19424 do
19425 LIBS="$readline"
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
19427 $as_echo "$as_me: checking for readline with $readline" >&6;}
19428 for ac_func in readline
19429 do :
19430 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19431 if test "x$ac_cv_func_readline" = xyes; then :
19432 cat >>confdefs.h <<_ACEOF
19433 #define HAVE_READLINE 1
19434 _ACEOF
19435
19436 fi
19437 done
19438
19439 if test "yes" = "$ac_cv_func_readline"
19440 then
19441 READLINE_LIB="$readline"
19442 break
19443 fi
19444 for lib in -lterminfo -ltermcap -lncurses -lcurses
19445 do
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
19447 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
19448 unset ac_cv_func_readline
19449 LIBS="$readline $lib"
19450 for ac_func in readline
19451 do :
19452 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19453 if test "x$ac_cv_func_readline" = xyes; then :
19454 cat >>confdefs.h <<_ACEOF
19455 #define HAVE_READLINE 1
19456 _ACEOF
19457
19458 fi
19459 done
19460
19461 if test "yes" = "$ac_cv_func_readline"
19462 then
19463 READLINE_LIB="$readline $lib"
19464 break
19465 fi
19466 done
19467 if test "yes" = "$ac_cv_func_readline"
19468 then
19469 break
19470 fi
19471 done
19472 if test "auto" != "$use_readline" &&
19473 test "X$READLINE_LIB" = "X"
19474 then
19475 as_fn_error $? "The readline library was not found." "$LINENO" 5
19476 fi
19477 LIBS="$saved_LIBS"
19478 ;;
19479 esac
19480 if test "yes" = "$ac_cv_func_readline"
19481 then
19482 case "$READLINE_LIB" in
19483 *edit*)
19484 for ac_header in editline/readline.h
19485 do :
19486 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
19487 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_EDITLINE_READLINE_H 1
19490 _ACEOF
19491
19492 fi
19493
19494 done
19495
19496 for ac_header in edit/readline/readline.h
19497 do :
19498 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
19499 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_EDIT_READLINE_READLINE_H 1
19502 _ACEOF
19503
19504 fi
19505
19506 done
19507
19508 for ac_header in edit/readline/history.h
19509 do :
19510 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
19511 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
19512 cat >>confdefs.h <<_ACEOF
19513 #define HAVE_EDIT_READLINE_HISTORY_H 1
19514 _ACEOF
19515
19516 fi
19517
19518 done
19519
19520 ;;
19521 esac
19522 for ac_header in readline/readline.h
19523 do :
19524 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19525 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_READLINE_READLINE_H 1
19528 _ACEOF
19529
19530 fi
19531
19532 done
19533
19534 for ac_header in readline/history.h
19535 do :
19536 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
19537 if test "x$ac_cv_header_readline_history_h" = xyes; then :
19538 cat >>confdefs.h <<_ACEOF
19539 #define HAVE_READLINE_HISTORY_H 1
19540 _ACEOF
19541
19542 fi
19543
19544 done
19545
19546 fi
19547
19548
19549
19550
19551 #
19552 # Security Stuff
19553 #
19554 # Note it is very recommended to *not* disable chroot(),
19555 # this is only because chroot() was made obsolete by Posix.
19556 #
19557 # [pairwise: --enable-chroot, --disable-chroot]
19558 # Check whether --enable-chroot was given.
19559 if test "${enable_chroot+set}" = set; then :
19560 enableval=$enable_chroot;
19561 fi
19562
19563 case "$enable_chroot" in
19564 yes|'')
19565 for ac_func in chroot
19566 do :
19567 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
19568 if test "x$ac_cv_func_chroot" = xyes; then :
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_CHROOT 1
19571 _ACEOF
19572
19573 fi
19574 done
19575
19576 ;;
19577 no)
19578 ;;
19579 esac
19580
19581 LIBCAP_LIBS=""
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
19583 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
19584
19585 # [pairwise: --enable-linux-caps, --disable-linux-caps]
19586 # Check whether --enable-linux-caps was given.
19587 if test "${enable_linux_caps+set}" = set; then :
19588 enableval=$enable_linux_caps;
19589 else
19590 case $host in #(
19591 *-linux*) :
19592 enable_linux_caps=yes ;; #(
19593 *) :
19594 enable_linux_caps=no ;;
19595 esac
19596 fi
19597
19598
19599 if test "$enable_linux_caps" = "yes"; then :
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19601 $as_echo "yes" >&6; }
19602 for ac_header in sys/capability.h
19603 do :
19604 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
19605 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
19606 cat >>confdefs.h <<_ACEOF
19607 #define HAVE_SYS_CAPABILITY_H 1
19608 _ACEOF
19609
19610 else
19611 as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
19612 fi
19613
19614 done
19615
19616
19617
19618 CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
19619
19620
19621
19622 CFLAGS_cap_ax_save_flags=$CFLAGS
19623
19624
19625
19626 CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
19627
19628
19629
19630 CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
19631
19632
19633
19634 ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
19635
19636
19637
19638 FCFLAGS_cap_ax_save_flags=$FCFLAGS
19639
19640
19641
19642 FCLIBS_cap_ax_save_flags=$FCLIBS
19643
19644
19645
19646 FFLAGS_cap_ax_save_flags=$FFLAGS
19647
19648
19649
19650 FLIBS_cap_ax_save_flags=$FLIBS
19651
19652
19653
19654 GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
19655
19656
19657
19658 JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
19659
19660
19661
19662 LDFLAGS_cap_ax_save_flags=$LDFLAGS
19663
19664
19665
19666 LIBS_cap_ax_save_flags=$LIBS
19667
19668
19669
19670 OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
19671
19672
19673
19674 OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
19675
19676
19677
19678 UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
19679
19680
19681
19682 VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
19683
19684
19685
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
19687 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
19688 if ${ac_cv_search_cap_set_proc+:} false; then :
19689 $as_echo_n "(cached) " >&6
19690 else
19691 ac_func_search_save_LIBS=$LIBS
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19694
19695 /* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19698 #ifdef __cplusplus
19699 extern "C"
19700 #endif
19701 char cap_set_proc ();
19702 int
19703 main ()
19704 {
19705 return cap_set_proc ();
19706 ;
19707 return 0;
19708 }
19709 _ACEOF
19710 for ac_lib in '' cap; do
19711 if test -z "$ac_lib"; then
19712 ac_res="none required"
19713 else
19714 ac_res=-l$ac_lib
19715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19716 fi
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 ac_cv_search_cap_set_proc=$ac_res
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext
19722 if ${ac_cv_search_cap_set_proc+:} false; then :
19723 break
19724 fi
19725 done
19726 if ${ac_cv_search_cap_set_proc+:} false; then :
19727
19728 else
19729 ac_cv_search_cap_set_proc=no
19730 fi
19731 rm conftest.$ac_ext
19732 LIBS=$ac_func_search_save_LIBS
19733 fi
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
19735 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
19736 ac_res=$ac_cv_search_cap_set_proc
19737 if test "$ac_res" != no; then :
19738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19739 LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
19740 else
19741 as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
19742 fi
19743
19744
19745 CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
19746
19747
19748 CFLAGS=$CFLAGS_cap_ax_save_flags
19749
19750
19751 CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
19752
19753
19754 CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
19755
19756
19757 ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
19758
19759
19760 FCFLAGS=$FCFLAGS_cap_ax_save_flags
19761
19762
19763 FCLIBS=$FCLIBS_cap_ax_save_flags
19764
19765
19766 FFLAGS=$FFLAGS_cap_ax_save_flags
19767
19768
19769 FLIBS=$FLIBS_cap_ax_save_flags
19770
19771
19772 GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
19773
19774
19775 JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
19776
19777
19778 LDFLAGS=$LDFLAGS_cap_ax_save_flags
19779
19780
19781 LIBS=$LIBS_cap_ax_save_flags
19782
19783
19784 OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
19785
19786
19787 OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
19788
19789
19790 UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
19791
19792
19793 VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
19794
19795
19796
19797 else
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19799 $as_echo "no" >&6; }
19800 fi
19801
19802
19803 for ac_header in sys/un.h
19804 do :
19805 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
19806 if test "x$ac_cv_header_sys_un_h" = xyes; then :
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_SYS_UN_H 1
19809 _ACEOF
19810 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
19811
19812 else
19813 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
19814
19815 fi
19816
19817 done
19818
19819
19820
19821 case "$host" in
19822 *-solaris*)
19823
19824 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
19825
19826 ;;
19827 esac
19828
19829 #
19830 # Time Zone Stuff
19831 #
19832 for ac_func in tzset
19833 do :
19834 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
19835 if test "x$ac_cv_func_tzset" = xyes; then :
19836 cat >>confdefs.h <<_ACEOF
19837 #define HAVE_TZSET 1
19838 _ACEOF
19839
19840 fi
19841 done
19842
19843
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
19845 $as_echo_n "checking for optarg declaration... " >&6; }
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19848
19849 #include <unistd.h>
19850
19851 int
19852 main ()
19853 {
19854 optarg = 0;
19855 ;
19856 return 0;
19857 }
19858 _ACEOF
19859 if ac_fn_c_try_compile "$LINENO"; then :
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19861 $as_echo "yes" >&6; }
19862 else
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19864 $as_echo "no" >&6; }
19865 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
19866
19867 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
19868
19869 fi
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871
19872 #
19873 # Check for nanoseconds in file stats
19874 #
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
19876 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879 #include <sys/fcntl.h>
19880 int
19881 main ()
19882 {
19883 struct stat s;
19884 return(s.st_mtim.tv_nsec);
19885
19886 ;
19887 return 0;
19888 }
19889 _ACEOF
19890 if ac_fn_c_try_compile "$LINENO"; then :
19891
19892 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
19893
19894 fi
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896
19897 #
19898 # Check for if_nametoindex() for IPv6 scoped addresses support
19899 #
19900 for ac_func in if_nametoindex
19901 do :
19902 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
19903 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_IF_NAMETOINDEX 1
19906 _ACEOF
19907
19908 fi
19909 done
19910
19911
19912 for ac_func in nanosleep usleep explicit_bzero
19913 do :
19914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19916 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19917 cat >>confdefs.h <<_ACEOF
19918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19919 _ACEOF
19920
19921 fi
19922 done
19923
19924
19925 ISC_ATOMIC_LIBS=""
19926 for ac_header in stdatomic.h
19927 do :
19928 ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
19929 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
19930 cat >>confdefs.h <<_ACEOF
19931 #define HAVE_STDATOMIC_H 1
19932 _ACEOF
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
19934 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19937 #include <stdatomic.h>
19938 int
19939 main ()
19940 {
19941 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
19942
19943 ;
19944 return 0;
19945 }
19946 _ACEOF
19947 if ac_fn_c_try_compile "$LINENO"; then :
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
19949 $as_echo "stdatomic.h" >&6; }
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
19951 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h. */
19954 #include <stdatomic.h>
19955 int
19956 main ()
19957 {
19958 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
19959
19960 ;
19961 return 0;
19962 }
19963 _ACEOF
19964 if ac_fn_c_try_link "$LINENO"; then :
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19966 $as_echo "no" >&6; }
19967 else
19968 ISC_ATOMIC_LIBS="-latomic"
19969
19970
19971 CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
19972
19973
19974
19975 CFLAGS_atomic_ax_save_flags=$CFLAGS
19976
19977
19978
19979 CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
19980
19981
19982
19983 CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
19984
19985
19986
19987 ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
19988
19989
19990
19991 FCFLAGS_atomic_ax_save_flags=$FCFLAGS
19992
19993
19994
19995 FCLIBS_atomic_ax_save_flags=$FCLIBS
19996
19997
19998
19999 FFLAGS_atomic_ax_save_flags=$FFLAGS
20000
20001
20002
20003 FLIBS_atomic_ax_save_flags=$FLIBS
20004
20005
20006
20007 GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
20008
20009
20010
20011 JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
20012
20013
20014
20015 LDFLAGS_atomic_ax_save_flags=$LDFLAGS
20016
20017
20018
20019 LIBS_atomic_ax_save_flags=$LIBS
20020
20021
20022
20023 OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
20024
20025
20026
20027 OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
20028
20029
20030
20031 UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
20032
20033
20034
20035 VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
20036
20037
20038
20039 LIBS="$LIBS $ISC_ATOMIC_LIBS"
20040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20042 #include <stdatomic.h>
20043 int
20044 main ()
20045 {
20046 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
20047
20048 ;
20049 return 0;
20050 }
20051 _ACEOF
20052 if ac_fn_c_try_link "$LINENO"; then :
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20054 $as_echo "yes" >&6; }
20055 else
20056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20058 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
20059 See \`config.log' for more details" "$LINENO" 5; }
20060 fi
20061 rm -f core conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext conftest.$ac_ext
20063
20064 CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
20065
20066
20067 CFLAGS=$CFLAGS_atomic_ax_save_flags
20068
20069
20070 CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
20071
20072
20073 CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
20074
20075
20076 ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
20077
20078
20079 FCFLAGS=$FCFLAGS_atomic_ax_save_flags
20080
20081
20082 FCLIBS=$FCLIBS_atomic_ax_save_flags
20083
20084
20085 FFLAGS=$FFLAGS_atomic_ax_save_flags
20086
20087
20088 FLIBS=$FLIBS_atomic_ax_save_flags
20089
20090
20091 GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
20092
20093
20094 JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
20095
20096
20097 LDFLAGS=$LDFLAGS_atomic_ax_save_flags
20098
20099
20100 LIBS=$LIBS_atomic_ax_save_flags
20101
20102
20103 OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
20104
20105
20106 OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
20107
20108
20109 UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
20110
20111
20112 VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
20113
20114
20115
20116
20117 fi
20118 rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120
20121 else
20122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20124 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
20125 See \`config.log' for more details" "$LINENO" 5; }
20126
20127 fi
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 else
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
20131 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133 /* end confdefs.h. */
20134 #include <inttypes.h>
20135 int
20136 main ()
20137 {
20138 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
20139
20140 ;
20141 return 0;
20142 }
20143 _ACEOF
20144 if ac_fn_c_try_compile "$LINENO"; then :
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
20146 $as_echo "__atomic builtins" >&6; }
20147
20148 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
20149
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
20151 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153 /* end confdefs.h. */
20154 #include <inttypes.h>
20155 int
20156 main ()
20157 {
20158 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
20159
20160 ;
20161 return 0;
20162 }
20163 _ACEOF
20164 if ac_fn_c_try_link "$LINENO"; then :
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20166 $as_echo "no" >&6; }
20167 else
20168 ISC_ATOMIC_LIBS="-latomic"
20169
20170
20171 CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
20172
20173
20174
20175 CFLAGS_atomic_ax_save_flags=$CFLAGS
20176
20177
20178
20179 CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
20180
20181
20182
20183 CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
20184
20185
20186
20187 ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
20188
20189
20190
20191 FCFLAGS_atomic_ax_save_flags=$FCFLAGS
20192
20193
20194
20195 FCLIBS_atomic_ax_save_flags=$FCLIBS
20196
20197
20198
20199 FFLAGS_atomic_ax_save_flags=$FFLAGS
20200
20201
20202
20203 FLIBS_atomic_ax_save_flags=$FLIBS
20204
20205
20206
20207 GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
20208
20209
20210
20211 JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
20212
20213
20214
20215 LDFLAGS_atomic_ax_save_flags=$LDFLAGS
20216
20217
20218
20219 LIBS_atomic_ax_save_flags=$LIBS
20220
20221
20222
20223 OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
20224
20225
20226
20227 OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
20228
20229
20230
20231 UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
20232
20233
20234
20235 VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
20236
20237
20238
20239 LIBS="$LIBS $ISC_ATOMIC_LIBS"
20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h. */
20242 #include <inttypes.h>
20243 int
20244 main ()
20245 {
20246 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
20247
20248 ;
20249 return 0;
20250 }
20251 _ACEOF
20252 if ac_fn_c_try_link "$LINENO"; then :
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20254 $as_echo "yes" >&6; }
20255 else
20256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20258 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
20259 See \`config.log' for more details" "$LINENO" 5; }
20260 fi
20261 rm -f core conftest.err conftest.$ac_objext \
20262 conftest$ac_exeext conftest.$ac_ext
20263
20264 CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
20265
20266
20267 CFLAGS=$CFLAGS_atomic_ax_save_flags
20268
20269
20270 CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
20271
20272
20273 CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
20274
20275
20276 ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
20277
20278
20279 FCFLAGS=$FCFLAGS_atomic_ax_save_flags
20280
20281
20282 FCLIBS=$FCLIBS_atomic_ax_save_flags
20283
20284
20285 FFLAGS=$FFLAGS_atomic_ax_save_flags
20286
20287
20288 FLIBS=$FLIBS_atomic_ax_save_flags
20289
20290
20291 GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
20292
20293
20294 JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
20295
20296
20297 LDFLAGS=$LDFLAGS_atomic_ax_save_flags
20298
20299
20300 LIBS=$LIBS_atomic_ax_save_flags
20301
20302
20303 OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
20304
20305
20306 OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
20307
20308
20309 UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
20310
20311
20312 VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
20313
20314
20315
20316
20317 fi
20318 rm -f core conftest.err conftest.$ac_objext \
20319 conftest$ac_exeext conftest.$ac_ext
20320
20321 else
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
20323 $as_echo "__sync builtins" >&6; }
20324
20325 fi
20326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327
20328 fi
20329
20330 done
20331
20332 LIBS="$LIBS $ISC_ATOMIC_LIBS"
20333
20334 for ac_header in stdalign.h
20335 do :
20336 ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
20337 if test "x$ac_cv_header_stdalign_h" = xyes; then :
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_STDALIGN_H 1
20340 _ACEOF
20341
20342 fi
20343
20344 done
20345
20346
20347 for ac_header in uchar.h
20348 do :
20349 ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
20350 if test "x$ac_cv_header_uchar_h" = xyes; then :
20351 cat >>confdefs.h <<_ACEOF
20352 #define HAVE_UCHAR_H 1
20353 _ACEOF
20354
20355 fi
20356
20357 done
20358
20359
20360 #
20361 # Check for __builtin_unreachable
20362 #
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
20364 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
20365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366 /* end confdefs.h. */
20367
20368 int
20369 main ()
20370 {
20371 __builtin_unreachable();
20372
20373 ;
20374 return 0;
20375 }
20376 _ACEOF
20377 if ac_fn_c_try_link "$LINENO"; then :
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20380
20381 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
20382
20383
20384 else
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386 $as_echo "no" >&6; }
20387
20388 fi
20389 rm -f core conftest.err conftest.$ac_objext \
20390 conftest$ac_exeext conftest.$ac_ext
20391
20392 #
20393 # Check for __builtin_expect
20394 #
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
20396 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20399
20400 int
20401 main ()
20402 {
20403
20404 return (__builtin_expect(1, 1) ? 1 : 0);
20405
20406 ;
20407 return 0;
20408 }
20409 _ACEOF
20410 if ac_fn_c_try_link "$LINENO"; then :
20411
20412 have_builtin_expect=yes
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20414 $as_echo "yes" >&6; }
20415
20416 else
20417
20418 have_builtin_expect=no
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20420 $as_echo "no" >&6; }
20421
20422 fi
20423 rm -f core conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425 if test "yes" = "$have_builtin_expect"; then
20426
20427 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
20428
20429 fi
20430
20431 #
20432 # Check for __builtin_clz
20433 #
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
20435 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20438
20439 int
20440 main ()
20441 {
20442
20443 return (__builtin_clz(0xff) == 24 ? 1 : 0);
20444
20445 ;
20446 return 0;
20447 }
20448 _ACEOF
20449 if ac_fn_c_try_link "$LINENO"; then :
20450
20451 have_builtin_clz=yes
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20453 $as_echo "yes" >&6; }
20454
20455 else
20456
20457 have_builtin_clz=no
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20459 $as_echo "no" >&6; }
20460
20461 fi
20462 rm -f core conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
20464 if test "yes" = "$have_builtin_clz"; then
20465
20466 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
20467
20468 fi
20469
20470 #
20471 # Activate "rrset-order fixed" or not?
20472 #
20473 # [pairwise: --enable-fixed-rrset, --disable-fixed-rrset]
20474 # Check whether --enable-fixed-rrset was given.
20475 if test "${enable_fixed_rrset+set}" = set; then :
20476 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
20477 else
20478 enable_fixed="no"
20479 fi
20480
20481 case "$enable_fixed" in
20482 yes)
20483
20484 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
20485
20486 ;;
20487 no)
20488 ;;
20489 *)
20490 ;;
20491 esac
20492
20493 #
20494 # Activate dnstap?
20495 #
20496 # [pairwise: --enable-dnstap, --disable-dnstap]
20497 # Check whether --enable-dnstap was given.
20498 if test "${enable_dnstap+set}" = set; then :
20499 enableval=$enable_dnstap; use_dnstap=$enableval
20500 else
20501 use_dnstap=no
20502 fi
20503
20504
20505 DNSTAP=
20506 DNSTAPSRCS=
20507 DNSTAPOBJS=
20508 DNSTAPTARGETS=
20509 if test "x$use_dnstap" != "xno"; then
20510
20511 # [pairwise: skip]
20512
20513 # Check whether --with-protobuf-c was given.
20514 if test "${with_protobuf_c+set}" = set; then :
20515 withval=$with_protobuf_c;
20516 # workaround for protobuf-c includes at old dir
20517 # before protobuf-c-1.0.0
20518 if test -f $withval/include/google/protobuf-c/protobuf-c.h
20519 then
20520 PROTOBUF_C_CFLAGS="-I$withval/include/google"
20521 else
20522 PROTOBUF_C_CFLAGS="-I$withval/include"
20523 fi
20524 PROTOBUF_C_LIBS="-L$withval/lib"
20525 # Extract the first word of "protoc-c", so it can be a program name with args.
20526 set dummy protoc-c; ac_word=$2
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20528 $as_echo_n "checking for $ac_word... " >&6; }
20529 if ${ac_cv_path_PROTOC_C+:} false; then :
20530 $as_echo_n "(cached) " >&6
20531 else
20532 case $PROTOC_C in
20533 [\\/]* | ?:[\\/]*)
20534 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20535 ;;
20536 *)
20537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20538 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
20539 do
20540 IFS=$as_save_IFS
20541 test -z "$as_dir" && as_dir=.
20542 for ac_exec_ext in '' $ac_executable_extensions; do
20543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20544 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20546 break 2
20547 fi
20548 done
20549 done
20550 IFS=$as_save_IFS
20551
20552 ;;
20553 esac
20554 fi
20555 PROTOC_C=$ac_cv_path_PROTOC_C
20556 if test -n "$PROTOC_C"; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20558 $as_echo "$PROTOC_C" >&6; }
20559 else
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561 $as_echo "no" >&6; }
20562 fi
20563
20564
20565
20566 else
20567
20568 # workaround for protobuf-c includes at old dir
20569 # before protobuf-c-1.0.0
20570 if test -f /usr/include/google/protobuf-c/protobuf-c.h
20571 then
20572 PROTOBUF_C_CFLAGS="-I/usr/include/google"
20573 else
20574 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
20575 then
20576 PROTOBUF_C_CFLAGS="-I/usr/local/include/google"
20577 PROTOBUF_C_LIBS="-L/usr/local/lib"
20578 elif test -f /opt/local/include/google/protobuf-c/protobuf-c.h
20579 then
20580 PROTOBUF_C_CFLAGS="-I/opt/local/include/google"
20581 PROTOBUF_C_LIBS="-L/opt/local/lib"
20582 fi
20583 fi
20584 # Extract the first word of "protoc-c", so it can be a program name with args.
20585 set dummy protoc-c; ac_word=$2
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20587 $as_echo_n "checking for $ac_word... " >&6; }
20588 if ${ac_cv_path_PROTOC_C+:} false; then :
20589 $as_echo_n "(cached) " >&6
20590 else
20591 case $PROTOC_C in
20592 [\\/]* | ?:[\\/]*)
20593 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20594 ;;
20595 *)
20596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20597 for as_dir in $PATH
20598 do
20599 IFS=$as_save_IFS
20600 test -z "$as_dir" && as_dir=.
20601 for ac_exec_ext in '' $ac_executable_extensions; do
20602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20603 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20605 break 2
20606 fi
20607 done
20608 done
20609 IFS=$as_save_IFS
20610
20611 ;;
20612 esac
20613 fi
20614 PROTOC_C=$ac_cv_path_PROTOC_C
20615 if test -n "$PROTOC_C"; then
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20617 $as_echo "$PROTOC_C" >&6; }
20618 else
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20620 $as_echo "no" >&6; }
20621 fi
20622
20623
20624
20625 fi
20626
20627 if test -z "$PROTOC_C"; then
20628 as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
20629 fi
20630
20631 # [pairwise: skip]
20632
20633 # Check whether --with-libfstrm was given.
20634 if test "${with_libfstrm+set}" = set; then :
20635 withval=$with_libfstrm;
20636 FSTRM_CFLAGS="-I$withval/include"
20637 FSTRM_LIBS="-L$withval/lib"
20638 # Extract the first word of "fstrm_capture", so it can be a program name with args.
20639 set dummy fstrm_capture; ac_word=$2
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20641 $as_echo_n "checking for $ac_word... " >&6; }
20642 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
20643 $as_echo_n "(cached) " >&6
20644 else
20645 case $FSTRM_CAPTURE in
20646 [\\/]* | ?:[\\/]*)
20647 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
20648 ;;
20649 *)
20650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20651 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
20652 do
20653 IFS=$as_save_IFS
20654 test -z "$as_dir" && as_dir=.
20655 for ac_exec_ext in '' $ac_executable_extensions; do
20656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20657 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
20658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20659 break 2
20660 fi
20661 done
20662 done
20663 IFS=$as_save_IFS
20664
20665 ;;
20666 esac
20667 fi
20668 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
20669 if test -n "$FSTRM_CAPTURE"; then
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
20671 $as_echo "$FSTRM_CAPTURE" >&6; }
20672 else
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20674 $as_echo "no" >&6; }
20675 fi
20676
20677
20678
20679 else
20680
20681 for d in /usr /usr/local /opt/local
20682 do
20683 if test -f "${d}/include/fstrm.h"
20684 then
20685 if test ${d} != /usr
20686 then
20687 FSTRM_CFLAGS="-I${d}/include"
20688 FSTRM_LIBS="-L${d}/lib"
20689 fi
20690 have_fstrm="$d"
20691 break
20692 fi
20693 done
20694 if test -z "$have_fstrm"; then
20695 # Extract the first word of "fstrm_capture", so it can be a program name with args.
20696 set dummy fstrm_capture; ac_word=$2
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20698 $as_echo_n "checking for $ac_word... " >&6; }
20699 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
20700 $as_echo_n "(cached) " >&6
20701 else
20702 case $FSTRM_CAPTURE in
20703 [\\/]* | ?:[\\/]*)
20704 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
20705 ;;
20706 *)
20707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20708 for as_dir in $PATH
20709 do
20710 IFS=$as_save_IFS
20711 test -z "$as_dir" && as_dir=.
20712 for ac_exec_ext in '' $ac_executable_extensions; do
20713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20714 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
20715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20716 break 2
20717 fi
20718 done
20719 done
20720 IFS=$as_save_IFS
20721
20722 ;;
20723 esac
20724 fi
20725 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
20726 if test -n "$FSTRM_CAPTURE"; then
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
20728 $as_echo "$FSTRM_CAPTURE" >&6; }
20729 else
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20731 $as_echo "no" >&6; }
20732 fi
20733
20734
20735 else
20736 # Extract the first word of "fstrm_capture", so it can be a program name with args.
20737 set dummy fstrm_capture; ac_word=$2
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
20741 $as_echo_n "(cached) " >&6
20742 else
20743 case $FSTRM_CAPTURE in
20744 [\\/]* | ?:[\\/]*)
20745 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
20746 ;;
20747 *)
20748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $PATH$PATH_SEPARATOR$have_fstrm/bin
20750 do
20751 IFS=$as_save_IFS
20752 test -z "$as_dir" && as_dir=.
20753 for ac_exec_ext in '' $ac_executable_extensions; do
20754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20755 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
20756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20757 break 2
20758 fi
20759 done
20760 done
20761 IFS=$as_save_IFS
20762
20763 ;;
20764 esac
20765 fi
20766 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
20767 if test -n "$FSTRM_CAPTURE"; then
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
20769 $as_echo "$FSTRM_CAPTURE" >&6; }
20770 else
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773 fi
20774
20775
20776 fi
20777
20778 fi
20779
20780
20781
20782 CCASFLAGS_dnstap_ax_save_flags=$CCASFLAGS
20783
20784
20785
20786 CFLAGS_dnstap_ax_save_flags=$CFLAGS
20787
20788
20789
20790 CPPFLAGS_dnstap_ax_save_flags=$CPPFLAGS
20791
20792
20793
20794 CXXFLAGS_dnstap_ax_save_flags=$CXXFLAGS
20795
20796
20797
20798 ERLCFLAGS_dnstap_ax_save_flags=$ERLCFLAGS
20799
20800
20801
20802 FCFLAGS_dnstap_ax_save_flags=$FCFLAGS
20803
20804
20805
20806 FCLIBS_dnstap_ax_save_flags=$FCLIBS
20807
20808
20809
20810 FFLAGS_dnstap_ax_save_flags=$FFLAGS
20811
20812
20813
20814 FLIBS_dnstap_ax_save_flags=$FLIBS
20815
20816
20817
20818 GCJFLAGS_dnstap_ax_save_flags=$GCJFLAGS
20819
20820
20821
20822 JAVACFLAGS_dnstap_ax_save_flags=$JAVACFLAGS
20823
20824
20825
20826 LDFLAGS_dnstap_ax_save_flags=$LDFLAGS
20827
20828
20829
20830 LIBS_dnstap_ax_save_flags=$LIBS
20831
20832
20833
20834 OBJCFLAGS_dnstap_ax_save_flags=$OBJCFLAGS
20835
20836
20837
20838 OBJCXXFLAGS_dnstap_ax_save_flags=$OBJCXXFLAGS
20839
20840
20841
20842 UPCFLAGS_dnstap_ax_save_flags=$UPCFLAGS
20843
20844
20845
20846 VALAFLAGS_dnstap_ax_save_flags=$VALAFLAGS
20847
20848
20849
20850 CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS $FSTRM_CFLAGS"
20851 LIBS="$LDFLAGS $PROTOBUF_C_LIBS $FSTRM_LIBS"
20852
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20854 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20855 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20856 $as_echo_n "(cached) " >&6
20857 else
20858 ac_func_search_save_LIBS=$LIBS
20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h. */
20861
20862 /* Override any GCC internal prototype to avoid an error.
20863 Use char because int might match the return type of a GCC
20864 builtin and then its argument prototype would still apply. */
20865 #ifdef __cplusplus
20866 extern "C"
20867 #endif
20868 char fstrm_iothr_init ();
20869 int
20870 main ()
20871 {
20872 return fstrm_iothr_init ();
20873 ;
20874 return 0;
20875 }
20876 _ACEOF
20877 for ac_lib in '' fstrm; do
20878 if test -z "$ac_lib"; then
20879 ac_res="none required"
20880 else
20881 ac_res=-l$ac_lib
20882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20883 fi
20884 if ac_fn_c_try_link "$LINENO"; then :
20885 ac_cv_search_fstrm_iothr_init=$ac_res
20886 fi
20887 rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext
20889 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20890 break
20891 fi
20892 done
20893 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20894
20895 else
20896 ac_cv_search_fstrm_iothr_init=no
20897 fi
20898 rm conftest.$ac_ext
20899 LIBS=$ac_func_search_save_LIBS
20900 fi
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20902 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20903 ac_res=$ac_cv_search_fstrm_iothr_init
20904 if test "$ac_res" != no; then :
20905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20906
20907 else
20908 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20909 fi
20910
20911 FSTRM_LIBS="$FSTRM_LIBS $ac_cv_search_fstrm_iothr_init"
20912
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20914 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20915 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20916 $as_echo_n "(cached) " >&6
20917 else
20918 ac_func_search_save_LIBS=$LIBS
20919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20921
20922 /* Override any GCC internal prototype to avoid an error.
20923 Use char because int might match the return type of a GCC
20924 builtin and then its argument prototype would still apply. */
20925 #ifdef __cplusplus
20926 extern "C"
20927 #endif
20928 char protobuf_c_message_pack ();
20929 int
20930 main ()
20931 {
20932 return protobuf_c_message_pack ();
20933 ;
20934 return 0;
20935 }
20936 _ACEOF
20937 for ac_lib in '' protobuf-c; do
20938 if test -z "$ac_lib"; then
20939 ac_res="none required"
20940 else
20941 ac_res=-l$ac_lib
20942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20943 fi
20944 if ac_fn_c_try_link "$LINENO"; then :
20945 ac_cv_search_protobuf_c_message_pack=$ac_res
20946 fi
20947 rm -f core conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext
20949 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20950 break
20951 fi
20952 done
20953 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20954
20955 else
20956 ac_cv_search_protobuf_c_message_pack=no
20957 fi
20958 rm conftest.$ac_ext
20959 LIBS=$ac_func_search_save_LIBS
20960 fi
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20962 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20963 ac_res=$ac_cv_search_protobuf_c_message_pack
20964 if test "$ac_res" != no; then :
20965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20966
20967 else
20968 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20969 fi
20970
20971 PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS $ac_cv_search_protobuf_c_message_pack"
20972
20973
20974 CCASFLAGS=$CCASFLAGS_dnstap_ax_save_flags
20975
20976
20977 CFLAGS=$CFLAGS_dnstap_ax_save_flags
20978
20979
20980 CPPFLAGS=$CPPFLAGS_dnstap_ax_save_flags
20981
20982
20983 CXXFLAGS=$CXXFLAGS_dnstap_ax_save_flags
20984
20985
20986 ERLCFLAGS=$ERLCFLAGS_dnstap_ax_save_flags
20987
20988
20989 FCFLAGS=$FCFLAGS_dnstap_ax_save_flags
20990
20991
20992 FCLIBS=$FCLIBS_dnstap_ax_save_flags
20993
20994
20995 FFLAGS=$FFLAGS_dnstap_ax_save_flags
20996
20997
20998 FLIBS=$FLIBS_dnstap_ax_save_flags
20999
21000
21001 GCJFLAGS=$GCJFLAGS_dnstap_ax_save_flags
21002
21003
21004 JAVACFLAGS=$JAVACFLAGS_dnstap_ax_save_flags
21005
21006
21007 LDFLAGS=$LDFLAGS_dnstap_ax_save_flags
21008
21009
21010 LIBS=$LIBS_dnstap_ax_save_flags
21011
21012
21013 OBJCFLAGS=$OBJCFLAGS_dnstap_ax_save_flags
21014
21015
21016 OBJCXXFLAGS=$OBJCXXFLAGS_dnstap_ax_save_flags
21017
21018
21019 UPCFLAGS=$UPCFLAGS_dnstap_ax_save_flags
21020
21021
21022 VALAFLAGS=$VALAFLAGS_dnstap_ax_save_flags
21023
21024
21025
21026
21027 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
21028
21029 DNSTAP=dnstap
21030 DNSTAPSRCS='${DNSTAPSRCS}'
21031 DNSTAPOBJS='${DNSTAPOBJS}'
21032 DNSTAPTARGETS='${DNSTAPTARGETS}'
21033 DNSTAP_MANS='${dnstap_man1_MANS}'
21034 fi
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045 #
21046 # The following sets up how non-blocking i/o is established.
21047 # cygwin and solaris 2.x (x<5) require special handling.
21048 #
21049 case "$host" in
21050 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
21051 ;;
21052 *-solaris2.[01234])
21053 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
21054
21055
21056 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
21057
21058 ;;
21059 *)
21060 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
21061
21062 ;;
21063 esac
21064 #
21065 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
21066 # This prevents the source address being set.
21067 #
21068 case "$host" in
21069 *-solaris2.[012345]|*-solaris2.5.1)
21070
21071 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
21072
21073 ;;
21074 esac
21075 #
21076 # The following sections deal with tools used for formatting
21077 # the documentation. They are all optional, unless you are
21078 # a developer editing the documentation source.
21079 #
21080
21081 #
21082 # The following sections deal with tools used for formatting
21083 # the documentation. They are all optional, unless you are
21084 # a developer editing the documentation source.
21085 #
21086
21087 #
21088 # Look for sphinx-build
21089 #
21090
21091 # Extract the first word of "sphinx-build", so it can be a program name with args.
21092 set dummy sphinx-build; ac_word=$2
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21094 $as_echo_n "checking for $ac_word... " >&6; }
21095 if ${ac_cv_path_SPHINX_BUILD+:} false; then :
21096 $as_echo_n "(cached) " >&6
21097 else
21098 case $SPHINX_BUILD in
21099 [\\/]* | ?:[\\/]*)
21100 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
21101 ;;
21102 *)
21103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21104 for as_dir in $PATH
21105 do
21106 IFS=$as_save_IFS
21107 test -z "$as_dir" && as_dir=.
21108 for ac_exec_ext in '' $ac_executable_extensions; do
21109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21110 ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
21111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21112 break 2
21113 fi
21114 done
21115 done
21116 IFS=$as_save_IFS
21117
21118 test -z "$ac_cv_path_SPHINX_BUILD" && ac_cv_path_SPHINX_BUILD=":"
21119 ;;
21120 esac
21121 fi
21122 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
21123 if test -n "$SPHINX_BUILD"; then
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
21125 $as_echo "$SPHINX_BUILD" >&6; }
21126 else
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128 $as_echo "no" >&6; }
21129 fi
21130
21131
21132 if test "$SPHINX_BUILD" != ":"; then
21133 HAVE_SPHINX_BUILD_TRUE=
21134 HAVE_SPHINX_BUILD_FALSE='#'
21135 else
21136 HAVE_SPHINX_BUILD_TRUE='#'
21137 HAVE_SPHINX_BUILD_FALSE=
21138 fi
21139
21140
21141 # Extract the first word of "xelatex", so it can be a program name with args.
21142 set dummy xelatex; ac_word=$2
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21144 $as_echo_n "checking for $ac_word... " >&6; }
21145 if ${ac_cv_path_XELATEX+:} false; then :
21146 $as_echo_n "(cached) " >&6
21147 else
21148 case $XELATEX in
21149 [\\/]* | ?:[\\/]*)
21150 ac_cv_path_XELATEX="$XELATEX" # Let the user override the test with a path.
21151 ;;
21152 *)
21153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21154 for as_dir in $PATH
21155 do
21156 IFS=$as_save_IFS
21157 test -z "$as_dir" && as_dir=.
21158 for ac_exec_ext in '' $ac_executable_extensions; do
21159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21160 ac_cv_path_XELATEX="$as_dir/$ac_word$ac_exec_ext"
21161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21162 break 2
21163 fi
21164 done
21165 done
21166 IFS=$as_save_IFS
21167
21168 test -z "$ac_cv_path_XELATEX" && ac_cv_path_XELATEX=":"
21169 ;;
21170 esac
21171 fi
21172 XELATEX=$ac_cv_path_XELATEX
21173 if test -n "$XELATEX"; then
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XELATEX" >&5
21175 $as_echo "$XELATEX" >&6; }
21176 else
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21178 $as_echo "no" >&6; }
21179 fi
21180
21181
21182 # Extract the first word of "latexmk", so it can be a program name with args.
21183 set dummy latexmk; ac_word=$2
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21185 $as_echo_n "checking for $ac_word... " >&6; }
21186 if ${ac_cv_path_LATEXMK+:} false; then :
21187 $as_echo_n "(cached) " >&6
21188 else
21189 case $LATEXMK in
21190 [\\/]* | ?:[\\/]*)
21191 ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
21192 ;;
21193 *)
21194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21196 do
21197 IFS=$as_save_IFS
21198 test -z "$as_dir" && as_dir=.
21199 for ac_exec_ext in '' $ac_executable_extensions; do
21200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21201 ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
21202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21203 break 2
21204 fi
21205 done
21206 done
21207 IFS=$as_save_IFS
21208
21209 test -z "$ac_cv_path_LATEXMK" && ac_cv_path_LATEXMK=":"
21210 ;;
21211 esac
21212 fi
21213 LATEXMK=$ac_cv_path_LATEXMK
21214 if test -n "$LATEXMK"; then
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
21216 $as_echo "$LATEXMK" >&6; }
21217 else
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21219 $as_echo "no" >&6; }
21220 fi
21221
21222
21223 if test "$XELATEX" != ":" && test "$LATEXMK" != ":"; then
21224 HAVE_XELATEX_TRUE=
21225 HAVE_XELATEX_FALSE='#'
21226 else
21227 HAVE_XELATEX_TRUE='#'
21228 HAVE_XELATEX_FALSE=
21229 fi
21230
21231
21232 #
21233 # Pull release date from CHANGES file last modification date
21234 # for reproducible builds
21235 #
21236 release_date=`date -r CHANGES +%Y-%m-%d`
21237 RELEASE_DATE=$release_date
21238
21239
21240 # Don't build the documentation if the sphinx-build is not present
21241 PDFTARGET=
21242 HTMLTARGET=
21243 MANSRCS=
21244 if test -n "$SPHINX_BUILD"; then :
21245
21246 MANSRCS='$(MANPAGES_IN)'
21247 HTMLTARGET='html dirhtml'
21248 for ac_prog in pdflatex
21249 do
21250 # Extract the first word of "$ac_prog", so it can be a program name with args.
21251 set dummy $ac_prog; ac_word=$2
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21253 $as_echo_n "checking for $ac_word... " >&6; }
21254 if ${ac_cv_path_PDFLATEX+:} false; then :
21255 $as_echo_n "(cached) " >&6
21256 else
21257 case $PDFLATEX in
21258 [\\/]* | ?:[\\/]*)
21259 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
21260 ;;
21261 *)
21262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21263 for as_dir in $PATH
21264 do
21265 IFS=$as_save_IFS
21266 test -z "$as_dir" && as_dir=.
21267 for ac_exec_ext in '' $ac_executable_extensions; do
21268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21269 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
21270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21271 break 2
21272 fi
21273 done
21274 done
21275 IFS=$as_save_IFS
21276
21277 ;;
21278 esac
21279 fi
21280 PDFLATEX=$ac_cv_path_PDFLATEX
21281 if test -n "$PDFLATEX"; then
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
21283 $as_echo "$PDFLATEX" >&6; }
21284 else
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286 $as_echo "no" >&6; }
21287 fi
21288
21289
21290 test -n "$PDFLATEX" && break
21291 done
21292
21293 for ac_prog in latexmk
21294 do
21295 # Extract the first word of "$ac_prog", so it can be a program name with args.
21296 set dummy $ac_prog; ac_word=$2
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21298 $as_echo_n "checking for $ac_word... " >&6; }
21299 if ${ac_cv_path_LATEXMK+:} false; then :
21300 $as_echo_n "(cached) " >&6
21301 else
21302 case $LATEXMK in
21303 [\\/]* | ?:[\\/]*)
21304 ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
21305 ;;
21306 *)
21307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21308 for as_dir in $PATH
21309 do
21310 IFS=$as_save_IFS
21311 test -z "$as_dir" && as_dir=.
21312 for ac_exec_ext in '' $ac_executable_extensions; do
21313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21314 ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
21315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21316 break 2
21317 fi
21318 done
21319 done
21320 IFS=$as_save_IFS
21321
21322 ;;
21323 esac
21324 fi
21325 LATEXMK=$ac_cv_path_LATEXMK
21326 if test -n "$LATEXMK"; then
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
21328 $as_echo "$LATEXMK" >&6; }
21329 else
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21331 $as_echo "no" >&6; }
21332 fi
21333
21334
21335 test -n "$LATEXMK" && break
21336 done
21337
21338 if test -n "$PDFLATEX" && test -n "$LATEXMK"; then :
21339
21340 PDFTARGET='pdf'
21341
21342 fi
21343
21344 fi
21345
21346
21347
21348
21349 #
21350 # Look for Doxygen
21351 #
21352 for ac_prog in doxygen
21353 do
21354 # Extract the first word of "$ac_prog", so it can be a program name with args.
21355 set dummy $ac_prog; ac_word=$2
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21357 $as_echo_n "checking for $ac_word... " >&6; }
21358 if ${ac_cv_path_DOXYGEN+:} false; then :
21359 $as_echo_n "(cached) " >&6
21360 else
21361 case $DOXYGEN in
21362 [\\/]* | ?:[\\/]*)
21363 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
21364 ;;
21365 *)
21366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21367 for as_dir in $PATH
21368 do
21369 IFS=$as_save_IFS
21370 test -z "$as_dir" && as_dir=.
21371 for ac_exec_ext in '' $ac_executable_extensions; do
21372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21373 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
21374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21375 break 2
21376 fi
21377 done
21378 done
21379 IFS=$as_save_IFS
21380
21381 ;;
21382 esac
21383 fi
21384 DOXYGEN=$ac_cv_path_DOXYGEN
21385 if test -n "$DOXYGEN"; then
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
21387 $as_echo "$DOXYGEN" >&6; }
21388 else
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 $as_echo "no" >&6; }
21391 fi
21392
21393
21394 test -n "$DOXYGEN" && break
21395 done
21396
21397
21398
21399 #
21400 # Look for curl
21401 #
21402
21403 # Extract the first word of "curl", so it can be a program name with args.
21404 set dummy curl; ac_word=$2
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21406 $as_echo_n "checking for $ac_word... " >&6; }
21407 if ${ac_cv_path_CURL+:} false; then :
21408 $as_echo_n "(cached) " >&6
21409 else
21410 case $CURL in
21411 [\\/]* | ?:[\\/]*)
21412 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
21413 ;;
21414 *)
21415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21416 for as_dir in $PATH
21417 do
21418 IFS=$as_save_IFS
21419 test -z "$as_dir" && as_dir=.
21420 for ac_exec_ext in '' $ac_executable_extensions; do
21421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21422 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
21423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21424 break 2
21425 fi
21426 done
21427 done
21428 IFS=$as_save_IFS
21429
21430 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
21431 ;;
21432 esac
21433 fi
21434 CURL=$ac_cv_path_CURL
21435 if test -n "$CURL"; then
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
21437 $as_echo "$CURL" >&6; }
21438 else
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440 $as_echo "no" >&6; }
21441 fi
21442
21443
21444
21445
21446 #
21447 # IDN support using libidn2
21448 #
21449
21450 LIBIDN2_CFLAGS=
21451 LIBIDN2_LDFLAGS=
21452 LIBIDN2_LIBS=
21453
21454 # [pairwise: --with-libidn2=yes, --without-libidn2]
21455
21456 # Check whether --with-libidn2 was given.
21457 if test "${with_libidn2+set}" = set; then :
21458 withval=$with_libidn2; with_libidn2="$withval"
21459 else
21460 with_libidn2="no"
21461 fi
21462
21463 case $with_libidn2 in #(
21464 yes) :
21465
21466 pkg_failed=no
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
21468 $as_echo_n "checking for libidn2... " >&6; }
21469
21470 if test -n "$LIBIDN2_CFLAGS"; then
21471 pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
21472 elif test -n "$PKG_CONFIG"; then
21473 if test -n "$PKG_CONFIG" && \
21474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
21475 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
21476 ac_status=$?
21477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21478 test $ac_status = 0; }; then
21479 pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
21480 test "x$?" != "x0" && pkg_failed=yes
21481 else
21482 pkg_failed=yes
21483 fi
21484 else
21485 pkg_failed=untried
21486 fi
21487 if test -n "$LIBIDN2_LIBS"; then
21488 pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
21489 elif test -n "$PKG_CONFIG"; then
21490 if test -n "$PKG_CONFIG" && \
21491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
21492 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
21493 ac_status=$?
21494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21495 test $ac_status = 0; }; then
21496 pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
21497 test "x$?" != "x0" && pkg_failed=yes
21498 else
21499 pkg_failed=yes
21500 fi
21501 else
21502 pkg_failed=untried
21503 fi
21504
21505
21506
21507 if test $pkg_failed = yes; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21509 $as_echo "no" >&6; }
21510
21511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21512 _pkg_short_errors_supported=yes
21513 else
21514 _pkg_short_errors_supported=no
21515 fi
21516 if test $_pkg_short_errors_supported = yes; then
21517 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
21518 else
21519 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
21520 fi
21521 # Put the nasty error message in config.log where it belongs
21522 echo "$LIBIDN2_PKG_ERRORS" >&5
21523
21524 as_fn_error $? "Package requirements (libidn2) were not met:
21525
21526 $LIBIDN2_PKG_ERRORS
21527
21528 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21529 installed software in a non-standard prefix.
21530
21531 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
21532 and LIBIDN2_LIBS to avoid the need to call pkg-config.
21533 See the pkg-config man page for more details." "$LINENO" 5
21534 elif test $pkg_failed = untried; then
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 $as_echo "no" >&6; }
21537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21539 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21540 is in your PATH or set the PKG_CONFIG environment variable to the full
21541 path to pkg-config.
21542
21543 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
21544 and LIBIDN2_LIBS to avoid the need to call pkg-config.
21545 See the pkg-config man page for more details.
21546
21547 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21548 See \`config.log' for more details" "$LINENO" 5; }
21549 else
21550 LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
21551 LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21553 $as_echo "yes" >&6; }
21554
21555 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
21556
21557 fi ;; #(
21558 no) :
21559 ;; #(
21560 *) :
21561
21562
21563 CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
21564
21565
21566
21567 CFLAGS_libidn2_ax_save_flags=$CFLAGS
21568
21569
21570
21571 CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
21572
21573
21574
21575 CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
21576
21577
21578
21579 ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
21580
21581
21582
21583 FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
21584
21585
21586
21587 FCLIBS_libidn2_ax_save_flags=$FCLIBS
21588
21589
21590
21591 FFLAGS_libidn2_ax_save_flags=$FFLAGS
21592
21593
21594
21595 FLIBS_libidn2_ax_save_flags=$FLIBS
21596
21597
21598
21599 GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
21600
21601
21602
21603 JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
21604
21605
21606
21607 LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
21608
21609
21610
21611 LIBS_libidn2_ax_save_flags=$LIBS
21612
21613
21614
21615 OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
21616
21617
21618
21619 OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
21620
21621
21622
21623 UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
21624
21625
21626
21627 VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
21628
21629
21630
21631 LIBIDN2_CFLAGS="-I$with_libidn2/include"
21632 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
21633 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
21634 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
21635 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
21636 for ac_header in idn2.h
21637 do :
21638 ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
21639 if test "x$ac_cv_header_idn2_h" = xyes; then :
21640 cat >>confdefs.h <<_ACEOF
21641 #define HAVE_IDN2_H 1
21642 _ACEOF
21643
21644 else
21645 as_fn_error $? "idn2.h not found" "$LINENO" 5
21646 fi
21647
21648 done
21649
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
21651 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
21652 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
21653 $as_echo_n "(cached) " >&6
21654 else
21655 ac_func_search_save_LIBS=$LIBS
21656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h. */
21658
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */
21662 #ifdef __cplusplus
21663 extern "C"
21664 #endif
21665 char idn2_to_ascii_lz ();
21666 int
21667 main ()
21668 {
21669 return idn2_to_ascii_lz ();
21670 ;
21671 return 0;
21672 }
21673 _ACEOF
21674 for ac_lib in '' idn2; do
21675 if test -z "$ac_lib"; then
21676 ac_res="none required"
21677 else
21678 ac_res=-l$ac_lib
21679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21680 fi
21681 if ac_fn_c_try_link "$LINENO"; then :
21682 ac_cv_search_idn2_to_ascii_lz=$ac_res
21683 fi
21684 rm -f core conftest.err conftest.$ac_objext \
21685 conftest$ac_exeext
21686 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
21687 break
21688 fi
21689 done
21690 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
21691
21692 else
21693 ac_cv_search_idn2_to_ascii_lz=no
21694 fi
21695 rm conftest.$ac_ext
21696 LIBS=$ac_func_search_save_LIBS
21697 fi
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
21699 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
21700 ac_res=$ac_cv_search_idn2_to_ascii_lz
21701 if test "$ac_res" != no; then :
21702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21703 LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
21704
21705 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
21706
21707 else
21708 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
21709 fi
21710
21711
21712 CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
21713
21714
21715 CFLAGS=$CFLAGS_libidn2_ax_save_flags
21716
21717
21718 CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
21719
21720
21721 CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
21722
21723
21724 ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
21725
21726
21727 FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
21728
21729
21730 FCLIBS=$FCLIBS_libidn2_ax_save_flags
21731
21732
21733 FFLAGS=$FFLAGS_libidn2_ax_save_flags
21734
21735
21736 FLIBS=$FLIBS_libidn2_ax_save_flags
21737
21738
21739 GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
21740
21741
21742 JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
21743
21744
21745 LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
21746
21747
21748 LIBS=$LIBS_libidn2_ax_save_flags
21749
21750
21751 OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
21752
21753
21754 OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
21755
21756
21757 UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
21758
21759
21760 VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
21761
21762
21763 ;; #(
21764 *) :
21765 ;;
21766 esac
21767
21768
21769
21770
21771 #
21772 # Check whether to build with cmocka unit testing framework
21773 #
21774 # [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka]
21775
21776 # Check whether --with-cmocka was given.
21777 if test "${with_cmocka+set}" = set; then :
21778 withval=$with_cmocka;
21779 else
21780 with_cmocka=detect
21781 fi
21782
21783
21784 case $with_cmocka in #(
21785 no) :
21786 ;; #(
21787 detect) :
21788
21789 pkg_failed=no
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
21791 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
21792
21793 if test -n "$CMOCKA_CFLAGS"; then
21794 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
21795 elif test -n "$PKG_CONFIG"; then
21796 if test -n "$PKG_CONFIG" && \
21797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
21798 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
21799 ac_status=$?
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; then
21802 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
21803 test "x$?" != "x0" && pkg_failed=yes
21804 else
21805 pkg_failed=yes
21806 fi
21807 else
21808 pkg_failed=untried
21809 fi
21810 if test -n "$CMOCKA_LIBS"; then
21811 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
21812 elif test -n "$PKG_CONFIG"; then
21813 if test -n "$PKG_CONFIG" && \
21814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
21815 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
21816 ac_status=$?
21817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; then
21819 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
21820 test "x$?" != "x0" && pkg_failed=yes
21821 else
21822 pkg_failed=yes
21823 fi
21824 else
21825 pkg_failed=untried
21826 fi
21827
21828
21829
21830 if test $pkg_failed = yes; then
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21832 $as_echo "no" >&6; }
21833
21834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21835 _pkg_short_errors_supported=yes
21836 else
21837 _pkg_short_errors_supported=no
21838 fi
21839 if test $_pkg_short_errors_supported = yes; then
21840 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
21841 else
21842 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
21843 fi
21844 # Put the nasty error message in config.log where it belongs
21845 echo "$CMOCKA_PKG_ERRORS" >&5
21846
21847 with_cmocka=no
21848 elif test $pkg_failed = untried; then
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851 with_cmocka=no
21852 else
21853 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
21854 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21856 $as_echo "yes" >&6; }
21857
21858 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
21859
21860 fi ;; #(
21861 yes) :
21862
21863 pkg_failed=no
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
21865 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
21866
21867 if test -n "$CMOCKA_CFLAGS"; then
21868 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
21869 elif test -n "$PKG_CONFIG"; then
21870 if test -n "$PKG_CONFIG" && \
21871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
21872 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
21873 ac_status=$?
21874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875 test $ac_status = 0; }; then
21876 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
21877 test "x$?" != "x0" && pkg_failed=yes
21878 else
21879 pkg_failed=yes
21880 fi
21881 else
21882 pkg_failed=untried
21883 fi
21884 if test -n "$CMOCKA_LIBS"; then
21885 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
21886 elif test -n "$PKG_CONFIG"; then
21887 if test -n "$PKG_CONFIG" && \
21888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
21889 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
21890 ac_status=$?
21891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21892 test $ac_status = 0; }; then
21893 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
21894 test "x$?" != "x0" && pkg_failed=yes
21895 else
21896 pkg_failed=yes
21897 fi
21898 else
21899 pkg_failed=untried
21900 fi
21901
21902
21903
21904 if test $pkg_failed = yes; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21906 $as_echo "no" >&6; }
21907
21908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21909 _pkg_short_errors_supported=yes
21910 else
21911 _pkg_short_errors_supported=no
21912 fi
21913 if test $_pkg_short_errors_supported = yes; then
21914 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
21915 else
21916 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
21917 fi
21918 # Put the nasty error message in config.log where it belongs
21919 echo "$CMOCKA_PKG_ERRORS" >&5
21920
21921 as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
21922
21923 $CMOCKA_PKG_ERRORS
21924
21925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21926 installed software in a non-standard prefix.
21927
21928 Alternatively, you may set the environment variables CMOCKA_CFLAGS
21929 and CMOCKA_LIBS to avoid the need to call pkg-config.
21930 See the pkg-config man page for more details." "$LINENO" 5
21931 elif test $pkg_failed = untried; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21936 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21937 is in your PATH or set the PKG_CONFIG environment variable to the full
21938 path to pkg-config.
21939
21940 Alternatively, you may set the environment variables CMOCKA_CFLAGS
21941 and CMOCKA_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21943
21944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21945 See \`config.log' for more details" "$LINENO" 5; }
21946 else
21947 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
21948 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21950 $as_echo "yes" >&6; }
21951
21952 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
21953
21954 fi ;; #(
21955 *) :
21956 as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
21957 ;;
21958 esac
21959
21960
21961
21962
21963 $as_echo "#define SKIPPED_TEST_EXIT_CODE 0" >>confdefs.h
21964
21965
21966 #
21967 # Check for kyua execution engine if CMocka was requested
21968 # and bail out if execution engine was not found
21969 #
21970
21971 if test "$with_cmocka" != "no"; then :
21972 for ac_prog in kyua
21973 do
21974 # Extract the first word of "$ac_prog", so it can be a program name with args.
21975 set dummy $ac_prog; ac_word=$2
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21977 $as_echo_n "checking for $ac_word... " >&6; }
21978 if ${ac_cv_path_KYUA+:} false; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 case $KYUA in
21982 [\\/]* | ?:[\\/]*)
21983 ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
21984 ;;
21985 *)
21986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21987 for as_dir in $PATH
21988 do
21989 IFS=$as_save_IFS
21990 test -z "$as_dir" && as_dir=.
21991 for ac_exec_ext in '' $ac_executable_extensions; do
21992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21993 ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
21994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21995 break 2
21996 fi
21997 done
21998 done
21999 IFS=$as_save_IFS
22000
22001 ;;
22002 esac
22003 fi
22004 KYUA=$ac_cv_path_KYUA
22005 if test -n "$KYUA"; then
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
22007 $as_echo "$KYUA" >&6; }
22008 else
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22010 $as_echo "no" >&6; }
22011 fi
22012
22013
22014 test -n "$KYUA" && break
22015 done
22016
22017 if test -z "$KYUA"; then :
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
22019 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
22020 else
22021 UNITTESTS=tests
22022 fi
22023 fi
22024
22025
22026
22027 #
22028 # Check for -Wl,--wrap= support
22029 #
22030
22031 LD_WRAP_TESTS=false
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
22033 $as_echo_n "checking for linker support for --wrap option... " >&6; }
22034
22035
22036 CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
22037
22038
22039
22040 CFLAGS_wrap_ax_save_flags=$CFLAGS
22041
22042
22043
22044 CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
22045
22046
22047
22048 CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
22049
22050
22051
22052 ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
22053
22054
22055
22056 FCFLAGS_wrap_ax_save_flags=$FCFLAGS
22057
22058
22059
22060 FCLIBS_wrap_ax_save_flags=$FCLIBS
22061
22062
22063
22064 FFLAGS_wrap_ax_save_flags=$FFLAGS
22065
22066
22067
22068 FLIBS_wrap_ax_save_flags=$FLIBS
22069
22070
22071
22072 GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
22073
22074
22075
22076 JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
22077
22078
22079
22080 LDFLAGS_wrap_ax_save_flags=$LDFLAGS
22081
22082
22083
22084 LIBS_wrap_ax_save_flags=$LIBS
22085
22086
22087
22088 OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
22089
22090
22091
22092 OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
22093
22094
22095
22096 UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
22097
22098
22099
22100 VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
22101
22102
22103
22104 LDFLAGS="-Wl,--wrap,exit"
22105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h. */
22107 #include <stdlib.h>
22108 void __real_exit (int status);
22109 void __wrap_exit (int status) { __real_exit (0); }
22110
22111 int
22112 main ()
22113 {
22114 exit (1);
22115 ;
22116 return 0;
22117 }
22118 _ACEOF
22119 if ac_fn_c_try_link "$LINENO"; then :
22120 LD_WRAP_TESTS=true
22121
22122 $as_echo "#define LD_WRAP 1" >>confdefs.h
22123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22125 $as_echo "yes" >&6; }
22126 else
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22128 $as_echo "no" >&6; }
22129 fi
22130 rm -f core conftest.err conftest.$ac_objext \
22131 conftest$ac_exeext conftest.$ac_ext
22132
22133 CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
22134
22135
22136 CFLAGS=$CFLAGS_wrap_ax_save_flags
22137
22138
22139 CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
22140
22141
22142 CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
22143
22144
22145 ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
22146
22147
22148 FCFLAGS=$FCFLAGS_wrap_ax_save_flags
22149
22150
22151 FCLIBS=$FCLIBS_wrap_ax_save_flags
22152
22153
22154 FFLAGS=$FFLAGS_wrap_ax_save_flags
22155
22156
22157 FLIBS=$FLIBS_wrap_ax_save_flags
22158
22159
22160 GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
22161
22162
22163 JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
22164
22165
22166 LDFLAGS=$LDFLAGS_wrap_ax_save_flags
22167
22168
22169 LIBS=$LIBS_wrap_ax_save_flags
22170
22171
22172 OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
22173
22174
22175 OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
22176
22177
22178 UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
22179
22180
22181 VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
22182
22183
22184
22185
22186
22187
22188 #
22189 # Check for i18n
22190 #
22191 for ac_header in locale.h
22192 do :
22193 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22194 if test "x$ac_cv_header_locale_h" = xyes; then :
22195 cat >>confdefs.h <<_ACEOF
22196 #define HAVE_LOCALE_H 1
22197 _ACEOF
22198
22199 fi
22200
22201 done
22202
22203 for ac_func in setlocale
22204 do :
22205 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22206 if test "x$ac_cv_func_setlocale" = xyes; then :
22207 cat >>confdefs.h <<_ACEOF
22208 #define HAVE_SETLOCALE 1
22209 _ACEOF
22210
22211 fi
22212 done
22213
22214
22215 #
22216 # was --with-tuning specified?
22217 #
22218 # [pairwise: --with-tuning=small, --without-tuning]
22219
22220 # Check whether --with-tuning was given.
22221 if test "${with_tuning+set}" = set; then :
22222 withval=$with_tuning;
22223 else
22224 with_tuning=no
22225 fi
22226
22227
22228 case $with_tuning in #(
22229 small) :
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
22231 $as_echo "$as_me: using small system tuning" >&6;} ;; #(
22232 *) :
22233
22234 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
22235
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
22237 $as_echo "$as_me: using default system tuning" >&6;} ;;
22238 esac
22239
22240 #
22241 # was --enable-querytrace specified?
22242 #
22243 # [pairwise: --enable-querytrace, --disable-querytrace]
22244 # Check whether --enable-querytrace was given.
22245 if test "${enable_querytrace+set}" = set; then :
22246 enableval=$enable_querytrace; want_querytrace="$enableval"
22247 else
22248 want_querytrace="no"
22249 fi
22250
22251
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
22253 $as_echo_n "checking whether to enable query trace logging... " >&6; }
22254 case "$want_querytrace" in
22255 yes)
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22257 $as_echo "yes" >&6; }
22258
22259 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
22260
22261 ;;
22262 no)
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22264 $as_echo "no" >&6; }
22265 ;;
22266 *)
22267 as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
22268 ;;
22269 esac
22270
22271 #
22272 # Was --disable-auto-validation specified?
22273 #
22274
22275 validation_default=auto
22276
22277 # [pairwise: --enable-auto-validation, --disable-auto-validation]
22278 # Check whether --enable-auto-validation was given.
22279 if test "${enable_auto_validation+set}" = set; then :
22280 enableval=$enable_auto_validation; :
22281 else
22282 enable_auto_validation=yes
22283 fi
22284
22285 if test "$enable_auto_validation" = "no"; then :
22286 validation_default=yes
22287 fi
22288
22289 cat >>confdefs.h <<_ACEOF
22290 #define VALIDATION_DEFAULT "$validation_default"
22291 _ACEOF
22292
22293
22294 #
22295 # Substitutions
22296 #
22297
22298 BIND9_TOP_BUILDDIR=`pwd`
22299
22300
22301
22302
22303
22304
22305
22306
22307 if test "X$srcdir" != "X"; then
22308 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
22309 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
22310 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
22311 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
22312 BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
22313 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
22314 BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
22315 else
22316 BIND9_ISC_BUILDINCLUDE=""
22317 BIND9_ISCCC_BUILDINCLUDE=""
22318 BIND9_ISCCFG_BUILDINCLUDE=""
22319 BIND9_DNS_BUILDINCLUDE=""
22320 BIND9_NS_BUILDINCLUDE=""
22321 BIND9_BIND9_BUILDINCLUDE=""
22322 BIND9_IRS_BUILDINCLUDE=""
22323 fi
22324
22325
22326 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
22327
22328
22329 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
22330
22331 . "$srcdir/version"
22332 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
22333
22334 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
22335
22336 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
22337
22338 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
22339
22340 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
22341
22342
22343 BIND9_SRCID="SRCID=unset_id"
22344 if test -f "${srcdir}/srcid"; then
22345 . "${srcdir}/srcid"
22346 BIND9_SRCID="SRCID=$SRCID"
22347 elif test -d "${srcdir}/.git"; then
22348 BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
22349 fi
22350
22351
22352
22353 if test -z "$ac_configure_args"; then
22354 BIND9_CONFIGARGS="defaults"
22355 else
22356 for a in $ac_configure_args
22357 do
22358 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
22359 done
22360 fi
22361 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
22362 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
22363
22364
22365
22366 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
22367
22368 #
22369 # Configure any DLZ drivers.
22370 #
22371 # If config.dlz.in selects one or more DLZ drivers, it will set
22372 # CONTRIB_DLZ to a non-empty value, which will be our clue to
22373 # build DLZ drivers in contrib.
22374 #
22375 # This section has to come after the libtool stuff because it needs to
22376 # know how to name the driver object files.
22377 #
22378
22379 CONTRIB_DLZ=""
22380 DLZ_DRIVER_INCLUDES=""
22381 DLZ_DRIVER_LIBS=""
22382 DLZ_DRIVER_SRCS=""
22383 DLZ_DRIVER_OBJS=""
22384 DLZ_SYSTEM_TEST=""
22385 DLZ_DRIVER_MYSQL_INCLUDES=""
22386 DLZ_DRIVER_MYSQL_LIBS=""
22387
22388 #
22389 # Configure support for building a shared library object
22390 #
22391 # Even when libtool is available it can't always be relied upon
22392 # to build an object that can be dlopen()'ed, but this is necessary
22393 # for building the dlzexternal system test, so we'll try it the
22394 # old-fashioned way.
22395 #
22396 SO="so"
22397 SO_CFLAGS=""
22398 SO_LDFLAGS=""
22399 SO_LD=""
22400 SO_TARGETS=""
22401 SO_STRIP="cat"
22402
22403 # [pairwise: skip]
22404
22405 # Check whether --with-dlopen was given.
22406 if test "${with_dlopen+set}" = set; then :
22407 withval=$with_dlopen;
22408 else
22409 with_dlopen="auto"
22410 fi
22411
22412
22413
22414 #
22415 # If PIC is disabled, dlopen must also be
22416 #
22417 if test "$pic_mode" = "no"; then :
22418 case $with_dlopen in #(
22419 auto) :
22420 with_dlopen="no" ;; #(
22421 yes) :
22422 as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
22423 *) :
22424 ;;
22425 esac
22426 fi
22427
22428 case $with_dlopen in #(
22429 auto|yes) :
22430
22431 # -fsanitize=thread hijacks dlopen and dlclose so use dlsym.
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
22433 $as_echo_n "checking for library containing dlsym... " >&6; }
22434 if ${ac_cv_search_dlsym+:} false; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 ac_func_search_save_LIBS=$LIBS
22438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439 /* end confdefs.h. */
22440
22441 /* Override any GCC internal prototype to avoid an error.
22442 Use char because int might match the return type of a GCC
22443 builtin and then its argument prototype would still apply. */
22444 #ifdef __cplusplus
22445 extern "C"
22446 #endif
22447 char dlsym ();
22448 int
22449 main ()
22450 {
22451 return dlsym ();
22452 ;
22453 return 0;
22454 }
22455 _ACEOF
22456 for ac_lib in '' dl; do
22457 if test -z "$ac_lib"; then
22458 ac_res="none required"
22459 else
22460 ac_res=-l$ac_lib
22461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22462 fi
22463 if ac_fn_c_try_link "$LINENO"; then :
22464 ac_cv_search_dlsym=$ac_res
22465 fi
22466 rm -f core conftest.err conftest.$ac_objext \
22467 conftest$ac_exeext
22468 if ${ac_cv_search_dlsym+:} false; then :
22469 break
22470 fi
22471 done
22472 if ${ac_cv_search_dlsym+:} false; then :
22473
22474 else
22475 ac_cv_search_dlsym=no
22476 fi
22477 rm conftest.$ac_ext
22478 LIBS=$ac_func_search_save_LIBS
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
22481 $as_echo "$ac_cv_search_dlsym" >&6; }
22482 ac_res=$ac_cv_search_dlsym
22483 if test "$ac_res" != no; then :
22484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22485
22486 fi
22487
22488 for ac_func in dlopen dlclose dlsym
22489 do :
22490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22492 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22493 cat >>confdefs.h <<_ACEOF
22494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22495 _ACEOF
22496 with_dlopen="yes"
22497 else
22498 with_dlopen="no"
22499 fi
22500 done
22501
22502 ;; #(
22503 *) :
22504 ;;
22505 esac
22506
22507 if test "$with_dlopen" = "yes"; then :
22508 case $host in #(
22509 *-linux*|*-gnu*) :
22510
22511 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
22512 SO_CFLAGS="-fPIC"
22513 SO_LDFLAGS=""
22514 if test "$use_libtool" = "yes"; then :
22515
22516 SO_LDFLAGS="-Xcompiler -shared"
22517 SO_LD="${CC}"
22518
22519 else
22520
22521 SO_LDFLAGS="-shared"
22522 SO_LD="${CC}"
22523
22524 fi
22525 ;; #(
22526 *-freebsd*|*-openbsd*|*-netbsd*) :
22527
22528 LDFLAGS="${LDFLAGS} -Wl,-E"
22529 SO_CFLAGS="-fpic"
22530 if test "$use_libtool" = "yes"; then :
22531
22532 SO_LDFLAGS="-Xcompiler -shared"
22533 SO_LD="${CC}"
22534
22535 else
22536
22537 SO_LDFLAGS="-shared"
22538 SO_LD="${CC}"
22539
22540 fi
22541 ;; #(
22542 *-darwin*) :
22543
22544 SO_CFLAGS="-fPIC"
22545 SO_LD="${CC}"
22546 if test "$use_libtool" = "yes"; then :
22547
22548 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
22549
22550 else
22551
22552 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
22553
22554 fi
22555 ;; #(
22556 *-solaris*) :
22557
22558 SO_CFLAGS="-KPIC"
22559 SO_LDFLAGS="-G -z text"
22560 SO_LD="ld"
22561 ;; #(
22562 ia64-hp-hpux*) :
22563
22564 SO_CFLAGS="+z"
22565 SO_LDFLAGS="-b"
22566 SO_LD="${CC}"
22567 ;; #(
22568 *) :
22569
22570 SO_CFLAGS="-fPIC"
22571 ;;
22572 esac
22573 if test "$GCC" = "yes"; then :
22574
22575 SO_CFLAGS="-fPIC"
22576 if test -z "$SO_LD"; then :
22577 if test "$use_libtool" = "yes"; then :
22578
22579 SO_LDFLAGS="-Xcompiler -shared"
22580 SO_LD="${CC}"
22581
22582 else
22583
22584 SO_LDFLAGS="-shared"
22585 SO_LD="${CC}"
22586
22587 fi
22588
22589 fi
22590
22591 fi
22592 # If we still don't know how to make shared objects, don't make any.
22593 if test -n "$SO_LD"; then :
22594 SO_TARGETS="\${SO_TARGETS}"
22595
22596 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
22597
22598
22599 fi
22600
22601 fi
22602
22603 if test "$with_dlopen" = "no" -a "$enable_native_pkcs11" = "yes"; then :
22604 as_fn_error $? "PKCS11 requires dlopen() support" "$LINENO" 5
22605 fi
22606
22607 CFLAGS="$CFLAGS $SO_CFLAGS"
22608
22609
22610
22611
22612
22613
22614
22615
22616 #
22617 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
22618 # interface.
22619 #
22620 # DNSRPS can be compiled into BIND everywhere with a reasonably
22621 # modern C compiler. It is enabled on systems with dlopen() and librpz.so.
22622 #
22623 dnsrps_avail=yes
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
22625 $as_echo_n "checking for librpz __attribute__s... " >&6; }
22626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627 /* end confdefs.h. */
22628
22629 int
22630 main ()
22631 {
22632
22633 extern void f(char *p __attribute__((unused)), ...)
22634 __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
22635
22636 ;
22637 return 0;
22638 }
22639 _ACEOF
22640 if ac_fn_c_try_compile "$LINENO"; then :
22641
22642 librpz_have_attr=yes
22643
22644 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
22645
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22647 $as_echo "yes" >&6; }
22648
22649 else
22650
22651 librpz_have_attr=no
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654
22655 fi
22656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657
22658 # DNSRPS is not included in pairwise testing as the librpz library is not
22659 # present in the relevant Docker image.
22660 #
22661 # [pairwise: skip]
22662 # Check whether --enable-dnsrps-dl was given.
22663 if test "${enable_dnsrps_dl+set}" = set; then :
22664 enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
22665 else
22666 enable_librpz_dl="$with_dlopen"
22667 fi
22668
22669
22670 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
22671 as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
22672 fi
22673
22674 # [pairwise: skip]
22675
22676 # Check whether --with-dnsrps-libname was given.
22677 if test "${with_dnsrps_libname+set}" = set; then :
22678 withval=$with_dnsrps_libname; librpz_name="$withval"
22679 else
22680 librpz_name="librpz.so"
22681 fi
22682
22683
22684 # [pairwise: skip]
22685
22686 # Check whether --with-dnsrps-dir was given.
22687 if test "${with_dnsrps_dir+set}" = set; then :
22688 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
22689 else
22690 librpz_path="$librpz_name"
22691 fi
22692
22693
22694 cat >>confdefs.h <<_ACEOF
22695 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
22696 _ACEOF
22697
22698 if test "$enable_librpz_dl" = "yes"; then :
22699
22700 dnsrps_lib_open=2
22701
22702 else
22703
22704 dnsrps_lib_open=1
22705 # Add librpz.so to linked libraries if we are not using dlopen()
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
22707 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
22708 if ${ac_cv_search_librpz_client_create+:} false; then :
22709 $as_echo_n "(cached) " >&6
22710 else
22711 ac_func_search_save_LIBS=$LIBS
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22714
22715 /* Override any GCC internal prototype to avoid an error.
22716 Use char because int might match the return type of a GCC
22717 builtin and then its argument prototype would still apply. */
22718 #ifdef __cplusplus
22719 extern "C"
22720 #endif
22721 char librpz_client_create ();
22722 int
22723 main ()
22724 {
22725 return librpz_client_create ();
22726 ;
22727 return 0;
22728 }
22729 _ACEOF
22730 for ac_lib in '' rpz; do
22731 if test -z "$ac_lib"; then
22732 ac_res="none required"
22733 else
22734 ac_res=-l$ac_lib
22735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22736 fi
22737 if ac_fn_c_try_link "$LINENO"; then :
22738 ac_cv_search_librpz_client_create=$ac_res
22739 fi
22740 rm -f core conftest.err conftest.$ac_objext \
22741 conftest$ac_exeext
22742 if ${ac_cv_search_librpz_client_create+:} false; then :
22743 break
22744 fi
22745 done
22746 if ${ac_cv_search_librpz_client_create+:} false; then :
22747
22748 else
22749 ac_cv_search_librpz_client_create=no
22750 fi
22751 rm conftest.$ac_ext
22752 LIBS=$ac_func_search_save_LIBS
22753 fi
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
22755 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
22756 ac_res=$ac_cv_search_librpz_client_create
22757 if test "$ac_res" != no; then :
22758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22759
22760 else
22761 dnsrps_lib_open=0
22762 dnsrps_avail=no
22763 fi
22764
22765
22766 fi
22767
22768 cat >>confdefs.h <<_ACEOF
22769 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
22770 _ACEOF
22771
22772
22773 # [pairwise: skip]
22774 # Check whether --enable-dnsrps was given.
22775 if test "${enable_dnsrps+set}" = set; then :
22776 enableval=$enable_dnsrps; enable_dnsrps=$enableval
22777 else
22778 enable_dnsrps=no
22779 fi
22780
22781
22782 if test "$enable_dnsrps" != "no"; then :
22783
22784 if test "$dnsrps_avail" != "yes"; then :
22785 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
22786 fi
22787 if test "$dnsrps_lib_open" = "0"; then :
22788 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
22789 fi
22790
22791 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
22792
22793
22794 fi
22795
22796 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
22797 #
22798 # Permission to use, copy, modify, and distribute this software for any
22799 # purpose with or without fee is hereby granted, provided that the above
22800 # copyright notice and this permission notice appear in all copies.
22801 #
22802 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
22803 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22804 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
22805 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22806 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22807 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22808 # PERFORMANCE OF THIS SOFTWARE.
22809
22810 #
22811 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
22812 #
22813 dlzdir='${DLZ_DRIVER_DIR}'
22814
22815 #
22816 # Private autoconf macro to simplify configuring drivers:
22817 #
22818 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
22819 #
22820 # where:
22821 # DEFINE is FOO (to define -DDLZ_FOO)
22822 # DRIVER is dlz_foo_driver (sources without the .c)
22823 # INCLUDES is any necessary include definitions
22824 # LIBS is any necessary library definitions
22825 #
22826
22827
22828 #
22829 # Check for the various DLZ drivers
22830 #
22831
22832 #
22833 # Was --with-dlz-postgres specified?
22834 #
22835
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
22837 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
22838
22839 # Check whether --with-dlz_postgres was given.
22840 if test "${with_dlz_postgres+set}" = set; then :
22841 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
22842 else
22843 use_dlz_postgres="no"
22844 fi
22845
22846
22847 if test "$use_dlz_postgres" != "no"
22848 then
22849 if test "$use_dlz_postgres" != "yes"
22850 then
22851 for ac_prog in pg_config
22852 do
22853 # Extract the first word of "$ac_prog", so it can be a program name with args.
22854 set dummy $ac_prog; ac_word=$2
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22856 $as_echo_n "checking for $ac_word... " >&6; }
22857 if ${ac_cv_path_PG_CONFIG+:} false; then :
22858 $as_echo_n "(cached) " >&6
22859 else
22860 case $PG_CONFIG in
22861 [\\/]* | ?:[\\/]*)
22862 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22863 ;;
22864 *)
22865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $use_dlz_postgres/bin
22867 do
22868 IFS=$as_save_IFS
22869 test -z "$as_dir" && as_dir=.
22870 for ac_exec_ext in '' $ac_executable_extensions; do
22871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22874 break 2
22875 fi
22876 done
22877 done
22878 IFS=$as_save_IFS
22879
22880 ;;
22881 esac
22882 fi
22883 PG_CONFIG=$ac_cv_path_PG_CONFIG
22884 if test -n "$PG_CONFIG"; then
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
22886 $as_echo "$PG_CONFIG" >&6; }
22887 else
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22890 fi
22891
22892
22893 test -n "$PG_CONFIG" && break
22894 done
22895 test -n "$PG_CONFIG" || PG_CONFIG="not found"
22896
22897 else
22898 for ac_prog in pg_config
22899 do
22900 # Extract the first word of "$ac_prog", so it can be a program name with args.
22901 set dummy $ac_prog; ac_word=$2
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22903 $as_echo_n "checking for $ac_word... " >&6; }
22904 if ${ac_cv_path_PG_CONFIG+:} false; then :
22905 $as_echo_n "(cached) " >&6
22906 else
22907 case $PG_CONFIG in
22908 [\\/]* | ?:[\\/]*)
22909 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22910 ;;
22911 *)
22912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22913 for as_dir in $PATH
22914 do
22915 IFS=$as_save_IFS
22916 test -z "$as_dir" && as_dir=.
22917 for ac_exec_ext in '' $ac_executable_extensions; do
22918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22919 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22921 break 2
22922 fi
22923 done
22924 done
22925 IFS=$as_save_IFS
22926
22927 ;;
22928 esac
22929 fi
22930 PG_CONFIG=$ac_cv_path_PG_CONFIG
22931 if test -n "$PG_CONFIG"; then
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
22933 $as_echo "$PG_CONFIG" >&6; }
22934 else
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936 $as_echo "no" >&6; }
22937 fi
22938
22939
22940 test -n "$PG_CONFIG" && break
22941 done
22942 test -n "$PG_CONFIG" || PG_CONFIG="not found"
22943
22944 fi
22945
22946 if test "$PG_CONFIG" != "not found"
22947 then
22948 use_dlz_postgres=`$PG_CONFIG --includedir`
22949 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
22950 else
22951 pgprefix="$use_dlz_postgres"
22952 use_dlz_postgres="$pgprefix/include"
22953 use_dlz_postgres_lib="$pgprefix/lib"
22954 fi
22955 fi
22956
22957 if test "$use_dlz_postgres" = "yes/include"
22958 then
22959 # User did not specify path and Postgres didn't say - guess it
22960 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
22961 for d in $pgdirs
22962 do
22963 if test -f $d/include/libpq-fe.h
22964 then
22965 use_dlz_postgres=$d/include
22966 use_dlz_postgres_lib=$d/lib
22967 break
22968 fi
22969 done
22970 fi
22971
22972 if test "$use_dlz_postgres" = "yes/include"
22973 then
22974 # Still no joy, give up
22975
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22977 $as_echo "not found" >&6; }
22978 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
22979 fi
22980
22981 case "$use_dlz_postgres" in
22982 no)
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22984 $as_echo "no" >&6; }
22985 ;;
22986 *)
22987
22988 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
22989 for i in dlz_postgres_driver
22990 do
22991 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
22992 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
22993 done
22994 if test -n "-I$use_dlz_postgres"
22995 then
22996 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
22997 DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
22998 fi
22999 if test -n "-L$use_dlz_postgres_lib -lpq"
23000 then
23001 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
23002 DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
23003 fi
23004
23005
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
23007 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
23008 ;;
23009 esac
23010
23011
23012 #
23013 # Was --with-dlz-mysql specified?
23014 #
23015
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
23017 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
23018
23019 # Check whether --with-dlz_mysql was given.
23020 if test "${with_dlz_mysql+set}" = set; then :
23021 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
23022 else
23023 use_dlz_mysql="no"
23024 fi
23025
23026
23027 mysql_include=""
23028 mysql_lib=""
23029 if test "$use_dlz_mysql" = "yes"
23030 then
23031 for ac_prog in mysql_config
23032 do
23033 # Extract the first word of "$ac_prog", so it can be a program name with args.
23034 set dummy $ac_prog; ac_word=$2
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23036 $as_echo_n "checking for $ac_word... " >&6; }
23037 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
23038 $as_echo_n "(cached) " >&6
23039 else
23040 if test -n "$MYSQL_CONFIG"; then
23041 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
23042 else
23043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23044 for as_dir in $PATH
23045 do
23046 IFS=$as_save_IFS
23047 test -z "$as_dir" && as_dir=.
23048 for ac_exec_ext in '' $ac_executable_extensions; do
23049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23050 ac_cv_prog_MYSQL_CONFIG="$ac_prog"
23051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23052 break 2
23053 fi
23054 done
23055 done
23056 IFS=$as_save_IFS
23057
23058 fi
23059 fi
23060 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
23061 if test -n "$MYSQL_CONFIG"; then
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
23063 $as_echo "$MYSQL_CONFIG" >&6; }
23064 else
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23066 $as_echo "no" >&6; }
23067 fi
23068
23069
23070 test -n "$MYSQL_CONFIG" && break
23071 done
23072
23073 if test -n "$MYSQL_CONFIG"
23074 then
23075 mysql_include=`${MYSQL_CONFIG} --include`
23076 mysql_lib=`${MYSQL_CONFIG} --libs`
23077 use_dlz_mysql="config"
23078
23079 else
23080 # User did not specify a path - guess it
23081 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
23082 for d in $mysqldirs
23083 do
23084 if test -f $d/include/mysql/mysql.h
23085 then
23086 use_dlz_mysql=$d
23087 mysql_include=$d/include/mysql
23088 break
23089 elif test -f $d/include/mysql.h
23090 then
23091 use_dlz_mysql=$d
23092 mysql_include=$d/include
23093 break
23094 fi
23095 done
23096 fi
23097 elif test "$use_dlz_mysql" != "no"
23098 then
23099 d=$use_dlz_mysql
23100 if test -f $d/include/mysql/mysql.h
23101 then
23102 mysql_include=$d/include/mysql
23103 elif test -f $d/include/mysql.h
23104 then
23105 mysql_include=$d/include
23106 fi
23107 fi
23108
23109 if test "$use_dlz_mysql" = "yes"
23110 then
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23112 $as_echo "not found" >&6; }
23113 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
23114 fi
23115
23116 case "$use_dlz_mysql" in
23117 no)
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23119 $as_echo "no" >&6; }
23120 ;;
23121 config)
23122
23123 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
23124 for i in dlz_mysql_driver
23125 do
23126 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23127 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23128 done
23129 if test -n "${mysql_include}"
23130 then
23131 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
23132 DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
23133 fi
23134 if test -n "${mysql_lib}"
23135 then
23136 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
23137 DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
23138 fi
23139
23140
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
23142 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
23143 ;;
23144 *)
23145 if test -d "$use_dlz_mysql/lib/mysql"
23146 then
23147 mysql_lib="$use_dlz_mysql/lib/mysql"
23148 else
23149 mysql_lib="$use_dlz_mysql/lib"
23150 fi
23151
23152 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
23153 for i in dlz_mysql_driver
23154 do
23155 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23156 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23157 done
23158 if test -n "-I${mysql_include}"
23159 then
23160 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
23161 DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
23162 fi
23163 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23164 then
23165 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23166 DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23167 fi
23168
23169
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
23171 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
23172 ;;
23173 esac
23174
23175
23176 #
23177 # Was --with-dlz-bdb specified?
23178 #
23179
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
23181 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
23182
23183 # Check whether --with-dlz_bdb was given.
23184 if test "${with_dlz_bdb+set}" = set; then :
23185 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
23186 else
23187 use_dlz_bdb="no"
23188 fi
23189
23190
23191 case "$use_dlz_bdb" in
23192 no)
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194 $as_echo "no" >&6; }
23195 ;;
23196 *)
23197 if test "$use_dlz_bdb" = "yes"
23198 then
23199 # User did not specify a path - guess directories
23200 bdbdirs="/usr/local /usr/pkg /usr"
23201 elif test -d "$use_dlz_bdb"
23202 then
23203 # User specified directory and it exists
23204 bdbdirs="$use_dlz_bdb"
23205 else
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23207 $as_echo "not found" >&6; }
23208 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
23209 bdbdirs=""
23210 fi
23211
23212 # Use path we were given or guessed. This is insanely
23213 # complicated because we have to search for a bunch of
23214 # platform-specific variations and have to check
23215 # separately for include and library directories.
23216
23217 # Set both to yes, so we can check them later
23218 dlz_bdb_inc="yes"
23219 dlz_bdb_libs="yes"
23220
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23222 $as_echo "" >&6; }
23223 for dd in $bdbdirs
23224 do
23225 # Skip nonexistent directories
23226 if test ! -d "$dd"
23227 then
23228 continue
23229 fi
23230
23231 # Check other locations for includes.
23232 # Order is important (sigh).
23233
23234 bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
23235 # include a blank element first
23236 for d in "" $bdb_incdirs
23237 do
23238 if test -f "$dd/include${d}/db.h"
23239 then
23240 dlz_bdb_inc="-I$dd/include${d}"
23241 break
23242 fi
23243 done
23244
23245 # Give up on this directory if we couldn't
23246 # find the include subdir
23247
23248 if test "$dlz_bdb_inc" = "yes"
23249 then
23250 continue
23251 fi
23252
23253 # Look for libname other than libdb.so.
23254 # Order is important (sigh).
23255
23256 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"
23257 for d in $bdb_libnames
23258 do
23259 if test "$dd" = "/usr"
23260 then
23261 as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
23263 $as_echo_n "checking for db_create in -l$d... " >&6; }
23264 if eval \${$as_ac_Lib+:} false; then :
23265 $as_echo_n "(cached) " >&6
23266 else
23267 ac_check_lib_save_LIBS=$LIBS
23268 LIBS="-l$d $LIBS"
23269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23270 /* end confdefs.h. */
23271
23272 /* Override any GCC internal prototype to avoid an error.
23273 Use char because int might match the return type of a GCC
23274 builtin and then its argument prototype would still apply. */
23275 #ifdef __cplusplus
23276 extern "C"
23277 #endif
23278 char db_create ();
23279 int
23280 main ()
23281 {
23282 return db_create ();
23283 ;
23284 return 0;
23285 }
23286 _ACEOF
23287 if ac_fn_c_try_link "$LINENO"; then :
23288 eval "$as_ac_Lib=yes"
23289 else
23290 eval "$as_ac_Lib=no"
23291 fi
23292 rm -f core conftest.err conftest.$ac_objext \
23293 conftest$ac_exeext conftest.$ac_ext
23294 LIBS=$ac_check_lib_save_LIBS
23295 fi
23296 eval ac_res=\$$as_ac_Lib
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23298 $as_echo "$ac_res" >&6; }
23299 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
23300 dlz_bdb_libs="-l${d}"
23301 fi
23302
23303 if test $dlz_bdb_libs != "yes"
23304 then
23305 break
23306 fi
23307 elif test -f "$dd/lib/lib${d}.so"
23308 then
23309 dlz_bdb_libs="-L${dd}/lib -l${d}"
23310 break
23311 fi
23312 done
23313
23314 # If we found both incdir and lib, we're done
23315 if test "$dlz_bdb_libs" != "yes"
23316 then
23317 break
23318 fi
23319
23320 # Otherwise, we're starting over
23321
23322 dlz_bdb_inc="yes"
23323 dlz_bdb_libs="yes"
23324 done
23325
23326 # Done searching, now make sure we got everything.
23327
23328 if test "$dlz_bdb_inc" = "yes"
23329 then
23330 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
23331 fi
23332
23333 if test "$dlz_bdb_libs" = "yes"
23334 then
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23336 $as_echo "not found" >&6; }
23337 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
23338 fi
23339
23340
23341 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
23342 for i in dlz_bdb_driver dlz_bdbhpt_driver
23343 do
23344 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23345 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23346 done
23347 if test -n "$dlz_bdb_inc"
23348 then
23349 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
23350 DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
23351 fi
23352 if test -n "$dlz_bdb_libs"
23353 then
23354 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
23355 DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
23356 fi
23357
23358
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
23360 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
23361
23362 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
23363
23364 ;;
23365 esac
23366
23367
23368 #
23369 # Was --with-dlz-filesystem specified?
23370 #
23371
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
23373 $as_echo_n "checking for file system DLZ driver... " >&6; }
23374
23375 # Check whether --with-dlz_filesystem was given.
23376 if test "${with_dlz_filesystem+set}" = set; then :
23377 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
23378 else
23379 use_dlz_filesystem="no"
23380 fi
23381
23382
23383 case "$use_dlz_filesystem" in
23384 no)
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23386 $as_echo "no" >&6; }
23387 ;;
23388 *)
23389
23390 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
23391 for i in dlz_filesystem_driver
23392 do
23393 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23394 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23395 done
23396 if test -n ""
23397 then
23398 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
23399 DLZ_DRIVER_FILESYSTEM_INCLUDES=""
23400 fi
23401 if test -n ""
23402 then
23403 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
23404 DLZ_DRIVER_FILESYSTEM_LIBS=""
23405 fi
23406
23407 DLZ_SYSTEM_TEST=filesystem
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23409 $as_echo "yes" >&6; }
23410 ;;
23411 esac
23412
23413
23414 #
23415 # Was --with-dlz-ldap specified?
23416 #
23417
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
23419 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
23420
23421 # Check whether --with-dlz_ldap was given.
23422 if test "${with_dlz_ldap+set}" = set; then :
23423 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
23424 else
23425 use_dlz_ldap="no"
23426 fi
23427
23428
23429 if test "$use_dlz_ldap" = "yes"
23430 then
23431 # User did not specify a path - guess it
23432 ldapdirs="/usr /usr/local /usr/pkg"
23433 for d in $ldapdirs
23434 do
23435 if test -f $d/include/ldap.h
23436 then
23437 use_dlz_ldap=$d
23438 break
23439 fi
23440 done
23441 fi
23442
23443 if test "$use_dlz_ldap" = "yes"
23444 then
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23446 $as_echo "not found" >&6; }
23447 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
23448 fi
23449
23450 case "$use_dlz_ldap" in
23451 no)
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23453 $as_echo "no" >&6; }
23454 ;;
23455 *)
23456
23457 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
23458 for i in dlz_ldap_driver
23459 do
23460 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23461 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23462 done
23463 if test -n "-I$use_dlz_ldap/include"
23464 then
23465 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
23466 DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
23467 fi
23468 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
23469 then
23470 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
23471 DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
23472 fi
23473
23474
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
23476 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
23477 ;;
23478 esac
23479
23480
23481 #
23482 # Was --with-dlz-odbc specified?
23483 #
23484
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
23486 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
23487
23488 # Check whether --with-dlz_odbc was given.
23489 if test "${with_dlz_odbc+set}" = set; then :
23490 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
23491 else
23492 use_dlz_odbc="no"
23493 fi
23494
23495
23496 if test "$use_dlz_odbc" = "yes"
23497 then
23498 # User did not specify a path - guess it
23499 libodbc_found=no
23500 sql_h_found=no
23501 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
23502 if test "x$ac_cv_header_sql_h" = xyes; then :
23503 sql_h_found=yes
23504 fi
23505
23506
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
23508 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
23509 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
23510 $as_echo_n "(cached) " >&6
23511 else
23512 ac_check_lib_save_LIBS=$LIBS
23513 LIBS="-lodbc $LIBS"
23514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515 /* end confdefs.h. */
23516
23517 /* Override any GCC internal prototype to avoid an error.
23518 Use char because int might match the return type of a GCC
23519 builtin and then its argument prototype would still apply. */
23520 #ifdef __cplusplus
23521 extern "C"
23522 #endif
23523 char SQLConnect ();
23524 int
23525 main ()
23526 {
23527 return SQLConnect ();
23528 ;
23529 return 0;
23530 }
23531 _ACEOF
23532 if ac_fn_c_try_link "$LINENO"; then :
23533 ac_cv_lib_odbc_SQLConnect=yes
23534 else
23535 ac_cv_lib_odbc_SQLConnect=no
23536 fi
23537 rm -f core conftest.err conftest.$ac_objext \
23538 conftest$ac_exeext conftest.$ac_ext
23539 LIBS=$ac_check_lib_save_LIBS
23540 fi
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
23542 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
23543 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
23544 libodbc_found=yes
23545 fi
23546
23547
23548 if test $libodbc_found = "yes" -o $sql_h_found = "yes"
23549 then
23550 use_dlz_odbc=system
23551 dlz_odbc_include=""
23552 dlz_odbc_libs="-lodbc"
23553 else
23554 odbcdirs="/usr /usr/local /usr/pkg"
23555 for d in $odbcdirs
23556 do
23557 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
23558 then
23559 use_dlz_odbc=$d
23560 dlz_odbc_include="-I$use_dlz_odbc/include"
23561 dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
23562 break
23563 fi
23564 done
23565 fi
23566 fi
23567
23568 case "$use_dlz_odbc" in
23569 no)
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23571 $as_echo "no" >&6; }
23572 ;;
23573 yes)
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23575 $as_echo "not found" >&6; }
23576 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
23577 ;;
23578 *)
23579
23580 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
23581 for i in dlz_odbc_driver
23582 do
23583 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23584 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23585 done
23586 if test -n "$dlz_odbc_include"
23587 then
23588 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
23589 DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
23590 fi
23591 if test -n "$dlz_odbc_libs"
23592 then
23593 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
23594 DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
23595 fi
23596
23597
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
23599 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
23600 ;;
23601 esac
23602
23603
23604 #
23605 # Was --with-dlz-stub specified?
23606 #
23607
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
23609 $as_echo_n "checking for stub DLZ driver... " >&6; }
23610
23611 # Check whether --with-dlz_stub was given.
23612 if test "${with_dlz_stub+set}" = set; then :
23613 withval=$with_dlz_stub; use_dlz_stub="$withval"
23614 else
23615 use_dlz_stub="no"
23616 fi
23617
23618
23619 case "$use_dlz_stub" in
23620 no)
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23623 ;;
23624 *)
23625
23626
23627 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
23628 for i in dlz_stub_driver
23629 do
23630 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23631 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23632 done
23633 if test -n ""
23634 then
23635 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
23636 DLZ_DRIVER_STUB_INCLUDES=""
23637 fi
23638 if test -n ""
23639 then
23640 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
23641 DLZ_DRIVER_STUB_LIBS=""
23642 fi
23643
23644
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23646 $as_echo "yes" >&6; }
23647 ;;
23648 esac
23649
23650 # Add any additional DLZ drivers here.
23651
23652 #
23653 # Finally, some generic stuff that applies to all drivers, assuming
23654 # we're compiling contrib DLZ drivers at all.
23655 #
23656 if test -n "$CONTRIB_DLZ"
23657 then
23658 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
23659
23660 #
23661 # Where to find DLZ driver header files.
23662 #
23663 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
23664
23665 #
23666 # Initialization and shutdown wrappers, helper functions.
23667 #
23668 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
23669 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
23670 fi
23671
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
23673 $as_echo_n "checking contributed DLZ drivers... " >&6; }
23674
23675 #
23676 # Support for constructor and destructor attributes
23677 #
23678
23679
23680
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
23682 $as_echo_n "checking for __attribute__((constructor))... " >&6; }
23683 if ${ax_cv_have_func_attribute_constructor+:} false; then :
23684 $as_echo_n "(cached) " >&6
23685 else
23686
23687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688 /* end confdefs.h. */
23689
23690
23691 int foo( void ) __attribute__((constructor));
23692
23693 int
23694 main ()
23695 {
23696
23697 ;
23698 return 0;
23699 }
23700
23701 _ACEOF
23702 if ac_fn_c_try_link "$LINENO"; then :
23703 if test -s conftest.err; then :
23704 ax_cv_have_func_attribute_constructor=no
23705 else
23706 ax_cv_have_func_attribute_constructor=yes
23707 fi
23708 else
23709 ax_cv_have_func_attribute_constructor=no
23710 fi
23711 rm -f core conftest.err conftest.$ac_objext \
23712 conftest$ac_exeext conftest.$ac_ext
23713
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5
23716 $as_echo "$ax_cv_have_func_attribute_constructor" >&6; }
23717
23718 if test yes = $ax_cv_have_func_attribute_constructor; then :
23719
23720 cat >>confdefs.h <<_ACEOF
23721 #define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1
23722 _ACEOF
23723
23724 fi
23725
23726
23727
23728
23729
23730
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5
23732 $as_echo_n "checking for __attribute__((destructor))... " >&6; }
23733 if ${ax_cv_have_func_attribute_destructor+:} false; then :
23734 $as_echo_n "(cached) " >&6
23735 else
23736
23737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23738 /* end confdefs.h. */
23739
23740
23741 int foo( void ) __attribute__((destructor));
23742
23743 int
23744 main ()
23745 {
23746
23747 ;
23748 return 0;
23749 }
23750
23751 _ACEOF
23752 if ac_fn_c_try_link "$LINENO"; then :
23753 if test -s conftest.err; then :
23754 ax_cv_have_func_attribute_destructor=no
23755 else
23756 ax_cv_have_func_attribute_destructor=yes
23757 fi
23758 else
23759 ax_cv_have_func_attribute_destructor=no
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext conftest.$ac_ext
23763
23764 fi
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5
23766 $as_echo "$ax_cv_have_func_attribute_destructor" >&6; }
23767
23768 if test yes = $ax_cv_have_func_attribute_destructor; then :
23769
23770 cat >>confdefs.h <<_ACEOF
23771 #define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1
23772 _ACEOF
23773
23774 fi
23775
23776
23777
23778
23779 if test -n "$CONTRIB_DLZ"
23780 then
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23782 $as_echo "yes" >&6; }
23783 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
23784 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
23785
23786 else
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23788 $as_echo "no" >&6; }
23789 DLZ_DRIVER_RULES=/dev/null
23790 fi
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802 if test "yes" = "$cross_compiling"; then
23803 if test -z "$BUILD_CC"; then
23804 as_fn_error $? "BUILD_CC not set" "$LINENO" 5
23805 fi
23806 BUILD_CFLAGS="$BUILD_CFLAGS"
23807 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
23808 BUILD_LDFLAGS="$BUILD_LDFLAGS"
23809 BUILD_LIBS="$BUILD_LIBS"
23810 else
23811 BUILD_CC="$CC"
23812 BUILD_CFLAGS="$CFLAGS"
23813 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
23814 BUILD_LDFLAGS="$LDFLAGS"
23815 BUILD_LIBS="$LIBS"
23816 fi
23817
23818 NEWFLAGS=""
23819 for e in $BUILD_LDFLAGS ; do
23820 case $e in
23821 -L*)
23822 case $host_os in
23823 netbsd*)
23824 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23825 NEWFLAGS="$NEWFLAGS $e $ee"
23826 ;;
23827 freebsd*)
23828 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23829 NEWFLAGS="$NEWFLAGS $e $ee"
23830 ;;
23831 solaris*)
23832 ee=`echo $e | sed -e 's%^-L%-R%'`
23833 NEWFLAGS="$NEWFLAGS $e $ee"
23834 ;;
23835 *)
23836 NEWFLAGS="$NEWFLAGS $e"
23837 ;;
23838 esac
23839 ;;
23840 *)
23841 NEWFLAGS="$NEWFLAGS $e"
23842 ;;
23843 esac
23844 done
23845 BUILD_LDFLAGS="$NEWFLAGS"
23846
23847 NEWFLAGS=""
23848 for e in $DNS_GSSAPI_LIBS ; do
23849 case $e in
23850 -L*)
23851 case $host_os in
23852 netbsd*)
23853 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23854 NEWFLAGS="$NEWFLAGS $e $ee"
23855 ;;
23856 freebsd*)
23857 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23858 NEWFLAGS="$NEWFLAGS $e $ee"
23859 ;;
23860 solaris*)
23861 ee=`echo $e | sed -e 's%^-L%-R%'`
23862 NEWFLAGS="$NEWFLAGS $e $ee"
23863 ;;
23864 *)
23865 NEWFLAGS="$NEWFLAGS $e"
23866 ;;
23867 esac
23868 ;;
23869 *)
23870 NEWFLAGS="$NEWFLAGS $e"
23871 ;;
23872 esac
23873 done
23874 DNS_GSSAPI_LIBS="$NEWFLAGS"
23875
23876 NEWFLAGS=""
23877 for e in $ISC_OPENSSL_LIBS ; do
23878 case $e in
23879 -L*)
23880 case $host_os in
23881 netbsd*)
23882 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23883 NEWFLAGS="$NEWFLAGS $e $ee"
23884 ;;
23885 freebsd*)
23886 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23887 NEWFLAGS="$NEWFLAGS $e $ee"
23888 ;;
23889 solaris*)
23890 ee=`echo $e | sed -e 's%^-L%-R%'`
23891 NEWFLAGS="$NEWFLAGS $e $ee"
23892 ;;
23893 *)
23894 NEWFLAGS="$NEWFLAGS $e"
23895 ;;
23896 esac
23897 ;;
23898 *)
23899 NEWFLAGS="$NEWFLAGS $e"
23900 ;;
23901 esac
23902 done
23903 ISC_OPENSSL_LIBS="$NEWFLAGS"
23904
23905 NEWFLAGS=""
23906 for e in $DNS_CRYPTO_LIBS ; do
23907 case $e in
23908 -L*)
23909 case $host_os in
23910 netbsd*)
23911 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23912 NEWFLAGS="$NEWFLAGS $e $ee"
23913 ;;
23914 freebsd*)
23915 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23916 NEWFLAGS="$NEWFLAGS $e $ee"
23917 ;;
23918 solaris*)
23919 ee=`echo $e | sed -e 's%^-L%-R%'`
23920 NEWFLAGS="$NEWFLAGS $e $ee"
23921 ;;
23922 *)
23923 NEWFLAGS="$NEWFLAGS $e"
23924 ;;
23925 esac
23926 ;;
23927 *)
23928 NEWFLAGS="$NEWFLAGS $e"
23929 ;;
23930 esac
23931 done
23932 DNS_CRYPTO_LIBS="$NEWFLAGS"
23933
23934
23935
23936
23937
23938
23939
23940 #
23941 # Commands to run at the end of config.status.
23942 # Don't just put these into configure, it won't work right if somebody
23943 # runs config.status directly (which autoconf allows).
23944 #
23945
23946 ac_config_commands="$ac_config_commands chmod"
23947
23948
23949 #
23950 # Files to configure. These are listed here because we used to
23951 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
23952 # elsewhere if there's a good reason for doing so.
23953 #
23954
23955 ac_config_files="$ac_config_files 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/plugins/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/Makefile 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/Makefile bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/python/isc/utils.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/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile 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/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/man/Makefile doc/misc/Makefile fuzz/Makefile 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/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/netmgr/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/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 make/Makefile make/mkdep unit/unittest.sh util/check-make-install"
23956
23957
23958 #
23959 # Do it
23960 #
23961
23962 cat >confcache <<\_ACEOF
23963 # This file is a shell script that caches the results of configure
23964 # tests run on this system so they can be shared between configure
23965 # scripts and configure runs, see configure's option --config-cache.
23966 # It is not useful on other systems. If it contains results you don't
23967 # want to keep, you may remove or edit it.
23968 #
23969 # config.status only pays attention to the cache file if you give it
23970 # the --recheck option to rerun configure.
23971 #
23972 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23974 # following values.
23975
23976 _ACEOF
23977
23978 # The following way of writing the cache mishandles newlines in values,
23979 # but we know of no workaround that is simple, portable, and efficient.
23980 # So, we kill variables containing newlines.
23981 # Ultrix sh set writes to stderr and can't be redirected directly,
23982 # and sets the high bit in the cache file unless we assign to the vars.
23983 (
23984 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23985 eval ac_val=\$$ac_var
23986 case $ac_val in #(
23987 *${as_nl}*)
23988 case $ac_var in #(
23989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23991 esac
23992 case $ac_var in #(
23993 _ | IFS | as_nl) ;; #(
23994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23995 *) { eval $ac_var=; unset $ac_var;} ;;
23996 esac ;;
23997 esac
23998 done
23999
24000 (set) 2>&1 |
24001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24002 *${as_nl}ac_space=\ *)
24003 # `set' does not quote correctly, so add quotes: double-quote
24004 # substitution turns \\\\ into \\, and sed turns \\ into \.
24005 sed -n \
24006 "s/'/'\\\\''/g;
24007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24008 ;; #(
24009 *)
24010 # `set' quotes correctly as required by POSIX, so do not add quotes.
24011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24012 ;;
24013 esac |
24014 sort
24015 ) |
24016 sed '
24017 /^ac_cv_env_/b end
24018 t clear
24019 :clear
24020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24021 t end
24022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24023 :end' >>confcache
24024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24025 if test -w "$cache_file"; then
24026 if test "x$cache_file" != "x/dev/null"; then
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24028 $as_echo "$as_me: updating cache $cache_file" >&6;}
24029 if test ! -f "$cache_file" || test -h "$cache_file"; then
24030 cat confcache >"$cache_file"
24031 else
24032 case $cache_file in #(
24033 */* | ?:*)
24034 mv -f confcache "$cache_file"$$ &&
24035 mv -f "$cache_file"$$ "$cache_file" ;; #(
24036 *)
24037 mv -f confcache "$cache_file" ;;
24038 esac
24039 fi
24040 fi
24041 else
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24043 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24044 fi
24045 fi
24046 rm -f confcache
24047
24048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24049 # Let make expand exec_prefix.
24050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24051
24052 DEFS=-DHAVE_CONFIG_H
24053
24054 ac_libobjs=
24055 ac_ltlibobjs=
24056 U=
24057 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24058 # 1. Remove the extension, and $U if already installed.
24059 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24060 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24061 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24062 # will be set to the directory where LIBOBJS objects are built.
24063 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24064 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24065 done
24066 LIBOBJS=$ac_libobjs
24067
24068 LTLIBOBJS=$ac_ltlibobjs
24069
24070
24071 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24072 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24074 fi
24075
24076 if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
24077 as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
24078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24079 fi
24080 if test -z "${HAVE_XELATEX_TRUE}" && test -z "${HAVE_XELATEX_FALSE}"; then
24081 as_fn_error $? "conditional \"HAVE_XELATEX\" was never defined.
24082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24083 fi
24084
24085 : "${CONFIG_STATUS=./config.status}"
24086 ac_write_fail=0
24087 ac_clean_files_save=$ac_clean_files
24088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24090 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24091 as_write_fail=0
24092 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24093 #! $SHELL
24094 # Generated by $as_me.
24095 # Run this file to recreate the current configuration.
24096 # Compiler output produced by configure, useful for debugging
24097 # configure, is in config.log if it exists.
24098
24099 debug=false
24100 ac_cs_recheck=false
24101 ac_cs_silent=false
24102
24103 SHELL=\${CONFIG_SHELL-$SHELL}
24104 export SHELL
24105 _ASEOF
24106 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24107 ## -------------------- ##
24108 ## M4sh Initialization. ##
24109 ## -------------------- ##
24110
24111 # Be more Bourne compatible
24112 DUALCASE=1; export DUALCASE # for MKS sh
24113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24114 emulate sh
24115 NULLCMD=:
24116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24117 # is contrary to our usage. Disable this feature.
24118 alias -g '${1+"$@"}'='"$@"'
24119 setopt NO_GLOB_SUBST
24120 else
24121 case `(set -o) 2>/dev/null` in #(
24122 *posix*) :
24123 set -o posix ;; #(
24124 *) :
24125 ;;
24126 esac
24127 fi
24128
24129
24130 as_nl='
24131 '
24132 export as_nl
24133 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24134 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24137 # Prefer a ksh shell builtin over an external printf program on Solaris,
24138 # but without wasting forks for bash or zsh.
24139 if test -z "$BASH_VERSION$ZSH_VERSION" \
24140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24141 as_echo='print -r --'
24142 as_echo_n='print -rn --'
24143 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24144 as_echo='printf %s\n'
24145 as_echo_n='printf %s'
24146 else
24147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24149 as_echo_n='/usr/ucb/echo -n'
24150 else
24151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24152 as_echo_n_body='eval
24153 arg=$1;
24154 case $arg in #(
24155 *"$as_nl"*)
24156 expr "X$arg" : "X\\(.*\\)$as_nl";
24157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24158 esac;
24159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24160 '
24161 export as_echo_n_body
24162 as_echo_n='sh -c $as_echo_n_body as_echo'
24163 fi
24164 export as_echo_body
24165 as_echo='sh -c $as_echo_body as_echo'
24166 fi
24167
24168 # The user is always right.
24169 if test "${PATH_SEPARATOR+set}" != set; then
24170 PATH_SEPARATOR=:
24171 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24172 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24173 PATH_SEPARATOR=';'
24174 }
24175 fi
24176
24177
24178 # IFS
24179 # We need space, tab and new line, in precisely that order. Quoting is
24180 # there to prevent editors from complaining about space-tab.
24181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24182 # splitting by setting IFS to empty value.)
24183 IFS=" "" $as_nl"
24184
24185 # Find who we are. Look in the path if we contain no directory separator.
24186 as_myself=
24187 case $0 in #((
24188 *[\\/]* ) as_myself=$0 ;;
24189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24190 for as_dir in $PATH
24191 do
24192 IFS=$as_save_IFS
24193 test -z "$as_dir" && as_dir=.
24194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24195 done
24196 IFS=$as_save_IFS
24197
24198 ;;
24199 esac
24200 # We did not find ourselves, most probably we were run as `sh COMMAND'
24201 # in which case we are not to be found in the path.
24202 if test "x$as_myself" = x; then
24203 as_myself=$0
24204 fi
24205 if test ! -f "$as_myself"; then
24206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24207 exit 1
24208 fi
24209
24210 # Unset variables that we do not need and which cause bugs (e.g. in
24211 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24212 # suppresses any "Segmentation fault" message there. '((' could
24213 # trigger a bug in pdksh 5.2.14.
24214 for as_var in BASH_ENV ENV MAIL MAILPATH
24215 do eval test x\${$as_var+set} = xset \
24216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24217 done
24218 PS1='$ '
24219 PS2='> '
24220 PS4='+ '
24221
24222 # NLS nuisances.
24223 LC_ALL=C
24224 export LC_ALL
24225 LANGUAGE=C
24226 export LANGUAGE
24227
24228 # CDPATH.
24229 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24230
24231
24232 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24233 # ----------------------------------------
24234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24236 # script with STATUS, using 1 if that was 0.
24237 as_fn_error ()
24238 {
24239 as_status=$1; test $as_status -eq 0 && as_status=1
24240 if test "$4"; then
24241 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24243 fi
24244 $as_echo "$as_me: error: $2" >&2
24245 as_fn_exit $as_status
24246 } # as_fn_error
24247
24248
24249 # as_fn_set_status STATUS
24250 # -----------------------
24251 # Set $? to STATUS, without forking.
24252 as_fn_set_status ()
24253 {
24254 return $1
24255 } # as_fn_set_status
24256
24257 # as_fn_exit STATUS
24258 # -----------------
24259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24260 as_fn_exit ()
24261 {
24262 set +e
24263 as_fn_set_status $1
24264 exit $1
24265 } # as_fn_exit
24266
24267 # as_fn_unset VAR
24268 # ---------------
24269 # Portably unset VAR.
24270 as_fn_unset ()
24271 {
24272 { eval $1=; unset $1;}
24273 }
24274 as_unset=as_fn_unset
24275 # as_fn_append VAR VALUE
24276 # ----------------------
24277 # Append the text in VALUE to the end of the definition contained in VAR. Take
24278 # advantage of any shell optimizations that allow amortized linear growth over
24279 # repeated appends, instead of the typical quadratic growth present in naive
24280 # implementations.
24281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24282 eval 'as_fn_append ()
24283 {
24284 eval $1+=\$2
24285 }'
24286 else
24287 as_fn_append ()
24288 {
24289 eval $1=\$$1\$2
24290 }
24291 fi # as_fn_append
24292
24293 # as_fn_arith ARG...
24294 # ------------------
24295 # Perform arithmetic evaluation on the ARGs, and store the result in the
24296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24297 # must be portable across $(()) and expr.
24298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24299 eval 'as_fn_arith ()
24300 {
24301 as_val=$(( $* ))
24302 }'
24303 else
24304 as_fn_arith ()
24305 {
24306 as_val=`expr "$@" || test $? -eq 1`
24307 }
24308 fi # as_fn_arith
24309
24310
24311 if expr a : '\(a\)' >/dev/null 2>&1 &&
24312 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24313 as_expr=expr
24314 else
24315 as_expr=false
24316 fi
24317
24318 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24319 as_basename=basename
24320 else
24321 as_basename=false
24322 fi
24323
24324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24325 as_dirname=dirname
24326 else
24327 as_dirname=false
24328 fi
24329
24330 as_me=`$as_basename -- "$0" ||
24331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24332 X"$0" : 'X\(//\)$' \| \
24333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24334 $as_echo X/"$0" |
24335 sed '/^.*\/\([^/][^/]*\)\/*$/{
24336 s//\1/
24337 q
24338 }
24339 /^X\/\(\/\/\)$/{
24340 s//\1/
24341 q
24342 }
24343 /^X\/\(\/\).*/{
24344 s//\1/
24345 q
24346 }
24347 s/.*/./; q'`
24348
24349 # Avoid depending upon Character Ranges.
24350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24353 as_cr_digits='0123456789'
24354 as_cr_alnum=$as_cr_Letters$as_cr_digits
24355
24356 ECHO_C= ECHO_N= ECHO_T=
24357 case `echo -n x` in #(((((
24358 -n*)
24359 case `echo 'xy\c'` in
24360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24361 xy) ECHO_C='\c';;
24362 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24363 ECHO_T=' ';;
24364 esac;;
24365 *)
24366 ECHO_N='-n';;
24367 esac
24368
24369 rm -f conf$$ conf$$.exe conf$$.file
24370 if test -d conf$$.dir; then
24371 rm -f conf$$.dir/conf$$.file
24372 else
24373 rm -f conf$$.dir
24374 mkdir conf$$.dir 2>/dev/null
24375 fi
24376 if (echo >conf$$.file) 2>/dev/null; then
24377 if ln -s conf$$.file conf$$ 2>/dev/null; then
24378 as_ln_s='ln -s'
24379 # ... but there are two gotchas:
24380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24382 # In both cases, we have to default to `cp -pR'.
24383 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24384 as_ln_s='cp -pR'
24385 elif ln conf$$.file conf$$ 2>/dev/null; then
24386 as_ln_s=ln
24387 else
24388 as_ln_s='cp -pR'
24389 fi
24390 else
24391 as_ln_s='cp -pR'
24392 fi
24393 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24394 rmdir conf$$.dir 2>/dev/null
24395
24396
24397 # as_fn_mkdir_p
24398 # -------------
24399 # Create "$as_dir" as a directory, including parents if necessary.
24400 as_fn_mkdir_p ()
24401 {
24402
24403 case $as_dir in #(
24404 -*) as_dir=./$as_dir;;
24405 esac
24406 test -d "$as_dir" || eval $as_mkdir_p || {
24407 as_dirs=
24408 while :; do
24409 case $as_dir in #(
24410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24411 *) as_qdir=$as_dir;;
24412 esac
24413 as_dirs="'$as_qdir' $as_dirs"
24414 as_dir=`$as_dirname -- "$as_dir" ||
24415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24416 X"$as_dir" : 'X\(//\)[^/]' \| \
24417 X"$as_dir" : 'X\(//\)$' \| \
24418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24419 $as_echo X"$as_dir" |
24420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24421 s//\1/
24422 q
24423 }
24424 /^X\(\/\/\)[^/].*/{
24425 s//\1/
24426 q
24427 }
24428 /^X\(\/\/\)$/{
24429 s//\1/
24430 q
24431 }
24432 /^X\(\/\).*/{
24433 s//\1/
24434 q
24435 }
24436 s/.*/./; q'`
24437 test -d "$as_dir" && break
24438 done
24439 test -z "$as_dirs" || eval "mkdir $as_dirs"
24440 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24441
24442
24443 } # as_fn_mkdir_p
24444 if mkdir -p . 2>/dev/null; then
24445 as_mkdir_p='mkdir -p "$as_dir"'
24446 else
24447 test -d ./-p && rmdir ./-p
24448 as_mkdir_p=false
24449 fi
24450
24451
24452 # as_fn_executable_p FILE
24453 # -----------------------
24454 # Test if FILE is an executable regular file.
24455 as_fn_executable_p ()
24456 {
24457 test -f "$1" && test -x "$1"
24458 } # as_fn_executable_p
24459 as_test_x='test -x'
24460 as_executable_p=as_fn_executable_p
24461
24462 # Sed expression to map a string onto a valid CPP name.
24463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24464
24465 # Sed expression to map a string onto a valid variable name.
24466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24467
24468
24469 exec 6>&1
24470 ## ----------------------------------- ##
24471 ## Main body of $CONFIG_STATUS script. ##
24472 ## ----------------------------------- ##
24473 _ASEOF
24474 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24475
24476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24477 # Save the log message, to keep $0 and so on meaningful, and to
24478 # report actual input values of CONFIG_FILES etc. instead of their
24479 # values after options handling.
24480 ac_log="
24481 This file was extended by BIND $as_me 9.16, which was
24482 generated by GNU Autoconf 2.69. Invocation command line was
24483
24484 CONFIG_FILES = $CONFIG_FILES
24485 CONFIG_HEADERS = $CONFIG_HEADERS
24486 CONFIG_LINKS = $CONFIG_LINKS
24487 CONFIG_COMMANDS = $CONFIG_COMMANDS
24488 $ $0 $@
24489
24490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24491 "
24492
24493 _ACEOF
24494
24495 case $ac_config_files in *"
24496 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24497 esac
24498
24499 case $ac_config_headers in *"
24500 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24501 esac
24502
24503
24504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24505 # Files that config.status was made for.
24506 config_files="$ac_config_files"
24507 config_headers="$ac_config_headers"
24508 config_commands="$ac_config_commands"
24509
24510 _ACEOF
24511
24512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24513 ac_cs_usage="\
24514 \`$as_me' instantiates files and other configuration actions
24515 from templates according to the current configuration. Unless the files
24516 and actions are specified as TAGs, all are instantiated by default.
24517
24518 Usage: $0 [OPTION]... [TAG]...
24519
24520 -h, --help print this help, then exit
24521 -V, --version print version number and configuration settings, then exit
24522 --config print configuration, then exit
24523 -q, --quiet, --silent
24524 do not print progress messages
24525 -d, --debug don't remove temporary files
24526 --recheck update $as_me by reconfiguring in the same conditions
24527 --file=FILE[:TEMPLATE]
24528 instantiate the configuration file FILE
24529 --header=FILE[:TEMPLATE]
24530 instantiate the configuration header FILE
24531
24532 Configuration files:
24533 $config_files
24534
24535 Configuration headers:
24536 $config_headers
24537
24538 Configuration commands:
24539 $config_commands
24540
24541 Report bugs to <info@isc.org>.
24542 BIND home page: <https://www.isc.org/downloads/>."
24543
24544 _ACEOF
24545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24546 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24547 ac_cs_version="\\
24548 BIND config.status 9.16
24549 configured by $0, generated by GNU Autoconf 2.69,
24550 with options \\"\$ac_cs_config\\"
24551
24552 Copyright (C) 2012 Free Software Foundation, Inc.
24553 This config.status script is free software; the Free Software Foundation
24554 gives unlimited permission to copy, distribute and modify it."
24555
24556 ac_pwd='$ac_pwd'
24557 srcdir='$srcdir'
24558 INSTALL='$INSTALL'
24559 MKDIR_P='$MKDIR_P'
24560 AWK='$AWK'
24561 test -n "\$AWK" || AWK=awk
24562 _ACEOF
24563
24564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24565 # The default lists apply if the user does not specify any file.
24566 ac_need_defaults=:
24567 while test $# != 0
24568 do
24569 case $1 in
24570 --*=?*)
24571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24573 ac_shift=:
24574 ;;
24575 --*=)
24576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24577 ac_optarg=
24578 ac_shift=:
24579 ;;
24580 *)
24581 ac_option=$1
24582 ac_optarg=$2
24583 ac_shift=shift
24584 ;;
24585 esac
24586
24587 case $ac_option in
24588 # Handling of the options.
24589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24590 ac_cs_recheck=: ;;
24591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24592 $as_echo "$ac_cs_version"; exit ;;
24593 --config | --confi | --conf | --con | --co | --c )
24594 $as_echo "$ac_cs_config"; exit ;;
24595 --debug | --debu | --deb | --de | --d | -d )
24596 debug=: ;;
24597 --file | --fil | --fi | --f )
24598 $ac_shift
24599 case $ac_optarg in
24600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24601 '') as_fn_error $? "missing file argument" ;;
24602 esac
24603 as_fn_append CONFIG_FILES " '$ac_optarg'"
24604 ac_need_defaults=false;;
24605 --header | --heade | --head | --hea )
24606 $ac_shift
24607 case $ac_optarg in
24608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24609 esac
24610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24611 ac_need_defaults=false;;
24612 --he | --h)
24613 # Conflict between --help and --header
24614 as_fn_error $? "ambiguous option: \`$1'
24615 Try \`$0 --help' for more information.";;
24616 --help | --hel | -h )
24617 $as_echo "$ac_cs_usage"; exit ;;
24618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24620 ac_cs_silent=: ;;
24621
24622 # This is an error.
24623 -*) as_fn_error $? "unrecognized option: \`$1'
24624 Try \`$0 --help' for more information." ;;
24625
24626 *) as_fn_append ac_config_targets " $1"
24627 ac_need_defaults=false ;;
24628
24629 esac
24630 shift
24631 done
24632
24633 ac_configure_extra_args=
24634
24635 if $ac_cs_silent; then
24636 exec 6>/dev/null
24637 ac_configure_extra_args="$ac_configure_extra_args --silent"
24638 fi
24639
24640 _ACEOF
24641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24642 if \$ac_cs_recheck; then
24643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24644 shift
24645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24646 CONFIG_SHELL='$SHELL'
24647 export CONFIG_SHELL
24648 exec "\$@"
24649 fi
24650
24651 _ACEOF
24652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24653 exec 5>>config.log
24654 {
24655 echo
24656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24657 ## Running $as_me. ##
24658 _ASBOX
24659 $as_echo "$ac_log"
24660 } >&5
24661
24662 _ACEOF
24663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24664 #
24665 # INIT-COMMANDS
24666 #
24667
24668
24669 # The HP-UX ksh and POSIX shell print the target directory to stdout
24670 # if CDPATH is set.
24671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24672
24673 sed_quote_subst='$sed_quote_subst'
24674 double_quote_subst='$double_quote_subst'
24675 delay_variable_subst='$delay_variable_subst'
24676 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24677 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24678 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24679 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24680 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24681 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24682 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24683 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24684 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24685 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24686 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24687 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24688 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24689 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24690 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24691 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24692 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24693 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24694 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24695 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24696 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24698 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24699 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24700 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24701 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24702 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24703 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24704 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24705 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24706 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24707 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24708 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24709 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24710 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24711 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24712 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24713 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24714 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24715 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24716 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24717 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24718 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24719 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24732 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24733 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24734 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"`'
24735 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24736 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24737 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24738 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24739 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24740 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24741 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24742 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24743 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24744 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24745 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24746 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24747 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24748 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24749 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24750 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24751 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24752 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24753 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24754 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24755 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24756 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24757 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24758 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24759 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24760 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24761 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24762 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24763 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24764 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24765 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24766 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24767 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24768 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24769 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24770 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24771 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24772 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24773 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24774 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24775 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24776 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24777 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24778 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24779 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24780 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24781 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24782 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24783 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24784 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24785 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24786 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24787 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24788 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24789 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24790 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24791 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24792 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24793 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24794 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24795 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24796 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24797 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24798 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24799 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24800 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24801 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24802 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24803 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24804 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24805 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24806 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24807 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24808 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24809 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24810 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24811
24812 LTCC='$LTCC'
24813 LTCFLAGS='$LTCFLAGS'
24814 compiler='$compiler_DEFAULT'
24815
24816 # A function that is used when there is no print builtin or printf.
24817 func_fallback_echo ()
24818 {
24819 eval 'cat <<_LTECHO_EOF
24820 \$1
24821 _LTECHO_EOF'
24822 }
24823
24824 # Quote evaled strings.
24825 for var in SHELL \
24826 ECHO \
24827 PATH_SEPARATOR \
24828 SED \
24829 GREP \
24830 EGREP \
24831 FGREP \
24832 LD \
24833 NM \
24834 LN_S \
24835 lt_SP2NL \
24836 lt_NL2SP \
24837 reload_flag \
24838 OBJDUMP \
24839 deplibs_check_method \
24840 file_magic_cmd \
24841 file_magic_glob \
24842 want_nocaseglob \
24843 DLLTOOL \
24844 sharedlib_from_linklib_cmd \
24845 AR \
24846 AR_FLAGS \
24847 archiver_list_spec \
24848 STRIP \
24849 RANLIB \
24850 CC \
24851 CFLAGS \
24852 compiler \
24853 lt_cv_sys_global_symbol_pipe \
24854 lt_cv_sys_global_symbol_to_cdecl \
24855 lt_cv_sys_global_symbol_to_import \
24856 lt_cv_sys_global_symbol_to_c_name_address \
24857 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24858 lt_cv_nm_interface \
24859 nm_file_list_spec \
24860 lt_cv_truncate_bin \
24861 lt_prog_compiler_no_builtin_flag \
24862 lt_prog_compiler_pic \
24863 lt_prog_compiler_wl \
24864 lt_prog_compiler_static \
24865 lt_cv_prog_compiler_c_o \
24866 need_locks \
24867 MANIFEST_TOOL \
24868 DSYMUTIL \
24869 NMEDIT \
24870 LIPO \
24871 OTOOL \
24872 OTOOL64 \
24873 shrext_cmds \
24874 export_dynamic_flag_spec \
24875 whole_archive_flag_spec \
24876 compiler_needs_object \
24877 with_gnu_ld \
24878 allow_undefined_flag \
24879 no_undefined_flag \
24880 hardcode_libdir_flag_spec \
24881 hardcode_libdir_separator \
24882 exclude_expsyms \
24883 include_expsyms \
24884 file_list_spec \
24885 variables_saved_for_relink \
24886 libname_spec \
24887 library_names_spec \
24888 soname_spec \
24889 install_override_mode \
24890 finish_eval \
24891 old_striplib \
24892 striplib; do
24893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24894 *[\\\\\\\`\\"\\\$]*)
24895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24896 ;;
24897 *)
24898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24899 ;;
24900 esac
24901 done
24902
24903 # Double-quote double-evaled strings.
24904 for var in reload_cmds \
24905 old_postinstall_cmds \
24906 old_postuninstall_cmds \
24907 old_archive_cmds \
24908 extract_expsyms_cmds \
24909 old_archive_from_new_cmds \
24910 old_archive_from_expsyms_cmds \
24911 archive_cmds \
24912 archive_expsym_cmds \
24913 module_cmds \
24914 module_expsym_cmds \
24915 export_symbols_cmds \
24916 prelink_cmds \
24917 postlink_cmds \
24918 postinstall_cmds \
24919 postuninstall_cmds \
24920 finish_cmds \
24921 sys_lib_search_path_spec \
24922 configure_time_dlsearch_path \
24923 configure_time_lt_sys_library_path; do
24924 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24925 *[\\\\\\\`\\"\\\$]*)
24926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24927 ;;
24928 *)
24929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24930 ;;
24931 esac
24932 done
24933
24934 ac_aux_dir='$ac_aux_dir'
24935
24936 # See if we are running on zsh, and set the options that allow our
24937 # commands through without removal of \ escapes INIT.
24938 if test -n "\${ZSH_VERSION+set}"; then
24939 setopt NO_GLOB_SUBST
24940 fi
24941
24942
24943 PACKAGE='$PACKAGE'
24944 VERSION='$VERSION'
24945 RM='$RM'
24946 ofile='$ofile'
24947
24948
24949
24950
24951 _ACEOF
24952
24953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24954
24955 # Handling of arguments.
24956 for ac_config_target in $ac_config_targets
24957 do
24958 case $ac_config_target in
24959 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24960 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24961 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
24962 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
24963 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
24964 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
24965 "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
24966 "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
24967 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
24968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24969 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
24970 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
24971 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
24972 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
24973 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
24974 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
24975 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
24976 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
24977 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
24978 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
24979 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
24980 "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
24981 "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
24982 "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
24983 "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
24984 "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
24985 "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
24986 "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
24987 "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
24988 "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
24989 "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
24990 "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
24991 "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
24992 "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
24993 "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
24994 "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
24995 "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
24996 "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
24997 "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
24998 "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
24999 "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
25000 "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
25001 "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
25002 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
25003 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
25004 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
25005 "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
25006 "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
25007 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
25008 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
25009 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
25010 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
25011 "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
25012 "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
25013 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
25014 "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
25015 "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
25016 "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
25017 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
25018 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
25019 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
25020 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
25021 "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
25022 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25023 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
25024 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
25025 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
25026 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
25027 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
25028 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25029 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
25030 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25031 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
25032 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
25033 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
25034 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
25035 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
25036 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
25037 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
25038 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
25039 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
25040 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
25041 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
25042 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
25043 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
25044 "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
25045 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
25046 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
25047 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
25048 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
25049 "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
25050 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
25051 "lib/isc/netmgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/netmgr/Makefile" ;;
25052 "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
25053 "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
25054 "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
25055 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
25056 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
25057 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
25058 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
25059 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
25060 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
25061 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
25062 "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
25063 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
25064 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
25065 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
25066 "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
25067 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
25068 "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
25069 "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
25070 "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
25071 "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
25072 "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
25073 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
25074 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
25075 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
25076 "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
25077
25078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25079 esac
25080 done
25081
25082
25083 # If the user did not use the arguments to specify the items to instantiate,
25084 # then the envvar interface is used. Set only those that are not.
25085 # We use the long form for the default assignment because of an extremely
25086 # bizarre bug on SunOS 4.1.3.
25087 if $ac_need_defaults; then
25088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25091 fi
25092
25093 # Have a temporary directory for convenience. Make it in the build tree
25094 # simply because there is no reason against having it here, and in addition,
25095 # creating and moving files from /tmp can sometimes cause problems.
25096 # Hook for its removal unless debugging.
25097 # Note that there is a small window in which the directory will not be cleaned:
25098 # after its creation but before its name has been assigned to `$tmp'.
25099 $debug ||
25100 {
25101 tmp= ac_tmp=
25102 trap 'exit_status=$?
25103 : "${ac_tmp:=$tmp}"
25104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25105 ' 0
25106 trap 'as_fn_exit 1' 1 2 13 15
25107 }
25108 # Create a (secure) tmp directory for tmp files.
25109
25110 {
25111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25112 test -d "$tmp"
25113 } ||
25114 {
25115 tmp=./conf$$-$RANDOM
25116 (umask 077 && mkdir "$tmp")
25117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25118 ac_tmp=$tmp
25119
25120 # Set up the scripts for CONFIG_FILES section.
25121 # No need to generate them if there are no CONFIG_FILES.
25122 # This happens for instance with `./config.status config.h'.
25123 if test -n "$CONFIG_FILES"; then
25124
25125 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25126 ac_cs_awk_getline=:
25127 ac_cs_awk_pipe_init=
25128 ac_cs_awk_read_file='
25129 while ((getline aline < (F[key])) > 0)
25130 print(aline)
25131 close(F[key])'
25132 ac_cs_awk_pipe_fini=
25133 else
25134 ac_cs_awk_getline=false
25135 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25136 ac_cs_awk_read_file='
25137 print "|#_!!_#|"
25138 print "cat " F[key] " &&"
25139 '$ac_cs_awk_pipe_init
25140 # The final `:' finishes the AND list.
25141 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25142 fi
25143 ac_cr=`echo X | tr X '\015'`
25144 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25145 # But we know of no other shell where ac_cr would be empty at this
25146 # point, so we can use a bashism as a fallback.
25147 if test "x$ac_cr" = x; then
25148 eval ac_cr=\$\'\\r\'
25149 fi
25150 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25151 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25152 ac_cs_awk_cr='\\r'
25153 else
25154 ac_cs_awk_cr=$ac_cr
25155 fi
25156
25157 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25158 _ACEOF
25159
25160 # Create commands to substitute file output variables.
25161 {
25162 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25163 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
25164 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25165 echo "_ACAWK" &&
25166 echo "_ACEOF"
25167 } >conf$$files.sh &&
25168 . ./conf$$files.sh ||
25169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25170 rm -f conf$$files.sh
25171
25172 {
25173 echo "cat >conf$$subs.awk <<_ACEOF" &&
25174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25175 echo "_ACEOF"
25176 } >conf$$subs.sh ||
25177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25179 ac_delim='%!_!# '
25180 for ac_last_try in false false false false false :; do
25181 . ./conf$$subs.sh ||
25182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25183
25184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25185 if test $ac_delim_n = $ac_delim_num; then
25186 break
25187 elif $ac_last_try; then
25188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25189 else
25190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25191 fi
25192 done
25193 rm -f conf$$subs.sh
25194
25195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25196 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25197 _ACEOF
25198 sed -n '
25199 h
25200 s/^/S["/; s/!.*/"]=/
25201 p
25202 g
25203 s/^[^!]*!//
25204 :repl
25205 t repl
25206 s/'"$ac_delim"'$//
25207 t delim
25208 :nl
25209 h
25210 s/\(.\{148\}\)..*/\1/
25211 t more1
25212 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25213 p
25214 n
25215 b repl
25216 :more1
25217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25218 p
25219 g
25220 s/.\{148\}//
25221 t nl
25222 :delim
25223 h
25224 s/\(.\{148\}\)..*/\1/
25225 t more2
25226 s/["\\]/\\&/g; s/^/"/; s/$/"/
25227 p
25228 b
25229 :more2
25230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25231 p
25232 g
25233 s/.\{148\}//
25234 t delim
25235 ' <conf$$subs.awk | sed '
25236 /^[^""]/{
25237 N
25238 s/\n//
25239 }
25240 ' >>$CONFIG_STATUS || ac_write_fail=1
25241 rm -f conf$$subs.awk
25242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25243 _ACAWK
25244 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25245 for (key in S) S_is_set[key] = 1
25246 FS = ""
25247 \$ac_cs_awk_pipe_init
25248 }
25249 {
25250 line = $ 0
25251 nfields = split(line, field, "@")
25252 substed = 0
25253 len = length(field[1])
25254 for (i = 2; i < nfields; i++) {
25255 key = field[i]
25256 keylen = length(key)
25257 if (S_is_set[key]) {
25258 value = S[key]
25259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25260 len += length(value) + length(field[++i])
25261 substed = 1
25262 } else
25263 len += 1 + keylen
25264 }
25265 if (nfields == 3 && !substed) {
25266 key = field[2]
25267 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25268 \$ac_cs_awk_read_file
25269 next
25270 }
25271 }
25272 print line
25273 }
25274 \$ac_cs_awk_pipe_fini
25275 _ACAWK
25276 _ACEOF
25277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25278 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25279 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25280 else
25281 cat
25282 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25283 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25284 _ACEOF
25285
25286 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25287 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25288 # trailing colons and then remove the whole line if VPATH becomes empty
25289 # (actually we leave an empty line to preserve line numbers).
25290 if test "x$srcdir" = x.; then
25291 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25292 h
25293 s///
25294 s/^/:/
25295 s/[ ]*$/:/
25296 s/:\$(srcdir):/:/g
25297 s/:\${srcdir}:/:/g
25298 s/:@srcdir@:/:/g
25299 s/^:*//
25300 s/:*$//
25301 x
25302 s/\(=[ ]*\).*/\1/
25303 G
25304 s/\n//
25305 s/^[^=]*=[ ]*$//
25306 }'
25307 fi
25308
25309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25310 fi # test -n "$CONFIG_FILES"
25311
25312 # Set up the scripts for CONFIG_HEADERS section.
25313 # No need to generate them if there are no CONFIG_HEADERS.
25314 # This happens for instance with `./config.status Makefile'.
25315 if test -n "$CONFIG_HEADERS"; then
25316 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25317 BEGIN {
25318 _ACEOF
25319
25320 # Transform confdefs.h into an awk script `defines.awk', embedded as
25321 # here-document in config.status, that substitutes the proper values into
25322 # config.h.in to produce config.h.
25323
25324 # Create a delimiter string that does not exist in confdefs.h, to ease
25325 # handling of long lines.
25326 ac_delim='%!_!# '
25327 for ac_last_try in false false :; do
25328 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25329 if test -z "$ac_tt"; then
25330 break
25331 elif $ac_last_try; then
25332 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25333 else
25334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25335 fi
25336 done
25337
25338 # For the awk script, D is an array of macro values keyed by name,
25339 # likewise P contains macro parameters if any. Preserve backslash
25340 # newline sequences.
25341
25342 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25343 sed -n '
25344 s/.\{148\}/&'"$ac_delim"'/g
25345 t rset
25346 :rset
25347 s/^[ ]*#[ ]*define[ ][ ]*/ /
25348 t def
25349 d
25350 :def
25351 s/\\$//
25352 t bsnl
25353 s/["\\]/\\&/g
25354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25355 D["\1"]=" \3"/p
25356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25357 d
25358 :bsnl
25359 s/["\\]/\\&/g
25360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25361 D["\1"]=" \3\\\\\\n"\\/p
25362 t cont
25363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25364 t cont
25365 d
25366 :cont
25367 n
25368 s/.\{148\}/&'"$ac_delim"'/g
25369 t clear
25370 :clear
25371 s/\\$//
25372 t bsnlc
25373 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25374 d
25375 :bsnlc
25376 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25377 b cont
25378 ' <confdefs.h | sed '
25379 s/'"$ac_delim"'/"\\\
25380 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25381
25382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25383 for (key in D) D_is_set[key] = 1
25384 FS = ""
25385 }
25386 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25387 line = \$ 0
25388 split(line, arg, " ")
25389 if (arg[1] == "#") {
25390 defundef = arg[2]
25391 mac1 = arg[3]
25392 } else {
25393 defundef = substr(arg[1], 2)
25394 mac1 = arg[2]
25395 }
25396 split(mac1, mac2, "(") #)
25397 macro = mac2[1]
25398 prefix = substr(line, 1, index(line, defundef) - 1)
25399 if (D_is_set[macro]) {
25400 # Preserve the white space surrounding the "#".
25401 print prefix "define", macro P[macro] D[macro]
25402 next
25403 } else {
25404 # Replace #undef with comments. This is necessary, for example,
25405 # in the case of _POSIX_SOURCE, which is predefined and required
25406 # on some systems where configure will not decide to define it.
25407 if (defundef == "undef") {
25408 print "/*", prefix defundef, macro, "*/"
25409 next
25410 }
25411 }
25412 }
25413 { print }
25414 _ACAWK
25415 _ACEOF
25416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25417 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25418 fi # test -n "$CONFIG_HEADERS"
25419
25420
25421 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25422 shift
25423 for ac_tag
25424 do
25425 case $ac_tag in
25426 :[FHLC]) ac_mode=$ac_tag; continue;;
25427 esac
25428 case $ac_mode$ac_tag in
25429 :[FHL]*:*);;
25430 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25431 :[FH]-) ac_tag=-:-;;
25432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25433 esac
25434 ac_save_IFS=$IFS
25435 IFS=:
25436 set x $ac_tag
25437 IFS=$ac_save_IFS
25438 shift
25439 ac_file=$1
25440 shift
25441
25442 case $ac_mode in
25443 :L) ac_source=$1;;
25444 :[FH])
25445 ac_file_inputs=
25446 for ac_f
25447 do
25448 case $ac_f in
25449 -) ac_f="$ac_tmp/stdin";;
25450 *) # Look for the file first in the build tree, then in the source tree
25451 # (if the path is not absolute). The absolute path cannot be DOS-style,
25452 # because $ac_f cannot contain `:'.
25453 test -f "$ac_f" ||
25454 case $ac_f in
25455 [\\/$]*) false;;
25456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25457 esac ||
25458 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25459 esac
25460 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25461 as_fn_append ac_file_inputs " '$ac_f'"
25462 done
25463
25464 # Let's still pretend it is `configure' which instantiates (i.e., don't
25465 # use $as_me), people would be surprised to read:
25466 # /* config.h. Generated by config.status. */
25467 configure_input='Generated from '`
25468 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25469 `' by configure.'
25470 if test x"$ac_file" != x-; then
25471 configure_input="$ac_file. $configure_input"
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25473 $as_echo "$as_me: creating $ac_file" >&6;}
25474 fi
25475 # Neutralize special characters interpreted by sed in replacement strings.
25476 case $configure_input in #(
25477 *\&* | *\|* | *\\* )
25478 ac_sed_conf_input=`$as_echo "$configure_input" |
25479 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25480 *) ac_sed_conf_input=$configure_input;;
25481 esac
25482
25483 case $ac_tag in
25484 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25486 esac
25487 ;;
25488 esac
25489
25490 ac_dir=`$as_dirname -- "$ac_file" ||
25491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25492 X"$ac_file" : 'X\(//\)[^/]' \| \
25493 X"$ac_file" : 'X\(//\)$' \| \
25494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25495 $as_echo X"$ac_file" |
25496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25497 s//\1/
25498 q
25499 }
25500 /^X\(\/\/\)[^/].*/{
25501 s//\1/
25502 q
25503 }
25504 /^X\(\/\/\)$/{
25505 s//\1/
25506 q
25507 }
25508 /^X\(\/\).*/{
25509 s//\1/
25510 q
25511 }
25512 s/.*/./; q'`
25513 as_dir="$ac_dir"; as_fn_mkdir_p
25514 ac_builddir=.
25515
25516 case "$ac_dir" in
25517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25518 *)
25519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25520 # A ".." for each directory in $ac_dir_suffix.
25521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25522 case $ac_top_builddir_sub in
25523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25525 esac ;;
25526 esac
25527 ac_abs_top_builddir=$ac_pwd
25528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25529 # for backward compatibility:
25530 ac_top_builddir=$ac_top_build_prefix
25531
25532 case $srcdir in
25533 .) # We are building in place.
25534 ac_srcdir=.
25535 ac_top_srcdir=$ac_top_builddir_sub
25536 ac_abs_top_srcdir=$ac_pwd ;;
25537 [\\/]* | ?:[\\/]* ) # Absolute name.
25538 ac_srcdir=$srcdir$ac_dir_suffix;
25539 ac_top_srcdir=$srcdir
25540 ac_abs_top_srcdir=$srcdir ;;
25541 *) # Relative name.
25542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25543 ac_top_srcdir=$ac_top_build_prefix$srcdir
25544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25545 esac
25546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25547
25548
25549 case $ac_mode in
25550 :F)
25551 #
25552 # CONFIG_FILE
25553 #
25554
25555 case $INSTALL in
25556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25558 esac
25559 ac_MKDIR_P=$MKDIR_P
25560 case $MKDIR_P in
25561 [\\/$]* | ?:[\\/]* ) ;;
25562 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25563 esac
25564 _ACEOF
25565
25566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25567 # If the template does not know about datarootdir, expand it.
25568 # FIXME: This hack should be removed a few years after 2.60.
25569 ac_datarootdir_hack=; ac_datarootdir_seen=
25570 ac_sed_dataroot='
25571 /datarootdir/ {
25572 p
25573 q
25574 }
25575 /@datadir@/p
25576 /@docdir@/p
25577 /@infodir@/p
25578 /@localedir@/p
25579 /@mandir@/p'
25580 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25581 *datarootdir*) ac_datarootdir_seen=yes;;
25582 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25584 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25585 _ACEOF
25586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25587 ac_datarootdir_hack='
25588 s&@datadir@&$datadir&g
25589 s&@docdir@&$docdir&g
25590 s&@infodir@&$infodir&g
25591 s&@localedir@&$localedir&g
25592 s&@mandir@&$mandir&g
25593 s&\\\${datarootdir}&$datarootdir&g' ;;
25594 esac
25595 _ACEOF
25596
25597 # Neutralize VPATH when `$srcdir' = `.'.
25598 # Shell code in configure.ac might set extrasub.
25599 # FIXME: do we really want to maintain this feature?
25600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25601 ac_sed_extra="$ac_vpsub
25602 $extrasub
25603 _ACEOF
25604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25605 :t
25606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25607 s|@configure_input@|$ac_sed_conf_input|;t t
25608 s&@top_builddir@&$ac_top_builddir_sub&;t t
25609 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25610 s&@srcdir@&$ac_srcdir&;t t
25611 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25612 s&@top_srcdir@&$ac_top_srcdir&;t t
25613 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25614 s&@builddir@&$ac_builddir&;t t
25615 s&@abs_builddir@&$ac_abs_builddir&;t t
25616 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25617 s&@INSTALL@&$ac_INSTALL&;t t
25618 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25619 $ac_datarootdir_hack
25620 "
25621 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25622 if $ac_cs_awk_getline; then
25623 $AWK -f "$ac_tmp/subs.awk"
25624 else
25625 $AWK -f "$ac_tmp/subs.awk" | $SHELL
25626 fi \
25627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25628
25629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25634 which seems to be undefined. Please make sure it is defined" >&5
25635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25636 which seems to be undefined. Please make sure it is defined" >&2;}
25637
25638 rm -f "$ac_tmp/stdin"
25639 case $ac_file in
25640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25642 esac \
25643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25644 ;;
25645 :H)
25646 #
25647 # CONFIG_HEADER
25648 #
25649 if test x"$ac_file" != x-; then
25650 {
25651 $as_echo "/* $configure_input */" \
25652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25653 } >"$ac_tmp/config.h" \
25654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25658 else
25659 rm -f "$ac_file"
25660 mv "$ac_tmp/config.h" "$ac_file" \
25661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25662 fi
25663 else
25664 $as_echo "/* $configure_input */" \
25665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25666 || as_fn_error $? "could not create -" "$LINENO" 5
25667 fi
25668 ;;
25669
25670 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25671 $as_echo "$as_me: executing $ac_file commands" >&6;}
25672 ;;
25673 esac
25674
25675
25676 case $ac_file$ac_mode in
25677 "libtool":C)
25678
25679 # See if we are running on zsh, and set the options that allow our
25680 # commands through without removal of \ escapes.
25681 if test -n "${ZSH_VERSION+set}"; then
25682 setopt NO_GLOB_SUBST
25683 fi
25684
25685 cfgfile=${ofile}T
25686 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25687 $RM "$cfgfile"
25688
25689 cat <<_LT_EOF >> "$cfgfile"
25690 #! $SHELL
25691 # Generated automatically by $as_me ($PACKAGE) $VERSION
25692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25693 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25694
25695 # Provide generalized library-building support services.
25696 # Written by Gordon Matzigkeit, 1996
25697
25698 # Copyright (C) 2014 Free Software Foundation, Inc.
25699 # This is free software; see the source for copying conditions. There is NO
25700 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25701
25702 # GNU Libtool is free software; you can redistribute it and/or modify
25703 # it under the terms of the GNU General Public License as published by
25704 # the Free Software Foundation; either version 2 of of the License, or
25705 # (at your option) any later version.
25706 #
25707 # As a special exception to the GNU General Public License, if you
25708 # distribute this file as part of a program or library that is built
25709 # using GNU Libtool, you may include this file under the same
25710 # distribution terms that you use for the rest of that program.
25711 #
25712 # GNU Libtool is distributed in the hope that it will be useful, but
25713 # WITHOUT ANY WARRANTY; without even the implied warranty of
25714 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25715 # GNU General Public License for more details.
25716 #
25717 # You should have received a copy of the GNU General Public License
25718 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25719
25720
25721 # The names of the tagged configurations supported by this script.
25722 available_tags=''
25723
25724 # Configured defaults for sys_lib_dlsearch_path munging.
25725 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25726
25727 # ### BEGIN LIBTOOL CONFIG
25728
25729 # Which release of libtool.m4 was used?
25730 macro_version=$macro_version
25731 macro_revision=$macro_revision
25732
25733 # Whether or not to build shared libraries.
25734 build_libtool_libs=$enable_shared
25735
25736 # Whether or not to build static libraries.
25737 build_old_libs=$enable_static
25738
25739 # What type of objects to build.
25740 pic_mode=$pic_mode
25741
25742 # Whether or not to optimize for fast installation.
25743 fast_install=$enable_fast_install
25744
25745 # Shared archive member basename,for filename based shared library versioning on AIX.
25746 shared_archive_member_spec=$shared_archive_member_spec
25747
25748 # Shell to use when invoking shell scripts.
25749 SHELL=$lt_SHELL
25750
25751 # An echo program that protects backslashes.
25752 ECHO=$lt_ECHO
25753
25754 # The PATH separator for the build system.
25755 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25756
25757 # The host system.
25758 host_alias=$host_alias
25759 host=$host
25760 host_os=$host_os
25761
25762 # The build system.
25763 build_alias=$build_alias
25764 build=$build
25765 build_os=$build_os
25766
25767 # A sed program that does not truncate output.
25768 SED=$lt_SED
25769
25770 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25771 Xsed="\$SED -e 1s/^X//"
25772
25773 # A grep program that handles long lines.
25774 GREP=$lt_GREP
25775
25776 # An ERE matcher.
25777 EGREP=$lt_EGREP
25778
25779 # A literal string matcher.
25780 FGREP=$lt_FGREP
25781
25782 # A BSD- or MS-compatible name lister.
25783 NM=$lt_NM
25784
25785 # Whether we need soft or hard links.
25786 LN_S=$lt_LN_S
25787
25788 # What is the maximum length of a command?
25789 max_cmd_len=$max_cmd_len
25790
25791 # Object file suffix (normally "o").
25792 objext=$ac_objext
25793
25794 # Executable file suffix (normally "").
25795 exeext=$exeext
25796
25797 # whether the shell understands "unset".
25798 lt_unset=$lt_unset
25799
25800 # turn spaces into newlines.
25801 SP2NL=$lt_lt_SP2NL
25802
25803 # turn newlines into spaces.
25804 NL2SP=$lt_lt_NL2SP
25805
25806 # convert \$build file names to \$host format.
25807 to_host_file_cmd=$lt_cv_to_host_file_cmd
25808
25809 # convert \$build files to toolchain format.
25810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25811
25812 # An object symbol dumper.
25813 OBJDUMP=$lt_OBJDUMP
25814
25815 # Method to check whether dependent libraries are shared objects.
25816 deplibs_check_method=$lt_deplibs_check_method
25817
25818 # Command to use when deplibs_check_method = "file_magic".
25819 file_magic_cmd=$lt_file_magic_cmd
25820
25821 # How to find potential files when deplibs_check_method = "file_magic".
25822 file_magic_glob=$lt_file_magic_glob
25823
25824 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25825 want_nocaseglob=$lt_want_nocaseglob
25826
25827 # DLL creation program.
25828 DLLTOOL=$lt_DLLTOOL
25829
25830 # Command to associate shared and link libraries.
25831 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25832
25833 # The archiver.
25834 AR=$lt_AR
25835
25836 # Flags to create an archive.
25837 AR_FLAGS=$lt_AR_FLAGS
25838
25839 # How to feed a file listing to the archiver.
25840 archiver_list_spec=$lt_archiver_list_spec
25841
25842 # A symbol stripping program.
25843 STRIP=$lt_STRIP
25844
25845 # Commands used to install an old-style archive.
25846 RANLIB=$lt_RANLIB
25847 old_postinstall_cmds=$lt_old_postinstall_cmds
25848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25849
25850 # Whether to use a lock for old archive extraction.
25851 lock_old_archive_extraction=$lock_old_archive_extraction
25852
25853 # A C compiler.
25854 LTCC=$lt_CC
25855
25856 # LTCC compiler flags.
25857 LTCFLAGS=$lt_CFLAGS
25858
25859 # Take the output of nm and produce a listing of raw symbols and C names.
25860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25861
25862 # Transform the output of nm in a proper C declaration.
25863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25864
25865 # Transform the output of nm into a list of symbols to manually relocate.
25866 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25867
25868 # Transform the output of nm in a C name address pair.
25869 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25870
25871 # Transform the output of nm in a C name address pair when lib prefix is needed.
25872 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25873
25874 # The name lister interface.
25875 nm_interface=$lt_lt_cv_nm_interface
25876
25877 # Specify filename containing input files for \$NM.
25878 nm_file_list_spec=$lt_nm_file_list_spec
25879
25880 # The root where to search for dependent libraries,and where our libraries should be installed.
25881 lt_sysroot=$lt_sysroot
25882
25883 # Command to truncate a binary pipe.
25884 lt_truncate_bin=$lt_lt_cv_truncate_bin
25885
25886 # The name of the directory that contains temporary libtool files.
25887 objdir=$objdir
25888
25889 # Used to examine libraries when file_magic_cmd begins with "file".
25890 MAGIC_CMD=$MAGIC_CMD
25891
25892 # Must we lock files when doing compilation?
25893 need_locks=$lt_need_locks
25894
25895 # Manifest tool.
25896 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25897
25898 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25899 DSYMUTIL=$lt_DSYMUTIL
25900
25901 # Tool to change global to local symbols on Mac OS X.
25902 NMEDIT=$lt_NMEDIT
25903
25904 # Tool to manipulate fat objects and archives on Mac OS X.
25905 LIPO=$lt_LIPO
25906
25907 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25908 OTOOL=$lt_OTOOL
25909
25910 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25911 OTOOL64=$lt_OTOOL64
25912
25913 # Old archive suffix (normally "a").
25914 libext=$libext
25915
25916 # Shared library suffix (normally ".so").
25917 shrext_cmds=$lt_shrext_cmds
25918
25919 # The commands to extract the exported symbol list from a shared archive.
25920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25921
25922 # Variables whose values should be saved in libtool wrapper scripts and
25923 # restored at link time.
25924 variables_saved_for_relink=$lt_variables_saved_for_relink
25925
25926 # Do we need the "lib" prefix for modules?
25927 need_lib_prefix=$need_lib_prefix
25928
25929 # Do we need a version for libraries?
25930 need_version=$need_version
25931
25932 # Library versioning type.
25933 version_type=$version_type
25934
25935 # Shared library runtime path variable.
25936 runpath_var=$runpath_var
25937
25938 # Shared library path variable.
25939 shlibpath_var=$shlibpath_var
25940
25941 # Is shlibpath searched before the hard-coded library search path?
25942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25943
25944 # Format of library name prefix.
25945 libname_spec=$lt_libname_spec
25946
25947 # List of archive names. First name is the real one, the rest are links.
25948 # The last name is the one that the linker finds with -lNAME
25949 library_names_spec=$lt_library_names_spec
25950
25951 # The coded name of the library, if different from the real name.
25952 soname_spec=$lt_soname_spec
25953
25954 # Permission mode override for installation of shared libraries.
25955 install_override_mode=$lt_install_override_mode
25956
25957 # Command to use after installation of a shared archive.
25958 postinstall_cmds=$lt_postinstall_cmds
25959
25960 # Command to use after uninstallation of a shared archive.
25961 postuninstall_cmds=$lt_postuninstall_cmds
25962
25963 # Commands used to finish a libtool library installation in a directory.
25964 finish_cmds=$lt_finish_cmds
25965
25966 # As "finish_cmds", except a single script fragment to be evaled but
25967 # not shown.
25968 finish_eval=$lt_finish_eval
25969
25970 # Whether we should hardcode library paths into libraries.
25971 hardcode_into_libs=$hardcode_into_libs
25972
25973 # Compile-time system search path for libraries.
25974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25975
25976 # Detected run-time system search path for libraries.
25977 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25978
25979 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25980 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25981
25982 # Whether dlopen is supported.
25983 dlopen_support=$enable_dlopen
25984
25985 # Whether dlopen of programs is supported.
25986 dlopen_self=$enable_dlopen_self
25987
25988 # Whether dlopen of statically linked programs is supported.
25989 dlopen_self_static=$enable_dlopen_self_static
25990
25991 # Commands to strip libraries.
25992 old_striplib=$lt_old_striplib
25993 striplib=$lt_striplib
25994
25995
25996 # The linker used to build libraries.
25997 LD=$lt_LD
25998
25999 # How to create reloadable object files.
26000 reload_flag=$lt_reload_flag
26001 reload_cmds=$lt_reload_cmds
26002
26003 # Commands used to build an old-style archive.
26004 old_archive_cmds=$lt_old_archive_cmds
26005
26006 # A language specific compiler.
26007 CC=$lt_compiler
26008
26009 # Is the compiler the GNU compiler?
26010 with_gcc=$GCC
26011
26012 # Compiler flag to turn off builtin functions.
26013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26014
26015 # Additional compiler flags for building library objects.
26016 pic_flag=$lt_lt_prog_compiler_pic
26017
26018 # How to pass a linker flag through the compiler.
26019 wl=$lt_lt_prog_compiler_wl
26020
26021 # Compiler flag to prevent dynamic linking.
26022 link_static_flag=$lt_lt_prog_compiler_static
26023
26024 # Does compiler simultaneously support -c and -o options?
26025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26026
26027 # Whether or not to add -lc for building shared libraries.
26028 build_libtool_need_lc=$archive_cmds_need_lc
26029
26030 # Whether or not to disallow shared libs when runtime libs are static.
26031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26032
26033 # Compiler flag to allow reflexive dlopens.
26034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26035
26036 # Compiler flag to generate shared objects directly from archives.
26037 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26038
26039 # Whether the compiler copes with passing no objects directly.
26040 compiler_needs_object=$lt_compiler_needs_object
26041
26042 # Create an old-style archive from a shared archive.
26043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26044
26045 # Create a temporary old-style archive to link instead of a shared archive.
26046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26047
26048 # Commands used to build a shared archive.
26049 archive_cmds=$lt_archive_cmds
26050 archive_expsym_cmds=$lt_archive_expsym_cmds
26051
26052 # Commands used to build a loadable module if different from building
26053 # a shared archive.
26054 module_cmds=$lt_module_cmds
26055 module_expsym_cmds=$lt_module_expsym_cmds
26056
26057 # Whether we are building with GNU ld or not.
26058 with_gnu_ld=$lt_with_gnu_ld
26059
26060 # Flag that allows shared libraries with undefined symbols to be built.
26061 allow_undefined_flag=$lt_allow_undefined_flag
26062
26063 # Flag that enforces no undefined symbols.
26064 no_undefined_flag=$lt_no_undefined_flag
26065
26066 # Flag to hardcode \$libdir into a binary during linking.
26067 # This must work even if \$libdir does not exist
26068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26069
26070 # Whether we need a single "-rpath" flag with a separated argument.
26071 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26072
26073 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26074 # DIR into the resulting binary.
26075 hardcode_direct=$hardcode_direct
26076
26077 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26078 # DIR into the resulting binary and the resulting library dependency is
26079 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26080 # library is relocated.
26081 hardcode_direct_absolute=$hardcode_direct_absolute
26082
26083 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26084 # into the resulting binary.
26085 hardcode_minus_L=$hardcode_minus_L
26086
26087 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26088 # into the resulting binary.
26089 hardcode_shlibpath_var=$hardcode_shlibpath_var
26090
26091 # Set to "yes" if building a shared library automatically hardcodes DIR
26092 # into the library and all subsequent libraries and executables linked
26093 # against it.
26094 hardcode_automatic=$hardcode_automatic
26095
26096 # Set to yes if linker adds runtime paths of dependent libraries
26097 # to runtime path list.
26098 inherit_rpath=$inherit_rpath
26099
26100 # Whether libtool must link a program against all its dependency libraries.
26101 link_all_deplibs=$link_all_deplibs
26102
26103 # Set to "yes" if exported symbols are required.
26104 always_export_symbols=$always_export_symbols
26105
26106 # The commands to list exported symbols.
26107 export_symbols_cmds=$lt_export_symbols_cmds
26108
26109 # Symbols that should not be listed in the preloaded symbols.
26110 exclude_expsyms=$lt_exclude_expsyms
26111
26112 # Symbols that must always be exported.
26113 include_expsyms=$lt_include_expsyms
26114
26115 # Commands necessary for linking programs (against libraries) with templates.
26116 prelink_cmds=$lt_prelink_cmds
26117
26118 # Commands necessary for finishing linking programs.
26119 postlink_cmds=$lt_postlink_cmds
26120
26121 # Specify filename containing input files.
26122 file_list_spec=$lt_file_list_spec
26123
26124 # How to hardcode a shared library path into an executable.
26125 hardcode_action=$hardcode_action
26126
26127 # ### END LIBTOOL CONFIG
26128
26129 _LT_EOF
26130
26131 cat <<'_LT_EOF' >> "$cfgfile"
26132
26133 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26134
26135 # func_munge_path_list VARIABLE PATH
26136 # -----------------------------------
26137 # VARIABLE is name of variable containing _space_ separated list of
26138 # directories to be munged by the contents of PATH, which is string
26139 # having a format:
26140 # "DIR[:DIR]:"
26141 # string "DIR[ DIR]" will be prepended to VARIABLE
26142 # ":DIR[:DIR]"
26143 # string "DIR[ DIR]" will be appended to VARIABLE
26144 # "DIRP[:DIRP]::[DIRA:]DIRA"
26145 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26146 # "DIRA[ DIRA]" will be appended to VARIABLE
26147 # "DIR[:DIR]"
26148 # VARIABLE will be replaced by "DIR[ DIR]"
26149 func_munge_path_list ()
26150 {
26151 case x$2 in
26152 x)
26153 ;;
26154 *:)
26155 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26156 ;;
26157 x:*)
26158 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26159 ;;
26160 *::*)
26161 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26162 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26163 ;;
26164 *)
26165 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26166 ;;
26167 esac
26168 }
26169
26170
26171 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26172 func_cc_basename ()
26173 {
26174 for cc_temp in $*""; do
26175 case $cc_temp in
26176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26178 \-*) ;;
26179 *) break;;
26180 esac
26181 done
26182 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26183 }
26184
26185
26186 # ### END FUNCTIONS SHARED WITH CONFIGURE
26187
26188 _LT_EOF
26189
26190 case $host_os in
26191 aix3*)
26192 cat <<\_LT_EOF >> "$cfgfile"
26193 # AIX sometimes has problems with the GCC collect2 program. For some
26194 # reason, if we set the COLLECT_NAMES environment variable, the problems
26195 # vanish in a puff of smoke.
26196 if test set != "${COLLECT_NAMES+set}"; then
26197 COLLECT_NAMES=
26198 export COLLECT_NAMES
26199 fi
26200 _LT_EOF
26201 ;;
26202 esac
26203
26204
26205 ltmain=$ac_aux_dir/ltmain.sh
26206
26207
26208 # We use sed instead of cat because bash on DJGPP gets confused if
26209 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26210 # text mode, it properly converts lines to CR/LF. This bash problem
26211 # is reportedly fixed, but why not run on old versions too?
26212 sed '$q' "$ltmain" >> "$cfgfile" \
26213 || (rm -f "$cfgfile"; exit 1)
26214
26215 mv -f "$cfgfile" "$ofile" ||
26216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26217 chmod +x "$ofile"
26218
26219 ;;
26220 "chmod":C) chmod a+x doc/doxygen/doxygen-input-filter ;;
26221
26222 esac
26223 done # for ac_tag
26224
26225
26226 as_fn_exit 0
26227 _ACEOF
26228 ac_clean_files=$ac_clean_files_save
26229
26230 test $ac_write_fail = 0 ||
26231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26232
26233
26234 # configure is writing to config.log, and then calls config.status.
26235 # config.status does its own redirection, appending to config.log.
26236 # Unfortunately, on DOS this fails, as config.log is still kept open
26237 # by configure, so config.status won't be able to write to it; its
26238 # output is simply discarded. So we exec the FD to /dev/null,
26239 # effectively closing config.log, so it can be properly (re)opened and
26240 # appended to by config.status. When coming back to configure, we
26241 # need to make the FD available again.
26242 if test "$no_create" != yes; then
26243 ac_cs_success=:
26244 ac_config_status_args=
26245 test "$silent" = yes &&
26246 ac_config_status_args="$ac_config_status_args --quiet"
26247 exec 5>/dev/null
26248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26249 exec 5>>config.log
26250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26251 # would make configure fail if this is the last instruction.
26252 $ac_cs_success || as_fn_exit 1
26253 fi
26254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26257 fi
26258
26259
26260 #
26261 # Now that the Makefiles exist we can ensure that everything is rebuilt.
26262 #
26263 # [pairwise: --with-make-clean, --without-make-clean]
26264
26265 # Check whether --with-make-clean was given.
26266 if test "${with_make_clean+set}" = set; then :
26267 withval=$with_make_clean; make_clean="$withval"
26268 else
26269 make_clean="yes"
26270 fi
26271
26272 case "$make_clean" in
26273 yes)
26274 if test "yes" != "$no_create"
26275 then
26276 if test "yes" = "$silent"
26277 then
26278 make clean > /dev/null
26279 else
26280 make clean
26281 fi
26282 fi
26283 ;;
26284 esac
26285
26286 # [pairwise: --enable-full-report, --disable-full-report]
26287 # Check whether --enable-full-report was given.
26288 if test "${enable_full_report+set}" = set; then :
26289 enableval=$enable_full_report;
26290 fi
26291
26292
26293 report() {
26294 echo "==============================================================================="
26295 echo "Configuration summary:"
26296 echo "-------------------------------------------------------------------------------"
26297 echo "Optional features enabled:"
26298 if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
26299 echo " Mutex lock type: $with_locktype"
26300 fi
26301 test "small" = "$with_tuning" && echo " Small-system tuning (--with-tuning)"
26302 test "no" = "$use_dnstap" || \
26303 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
26304 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--enable-geoip)"
26305 test "no" = "$use_gssapi" || echo " GSS-API (--with-gssapi)"
26306
26307 # these lines are only printed if run with --enable-full-report
26308 if test "yes" = "$enable_full_report"; then
26309 test "no" = "$found_ipv6" || echo " IPv6 support (--enable-ipv6)"
26310 test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
26311 test "X$LIBXML2_LIBS" = "X" || echo " XML statistics (--with-libxml2)"
26312 test "X$JSON_C_LIBS" = "X" || echo " JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
26313 test "X$ZLIB_LIBS" = "X" || echo " HTTP zlib compression (--with-zlib)"
26314 test "X$NZD_TOOLS" = "X" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
26315 test "no" = "$with_libidn2" || echo " IDN support (--with-libidn2)"
26316 fi
26317
26318 test "yes" = "$enable_dnsrps" && \
26319 echo " DNS Response Policy Service interface (--enable-dnsrps)"
26320 test "yes" = "$enable_fixed" && \
26321 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
26322 test "yes" = "$enable_backtrace" && \
26323 echo " Print backtrace on crash (--enable-backtrace)"
26324 test "minimal" = "$want_symtable" && \
26325 echo " Use symbol table for backtrace, named only (--enable-symtable)"
26326 test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
26327 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)"
26328 test "no" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
26329 test "yes" = "$want_querytrace" && \
26330 echo " Very verbose query trace logging (--enable-querytrace)"
26331 test "no" = "$with_cmocka" || echo " CMocka Unit Testing Framework (--with-cmocka)"
26332
26333 test "auto" = "$validation_default" && echo " DNSSEC validation active by default (--enable-auto-validation)"
26334
26335 test "$CRYPTO" = "pkcs11" && (
26336 echo " Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
26337 echo " PKCS#11 module (--with-pkcs11): $with_pkcs11"
26338 )
26339
26340 echo " Dynamically loadable zone (DLZ) drivers:"
26341 test "no" = "$use_dlz_bdb" || \
26342 echo " Berkeley DB (--with-dlz-bdb)"
26343 test "no" = "$use_dlz_ldap" || \
26344 echo " LDAP (--with-dlz-ldap)"
26345 test "no" = "$use_dlz_mysql" || \
26346 echo " MySQL (--with-dlz-mysql)"
26347 test "no" = "$use_dlz_odbc" || \
26348 echo " ODBC (--with-dlz-odbc)"
26349 test "no" = "$use_dlz_postgres" || \
26350 echo " Postgres (--with-dlz-postgres)"
26351 test "no" = "$use_dlz_filesystem" || \
26352 echo " Filesystem (--with-dlz-filesystem)"
26353 test "no" = "$use_dlz_stub" || \
26354 echo " Stub (--with-dlz-stub)"
26355 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"
26356
26357 echo "-------------------------------------------------------------------------------"
26358
26359 echo "Features disabled or unavailable on this platform:"
26360 test "no" = "$found_ipv6" && echo " IPv6 support (--enable-ipv6)"
26361 test "small" = "$with_tuning" || echo " Small-system tuning (--with-tuning)"
26362
26363 test "no" = "$use_dnstap" && \
26364 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
26365 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--enable-geoip)"
26366 test "no" = "$use_gssapi" && echo " GSS-API (--with-gssapi)"
26367
26368 test "no" = "$enable_dnsrps" && \
26369 echo " DNS Response Policy Service interface (--enable-dnsrps)"
26370
26371 test "yes" = "$enable_fixed" || \
26372 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
26373
26374 test "yes" = "$validation_default" && echo " DNSSEC validation requires configuration (--enablee-auto-validation)"
26375
26376 test "$CRYPTO" = "pkcs11" || (
26377 echo " Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
26378 )
26379
26380 test "yes" = "$enable_backtrace" || \
26381 echo " Print backtrace on crash (--enable-backtrace)"
26382 test "yes" = "$want_querytrace" || \
26383 echo " Very verbose query trace logging (--enable-querytrace)"
26384
26385 test "yes" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
26386 test "no" = "$with_cmocka" && echo " CMocka Unit Testing Framework (--with-cmocka)"
26387
26388 test "X$PYTHON" = "X" && echo " Python tools (--with-python)"
26389 test "X$LIBXML2_LIBS" = "X" && echo " XML statistics (--with-libxml2)"
26390 test "X$JSON_C_LIBS" = "X" && echo " JSON statistics (--with-json-c)"
26391 test "X$ZLIB_LIBS" = "X" && echo " HTTP zlib compression (--with-zlib)"
26392 test "X$NZD_TOOLS" = "X" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
26393 test "no" = "$with_libidn2" && echo " IDN support (--with-libidn2)"
26394
26395 echo "-------------------------------------------------------------------------------"
26396 echo "Configured paths:"
26397 echo " prefix: $prefix"
26398 echo " sysconfdir: $sysconfdir"
26399 echo " localstatedir: $localstatedir"
26400 echo "-------------------------------------------------------------------------------"
26401 echo "Compiler: $CC"
26402 $CC --version 2>&1 | sed 's/^/ /'
26403
26404 if test "X$ac_unrecognized_opts" != "X"; then
26405 echo "Unrecognized options:"
26406 echo " $ac_unrecognized_opts"
26407 fi
26408
26409 if test "yes" != "$enable_full_report"; then
26410 echo "-------------------------------------------------------------------------------"
26411 echo "For more detail, use --enable-full-report."
26412 fi
26413 echo "==============================================================================="
26414 }
26415
26416 if test "yes" != "$silent"; then
26417 report
26418 fi
26419
26420 # Tell Emacs to edit this file in shell mode.
26421 # Local Variables:
26422 # mode: sh
26423 # End:
26424