configure revision 1.5.2.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for BIND 9.14.
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.14'
593 PACKAGE_STRING='BIND 9.14'
594 PACKAGE_BUGREPORT='info (at] isc.org'
595 PACKAGE_URL='https://www.isc.org/downloads/BIND/'
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_VERSIONSHORT
659 BIND9_VERSIONSTRING
660 BIND9_MAJOR
661 BIND9_VERSION
662 BIND9_DESCRIPTION
663 BIND9_PRODUCT
664 BIND9_IRS_BUILDINCLUDE
665 BIND9_BIND9_BUILDINCLUDE
666 BIND9_NS_BUILDINCLUDE
667 BIND9_DNS_BUILDINCLUDE
668 BIND9_ISCCFG_BUILDINCLUDE
669 BIND9_ISCCC_BUILDINCLUDE
670 BIND9_ISC_BUILDINCLUDE
671 BIND9_TOP_BUILDDIR
672 KYUA
673 UNITTESTS
674 CMOCKA_LIBS
675 CMOCKA_CFLAGS
676 LIBIDN2_LDFLAGS
677 LIBIDN2_LIBS
678 LIBIDN2_CFLAGS
679 XSLT_DOCBOOK_MAKETOC_XHTML
680 XSLT_DOCBOOK_MAKETOC_HTML
681 XSLT_DOCBOOK_CHUNKTOC_XHTML
682 XSLT_DOCBOOK_CHUNKTOC_HTML
683 XSLT_DOCBOOK_CHUNK_XHTML
684 XSLT_DOCBOOK_CHUNK_HTML
685 XSLT_DOCBOOK_STYLE_MAN
686 XSLT_DOCBOOK_STYLE_XHTML
687 XSLT_DOCBOOK_STYLE_HTML
688 CURL
689 DOXYGEN
690 XMLLINT
691 XSLTPROC
692 PANDOC
693 W3M
694 DBLATEX
695 PDFLATEX
696 LATEX
697 DNSTAPTARGETS
698 DNSTAPOBJS
699 DNSTAPSRCS
700 DNSTAP
701 FSTRM_CAPTURE
702 PROTOC_C
703 ISC_PLATFORM_HAVESYSUNH
704 LIBCAP_LIBS
705 DST_EXTRA_SRCS
706 DST_EXTRA_OBJS
707 USE_ISC_SPNEGO
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
726 JSONSTATS
727 XMLSTATS
728 NZDTARGETS
729 NZDSRCS
730 NZD_TOOLS
731 DNS_CRYPTO_LIBS
732 DNS_GSSAPI_LIBS
733 DST_GSSAPI_INC
734 USE_GSSAPI
735 ISC_PLATFORM_KRB5HEADER
736 ISC_PLATFORM_GSSAPI_KRB5_HEADER
737 ISC_PLATFORM_GSSAPIHEADER
738 ISC_PLATFORM_HAVEGSSAPI
739 KRB5_CONFIG
740 PKCS11_TOOLS
741 PKCS11_TEST
742 OPENSSL_LDFLAGS
743 OPENSSL_INCLUDES
744 OPENSSL_LIBS
745 OPENSSL_CFLAGS
746 INSTALL_LIBRARY
747 ALWAYS_DEFINES
748 PTHREAD_CFLAGS
749 PTHREAD_LIBS
750 PTHREAD_CC
751 ax_pthread_config
752 GEOIPLINKOBJS
753 GEOIPLINKSRCS
754 GEOIP2LINKOBJS
755 GEOIP2LINKSRCS
756 MAXMINDDB_PREFIX
757 MAXMINDDB_LIBS
758 MAXMINDDB_CFLAGS
759 ISC_PLATFORM_NORETURN_POST
760 ISC_PLATFORM_NORETURN_PRE
761 expanded_sysconfdir
762 PYTHON_INSTALL_LIB
763 PYTHON_INSTALL_DIR
764 PYTHON_TOOLS
765 KEYMGR
766 COVERAGE
767 CHECKDS
768 PYTHON
769 PERL
770 ETAGS
771 LN
772 ARFLAGS
773 XTARGETS
774 PKG_CONFIG_LIBDIR
775 PKG_CONFIG_PATH
776 PKG_CONFIG
777 BACKTRACECFLAGS
778 CCNOOPT
779 CCOPT
780 STD_CWARNINGS
781 STD_CDEFINES
782 STD_CINCLUDES
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 LT_SYS_LIBRARY_PATH
787 OTOOL64
788 OTOOL
789 LIPO
790 NMEDIT
791 DSYMUTIL
792 MANIFEST_TOOL
793 AWK
794 RANLIB
795 STRIP
796 ac_ct_AR
797 AR
798 DLLTOOL
799 OBJDUMP
800 LN_S
801 NM
802 ac_ct_DUMPBIN
803 DUMPBIN
804 LD
805 FGREP
806 SED
807 LIBTOOL
808 SET_MAKE
809 LFS_LIBS
810 LFS_LDFLAGS
811 LFS_CFLAGS
812 EGREP
813 GREP
814 CPP
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 host_os
823 host_vendor
824 host_cpu
825 host
826 build_os
827 build_vendor
828 build_cpu
829 build
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files='BIND9_MAKE_INCLUDES
869 BIND9_MAKE_RULES
870 LIBISC_API
871 LIBISCCC_API
872 LIBISCCFG_API
873 LIBDNS_API
874 LIBDNS_MAPAPI
875 LIBBIND9_API
876 LIBIRS_API
877 LIBNS_API
878 DLZ_DRIVER_RULES'
879 ac_user_opts='
880 enable_option_checking
881 enable_shared
882 enable_static
883 with_pic
884 enable_fast_install
885 with_aix_soname
886 with_gnu_ld
887 with_sysroot
888 enable_libtool_lock
889 enable_libbind
890 enable_buffer_useinline
891 enable_warn_shadow
892 enable_warn_error
893 enable_developer
894 enable_fuzzing
895 with_python
896 with_python_install_dir
897 enable_kqueue
898 enable_epoll
899 enable_devpoll
900 with_geoip
901 with_geoip2
902 with_locktype
903 with_libtool
904 with_openssl
905 enable_fips_mode
906 with_cc_alg
907 enable_native_pkcs11
908 with_pkcs11
909 with_gssapi
910 with_lmdb
911 with_libxml2
912 with_libjson
913 with_zlib
914 enable_largefile
915 with_purify
916 with_gperftools_profiler
917 enable_backtrace
918 enable_symtable
919 enable_tcp_fastopen
920 with_readline
921 enable_isc_spnego
922 enable_chroot
923 enable_linux_caps
924 enable_fixed_rrset
925 enable_dnstap
926 with_protobuf_c
927 with_libfstrm
928 with_docbook_xsl
929 with_libidn2
930 with_cmocka
931 with_tuning
932 enable_querytrace
933 enable_auto_validation
934 with_dlopen
935 enable_dnsrps_dl
936 with_dnsrps_libname
937 with_dnsrps_dir
938 enable_dnsrps
939 with_dlz_postgres
940 with_dlz_mysql
941 with_dlz_bdb
942 with_dlz_filesystem
943 with_dlz_ldap
944 with_dlz_odbc
945 with_dlz_stub
946 with_make_clean
947 enable_full_report
948 '
949 ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 LIBS
956 CPPFLAGS
957 CPP
958 LT_SYS_LIBRARY_PATH
959 PKG_CONFIG
960 PKG_CONFIG_PATH
961 PKG_CONFIG_LIBDIR
962 MAXMINDDB_CFLAGS
963 MAXMINDDB_LIBS
964 MAXMINDDB_PREFIX
965 OPENSSL_CFLAGS
966 OPENSSL_LIBS
967 LIBIDN2_CFLAGS
968 LIBIDN2_LIBS
969 CMOCKA_CFLAGS
970 CMOCKA_LIBS
971 KYUA'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *=) ac_optarg= ;;
1036 *) ac_optarg=yes ;;
1037 esac
1038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
1044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1069
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
1077 -disable-* | --disable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=no ;;
1092
1093 -docdir | --docdir | --docdi | --doc | --do)
1094 ac_prev=docdir ;;
1095 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096 docdir=$ac_optarg ;;
1097
1098 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 ac_prev=dvidir ;;
1100 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101 dvidir=$ac_optarg ;;
1102
1103 -enable-* | --enable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid feature name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1267
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1278
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1283
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1288
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1295
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1300
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1303
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1306
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=\$ac_optarg ;;
1322
1323 -without-* | --without-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid package name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332 "with_$ac_useropt"
1333 "*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=no ;;
1338
1339 --x)
1340 # Obsolete; use --with-x.
1341 with_x=yes ;;
1342
1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344 | --x-incl | --x-inc | --x-in | --x-i)
1345 ac_prev=x_includes ;;
1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348 x_includes=$ac_optarg ;;
1349
1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352 ac_prev=x_libraries ;;
1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355 x_libraries=$ac_optarg ;;
1356
1357 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1359 ;;
1360
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' | [0-9]* | *[!_$as_cr_alnum]* )
1366 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1367 esac
1368 eval $ac_envvar=\$ac_optarg
1369 export $ac_envvar ;;
1370
1371 *)
1372 # FIXME: should be removed in autoconf 3.0.
1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377 ;;
1378
1379 esac
1380 done
1381
1382 if test -n "$ac_prev"; then
1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $? "missing argument to $ac_option"
1385 fi
1386
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1389 no) ;;
1390 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392 esac
1393 fi
1394
1395 # Check all directory arguments for consistency.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1400 do
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1403 case $ac_val in
1404 */ )
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1407 esac
1408 # Be sure to have absolute directory names.
1409 case $ac_val in
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 esac
1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1414 done
1415
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1419 build=$build_alias
1420 host=$host_alias
1421 target=$target_alias
1422
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425 if test "x$build_alias" = x; then
1426 cross_compiling=maybe
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1429 fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error $? "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error $? "pwd does not report name of working directory"
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1462 q
1463 }
1464 /^X\(\/\/\)$/{
1465 s//\1/
1466 q
1467 }
1468 /^X\(\/\).*/{
1469 s//\1/
1470 q
1471 }
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1476 fi
1477 else
1478 ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures BIND 9.14 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking ...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/bind]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1566
1567 cat <<\_ACEOF
1568
1569 System types:
1570 --build=BUILD configure for building on BUILD [guessed]
1571 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576 case $ac_init_help in
1577 short | recursive ) echo "Configuration of BIND 9.14:";;
1578 esac
1579 cat <<\_ACEOF
1580
1581 Optional Features:
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --enable-shared[=PKGS] build shared libraries [default=yes]
1586 --enable-static[=PKGS] build static libraries [default=yes]
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation [default=yes]
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --enable-libbind deprecated
1591 --enable-buffer-useinline
1592 define ISC_BUFFER_USEINLINE when compiling
1593 [default=yes]
1594 --enable-warn-shadow turn on -Wshadow when compiling
1595 --enable-warn-error turn on -Werror when compiling
1596 --enable-developer enable developer build settings
1597 --enable-fuzzing=<afl|libfuzzer>
1598 Enable fuzzing using American Fuzzy Lop or libFuzzer
1599 (default=no)
1600 --enable-kqueue use BSD kqueue when available [default=yes]
1601 --enable-epoll use Linux epoll when available [default=auto]
1602 --enable-devpoll use /dev/poll when available [default=yes]
1603 --enable-fips-mode enable FIPS mode in OpenSSL library [default=no]
1604 --enable-native-pkcs11 use native PKCS11 for public-key crypto [default=no]
1605 --enable-largefile 64-bit file support
1606 --enable-backtrace log stack backtrace on abort [default=yes]
1607 --enable-symtable use internal symbol table for backtrace
1608 [all|minimal(default)|none]
1609 --disable-tcp-fastopen disable TCP Fast Open support [default=yes]
1610 --disable-isc-spnego use SPNEGO from GSSAPI library
1611 --disable-chroot disable chroot
1612 --disable-linux-caps disable Linux capabilities
1613 --enable-fixed-rrset enable fixed rrset ordering [default=no]
1614 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c)
1615 --enable-querytrace enable very verbose query trace logging [default=no]
1616 --enable-auto-validation
1617 turn on DNSSEC validation by default, using the IANA
1618 root key [default=yes]
1619 --enable-dnsrps-dl DNS Response Policy Service delayed link
1620 [default=$librpz_dl]
1621 --enable-dnsrps enable DNS Response Policy Service API
1622 --enable-full-report report values of all configure options
1623
1624 Optional Packages:
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1628 both]
1629 --with-aix-soname=aix|svr4|both
1630 shared library versioning (aka "SONAME") variant to
1631 provide on AIX, [default=aix].
1632 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1633 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1634 compiler's sysroot if not specified).
1635 --with-python=PATH specify path to Python interpreter
1636 --with-python-install-dir=PATH
1637 installation directory for Python modules
1638 --with-geoip=PATH Build with legacy GeoIP support (yes|no|path)
1639 --with-geoip2=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path)
1640 [default=no]
1641 --with-locktype=ARG Specify mutex lock type (adaptive or standard)
1642 --with-libtool use GNU libtool
1643 --with-openssl=DIR root of the OpenSSL directory
1644 --with-cc-alg=ALG deprecated
1645 --with-pkcs11=PATH Build with PKCS11 support [no|path] (PATH is for the
1646 PKCS11 provider)
1647 --with-gssapi=PATH|/path/krb5-config
1648 Specify path for system-supplied GSSAPI
1649 [default=auto]
1650 --with-lmdb=PATH build with LMDB library [yes|no|path]
1651 --with-libxml2=PATH build with libxml2 library [yes|no|path]
1652 --with-libjson=PATH build with libjson0 library [yes|no|path]
1653 --with-zlib=PATH build with zlib for HTTP compression [default=yes]
1654 --with-purify=PATH use Rational purify
1655 --with-gperftools-profiler
1656 use gperftools CPU profiler
1657 --with-readline=LIBSPEC specify readline library [default auto]
1658 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1659 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1660 --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
1661 --with-libidn2=PATH enable IDN support using GNU libidn2
1662 [yes|no(default)|path]
1663 --with-cmocka=detect enable CMocka based tests (default is detect)
1664 --with-tuning=ARG Specify server tuning (large or default)
1665 --with-dlopen=ARG support dynamically loadable DLZ and DYNDB drivers
1666 --with-dnsrps-libname DNSRPS provider library name (librpz.so)
1667 --with-dnsrps-dir path to DNSRPS provider library
1668 --with-dlz-postgres=PATH
1669 Build with Postgres DLZ driver [yes|no|path].
1670 (Required to use Postgres with DLZ)
1671 --with-dlz-mysql=PATH Build with MySQL DLZ driver [yes|no|path]. (Required
1672 to use MySQL with DLZ)
1673 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver [yes|no|path].
1674 (Required to use Berkeley DB with DLZ)
1675 --with-dlz-filesystem=ARG
1676 Build with filesystem DLZ driver [yes|no]. (Required
1677 to use file system driver with DLZ)
1678 --with-dlz-ldap=PATH Build with LDAP DLZ driver [yes|no|path]. (Required
1679 to use LDAP with DLZ)
1680 --with-dlz-odbc=PATH Build with ODBC DLZ driver [yes|no|path]. (Required
1681 to use ODBC with DLZ)
1682 --with-dlz-stub=ARG Build with stub DLZ driver [yes|no]. (Required to
1683 use stub driver with DLZ)
1684 --with-make-clean run "make clean" at end of configure [yes|no]
1685
1686 Some influential environment variables:
1687 CC C compiler command
1688 CFLAGS C compiler flags
1689 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1690 nonstandard directory <lib dir>
1691 LIBS libraries to pass to the linker, e.g. -l<library>
1692 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1693 you have headers in a nonstandard directory <include dir>
1694 CPP C preprocessor
1695 LT_SYS_LIBRARY_PATH
1696 User-defined run-time library search path.
1697 PKG_CONFIG path to pkg-config utility
1698 PKG_CONFIG_PATH
1699 directories to add to pkg-config's search path
1700 PKG_CONFIG_LIBDIR
1701 path overriding pkg-config's built-in search path
1702 MAXMINDDB_CFLAGS
1703 C compiler flags for MAXMINDDB, overriding pkg-config
1704 MAXMINDDB_LIBS
1705 linker flags for MAXMINDDB, overriding pkg-config
1706 MAXMINDDB_PREFIX
1707 value of prefix for libmaxminddb, overriding pkg-config
1708 OPENSSL_CFLAGS
1709 C compiler flags for OPENSSL, overriding pkg-config
1710 OPENSSL_LIBS
1711 linker flags for OPENSSL, overriding pkg-config
1712 LIBIDN2_CFLAGS
1713 C compiler flags for LIBIDN2, overriding pkg-config
1714 LIBIDN2_LIBS
1715 linker flags for LIBIDN2, overriding pkg-config
1716 CMOCKA_CFLAGS
1717 C compiler flags for CMOCKA, overriding pkg-config
1718 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1719 KYUA path to kyua execution engine
1720
1721 Use these variables to override the choices made by `configure' or to help
1722 it to find libraries and programs with nonstandard names/locations.
1723
1724 Report bugs to <info (at] isc.org>.
1725 BIND home page: <https://www.isc.org/downloads/BIND/>.
1726 _ACEOF
1727 ac_status=$?
1728 fi
1729
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1737
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *)
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1753
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1783 fi
1784
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 BIND configure 9.14
1789 generated by GNU Autoconf 2.69
1790
1791 Copyright (C) 2012 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1794 _ACEOF
1795 exit
1796 fi
1797
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1801
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_compile
1839
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_cpp ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871 fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875 } # ac_fn_c_try_cpp
1876
1877 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880 # the include files in INCLUDES and setting the cache variable VAR
1881 # accordingly.
1882 ac_fn_c_check_header_mongrel ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if eval \${$3+:} false; then :
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 else
1895 # Is the header compilable?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897 $as_echo_n "checking $2 usability... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_header_compiler=yes
1905 else
1906 ac_header_compiler=no
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910 $as_echo "$ac_header_compiler" >&6; }
1911
1912 # Is the header present?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914 $as_echo_n "checking $2 presence... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_cpp "$LINENO"; then :
1920 ac_header_preproc=yes
1921 else
1922 ac_header_preproc=no
1923 fi
1924 rm -f conftest.err conftest.i conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926 $as_echo "$ac_header_preproc" >&6; }
1927
1928 # So? What about this header?
1929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1930 yes:no: )
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ;;
1936 no:yes:* )
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1940 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1944 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 ( $as_echo "## --------------------------- ##
1948 ## Report this to info (at] isc.org ##
1949 ## --------------------------- ##"
1950 ) | sed "s/^/$as_me: WARNING: /" >&2
1951 ;;
1952 esac
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 eval "$3=\$ac_header_compiler"
1959 fi
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 fi
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_header_mongrel
1967
1968 # ac_fn_c_try_run LINENO
1969 # ----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971 # that executables *can* be run.
1972 ac_fn_c_try_run ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>&5
1983 ac_status=$?
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986 { { case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_try") 2>&5
1993 ac_status=$?
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; }; }; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: program exited with status $ac_status" >&5
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_retval=$ac_status
2003 fi
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2007
2008 } # ac_fn_c_try_run
2009
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2015 {
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$3=yes"
2029 else
2030 eval "$3=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039 } # ac_fn_c_check_header_compile
2040
2041 # ac_fn_c_try_link LINENO
2042 # -----------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_c_try_link ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2049 case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2056 ac_status=$?
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2061 fi
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_c_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
2068 test -x conftest$ac_exeext
2069 }; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076 fi
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085 } # ac_fn_c_try_link
2086
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2103
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2108
2109 #ifdef __STDC__
2110 # include <limits.h>
2111 #else
2112 # include <assert.h>
2113 #endif
2114
2115 #undef $2
2116
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2120 #ifdef __cplusplus
2121 extern "C"
2122 #endif
2123 char $2 ();
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2128 choke me
2129 #endif
2130
2131 int
2132 main ()
2133 {
2134 return $2 ();
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_link "$LINENO"; then :
2140 eval "$3=yes"
2141 else
2142 eval "$3=no"
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext \
2145 conftest$ac_exeext conftest.$ac_ext
2146 fi
2147 eval ac_res=\$$3
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152 } # ac_fn_c_check_func
2153
2154 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155 # -------------------------------------------
2156 # Tests whether TYPE exists after having included INCLUDES, setting cache
2157 # variable VAR accordingly.
2158 ac_fn_c_check_type ()
2159 {
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2165 else
2166 eval "$3=no"
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 $4
2170 int
2171 main ()
2172 {
2173 if (sizeof ($2))
2174 return 0;
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 $4
2183 int
2184 main ()
2185 {
2186 if (sizeof (($2)))
2187 return 0;
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193
2194 else
2195 eval "$3=yes"
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 fi
2201 eval ac_res=\$$3
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206 } # ac_fn_c_check_type
2207 cat >config.log <<_ACEOF
2208 This file contains any messages produced by compilers while
2209 running configure, to aid debugging if configure makes a mistake.
2210
2211 It was created by BIND $as_me 9.14, which was
2212 generated by GNU Autoconf 2.69. Invocation command line was
2213
2214 $ $0 $@
2215
2216 _ACEOF
2217 exec 5>>config.log
2218 {
2219 cat <<_ASUNAME
2220 ## --------- ##
2221 ## Platform. ##
2222 ## --------- ##
2223
2224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2225 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2226 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2227 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2228 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2229
2230 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2231 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2232
2233 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2234 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2235 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2236 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2237 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2238 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2239 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2240
2241 _ASUNAME
2242
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 $as_echo "PATH: $as_dir"
2249 done
2250 IFS=$as_save_IFS
2251
2252 } >&5
2253
2254 cat >&5 <<_ACEOF
2255
2256
2257 ## ----------- ##
2258 ## Core tests. ##
2259 ## ----------- ##
2260
2261 _ACEOF
2262
2263
2264 # Keep a trace of the command line.
2265 # Strip out --no-create and --no-recursion so they do not pile up.
2266 # Strip out --silent because we don't want to record it for future runs.
2267 # Also quote any args containing shell meta-characters.
2268 # Make two passes to allow for proper duplicate-argument suppression.
2269 ac_configure_args=
2270 ac_configure_args0=
2271 ac_configure_args1=
2272 ac_must_keep_next=false
2273 for ac_pass in 1 2
2274 do
2275 for ac_arg
2276 do
2277 case $ac_arg in
2278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2280 | -silent | --silent | --silen | --sile | --sil)
2281 continue ;;
2282 *\'*)
2283 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 esac
2285 case $ac_pass in
2286 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2287 2)
2288 as_fn_append ac_configure_args1 " '$ac_arg'"
2289 if test $ac_must_keep_next = true; then
2290 ac_must_keep_next=false # Got value, back to normal.
2291 else
2292 case $ac_arg in
2293 *=* | --config-cache | -C | -disable-* | --disable-* \
2294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2296 | -with-* | --with-* | -without-* | --without-* | --x)
2297 case "$ac_configure_args0 " in
2298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2299 esac
2300 ;;
2301 -* ) ac_must_keep_next=true ;;
2302 esac
2303 fi
2304 as_fn_append ac_configure_args " '$ac_arg'"
2305 ;;
2306 esac
2307 done
2308 done
2309 { ac_configure_args0=; unset ac_configure_args0;}
2310 { ac_configure_args1=; unset ac_configure_args1;}
2311
2312 # When interrupted or exit'd, cleanup temporary files, and complete
2313 # config.log. We remove comments because anyway the quotes in there
2314 # would cause problems or look ugly.
2315 # WARNING: Use '\'' to represent an apostrophe within the trap.
2316 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2317 trap 'exit_status=$?
2318 # Save into config.log some information that might help in debugging.
2319 {
2320 echo
2321
2322 $as_echo "## ---------------- ##
2323 ## Cache variables. ##
2324 ## ---------------- ##"
2325 echo
2326 # The following way of writing the cache mishandles newlines in values,
2327 (
2328 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2329 eval ac_val=\$$ac_var
2330 case $ac_val in #(
2331 *${as_nl}*)
2332 case $ac_var in #(
2333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2335 esac
2336 case $ac_var in #(
2337 _ | IFS | as_nl) ;; #(
2338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2339 *) { eval $ac_var=; unset $ac_var;} ;;
2340 esac ;;
2341 esac
2342 done
2343 (set) 2>&1 |
2344 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2345 *${as_nl}ac_space=\ *)
2346 sed -n \
2347 "s/'\''/'\''\\\\'\'''\''/g;
2348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2349 ;; #(
2350 *)
2351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352 ;;
2353 esac |
2354 sort
2355 )
2356 echo
2357
2358 $as_echo "## ----------------- ##
2359 ## Output variables. ##
2360 ## ----------------- ##"
2361 echo
2362 for ac_var in $ac_subst_vars
2363 do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2371
2372 if test -n "$ac_subst_files"; then
2373 $as_echo "## ------------------- ##
2374 ## File substitutions. ##
2375 ## ------------------- ##"
2376 echo
2377 for ac_var in $ac_subst_files
2378 do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in
2381 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 esac
2383 $as_echo "$ac_var='\''$ac_val'\''"
2384 done | sort
2385 echo
2386 fi
2387
2388 if test -s confdefs.h; then
2389 $as_echo "## ----------- ##
2390 ## confdefs.h. ##
2391 ## ----------- ##"
2392 echo
2393 cat confdefs.h
2394 echo
2395 fi
2396 test "$ac_signal" != 0 &&
2397 $as_echo "$as_me: caught signal $ac_signal"
2398 $as_echo "$as_me: exit $exit_status"
2399 } >&5
2400 rm -f core *.core core.conftest.* &&
2401 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2402 exit $exit_status
2403 ' 0
2404 for ac_signal in 1 2 13 15; do
2405 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2406 done
2407 ac_signal=0
2408
2409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2410 rm -f -r conftest* confdefs.h
2411
2412 $as_echo "/* confdefs.h */" > confdefs.h
2413
2414 # Predefined preprocessor variables.
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_NAME "$PACKAGE_NAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_STRING "$PACKAGE_STRING"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_URL "$PACKAGE_URL"
2438 _ACEOF
2439
2440
2441 # Let the site file select an alternate cache file if it wants to.
2442 # Prefer an explicitly selected file to automatically selected ones.
2443 ac_site_file1=NONE
2444 ac_site_file2=NONE
2445 if test -n "$CONFIG_SITE"; then
2446 # We do not want a PATH search for config.site.
2447 case $CONFIG_SITE in #((
2448 -*) ac_site_file1=./$CONFIG_SITE;;
2449 */*) ac_site_file1=$CONFIG_SITE;;
2450 *) ac_site_file1=./$CONFIG_SITE;;
2451 esac
2452 elif test "x$prefix" != xNONE; then
2453 ac_site_file1=$prefix/share/config.site
2454 ac_site_file2=$prefix/etc/config.site
2455 else
2456 ac_site_file1=$ac_default_prefix/share/config.site
2457 ac_site_file2=$ac_default_prefix/etc/config.site
2458 fi
2459 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2460 do
2461 test "x$ac_site_file" = xNONE && continue
2462 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2464 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2465 sed 's/^/| /' "$ac_site_file" >&5
2466 . "$ac_site_file" \
2467 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 as_fn_error $? "failed to load site script $ac_site_file
2470 See \`config.log' for more details" "$LINENO" 5; }
2471 fi
2472 done
2473
2474 if test -r "$cache_file"; then
2475 # Some versions of bash will fail to source /dev/null (special files
2476 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2477 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2479 $as_echo "$as_me: loading cache $cache_file" >&6;}
2480 case $cache_file in
2481 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2482 *) . "./$cache_file";;
2483 esac
2484 fi
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2487 $as_echo "$as_me: creating cache $cache_file" >&6;}
2488 >$cache_file
2489 fi
2490
2491 # Check that the precious variables saved in the cache have kept the same
2492 # value.
2493 ac_cache_corrupted=false
2494 for ac_var in $ac_precious_vars; do
2495 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2496 eval ac_new_set=\$ac_env_${ac_var}_set
2497 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2498 eval ac_new_val=\$ac_env_${ac_var}_value
2499 case $ac_old_set,$ac_new_set in
2500 set,)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2503 ac_cache_corrupted=: ;;
2504 ,set)
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2506 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2508 ,);;
2509 *)
2510 if test "x$ac_old_val" != "x$ac_new_val"; then
2511 # differences in whitespace do not lead to failure.
2512 ac_old_val_w=`echo x $ac_old_val`
2513 ac_new_val_w=`echo x $ac_new_val`
2514 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2516 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2517 ac_cache_corrupted=:
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2520 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2521 eval $ac_var=\$ac_old_val
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2524 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2526 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2527 fi;;
2528 esac
2529 # Pass precious variables to config.status.
2530 if test "$ac_new_set" = set; then
2531 case $ac_new_val in
2532 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2533 *) ac_arg=$ac_var=$ac_new_val ;;
2534 esac
2535 case " $ac_configure_args " in
2536 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2537 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2538 esac
2539 fi
2540 done
2541 if $ac_cache_corrupted; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2545 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2546 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2547 fi
2548 ## -------------------- ##
2549 ## Main body of script. ##
2550 ## -------------------- ##
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557
2558
2559
2560
2561 ac_config_headers="$ac_config_headers config.h"
2562
2563
2564
2565 ac_aux_dir=
2566 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2567 if test -f "$ac_dir/install-sh"; then
2568 ac_aux_dir=$ac_dir
2569 ac_install_sh="$ac_aux_dir/install-sh -c"
2570 break
2571 elif test -f "$ac_dir/install.sh"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/install.sh -c"
2574 break
2575 elif test -f "$ac_dir/shtool"; then
2576 ac_aux_dir=$ac_dir
2577 ac_install_sh="$ac_aux_dir/shtool install -c"
2578 break
2579 fi
2580 done
2581 if test -z "$ac_aux_dir"; then
2582 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2583 fi
2584
2585 # These three variables are undocumented and unsupported,
2586 # and are intended to be withdrawn in a future Autoconf release.
2587 # They can cause serious problems if a builder's source tree is in a directory
2588 # whose full name contains unusual characters.
2589 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2590 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2591 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592
2593
2594 # Make sure we can run config.sub.
2595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2599 $as_echo_n "checking build system type... " >&6; }
2600 if ${ac_cv_build+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 ac_build_alias=$build_alias
2604 test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x &&
2607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2610
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2613 $as_echo "$ac_cv_build" >&6; }
2614 case $ac_cv_build in
2615 *-*-*) ;;
2616 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2617 esac
2618 build=$ac_cv_build
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_build
2621 shift
2622 build_cpu=$1
2623 build_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 build_os=$*
2628 IFS=$ac_save_IFS
2629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2630
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2633 $as_echo_n "checking host system type... " >&6; }
2634 if ${ac_cv_host+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test "x$host_alias" = x; then
2638 ac_cv_host=$ac_cv_build
2639 else
2640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2642 fi
2643
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2646 $as_echo "$ac_cv_host" >&6; }
2647 case $ac_cv_host in
2648 *-*-*) ;;
2649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2650 esac
2651 host=$ac_cv_host
2652 ac_save_IFS=$IFS; IFS='-'
2653 set x $ac_cv_host
2654 shift
2655 host_cpu=$1
2656 host_vendor=$2
2657 shift; shift
2658 # Remember, the first character of IFS is used to create $*,
2659 # except with old shells:
2660 host_os=$*
2661 IFS=$ac_save_IFS
2662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2663
2664
2665 ac_ext=c
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 $as_echo "$CC" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 fi
2709 if test -z "$ac_cv_prog_CC"; then
2710 ac_ct_CC=$CC
2711 # Extract the first word of "gcc", so it can be a program name with args.
2712 set dummy gcc; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_CC="gcc"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739 if test -n "$ac_ct_CC"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2741 $as_echo "$ac_ct_CC" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756 CC=$ac_ct_CC
2757 fi
2758 else
2759 CC="$ac_cv_prog_CC"
2760 fi
2761
2762 if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}cc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_CC="${ac_tool_prefix}cc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 fi
2803 if test -z "$CC"; then
2804 # Extract the first word of "cc", so it can be a program name with args.
2805 set dummy cc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 ac_prog_rejected=no
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823 ac_prog_rejected=yes
2824 continue
2825 fi
2826 ac_cv_prog_CC="cc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 if test $ac_prog_rejected = yes; then
2835 # We found a bogon in the path, so make sure we never use it.
2836 set dummy $ac_cv_prog_CC
2837 shift
2838 if test $# != 0; then
2839 # We chose a different compiler from the bogus one.
2840 # However, it has the same basename, so the bogon will be chosen
2841 # first if we set CC to just the basename; use the full file name.
2842 shift
2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844 fi
2845 fi
2846 fi
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858 fi
2859 if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 for ac_prog in cl.exe
2862 do
2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900 test -n "$CC" && break
2901 done
2902 fi
2903 if test -z "$CC"; then
2904 ac_ct_CC=$CC
2905 for ac_prog in cl.exe
2906 do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908 set dummy $ac_prog; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_ac_ct_CC="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935 if test -n "$ac_ct_CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937 $as_echo "$ac_ct_CC" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 test -n "$ac_ct_CC" && break
2945 done
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951 yes:)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954 ac_tool_warned=yes ;;
2955 esac
2956 CC=$ac_ct_CC
2957 fi
2958 fi
2959
2960 fi
2961
2962
2963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965 as_fn_error $? "no acceptable C compiler found in \$PATH
2966 See \`config.log' for more details" "$LINENO" 5; }
2967
2968 # Provide some information about the compiler.
2969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2970 set X $ac_compile
2971 ac_compiler=$2
2972 for ac_option in --version -v -V -qversion; do
2973 { { ac_try="$ac_compiler $ac_option >&5"
2974 case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2981 ac_status=$?
2982 if test -s conftest.err; then
2983 sed '10a\
2984 ... rest of stderr output deleted ...
2985 10q' conftest.err >conftest.er1
2986 cat conftest.er1 >&5
2987 fi
2988 rm -f conftest.er1 conftest.err
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }
2991 done
2992
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2995
2996 int
2997 main ()
2998 {
2999
3000 ;
3001 return 0;
3002 }
3003 _ACEOF
3004 ac_clean_files_save=$ac_clean_files
3005 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3006 # Try to create an executable without -o first, disregard a.out.
3007 # It will help us diagnose broken compilers, and finding out an intuition
3008 # of exeext.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3010 $as_echo_n "checking whether the C compiler works... " >&6; }
3011 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012
3013 # The possible output files:
3014 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015
3016 ac_rmfiles=
3017 for ac_file in $ac_files
3018 do
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3022 esac
3023 done
3024 rm -f $ac_rmfiles
3025
3026 if { { ac_try="$ac_link_default"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_link_default") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3038 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3039 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3040 # so that the user can short-circuit this test for compilers unknown to
3041 # Autoconf.
3042 for ac_file in $ac_files ''
3043 do
3044 test -f "$ac_file" || continue
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047 ;;
3048 [ab].out )
3049 # We found the default executable, but exeext='' is most
3050 # certainly right.
3051 break;;
3052 *.* )
3053 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3054 then :; else
3055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 fi
3057 # We set ac_cv_exeext here because the later test for it is not
3058 # safe: cross compilers may not add the suffix if given an `-o'
3059 # argument, so we may need to know it at that point already.
3060 # Even if this section looks crufty: it has the advantage of
3061 # actually working.
3062 break;;
3063 * )
3064 break;;
3065 esac
3066 done
3067 test "$ac_cv_exeext" = no && ac_cv_exeext=
3068
3069 else
3070 ac_file=''
3071 fi
3072 if test -z "$ac_file"; then :
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 $as_echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error 77 "C compiler cannot create executables
3081 See \`config.log' for more details" "$LINENO" 5; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087 $as_echo_n "checking for C compiler default output file name... " >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089 $as_echo "$ac_file" >&6; }
3090 ac_exeext=$ac_cv_exeext
3091
3092 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093 ac_clean_files=$ac_clean_files_save
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3095 $as_echo_n "checking for suffix of executables... " >&6; }
3096 if { { ac_try="$ac_link"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3108 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3109 # work properly (i.e., refer to `conftest.exe'), while it won't with
3110 # `rm'.
3111 for ac_file in conftest.exe conftest conftest.*; do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116 break;;
3117 * ) break;;
3118 esac
3119 done
3120 else
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3124 See \`config.log' for more details" "$LINENO" 5; }
3125 fi
3126 rm -f conftest conftest$ac_cv_exeext
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3128 $as_echo "$ac_cv_exeext" >&6; }
3129
3130 rm -f conftest.$ac_ext
3131 EXEEXT=$ac_cv_exeext
3132 ac_exeext=$EXEEXT
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135 #include <stdio.h>
3136 int
3137 main ()
3138 {
3139 FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3141
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 ac_clean_files="$ac_clean_files conftest.out"
3147 # Check that the compiler produces executables we can run. If not, either
3148 # the compiler is broken, or we cross compile.
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3150 $as_echo_n "checking whether we are cross compiling... " >&6; }
3151 if test "$cross_compiling" != yes; then
3152 { { ac_try="$ac_link"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 if { ac_try='./conftest$ac_cv_exeext'
3164 { { case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; }; then
3174 cross_compiling=no
3175 else
3176 if test "$cross_compiling" = maybe; then
3177 cross_compiling=yes
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details" "$LINENO" 5; }
3184 fi
3185 fi
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188 $as_echo "$cross_compiling" >&6; }
3189
3190 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191 ac_clean_files=$ac_clean_files_save
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193 $as_echo_n "checking for suffix of object files... " >&6; }
3194 if ${ac_cv_objext+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3199
3200 int
3201 main ()
3202 {
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.o conftest.obj
3209 if { { ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compile") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 for ac_file in conftest.o conftest.obj conftest.*; do
3221 test -f "$ac_file" || continue;
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225 break;;
3226 esac
3227 done
3228 else
3229 $as_echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "cannot compute suffix of object files: cannot compile
3235 See \`config.log' for more details" "$LINENO" 5; }
3236 fi
3237 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240 $as_echo "$ac_cv_objext" >&6; }
3241 OBJEXT=$ac_cv_objext
3242 ac_objext=$OBJEXT
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245 if ${ac_cv_c_compiler_gnu+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250
3251 int
3252 main ()
3253 {
3254 #ifndef __GNUC__
3255 choke me
3256 #endif
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_compiler_gnu=yes
3264 else
3265 ac_compiler_gnu=no
3266 fi
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273 if test $ac_compiler_gnu = yes; then
3274 GCC=yes
3275 else
3276 GCC=
3277 fi
3278 ac_test_CFLAGS=${CFLAGS+set}
3279 ac_save_CFLAGS=$CFLAGS
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3282 if ${ac_cv_prog_cc_g+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3287 ac_cv_prog_cc_g=no
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3291
3292 int
3293 main ()
3294 {
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302 else
3303 CFLAGS=""
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316
3317 else
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3333 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342 $as_echo "$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351 else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3360 if ${ac_cv_prog_cc_c89+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 struct stat;
3370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371 struct buf { int x; };
3372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373 static char *e (p, i)
3374 char **p;
3375 int i;
3376 {
3377 return p[i];
3378 }
3379 static char *f (char * (*g) (char **, int), char **p, ...)
3380 {
3381 char *s;
3382 va_list v;
3383 va_start (v,p);
3384 s = g (p, va_arg (v,int));
3385 va_end (v);
3386 return s;
3387 }
3388
3389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std. */
3396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397
3398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399 inside strings and character constants. */
3400 #define FOO(x) 'x'
3401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402
3403 int test (int i, double x);
3404 struct s1 {int (*f) (int a);};
3405 struct s2 {int (*f) (double a);};
3406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407 int argc;
3408 char **argv;
3409 int
3410 main ()
3411 {
3412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 do
3420 CC="$ac_save_CC $ac_arg"
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_cv_prog_cc_c89=$ac_arg
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext
3425 test "x$ac_cv_prog_cc_c89" != "xno" && break
3426 done
3427 rm -f conftest.$ac_ext
3428 CC=$ac_save_CC
3429
3430 fi
3431 # AC_CACHE_VAL
3432 case "x$ac_cv_prog_cc_c89" in
3433 x)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3435 $as_echo "none needed" >&6; } ;;
3436 xno)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3438 $as_echo "unsupported" >&6; } ;;
3439 *)
3440 CC="$CC $ac_cv_prog_cc_c89"
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3442 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443 esac
3444 if test "x$ac_cv_prog_cc_c89" != xno; then :
3445
3446 fi
3447
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455 ac_ext=c
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3461 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3462 # On Suns, sometimes $CPP names a directory.
3463 if test -n "$CPP" && test -d "$CPP"; then
3464 CPP=
3465 fi
3466 if test -z "$CPP"; then
3467 if ${ac_cv_prog_CPP+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 # Double quotes because CPP needs to be expanded
3471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3472 do
3473 ac_preproc_ok=false
3474 for ac_c_preproc_warn_flag in '' yes
3475 do
3476 # Use a header file that comes with gcc, so configuring glibc
3477 # with a fresh cross-compiler works.
3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479 # <limits.h> exists even on freestanding compilers.
3480 # On the NeXT, cc -E runs the code through the compiler's parser,
3481 # not just through cpp. "Syntax error" is here to catch this case.
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #ifdef __STDC__
3485 # include <limits.h>
3486 #else
3487 # include <assert.h>
3488 #endif
3489 Syntax error
3490 _ACEOF
3491 if ac_fn_c_try_cpp "$LINENO"; then :
3492
3493 else
3494 # Broken: fails on valid input.
3495 continue
3496 fi
3497 rm -f conftest.err conftest.i conftest.$ac_ext
3498
3499 # OK, works on sane cases. Now check whether nonexistent headers
3500 # can be detected and how.
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3506 # Broken: success on invalid input.
3507 continue
3508 else
3509 # Passes both tests.
3510 ac_preproc_ok=:
3511 break
3512 fi
3513 rm -f conftest.err conftest.i conftest.$ac_ext
3514
3515 done
3516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517 rm -f conftest.i conftest.err conftest.$ac_ext
3518 if $ac_preproc_ok; then :
3519 break
3520 fi
3521
3522 done
3523 ac_cv_prog_CPP=$CPP
3524
3525 fi
3526 CPP=$ac_cv_prog_CPP
3527 else
3528 ac_cv_prog_CPP=$CPP
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3531 $as_echo "$CPP" >&6; }
3532 ac_preproc_ok=false
3533 for ac_c_preproc_warn_flag in '' yes
3534 do
3535 # Use a header file that comes with gcc, so configuring glibc
3536 # with a fresh cross-compiler works.
3537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538 # <limits.h> exists even on freestanding compilers.
3539 # On the NeXT, cc -E runs the code through the compiler's parser,
3540 # not just through cpp. "Syntax error" is here to catch this case.
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543 #ifdef __STDC__
3544 # include <limits.h>
3545 #else
3546 # include <assert.h>
3547 #endif
3548 Syntax error
3549 _ACEOF
3550 if ac_fn_c_try_cpp "$LINENO"; then :
3551
3552 else
3553 # Broken: fails on valid input.
3554 continue
3555 fi
3556 rm -f conftest.err conftest.i conftest.$ac_ext
3557
3558 # OK, works on sane cases. Now check whether nonexistent headers
3559 # can be detected and how.
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562 #include <ac_nonexistent.h>
3563 _ACEOF
3564 if ac_fn_c_try_cpp "$LINENO"; then :
3565 # Broken: success on invalid input.
3566 continue
3567 else
3568 # Passes both tests.
3569 ac_preproc_ok=:
3570 break
3571 fi
3572 rm -f conftest.err conftest.i conftest.$ac_ext
3573
3574 done
3575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3576 rm -f conftest.i conftest.err conftest.$ac_ext
3577 if $ac_preproc_ok; then :
3578
3579 else
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3583 See \`config.log' for more details" "$LINENO" 5; }
3584 fi
3585
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3594 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3595 if ${ac_cv_path_GREP+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -z "$GREP"; then
3599 ac_path_GREP_found=false
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_prog in grep ggrep; do
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3609 as_fn_executable_p "$ac_path_GREP" || continue
3610 # Check for GNU ac_path_GREP and select it if it is found.
3611 # Check for GNU $ac_path_GREP
3612 case `"$ac_path_GREP" --version 2>&1` in
3613 *GNU*)
3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3615 *)
3616 ac_count=0
3617 $as_echo_n 0123456789 >"conftest.in"
3618 while :
3619 do
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
3623 $as_echo 'GREP' >> "conftest.nl"
3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 as_fn_arith $ac_count + 1 && ac_count=$as_val
3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_GREP="$ac_path_GREP"
3630 ac_path_GREP_max=$ac_count
3631 fi
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3634 done
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3636 esac
3637
3638 $ac_path_GREP_found && break 3
3639 done
3640 done
3641 done
3642 IFS=$as_save_IFS
3643 if test -z "$ac_cv_path_GREP"; then
3644 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3645 fi
3646 else
3647 ac_cv_path_GREP=$GREP
3648 fi
3649
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3652 $as_echo "$ac_cv_path_GREP" >&6; }
3653 GREP="$ac_cv_path_GREP"
3654
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3657 $as_echo_n "checking for egrep... " >&6; }
3658 if ${ac_cv_path_EGREP+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3662 then ac_cv_path_EGREP="$GREP -E"
3663 else
3664 if test -z "$EGREP"; then
3665 ac_path_EGREP_found=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_prog in egrep; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3675 as_fn_executable_p "$ac_path_EGREP" || continue
3676 # Check for GNU ac_path_EGREP and select it if it is found.
3677 # Check for GNU $ac_path_EGREP
3678 case `"$ac_path_EGREP" --version 2>&1` in
3679 *GNU*)
3680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3681 *)
3682 ac_count=0
3683 $as_echo_n 0123456789 >"conftest.in"
3684 while :
3685 do
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 $as_echo 'EGREP' >> "conftest.nl"
3690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692 as_fn_arith $ac_count + 1 && ac_count=$as_val
3693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_EGREP="$ac_path_EGREP"
3696 ac_path_EGREP_max=$ac_count
3697 fi
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3700 done
3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 esac
3703
3704 $ac_path_EGREP_found && break 3
3705 done
3706 done
3707 done
3708 IFS=$as_save_IFS
3709 if test -z "$ac_cv_path_EGREP"; then
3710 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3711 fi
3712 else
3713 ac_cv_path_EGREP=$EGREP
3714 fi
3715
3716 fi
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3719 $as_echo "$ac_cv_path_EGREP" >&6; }
3720 EGREP="$ac_cv_path_EGREP"
3721
3722
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3724 $as_echo_n "checking for ANSI C header files... " >&6; }
3725 if ${ac_cv_header_stdc+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730 #include <stdlib.h>
3731 #include <stdarg.h>
3732 #include <string.h>
3733 #include <float.h>
3734
3735 int
3736 main ()
3737 {
3738
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_header_stdc=yes
3745 else
3746 ac_cv_header_stdc=no
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749
3750 if test $ac_cv_header_stdc = yes; then
3751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <string.h>
3755
3756 _ACEOF
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 $EGREP "memchr" >/dev/null 2>&1; then :
3759
3760 else
3761 ac_cv_header_stdc=no
3762 fi
3763 rm -f conftest*
3764
3765 fi
3766
3767 if test $ac_cv_header_stdc = yes; then
3768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdlib.h>
3772
3773 _ACEOF
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "free" >/dev/null 2>&1; then :
3776
3777 else
3778 ac_cv_header_stdc=no
3779 fi
3780 rm -f conftest*
3781
3782 fi
3783
3784 if test $ac_cv_header_stdc = yes; then
3785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3786 if test "$cross_compiling" = yes; then :
3787 :
3788 else
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #include <ctype.h>
3792 #include <stdlib.h>
3793 #if ((' ' & 0x0FF) == 0x020)
3794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3796 #else
3797 # define ISLOWER(c) \
3798 (('a' <= (c) && (c) <= 'i') \
3799 || ('j' <= (c) && (c) <= 'r') \
3800 || ('s' <= (c) && (c) <= 'z'))
3801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3802 #endif
3803
3804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3805 int
3806 main ()
3807 {
3808 int i;
3809 for (i = 0; i < 256; i++)
3810 if (XOR (islower (i), ISLOWER (i))
3811 || toupper (i) != TOUPPER (i))
3812 return 2;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_run "$LINENO"; then :
3817
3818 else
3819 ac_cv_header_stdc=no
3820 fi
3821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3822 conftest.$ac_objext conftest.beam conftest.$ac_ext
3823 fi
3824
3825 fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3828 $as_echo "$ac_cv_header_stdc" >&6; }
3829 if test $ac_cv_header_stdc = yes; then
3830
3831 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3832
3833 fi
3834
3835 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3836 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3837 inttypes.h stdint.h unistd.h
3838 do :
3839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3840 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3841 "
3842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3843 cat >>confdefs.h <<_ACEOF
3844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3845 _ACEOF
3846
3847 fi
3848
3849 done
3850
3851
3852
3853 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3854 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3855 MINIX=yes
3856 else
3857 MINIX=
3858 fi
3859
3860
3861 if test "$MINIX" = yes; then
3862
3863 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3864
3865
3866 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3867
3868
3869 $as_echo "#define _MINIX 1" >>confdefs.h
3870
3871 fi
3872
3873
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3875 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3876 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 # define __EXTENSIONS__ 1
3883 $ac_includes_default
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_safe_to_define___extensions__=yes
3894 else
3895 ac_cv_safe_to_define___extensions__=no
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3900 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3901 test $ac_cv_safe_to_define___extensions__ = yes &&
3902 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3903
3904 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3905
3906 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3907
3908 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3909
3910 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3911
3912
3913
3914 LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
3915 LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
3916 LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
3917
3918
3919
3920
3921
3922 # Enable RFC 3542 APIs on macOS
3923
3924 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
3925
3926
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3928 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3929 set x ${MAKE-make}
3930 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3931 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 cat >conftest.make <<\_ACEOF
3935 SHELL = /bin/sh
3936 all:
3937 @echo '@@@%%%=$(MAKE)=@@@%%%'
3938 _ACEOF
3939 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3940 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3941 *@@@%%%=?*=@@@%%%*)
3942 eval ac_cv_prog_make_${ac_make}_set=yes;;
3943 *)
3944 eval ac_cv_prog_make_${ac_make}_set=no;;
3945 esac
3946 rm -f conftest.make
3947 fi
3948 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951 SET_MAKE=
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 SET_MAKE="MAKE=${MAKE-make}"
3956 fi
3957
3958
3959 case `pwd` in
3960 *\ * | *\ *)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3963 esac
3964
3965
3966
3967 macro_version='2.4.6'
3968 macro_revision='2.4.6'
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 ltmain=$ac_aux_dir/ltmain.sh
3983
3984 # Backslashify metacharacters that are still active within
3985 # double-quoted strings.
3986 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3987
3988 # Same as above, but do not quote variable references.
3989 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3990
3991 # Sed substitution to delay expansion of an escaped shell variable in a
3992 # double_quote_subst'ed string.
3993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3994
3995 # Sed substitution to delay expansion of an escaped single quote.
3996 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3997
3998 # Sed substitution to avoid accidental globbing in evaled expressions
3999 no_glob_subst='s/\*/\\\*/g'
4000
4001 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4003 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4006 $as_echo_n "checking how to print strings... " >&6; }
4007 # Test print first, because it will be a builtin if present.
4008 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4009 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4010 ECHO='print -r --'
4011 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4012 ECHO='printf %s\n'
4013 else
4014 # Use this function as a fallback that always works.
4015 func_fallback_echo ()
4016 {
4017 eval 'cat <<_LTECHO_EOF
4018 $1
4019 _LTECHO_EOF'
4020 }
4021 ECHO='func_fallback_echo'
4022 fi
4023
4024 # func_echo_all arg...
4025 # Invoke $ECHO with all args, space-separated.
4026 func_echo_all ()
4027 {
4028 $ECHO ""
4029 }
4030
4031 case $ECHO in
4032 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4033 $as_echo "printf" >&6; } ;;
4034 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4035 $as_echo "print -r" >&6; } ;;
4036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4037 $as_echo "cat" >&6; } ;;
4038 esac
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4054 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4055 if ${ac_cv_path_SED+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4059 for ac_i in 1 2 3 4 5 6 7; do
4060 ac_script="$ac_script$as_nl$ac_script"
4061 done
4062 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4063 { ac_script=; unset ac_script;}
4064 if test -z "$SED"; then
4065 ac_path_SED_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in sed gsed; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4075 as_fn_executable_p "$ac_path_SED" || continue
4076 # Check for GNU ac_path_SED and select it if it is found.
4077 # Check for GNU $ac_path_SED
4078 case `"$ac_path_SED" --version 2>&1` in
4079 *GNU*)
4080 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4081 *)
4082 ac_count=0
4083 $as_echo_n 0123456789 >"conftest.in"
4084 while :
4085 do
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 $as_echo '' >> "conftest.nl"
4090 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 as_fn_arith $ac_count + 1 && ac_count=$as_val
4093 if test $ac_count -gt ${ac_path_SED_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_SED="$ac_path_SED"
4096 ac_path_SED_max=$ac_count
4097 fi
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4100 done
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4103
4104 $ac_path_SED_found && break 3
4105 done
4106 done
4107 done
4108 IFS=$as_save_IFS
4109 if test -z "$ac_cv_path_SED"; then
4110 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4111 fi
4112 else
4113 ac_cv_path_SED=$SED
4114 fi
4115
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4118 $as_echo "$ac_cv_path_SED" >&6; }
4119 SED="$ac_cv_path_SED"
4120 rm -f conftest.sed
4121
4122 test -z "$SED" && SED=sed
4123 Xsed="$SED -e 1s/^X//"
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4136 $as_echo_n "checking for fgrep... " >&6; }
4137 if ${ac_cv_path_FGREP+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4141 then ac_cv_path_FGREP="$GREP -F"
4142 else
4143 if test -z "$FGREP"; then
4144 ac_path_FGREP_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_prog in fgrep; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4154 as_fn_executable_p "$ac_path_FGREP" || continue
4155 # Check for GNU ac_path_FGREP and select it if it is found.
4156 # Check for GNU $ac_path_FGREP
4157 case `"$ac_path_FGREP" --version 2>&1` in
4158 *GNU*)
4159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4160 *)
4161 ac_count=0
4162 $as_echo_n 0123456789 >"conftest.in"
4163 while :
4164 do
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo 'FGREP' >> "conftest.nl"
4169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171 as_fn_arith $ac_count + 1 && ac_count=$as_val
4172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_FGREP="$ac_path_FGREP"
4175 ac_path_FGREP_max=$ac_count
4176 fi
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4179 done
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 esac
4182
4183 $ac_path_FGREP_found && break 3
4184 done
4185 done
4186 done
4187 IFS=$as_save_IFS
4188 if test -z "$ac_cv_path_FGREP"; then
4189 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190 fi
4191 else
4192 ac_cv_path_FGREP=$FGREP
4193 fi
4194
4195 fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4198 $as_echo "$ac_cv_path_FGREP" >&6; }
4199 FGREP="$ac_cv_path_FGREP"
4200
4201
4202 test -z "$GREP" && GREP=grep
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222 # Check whether --with-gnu-ld was given.
4223 if test "${with_gnu_ld+set}" = set; then :
4224 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4225 else
4226 with_gnu_ld=no
4227 fi
4228
4229 ac_prog=ld
4230 if test yes = "$GCC"; then
4231 # Check if gcc -print-prog-name=ld gives a path.
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4233 $as_echo_n "checking for ld used by $CC... " >&6; }
4234 case $host in
4235 *-*-mingw*)
4236 # gcc leaves a trailing carriage return, which upsets mingw
4237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4238 *)
4239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4240 esac
4241 case $ac_prog in
4242 # Accept absolute paths.
4243 [\\/]* | ?:[\\/]*)
4244 re_direlt='/[^/][^/]*/\.\./'
4245 # Canonicalize the pathname of ld
4246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4249 done
4250 test -z "$LD" && LD=$ac_prog
4251 ;;
4252 "")
4253 # If it fails, then pretend we aren't using GCC.
4254 ac_prog=ld
4255 ;;
4256 *)
4257 # If it is relative, then search for the first ld in PATH.
4258 with_gnu_ld=unknown
4259 ;;
4260 esac
4261 elif test yes = "$with_gnu_ld"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4263 $as_echo_n "checking for GNU ld... " >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4266 $as_echo_n "checking for non-GNU ld... " >&6; }
4267 fi
4268 if ${lt_cv_path_LD+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -z "$LD"; then
4272 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4273 for ac_dir in $PATH; do
4274 IFS=$lt_save_ifs
4275 test -z "$ac_dir" && ac_dir=.
4276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4277 lt_cv_path_LD=$ac_dir/$ac_prog
4278 # Check to see if the program is GNU ld. I'd rather use --version,
4279 # but apparently some variants of GNU ld only accept -v.
4280 # Break only if it was the GNU/non-GNU ld that we prefer.
4281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4282 *GNU* | *'with BFD'*)
4283 test no != "$with_gnu_ld" && break
4284 ;;
4285 *)
4286 test yes != "$with_gnu_ld" && break
4287 ;;
4288 esac
4289 fi
4290 done
4291 IFS=$lt_save_ifs
4292 else
4293 lt_cv_path_LD=$LD # Let the user override the test with a path.
4294 fi
4295 fi
4296
4297 LD=$lt_cv_path_LD
4298 if test -n "$LD"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4300 $as_echo "$LD" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4308 if ${lt_cv_prog_gnu_ld+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4312 case `$LD -v 2>&1 </dev/null` in
4313 *GNU* | *'with BFD'*)
4314 lt_cv_prog_gnu_ld=yes
4315 ;;
4316 *)
4317 lt_cv_prog_gnu_ld=no
4318 ;;
4319 esac
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4323 with_gnu_ld=$lt_cv_prog_gnu_ld
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4334 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4335 if ${lt_cv_path_NM+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$NM"; then
4339 # Let the user override the test.
4340 lt_cv_path_NM=$NM
4341 else
4342 lt_nm_to_check=${ac_tool_prefix}nm
4343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4344 lt_nm_to_check="$lt_nm_to_check nm"
4345 fi
4346 for lt_tmp_nm in $lt_nm_to_check; do
4347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4349 IFS=$lt_save_ifs
4350 test -z "$ac_dir" && ac_dir=.
4351 tmp_nm=$ac_dir/$lt_tmp_nm
4352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4353 # Check to see if the nm accepts a BSD-compat flag.
4354 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4355 # nm: unknown option "B" ignored
4356 # Tru64's nm complains that /dev/null is an invalid object file
4357 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4358 case $build_os in
4359 mingw*) lt_bad_file=conftest.nm/nofile ;;
4360 *) lt_bad_file=/dev/null ;;
4361 esac
4362 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4363 *$lt_bad_file* | *'Invalid file or object type'*)
4364 lt_cv_path_NM="$tmp_nm -B"
4365 break 2
4366 ;;
4367 *)
4368 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4369 */dev/null*)
4370 lt_cv_path_NM="$tmp_nm -p"
4371 break 2
4372 ;;
4373 *)
4374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4375 continue # so that we can try to find one that supports BSD flags
4376 ;;
4377 esac
4378 ;;
4379 esac
4380 fi
4381 done
4382 IFS=$lt_save_ifs
4383 done
4384 : ${lt_cv_path_NM=no}
4385 fi
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4388 $as_echo "$lt_cv_path_NM" >&6; }
4389 if test no != "$lt_cv_path_NM"; then
4390 NM=$lt_cv_path_NM
4391 else
4392 # Didn't find any BSD compatible name lister, look for dumpbin.
4393 if test -n "$DUMPBIN"; then :
4394 # Let the user override the test.
4395 else
4396 if test -n "$ac_tool_prefix"; then
4397 for ac_prog in dumpbin "link -dump"
4398 do
4399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_prog_DUMPBIN+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$DUMPBIN"; then
4407 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424 fi
4425 fi
4426 DUMPBIN=$ac_cv_prog_DUMPBIN
4427 if test -n "$DUMPBIN"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429 $as_echo "$DUMPBIN" >&6; }
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 fi
4434
4435
4436 test -n "$DUMPBIN" && break
4437 done
4438 fi
4439 if test -z "$DUMPBIN"; then
4440 ac_ct_DUMPBIN=$DUMPBIN
4441 for ac_prog in dumpbin "link -dump"
4442 do
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$ac_ct_DUMPBIN"; then
4451 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4471 if test -n "$ac_ct_DUMPBIN"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473 $as_echo "$ac_ct_DUMPBIN" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480 test -n "$ac_ct_DUMPBIN" && break
4481 done
4482
4483 if test "x$ac_ct_DUMPBIN" = x; then
4484 DUMPBIN=":"
4485 else
4486 case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490 ac_tool_warned=yes ;;
4491 esac
4492 DUMPBIN=$ac_ct_DUMPBIN
4493 fi
4494 fi
4495
4496 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4497 *COFF*)
4498 DUMPBIN="$DUMPBIN -symbols -headers"
4499 ;;
4500 *)
4501 DUMPBIN=:
4502 ;;
4503 esac
4504 fi
4505
4506 if test : != "$DUMPBIN"; then
4507 NM=$DUMPBIN
4508 fi
4509 fi
4510 test -z "$NM" && NM=nm
4511
4512
4513
4514
4515
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4518 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4519 if ${lt_cv_nm_interface+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 lt_cv_nm_interface="BSD nm"
4523 echo "int some_variable = 0;" > conftest.$ac_ext
4524 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4525 (eval "$ac_compile" 2>conftest.err)
4526 cat conftest.err >&5
4527 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4528 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4529 cat conftest.err >&5
4530 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4531 cat conftest.out >&5
4532 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4533 lt_cv_nm_interface="MS dumpbin"
4534 fi
4535 rm -f conftest*
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4538 $as_echo "$lt_cv_nm_interface" >&6; }
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4541 $as_echo_n "checking whether ln -s works... " >&6; }
4542 LN_S=$as_ln_s
4543 if test "$LN_S" = "ln -s"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545 $as_echo "yes" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4548 $as_echo "no, using $LN_S" >&6; }
4549 fi
4550
4551 # find the maximum length of command line arguments
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4553 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4554 if ${lt_cv_sys_max_cmd_len+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 i=0
4558 teststring=ABCD
4559
4560 case $build_os in
4561 msdosdjgpp*)
4562 # On DJGPP, this test can blow up pretty badly due to problems in libc
4563 # (any single argument exceeding 2000 bytes causes a buffer overrun
4564 # during glob expansion). Even if it were fixed, the result of this
4565 # check would be larger than it should be.
4566 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4567 ;;
4568
4569 gnu*)
4570 # Under GNU Hurd, this test is not required because there is
4571 # no limit to the length of command line arguments.
4572 # Libtool will interpret -1 as no limit whatsoever
4573 lt_cv_sys_max_cmd_len=-1;
4574 ;;
4575
4576 cygwin* | mingw* | cegcc*)
4577 # On Win9x/ME, this test blows up -- it succeeds, but takes
4578 # about 5 minutes as the teststring grows exponentially.
4579 # Worse, since 9x/ME are not pre-emptively multitasking,
4580 # you end up with a "frozen" computer, even though with patience
4581 # the test eventually succeeds (with a max line length of 256k).
4582 # Instead, let's just punt: use the minimum linelength reported by
4583 # all of the supported platforms: 8192 (on NT/2K/XP).
4584 lt_cv_sys_max_cmd_len=8192;
4585 ;;
4586
4587 mint*)
4588 # On MiNT this can take a long time and run out of memory.
4589 lt_cv_sys_max_cmd_len=8192;
4590 ;;
4591
4592 amigaos*)
4593 # On AmigaOS with pdksh, this test takes hours, literally.
4594 # So we just punt and use a minimum line length of 8192.
4595 lt_cv_sys_max_cmd_len=8192;
4596 ;;
4597
4598 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4599 # This has been around since 386BSD, at least. Likely further.
4600 if test -x /sbin/sysctl; then
4601 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4602 elif test -x /usr/sbin/sysctl; then
4603 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4604 else
4605 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4606 fi
4607 # And add a safety zone
4608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4610 ;;
4611
4612 interix*)
4613 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4614 lt_cv_sys_max_cmd_len=196608
4615 ;;
4616
4617 os2*)
4618 # The test takes a long time on OS/2.
4619 lt_cv_sys_max_cmd_len=8192
4620 ;;
4621
4622 osf*)
4623 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4624 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4625 # nice to cause kernel panics so lets avoid the loop below.
4626 # First set a reasonable default.
4627 lt_cv_sys_max_cmd_len=16384
4628 #
4629 if test -x /sbin/sysconfig; then
4630 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4631 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4632 esac
4633 fi
4634 ;;
4635 sco3.2v5*)
4636 lt_cv_sys_max_cmd_len=102400
4637 ;;
4638 sysv5* | sco5v6* | sysv4.2uw2*)
4639 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4640 if test -n "$kargmax"; then
4641 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4642 else
4643 lt_cv_sys_max_cmd_len=32768
4644 fi
4645 ;;
4646 *)
4647 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4648 if test -n "$lt_cv_sys_max_cmd_len" && \
4649 test undefined != "$lt_cv_sys_max_cmd_len"; then
4650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4652 else
4653 # Make teststring a little bigger before we do anything with it.
4654 # a 1K string should be a reasonable start.
4655 for i in 1 2 3 4 5 6 7 8; do
4656 teststring=$teststring$teststring
4657 done
4658 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4659 # If test is not a shell built-in, we'll probably end up computing a
4660 # maximum length that is only half of the actual maximum length, but
4661 # we can't tell.
4662 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4663 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4664 test 17 != "$i" # 1/2 MB should be enough
4665 do
4666 i=`expr $i + 1`
4667 teststring=$teststring$teststring
4668 done
4669 # Only check the string length outside the loop.
4670 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4671 teststring=
4672 # Add a significant safety factor because C++ compilers can tack on
4673 # massive amounts of additional arguments before passing them to the
4674 # linker. It appears as though 1/2 is a usable value.
4675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4676 fi
4677 ;;
4678 esac
4679
4680 fi
4681
4682 if test -n "$lt_cv_sys_max_cmd_len"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4684 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4687 $as_echo "none" >&6; }
4688 fi
4689 max_cmd_len=$lt_cv_sys_max_cmd_len
4690
4691
4692
4693
4694
4695
4696 : ${CP="cp -f"}
4697 : ${MV="mv -f"}
4698 : ${RM="rm -f"}
4699
4700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4701 lt_unset=unset
4702 else
4703 lt_unset=false
4704 fi
4705
4706
4707
4708
4709
4710 # test EBCDIC or ASCII
4711 case `echo X|tr X '\101'` in
4712 A) # ASCII based system
4713 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4714 lt_SP2NL='tr \040 \012'
4715 lt_NL2SP='tr \015\012 \040\040'
4716 ;;
4717 *) # EBCDIC based system
4718 lt_SP2NL='tr \100 \n'
4719 lt_NL2SP='tr \r\n \100\100'
4720 ;;
4721 esac
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4732 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4733 if ${lt_cv_to_host_file_cmd+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 case $host in
4737 *-*-mingw* )
4738 case $build in
4739 *-*-mingw* ) # actually msys
4740 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4741 ;;
4742 *-*-cygwin* )
4743 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4744 ;;
4745 * ) # otherwise, assume *nix
4746 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4747 ;;
4748 esac
4749 ;;
4750 *-*-cygwin* )
4751 case $build in
4752 *-*-mingw* ) # actually msys
4753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4754 ;;
4755 *-*-cygwin* )
4756 lt_cv_to_host_file_cmd=func_convert_file_noop
4757 ;;
4758 * ) # otherwise, assume *nix
4759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4760 ;;
4761 esac
4762 ;;
4763 * ) # unhandled hosts (and "normal" native builds)
4764 lt_cv_to_host_file_cmd=func_convert_file_noop
4765 ;;
4766 esac
4767
4768 fi
4769
4770 to_host_file_cmd=$lt_cv_to_host_file_cmd
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4772 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4773
4774
4775
4776
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4779 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4780 if ${lt_cv_to_tool_file_cmd+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 #assume ordinary cross tools, or native build.
4784 lt_cv_to_tool_file_cmd=func_convert_file_noop
4785 case $host in
4786 *-*-mingw* )
4787 case $build in
4788 *-*-mingw* ) # actually msys
4789 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4790 ;;
4791 esac
4792 ;;
4793 esac
4794
4795 fi
4796
4797 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4799 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4800
4801
4802
4803
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4806 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4807 if ${lt_cv_ld_reload_flag+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 lt_cv_ld_reload_flag='-r'
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4813 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4814 reload_flag=$lt_cv_ld_reload_flag
4815 case $reload_flag in
4816 "" | " "*) ;;
4817 *) reload_flag=" $reload_flag" ;;
4818 esac
4819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4820 case $host_os in
4821 cygwin* | mingw* | pw32* | cegcc*)
4822 if test yes != "$GCC"; then
4823 reload_cmds=false
4824 fi
4825 ;;
4826 darwin*)
4827 if test yes = "$GCC"; then
4828 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4829 else
4830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4831 fi
4832 ;;
4833 esac
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 if test -n "$ac_tool_prefix"; then
4844 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4845 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_prog_OBJDUMP+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$OBJDUMP"; then
4852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869 fi
4870 fi
4871 OBJDUMP=$ac_cv_prog_OBJDUMP
4872 if test -n "$OBJDUMP"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4874 $as_echo "$OBJDUMP" >&6; }
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879
4880
4881 fi
4882 if test -z "$ac_cv_prog_OBJDUMP"; then
4883 ac_ct_OBJDUMP=$OBJDUMP
4884 # Extract the first word of "objdump", so it can be a program name with args.
4885 set dummy objdump; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$ac_ct_OBJDUMP"; then
4892 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4912 if test -n "$ac_ct_OBJDUMP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4914 $as_echo "$ac_ct_OBJDUMP" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920 if test "x$ac_ct_OBJDUMP" = x; then
4921 OBJDUMP="false"
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924 yes:)
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927 ac_tool_warned=yes ;;
4928 esac
4929 OBJDUMP=$ac_ct_OBJDUMP
4930 fi
4931 else
4932 OBJDUMP="$ac_cv_prog_OBJDUMP"
4933 fi
4934
4935 test -z "$OBJDUMP" && OBJDUMP=objdump
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4946 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4947 if ${lt_cv_deplibs_check_method+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 lt_cv_file_magic_cmd='$MAGIC_CMD'
4951 lt_cv_file_magic_test_file=
4952 lt_cv_deplibs_check_method='unknown'
4953 # Need to set the preceding variable on all platforms that support
4954 # interlibrary dependencies.
4955 # 'none' -- dependencies not supported.
4956 # 'unknown' -- same as none, but documents that we really don't know.
4957 # 'pass_all' -- all dependencies passed with no checks.
4958 # 'test_compile' -- check by making test program.
4959 # 'file_magic [[regex]]' -- check by looking for files in library path
4960 # that responds to the $file_magic_cmd with a given extended regex.
4961 # If you have 'file' or equivalent on your system and you're not sure
4962 # whether 'pass_all' will *always* work, you probably want this one.
4963
4964 case $host_os in
4965 aix[4-9]*)
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
4968
4969 beos*)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972
4973 bsdi[45]*)
4974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4975 lt_cv_file_magic_cmd='/usr/bin/file -L'
4976 lt_cv_file_magic_test_file=/shlib/libc.so
4977 ;;
4978
4979 cygwin*)
4980 # func_win32_libid is a shell function defined in ltmain.sh
4981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4982 lt_cv_file_magic_cmd='func_win32_libid'
4983 ;;
4984
4985 mingw* | pw32*)
4986 # Base MSYS/MinGW do not provide the 'file' command needed by
4987 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4988 # unless we find 'file', for example because we are cross-compiling.
4989 if ( file / ) >/dev/null 2>&1; then
4990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4991 lt_cv_file_magic_cmd='func_win32_libid'
4992 else
4993 # Keep this pattern in sync with the one in func_win32_libid.
4994 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4995 lt_cv_file_magic_cmd='$OBJDUMP -f'
4996 fi
4997 ;;
4998
4999 cegcc*)
5000 # use the weaker test based on 'objdump'. See mingw*.
5001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5002 lt_cv_file_magic_cmd='$OBJDUMP -f'
5003 ;;
5004
5005 darwin* | rhapsody*)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008
5009 freebsd* | dragonfly*)
5010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5011 case $host_cpu in
5012 i*86 )
5013 # Not sure whether the presence of OpenBSD here was a mistake.
5014 # Let's accept both of them until this is cleared up.
5015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5016 lt_cv_file_magic_cmd=/usr/bin/file
5017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5018 ;;
5019 esac
5020 else
5021 lt_cv_deplibs_check_method=pass_all
5022 fi
5023 ;;
5024
5025 haiku*)
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028
5029 hpux10.20* | hpux11*)
5030 lt_cv_file_magic_cmd=/usr/bin/file
5031 case $host_cpu in
5032 ia64*)
5033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5034 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5035 ;;
5036 hppa*64*)
5037 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]'
5038 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5039 ;;
5040 *)
5041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5042 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5043 ;;
5044 esac
5045 ;;
5046
5047 interix[3-9]*)
5048 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5050 ;;
5051
5052 irix5* | irix6* | nonstopux*)
5053 case $LD in
5054 *-32|*"-32 ") libmagic=32-bit;;
5055 *-n32|*"-n32 ") libmagic=N32;;
5056 *-64|*"-64 ") libmagic=64-bit;;
5057 *) libmagic=never-match;;
5058 esac
5059 lt_cv_deplibs_check_method=pass_all
5060 ;;
5061
5062 # This must be glibc/ELF.
5063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066
5067 netbsd*)
5068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5070 else
5071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5072 fi
5073 ;;
5074
5075 newos6*)
5076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5077 lt_cv_file_magic_cmd=/usr/bin/file
5078 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5079 ;;
5080
5081 *nto* | *qnx*)
5082 lt_cv_deplibs_check_method=pass_all
5083 ;;
5084
5085 openbsd* | bitrig*)
5086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5088 else
5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5090 fi
5091 ;;
5092
5093 osf3* | osf4* | osf5*)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 rdos*)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100
5101 solaris*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104
5105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109 sysv4 | sysv4.3*)
5110 case $host_vendor in
5111 motorola)
5112 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]'
5113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5114 ;;
5115 ncr)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118 sequent)
5119 lt_cv_file_magic_cmd='/bin/file'
5120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5121 ;;
5122 sni)
5123 lt_cv_file_magic_cmd='/bin/file'
5124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5125 lt_cv_file_magic_test_file=/lib/libc.so
5126 ;;
5127 siemens)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130 pc)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133 esac
5134 ;;
5135
5136 tpf*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139 os2*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142 esac
5143
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5147
5148 file_magic_glob=
5149 want_nocaseglob=no
5150 if test "$build" = "$host"; then
5151 case $host_os in
5152 mingw* | pw32*)
5153 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5154 want_nocaseglob=yes
5155 else
5156 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5157 fi
5158 ;;
5159 esac
5160 fi
5161
5162 file_magic_cmd=$lt_cv_file_magic_cmd
5163 deplibs_check_method=$lt_cv_deplibs_check_method
5164 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 if test -n "$ac_tool_prefix"; then
5188 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5189 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_DLLTOOL+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$DLLTOOL"; then
5196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 DLLTOOL=$ac_cv_prog_DLLTOOL
5216 if test -n "$DLLTOOL"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5218 $as_echo "$DLLTOOL" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224
5225 fi
5226 if test -z "$ac_cv_prog_DLLTOOL"; then
5227 ac_ct_DLLTOOL=$DLLTOOL
5228 # Extract the first word of "dlltool", so it can be a program name with args.
5229 set dummy dlltool; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$ac_ct_DLLTOOL"; then
5236 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249 done
5250 done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5256 if test -n "$ac_ct_DLLTOOL"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5258 $as_echo "$ac_ct_DLLTOOL" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264 if test "x$ac_ct_DLLTOOL" = x; then
5265 DLLTOOL="false"
5266 else
5267 case $cross_compiling:$ac_tool_warned in
5268 yes:)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273 DLLTOOL=$ac_ct_DLLTOOL
5274 fi
5275 else
5276 DLLTOOL="$ac_cv_prog_DLLTOOL"
5277 fi
5278
5279 test -z "$DLLTOOL" && DLLTOOL=dlltool
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5291 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5292 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 lt_cv_sharedlib_from_linklib_cmd='unknown'
5296
5297 case $host_os in
5298 cygwin* | mingw* | pw32* | cegcc*)
5299 # two different shell functions defined in ltmain.sh;
5300 # decide which one to use based on capabilities of $DLLTOOL
5301 case `$DLLTOOL --help 2>&1` in
5302 *--identify-strict*)
5303 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5304 ;;
5305 *)
5306 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5307 ;;
5308 esac
5309 ;;
5310 *)
5311 # fallback: assume linklib IS sharedlib
5312 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5313 ;;
5314 esac
5315
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5318 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5319 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5320 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5321
5322
5323
5324
5325
5326
5327
5328 if test -n "$ac_tool_prefix"; then
5329 for ac_prog in ar
5330 do
5331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_AR+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$AR"; then
5339 ac_cv_prog_AR="$AR" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352 done
5353 done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 AR=$ac_cv_prog_AR
5359 if test -n "$AR"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 test -n "$AR" && break
5369 done
5370 fi
5371 if test -z "$AR"; then
5372 ac_ct_AR=$AR
5373 for ac_prog in ar
5374 do
5375 # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy $ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$ac_ct_AR"; then
5383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_ac_ct_AR="$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396 done
5397 done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5403 if test -n "$ac_ct_AR"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5405 $as_echo "$ac_ct_AR" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412 test -n "$ac_ct_AR" && break
5413 done
5414
5415 if test "x$ac_ct_AR" = x; then
5416 AR="false"
5417 else
5418 case $cross_compiling:$ac_tool_warned in
5419 yes:)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424 AR=$ac_ct_AR
5425 fi
5426 fi
5427
5428 : ${AR=ar}
5429 : ${AR_FLAGS=cru}
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5442 $as_echo_n "checking for archiver @FILE support... " >&6; }
5443 if ${lt_cv_ar_at_file+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 lt_cv_ar_at_file=no
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449
5450 int
5451 main ()
5452 {
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 echo conftest.$ac_objext > conftest.lst
5460 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5462 (eval $lt_ar_try) 2>&5
5463 ac_status=$?
5464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465 test $ac_status = 0; }
5466 if test 0 -eq "$ac_status"; then
5467 # Ensure the archiver fails upon bogus file names.
5468 rm -f conftest.$ac_objext libconftest.a
5469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5470 (eval $lt_ar_try) 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }
5474 if test 0 -ne "$ac_status"; then
5475 lt_cv_ar_at_file=@
5476 fi
5477 fi
5478 rm -f conftest.* libconftest.a
5479
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5485 $as_echo "$lt_cv_ar_at_file" >&6; }
5486
5487 if test no = "$lt_cv_ar_at_file"; then
5488 archiver_list_spec=
5489 else
5490 archiver_list_spec=$lt_cv_ar_at_file
5491 fi
5492
5493
5494
5495
5496
5497
5498
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_STRIP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$STRIP"; then
5508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 STRIP=$ac_cv_prog_STRIP
5528 if test -n "$STRIP"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5530 $as_echo "$STRIP" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536
5537 fi
5538 if test -z "$ac_cv_prog_STRIP"; then
5539 ac_ct_STRIP=$STRIP
5540 # Extract the first word of "strip", so it can be a program name with args.
5541 set dummy strip; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$ac_ct_STRIP"; then
5548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_STRIP="strip"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568 if test -n "$ac_ct_STRIP"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5570 $as_echo "$ac_ct_STRIP" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576 if test "x$ac_ct_STRIP" = x; then
5577 STRIP=":"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585 STRIP=$ac_ct_STRIP
5586 fi
5587 else
5588 STRIP="$ac_cv_prog_STRIP"
5589 fi
5590
5591 test -z "$STRIP" && STRIP=:
5592
5593
5594
5595
5596
5597
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_RANLIB+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$RANLIB"; then
5607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 RANLIB=$ac_cv_prog_RANLIB
5627 if test -n "$RANLIB"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5629 $as_echo "$RANLIB" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 fi
5637 if test -z "$ac_cv_prog_RANLIB"; then
5638 ac_ct_RANLIB=$RANLIB
5639 # Extract the first word of "ranlib", so it can be a program name with args.
5640 set dummy ranlib; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$ac_ct_RANLIB"; then
5647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_RANLIB="ranlib"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5667 if test -n "$ac_ct_RANLIB"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5669 $as_echo "$ac_ct_RANLIB" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675 if test "x$ac_ct_RANLIB" = x; then
5676 RANLIB=":"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 RANLIB=$ac_ct_RANLIB
5685 fi
5686 else
5687 RANLIB="$ac_cv_prog_RANLIB"
5688 fi
5689
5690 test -z "$RANLIB" && RANLIB=:
5691
5692
5693
5694
5695
5696
5697 # Determine commands to create old-style static archives.
5698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5699 old_postinstall_cmds='chmod 644 $oldlib'
5700 old_postuninstall_cmds=
5701
5702 if test -n "$RANLIB"; then
5703 case $host_os in
5704 bitrig* | openbsd*)
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5706 ;;
5707 *)
5708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5709 ;;
5710 esac
5711 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5712 fi
5713
5714 case $host_os in
5715 darwin*)
5716 lock_old_archive_extraction=yes ;;
5717 *)
5718 lock_old_archive_extraction=no ;;
5719 esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 for ac_prog in gawk mawk nawk awk
5742 do
5743 # Extract the first word of "$ac_prog", so it can be a program name with args.
5744 set dummy $ac_prog; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_AWK+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if test -n "$AWK"; then
5751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_AWK="$ac_prog"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 AWK=$ac_cv_prog_AWK
5771 if test -n "$AWK"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5773 $as_echo "$AWK" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779
5780 test -n "$AWK" && break
5781 done
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801 # If no C compiler was specified, use CC.
5802 LTCC=${LTCC-"$CC"}
5803
5804 # If no C compiler flags were specified, use CFLAGS.
5805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5806
5807 # Allow CC to be a program name with arguments.
5808 compiler=$CC
5809
5810
5811 # Check for command to grab the raw symbol name followed by C symbol from nm.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5813 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5814 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817
5818 # These are sane defaults that work on at least a few old systems.
5819 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5820
5821 # Character class describing NM global symbol codes.
5822 symcode='[BCDEGRST]'
5823
5824 # Regexp to match symbols that can be accessed directly from C.
5825 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5826
5827 # Define system-specific variables.
5828 case $host_os in
5829 aix*)
5830 symcode='[BCDT]'
5831 ;;
5832 cygwin* | mingw* | pw32* | cegcc*)
5833 symcode='[ABCDGISTW]'
5834 ;;
5835 hpux*)
5836 if test ia64 = "$host_cpu"; then
5837 symcode='[ABCDEGRST]'
5838 fi
5839 ;;
5840 irix* | nonstopux*)
5841 symcode='[BCDEGRST]'
5842 ;;
5843 osf*)
5844 symcode='[BCDEGQRST]'
5845 ;;
5846 solaris*)
5847 symcode='[BDRT]'
5848 ;;
5849 sco3.2v5*)
5850 symcode='[DT]'
5851 ;;
5852 sysv4.2uw2*)
5853 symcode='[DT]'
5854 ;;
5855 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5856 symcode='[ABDT]'
5857 ;;
5858 sysv4)
5859 symcode='[DFNSTU]'
5860 ;;
5861 esac
5862
5863 # If we're using GNU nm, then use its standard symbol codes.
5864 case `$NM -V 2>&1` in
5865 *GNU* | *'with BFD'*)
5866 symcode='[ABCDGIRSTW]' ;;
5867 esac
5868
5869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5870 # Gets list of data symbols to import.
5871 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5872 # Adjust the below global symbol transforms to fixup imported variables.
5873 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5874 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5875 lt_c_name_lib_hook="\
5876 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5877 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5878 else
5879 # Disable hooks by default.
5880 lt_cv_sys_global_symbol_to_import=
5881 lt_cdecl_hook=
5882 lt_c_name_hook=
5883 lt_c_name_lib_hook=
5884 fi
5885
5886 # Transform an extracted symbol line into a proper C declaration.
5887 # Some systems (esp. on ia64) link data and code symbols differently,
5888 # so use this general approach.
5889 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5890 $lt_cdecl_hook\
5891 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5892 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5893
5894 # Transform an extracted symbol line into symbol name and symbol address
5895 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5896 $lt_c_name_hook\
5897 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5898 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5899
5900 # Transform an extracted symbol line into symbol name with lib prefix and
5901 # symbol address.
5902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5903 $lt_c_name_lib_hook\
5904 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5905 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5906 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5907
5908 # Handle CRLF in mingw tool chain
5909 opt_cr=
5910 case $build_os in
5911 mingw*)
5912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5913 ;;
5914 esac
5915
5916 # Try without a prefix underscore, then with it.
5917 for ac_symprfx in "" "_"; do
5918
5919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5920 symxfrm="\\1 $ac_symprfx\\2 \\2"
5921
5922 # Write the raw and C identifiers.
5923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5924 # Fake it for dumpbin and say T for any non-static function,
5925 # D for any global variable and I for any imported variable.
5926 # Also find C++ and __fastcall symbols from MSVC++,
5927 # which start with @ or ?.
5928 lt_cv_sys_global_symbol_pipe="$AWK '"\
5929 " {last_section=section; section=\$ 3};"\
5930 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5931 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5932 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5933 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5934 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5935 " \$ 0!~/External *\|/{next};"\
5936 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5937 " {if(hide[section]) next};"\
5938 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5939 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5940 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5941 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5942 " ' prfx=^$ac_symprfx"
5943 else
5944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5945 fi
5946 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5947
5948 # Check to see that the pipe works correctly.
5949 pipe_works=no
5950
5951 rm -f conftest*
5952 cat > conftest.$ac_ext <<_LT_EOF
5953 #ifdef __cplusplus
5954 extern "C" {
5955 #endif
5956 char nm_test_var;
5957 void nm_test_func(void);
5958 void nm_test_func(void){}
5959 #ifdef __cplusplus
5960 }
5961 #endif
5962 int main(){nm_test_var='a';nm_test_func();return(0);}
5963 _LT_EOF
5964
5965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5966 (eval $ac_compile) 2>&5
5967 ac_status=$?
5968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5969 test $ac_status = 0; }; then
5970 # Now try to grab the symbols.
5971 nlist=conftest.nm
5972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5973 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5974 ac_status=$?
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976 test $ac_status = 0; } && test -s "$nlist"; then
5977 # Try sorting and uniquifying the output.
5978 if sort "$nlist" | uniq > "$nlist"T; then
5979 mv -f "$nlist"T "$nlist"
5980 else
5981 rm -f "$nlist"T
5982 fi
5983
5984 # Make sure that we snagged all the symbols we need.
5985 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5986 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5987 cat <<_LT_EOF > conftest.$ac_ext
5988 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5989 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5990 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5991 relocations are performed -- see ld's documentation on pseudo-relocs. */
5992 # define LT_DLSYM_CONST
5993 #elif defined __osf__
5994 /* This system does not cope well with relocations in const data. */
5995 # define LT_DLSYM_CONST
5996 #else
5997 # define LT_DLSYM_CONST const
5998 #endif
5999
6000 #ifdef __cplusplus
6001 extern "C" {
6002 #endif
6003
6004 _LT_EOF
6005 # Now generate the symbol file.
6006 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6007
6008 cat <<_LT_EOF >> conftest.$ac_ext
6009
6010 /* The mapping between symbol names and symbols. */
6011 LT_DLSYM_CONST struct {
6012 const char *name;
6013 void *address;
6014 }
6015 lt__PROGRAM__LTX_preloaded_symbols[] =
6016 {
6017 { "@PROGRAM@", (void *) 0 },
6018 _LT_EOF
6019 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6020 cat <<\_LT_EOF >> conftest.$ac_ext
6021 {0, (void *) 0}
6022 };
6023
6024 /* This works around a problem in FreeBSD linker */
6025 #ifdef FREEBSD_WORKAROUND
6026 static const void *lt_preloaded_setup() {
6027 return lt__PROGRAM__LTX_preloaded_symbols;
6028 }
6029 #endif
6030
6031 #ifdef __cplusplus
6032 }
6033 #endif
6034 _LT_EOF
6035 # Now try linking the two files.
6036 mv conftest.$ac_objext conftstm.$ac_objext
6037 lt_globsym_save_LIBS=$LIBS
6038 lt_globsym_save_CFLAGS=$CFLAGS
6039 LIBS=conftstm.$ac_objext
6040 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6042 (eval $ac_link) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6046 pipe_works=yes
6047 fi
6048 LIBS=$lt_globsym_save_LIBS
6049 CFLAGS=$lt_globsym_save_CFLAGS
6050 else
6051 echo "cannot find nm_test_func in $nlist" >&5
6052 fi
6053 else
6054 echo "cannot find nm_test_var in $nlist" >&5
6055 fi
6056 else
6057 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6058 fi
6059 else
6060 echo "$progname: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6062 fi
6063 rm -rf conftest* conftst*
6064
6065 # Do not use the global_symbol_pipe unless it works.
6066 if test yes = "$pipe_works"; then
6067 break
6068 else
6069 lt_cv_sys_global_symbol_pipe=
6070 fi
6071 done
6072
6073 fi
6074
6075 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6076 lt_cv_sys_global_symbol_to_cdecl=
6077 fi
6078 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6080 $as_echo "failed" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6083 $as_echo "ok" >&6; }
6084 fi
6085
6086 # Response file support.
6087 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6088 nm_file_list_spec='@'
6089 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6090 nm_file_list_spec='@'
6091 fi
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6130 $as_echo_n "checking for sysroot... " >&6; }
6131
6132 # Check whether --with-sysroot was given.
6133 if test "${with_sysroot+set}" = set; then :
6134 withval=$with_sysroot;
6135 else
6136 with_sysroot=no
6137 fi
6138
6139
6140 lt_sysroot=
6141 case $with_sysroot in #(
6142 yes)
6143 if test yes = "$GCC"; then
6144 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6145 fi
6146 ;; #(
6147 /*)
6148 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6149 ;; #(
6150 no|'')
6151 ;; #(
6152 *)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6154 $as_echo "$with_sysroot" >&6; }
6155 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6156 ;;
6157 esac
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6160 $as_echo "${lt_sysroot:-no}" >&6; }
6161
6162
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6167 $as_echo_n "checking for a working dd... " >&6; }
6168 if ${ac_cv_path_lt_DD+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 printf 0123456789abcdef0123456789abcdef >conftest.i
6172 cat conftest.i conftest.i >conftest2.i
6173 : ${lt_DD:=$DD}
6174 if test -z "$lt_DD"; then
6175 ac_path_lt_DD_found=false
6176 # Loop through the user's path and test for each of PROGNAME-LIST
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_prog in dd; do
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6185 as_fn_executable_p "$ac_path_lt_DD" || continue
6186 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6187 cmp -s conftest.i conftest.out \
6188 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6189 fi
6190 $ac_path_lt_DD_found && break 3
6191 done
6192 done
6193 done
6194 IFS=$as_save_IFS
6195 if test -z "$ac_cv_path_lt_DD"; then
6196 :
6197 fi
6198 else
6199 ac_cv_path_lt_DD=$lt_DD
6200 fi
6201
6202 rm -f conftest.i conftest2.i conftest.out
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6205 $as_echo "$ac_cv_path_lt_DD" >&6; }
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6209 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6210 if ${lt_cv_truncate_bin+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 printf 0123456789abcdef0123456789abcdef >conftest.i
6214 cat conftest.i conftest.i >conftest2.i
6215 lt_cv_truncate_bin=
6216 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6217 cmp -s conftest.i conftest.out \
6218 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6219 fi
6220 rm -f conftest.i conftest2.i conftest.out
6221 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6224 $as_echo "$lt_cv_truncate_bin" >&6; }
6225
6226
6227
6228
6229
6230
6231
6232 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6233 func_cc_basename ()
6234 {
6235 for cc_temp in $*""; do
6236 case $cc_temp in
6237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6239 \-*) ;;
6240 *) break;;
6241 esac
6242 done
6243 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6244 }
6245
6246 # Check whether --enable-libtool-lock was given.
6247 if test "${enable_libtool_lock+set}" = set; then :
6248 enableval=$enable_libtool_lock;
6249 fi
6250
6251 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6252
6253 # Some flags need to be propagated to the compiler or linker for good
6254 # libtool support.
6255 case $host in
6256 ia64-*-hpux*)
6257 # Find out what ABI is being produced by ac_compile, and set mode
6258 # options accordingly.
6259 echo 'int i;' > conftest.$ac_ext
6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261 (eval $ac_compile) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
6265 case `/usr/bin/file conftest.$ac_objext` in
6266 *ELF-32*)
6267 HPUX_IA64_MODE=32
6268 ;;
6269 *ELF-64*)
6270 HPUX_IA64_MODE=64
6271 ;;
6272 esac
6273 fi
6274 rm -rf conftest*
6275 ;;
6276 *-*-irix6*)
6277 # Find out what ABI is being produced by ac_compile, and set linker
6278 # options accordingly.
6279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281 (eval $ac_compile) 2>&5
6282 ac_status=$?
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; }; then
6285 if test yes = "$lt_cv_prog_gnu_ld"; then
6286 case `/usr/bin/file conftest.$ac_objext` in
6287 *32-bit*)
6288 LD="${LD-ld} -melf32bsmip"
6289 ;;
6290 *N32*)
6291 LD="${LD-ld} -melf32bmipn32"
6292 ;;
6293 *64-bit*)
6294 LD="${LD-ld} -melf64bmip"
6295 ;;
6296 esac
6297 else
6298 case `/usr/bin/file conftest.$ac_objext` in
6299 *32-bit*)
6300 LD="${LD-ld} -32"
6301 ;;
6302 *N32*)
6303 LD="${LD-ld} -n32"
6304 ;;
6305 *64-bit*)
6306 LD="${LD-ld} -64"
6307 ;;
6308 esac
6309 fi
6310 fi
6311 rm -rf conftest*
6312 ;;
6313
6314 mips64*-*linux*)
6315 # Find out what ABI is being produced by ac_compile, and set linker
6316 # options accordingly.
6317 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 emul=elf
6324 case `/usr/bin/file conftest.$ac_objext` in
6325 *32-bit*)
6326 emul="${emul}32"
6327 ;;
6328 *64-bit*)
6329 emul="${emul}64"
6330 ;;
6331 esac
6332 case `/usr/bin/file conftest.$ac_objext` in
6333 *MSB*)
6334 emul="${emul}btsmip"
6335 ;;
6336 *LSB*)
6337 emul="${emul}ltsmip"
6338 ;;
6339 esac
6340 case `/usr/bin/file conftest.$ac_objext` in
6341 *N32*)
6342 emul="${emul}n32"
6343 ;;
6344 esac
6345 LD="${LD-ld} -m $emul"
6346 fi
6347 rm -rf conftest*
6348 ;;
6349
6350 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6351 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6352 # Find out what ABI is being produced by ac_compile, and set linker
6353 # options accordingly. Note that the listed cases only cover the
6354 # situations where additional linker options are needed (such as when
6355 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6356 # vice versa); the common cases where no linker options are needed do
6357 # not appear in the list.
6358 echo 'int i;' > conftest.$ac_ext
6359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6360 (eval $ac_compile) 2>&5
6361 ac_status=$?
6362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6363 test $ac_status = 0; }; then
6364 case `/usr/bin/file conftest.o` in
6365 *32-bit*)
6366 case $host in
6367 x86_64-*kfreebsd*-gnu)
6368 LD="${LD-ld} -m elf_i386_fbsd"
6369 ;;
6370 x86_64-*linux*)
6371 case `/usr/bin/file conftest.o` in
6372 *x86-64*)
6373 LD="${LD-ld} -m elf32_x86_64"
6374 ;;
6375 *)
6376 LD="${LD-ld} -m elf_i386"
6377 ;;
6378 esac
6379 ;;
6380 powerpc64le-*linux*)
6381 LD="${LD-ld} -m elf32lppclinux"
6382 ;;
6383 powerpc64-*linux*)
6384 LD="${LD-ld} -m elf32ppclinux"
6385 ;;
6386 s390x-*linux*)
6387 LD="${LD-ld} -m elf_s390"
6388 ;;
6389 sparc64-*linux*)
6390 LD="${LD-ld} -m elf32_sparc"
6391 ;;
6392 esac
6393 ;;
6394 *64-bit*)
6395 case $host in
6396 x86_64-*kfreebsd*-gnu)
6397 LD="${LD-ld} -m elf_x86_64_fbsd"
6398 ;;
6399 x86_64-*linux*)
6400 LD="${LD-ld} -m elf_x86_64"
6401 ;;
6402 powerpcle-*linux*)
6403 LD="${LD-ld} -m elf64lppc"
6404 ;;
6405 powerpc-*linux*)
6406 LD="${LD-ld} -m elf64ppc"
6407 ;;
6408 s390*-*linux*|s390*-*tpf*)
6409 LD="${LD-ld} -m elf64_s390"
6410 ;;
6411 sparc*-*linux*)
6412 LD="${LD-ld} -m elf64_sparc"
6413 ;;
6414 esac
6415 ;;
6416 esac
6417 fi
6418 rm -rf conftest*
6419 ;;
6420
6421 *-*-sco3.2v5*)
6422 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6423 SAVE_CFLAGS=$CFLAGS
6424 CFLAGS="$CFLAGS -belf"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6426 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6427 if ${lt_cv_cc_needs_belf+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 ac_ext=c
6431 ac_cpp='$CPP $CPPFLAGS'
6432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438
6439 int
6440 main ()
6441 {
6442
6443 ;
6444 return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_link "$LINENO"; then :
6448 lt_cv_cc_needs_belf=yes
6449 else
6450 lt_cv_cc_needs_belf=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 ac_ext=c
6455 ac_cpp='$CPP $CPPFLAGS'
6456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6462 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6463 if test yes != "$lt_cv_cc_needs_belf"; then
6464 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6465 CFLAGS=$SAVE_CFLAGS
6466 fi
6467 ;;
6468 *-*solaris*)
6469 # Find out what ABI is being produced by ac_compile, and set linker
6470 # options accordingly.
6471 echo 'int i;' > conftest.$ac_ext
6472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6473 (eval $ac_compile) 2>&5
6474 ac_status=$?
6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476 test $ac_status = 0; }; then
6477 case `/usr/bin/file conftest.o` in
6478 *64-bit*)
6479 case $lt_cv_prog_gnu_ld in
6480 yes*)
6481 case $host in
6482 i?86-*-solaris*|x86_64-*-solaris*)
6483 LD="${LD-ld} -m elf_x86_64"
6484 ;;
6485 sparc*-*-solaris*)
6486 LD="${LD-ld} -m elf64_sparc"
6487 ;;
6488 esac
6489 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6490 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6491 LD=${LD-ld}_sol2
6492 fi
6493 ;;
6494 *)
6495 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6496 LD="${LD-ld} -64"
6497 fi
6498 ;;
6499 esac
6500 ;;
6501 esac
6502 fi
6503 rm -rf conftest*
6504 ;;
6505 esac
6506
6507 need_locks=$enable_libtool_lock
6508
6509 if test -n "$ac_tool_prefix"; then
6510 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6511 set dummy ${ac_tool_prefix}mt; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test -n "$MANIFEST_TOOL"; then
6518 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6519 else
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_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6538 if test -n "$MANIFEST_TOOL"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6540 $as_echo "$MANIFEST_TOOL" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6549 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6550 # Extract the first word of "mt", so it can be a program name with args.
6551 set dummy mt; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -n "$ac_ct_MANIFEST_TOOL"; then
6558 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6578 if test -n "$ac_ct_MANIFEST_TOOL"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6580 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6587 MANIFEST_TOOL=":"
6588 else
6589 case $cross_compiling:$ac_tool_warned in
6590 yes:)
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6594 esac
6595 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6596 fi
6597 else
6598 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6599 fi
6600
6601 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6603 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6604 if ${lt_cv_path_mainfest_tool+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 lt_cv_path_mainfest_tool=no
6608 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6609 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6610 cat conftest.err >&5
6611 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6612 lt_cv_path_mainfest_tool=yes
6613 fi
6614 rm -f conftest*
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6617 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6618 if test yes != "$lt_cv_path_mainfest_tool"; then
6619 MANIFEST_TOOL=:
6620 fi
6621
6622
6623
6624
6625
6626
6627 case $host_os in
6628 rhapsody* | darwin*)
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$DSYMUTIL"; then
6638 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6658 if test -n "$DSYMUTIL"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6660 $as_echo "$DSYMUTIL" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_DSYMUTIL"; then
6669 ac_ct_DSYMUTIL=$DSYMUTIL
6670 # Extract the first word of "dsymutil", so it can be a program name with args.
6671 set dummy dsymutil; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$ac_ct_DSYMUTIL"; then
6678 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6698 if test -n "$ac_ct_DSYMUTIL"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6700 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706 if test "x$ac_ct_DSYMUTIL" = x; then
6707 DSYMUTIL=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 DSYMUTIL=$ac_ct_DSYMUTIL
6716 fi
6717 else
6718 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6719 fi
6720
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_NMEDIT+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$NMEDIT"; then
6730 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 NMEDIT=$ac_cv_prog_NMEDIT
6750 if test -n "$NMEDIT"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6752 $as_echo "$NMEDIT" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_prog_NMEDIT"; then
6761 ac_ct_NMEDIT=$NMEDIT
6762 # Extract the first word of "nmedit", so it can be a program name with args.
6763 set dummy nmedit; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_NMEDIT"; then
6770 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6790 if test -n "$ac_ct_NMEDIT"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6792 $as_echo "$ac_ct_NMEDIT" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798 if test "x$ac_ct_NMEDIT" = x; then
6799 NMEDIT=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 NMEDIT=$ac_ct_NMEDIT
6808 fi
6809 else
6810 NMEDIT="$ac_cv_prog_NMEDIT"
6811 fi
6812
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_LIPO+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$LIPO"; then
6822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 LIPO=$ac_cv_prog_LIPO
6842 if test -n "$LIPO"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6844 $as_echo "$LIPO" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_LIPO"; then
6853 ac_ct_LIPO=$LIPO
6854 # Extract the first word of "lipo", so it can be a program name with args.
6855 set dummy lipo; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 if test -n "$ac_ct_LIPO"; then
6862 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_ac_ct_LIPO="lipo"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6882 if test -n "$ac_ct_LIPO"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6884 $as_echo "$ac_ct_LIPO" >&6; }
6885 else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890 if test "x$ac_ct_LIPO" = x; then
6891 LIPO=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 LIPO=$ac_ct_LIPO
6900 fi
6901 else
6902 LIPO="$ac_cv_prog_LIPO"
6903 fi
6904
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}otool; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_OTOOL+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$OTOOL"; then
6914 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 OTOOL=$ac_cv_prog_OTOOL
6934 if test -n "$OTOOL"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6936 $as_echo "$OTOOL" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943 fi
6944 if test -z "$ac_cv_prog_OTOOL"; then
6945 ac_ct_OTOOL=$OTOOL
6946 # Extract the first word of "otool", so it can be a program name with args.
6947 set dummy otool; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 if test -n "$ac_ct_OTOOL"; then
6954 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_OTOOL="otool"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6974 if test -n "$ac_ct_OTOOL"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6976 $as_echo "$ac_ct_OTOOL" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982 if test "x$ac_ct_OTOOL" = x; then
6983 OTOOL=":"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991 OTOOL=$ac_ct_OTOOL
6992 fi
6993 else
6994 OTOOL="$ac_cv_prog_OTOOL"
6995 fi
6996
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_OTOOL64+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$OTOOL64"; then
7006 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 OTOOL64=$ac_cv_prog_OTOOL64
7026 if test -n "$OTOOL64"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7028 $as_echo "$OTOOL64" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034
7035 fi
7036 if test -z "$ac_cv_prog_OTOOL64"; then
7037 ac_ct_OTOOL64=$OTOOL64
7038 # Extract the first word of "otool64", so it can be a program name with args.
7039 set dummy otool64; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -n "$ac_ct_OTOOL64"; then
7046 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_ac_ct_OTOOL64="otool64"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063 fi
7064 fi
7065 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7066 if test -n "$ac_ct_OTOOL64"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7068 $as_echo "$ac_ct_OTOOL64" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7072 fi
7073
7074 if test "x$ac_ct_OTOOL64" = x; then
7075 OTOOL64=":"
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7082 esac
7083 OTOOL64=$ac_ct_OTOOL64
7084 fi
7085 else
7086 OTOOL64="$ac_cv_prog_OTOOL64"
7087 fi
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7116 $as_echo_n "checking for -single_module linker flag... " >&6; }
7117 if ${lt_cv_apple_cc_single_mod+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 lt_cv_apple_cc_single_mod=no
7121 if test -z "$LT_MULTI_MODULE"; then
7122 # By default we will add the -single_module flag. You can override
7123 # by either setting the environment variable LT_MULTI_MODULE
7124 # non-empty at configure time, or by adding -multi_module to the
7125 # link flags.
7126 rm -rf libconftest.dylib*
7127 echo "int foo(void){return 1;}" > conftest.c
7128 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7129 -dynamiclib -Wl,-single_module conftest.c" >&5
7130 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7131 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7132 _lt_result=$?
7133 # If there is a non-empty error log, and "single_module"
7134 # appears in it, assume the flag caused a linker warning
7135 if test -s conftest.err && $GREP single_module conftest.err; then
7136 cat conftest.err >&5
7137 # Otherwise, if the output was created with a 0 exit code from
7138 # the compiler, it worked.
7139 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7140 lt_cv_apple_cc_single_mod=yes
7141 else
7142 cat conftest.err >&5
7143 fi
7144 rm -rf libconftest.dylib*
7145 rm -f conftest.*
7146 fi
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7149 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7152 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7153 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 lt_cv_ld_exported_symbols_list=no
7157 save_LDFLAGS=$LDFLAGS
7158 echo "_main" > conftest.sym
7159 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162
7163 int
7164 main ()
7165 {
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_link "$LINENO"; then :
7172 lt_cv_ld_exported_symbols_list=yes
7173 else
7174 lt_cv_ld_exported_symbols_list=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 LDFLAGS=$save_LDFLAGS
7179
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7182 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7183
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7185 $as_echo_n "checking for -force_load linker flag... " >&6; }
7186 if ${lt_cv_ld_force_load+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 lt_cv_ld_force_load=no
7190 cat > conftest.c << _LT_EOF
7191 int forced_loaded() { return 2;}
7192 _LT_EOF
7193 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7194 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7195 echo "$AR cru libconftest.a conftest.o" >&5
7196 $AR cru libconftest.a conftest.o 2>&5
7197 echo "$RANLIB libconftest.a" >&5
7198 $RANLIB libconftest.a 2>&5
7199 cat > conftest.c << _LT_EOF
7200 int main() { return 0;}
7201 _LT_EOF
7202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7204 _lt_result=$?
7205 if test -s conftest.err && $GREP force_load conftest.err; then
7206 cat conftest.err >&5
7207 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7208 lt_cv_ld_force_load=yes
7209 else
7210 cat conftest.err >&5
7211 fi
7212 rm -f conftest.err libconftest.a conftest conftest.c
7213 rm -rf conftest.dSYM
7214
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7217 $as_echo "$lt_cv_ld_force_load" >&6; }
7218 case $host_os in
7219 rhapsody* | darwin1.[012])
7220 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7221 darwin1.*)
7222 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7223 darwin*) # darwin 5.x on
7224 # if running on 10.5 or later, the deployment target defaults
7225 # to the OS version, if on x86, and 10.4, the deployment
7226 # target defaults to 10.4. Don't you love it?
7227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7228 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7229 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7230 10.[012][,.]*)
7231 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7232 10.*)
7233 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7234 esac
7235 ;;
7236 esac
7237 if test yes = "$lt_cv_apple_cc_single_mod"; then
7238 _lt_dar_single_mod='$single_module'
7239 fi
7240 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7241 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7242 else
7243 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7244 fi
7245 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7246 _lt_dsymutil='~$DSYMUTIL $lib || :'
7247 else
7248 _lt_dsymutil=
7249 fi
7250 ;;
7251 esac
7252
7253 # func_munge_path_list VARIABLE PATH
7254 # -----------------------------------
7255 # VARIABLE is name of variable containing _space_ separated list of
7256 # directories to be munged by the contents of PATH, which is string
7257 # having a format:
7258 # "DIR[:DIR]:"
7259 # string "DIR[ DIR]" will be prepended to VARIABLE
7260 # ":DIR[:DIR]"
7261 # string "DIR[ DIR]" will be appended to VARIABLE
7262 # "DIRP[:DIRP]::[DIRA:]DIRA"
7263 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7264 # "DIRA[ DIRA]" will be appended to VARIABLE
7265 # "DIR[:DIR]"
7266 # VARIABLE will be replaced by "DIR[ DIR]"
7267 func_munge_path_list ()
7268 {
7269 case x$2 in
7270 x)
7271 ;;
7272 *:)
7273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7274 ;;
7275 x:*)
7276 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7277 ;;
7278 *::*)
7279 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7280 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7281 ;;
7282 *)
7283 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7284 ;;
7285 esac
7286 }
7287
7288 for ac_header in dlfcn.h
7289 do :
7290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7291 "
7292 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7293 cat >>confdefs.h <<_ACEOF
7294 #define HAVE_DLFCN_H 1
7295 _ACEOF
7296
7297 fi
7298
7299 done
7300
7301
7302
7303
7304
7305 # Set options
7306
7307
7308
7309 enable_dlopen=no
7310
7311
7312 enable_win32_dll=no
7313
7314
7315 # Check whether --enable-shared was given.
7316 if test "${enable_shared+set}" = set; then :
7317 enableval=$enable_shared; p=${PACKAGE-default}
7318 case $enableval in
7319 yes) enable_shared=yes ;;
7320 no) enable_shared=no ;;
7321 *)
7322 enable_shared=no
7323 # Look at the argument we got. We use all the common list separators.
7324 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7325 for pkg in $enableval; do
7326 IFS=$lt_save_ifs
7327 if test "X$pkg" = "X$p"; then
7328 enable_shared=yes
7329 fi
7330 done
7331 IFS=$lt_save_ifs
7332 ;;
7333 esac
7334 else
7335 enable_shared=yes
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 # Check whether --enable-static was given.
7347 if test "${enable_static+set}" = set; then :
7348 enableval=$enable_static; p=${PACKAGE-default}
7349 case $enableval in
7350 yes) enable_static=yes ;;
7351 no) enable_static=no ;;
7352 *)
7353 enable_static=no
7354 # Look at the argument we got. We use all the common list separators.
7355 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7356 for pkg in $enableval; do
7357 IFS=$lt_save_ifs
7358 if test "X$pkg" = "X$p"; then
7359 enable_static=yes
7360 fi
7361 done
7362 IFS=$lt_save_ifs
7363 ;;
7364 esac
7365 else
7366 enable_static=yes
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 # Check whether --with-pic was given.
7379 if test "${with_pic+set}" = set; then :
7380 withval=$with_pic; lt_p=${PACKAGE-default}
7381 case $withval in
7382 yes|no) pic_mode=$withval ;;
7383 *)
7384 pic_mode=default
7385 # Look at the argument we got. We use all the common list separators.
7386 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7387 for lt_pkg in $withval; do
7388 IFS=$lt_save_ifs
7389 if test "X$lt_pkg" = "X$lt_p"; then
7390 pic_mode=yes
7391 fi
7392 done
7393 IFS=$lt_save_ifs
7394 ;;
7395 esac
7396 else
7397 pic_mode=default
7398 fi
7399
7400
7401
7402
7403
7404
7405
7406
7407 # Check whether --enable-fast-install was given.
7408 if test "${enable_fast_install+set}" = set; then :
7409 enableval=$enable_fast_install; p=${PACKAGE-default}
7410 case $enableval in
7411 yes) enable_fast_install=yes ;;
7412 no) enable_fast_install=no ;;
7413 *)
7414 enable_fast_install=no
7415 # Look at the argument we got. We use all the common list separators.
7416 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7417 for pkg in $enableval; do
7418 IFS=$lt_save_ifs
7419 if test "X$pkg" = "X$p"; then
7420 enable_fast_install=yes
7421 fi
7422 done
7423 IFS=$lt_save_ifs
7424 ;;
7425 esac
7426 else
7427 enable_fast_install=yes
7428 fi
7429
7430
7431
7432
7433
7434
7435
7436
7437 shared_archive_member_spec=
7438 case $host,$enable_shared in
7439 power*-*-aix[5-9]*,yes)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7441 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7442
7443 # Check whether --with-aix-soname was given.
7444 if test "${with_aix_soname+set}" = set; then :
7445 withval=$with_aix_soname; case $withval in
7446 aix|svr4|both)
7447 ;;
7448 *)
7449 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7450 ;;
7451 esac
7452 lt_cv_with_aix_soname=$with_aix_soname
7453 else
7454 if ${lt_cv_with_aix_soname+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 lt_cv_with_aix_soname=aix
7458 fi
7459
7460 with_aix_soname=$lt_cv_with_aix_soname
7461 fi
7462
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7464 $as_echo "$with_aix_soname" >&6; }
7465 if test aix != "$with_aix_soname"; then
7466 # For the AIX way of multilib, we name the shared archive member
7467 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7468 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7469 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7470 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7471 if test 64 = "${OBJECT_MODE-32}"; then
7472 shared_archive_member_spec=shr_64
7473 else
7474 shared_archive_member_spec=shr
7475 fi
7476 fi
7477 ;;
7478 *)
7479 with_aix_soname=aix
7480 ;;
7481 esac
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 # This can be used to rebuild libtool when needed
7493 LIBTOOL_DEPS=$ltmain
7494
7495 # Always use our own libtool.
7496 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527 test -z "$LN_S" && LN_S="ln -s"
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542 if test -n "${ZSH_VERSION+set}"; then
7543 setopt NO_GLOB_SUBST
7544 fi
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7547 $as_echo_n "checking for objdir... " >&6; }
7548 if ${lt_cv_objdir+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 rm -f .libs 2>/dev/null
7552 mkdir .libs 2>/dev/null
7553 if test -d .libs; then
7554 lt_cv_objdir=.libs
7555 else
7556 # MS-DOS does not allow filenames that begin with a dot.
7557 lt_cv_objdir=_libs
7558 fi
7559 rmdir .libs 2>/dev/null
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7562 $as_echo "$lt_cv_objdir" >&6; }
7563 objdir=$lt_cv_objdir
7564
7565
7566
7567
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define LT_OBJDIR "$lt_cv_objdir/"
7571 _ACEOF
7572
7573
7574
7575
7576 case $host_os in
7577 aix3*)
7578 # AIX sometimes has problems with the GCC collect2 program. For some
7579 # reason, if we set the COLLECT_NAMES environment variable, the problems
7580 # vanish in a puff of smoke.
7581 if test set != "${COLLECT_NAMES+set}"; then
7582 COLLECT_NAMES=
7583 export COLLECT_NAMES
7584 fi
7585 ;;
7586 esac
7587
7588 # Global variables:
7589 ofile=libtool
7590 can_build_shared=yes
7591
7592 # All known linkers require a '.a' archive for static linking (except MSVC,
7593 # which needs '.lib').
7594 libext=a
7595
7596 with_gnu_ld=$lt_cv_prog_gnu_ld
7597
7598 old_CC=$CC
7599 old_CFLAGS=$CFLAGS
7600
7601 # Set sane defaults for various variables
7602 test -z "$CC" && CC=cc
7603 test -z "$LTCC" && LTCC=$CC
7604 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7605 test -z "$LD" && LD=ld
7606 test -z "$ac_objext" && ac_objext=o
7607
7608 func_cc_basename $compiler
7609 cc_basename=$func_cc_basename_result
7610
7611
7612 # Only perform the check for file, if the check method requires it
7613 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7614 case $deplibs_check_method in
7615 file_magic*)
7616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7618 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7619 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 case $MAGIC_CMD in
7623 [\\/*] | ?:[\\/]*)
7624 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7625 ;;
7626 *)
7627 lt_save_MAGIC_CMD=$MAGIC_CMD
7628 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7630 for ac_dir in $ac_dummy; do
7631 IFS=$lt_save_ifs
7632 test -z "$ac_dir" && ac_dir=.
7633 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7634 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7635 if test -n "$file_magic_test_file"; then
7636 case $deplibs_check_method in
7637 "file_magic "*)
7638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7639 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7641 $EGREP "$file_magic_regex" > /dev/null; then
7642 :
7643 else
7644 cat <<_LT_EOF 1>&2
7645
7646 *** Warning: the command libtool uses to detect shared libraries,
7647 *** $file_magic_cmd, produces output that libtool cannot recognize.
7648 *** The result is that libtool may fail to recognize shared libraries
7649 *** as such. This will affect the creation of libtool libraries that
7650 *** depend on shared libraries, but programs linked with such libtool
7651 *** libraries will work regardless of this problem. Nevertheless, you
7652 *** may want to report the problem to your system manager and/or to
7653 *** bug-libtool (at] gnu.org
7654
7655 _LT_EOF
7656 fi ;;
7657 esac
7658 fi
7659 break
7660 fi
7661 done
7662 IFS=$lt_save_ifs
7663 MAGIC_CMD=$lt_save_MAGIC_CMD
7664 ;;
7665 esac
7666 fi
7667
7668 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7669 if test -n "$MAGIC_CMD"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7671 $as_echo "$MAGIC_CMD" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677
7678
7679
7680
7681 if test -z "$lt_cv_path_MAGIC_CMD"; then
7682 if test -n "$ac_tool_prefix"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7684 $as_echo_n "checking for file... " >&6; }
7685 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 case $MAGIC_CMD in
7689 [\\/*] | ?:[\\/]*)
7690 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7691 ;;
7692 *)
7693 lt_save_MAGIC_CMD=$MAGIC_CMD
7694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7696 for ac_dir in $ac_dummy; do
7697 IFS=$lt_save_ifs
7698 test -z "$ac_dir" && ac_dir=.
7699 if test -f "$ac_dir/file"; then
7700 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7701 if test -n "$file_magic_test_file"; then
7702 case $deplibs_check_method in
7703 "file_magic "*)
7704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7705 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7707 $EGREP "$file_magic_regex" > /dev/null; then
7708 :
7709 else
7710 cat <<_LT_EOF 1>&2
7711
7712 *** Warning: the command libtool uses to detect shared libraries,
7713 *** $file_magic_cmd, produces output that libtool cannot recognize.
7714 *** The result is that libtool may fail to recognize shared libraries
7715 *** as such. This will affect the creation of libtool libraries that
7716 *** depend on shared libraries, but programs linked with such libtool
7717 *** libraries will work regardless of this problem. Nevertheless, you
7718 *** may want to report the problem to your system manager and/or to
7719 *** bug-libtool (at] gnu.org
7720
7721 _LT_EOF
7722 fi ;;
7723 esac
7724 fi
7725 break
7726 fi
7727 done
7728 IFS=$lt_save_ifs
7729 MAGIC_CMD=$lt_save_MAGIC_CMD
7730 ;;
7731 esac
7732 fi
7733
7734 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7735 if test -n "$MAGIC_CMD"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7737 $as_echo "$MAGIC_CMD" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 fi
7742
7743
7744 else
7745 MAGIC_CMD=:
7746 fi
7747 fi
7748
7749 fi
7750 ;;
7751 esac
7752
7753 # Use C for the default configuration in the libtool script
7754
7755 lt_save_CC=$CC
7756 ac_ext=c
7757 ac_cpp='$CPP $CPPFLAGS'
7758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7761
7762
7763 # Source file extension for C test sources.
7764 ac_ext=c
7765
7766 # Object file extension for compiled C test sources.
7767 objext=o
7768 objext=$objext
7769
7770 # Code to be used in simple compile tests
7771 lt_simple_compile_test_code="int some_variable = 0;"
7772
7773 # Code to be used in simple link tests
7774 lt_simple_link_test_code='int main(){return(0);}'
7775
7776
7777
7778
7779
7780
7781
7782 # If no C compiler was specified, use CC.
7783 LTCC=${LTCC-"$CC"}
7784
7785 # If no C compiler flags were specified, use CFLAGS.
7786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7787
7788 # Allow CC to be a program name with arguments.
7789 compiler=$CC
7790
7791 # Save the default compiler, since it gets overwritten when the other
7792 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7793 compiler_DEFAULT=$CC
7794
7795 # save warnings/boilerplate of simple test code
7796 ac_outfile=conftest.$ac_objext
7797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7799 _lt_compiler_boilerplate=`cat conftest.err`
7800 $RM conftest*
7801
7802 ac_outfile=conftest.$ac_objext
7803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7805 _lt_linker_boilerplate=`cat conftest.err`
7806 $RM -r conftest*
7807
7808
7809 ## CAVEAT EMPTOR:
7810 ## There is no encapsulation within the following macros, do not change
7811 ## the running order or otherwise move them around unless you know exactly
7812 ## what you are doing...
7813 if test -n "$compiler"; then
7814
7815 lt_prog_compiler_no_builtin_flag=
7816
7817 if test yes = "$GCC"; then
7818 case $cc_basename in
7819 nvcc*)
7820 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7821 *)
7822 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7823 esac
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7826 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7827 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 lt_cv_prog_compiler_rtti_exceptions=no
7831 ac_outfile=conftest.$ac_objext
7832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7833 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7834 # Insert the option either (1) after the last *FLAGS variable, or
7835 # (2) before a word containing "conftest.", or (3) at the end.
7836 # Note that $ac_compile itself does not contain backslashes and begins
7837 # with a dollar sign (not a hyphen), so the echo should work correctly.
7838 # The option is referenced via a variable to avoid confusing sed.
7839 lt_compile=`echo "$ac_compile" | $SED \
7840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7842 -e 's:$: $lt_compiler_flag:'`
7843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7844 (eval "$lt_compile" 2>conftest.err)
7845 ac_status=$?
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 if (exit $ac_status) && test -s "$ac_outfile"; then
7849 # The compiler can only warn and ignore the option if not recognized
7850 # So say no if there are warnings other than the usual output.
7851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7854 lt_cv_prog_compiler_rtti_exceptions=yes
7855 fi
7856 fi
7857 $RM conftest*
7858
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7861 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7862
7863 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7864 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7865 else
7866 :
7867 fi
7868
7869 fi
7870
7871
7872
7873
7874
7875
7876 lt_prog_compiler_wl=
7877 lt_prog_compiler_pic=
7878 lt_prog_compiler_static=
7879
7880
7881 if test yes = "$GCC"; then
7882 lt_prog_compiler_wl='-Wl,'
7883 lt_prog_compiler_static='-static'
7884
7885 case $host_os in
7886 aix*)
7887 # All AIX code is PIC.
7888 if test ia64 = "$host_cpu"; then
7889 # AIX 5 now supports IA64 processor
7890 lt_prog_compiler_static='-Bstatic'
7891 fi
7892 lt_prog_compiler_pic='-fPIC'
7893 ;;
7894
7895 amigaos*)
7896 case $host_cpu in
7897 powerpc)
7898 # see comment about AmigaOS4 .so support
7899 lt_prog_compiler_pic='-fPIC'
7900 ;;
7901 m68k)
7902 # FIXME: we need at least 68020 code to build shared libraries, but
7903 # adding the '-m68020' flag to GCC prevents building anything better,
7904 # like '-m68040'.
7905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7906 ;;
7907 esac
7908 ;;
7909
7910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7911 # PIC is the default for these OSes.
7912 ;;
7913
7914 mingw* | cygwin* | pw32* | os2* | cegcc*)
7915 # This hack is so that the source file can tell whether it is being
7916 # built for inclusion in a dll (and should export symbols for example).
7917 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7918 # (--disable-auto-import) libraries
7919 lt_prog_compiler_pic='-DDLL_EXPORT'
7920 case $host_os in
7921 os2*)
7922 lt_prog_compiler_static='$wl-static'
7923 ;;
7924 esac
7925 ;;
7926
7927 darwin* | rhapsody*)
7928 # PIC is the default on this platform
7929 # Common symbols not allowed in MH_DYLIB files
7930 lt_prog_compiler_pic='-fno-common'
7931 ;;
7932
7933 haiku*)
7934 # PIC is the default for Haiku.
7935 # The "-static" flag exists, but is broken.
7936 lt_prog_compiler_static=
7937 ;;
7938
7939 hpux*)
7940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7942 # sets the default TLS model and affects inlining.
7943 case $host_cpu in
7944 hppa*64*)
7945 # +Z the default
7946 ;;
7947 *)
7948 lt_prog_compiler_pic='-fPIC'
7949 ;;
7950 esac
7951 ;;
7952
7953 interix[3-9]*)
7954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7955 # Instead, we relocate shared libraries at runtime.
7956 ;;
7957
7958 msdosdjgpp*)
7959 # Just because we use GCC doesn't mean we suddenly get shared libraries
7960 # on systems that don't support them.
7961 lt_prog_compiler_can_build_shared=no
7962 enable_shared=no
7963 ;;
7964
7965 *nto* | *qnx*)
7966 # QNX uses GNU C++, but need to define -shared option too, otherwise
7967 # it will coredump.
7968 lt_prog_compiler_pic='-fPIC -shared'
7969 ;;
7970
7971 sysv4*MP*)
7972 if test -d /usr/nec; then
7973 lt_prog_compiler_pic=-Kconform_pic
7974 fi
7975 ;;
7976
7977 *)
7978 lt_prog_compiler_pic='-fPIC'
7979 ;;
7980 esac
7981
7982 case $cc_basename in
7983 nvcc*) # Cuda Compiler Driver 2.2
7984 lt_prog_compiler_wl='-Xlinker '
7985 if test -n "$lt_prog_compiler_pic"; then
7986 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7987 fi
7988 ;;
7989 esac
7990 else
7991 # PORTME Check for flag to pass linker flags through the system compiler.
7992 case $host_os in
7993 aix*)
7994 lt_prog_compiler_wl='-Wl,'
7995 if test ia64 = "$host_cpu"; then
7996 # AIX 5 now supports IA64 processor
7997 lt_prog_compiler_static='-Bstatic'
7998 else
7999 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8000 fi
8001 ;;
8002
8003 darwin* | rhapsody*)
8004 # PIC is the default on this platform
8005 # Common symbols not allowed in MH_DYLIB files
8006 lt_prog_compiler_pic='-fno-common'
8007 case $cc_basename in
8008 nagfor*)
8009 # NAG Fortran compiler
8010 lt_prog_compiler_wl='-Wl,-Wl,,'
8011 lt_prog_compiler_pic='-PIC'
8012 lt_prog_compiler_static='-Bstatic'
8013 ;;
8014 esac
8015 ;;
8016
8017 mingw* | cygwin* | pw32* | os2* | cegcc*)
8018 # This hack is so that the source file can tell whether it is being
8019 # built for inclusion in a dll (and should export symbols for example).
8020 lt_prog_compiler_pic='-DDLL_EXPORT'
8021 case $host_os in
8022 os2*)
8023 lt_prog_compiler_static='$wl-static'
8024 ;;
8025 esac
8026 ;;
8027
8028 hpux9* | hpux10* | hpux11*)
8029 lt_prog_compiler_wl='-Wl,'
8030 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8031 # not for PA HP-UX.
8032 case $host_cpu in
8033 hppa*64*|ia64*)
8034 # +Z the default
8035 ;;
8036 *)
8037 lt_prog_compiler_pic='+Z'
8038 ;;
8039 esac
8040 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8041 lt_prog_compiler_static='$wl-a ${wl}archive'
8042 ;;
8043
8044 irix5* | irix6* | nonstopux*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # PIC (with -KPIC) is the default.
8047 lt_prog_compiler_static='-non_shared'
8048 ;;
8049
8050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8051 case $cc_basename in
8052 # old Intel for x86_64, which still supported -KPIC.
8053 ecc*)
8054 lt_prog_compiler_wl='-Wl,'
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-static'
8057 ;;
8058 # icc used to be incompatible with GCC.
8059 # ICC 10 doesn't accept -KPIC any more.
8060 icc* | ifort*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-fPIC'
8063 lt_prog_compiler_static='-static'
8064 ;;
8065 # Lahey Fortran 8.1.
8066 lf95*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='--shared'
8069 lt_prog_compiler_static='--static'
8070 ;;
8071 nagfor*)
8072 # NAG Fortran compiler
8073 lt_prog_compiler_wl='-Wl,-Wl,,'
8074 lt_prog_compiler_pic='-PIC'
8075 lt_prog_compiler_static='-Bstatic'
8076 ;;
8077 tcc*)
8078 # Fabrice Bellard et al's Tiny C Compiler
8079 lt_prog_compiler_wl='-Wl,'
8080 lt_prog_compiler_pic='-fPIC'
8081 lt_prog_compiler_static='-static'
8082 ;;
8083 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8084 # Portland Group compilers (*not* the Pentium gcc compiler,
8085 # which looks to be a dead project)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_pic='-fpic'
8088 lt_prog_compiler_static='-Bstatic'
8089 ;;
8090 ccc*)
8091 lt_prog_compiler_wl='-Wl,'
8092 # All Alpha code is PIC.
8093 lt_prog_compiler_static='-non_shared'
8094 ;;
8095 xl* | bgxl* | bgf* | mpixl*)
8096 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-qpic'
8099 lt_prog_compiler_static='-qstaticlink'
8100 ;;
8101 *)
8102 case `$CC -V 2>&1 | sed 5q` in
8103 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8104 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8105 lt_prog_compiler_pic='-KPIC'
8106 lt_prog_compiler_static='-Bstatic'
8107 lt_prog_compiler_wl=''
8108 ;;
8109 *Sun\ F* | *Sun*Fortran*)
8110 lt_prog_compiler_pic='-KPIC'
8111 lt_prog_compiler_static='-Bstatic'
8112 lt_prog_compiler_wl='-Qoption ld '
8113 ;;
8114 *Sun\ C*)
8115 # Sun C 5.9
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8118 lt_prog_compiler_wl='-Wl,'
8119 ;;
8120 *Intel*\ [CF]*Compiler*)
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-fPIC'
8123 lt_prog_compiler_static='-static'
8124 ;;
8125 *Portland\ Group*)
8126 lt_prog_compiler_wl='-Wl,'
8127 lt_prog_compiler_pic='-fpic'
8128 lt_prog_compiler_static='-Bstatic'
8129 ;;
8130 esac
8131 ;;
8132 esac
8133 ;;
8134
8135 newsos6)
8136 lt_prog_compiler_pic='-KPIC'
8137 lt_prog_compiler_static='-Bstatic'
8138 ;;
8139
8140 *nto* | *qnx*)
8141 # QNX uses GNU C++, but need to define -shared option too, otherwise
8142 # it will coredump.
8143 lt_prog_compiler_pic='-fPIC -shared'
8144 ;;
8145
8146 osf3* | osf4* | osf5*)
8147 lt_prog_compiler_wl='-Wl,'
8148 # All OSF/1 code is PIC.
8149 lt_prog_compiler_static='-non_shared'
8150 ;;
8151
8152 rdos*)
8153 lt_prog_compiler_static='-non_shared'
8154 ;;
8155
8156 solaris*)
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8159 case $cc_basename in
8160 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8161 lt_prog_compiler_wl='-Qoption ld ';;
8162 *)
8163 lt_prog_compiler_wl='-Wl,';;
8164 esac
8165 ;;
8166
8167 sunos4*)
8168 lt_prog_compiler_wl='-Qoption ld '
8169 lt_prog_compiler_pic='-PIC'
8170 lt_prog_compiler_static='-Bstatic'
8171 ;;
8172
8173 sysv4 | sysv4.2uw2* | sysv4.3*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 sysv4*MP*)
8180 if test -d /usr/nec; then
8181 lt_prog_compiler_pic='-Kconform_pic'
8182 lt_prog_compiler_static='-Bstatic'
8183 fi
8184 ;;
8185
8186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191
8192 unicos*)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_can_build_shared=no
8195 ;;
8196
8197 uts4*)
8198 lt_prog_compiler_pic='-pic'
8199 lt_prog_compiler_static='-Bstatic'
8200 ;;
8201
8202 *)
8203 lt_prog_compiler_can_build_shared=no
8204 ;;
8205 esac
8206 fi
8207
8208 case $host_os in
8209 # For platforms that do not support PIC, -DPIC is meaningless:
8210 *djgpp*)
8211 lt_prog_compiler_pic=
8212 ;;
8213 *)
8214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8215 ;;
8216 esac
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8219 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8220 if ${lt_cv_prog_compiler_pic+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8226 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8227 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8228
8229 #
8230 # Check to make sure the PIC flag actually works.
8231 #
8232 if test -n "$lt_prog_compiler_pic"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8235 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 lt_cv_prog_compiler_pic_works=no
8239 ac_outfile=conftest.$ac_objext
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 # The option is referenced via a variable to avoid confusing sed.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>conftest.err)
8253 ac_status=$?
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s "$ac_outfile"; then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings other than the usual output.
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_pic_works=yes
8263 fi
8264 fi
8265 $RM conftest*
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8270
8271 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8272 case $lt_prog_compiler_pic in
8273 "" | " "*) ;;
8274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8275 esac
8276 else
8277 lt_prog_compiler_pic=
8278 lt_prog_compiler_can_build_shared=no
8279 fi
8280
8281 fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 #
8294 # Check to make sure the static flag actually works.
8295 #
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if ${lt_cv_prog_compiler_static_works+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_static_works=no
8303 save_LDFLAGS=$LDFLAGS
8304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307 # The linker can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 if test -s conftest.err; then
8310 # Append any errors to the config.log.
8311 cat conftest.err 1>&5
8312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314 if diff conftest.exp conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_static_works=yes
8316 fi
8317 else
8318 lt_cv_prog_compiler_static_works=yes
8319 fi
8320 fi
8321 $RM -r conftest*
8322 LDFLAGS=$save_LDFLAGS
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8327
8328 if test yes = "$lt_cv_prog_compiler_static_works"; then
8329 :
8330 else
8331 lt_prog_compiler_static=
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if ${lt_cv_prog_compiler_c_o+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8347 mkdir conftest
8348 cd conftest
8349 mkdir out
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8363 ac_status=$?
8364 cat out/conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 then
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8374 fi
8375 fi
8376 chmod u+w . 2>&5
8377 $RM conftest*
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8382 cd ..
8383 $RM -r conftest
8384 $RM conftest*
8385
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389
8390
8391
8392
8393
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if ${lt_cv_prog_compiler_c_o+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8429 fi
8430 fi
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8444
8445
8446
8447
8448 hard_links=nottested
8449 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8450 # do not overwrite the value of need_locks provided by the user
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8453 hard_links=yes
8454 $RM conftest*
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 touch conftest.a
8457 ln conftest.a conftest.b 2>&5 || hard_links=no
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461 if test no = "$hard_links"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8464 need_locks=warn
8465 fi
8466 else
8467 need_locks=no
8468 fi
8469
8470
8471
8472
8473
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8477
8478 runpath_var=
8479 allow_undefined_flag=
8480 always_export_symbols=no
8481 archive_cmds=
8482 archive_expsym_cmds=
8483 compiler_needs_object=no
8484 enable_shared_with_static_runtimes=no
8485 export_dynamic_flag_spec=
8486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487 hardcode_automatic=no
8488 hardcode_direct=no
8489 hardcode_direct_absolute=no
8490 hardcode_libdir_flag_spec=
8491 hardcode_libdir_separator=
8492 hardcode_minus_L=no
8493 hardcode_shlibpath_var=unsupported
8494 inherit_rpath=no
8495 link_all_deplibs=unknown
8496 module_cmds=
8497 module_expsym_cmds=
8498 old_archive_from_new_cmds=
8499 old_archive_from_expsyms_cmds=
8500 thread_safe_flag_spec=
8501 whole_archive_flag_spec=
8502 # include_expsyms should be a list of space-separated symbols to be *always*
8503 # included in the symbol list
8504 include_expsyms=
8505 # exclude_expsyms can be an extended regexp of symbols to exclude
8506 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8507 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8508 # as well as any symbol that contains 'd'.
8509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8511 # platforms (ab)use it in PIC code, but their linkers get confused if
8512 # the symbol is explicitly referenced. Since portable code cannot
8513 # rely on this symbol name, it's probably fine to never include it in
8514 # preloaded symbol tables.
8515 # Exclude shared library initialization/finalization symbols.
8516 extract_expsyms_cmds=
8517
8518 case $host_os in
8519 cygwin* | mingw* | pw32* | cegcc*)
8520 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8521 # When not using gcc, we currently assume that we are using
8522 # Microsoft Visual C++.
8523 if test yes != "$GCC"; then
8524 with_gnu_ld=no
8525 fi
8526 ;;
8527 interix*)
8528 # we just hope/assume this is gcc and not c89 (= MSVC++)
8529 with_gnu_ld=yes
8530 ;;
8531 openbsd* | bitrig*)
8532 with_gnu_ld=no
8533 ;;
8534 esac
8535
8536 ld_shlibs=yes
8537
8538 # On some targets, GNU ld is compatible enough with the native linker
8539 # that we're better off using the native interface for both.
8540 lt_use_gnu_ld_interface=no
8541 if test yes = "$with_gnu_ld"; then
8542 case $host_os in
8543 aix*)
8544 # The AIX port of GNU ld has always aspired to compatibility
8545 # with the native linker. However, as the warning in the GNU ld
8546 # block says, versions before 2.19.5* couldn't really create working
8547 # shared libraries, regardless of the interface used.
8548 case `$LD -v 2>&1` in
8549 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8550 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8551 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8552 *)
8553 lt_use_gnu_ld_interface=yes
8554 ;;
8555 esac
8556 ;;
8557 *)
8558 lt_use_gnu_ld_interface=yes
8559 ;;
8560 esac
8561 fi
8562
8563 if test yes = "$lt_use_gnu_ld_interface"; then
8564 # If archive_cmds runs LD, not CC, wlarc should be empty
8565 wlarc='$wl'
8566
8567 # Set some defaults for GNU ld with shared library support. These
8568 # are reset later if shared libraries are not supported. Putting them
8569 # here allows them to be overridden if necessary.
8570 runpath_var=LD_RUN_PATH
8571 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8572 export_dynamic_flag_spec='$wl--export-dynamic'
8573 # ancient GNU ld didn't support --whole-archive et. al.
8574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8575 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8576 else
8577 whole_archive_flag_spec=
8578 fi
8579 supports_anon_versioning=no
8580 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8581 *GNU\ gold*) supports_anon_versioning=yes ;;
8582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8585 *\ 2.11.*) ;; # other 2.11 versions
8586 *) supports_anon_versioning=yes ;;
8587 esac
8588
8589 # See if GNU ld supports shared libraries.
8590 case $host_os in
8591 aix[3-9]*)
8592 # On AIX/PPC, the GNU linker is very broken
8593 if test ia64 != "$host_cpu"; then
8594 ld_shlibs=no
8595 cat <<_LT_EOF 1>&2
8596
8597 *** Warning: the GNU linker, at least up to release 2.19, is reported
8598 *** to be unable to reliably create shared libraries on AIX.
8599 *** Therefore, libtool is disabling shared libraries support. If you
8600 *** really care for shared libraries, you may want to install binutils
8601 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8602 *** You will then need to restart the configuration process.
8603
8604 _LT_EOF
8605 fi
8606 ;;
8607
8608 amigaos*)
8609 case $host_cpu in
8610 powerpc)
8611 # see comment about AmigaOS4 .so support
8612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8613 archive_expsym_cmds=''
8614 ;;
8615 m68k)
8616 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)'
8617 hardcode_libdir_flag_spec='-L$libdir'
8618 hardcode_minus_L=yes
8619 ;;
8620 esac
8621 ;;
8622
8623 beos*)
8624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8625 allow_undefined_flag=unsupported
8626 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8627 # support --undefined. This deserves some investigation. FIXME
8628 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8629 else
8630 ld_shlibs=no
8631 fi
8632 ;;
8633
8634 cygwin* | mingw* | pw32* | cegcc*)
8635 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8636 # as there is no search path for DLLs.
8637 hardcode_libdir_flag_spec='-L$libdir'
8638 export_dynamic_flag_spec='$wl--export-all-symbols'
8639 allow_undefined_flag=unsupported
8640 always_export_symbols=no
8641 enable_shared_with_static_runtimes=yes
8642 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'
8643 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8644
8645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647 # If the export-symbols file already is a .def file, use it as
8648 # is; otherwise, prepend EXPORTS...
8649 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8650 cp $export_symbols $output_objdir/$soname.def;
8651 else
8652 echo EXPORTS > $output_objdir/$soname.def;
8653 cat $export_symbols >> $output_objdir/$soname.def;
8654 fi~
8655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656 else
8657 ld_shlibs=no
8658 fi
8659 ;;
8660
8661 haiku*)
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8663 link_all_deplibs=yes
8664 ;;
8665
8666 os2*)
8667 hardcode_libdir_flag_spec='-L$libdir'
8668 hardcode_minus_L=yes
8669 allow_undefined_flag=unsupported
8670 shrext_cmds=.dll
8671 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8672 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8673 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8674 $ECHO EXPORTS >> $output_objdir/$libname.def~
8675 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8676 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8677 emximp -o $lib $output_objdir/$libname.def'
8678 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8679 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8680 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8681 $ECHO EXPORTS >> $output_objdir/$libname.def~
8682 prefix_cmds="$SED"~
8683 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8684 prefix_cmds="$prefix_cmds -e 1d";
8685 fi~
8686 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8687 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8688 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8689 emximp -o $lib $output_objdir/$libname.def'
8690 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8691 enable_shared_with_static_runtimes=yes
8692 ;;
8693
8694 interix[3-9]*)
8695 hardcode_direct=no
8696 hardcode_shlibpath_var=no
8697 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8698 export_dynamic_flag_spec='$wl-E'
8699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8700 # Instead, shared libraries are loaded at an image base (0x10000000 by
8701 # default) and relocated if they conflict, which is a slow very memory
8702 # consuming and fragmenting process. To avoid this, we pick a random,
8703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8706 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'
8707 ;;
8708
8709 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8710 tmp_diet=no
8711 if test linux-dietlibc = "$host_os"; then
8712 case $cc_basename in
8713 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8714 esac
8715 fi
8716 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8717 && test no = "$tmp_diet"
8718 then
8719 tmp_addflag=' $pic_flag'
8720 tmp_sharedflag='-shared'
8721 case $cc_basename,$host_cpu in
8722 pgcc*) # Portland Group C compiler
8723 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'
8724 tmp_addflag=' $pic_flag'
8725 ;;
8726 pgf77* | pgf90* | pgf95* | pgfortran*)
8727 # Portland Group f77 and f90 compilers
8728 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'
8729 tmp_addflag=' $pic_flag -Mnomain' ;;
8730 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8731 tmp_addflag=' -i_dynamic' ;;
8732 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8733 tmp_addflag=' -i_dynamic -nofor_main' ;;
8734 ifc* | ifort*) # Intel Fortran compiler
8735 tmp_addflag=' -nofor_main' ;;
8736 lf95*) # Lahey Fortran 8.1
8737 whole_archive_flag_spec=
8738 tmp_sharedflag='--shared' ;;
8739 nagfor*) # NAGFOR 5.3
8740 tmp_sharedflag='-Wl,-shared' ;;
8741 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8742 tmp_sharedflag='-qmkshrobj'
8743 tmp_addflag= ;;
8744 nvcc*) # Cuda Compiler Driver 2.2
8745 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'
8746 compiler_needs_object=yes
8747 ;;
8748 esac
8749 case `$CC -V 2>&1 | sed 5q` in
8750 *Sun\ C*) # Sun C 5.9
8751 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'
8752 compiler_needs_object=yes
8753 tmp_sharedflag='-G' ;;
8754 *Sun\ F*) # Sun Fortran 8.3
8755 tmp_sharedflag='-G' ;;
8756 esac
8757 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8758
8759 if test yes = "$supports_anon_versioning"; then
8760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8762 echo "local: *; };" >> $output_objdir/$libname.ver~
8763 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8764 fi
8765
8766 case $cc_basename in
8767 tcc*)
8768 export_dynamic_flag_spec='-rdynamic'
8769 ;;
8770 xlf* | bgf* | bgxlf* | mpixlf*)
8771 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8772 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8773 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8774 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8775 if test yes = "$supports_anon_versioning"; then
8776 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8777 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8778 echo "local: *; };" >> $output_objdir/$libname.ver~
8779 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8780 fi
8781 ;;
8782 esac
8783 else
8784 ld_shlibs=no
8785 fi
8786 ;;
8787
8788 netbsd*)
8789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8790 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8791 wlarc=
8792 else
8793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8794 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8795 fi
8796 ;;
8797
8798 solaris*)
8799 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8800 ld_shlibs=no
8801 cat <<_LT_EOF 1>&2
8802
8803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8804 *** create shared libraries on Solaris systems. Therefore, libtool
8805 *** is disabling shared libraries support. We urge you to upgrade GNU
8806 *** binutils to release 2.9.1 or newer. Another option is to modify
8807 *** your PATH or compiler configuration so that the native linker is
8808 *** used, and then restart.
8809
8810 _LT_EOF
8811 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8813 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8814 else
8815 ld_shlibs=no
8816 fi
8817 ;;
8818
8819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8820 case `$LD -v 2>&1` in
8821 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8822 ld_shlibs=no
8823 cat <<_LT_EOF 1>&2
8824
8825 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8826 *** reliably create shared libraries on SCO systems. Therefore, libtool
8827 *** is disabling shared libraries support. We urge you to upgrade GNU
8828 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8829 *** your PATH or compiler configuration so that the native linker is
8830 *** used, and then restart.
8831
8832 _LT_EOF
8833 ;;
8834 *)
8835 # For security reasons, it is highly recommended that you always
8836 # use absolute paths for naming shared libraries, and exclude the
8837 # DT_RUNPATH tag from executables and libraries. But doing so
8838 # requires that you compile everything twice, which is a pain.
8839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8843 else
8844 ld_shlibs=no
8845 fi
8846 ;;
8847 esac
8848 ;;
8849
8850 sunos4*)
8851 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8852 wlarc=
8853 hardcode_direct=yes
8854 hardcode_shlibpath_var=no
8855 ;;
8856
8857 *)
8858 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8859 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8860 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8861 else
8862 ld_shlibs=no
8863 fi
8864 ;;
8865 esac
8866
8867 if test no = "$ld_shlibs"; then
8868 runpath_var=
8869 hardcode_libdir_flag_spec=
8870 export_dynamic_flag_spec=
8871 whole_archive_flag_spec=
8872 fi
8873 else
8874 # PORTME fill in a description of your system's linker (not GNU ld)
8875 case $host_os in
8876 aix3*)
8877 allow_undefined_flag=unsupported
8878 always_export_symbols=yes
8879 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'
8880 # Note: this linker hardcodes the directories in LIBPATH if there
8881 # are no directories specified by -L.
8882 hardcode_minus_L=yes
8883 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8884 # Neither direct hardcoding nor static linking is supported with a
8885 # broken collect2.
8886 hardcode_direct=unsupported
8887 fi
8888 ;;
8889
8890 aix[4-9]*)
8891 if test ia64 = "$host_cpu"; then
8892 # On IA64, the linker does run time linking by default, so we don't
8893 # have to do anything special.
8894 aix_use_runtimelinking=no
8895 exp_sym_flag='-Bexport'
8896 no_entry_flag=
8897 else
8898 # If we're using GNU nm, then we don't want the "-C" option.
8899 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8900 # Without the "-l" option, or with the "-B" option, AIX nm treats
8901 # weak defined symbols like other global defined symbols, whereas
8902 # GNU nm marks them as "W".
8903 # While the 'weak' keyword is ignored in the Export File, we need
8904 # it in the Import File for the 'aix-soname' feature, so we have
8905 # to replace the "-B" option with "-P" for AIX nm.
8906 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8907 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'
8908 else
8909 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'
8910 fi
8911 aix_use_runtimelinking=no
8912
8913 # Test if we are trying to use run time linking or normal
8914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8915 # have runtime linking enabled, and use it for executables.
8916 # For shared libraries, we enable/disable runtime linking
8917 # depending on the kind of the shared library created -
8918 # when "with_aix_soname,aix_use_runtimelinking" is:
8919 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8920 # "aix,yes" lib.so shared, rtl:yes, for executables
8921 # lib.a static archive
8922 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8923 # lib.a(lib.so.V) shared, rtl:no, for executables
8924 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8925 # lib.a(lib.so.V) shared, rtl:no
8926 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8927 # lib.a static archive
8928 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8929 for ld_flag in $LDFLAGS; do
8930 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8931 aix_use_runtimelinking=yes
8932 break
8933 fi
8934 done
8935 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8936 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8937 # so we don't have lib.a shared libs to link our executables.
8938 # We have to force runtime linking in this case.
8939 aix_use_runtimelinking=yes
8940 LDFLAGS="$LDFLAGS -Wl,-brtl"
8941 fi
8942 ;;
8943 esac
8944
8945 exp_sym_flag='-bexport'
8946 no_entry_flag='-bnoentry'
8947 fi
8948
8949 # When large executables or shared objects are built, AIX ld can
8950 # have problems creating the table of contents. If linking a library
8951 # or program results in "error TOC overflow" add -mminimal-toc to
8952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8954
8955 archive_cmds=''
8956 hardcode_direct=yes
8957 hardcode_direct_absolute=yes
8958 hardcode_libdir_separator=':'
8959 link_all_deplibs=yes
8960 file_list_spec='$wl-f,'
8961 case $with_aix_soname,$aix_use_runtimelinking in
8962 aix,*) ;; # traditional, no import file
8963 svr4,* | *,yes) # use import file
8964 # The Import File defines what to hardcode.
8965 hardcode_direct=no
8966 hardcode_direct_absolute=no
8967 ;;
8968 esac
8969
8970 if test yes = "$GCC"; then
8971 case $host_os in aix4.[012]|aix4.[012].*)
8972 # We only want to do this on AIX 4.2 and lower, the check
8973 # below for broken collect2 doesn't work under 4.3+
8974 collect2name=`$CC -print-prog-name=collect2`
8975 if test -f "$collect2name" &&
8976 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8977 then
8978 # We have reworked collect2
8979 :
8980 else
8981 # We have old collect2
8982 hardcode_direct=unsupported
8983 # It fails to find uninstalled libraries when the uninstalled
8984 # path is not listed in the libpath. Setting hardcode_minus_L
8985 # to unsupported forces relinking
8986 hardcode_minus_L=yes
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 hardcode_libdir_separator=
8989 fi
8990 ;;
8991 esac
8992 shared_flag='-shared'
8993 if test yes = "$aix_use_runtimelinking"; then
8994 shared_flag="$shared_flag "'$wl-G'
8995 fi
8996 # Need to ensure runtime linking is disabled for the traditional
8997 # shared library, or the linker may eventually find shared libraries
8998 # /with/ Import File - we do not want to mix them.
8999 shared_flag_aix='-shared'
9000 shared_flag_svr4='-shared $wl-G'
9001 else
9002 # not using gcc
9003 if test ia64 = "$host_cpu"; then
9004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9005 # chokes on -Wl,-G. The following line is correct:
9006 shared_flag='-G'
9007 else
9008 if test yes = "$aix_use_runtimelinking"; then
9009 shared_flag='$wl-G'
9010 else
9011 shared_flag='$wl-bM:SRE'
9012 fi
9013 shared_flag_aix='$wl-bM:SRE'
9014 shared_flag_svr4='$wl-G'
9015 fi
9016 fi
9017
9018 export_dynamic_flag_spec='$wl-bexpall'
9019 # It seems that -bexpall does not export symbols beginning with
9020 # underscore (_), so it is better to generate a list of symbols to export.
9021 always_export_symbols=yes
9022 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9023 # Warning - without using the other runtime loading flags (-brtl),
9024 # -berok will link without error, but may produce a broken library.
9025 allow_undefined_flag='-berok'
9026 # Determine the default libpath from the value encoded in an
9027 # empty executable.
9028 if test set = "${lt_cv_aix_libpath+set}"; then
9029 aix_libpath=$lt_cv_aix_libpath
9030 else
9031 if ${lt_cv_aix_libpath_+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036
9037 int
9038 main ()
9039 {
9040
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"; then :
9046
9047 lt_aix_libpath_sed='
9048 /Import File Strings/,/^$/ {
9049 /^0/ {
9050 s/^0 *\([^ ]*\) *$/\1/
9051 p
9052 }
9053 }'
9054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055 # Check for a 64-bit object if we didn't find anything.
9056 if test -z "$lt_cv_aix_libpath_"; then
9057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9058 fi
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 if test -z "$lt_cv_aix_libpath_"; then
9063 lt_cv_aix_libpath_=/usr/lib:/lib
9064 fi
9065
9066 fi
9067
9068 aix_libpath=$lt_cv_aix_libpath_
9069 fi
9070
9071 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9072 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
9073 else
9074 if test ia64 = "$host_cpu"; then
9075 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9076 allow_undefined_flag="-z nodefs"
9077 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"
9078 else
9079 # Determine the default libpath from the value encoded in an
9080 # empty executable.
9081 if test set = "${lt_cv_aix_libpath+set}"; then
9082 aix_libpath=$lt_cv_aix_libpath
9083 else
9084 if ${lt_cv_aix_libpath_+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089
9090 int
9091 main ()
9092 {
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099
9100 lt_aix_libpath_sed='
9101 /Import File Strings/,/^$/ {
9102 /^0/ {
9103 s/^0 *\([^ ]*\) *$/\1/
9104 p
9105 }
9106 }'
9107 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9108 # Check for a 64-bit object if we didn't find anything.
9109 if test -z "$lt_cv_aix_libpath_"; then
9110 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9111 fi
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115 if test -z "$lt_cv_aix_libpath_"; then
9116 lt_cv_aix_libpath_=/usr/lib:/lib
9117 fi
9118
9119 fi
9120
9121 aix_libpath=$lt_cv_aix_libpath_
9122 fi
9123
9124 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9125 # Warning - without using the other run time loading flags,
9126 # -berok will link without error, but may produce a broken library.
9127 no_undefined_flag=' $wl-bernotok'
9128 allow_undefined_flag=' $wl-berok'
9129 if test yes = "$with_gnu_ld"; then
9130 # We only use this code for GNU lds that support --whole-archive.
9131 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9132 else
9133 # Exported symbols can be pulled into shared objects from archives
9134 whole_archive_flag_spec='$convenience'
9135 fi
9136 archive_cmds_need_lc=yes
9137 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9138 # -brtl affects multiple linker settings, -berok does not and is overridden later
9139 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9140 if test svr4 != "$with_aix_soname"; then
9141 # This is similar to how AIX traditionally builds its shared libraries.
9142 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'
9143 fi
9144 if test aix != "$with_aix_soname"; then
9145 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'
9146 else
9147 # used by -dlpreopen to get the symbols
9148 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9149 fi
9150 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9151 fi
9152 fi
9153 ;;
9154
9155 amigaos*)
9156 case $host_cpu in
9157 powerpc)
9158 # see comment about AmigaOS4 .so support
9159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9160 archive_expsym_cmds=''
9161 ;;
9162 m68k)
9163 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)'
9164 hardcode_libdir_flag_spec='-L$libdir'
9165 hardcode_minus_L=yes
9166 ;;
9167 esac
9168 ;;
9169
9170 bsdi[45]*)
9171 export_dynamic_flag_spec=-rdynamic
9172 ;;
9173
9174 cygwin* | mingw* | pw32* | cegcc*)
9175 # When not using gcc, we currently assume that we are using
9176 # Microsoft Visual C++.
9177 # hardcode_libdir_flag_spec is actually meaningless, as there is
9178 # no search path for DLLs.
9179 case $cc_basename in
9180 cl*)
9181 # Native MSVC
9182 hardcode_libdir_flag_spec=' '
9183 allow_undefined_flag=unsupported
9184 always_export_symbols=yes
9185 file_list_spec='@'
9186 # Tell ltmain to make .lib files, not .a files.
9187 libext=lib
9188 # Tell ltmain to make .dll files, not .so files.
9189 shrext_cmds=.dll
9190 # FIXME: Setting linknames here is a bad hack.
9191 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9192 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9193 cp "$export_symbols" "$output_objdir/$soname.def";
9194 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9195 else
9196 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9197 fi~
9198 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9199 linknames='
9200 # The linker will not automatically build a static lib if we build a DLL.
9201 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9202 enable_shared_with_static_runtimes=yes
9203 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9205 # Don't use ranlib
9206 old_postinstall_cmds='chmod 644 $oldlib'
9207 postlink_cmds='lt_outputfile="@OUTPUT@"~
9208 lt_tool_outputfile="@TOOL_OUTPUT@"~
9209 case $lt_outputfile in
9210 *.exe|*.EXE) ;;
9211 *)
9212 lt_outputfile=$lt_outputfile.exe
9213 lt_tool_outputfile=$lt_tool_outputfile.exe
9214 ;;
9215 esac~
9216 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9217 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9218 $RM "$lt_outputfile.manifest";
9219 fi'
9220 ;;
9221 *)
9222 # Assume MSVC wrapper
9223 hardcode_libdir_flag_spec=' '
9224 allow_undefined_flag=unsupported
9225 # Tell ltmain to make .lib files, not .a files.
9226 libext=lib
9227 # Tell ltmain to make .dll files, not .so files.
9228 shrext_cmds=.dll
9229 # FIXME: Setting linknames here is a bad hack.
9230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9231 # The linker will automatically build a .lib file if we build a DLL.
9232 old_archive_from_new_cmds='true'
9233 # FIXME: Should let the user specify the lib program.
9234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9235 enable_shared_with_static_runtimes=yes
9236 ;;
9237 esac
9238 ;;
9239
9240 darwin* | rhapsody*)
9241
9242
9243 archive_cmds_need_lc=no
9244 hardcode_direct=no
9245 hardcode_automatic=yes
9246 hardcode_shlibpath_var=unsupported
9247 if test yes = "$lt_cv_ld_force_load"; then
9248 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\"`'
9249
9250 else
9251 whole_archive_flag_spec=''
9252 fi
9253 link_all_deplibs=yes
9254 allow_undefined_flag=$_lt_dar_allow_undefined
9255 case $cc_basename in
9256 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9257 *) _lt_dar_can_shared=$GCC ;;
9258 esac
9259 if test yes = "$_lt_dar_can_shared"; then
9260 output_verbose_link_cmd=func_echo_all
9261 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9262 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9263 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"
9264 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"
9265
9266 else
9267 ld_shlibs=no
9268 fi
9269
9270 ;;
9271
9272 dgux*)
9273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_shlibpath_var=no
9276 ;;
9277
9278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9279 # support. Future versions do this automatically, but an explicit c++rt0.o
9280 # does not break anything, and helps significantly (at the cost of a little
9281 # extra space).
9282 freebsd2.2*)
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9284 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_direct=yes
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9290 freebsd2.*)
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_direct=yes
9293 hardcode_minus_L=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9298 freebsd* | dragonfly*)
9299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9300 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_direct=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 hpux9*)
9306 if test yes = "$GCC"; then
9307 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'
9308 else
9309 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'
9310 fi
9311 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9312 hardcode_libdir_separator=:
9313 hardcode_direct=yes
9314
9315 # hardcode_minus_L: Not really in the search PATH,
9316 # but as the default location of the library.
9317 hardcode_minus_L=yes
9318 export_dynamic_flag_spec='$wl-E'
9319 ;;
9320
9321 hpux10*)
9322 if test yes,no = "$GCC,$with_gnu_ld"; then
9323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324 else
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326 fi
9327 if test no = "$with_gnu_ld"; then
9328 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9329 hardcode_libdir_separator=:
9330 hardcode_direct=yes
9331 hardcode_direct_absolute=yes
9332 export_dynamic_flag_spec='$wl-E'
9333 # hardcode_minus_L: Not really in the search PATH,
9334 # but as the default location of the library.
9335 hardcode_minus_L=yes
9336 fi
9337 ;;
9338
9339 hpux11*)
9340 if test yes,no = "$GCC,$with_gnu_ld"; then
9341 case $host_cpu in
9342 hppa*64*)
9343 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9344 ;;
9345 ia64*)
9346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9347 ;;
9348 *)
9349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9350 ;;
9351 esac
9352 else
9353 case $host_cpu in
9354 hppa*64*)
9355 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 ;;
9357 ia64*)
9358 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9359 ;;
9360 *)
9361
9362 # Older versions of the 11.00 compiler do not understand -b yet
9363 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9365 $as_echo_n "checking if $CC understands -b... " >&6; }
9366 if ${lt_cv_prog_compiler__b+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 lt_cv_prog_compiler__b=no
9370 save_LDFLAGS=$LDFLAGS
9371 LDFLAGS="$LDFLAGS -b"
9372 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9374 # The linker can only warn and ignore the option if not recognized
9375 # So say no if there are warnings
9376 if test -s conftest.err; then
9377 # Append any errors to the config.log.
9378 cat conftest.err 1>&5
9379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9381 if diff conftest.exp conftest.er2 >/dev/null; then
9382 lt_cv_prog_compiler__b=yes
9383 fi
9384 else
9385 lt_cv_prog_compiler__b=yes
9386 fi
9387 fi
9388 $RM -r conftest*
9389 LDFLAGS=$save_LDFLAGS
9390
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9393 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9394
9395 if test yes = "$lt_cv_prog_compiler__b"; then
9396 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9397 else
9398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9399 fi
9400
9401 ;;
9402 esac
9403 fi
9404 if test no = "$with_gnu_ld"; then
9405 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9406 hardcode_libdir_separator=:
9407
9408 case $host_cpu in
9409 hppa*64*|ia64*)
9410 hardcode_direct=no
9411 hardcode_shlibpath_var=no
9412 ;;
9413 *)
9414 hardcode_direct=yes
9415 hardcode_direct_absolute=yes
9416 export_dynamic_flag_spec='$wl-E'
9417
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9421 ;;
9422 esac
9423 fi
9424 ;;
9425
9426 irix5* | irix6* | nonstopux*)
9427 if test yes = "$GCC"; then
9428 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'
9429 # Try to use the -exported_symbol ld option, if it does not
9430 # work, assume that -exports_file does not work either and
9431 # implicitly export all symbols.
9432 # This should be the same for all languages, so no per-tag cache variable.
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9434 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9435 if ${lt_cv_irix_exported_symbol+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 save_LDFLAGS=$LDFLAGS
9439 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 int foo (void) { return 0; }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 lt_cv_irix_exported_symbol=yes
9446 else
9447 lt_cv_irix_exported_symbol=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LDFLAGS=$save_LDFLAGS
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9454 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9455 if test yes = "$lt_cv_irix_exported_symbol"; then
9456 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'
9457 fi
9458 else
9459 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'
9460 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'
9461 fi
9462 archive_cmds_need_lc='no'
9463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9464 hardcode_libdir_separator=:
9465 inherit_rpath=yes
9466 link_all_deplibs=yes
9467 ;;
9468
9469 linux*)
9470 case $cc_basename in
9471 tcc*)
9472 # Fabrice Bellard et al's Tiny C Compiler
9473 ld_shlibs=yes
9474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9475 ;;
9476 esac
9477 ;;
9478
9479 netbsd*)
9480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9482 else
9483 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9484 fi
9485 hardcode_libdir_flag_spec='-R$libdir'
9486 hardcode_direct=yes
9487 hardcode_shlibpath_var=no
9488 ;;
9489
9490 newsos6)
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_direct=yes
9493 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9494 hardcode_libdir_separator=:
9495 hardcode_shlibpath_var=no
9496 ;;
9497
9498 *nto* | *qnx*)
9499 ;;
9500
9501 openbsd* | bitrig*)
9502 if test -f /usr/libexec/ld.so; then
9503 hardcode_direct=yes
9504 hardcode_shlibpath_var=no
9505 hardcode_direct_absolute=yes
9506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9507 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9509 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9510 export_dynamic_flag_spec='$wl-E'
9511 else
9512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9514 fi
9515 else
9516 ld_shlibs=no
9517 fi
9518 ;;
9519
9520 os2*)
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_minus_L=yes
9523 allow_undefined_flag=unsupported
9524 shrext_cmds=.dll
9525 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9526 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9527 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9528 $ECHO EXPORTS >> $output_objdir/$libname.def~
9529 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9530 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9531 emximp -o $lib $output_objdir/$libname.def'
9532 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9533 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9534 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9535 $ECHO EXPORTS >> $output_objdir/$libname.def~
9536 prefix_cmds="$SED"~
9537 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9538 prefix_cmds="$prefix_cmds -e 1d";
9539 fi~
9540 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9541 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9542 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9543 emximp -o $lib $output_objdir/$libname.def'
9544 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9545 enable_shared_with_static_runtimes=yes
9546 ;;
9547
9548 osf3*)
9549 if test yes = "$GCC"; then
9550 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9551 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'
9552 else
9553 allow_undefined_flag=' -expect_unresolved \*'
9554 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'
9555 fi
9556 archive_cmds_need_lc='no'
9557 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9558 hardcode_libdir_separator=:
9559 ;;
9560
9561 osf4* | osf5*) # as osf3* with the addition of -msym flag
9562 if test yes = "$GCC"; then
9563 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9564 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'
9565 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9566 else
9567 allow_undefined_flag=' -expect_unresolved \*'
9568 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'
9569 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~
9570 $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'
9571
9572 # Both c and cxx compiler support -rpath directly
9573 hardcode_libdir_flag_spec='-rpath $libdir'
9574 fi
9575 archive_cmds_need_lc='no'
9576 hardcode_libdir_separator=:
9577 ;;
9578
9579 solaris*)
9580 no_undefined_flag=' -z defs'
9581 if test yes = "$GCC"; then
9582 wlarc='$wl'
9583 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585 $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'
9586 else
9587 case `$CC -V 2>&1` in
9588 *"Compilers 5.0"*)
9589 wlarc=''
9590 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9593 ;;
9594 *)
9595 wlarc='$wl'
9596 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9599 ;;
9600 esac
9601 fi
9602 hardcode_libdir_flag_spec='-R$libdir'
9603 hardcode_shlibpath_var=no
9604 case $host_os in
9605 solaris2.[0-5] | solaris2.[0-5].*) ;;
9606 *)
9607 # The compiler driver will combine and reorder linker options,
9608 # but understands '-z linker_flag'. GCC discards it without '$wl',
9609 # but is careful enough not to reorder.
9610 # Supported since Solaris 2.6 (maybe 2.5.1?)
9611 if test yes = "$GCC"; then
9612 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9613 else
9614 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9615 fi
9616 ;;
9617 esac
9618 link_all_deplibs=yes
9619 ;;
9620
9621 sunos4*)
9622 if test sequent = "$host_vendor"; then
9623 # Use $CC to link under sequent, because it throws in some extra .o
9624 # files that make .init and .fini sections work.
9625 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9626 else
9627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9628 fi
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_direct=yes
9631 hardcode_minus_L=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 sysv4)
9636 case $host_vendor in
9637 sni)
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_direct=yes # is this really true???
9640 ;;
9641 siemens)
9642 ## LD is ld it makes a PLAMLIB
9643 ## CC just makes a GrossModule.
9644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9645 reload_cmds='$CC -r -o $output$reload_objs'
9646 hardcode_direct=no
9647 ;;
9648 motorola)
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9651 ;;
9652 esac
9653 runpath_var='LD_RUN_PATH'
9654 hardcode_shlibpath_var=no
9655 ;;
9656
9657 sysv4.3*)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_shlibpath_var=no
9660 export_dynamic_flag_spec='-Bexport'
9661 ;;
9662
9663 sysv4*MP*)
9664 if test -d /usr/nec; then
9665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_shlibpath_var=no
9667 runpath_var=LD_RUN_PATH
9668 hardcode_runpath_var=yes
9669 ld_shlibs=yes
9670 fi
9671 ;;
9672
9673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9674 no_undefined_flag='$wl-z,text'
9675 archive_cmds_need_lc=no
9676 hardcode_shlibpath_var=no
9677 runpath_var='LD_RUN_PATH'
9678
9679 if test yes = "$GCC"; then
9680 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 else
9683 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 fi
9686 ;;
9687
9688 sysv5* | sco3.2v5* | sco5v6*)
9689 # Note: We CANNOT use -z defs as we might desire, because we do not
9690 # link with -lc, and that would cause any symbols used from libc to
9691 # always be unresolved, which means just about no library would
9692 # ever link correctly. If we're not using GNU ld we use -z text
9693 # though, which does catch some bad symbols but isn't as heavy-handed
9694 # as -z defs.
9695 no_undefined_flag='$wl-z,text'
9696 allow_undefined_flag='$wl-z,nodefs'
9697 archive_cmds_need_lc=no
9698 hardcode_shlibpath_var=no
9699 hardcode_libdir_flag_spec='$wl-R,$libdir'
9700 hardcode_libdir_separator=':'
9701 link_all_deplibs=yes
9702 export_dynamic_flag_spec='$wl-Bexport'
9703 runpath_var='LD_RUN_PATH'
9704
9705 if test yes = "$GCC"; then
9706 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 else
9709 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 fi
9712 ;;
9713
9714 uts4*)
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_shlibpath_var=no
9718 ;;
9719
9720 *)
9721 ld_shlibs=no
9722 ;;
9723 esac
9724
9725 if test sni = "$host_vendor"; then
9726 case $host in
9727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9728 export_dynamic_flag_spec='$wl-Blargedynsym'
9729 ;;
9730 esac
9731 fi
9732 fi
9733
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9735 $as_echo "$ld_shlibs" >&6; }
9736 test no = "$ld_shlibs" && can_build_shared=no
9737
9738 with_gnu_ld=$with_gnu_ld
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754 #
9755 # Do we need to explicitly link libc?
9756 #
9757 case "x$archive_cmds_need_lc" in
9758 x|xyes)
9759 # Assume -lc should be added
9760 archive_cmds_need_lc=yes
9761
9762 if test yes,yes = "$GCC,$enable_shared"; then
9763 case $archive_cmds in
9764 *'~'*)
9765 # FIXME: we may have to deal with multi-command sequences.
9766 ;;
9767 '$CC '*)
9768 # Test whether the compiler implicitly links with -lc since on some
9769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9770 # to ld, don't add -lc before -lgcc.
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9772 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9773 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 $RM conftest*
9777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9778
9779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9780 (eval $ac_compile) 2>&5
9781 ac_status=$?
9782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9783 test $ac_status = 0; } 2>conftest.err; then
9784 soname=conftest
9785 lib=conftest
9786 libobjs=conftest.$ac_objext
9787 deplibs=
9788 wl=$lt_prog_compiler_wl
9789 pic_flag=$lt_prog_compiler_pic
9790 compiler_flags=-v
9791 linker_flags=-v
9792 verstring=
9793 output_objdir=.
9794 libname=conftest
9795 lt_save_allow_undefined_flag=$allow_undefined_flag
9796 allow_undefined_flag=
9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9798 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9799 ac_status=$?
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; }
9802 then
9803 lt_cv_archive_cmds_need_lc=no
9804 else
9805 lt_cv_archive_cmds_need_lc=yes
9806 fi
9807 allow_undefined_flag=$lt_save_allow_undefined_flag
9808 else
9809 cat conftest.err 1>&5
9810 fi
9811 $RM conftest*
9812
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9815 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9816 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9817 ;;
9818 esac
9819 fi
9820 ;;
9821 esac
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9975 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9976
9977 if test yes = "$GCC"; then
9978 case $host_os in
9979 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9980 *) lt_awk_arg='/^libraries:/' ;;
9981 esac
9982 case $host_os in
9983 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9984 *) lt_sed_strip_eq='s|=/|/|g' ;;
9985 esac
9986 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9987 case $lt_search_path_spec in
9988 *\;*)
9989 # if the path contains ";" then we assume it to be the separator
9990 # otherwise default to the standard path separator (i.e. ":") - it is
9991 # assumed that no part of a normal pathname contains ";" but that should
9992 # okay in the real world where ";" in dirpaths is itself problematic.
9993 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9994 ;;
9995 *)
9996 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9997 ;;
9998 esac
9999 # Ok, now we have the path, separated by spaces, we can step through it
10000 # and add multilib dir if necessary...
10001 lt_tmp_lt_search_path_spec=
10002 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10003 # ...but if some path component already ends with the multilib dir we assume
10004 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10005 case "$lt_multi_os_dir; $lt_search_path_spec " in
10006 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10007 lt_multi_os_dir=
10008 ;;
10009 esac
10010 for lt_sys_path in $lt_search_path_spec; do
10011 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10013 elif test -n "$lt_multi_os_dir"; then
10014 test -d "$lt_sys_path" && \
10015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10016 fi
10017 done
10018 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10019 BEGIN {RS = " "; FS = "/|\n";} {
10020 lt_foo = "";
10021 lt_count = 0;
10022 for (lt_i = NF; lt_i > 0; lt_i--) {
10023 if ($lt_i != "" && $lt_i != ".") {
10024 if ($lt_i == "..") {
10025 lt_count++;
10026 } else {
10027 if (lt_count == 0) {
10028 lt_foo = "/" $lt_i lt_foo;
10029 } else {
10030 lt_count--;
10031 }
10032 }
10033 }
10034 }
10035 if (lt_foo != "") { lt_freq[lt_foo]++; }
10036 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10037 }'`
10038 # AWK program above erroneously prepends '/' to C:/dos/paths
10039 # for these hosts.
10040 case $host_os in
10041 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10042 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10043 esac
10044 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10045 else
10046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10047 fi
10048 library_names_spec=
10049 libname_spec='lib$name'
10050 soname_spec=
10051 shrext_cmds=.so
10052 postinstall_cmds=
10053 postuninstall_cmds=
10054 finish_cmds=
10055 finish_eval=
10056 shlibpath_var=
10057 shlibpath_overrides_runpath=unknown
10058 version_type=none
10059 dynamic_linker="$host_os ld.so"
10060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10061 need_lib_prefix=unknown
10062 hardcode_into_libs=no
10063
10064 # when you set need_version to no, make sure it does not cause -set_version
10065 # flags to be left without arguments
10066 need_version=unknown
10067
10068
10069
10070 case $host_os in
10071 aix3*)
10072 version_type=linux # correct to gnu/linux during the next big refactor
10073 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10074 shlibpath_var=LIBPATH
10075
10076 # AIX 3 has no versioning support, so we append a major version to the name.
10077 soname_spec='$libname$release$shared_ext$major'
10078 ;;
10079
10080 aix[4-9]*)
10081 version_type=linux # correct to gnu/linux during the next big refactor
10082 need_lib_prefix=no
10083 need_version=no
10084 hardcode_into_libs=yes
10085 if test ia64 = "$host_cpu"; then
10086 # AIX 5 supports IA64
10087 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 else
10090 # With GCC up to 2.95.x, collect2 would create an import file
10091 # for dependence libraries. The import file would start with
10092 # the line '#! .'. This would cause the generated library to
10093 # depend on '.', always an invalid library. This was fixed in
10094 # development snapshots of GCC prior to 3.0.
10095 case $host_os in
10096 aix4 | aix4.[01] | aix4.[01].*)
10097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10098 echo ' yes '
10099 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10100 :
10101 else
10102 can_build_shared=no
10103 fi
10104 ;;
10105 esac
10106 # Using Import Files as archive members, it is possible to support
10107 # filename-based versioning of shared library archives on AIX. While
10108 # this would work for both with and without runtime linking, it will
10109 # prevent static linking of such archives. So we do filename-based
10110 # shared library versioning with .so extension only, which is used
10111 # when both runtime linking and shared linking is enabled.
10112 # Unfortunately, runtime linking may impact performance, so we do
10113 # not want this to be the default eventually. Also, we use the
10114 # versioned .so libs for executables only if there is the -brtl
10115 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10116 # To allow for filename-based versioning support, we need to create
10117 # libNAME.so.V as an archive file, containing:
10118 # *) an Import File, referring to the versioned filename of the
10119 # archive as well as the shared archive member, telling the
10120 # bitwidth (32 or 64) of that shared object, and providing the
10121 # list of exported symbols of that shared object, eventually
10122 # decorated with the 'weak' keyword
10123 # *) the shared object with the F_LOADONLY flag set, to really avoid
10124 # it being seen by the linker.
10125 # At run time we better use the real file rather than another symlink,
10126 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10127
10128 case $with_aix_soname,$aix_use_runtimelinking in
10129 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10130 # soname into executable. Probably we can add versioning support to
10131 # collect2, so additional links can be useful in future.
10132 aix,yes) # traditional libtool
10133 dynamic_linker='AIX unversionable lib.so'
10134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10135 # instead of lib<name>.a to let people know that these are not
10136 # typical AIX shared libraries.
10137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10138 ;;
10139 aix,no) # traditional AIX only
10140 dynamic_linker='AIX lib.a(lib.so.V)'
10141 # We preserve .a as extension for shared libraries through AIX4.2
10142 # and later when we are not doing run time linking.
10143 library_names_spec='$libname$release.a $libname.a'
10144 soname_spec='$libname$release$shared_ext$major'
10145 ;;
10146 svr4,*) # full svr4 only
10147 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10148 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10149 # We do not specify a path in Import Files, so LIBPATH fires.
10150 shlibpath_overrides_runpath=yes
10151 ;;
10152 *,yes) # both, prefer svr4
10153 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10154 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10155 # unpreferred sharedlib libNAME.a needs extra handling
10156 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"'
10157 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"'
10158 # We do not specify a path in Import Files, so LIBPATH fires.
10159 shlibpath_overrides_runpath=yes
10160 ;;
10161 *,no) # both, prefer aix
10162 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10163 library_names_spec='$libname$release.a $libname.a'
10164 soname_spec='$libname$release$shared_ext$major'
10165 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10166 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)'
10167 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"'
10168 ;;
10169 esac
10170 shlibpath_var=LIBPATH
10171 fi
10172 ;;
10173
10174 amigaos*)
10175 case $host_cpu in
10176 powerpc)
10177 # Since July 2007 AmigaOS4 officially supports .so libraries.
10178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10180 ;;
10181 m68k)
10182 library_names_spec='$libname.ixlibrary $libname.a'
10183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10184 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'
10185 ;;
10186 esac
10187 ;;
10188
10189 beos*)
10190 library_names_spec='$libname$shared_ext'
10191 dynamic_linker="$host_os ld.so"
10192 shlibpath_var=LIBRARY_PATH
10193 ;;
10194
10195 bsdi[45]*)
10196 version_type=linux # correct to gnu/linux during the next big refactor
10197 need_version=no
10198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10199 soname_spec='$libname$release$shared_ext$major'
10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10204 # the default ld.so.conf also contains /usr/contrib/lib and
10205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10206 # libtool to hard-code these into programs
10207 ;;
10208
10209 cygwin* | mingw* | pw32* | cegcc*)
10210 version_type=windows
10211 shrext_cmds=.dll
10212 need_version=no
10213 need_lib_prefix=no
10214
10215 case $GCC,$cc_basename in
10216 yes,*)
10217 # gcc
10218 library_names_spec='$libname.dll.a'
10219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10220 postinstall_cmds='base_file=`basename \$file`~
10221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10222 dldir=$destdir/`dirname \$dlpath`~
10223 test -d \$dldir || mkdir -p \$dldir~
10224 $install_prog $dir/$dlname \$dldir/$dlname~
10225 chmod a+x \$dldir/$dlname~
10226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10228 fi'
10229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10230 dlpath=$dir/\$dldll~
10231 $RM \$dlpath'
10232 shlibpath_overrides_runpath=yes
10233
10234 case $host_os in
10235 cygwin*)
10236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10237 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10238
10239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10240 ;;
10241 mingw* | cegcc*)
10242 # MinGW DLLs use traditional 'lib' prefix
10243 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10244 ;;
10245 pw32*)
10246 # pw32 DLLs use 'pw' prefix rather than 'lib'
10247 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10248 ;;
10249 esac
10250 dynamic_linker='Win32 ld.exe'
10251 ;;
10252
10253 *,cl*)
10254 # Native MSVC
10255 libname_spec='$name'
10256 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10257 library_names_spec='$libname.dll.lib'
10258
10259 case $build_os in
10260 mingw*)
10261 sys_lib_search_path_spec=
10262 lt_save_ifs=$IFS
10263 IFS=';'
10264 for lt_path in $LIB
10265 do
10266 IFS=$lt_save_ifs
10267 # Let DOS variable expansion print the short 8.3 style file name.
10268 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10269 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10270 done
10271 IFS=$lt_save_ifs
10272 # Convert to MSYS style.
10273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10274 ;;
10275 cygwin*)
10276 # Convert to unix form, then to dos form, then back to unix form
10277 # but this time dos style (no spaces!) so that the unix form looks
10278 # like /cygdrive/c/PROGRA~1:/cygdr...
10279 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10280 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10281 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10282 ;;
10283 *)
10284 sys_lib_search_path_spec=$LIB
10285 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10286 # It is most probably a Windows format PATH.
10287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10288 else
10289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10290 fi
10291 # FIXME: find the short name or the path components, as spaces are
10292 # common. (e.g. "Program Files" -> "PROGRA~1")
10293 ;;
10294 esac
10295
10296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10297 postinstall_cmds='base_file=`basename \$file`~
10298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10299 dldir=$destdir/`dirname \$dlpath`~
10300 test -d \$dldir || mkdir -p \$dldir~
10301 $install_prog $dir/$dlname \$dldir/$dlname'
10302 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10303 dlpath=$dir/\$dldll~
10304 $RM \$dlpath'
10305 shlibpath_overrides_runpath=yes
10306 dynamic_linker='Win32 link.exe'
10307 ;;
10308
10309 *)
10310 # Assume MSVC wrapper
10311 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10312 dynamic_linker='Win32 ld.exe'
10313 ;;
10314 esac
10315 # FIXME: first we should search . and the directory the executable is in
10316 shlibpath_var=PATH
10317 ;;
10318
10319 darwin* | rhapsody*)
10320 dynamic_linker="$host_os dyld"
10321 version_type=darwin
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10325 soname_spec='$libname$release$major$shared_ext'
10326 shlibpath_overrides_runpath=yes
10327 shlibpath_var=DYLD_LIBRARY_PATH
10328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10329
10330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10332 ;;
10333
10334 dgux*)
10335 version_type=linux # correct to gnu/linux during the next big refactor
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10339 soname_spec='$libname$release$shared_ext$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 ;;
10342
10343 freebsd* | dragonfly*)
10344 # DragonFly does not have aout. When/if they implement a new
10345 # versioning mechanism, adjust this.
10346 if test -x /usr/bin/objformat; then
10347 objformat=`/usr/bin/objformat`
10348 else
10349 case $host_os in
10350 freebsd[23].*) objformat=aout ;;
10351 *) objformat=elf ;;
10352 esac
10353 fi
10354 version_type=freebsd-$objformat
10355 case $version_type in
10356 freebsd-elf*)
10357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10358 soname_spec='$libname$release$shared_ext$major'
10359 need_version=no
10360 need_lib_prefix=no
10361 ;;
10362 freebsd-*)
10363 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10364 need_version=yes
10365 ;;
10366 esac
10367 shlibpath_var=LD_LIBRARY_PATH
10368 case $host_os in
10369 freebsd2.*)
10370 shlibpath_overrides_runpath=yes
10371 ;;
10372 freebsd3.[01]* | freebsdelf3.[01]*)
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 ;;
10376 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10377 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 ;;
10381 *) # from 4.6 on, and DragonFly
10382 shlibpath_overrides_runpath=yes
10383 hardcode_into_libs=yes
10384 ;;
10385 esac
10386 ;;
10387
10388 haiku*)
10389 version_type=linux # correct to gnu/linux during the next big refactor
10390 need_lib_prefix=no
10391 need_version=no
10392 dynamic_linker="$host_os runtime_loader"
10393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10394 soname_spec='$libname$release$shared_ext$major'
10395 shlibpath_var=LIBRARY_PATH
10396 shlibpath_overrides_runpath=no
10397 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10398 hardcode_into_libs=yes
10399 ;;
10400
10401 hpux9* | hpux10* | hpux11*)
10402 # Give a soname corresponding to the major version so that dld.sl refuses to
10403 # link against other versions.
10404 version_type=sunos
10405 need_lib_prefix=no
10406 need_version=no
10407 case $host_cpu in
10408 ia64*)
10409 shrext_cmds='.so'
10410 hardcode_into_libs=yes
10411 dynamic_linker="$host_os dld.so"
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10415 soname_spec='$libname$release$shared_ext$major'
10416 if test 32 = "$HPUX_IA64_MODE"; then
10417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10418 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10419 else
10420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10421 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10422 fi
10423 ;;
10424 hppa*64*)
10425 shrext_cmds='.sl'
10426 hardcode_into_libs=yes
10427 dynamic_linker="$host_os dld.sl"
10428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10431 soname_spec='$libname$release$shared_ext$major'
10432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10434 ;;
10435 *)
10436 shrext_cmds='.sl'
10437 dynamic_linker="$host_os dld.sl"
10438 shlibpath_var=SHLIB_PATH
10439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10441 soname_spec='$libname$release$shared_ext$major'
10442 ;;
10443 esac
10444 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10445 postinstall_cmds='chmod 555 $lib'
10446 # or fails outright, so override atomically:
10447 install_override_mode=555
10448 ;;
10449
10450 interix[3-9]*)
10451 version_type=linux # correct to gnu/linux during the next big refactor
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10455 soname_spec='$libname$release$shared_ext$major'
10456 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10459 hardcode_into_libs=yes
10460 ;;
10461
10462 irix5* | irix6* | nonstopux*)
10463 case $host_os in
10464 nonstopux*) version_type=nonstopux ;;
10465 *)
10466 if test yes = "$lt_cv_prog_gnu_ld"; then
10467 version_type=linux # correct to gnu/linux during the next big refactor
10468 else
10469 version_type=irix
10470 fi ;;
10471 esac
10472 need_lib_prefix=no
10473 need_version=no
10474 soname_spec='$libname$release$shared_ext$major'
10475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10476 case $host_os in
10477 irix5* | nonstopux*)
10478 libsuff= shlibsuff=
10479 ;;
10480 *)
10481 case $LD in # libtool.m4 will add one of these switches to LD
10482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10483 libsuff= shlibsuff= libmagic=32-bit;;
10484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10485 libsuff=32 shlibsuff=N32 libmagic=N32;;
10486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10488 *) libsuff= shlibsuff= libmagic=never-match;;
10489 esac
10490 ;;
10491 esac
10492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10493 shlibpath_overrides_runpath=no
10494 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10495 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10496 hardcode_into_libs=yes
10497 ;;
10498
10499 # No shared lib support for Linux oldld, aout, or coff.
10500 linux*oldld* | linux*aout* | linux*coff*)
10501 dynamic_linker=no
10502 ;;
10503
10504 linux*android*)
10505 version_type=none # Android doesn't support versioned libraries.
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='$libname$release$shared_ext'
10509 soname_spec='$libname$release$shared_ext'
10510 finish_cmds=
10511 shlibpath_var=LD_LIBRARY_PATH
10512 shlibpath_overrides_runpath=yes
10513
10514 # This implies no fast_install, which is unacceptable.
10515 # Some rework will be needed to allow for fast_install
10516 # before this can be enabled.
10517 hardcode_into_libs=yes
10518
10519 dynamic_linker='Android linker'
10520 # Don't embed -rpath directories since the linker doesn't support them.
10521 hardcode_libdir_flag_spec='-L$libdir'
10522 ;;
10523
10524 # This must be glibc/ELF.
10525 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10530 soname_spec='$libname$release$shared_ext$major'
10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534
10535 # Some binutils ld are patched to set DT_RUNPATH
10536 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 lt_cv_shlibpath_overrides_runpath=no
10540 save_LDFLAGS=$LDFLAGS
10541 save_libdir=$libdir
10542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546
10547 int
10548 main ()
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10557 lt_cv_shlibpath_overrides_runpath=yes
10558 fi
10559 fi
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LDFLAGS=$save_LDFLAGS
10563 libdir=$save_libdir
10564
10565 fi
10566
10567 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10568
10569 # This implies no fast_install, which is unacceptable.
10570 # Some rework will be needed to allow for fast_install
10571 # before this can be enabled.
10572 hardcode_into_libs=yes
10573
10574 # Ideally, we could use ldconfig to report *all* directores which are
10575 # searched for libraries, however this is still not possible. Aside from not
10576 # being certain /sbin/ldconfig is available, command
10577 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10578 # even though it is searched at run-time. Try to do the best guess by
10579 # appending ld.so.conf contents (and includes) to the search path.
10580 if test -f /etc/ld.so.conf; then
10581 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' ' '`
10582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10583 fi
10584
10585 # We used to test for /lib/ld.so.1 and disable shared libraries on
10586 # powerpc, because MkLinux only supported shared libraries with the
10587 # GNU dynamic linker. Since this was broken with cross compilers,
10588 # most powerpc-linux boxes support dynamic linking these days and
10589 # people can always --disable-shared, the test was removed, and we
10590 # assume the GNU/Linux dynamic linker is in use.
10591 dynamic_linker='GNU/Linux ld.so'
10592 ;;
10593
10594 netbsd*)
10595 version_type=sunos
10596 need_lib_prefix=no
10597 need_version=no
10598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10599 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10601 dynamic_linker='NetBSD (a.out) ld.so'
10602 else
10603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10604 soname_spec='$libname$release$shared_ext$major'
10605 dynamic_linker='NetBSD ld.elf_so'
10606 fi
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10610 ;;
10611
10612 newsos6)
10613 version_type=linux # correct to gnu/linux during the next big refactor
10614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=yes
10617 ;;
10618
10619 *nto* | *qnx*)
10620 version_type=qnx
10621 need_lib_prefix=no
10622 need_version=no
10623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10624 soname_spec='$libname$release$shared_ext$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=no
10627 hardcode_into_libs=yes
10628 dynamic_linker='ldqnx.so'
10629 ;;
10630
10631 openbsd* | bitrig*)
10632 version_type=sunos
10633 sys_lib_dlsearch_path_spec=/usr/lib
10634 need_lib_prefix=no
10635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10636 need_version=no
10637 else
10638 need_version=yes
10639 fi
10640 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=yes
10644 ;;
10645
10646 os2*)
10647 libname_spec='$name'
10648 version_type=windows
10649 shrext_cmds=.dll
10650 need_version=no
10651 need_lib_prefix=no
10652 # OS/2 can only load a DLL with a base name of 8 characters or less.
10653 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10654 v=$($ECHO $release$versuffix | tr -d .-);
10655 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10656 $ECHO $n$v`$shared_ext'
10657 library_names_spec='${libname}_dll.$libext'
10658 dynamic_linker='OS/2 ld.exe'
10659 shlibpath_var=BEGINLIBPATH
10660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10662 postinstall_cmds='base_file=`basename \$file`~
10663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10664 dldir=$destdir/`dirname \$dlpath`~
10665 test -d \$dldir || mkdir -p \$dldir~
10666 $install_prog $dir/$dlname \$dldir/$dlname~
10667 chmod a+x \$dldir/$dlname~
10668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10670 fi'
10671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10672 dlpath=$dir/\$dldll~
10673 $RM \$dlpath'
10674 ;;
10675
10676 osf3* | osf4* | osf5*)
10677 version_type=osf
10678 need_lib_prefix=no
10679 need_version=no
10680 soname_spec='$libname$release$shared_ext$major'
10681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10685 ;;
10686
10687 rdos*)
10688 dynamic_linker=no
10689 ;;
10690
10691 solaris*)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10693 need_lib_prefix=no
10694 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 hardcode_into_libs=yes
10700 # ldd complains unless libraries are executable
10701 postinstall_cmds='chmod +x $lib'
10702 ;;
10703
10704 sunos4*)
10705 version_type=sunos
10706 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes
10710 if test yes = "$with_gnu_ld"; then
10711 need_lib_prefix=no
10712 fi
10713 need_version=yes
10714 ;;
10715
10716 sysv4 | sysv4.3*)
10717 version_type=linux # correct to gnu/linux during the next big refactor
10718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10719 soname_spec='$libname$release$shared_ext$major'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 case $host_vendor in
10722 sni)
10723 shlibpath_overrides_runpath=no
10724 need_lib_prefix=no
10725 runpath_var=LD_RUN_PATH
10726 ;;
10727 siemens)
10728 need_lib_prefix=no
10729 ;;
10730 motorola)
10731 need_lib_prefix=no
10732 need_version=no
10733 shlibpath_overrides_runpath=no
10734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10735 ;;
10736 esac
10737 ;;
10738
10739 sysv4*MP*)
10740 if test -d /usr/nec; then
10741 version_type=linux # correct to gnu/linux during the next big refactor
10742 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10743 soname_spec='$libname$shared_ext.$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 fi
10746 ;;
10747
10748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10749 version_type=sco
10750 need_lib_prefix=no
10751 need_version=no
10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10753 soname_spec='$libname$release$shared_ext$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 shlibpath_overrides_runpath=yes
10756 hardcode_into_libs=yes
10757 if test yes = "$with_gnu_ld"; then
10758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10759 else
10760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10761 case $host_os in
10762 sco3.2v5*)
10763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10764 ;;
10765 esac
10766 fi
10767 sys_lib_dlsearch_path_spec='/usr/lib'
10768 ;;
10769
10770 tpf*)
10771 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10772 version_type=linux # correct to gnu/linux during the next big refactor
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=no
10778 hardcode_into_libs=yes
10779 ;;
10780
10781 uts4*)
10782 version_type=linux # correct to gnu/linux during the next big refactor
10783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10784 soname_spec='$libname$release$shared_ext$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 ;;
10787
10788 *)
10789 dynamic_linker=no
10790 ;;
10791 esac
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10793 $as_echo "$dynamic_linker" >&6; }
10794 test no = "$dynamic_linker" && can_build_shared=no
10795
10796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10797 if test yes = "$GCC"; then
10798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10799 fi
10800
10801 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10802 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10803 fi
10804
10805 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10806 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10807 fi
10808
10809 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10810 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10811
10812 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10813 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10814
10815 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10816 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10915 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10916 hardcode_action=
10917 if test -n "$hardcode_libdir_flag_spec" ||
10918 test -n "$runpath_var" ||
10919 test yes = "$hardcode_automatic"; then
10920
10921 # We can hardcode non-existent directories.
10922 if test no != "$hardcode_direct" &&
10923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10924 # have to relink, otherwise we might link with an installed library
10925 # when we should be linking with a yet-to-be-installed one
10926 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10927 test no != "$hardcode_minus_L"; then
10928 # Linking always hardcodes the temporary library directory.
10929 hardcode_action=relink
10930 else
10931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10932 hardcode_action=immediate
10933 fi
10934 else
10935 # We cannot hardcode anything, or else we can only hardcode existing
10936 # directories.
10937 hardcode_action=unsupported
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10940 $as_echo "$hardcode_action" >&6; }
10941
10942 if test relink = "$hardcode_action" ||
10943 test yes = "$inherit_rpath"; then
10944 # Fast installation is not supported
10945 enable_fast_install=no
10946 elif test yes = "$shlibpath_overrides_runpath" ||
10947 test no = "$enable_shared"; then
10948 # Fast installation is not necessary
10949 enable_fast_install=needless
10950 fi
10951
10952
10953
10954
10955
10956
10957 if test yes != "$enable_dlopen"; then
10958 enable_dlopen=unknown
10959 enable_dlopen_self=unknown
10960 enable_dlopen_self_static=unknown
10961 else
10962 lt_cv_dlopen=no
10963 lt_cv_dlopen_libs=
10964
10965 case $host_os in
10966 beos*)
10967 lt_cv_dlopen=load_add_on
10968 lt_cv_dlopen_libs=
10969 lt_cv_dlopen_self=yes
10970 ;;
10971
10972 mingw* | pw32* | cegcc*)
10973 lt_cv_dlopen=LoadLibrary
10974 lt_cv_dlopen_libs=
10975 ;;
10976
10977 cygwin*)
10978 lt_cv_dlopen=dlopen
10979 lt_cv_dlopen_libs=
10980 ;;
10981
10982 darwin*)
10983 # if libdl is installed we need to link against it
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10985 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10986 if ${ac_cv_lib_dl_dlopen+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-ldl $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dlopen ();
11001 int
11002 main ()
11003 {
11004 return dlopen ();
11005 ;
11006 return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_dl_dlopen=yes
11011 else
11012 ac_cv_lib_dl_dlopen=no
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11021 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11022 else
11023
11024 lt_cv_dlopen=dyld
11025 lt_cv_dlopen_libs=
11026 lt_cv_dlopen_self=yes
11027
11028 fi
11029
11030 ;;
11031
11032 tpf*)
11033 # Don't try to run any link tests for TPF. We know it's impossible
11034 # because TPF is a cross-compiler, and we know how we open DSOs.
11035 lt_cv_dlopen=dlopen
11036 lt_cv_dlopen_libs=
11037 lt_cv_dlopen_self=no
11038 ;;
11039
11040 *)
11041 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11042 if test "x$ac_cv_func_shl_load" = xyes; then :
11043 lt_cv_dlopen=shl_load
11044 else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11046 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11047 if ${ac_cv_lib_dld_shl_load+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 ac_check_lib_save_LIBS=$LIBS
11051 LIBS="-ldld $LIBS"
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char shl_load ();
11062 int
11063 main ()
11064 {
11065 return shl_load ();
11066 ;
11067 return 0;
11068 }
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 ac_cv_lib_dld_shl_load=yes
11072 else
11073 ac_cv_lib_dld_shl_load=no
11074 fi
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11080 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11081 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11082 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11083 else
11084 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11085 if test "x$ac_cv_func_dlopen" = xyes; then :
11086 lt_cv_dlopen=dlopen
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11089 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11090 if ${ac_cv_lib_dl_dlopen+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 ac_check_lib_save_LIBS=$LIBS
11094 LIBS="-ldl $LIBS"
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11097
11098 /* Override any GCC internal prototype to avoid an error.
11099 Use char because int might match the return type of a GCC
11100 builtin and then its argument prototype would still apply. */
11101 #ifdef __cplusplus
11102 extern "C"
11103 #endif
11104 char dlopen ();
11105 int
11106 main ()
11107 {
11108 return dlopen ();
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 if ac_fn_c_try_link "$LINENO"; then :
11114 ac_cv_lib_dl_dlopen=yes
11115 else
11116 ac_cv_lib_dl_dlopen=no
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 LIBS=$ac_check_lib_save_LIBS
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11123 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11124 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11125 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11128 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11129 if ${ac_cv_lib_svld_dlopen+:} false; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 ac_check_lib_save_LIBS=$LIBS
11133 LIBS="-lsvld $LIBS"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136
11137 /* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char dlopen ();
11144 int
11145 main ()
11146 {
11147 return dlopen ();
11148 ;
11149 return 0;
11150 }
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"; then :
11153 ac_cv_lib_svld_dlopen=yes
11154 else
11155 ac_cv_lib_svld_dlopen=no
11156 fi
11157 rm -f core conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11162 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11163 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11164 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11167 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11168 if ${ac_cv_lib_dld_dld_link+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-ldld $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char dld_link ();
11183 int
11184 main ()
11185 {
11186 return dld_link ();
11187 ;
11188 return 0;
11189 }
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 ac_cv_lib_dld_dld_link=yes
11193 else
11194 ac_cv_lib_dld_dld_link=no
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11201 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11202 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11203 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11204 fi
11205
11206
11207 fi
11208
11209
11210 fi
11211
11212
11213 fi
11214
11215
11216 fi
11217
11218
11219 fi
11220
11221 ;;
11222 esac
11223
11224 if test no = "$lt_cv_dlopen"; then
11225 enable_dlopen=no
11226 else
11227 enable_dlopen=yes
11228 fi
11229
11230 case $lt_cv_dlopen in
11231 dlopen)
11232 save_CPPFLAGS=$CPPFLAGS
11233 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11234
11235 save_LDFLAGS=$LDFLAGS
11236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11237
11238 save_LIBS=$LIBS
11239 LIBS="$lt_cv_dlopen_libs $LIBS"
11240
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11242 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11243 if ${lt_cv_dlopen_self+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 if test yes = "$cross_compiling"; then :
11247 lt_cv_dlopen_self=cross
11248 else
11249 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11250 lt_status=$lt_dlunknown
11251 cat > conftest.$ac_ext <<_LT_EOF
11252 #line $LINENO "configure"
11253 #include "confdefs.h"
11254
11255 #if HAVE_DLFCN_H
11256 #include <dlfcn.h>
11257 #endif
11258
11259 #include <stdio.h>
11260
11261 #ifdef RTLD_GLOBAL
11262 # define LT_DLGLOBAL RTLD_GLOBAL
11263 #else
11264 # ifdef DL_GLOBAL
11265 # define LT_DLGLOBAL DL_GLOBAL
11266 # else
11267 # define LT_DLGLOBAL 0
11268 # endif
11269 #endif
11270
11271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11272 find out it does not work in some platform. */
11273 #ifndef LT_DLLAZY_OR_NOW
11274 # ifdef RTLD_LAZY
11275 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11276 # else
11277 # ifdef DL_LAZY
11278 # define LT_DLLAZY_OR_NOW DL_LAZY
11279 # else
11280 # ifdef RTLD_NOW
11281 # define LT_DLLAZY_OR_NOW RTLD_NOW
11282 # else
11283 # ifdef DL_NOW
11284 # define LT_DLLAZY_OR_NOW DL_NOW
11285 # else
11286 # define LT_DLLAZY_OR_NOW 0
11287 # endif
11288 # endif
11289 # endif
11290 # endif
11291 #endif
11292
11293 /* When -fvisibility=hidden is used, assume the code has been annotated
11294 correspondingly for the symbols needed. */
11295 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11296 int fnord () __attribute__((visibility("default")));
11297 #endif
11298
11299 int fnord () { return 42; }
11300 int main ()
11301 {
11302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11303 int status = $lt_dlunknown;
11304
11305 if (self)
11306 {
11307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11308 else
11309 {
11310 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11311 else puts (dlerror ());
11312 }
11313 /* dlclose (self); */
11314 }
11315 else
11316 puts (dlerror ());
11317
11318 return status;
11319 }
11320 _LT_EOF
11321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11322 (eval $ac_link) 2>&5
11323 ac_status=$?
11324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11325 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11326 (./conftest; exit; ) >&5 2>/dev/null
11327 lt_status=$?
11328 case x$lt_status in
11329 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11330 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11331 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11332 esac
11333 else :
11334 # compilation failed
11335 lt_cv_dlopen_self=no
11336 fi
11337 fi
11338 rm -fr conftest*
11339
11340
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11343 $as_echo "$lt_cv_dlopen_self" >&6; }
11344
11345 if test yes = "$lt_cv_dlopen_self"; then
11346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11348 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11349 if ${lt_cv_dlopen_self_static+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 if test yes = "$cross_compiling"; then :
11353 lt_cv_dlopen_self_static=cross
11354 else
11355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11356 lt_status=$lt_dlunknown
11357 cat > conftest.$ac_ext <<_LT_EOF
11358 #line $LINENO "configure"
11359 #include "confdefs.h"
11360
11361 #if HAVE_DLFCN_H
11362 #include <dlfcn.h>
11363 #endif
11364
11365 #include <stdio.h>
11366
11367 #ifdef RTLD_GLOBAL
11368 # define LT_DLGLOBAL RTLD_GLOBAL
11369 #else
11370 # ifdef DL_GLOBAL
11371 # define LT_DLGLOBAL DL_GLOBAL
11372 # else
11373 # define LT_DLGLOBAL 0
11374 # endif
11375 #endif
11376
11377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11378 find out it does not work in some platform. */
11379 #ifndef LT_DLLAZY_OR_NOW
11380 # ifdef RTLD_LAZY
11381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11382 # else
11383 # ifdef DL_LAZY
11384 # define LT_DLLAZY_OR_NOW DL_LAZY
11385 # else
11386 # ifdef RTLD_NOW
11387 # define LT_DLLAZY_OR_NOW RTLD_NOW
11388 # else
11389 # ifdef DL_NOW
11390 # define LT_DLLAZY_OR_NOW DL_NOW
11391 # else
11392 # define LT_DLLAZY_OR_NOW 0
11393 # endif
11394 # endif
11395 # endif
11396 # endif
11397 #endif
11398
11399 /* When -fvisibility=hidden is used, assume the code has been annotated
11400 correspondingly for the symbols needed. */
11401 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11402 int fnord () __attribute__((visibility("default")));
11403 #endif
11404
11405 int fnord () { return 42; }
11406 int main ()
11407 {
11408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11409 int status = $lt_dlunknown;
11410
11411 if (self)
11412 {
11413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11414 else
11415 {
11416 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11417 else puts (dlerror ());
11418 }
11419 /* dlclose (self); */
11420 }
11421 else
11422 puts (dlerror ());
11423
11424 return status;
11425 }
11426 _LT_EOF
11427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11428 (eval $ac_link) 2>&5
11429 ac_status=$?
11430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11432 (./conftest; exit; ) >&5 2>/dev/null
11433 lt_status=$?
11434 case x$lt_status in
11435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11437 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11438 esac
11439 else :
11440 # compilation failed
11441 lt_cv_dlopen_self_static=no
11442 fi
11443 fi
11444 rm -fr conftest*
11445
11446
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11449 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11450 fi
11451
11452 CPPFLAGS=$save_CPPFLAGS
11453 LDFLAGS=$save_LDFLAGS
11454 LIBS=$save_LIBS
11455 ;;
11456 esac
11457
11458 case $lt_cv_dlopen_self in
11459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11460 *) enable_dlopen_self=unknown ;;
11461 esac
11462
11463 case $lt_cv_dlopen_self_static in
11464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11465 *) enable_dlopen_self_static=unknown ;;
11466 esac
11467 fi
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 striplib=
11486 old_striplib=
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11488 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11489 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11493 $as_echo "yes" >&6; }
11494 else
11495 # FIXME - insert some real tests, host_os isn't really good enough
11496 case $host_os in
11497 darwin*)
11498 if test -n "$STRIP"; then
11499 striplib="$STRIP -x"
11500 old_striplib="$STRIP -S"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11502 $as_echo "yes" >&6; }
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11506 fi
11507 ;;
11508 *)
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 ;;
11512 esac
11513 fi
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526 # Report what library types will actually be built
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11528 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11530 $as_echo "$can_build_shared" >&6; }
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11533 $as_echo_n "checking whether to build shared libraries... " >&6; }
11534 test no = "$can_build_shared" && enable_shared=no
11535
11536 # On AIX, shared libraries and static libraries use the same namespace, and
11537 # are all built from PIC.
11538 case $host_os in
11539 aix3*)
11540 test yes = "$enable_shared" && enable_static=no
11541 if test -n "$RANLIB"; then
11542 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11543 postinstall_cmds='$RANLIB $lib'
11544 fi
11545 ;;
11546
11547 aix[4-9]*)
11548 if test ia64 != "$host_cpu"; then
11549 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11550 yes,aix,yes) ;; # shared object as lib.so file only
11551 yes,svr4,*) ;; # shared object as lib.so archive member only
11552 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11553 esac
11554 fi
11555 ;;
11556 esac
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11558 $as_echo "$enable_shared" >&6; }
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11561 $as_echo_n "checking whether to build static libraries... " >&6; }
11562 # Make sure either enable_shared or enable_static is yes.
11563 test yes = "$enable_shared" || enable_static=yes
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11565 $as_echo "$enable_static" >&6; }
11566
11567
11568
11569
11570 fi
11571 ac_ext=c
11572 ac_cpp='$CPP $CPPFLAGS'
11573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11576
11577 CC=$lt_save_CC
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593 ac_config_commands="$ac_config_commands libtool"
11594
11595
11596
11597
11598 # Only expand once:
11599
11600
11601 # Find a good install program. We prefer a C program (faster),
11602 # so one script is as good as another. But avoid the broken or
11603 # incompatible versions:
11604 # SysV /etc/install, /usr/sbin/install
11605 # SunOS /usr/etc/install
11606 # IRIX /sbin/install
11607 # AIX /bin/install
11608 # AmigaOS /C/install, which installs bootblocks on floppy discs
11609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11612 # OS/2's system install, which has a completely different semantic
11613 # ./install, which can be erroneously created by make from ./install.sh.
11614 # Reject install programs that cannot install multiple files.
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11616 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11617 if test -z "$INSTALL"; then
11618 if ${ac_cv_path_install+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 # Account for people who put trailing slashes in PATH elements.
11627 case $as_dir/ in #((
11628 ./ | .// | /[cC]/* | \
11629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11630 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11631 /usr/ucb/* ) ;;
11632 *)
11633 # OSF1 and SCO ODT 3.0 have their own names for install.
11634 # Don't use installbsd from OSF since it installs stuff as root
11635 # by default.
11636 for ac_prog in ginstall scoinst install; do
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11639 if test $ac_prog = install &&
11640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11641 # AIX install. It has an incompatible calling convention.
11642 :
11643 elif test $ac_prog = install &&
11644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11645 # program-specific install script used by HP pwplus--don't use.
11646 :
11647 else
11648 rm -rf conftest.one conftest.two conftest.dir
11649 echo one > conftest.one
11650 echo two > conftest.two
11651 mkdir conftest.dir
11652 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11653 test -s conftest.one && test -s conftest.two &&
11654 test -s conftest.dir/conftest.one &&
11655 test -s conftest.dir/conftest.two
11656 then
11657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11658 break 3
11659 fi
11660 fi
11661 fi
11662 done
11663 done
11664 ;;
11665 esac
11666
11667 done
11668 IFS=$as_save_IFS
11669
11670 rm -rf conftest.one conftest.two conftest.dir
11671
11672 fi
11673 if test "${ac_cv_path_install+set}" = set; then
11674 INSTALL=$ac_cv_path_install
11675 else
11676 # As a last resort, use the slow shell script. Don't cache a
11677 # value for INSTALL within a source directory, because that will
11678 # break other packages using the cache if that directory is
11679 # removed, or if the value is a relative name.
11680 INSTALL=$ac_install_sh
11681 fi
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11684 $as_echo "$INSTALL" >&6; }
11685
11686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11687 # It thinks the first close brace ends the variable substitution.
11688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11689
11690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11691
11692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11693
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11695 $as_echo_n "checking whether ln -s works... " >&6; }
11696 LN_S=$as_ln_s
11697 if test "$LN_S" = "ln -s"; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699 $as_echo "yes" >&6; }
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11702 $as_echo "no, using $LN_S" >&6; }
11703 fi
11704
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
11706 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
11707 if ${ac_cv_prog_shell+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 ac_test_shell_script='
11711 test "$(expr 1 + 1)" = "2" &&
11712 test "$(( 1 + 1 ))" = "2"
11713 '
11714
11715 for ac_cv_prog_shell in \
11716 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
11717 case $ac_cv_prog_shell in #(
11718 /*) :
11719
11720 if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
11721 break
11722 fi
11723 ;; #(
11724 *) :
11725 ;;
11726 esac
11727 done
11728
11729 fi
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
11731 $as_echo "$ac_cv_prog_shell" >&6; }
11732 if test "$ac_cv_prog_shell" = "no"; then :
11733 SHELL=/bin/sh
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
11735 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
11736
11737 else
11738 SHELL="$ac_cv_prog_shell"
11739
11740 fi
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751 #
11752 # Use pkg-config
11753 #
11754
11755
11756
11757
11758
11759
11760
11761
11762 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11763 if test -n "$ac_tool_prefix"; then
11764 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11765 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 case $PKG_CONFIG in
11772 [\\/]* | ?:[\\/]*)
11773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11774 ;;
11775 *)
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11778 do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787 done
11788 done
11789 IFS=$as_save_IFS
11790
11791 ;;
11792 esac
11793 fi
11794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11795 if test -n "$PKG_CONFIG"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11797 $as_echo "$PKG_CONFIG" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 fi
11802
11803
11804 fi
11805 if test -z "$ac_cv_path_PKG_CONFIG"; then
11806 ac_pt_PKG_CONFIG=$PKG_CONFIG
11807 # Extract the first word of "pkg-config", so it can be a program name with args.
11808 set dummy pkg-config; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 case $ac_pt_PKG_CONFIG in
11815 [\\/]* | ?:[\\/]*)
11816 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11817 ;;
11818 *)
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 ;;
11835 esac
11836 fi
11837 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11838 if test -n "$ac_pt_PKG_CONFIG"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11840 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 fi
11845
11846 if test "x$ac_pt_PKG_CONFIG" = x; then
11847 PKG_CONFIG=""
11848 else
11849 case $cross_compiling:$ac_tool_warned in
11850 yes:)
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11853 ac_tool_warned=yes ;;
11854 esac
11855 PKG_CONFIG=$ac_pt_PKG_CONFIG
11856 fi
11857 else
11858 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11859 fi
11860
11861 fi
11862 if test -n "$PKG_CONFIG"; then
11863 _pkg_min_version=0.9.0
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11865 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11866 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11868 $as_echo "yes" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872 PKG_CONFIG=""
11873 fi
11874 fi
11875
11876 # Warn if the user specified libbind, which is now deprecated
11877 # Check whether --enable-libbind was given.
11878 if test "${enable_libbind+set}" = set; then :
11879 enableval=$enable_libbind;
11880 fi
11881
11882
11883 case "$enable_libbind" in
11884 yes)
11885 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
11886 It is available from http://www.isc.org as a separate download." "$LINENO" 5
11887 ;;
11888 no|'')
11889 ;;
11890 esac
11891
11892 # Check whether --enable-buffer_useinline was given.
11893 if test "${enable_buffer_useinline+set}" = set; then :
11894 enableval=$enable_buffer_useinline; if test yes = "${enable}"
11895 then
11896
11897 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
11898
11899 fi
11900 else
11901 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
11902
11903 fi
11904
11905
11906 # Check whether --enable-warn_shadow was given.
11907 if test "${enable_warn_shadow+set}" = set; then :
11908 enableval=$enable_warn_shadow;
11909 fi
11910
11911
11912 # Check whether --enable-warn_error was given.
11913 if test "${enable_warn_error+set}" = set; then :
11914 enableval=$enable_warn_error;
11915 fi
11916
11917
11918 # Check whether --enable-developer was given.
11919 if test "${enable_developer+set}" = set; then :
11920 enableval=$enable_developer;
11921 fi
11922
11923 XTARGETS=
11924 case "$enable_developer" in
11925 yes)
11926 STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
11927 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
11928 test "${enable_querytrace+set}" = set || enable_querytrace=yes
11929 test "${with_cmocka+set}" = set || with_cmocka=yes
11930 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
11931 test "${enable_symtable+set}" = set || enable_symtable=all
11932 test "${enable_warn_error+set}" = set || enable_warn_error=yes
11933 test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
11934 test "${with_zlib+set}" = set || with_zlib=yes
11935 XTARGETS='${XTARGETS}'
11936 ;;
11937 esac
11938
11939
11940 # Check whether --enable-fuzzing was given.
11941 if test "${enable_fuzzing+set}" = set; then :
11942 enableval=$enable_fuzzing;
11943 else
11944 enable_fuzzing=no
11945 fi
11946
11947
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
11949 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
11950 case $enable_fuzzing in #(
11951 no) :
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; } ;; #(
11954 afl) :
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
11957 $as_echo "using AFL" >&6; }
11958
11959 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
11960
11961 CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
11962 LIBS="$LIBS -lpthread" ;; #(
11963 libfuzzer) :
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
11966 $as_echo "using libFuzzer" >&6; }
11967 CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
11968 LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
11969 *) :
11970 as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
11971 *) :
11972 ;;
11973 esac
11974
11975 if test "$enable_fuzzing" = "afl"; then :
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
11977 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980
11981 int
11982 main ()
11983 {
11984 #ifndef __AFL_COMPILER
11985 #error AFL compiler required
11986 #endif
11987
11988 ;
11989 return 0;
11990 }
11991 _ACEOF
11992 if ac_fn_c_try_compile "$LINENO"; then :
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 $as_echo "yes" >&6; }
11995 else
11996 as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999
12000 fi
12001
12002 #
12003 # Make very sure that these are the first files processed by
12004 # config.status, since we use the processed output as the input for
12005 # AC_SUBST_FILE() substitutions in other files.
12006 #
12007 ac_config_files="$ac_config_files make/rules make/includes"
12008
12009
12010 # Extract the first word of "ar", so it can be a program name with args.
12011 set dummy ar; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_path_AR+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 case $AR in
12018 [\\/]* | ?:[\\/]*)
12019 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12020 ;;
12021 *)
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12032 fi
12033 done
12034 done
12035 IFS=$as_save_IFS
12036
12037 ;;
12038 esac
12039 fi
12040 AR=$ac_cv_path_AR
12041 if test -n "$AR"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12043 $as_echo "$AR" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 ARFLAGS="cruv"
12051
12052
12053
12054 # The POSIX ln(1) program. Non-POSIX systems may substitute
12055 # "copy" or something.
12056 LN=ln
12057
12058
12059 case "$AR" in
12060 "")
12061 as_fn_error $? "
12062 ar program not found. Please fix your PATH to include the directory in
12063 which ar resides, or set AR in the environment with the full path to ar.
12064 " "$LINENO" 5
12065
12066 ;;
12067 esac
12068
12069 #
12070 # Etags.
12071 #
12072 for ac_prog in etags emacs-etags
12073 do
12074 # Extract the first word of "$ac_prog", so it can be a program name with args.
12075 set dummy $ac_prog; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_path_ETAGS+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 case $ETAGS in
12082 [\\/]* | ?:[\\/]*)
12083 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
12084 ;;
12085 *)
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12088 do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12096 fi
12097 done
12098 done
12099 IFS=$as_save_IFS
12100
12101 ;;
12102 esac
12103 fi
12104 ETAGS=$ac_cv_path_ETAGS
12105 if test -n "$ETAGS"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
12107 $as_echo "$ETAGS" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112
12113
12114 test -n "$ETAGS" && break
12115 done
12116
12117
12118 #
12119 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
12120 # GNU emacs etags, and it requires the -L flag.
12121 #
12122 if test "X$ETAGS" != "X"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
12124 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
12125 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127 $as_echo "yes" >&6; }
12128 ETAGS="$ETAGS -L"
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12132 fi
12133 fi
12134
12135
12136 #
12137 # Perl is optional; it is used only by some of the system test scripts.
12138 # Note: the backtrace feature (see below) uses perl to build the symbol table,
12139 # but it still compiles without perl, in which case an empty table will be used.
12140 #
12141 for ac_prog in perl5 perl
12142 do
12143 # Extract the first word of "$ac_prog", so it can be a program name with args.
12144 set dummy $ac_prog; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_PERL+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 case $PERL in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12153 ;;
12154 *)
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166 done
12167 done
12168 IFS=$as_save_IFS
12169
12170 ;;
12171 esac
12172 fi
12173 PERL=$ac_cv_path_PERL
12174 if test -n "$PERL"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12176 $as_echo "$PERL" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181
12182
12183 test -n "$PERL" && break
12184 done
12185
12186
12187
12188 #
12189 # Python is also optional but required by default so that dnssec-keymgr gets
12190 # installed unless explicitly prevented by the user using --without-python.
12191 #
12192 testminvers='import sys
12193 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
12194 exit(1)'
12195
12196 testargparse='try: import argparse
12197 except: exit(1)'
12198
12199 testply='try: import ply
12200 except: exit(1)'
12201
12202 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
12203
12204
12205 # Check whether --with-python was given.
12206 if test "${with_python+set}" = set; then :
12207 withval=$with_python;
12208 else
12209 with_python=$default_with_python
12210 fi
12211
12212
12213 # Check whether --with-python-install-dir was given.
12214 if test "${with_python_install_dir+set}" = set; then :
12215 withval=$with_python_install_dir;
12216 else
12217 with_python_install_dir=""
12218 fi
12219
12220
12221 if test "$with_python" = "yes"; then :
12222 with_python=$default_with_python
12223 fi
12224
12225 if test "$with_python" = "no"; then :
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12227 $as_echo_n "checking for Python support... " >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12229 $as_echo "disabled" >&6; }
12230 else
12231 for p in $with_python
12232 do
12233 case $p in #(
12234 /*) :
12235 PYTHON="$p" ;; #(
12236 *) :
12237 ;;
12238 esac
12239
12240 # Extract the first word of "$p", so it can be a program name with args.
12241 set dummy $p; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if ${ac_cv_path_PYTHON+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 case $PYTHON in
12248 [\\/]* | ?:[\\/]*)
12249 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12250 ;;
12251 *)
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12254 do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12259 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12262 fi
12263 done
12264 done
12265 IFS=$as_save_IFS
12266
12267 ;;
12268 esac
12269 fi
12270 PYTHON=$ac_cv_path_PYTHON
12271 if test -n "$PYTHON"; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12273 $as_echo "$PYTHON" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12277 fi
12278
12279
12280 # Do not cache the result of the check from the previous line. If the
12281 # first found Python interpreter has missing module dependencies and
12282 # the result of the above check is cached, subsequent module checks
12283 # will erroneously keep on using the cached path to the first found
12284 # Python interpreter instead of different ones.
12285 unset ac_cv_path_PYTHON
12286
12287 if test -z "$PYTHON"; then :
12288 continue
12289 fi
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
12292 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
12293 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12295 $as_echo "yes" >&6; }
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299 unset PYTHON
12300 continue
12301 fi
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
12304 $as_echo_n "checking Python module 'argparse'... " >&6; }
12305 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307 $as_echo "yes" >&6; }
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311 unset PYTHON
12312 continue
12313 fi
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
12316 $as_echo_n "checking Python module 'ply'... " >&6; }
12317 if "$PYTHON" -c "$testply" 2>/dev/null; then :
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319 $as_echo "yes" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12323 unset PYTHON
12324 continue
12325 fi
12326
12327 # Stop looking any further once we find a Python interpreter
12328 # satisfying all requirements.
12329 break
12330 done
12331
12332 if test "X$PYTHON" = "X"; then :
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12334 $as_echo_n "checking for Python support... " >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12337 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
12338 fi
12339 fi
12340
12341 PYTHON_TOOLS=''
12342 CHECKDS=''
12343 COVERAGE=''
12344 KEYMGR=''
12345 if test "X$PYTHON" != "X"; then :
12346 PYTHON_TOOLS=python
12347 CHECKDS=checkds
12348 COVERAGE=coverage
12349 KEYMGR=keymgr
12350 PYTHON_INSTALL_DIR="$with_python_install_dir"
12351 if test -n "$with_python_install_dir"; then :
12352 PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
12353 fi
12354 fi
12355
12356
12357
12358
12359
12360
12361
12362 #
12363 # Special processing of paths depending on whether --prefix,
12364 # --sysconfdir or --localstatedir arguments were given. What's
12365 # desired is some compatibility with the way previous versions
12366 # of BIND built; they defaulted to /usr/local for most parts of
12367 # the installation, but named.boot/named.conf was in /etc
12368 # and named.pid was in /var/run.
12369 #
12370 # So ... if none of --prefix, --sysconfdir or --localstatedir are
12371 # specified, set things up that way. If --prefix is given, use
12372 # it for sysconfdir and localstatedir the way configure normally
12373 # would. To change the prefix for everything but leave named.conf
12374 # in /etc or named.pid in /var/run, then do this the usual configure way:
12375 # ./configure --prefix=/somewhere --sysconfdir=/etc
12376 # ./configure --prefix=/somewhere --localstatedir=/var
12377 #
12378 # To put named.conf and named.pid in /usr/local with everything else,
12379 # set the prefix explicitly to /usr/local even though that's the default:
12380 # ./configure --prefix=/usr/local
12381 #
12382 case "$prefix" in
12383 NONE)
12384 case "$sysconfdir" in
12385 '${prefix}/etc')
12386 sysconfdir=/etc
12387 ;;
12388 esac
12389 case "$localstatedir" in
12390 '${prefix}/var')
12391 localstatedir=/var
12392 ;;
12393 esac
12394 ;;
12395 esac
12396 expanded_sysconfdir=`eval echo $sysconfdir`
12397
12398
12399 #
12400 # Make sure INSTALL uses an absolute path, else it will be wrong in all
12401 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
12402 # configure based on the location of the file where it is substituted.
12403 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
12404 # subdirectory of install-sh, This relative path will be wrong for all
12405 # directories more than one level down from install-sh.
12406 #
12407 case "$INSTALL" in
12408 /*)
12409 ;;
12410 *)
12411 #
12412 # Not all systems have dirname.
12413 #
12414
12415 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
12416
12417
12418 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
12419 test "X$ac_dir" = "X$ac_prog" && ac_dir=.
12420 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
12421 INSTALL="$ac_dir/$ac_prog"
12422 ;;
12423 esac
12424
12425 ac_ext=c
12426 ac_cpp='$CPP $CPPFLAGS'
12427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12430 if test -n "$ac_tool_prefix"; then
12431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_prog_CC+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$CC"; then
12439 ac_cv_prog_CC="$CC" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12443 do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12451 fi
12452 done
12453 done
12454 IFS=$as_save_IFS
12455
12456 fi
12457 fi
12458 CC=$ac_cv_prog_CC
12459 if test -n "$CC"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12461 $as_echo "$CC" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12465 fi
12466
12467
12468 fi
12469 if test -z "$ac_cv_prog_CC"; then
12470 ac_ct_CC=$CC
12471 # Extract the first word of "gcc", so it can be a program name with args.
12472 set dummy gcc; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 if test -n "$ac_ct_CC"; then
12479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12480 else
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488 ac_cv_prog_ac_ct_CC="gcc"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12491 fi
12492 done
12493 done
12494 IFS=$as_save_IFS
12495
12496 fi
12497 fi
12498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12499 if test -n "$ac_ct_CC"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12501 $as_echo "$ac_ct_CC" >&6; }
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12505 fi
12506
12507 if test "x$ac_ct_CC" = x; then
12508 CC=""
12509 else
12510 case $cross_compiling:$ac_tool_warned in
12511 yes:)
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12514 ac_tool_warned=yes ;;
12515 esac
12516 CC=$ac_ct_CC
12517 fi
12518 else
12519 CC="$ac_cv_prog_CC"
12520 fi
12521
12522 if test -z "$CC"; then
12523 if test -n "$ac_tool_prefix"; then
12524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12525 set dummy ${ac_tool_prefix}cc; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if ${ac_cv_prog_CC+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 if test -n "$CC"; then
12532 ac_cv_prog_CC="$CC" # Let the user override the test.
12533 else
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12536 do
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541 ac_cv_prog_CC="${ac_tool_prefix}cc"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12544 fi
12545 done
12546 done
12547 IFS=$as_save_IFS
12548
12549 fi
12550 fi
12551 CC=$ac_cv_prog_CC
12552 if test -n "$CC"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12554 $as_echo "$CC" >&6; }
12555 else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558 fi
12559
12560
12561 fi
12562 fi
12563 if test -z "$CC"; then
12564 # Extract the first word of "cc", so it can be a program name with args.
12565 set dummy cc; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if ${ac_cv_prog_CC+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 if test -n "$CC"; then
12572 ac_cv_prog_CC="$CC" # Let the user override the test.
12573 else
12574 ac_prog_rejected=no
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12577 do
12578 IFS=$as_save_IFS
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12583 ac_prog_rejected=yes
12584 continue
12585 fi
12586 ac_cv_prog_CC="cc"
12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 break 2
12589 fi
12590 done
12591 done
12592 IFS=$as_save_IFS
12593
12594 if test $ac_prog_rejected = yes; then
12595 # We found a bogon in the path, so make sure we never use it.
12596 set dummy $ac_cv_prog_CC
12597 shift
12598 if test $# != 0; then
12599 # We chose a different compiler from the bogus one.
12600 # However, it has the same basename, so the bogon will be chosen
12601 # first if we set CC to just the basename; use the full file name.
12602 shift
12603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12604 fi
12605 fi
12606 fi
12607 fi
12608 CC=$ac_cv_prog_CC
12609 if test -n "$CC"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12611 $as_echo "$CC" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616
12617
12618 fi
12619 if test -z "$CC"; then
12620 if test -n "$ac_tool_prefix"; then
12621 for ac_prog in cl.exe
12622 do
12623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if ${ac_cv_prog_CC+:} false; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 if test -n "$CC"; then
12631 ac_cv_prog_CC="$CC" # Let the user override the test.
12632 else
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12635 do
12636 IFS=$as_save_IFS
12637 test -z "$as_dir" && as_dir=.
12638 for ac_exec_ext in '' $ac_executable_extensions; do
12639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12642 break 2
12643 fi
12644 done
12645 done
12646 IFS=$as_save_IFS
12647
12648 fi
12649 fi
12650 CC=$ac_cv_prog_CC
12651 if test -n "$CC"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12653 $as_echo "$CC" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 fi
12658
12659
12660 test -n "$CC" && break
12661 done
12662 fi
12663 if test -z "$CC"; then
12664 ac_ct_CC=$CC
12665 for ac_prog in cl.exe
12666 do
12667 # Extract the first word of "$ac_prog", so it can be a program name with args.
12668 set dummy $ac_prog; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 if test -n "$ac_ct_CC"; then
12675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12676 else
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12679 do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12684 ac_cv_prog_ac_ct_CC="$ac_prog"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12687 fi
12688 done
12689 done
12690 IFS=$as_save_IFS
12691
12692 fi
12693 fi
12694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12695 if test -n "$ac_ct_CC"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12697 $as_echo "$ac_ct_CC" >&6; }
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 fi
12702
12703
12704 test -n "$ac_ct_CC" && break
12705 done
12706
12707 if test "x$ac_ct_CC" = x; then
12708 CC=""
12709 else
12710 case $cross_compiling:$ac_tool_warned in
12711 yes:)
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12714 ac_tool_warned=yes ;;
12715 esac
12716 CC=$ac_ct_CC
12717 fi
12718 fi
12719
12720 fi
12721
12722
12723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12725 as_fn_error $? "no acceptable C compiler found in \$PATH
12726 See \`config.log' for more details" "$LINENO" 5; }
12727
12728 # Provide some information about the compiler.
12729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12730 set X $ac_compile
12731 ac_compiler=$2
12732 for ac_option in --version -v -V -qversion; do
12733 { { ac_try="$ac_compiler $ac_option >&5"
12734 case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737 esac
12738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12739 $as_echo "$ac_try_echo"; } >&5
12740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12741 ac_status=$?
12742 if test -s conftest.err; then
12743 sed '10a\
12744 ... rest of stderr output deleted ...
12745 10q' conftest.err >conftest.er1
12746 cat conftest.er1 >&5
12747 fi
12748 rm -f conftest.er1 conftest.err
12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750 test $ac_status = 0; }
12751 done
12752
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12755 if ${ac_cv_c_compiler_gnu+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 int
12762 main ()
12763 {
12764 #ifndef __GNUC__
12765 choke me
12766 #endif
12767
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_compile "$LINENO"; then :
12773 ac_compiler_gnu=yes
12774 else
12775 ac_compiler_gnu=no
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12779
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12783 if test $ac_compiler_gnu = yes; then
12784 GCC=yes
12785 else
12786 GCC=
12787 fi
12788 ac_test_CFLAGS=${CFLAGS+set}
12789 ac_save_CFLAGS=$CFLAGS
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12792 if ${ac_cv_prog_cc_g+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 ac_save_c_werror_flag=$ac_c_werror_flag
12796 ac_c_werror_flag=yes
12797 ac_cv_prog_cc_g=no
12798 CFLAGS="-g"
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801
12802 int
12803 main ()
12804 {
12805
12806 ;
12807 return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811 ac_cv_prog_cc_g=yes
12812 else
12813 CFLAGS=""
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12816
12817 int
12818 main ()
12819 {
12820
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_c_try_compile "$LINENO"; then :
12826
12827 else
12828 ac_c_werror_flag=$ac_save_c_werror_flag
12829 CFLAGS="-g"
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832
12833 int
12834 main ()
12835 {
12836
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_compile "$LINENO"; then :
12842 ac_cv_prog_cc_g=yes
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845 fi
12846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 ac_c_werror_flag=$ac_save_c_werror_flag
12850 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12852 $as_echo "$ac_cv_prog_cc_g" >&6; }
12853 if test "$ac_test_CFLAGS" = set; then
12854 CFLAGS=$ac_save_CFLAGS
12855 elif test $ac_cv_prog_cc_g = yes; then
12856 if test "$GCC" = yes; then
12857 CFLAGS="-g -O2"
12858 else
12859 CFLAGS="-g"
12860 fi
12861 else
12862 if test "$GCC" = yes; then
12863 CFLAGS="-O2"
12864 else
12865 CFLAGS=
12866 fi
12867 fi
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12870 if ${ac_cv_prog_cc_c89+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 ac_cv_prog_cc_c89=no
12874 ac_save_CC=$CC
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12877 #include <stdarg.h>
12878 #include <stdio.h>
12879 struct stat;
12880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12881 struct buf { int x; };
12882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12883 static char *e (p, i)
12884 char **p;
12885 int i;
12886 {
12887 return p[i];
12888 }
12889 static char *f (char * (*g) (char **, int), char **p, ...)
12890 {
12891 char *s;
12892 va_list v;
12893 va_start (v,p);
12894 s = g (p, va_arg (v,int));
12895 va_end (v);
12896 return s;
12897 }
12898
12899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12900 function prototypes and stuff, but not '\xHH' hex character constants.
12901 These don't provoke an error unfortunately, instead are silently treated
12902 as 'x'. The following induces an error, until -std is added to get
12903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12904 array size at least. It's necessary to write '\x00'==0 to get something
12905 that's true only with -std. */
12906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12907
12908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12909 inside strings and character constants. */
12910 #define FOO(x) 'x'
12911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12912
12913 int test (int i, double x);
12914 struct s1 {int (*f) (int a);};
12915 struct s2 {int (*f) (double a);};
12916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12917 int argc;
12918 char **argv;
12919 int
12920 main ()
12921 {
12922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12929 do
12930 CC="$ac_save_CC $ac_arg"
12931 if ac_fn_c_try_compile "$LINENO"; then :
12932 ac_cv_prog_cc_c89=$ac_arg
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext
12935 test "x$ac_cv_prog_cc_c89" != "xno" && break
12936 done
12937 rm -f conftest.$ac_ext
12938 CC=$ac_save_CC
12939
12940 fi
12941 # AC_CACHE_VAL
12942 case "x$ac_cv_prog_cc_c89" in
12943 x)
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12945 $as_echo "none needed" >&6; } ;;
12946 xno)
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12948 $as_echo "unsupported" >&6; } ;;
12949 *)
12950 CC="$CC $ac_cv_prog_cc_c89"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12953 esac
12954 if test "x$ac_cv_prog_cc_c89" != xno; then :
12955
12956 fi
12957
12958 ac_ext=c
12959 ac_cpp='$CPP $CPPFLAGS'
12960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12963
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12965 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12966 if ${ac_cv_prog_cc_c99+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_cv_prog_cc_c99=no
12970 ac_save_CC=$CC
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 #include <stdarg.h>
12974 #include <stdbool.h>
12975 #include <stdlib.h>
12976 #include <wchar.h>
12977 #include <stdio.h>
12978
12979 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12980 #define debug(...) fprintf (stderr, __VA_ARGS__)
12981 #define showlist(...) puts (#__VA_ARGS__)
12982 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12983 static void
12984 test_varargs_macros (void)
12985 {
12986 int x = 1234;
12987 int y = 5678;
12988 debug ("Flag");
12989 debug ("X = %d\n", x);
12990 showlist (The first, second, and third items.);
12991 report (x>y, "x is %d but y is %d", x, y);
12992 }
12993
12994 // Check long long types.
12995 #define BIG64 18446744073709551615ull
12996 #define BIG32 4294967295ul
12997 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12998 #if !BIG_OK
12999 your preprocessor is broken;
13000 #endif
13001 #if BIG_OK
13002 #else
13003 your preprocessor is broken;
13004 #endif
13005 static long long int bignum = -9223372036854775807LL;
13006 static unsigned long long int ubignum = BIG64;
13007
13008 struct incomplete_array
13009 {
13010 int datasize;
13011 double data[];
13012 };
13013
13014 struct named_init {
13015 int number;
13016 const wchar_t *name;
13017 double average;
13018 };
13019
13020 typedef const char *ccp;
13021
13022 static inline int
13023 test_restrict (ccp restrict text)
13024 {
13025 // See if C++-style comments work.
13026 // Iterate through items via the restricted pointer.
13027 // Also check for declarations in for loops.
13028 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13029 continue;
13030 return 0;
13031 }
13032
13033 // Check varargs and va_copy.
13034 static void
13035 test_varargs (const char *format, ...)
13036 {
13037 va_list args;
13038 va_start (args, format);
13039 va_list args_copy;
13040 va_copy (args_copy, args);
13041
13042 const char *str;
13043 int number;
13044 float fnumber;
13045
13046 while (*format)
13047 {
13048 switch (*format++)
13049 {
13050 case 's': // string
13051 str = va_arg (args_copy, const char *);
13052 break;
13053 case 'd': // int
13054 number = va_arg (args_copy, int);
13055 break;
13056 case 'f': // float
13057 fnumber = va_arg (args_copy, double);
13058 break;
13059 default:
13060 break;
13061 }
13062 }
13063 va_end (args_copy);
13064 va_end (args);
13065 }
13066
13067 int
13068 main ()
13069 {
13070
13071 // Check bool.
13072 _Bool success = false;
13073
13074 // Check restrict.
13075 if (test_restrict ("String literal") == 0)
13076 success = true;
13077 char *restrict newvar = "Another string";
13078
13079 // Check varargs.
13080 test_varargs ("s, d' f .", "string", 65, 34.234);
13081 test_varargs_macros ();
13082
13083 // Check flexible array members.
13084 struct incomplete_array *ia =
13085 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13086 ia->datasize = 10;
13087 for (int i = 0; i < ia->datasize; ++i)
13088 ia->data[i] = i * 1.234;
13089
13090 // Check named initializers.
13091 struct named_init ni = {
13092 .number = 34,
13093 .name = L"Test wide string",
13094 .average = 543.34343,
13095 };
13096
13097 ni.number = 58;
13098
13099 int dynamic_array[ni.number];
13100 dynamic_array[ni.number - 1] = 543;
13101
13102 // work around unused variable warnings
13103 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13104 || dynamic_array[ni.number - 1] != 543);
13105
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13111 do
13112 CC="$ac_save_CC $ac_arg"
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114 ac_cv_prog_cc_c99=$ac_arg
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext
13117 test "x$ac_cv_prog_cc_c99" != "xno" && break
13118 done
13119 rm -f conftest.$ac_ext
13120 CC=$ac_save_CC
13121
13122 fi
13123 # AC_CACHE_VAL
13124 case "x$ac_cv_prog_cc_c99" in
13125 x)
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13127 $as_echo "none needed" >&6; } ;;
13128 xno)
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13130 $as_echo "unsupported" >&6; } ;;
13131 *)
13132 CC="$CC $ac_cv_prog_cc_c99"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13134 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13135 esac
13136 if test "x$ac_cv_prog_cc_c99" != xno; then :
13137
13138 fi
13139
13140
13141
13142 #
13143 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
13144 #
13145 case $host in #(
13146 *-solaris*) :
13147
13148 if test "$GCC" = "yes"; then :
13149 LDFLAGS="$LDFLAGS -zrelax=transtls"
13150 { $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
13151 $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;}
13152
13153 fi
13154 ;; #(
13155 *) :
13156 ;;
13157 esac
13158
13159 #
13160 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
13161 #
13162 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
13163 CCNOOPT="-O0"
13164 fi
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13167 $as_echo_n "checking for ANSI C header files... " >&6; }
13168 if ${ac_cv_header_stdc+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173 #include <stdlib.h>
13174 #include <stdarg.h>
13175 #include <string.h>
13176 #include <float.h>
13177
13178 int
13179 main ()
13180 {
13181
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_compile "$LINENO"; then :
13187 ac_cv_header_stdc=yes
13188 else
13189 ac_cv_header_stdc=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192
13193 if test $ac_cv_header_stdc = yes; then
13194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197 #include <string.h>
13198
13199 _ACEOF
13200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13201 $EGREP "memchr" >/dev/null 2>&1; then :
13202
13203 else
13204 ac_cv_header_stdc=no
13205 fi
13206 rm -f conftest*
13207
13208 fi
13209
13210 if test $ac_cv_header_stdc = yes; then
13211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 #include <stdlib.h>
13215
13216 _ACEOF
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218 $EGREP "free" >/dev/null 2>&1; then :
13219
13220 else
13221 ac_cv_header_stdc=no
13222 fi
13223 rm -f conftest*
13224
13225 fi
13226
13227 if test $ac_cv_header_stdc = yes; then
13228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13229 if test "$cross_compiling" = yes; then :
13230 :
13231 else
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #include <ctype.h>
13235 #include <stdlib.h>
13236 #if ((' ' & 0x0FF) == 0x020)
13237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13239 #else
13240 # define ISLOWER(c) \
13241 (('a' <= (c) && (c) <= 'i') \
13242 || ('j' <= (c) && (c) <= 'r') \
13243 || ('s' <= (c) && (c) <= 'z'))
13244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13245 #endif
13246
13247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13248 int
13249 main ()
13250 {
13251 int i;
13252 for (i = 0; i < 256; i++)
13253 if (XOR (islower (i), ISLOWER (i))
13254 || toupper (i) != TOUPPER (i))
13255 return 2;
13256 return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_run "$LINENO"; then :
13260
13261 else
13262 ac_cv_header_stdc=no
13263 fi
13264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13265 conftest.$ac_objext conftest.beam conftest.$ac_ext
13266 fi
13267
13268 fi
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13271 $as_echo "$ac_cv_header_stdc" >&6; }
13272 if test $ac_cv_header_stdc = yes; then
13273
13274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13275
13276 fi
13277
13278
13279 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
13280 do :
13281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13283 #ifdef HAVE_SYS_PARAM_H
13284 # include <sys/param.h>
13285 #endif
13286 #ifdef HAVE_SYS_SOCKET_H
13287 # include <sys/socket.h>
13288 #endif
13289
13290 "
13291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13292 cat >>confdefs.h <<_ACEOF
13293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13294 _ACEOF
13295
13296 fi
13297
13298 done
13299
13300
13301 #
13302 # Check for thread local storage
13303 #
13304 for ac_header in threads.h
13305 do :
13306 ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
13307 if test "x$ac_cv_header_threads_h" = xyes; then :
13308 cat >>confdefs.h <<_ACEOF
13309 #define HAVE_THREADS_H 1
13310 _ACEOF
13311
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
13313 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316
13317 #include <threads.h>
13318
13319 int
13320 main ()
13321 {
13322
13323 static thread_local int tls = 0;
13324 return (tls);
13325
13326 ;
13327 return 0;
13328 }
13329
13330 _ACEOF
13331 if ac_fn_c_try_compile "$LINENO"; then :
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334 $as_echo "yes" >&6; }
13335
13336 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
13337
13338
13339 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13340
13341
13342 else
13343
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 $as_echo "no" >&6; }
13346
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349
13350 else
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
13353 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356
13357
13358 int
13359 main ()
13360 {
13361
13362 static __thread int tls = 0;
13363 return (tls);
13364
13365 ;
13366 return 0;
13367 }
13368
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373 $as_echo "yes" >&6; }
13374
13375 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
13376
13377
13378 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13379
13380
13381 else
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385
13386 fi
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388
13389 fi
13390
13391 done
13392
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13395 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13396 if ${ac_cv_c_const+:} false; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13401
13402 int
13403 main ()
13404 {
13405
13406 #ifndef __cplusplus
13407 /* Ultrix mips cc rejects this sort of thing. */
13408 typedef int charset[2];
13409 const charset cs = { 0, 0 };
13410 /* SunOS 4.1.1 cc rejects this. */
13411 char const *const *pcpcc;
13412 char **ppc;
13413 /* NEC SVR4.0.2 mips cc rejects this. */
13414 struct point {int x, y;};
13415 static struct point const zero = {0,0};
13416 /* AIX XL C 1.02.0.0 rejects this.
13417 It does not let you subtract one const X* pointer from another in
13418 an arm of an if-expression whose if-part is not a constant
13419 expression */
13420 const char *g = "string";
13421 pcpcc = &g + (g ? g-g : 0);
13422 /* HPUX 7.0 cc rejects these. */
13423 ++pcpcc;
13424 ppc = (char**) pcpcc;
13425 pcpcc = (char const *const *) ppc;
13426 { /* SCO 3.2v4 cc rejects this sort of thing. */
13427 char tx;
13428 char *t = &tx;
13429 char const *s = 0 ? (char *) 0 : (char const *) 0;
13430
13431 *t++ = 0;
13432 if (s) return 0;
13433 }
13434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13435 int x[] = {25, 17};
13436 const int *foo = &x[0];
13437 ++foo;
13438 }
13439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13440 typedef const int *iptr;
13441 iptr p = 0;
13442 ++p;
13443 }
13444 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13446 struct s { int j; const int *ap[3]; } bx;
13447 struct s *b = &bx; b->j = 5;
13448 }
13449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13450 const int foo = 10;
13451 if (!foo) return 0;
13452 }
13453 return !cs[0] && !zero.x;
13454 #endif
13455
13456 ;
13457 return 0;
13458 }
13459 _ACEOF
13460 if ac_fn_c_try_compile "$LINENO"; then :
13461 ac_cv_c_const=yes
13462 else
13463 ac_cv_c_const=no
13464 fi
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13468 $as_echo "$ac_cv_c_const" >&6; }
13469 if test $ac_cv_c_const = no; then
13470
13471 $as_echo "#define const /**/" >>confdefs.h
13472
13473 fi
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13476 $as_echo_n "checking for inline... " >&6; }
13477 if ${ac_cv_c_inline+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 ac_cv_c_inline=no
13481 for ac_kw in inline __inline__ __inline; do
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 #ifndef __cplusplus
13485 typedef int foo_t;
13486 static $ac_kw foo_t static_foo () {return 0; }
13487 $ac_kw foo_t foo () {return 0; }
13488 #endif
13489
13490 _ACEOF
13491 if ac_fn_c_try_compile "$LINENO"; then :
13492 ac_cv_c_inline=$ac_kw
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 test "$ac_cv_c_inline" != no && break
13496 done
13497
13498 fi
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13500 $as_echo "$ac_cv_c_inline" >&6; }
13501
13502 case $ac_cv_c_inline in
13503 inline | yes) ;;
13504 *)
13505 case $ac_cv_c_inline in
13506 no) ac_val=;;
13507 *) ac_val=$ac_cv_c_inline;;
13508 esac
13509 cat >>confdefs.h <<_ACEOF
13510 #ifndef __cplusplus
13511 #define inline $ac_val
13512 #endif
13513 _ACEOF
13514 ;;
13515 esac
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13518 $as_echo_n "checking for working volatile... " >&6; }
13519 if ${ac_cv_c_volatile+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524
13525 int
13526 main ()
13527 {
13528
13529 volatile int x;
13530 int * volatile y = (int *) 0;
13531 return !x && !y;
13532 ;
13533 return 0;
13534 }
13535 _ACEOF
13536 if ac_fn_c_try_compile "$LINENO"; then :
13537 ac_cv_c_volatile=yes
13538 else
13539 ac_cv_c_volatile=no
13540 fi
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13544 $as_echo "$ac_cv_c_volatile" >&6; }
13545 if test $ac_cv_c_volatile = no; then
13546
13547 $as_echo "#define volatile /**/" >>confdefs.h
13548
13549 fi
13550
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13553 $as_echo_n "checking for flexible array members... " >&6; }
13554 if ${ac_cv_c_flexmember+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <stdlib.h>
13560 #include <stdio.h>
13561 #include <stddef.h>
13562 struct s { int n; double d[]; };
13563 int
13564 main ()
13565 {
13566 int m = getchar ();
13567 struct s *p = malloc (offsetof (struct s, d)
13568 + m * sizeof (double));
13569 p->d[0] = 0.0;
13570 return p->d != (double *) NULL;
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_compile "$LINENO"; then :
13576 ac_cv_c_flexmember=yes
13577 else
13578 ac_cv_c_flexmember=no
13579 fi
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 fi
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13583 $as_echo "$ac_cv_c_flexmember" >&6; }
13584 if test $ac_cv_c_flexmember = yes; then
13585
13586 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13587
13588 else
13589 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13590
13591 fi
13592
13593
13594 #
13595 # Check for yield support on ARM processors
13596 #
13597 case $host in #(
13598 arm*) :
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
13600 $as_echo_n "checking for yield instruction support... " >&6; }
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603
13604 int
13605 main ()
13606 {
13607 __asm__ __volatile__ ("yield")
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_compile "$LINENO"; then :
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13614 $as_echo "yes" >&6; }
13615
13616 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
13617
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 $as_echo "no" >&6; }
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
13623 *) :
13624 ;;
13625 esac
13626
13627 #
13628 # Check for pause support on SPARC processors
13629 #
13630 case $host in #(
13631 sparc*) :
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
13633 $as_echo_n "checking for pause instruction support... " >&6; }
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636
13637 int
13638 main ()
13639 {
13640 __asm__ __volatile__ ("pause")
13641 ;
13642 return 0;
13643 }
13644 _ACEOF
13645 if ac_fn_c_try_compile "$LINENO"; then :
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13647 $as_echo "yes" >&6; }
13648
13649 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
13650
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
13656 *) :
13657 ;;
13658 esac
13659
13660 for ac_func in sysctlbyname
13661 do :
13662 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
13663 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
13664 cat >>confdefs.h <<_ACEOF
13665 #define HAVE_SYSCTLBYNAME 1
13666 _ACEOF
13667
13668 fi
13669 done
13670
13671
13672 #
13673 # Check for the existence of mmap to enable the fast format zones
13674 #
13675 for ac_func in mmap
13676 do :
13677 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13678 if test "x$ac_cv_func_mmap" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_MMAP 1
13681 _ACEOF
13682
13683 fi
13684 done
13685
13686
13687 #
13688 # Older versions of HP/UX don't define seteuid() and setegid()
13689 #
13690 for ac_func in seteuid setresuid
13691 do :
13692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13695 cat >>confdefs.h <<_ACEOF
13696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13697 _ACEOF
13698
13699 fi
13700 done
13701
13702 for ac_func in setegid setresgid
13703 do :
13704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13707 cat >>confdefs.h <<_ACEOF
13708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13709 _ACEOF
13710
13711 fi
13712 done
13713
13714
13715 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13716 if test "x$ac_cv_type_size_t" = xyes; then :
13717
13718 else
13719
13720 cat >>confdefs.h <<_ACEOF
13721 #define size_t unsigned int
13722 _ACEOF
13723
13724 fi
13725
13726 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13727 if test "x$ac_cv_type_ssize_t" = xyes; then :
13728
13729 else
13730
13731 cat >>confdefs.h <<_ACEOF
13732 #define ssize_t int
13733 _ACEOF
13734
13735 fi
13736
13737
13738 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13739 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13740
13741 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13742
13743 else
13744 for ac_type in 'unsigned int' 'unsigned long int' \
13745 'unsigned long long int'; do
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 $ac_includes_default
13749 int
13750 main ()
13751 {
13752 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13753 test_array [0] = 0;
13754 return test_array [0];
13755
13756 ;
13757 return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_c_try_compile "$LINENO"; then :
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define uintptr_t $ac_type
13764 _ACEOF
13765
13766 ac_type=
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 test -z "$ac_type" && break
13770 done
13771 fi
13772
13773
13774
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13776 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13777 if ${ac_cv_header_time+:} false; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 #include <sys/types.h>
13783 #include <sys/time.h>
13784 #include <time.h>
13785
13786 int
13787 main ()
13788 {
13789 if ((struct tm *) 0)
13790 return 0;
13791 ;
13792 return 0;
13793 }
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796 ac_cv_header_time=yes
13797 else
13798 ac_cv_header_time=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13803 $as_echo "$ac_cv_header_time" >&6; }
13804 if test $ac_cv_header_time = yes; then
13805
13806 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13807
13808 fi
13809
13810
13811 #
13812 # check for uname library routine
13813 #
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
13815 $as_echo_n "checking for uname... " >&6; }
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818 #include <sys/utsname.h>
13819 #include <stdio.h>
13820
13821 int
13822 main ()
13823 {
13824
13825 struct utsname uts;
13826 uname(&uts);
13827 printf("running on %s %s %s for %s\n",
13828 uts.sysname, uts.release, uts.version, uts.machine);
13829
13830 ;
13831 return 0;
13832 }
13833 _ACEOF
13834 if ac_fn_c_try_compile "$LINENO"; then :
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13836 $as_echo "yes" >&6; }
13837
13838 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
13839
13840
13841 else
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
13845 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
13846
13847 fi
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849
13850 #
13851 # check for GCC noreturn attribute
13852 #
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
13854 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857
13858 int
13859 main ()
13860 {
13861 void foo() __attribute__((noreturn));
13862 ;
13863 return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13868 $as_echo "yes" >&6; }
13869 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13870 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
13871 else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 $as_echo "no" >&6; }
13874 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13875 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
13879
13880
13881 #
13882 # check if we have kqueue
13883 #
13884 # Check whether --enable-kqueue was given.
13885 if test "${enable_kqueue+set}" = set; then :
13886 enableval=$enable_kqueue;
13887 else
13888 enable_kqueue="yes"
13889 fi
13890
13891
13892 if test "$enable_kqueue" = "yes"; then :
13893 for ac_func in kqueue
13894 do :
13895 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13896 if test "x$ac_cv_func_kqueue" = xyes; then :
13897 cat >>confdefs.h <<_ACEOF
13898 #define HAVE_KQUEUE 1
13899 _ACEOF
13900
13901 fi
13902 done
13903
13904 fi
13905
13906 #
13907 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
13908 # so we need to try running the code, not just test its existence.
13909 #
13910 # Check whether --enable-epoll was given.
13911 if test "${enable_epoll+set}" = set; then :
13912 enableval=$enable_epoll;
13913 else
13914 enable_epoll="yes"
13915 fi
13916
13917
13918 if test "$enable_epoll" = "yes"; then :
13919 for ac_func in epoll_create1
13920 do :
13921 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
13922 if test "x$ac_cv_func_epoll_create1" = xyes; then :
13923 cat >>confdefs.h <<_ACEOF
13924 #define HAVE_EPOLL_CREATE1 1
13925 _ACEOF
13926
13927 fi
13928 done
13929
13930 fi
13931
13932 #
13933 # check if we support /dev/poll
13934 #
13935 # Check whether --enable-devpoll was given.
13936 if test "${enable_devpoll+set}" = set; then :
13937 enableval=$enable_devpoll;
13938 else
13939 enable_devpoll="yes"
13940 fi
13941
13942 if test "$enable_devpoll" = "yes"; then :
13943 for ac_header in sys/devpoll.h devpoll.h
13944 do :
13945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13946 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13948 cat >>confdefs.h <<_ACEOF
13949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13950 _ACEOF
13951
13952 fi
13953
13954 done
13955
13956 fi
13957
13958 #
13959 # Find the machine's endian flavor.
13960 #
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13962 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13963 if ${ac_cv_c_bigendian+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 ac_cv_c_bigendian=unknown
13967 # See if we're dealing with a universal compiler.
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #ifndef __APPLE_CC__
13971 not a universal capable compiler
13972 #endif
13973 typedef int dummy;
13974
13975 _ACEOF
13976 if ac_fn_c_try_compile "$LINENO"; then :
13977
13978 # Check for potential -arch flags. It is not universal unless
13979 # there are at least two -arch flags with different values.
13980 ac_arch=
13981 ac_prev=
13982 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13983 if test -n "$ac_prev"; then
13984 case $ac_word in
13985 i?86 | x86_64 | ppc | ppc64)
13986 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13987 ac_arch=$ac_word
13988 else
13989 ac_cv_c_bigendian=universal
13990 break
13991 fi
13992 ;;
13993 esac
13994 ac_prev=
13995 elif test "x$ac_word" = "x-arch"; then
13996 ac_prev=arch
13997 fi
13998 done
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 if test $ac_cv_c_bigendian = unknown; then
14002 # See if sys/param.h defines the BYTE_ORDER macro.
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 #include <sys/types.h>
14006 #include <sys/param.h>
14007
14008 int
14009 main ()
14010 {
14011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14012 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14013 && LITTLE_ENDIAN)
14014 bogus endian macros
14015 #endif
14016
14017 ;
14018 return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022 # It does; now see whether it defined to BIG_ENDIAN or not.
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14026 #include <sys/param.h>
14027
14028 int
14029 main ()
14030 {
14031 #if BYTE_ORDER != BIG_ENDIAN
14032 not big endian
14033 #endif
14034
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040 ac_cv_c_bigendian=yes
14041 else
14042 ac_cv_c_bigendian=no
14043 fi
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047 fi
14048 if test $ac_cv_c_bigendian = unknown; then
14049 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14052 #include <limits.h>
14053
14054 int
14055 main ()
14056 {
14057 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14058 bogus endian macros
14059 #endif
14060
14061 ;
14062 return 0;
14063 }
14064 _ACEOF
14065 if ac_fn_c_try_compile "$LINENO"; then :
14066 # It does; now see whether it defined to _BIG_ENDIAN or not.
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069 #include <limits.h>
14070
14071 int
14072 main ()
14073 {
14074 #ifndef _BIG_ENDIAN
14075 not big endian
14076 #endif
14077
14078 ;
14079 return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 ac_cv_c_bigendian=yes
14084 else
14085 ac_cv_c_bigendian=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 fi
14091 if test $ac_cv_c_bigendian = unknown; then
14092 # Compile a test program.
14093 if test "$cross_compiling" = yes; then :
14094 # Try to guess by grepping values from an object file.
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 short int ascii_mm[] =
14098 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14099 short int ascii_ii[] =
14100 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14101 int use_ascii (int i) {
14102 return ascii_mm[i] + ascii_ii[i];
14103 }
14104 short int ebcdic_ii[] =
14105 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14106 short int ebcdic_mm[] =
14107 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14108 int use_ebcdic (int i) {
14109 return ebcdic_mm[i] + ebcdic_ii[i];
14110 }
14111 extern int foo;
14112
14113 int
14114 main ()
14115 {
14116 return use_ascii (foo) == use_ebcdic (foo);
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 if ac_fn_c_try_compile "$LINENO"; then :
14122 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14123 ac_cv_c_bigendian=yes
14124 fi
14125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14126 if test "$ac_cv_c_bigendian" = unknown; then
14127 ac_cv_c_bigendian=no
14128 else
14129 # finding both strings is unlikely to happen, but who knows?
14130 ac_cv_c_bigendian=unknown
14131 fi
14132 fi
14133 fi
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 else
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 $ac_includes_default
14139 int
14140 main ()
14141 {
14142
14143 /* Are we little or big endian? From Harbison&Steele. */
14144 union
14145 {
14146 long int l;
14147 char c[sizeof (long int)];
14148 } u;
14149 u.l = 1;
14150 return u.c[sizeof (long int) - 1] == 1;
14151
14152 ;
14153 return 0;
14154 }
14155 _ACEOF
14156 if ac_fn_c_try_run "$LINENO"; then :
14157 ac_cv_c_bigendian=no
14158 else
14159 ac_cv_c_bigendian=yes
14160 fi
14161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14162 conftest.$ac_objext conftest.beam conftest.$ac_ext
14163 fi
14164
14165 fi
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14168 $as_echo "$ac_cv_c_bigendian" >&6; }
14169 case $ac_cv_c_bigendian in #(
14170 yes)
14171 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14172 ;; #(
14173 no)
14174 ;; #(
14175 universal)
14176
14177 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14178
14179 ;; #(
14180 *)
14181 as_fn_error $? "unknown endianness
14182 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14183 esac
14184
14185
14186 #
14187 # GeoIP support?
14188 #
14189 geoip2_default="no"
14190
14191 # Check whether --with-geoip was given.
14192 if test "${with_geoip+set}" = set; then :
14193 withval=$with_geoip;
14194 use_geoip="$withval"
14195 geoip2_default="no"
14196
14197 else
14198 use_geoip="no"
14199 fi
14200
14201
14202 # Check whether --with-geoip2 was given.
14203 if test "${with_geoip2+set}" = set; then :
14204 withval=$with_geoip2;
14205 else
14206 with_geoip2="$geoip2_default"
14207 fi
14208
14209
14210 # specifying both --with-geoip and --with-geoip2 is an error.
14211 if test "no" != "$with_geoip2" && test "no" != "$use_geoip"; then :
14212 as_fn_error $? "--with-geoip and --with-geoip2 are incompatible" "$LINENO" 5
14213 fi
14214
14215 GEOIP2LINKSRCS=
14216 GEOIP2LINKOBJS=
14217 case $with_geoip2 in #(
14218 no) :
14219 ;; #(
14220 auto) :
14221
14222 pkg_failed=no
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14224 $as_echo_n "checking for libmaxminddb... " >&6; }
14225
14226 if test -n "$MAXMINDDB_CFLAGS"; then
14227 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14228 elif test -n "$PKG_CONFIG"; then
14229 if test -n "$PKG_CONFIG" && \
14230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14231 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234 test $ac_status = 0; }; then
14235 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14236 test "x$?" != "x0" && pkg_failed=yes
14237 else
14238 pkg_failed=yes
14239 fi
14240 else
14241 pkg_failed=untried
14242 fi
14243 if test -n "$MAXMINDDB_LIBS"; then
14244 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14245 elif test -n "$PKG_CONFIG"; then
14246 if test -n "$PKG_CONFIG" && \
14247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14248 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14249 ac_status=$?
14250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; }; then
14252 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14253 test "x$?" != "x0" && pkg_failed=yes
14254 else
14255 pkg_failed=yes
14256 fi
14257 else
14258 pkg_failed=untried
14259 fi
14260
14261
14262
14263 if test $pkg_failed = yes; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14266
14267 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14268 _pkg_short_errors_supported=yes
14269 else
14270 _pkg_short_errors_supported=no
14271 fi
14272 if test $_pkg_short_errors_supported = yes; then
14273 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14274 else
14275 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14276 fi
14277 # Put the nasty error message in config.log where it belongs
14278 echo "$MAXMINDDB_PKG_ERRORS" >&5
14279
14280 :
14281 elif test $pkg_failed = untried; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14284 :
14285 else
14286 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14287 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14289 $as_echo "yes" >&6; }
14290
14291 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14292
14293
14294 if test -n "$MAXMINDDB_PREFIX"; then
14295 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14296 elif test -n "$PKG_CONFIG"; then
14297 if test -n "$PKG_CONFIG" && \
14298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14299 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14300 ac_status=$?
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; then
14303 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14304 test "x$?" != "x0" && pkg_failed=yes
14305 else
14306 pkg_failed=yes
14307 fi
14308 else
14309 pkg_failed=untried
14310 fi
14311 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14312
14313 if test "x$MAXMINDDB_PREFIX" = x""; then :
14314 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14315 fi
14316 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14317 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14318
14319 fi ;; #(
14320 yes) :
14321
14322 pkg_failed=no
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14324 $as_echo_n "checking for libmaxminddb... " >&6; }
14325
14326 if test -n "$MAXMINDDB_CFLAGS"; then
14327 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14328 elif test -n "$PKG_CONFIG"; then
14329 if test -n "$PKG_CONFIG" && \
14330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14331 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14332 ac_status=$?
14333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14334 test $ac_status = 0; }; then
14335 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14336 test "x$?" != "x0" && pkg_failed=yes
14337 else
14338 pkg_failed=yes
14339 fi
14340 else
14341 pkg_failed=untried
14342 fi
14343 if test -n "$MAXMINDDB_LIBS"; then
14344 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14345 elif test -n "$PKG_CONFIG"; then
14346 if test -n "$PKG_CONFIG" && \
14347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14348 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14349 ac_status=$?
14350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14351 test $ac_status = 0; }; then
14352 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14353 test "x$?" != "x0" && pkg_failed=yes
14354 else
14355 pkg_failed=yes
14356 fi
14357 else
14358 pkg_failed=untried
14359 fi
14360
14361
14362
14363 if test $pkg_failed = yes; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14366
14367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14368 _pkg_short_errors_supported=yes
14369 else
14370 _pkg_short_errors_supported=no
14371 fi
14372 if test $_pkg_short_errors_supported = yes; then
14373 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14374 else
14375 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14376 fi
14377 # Put the nasty error message in config.log where it belongs
14378 echo "$MAXMINDDB_PKG_ERRORS" >&5
14379
14380 as_fn_error $? "Package requirements (libmaxminddb) were not met:
14381
14382 $MAXMINDDB_PKG_ERRORS
14383
14384 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14385 installed software in a non-standard prefix.
14386
14387 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
14388 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
14389 See the pkg-config man page for more details." "$LINENO" 5
14390 elif test $pkg_failed = untried; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14395 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14396 is in your PATH or set the PKG_CONFIG environment variable to the full
14397 path to pkg-config.
14398
14399 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
14400 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
14401 See the pkg-config man page for more details.
14402
14403 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14404 See \`config.log' for more details" "$LINENO" 5; }
14405 else
14406 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14407 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14409 $as_echo "yes" >&6; }
14410
14411 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14412
14413
14414 if test -n "$MAXMINDDB_PREFIX"; then
14415 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14416 elif test -n "$PKG_CONFIG"; then
14417 if test -n "$PKG_CONFIG" && \
14418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14419 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14420 ac_status=$?
14421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14422 test $ac_status = 0; }; then
14423 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14424 test "x$?" != "x0" && pkg_failed=yes
14425 else
14426 pkg_failed=yes
14427 fi
14428 else
14429 pkg_failed=untried
14430 fi
14431 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14432
14433 if test "x$MAXMINDDB_PREFIX" = x""; then :
14434 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14435 fi
14436 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14437 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14438
14439 fi ;; #(
14440 *) :
14441 # default
14442
14443
14444 CCASFLAGS_geoip2_ax_save_flags=$CCASFLAGS
14445
14446
14447
14448 CFLAGS_geoip2_ax_save_flags=$CFLAGS
14449
14450
14451
14452 CPPFLAGS_geoip2_ax_save_flags=$CPPFLAGS
14453
14454
14455
14456 CXXFLAGS_geoip2_ax_save_flags=$CXXFLAGS
14457
14458
14459
14460 ERLCFLAGS_geoip2_ax_save_flags=$ERLCFLAGS
14461
14462
14463
14464 FCFLAGS_geoip2_ax_save_flags=$FCFLAGS
14465
14466
14467
14468 FCLIBS_geoip2_ax_save_flags=$FCLIBS
14469
14470
14471
14472 FFLAGS_geoip2_ax_save_flags=$FFLAGS
14473
14474
14475
14476 FLIBS_geoip2_ax_save_flags=$FLIBS
14477
14478
14479
14480 GCJFLAGS_geoip2_ax_save_flags=$GCJFLAGS
14481
14482
14483
14484 JAVACFLAGS_geoip2_ax_save_flags=$JAVACFLAGS
14485
14486
14487
14488 LDFLAGS_geoip2_ax_save_flags=$LDFLAGS
14489
14490
14491
14492 LIBS_geoip2_ax_save_flags=$LIBS
14493
14494
14495
14496 OBJCFLAGS_geoip2_ax_save_flags=$OBJCFLAGS
14497
14498
14499
14500 OBJCXXFLAGS_geoip2_ax_save_flags=$OBJCXXFLAGS
14501
14502
14503
14504 UPCFLAGS_geoip2_ax_save_flags=$UPCFLAGS
14505
14506
14507
14508 VALAFLAGS_geoip2_ax_save_flags=$VALAFLAGS
14509
14510
14511
14512 MAXMINDDB_CFLAGS="-I$with_geoip2/include"
14513 MAXMINDDB_LIBS="-L$with_geoip2/lib"
14514 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
14515 LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
14517 $as_echo_n "checking for library containing MMDB_open... " >&6; }
14518 if ${ac_cv_search_MMDB_open+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 ac_func_search_save_LIBS=$LIBS
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524
14525 /* Override any GCC internal prototype to avoid an error.
14526 Use char because int might match the return type of a GCC
14527 builtin and then its argument prototype would still apply. */
14528 #ifdef __cplusplus
14529 extern "C"
14530 #endif
14531 char MMDB_open ();
14532 int
14533 main ()
14534 {
14535 return MMDB_open ();
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 for ac_lib in '' maxminddb; do
14541 if test -z "$ac_lib"; then
14542 ac_res="none required"
14543 else
14544 ac_res=-l$ac_lib
14545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14546 fi
14547 if ac_fn_c_try_link "$LINENO"; then :
14548 ac_cv_search_MMDB_open=$ac_res
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext
14552 if ${ac_cv_search_MMDB_open+:} false; then :
14553 break
14554 fi
14555 done
14556 if ${ac_cv_search_MMDB_open+:} false; then :
14557
14558 else
14559 ac_cv_search_MMDB_open=no
14560 fi
14561 rm conftest.$ac_ext
14562 LIBS=$ac_func_search_save_LIBS
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
14565 $as_echo "$ac_cv_search_MMDB_open" >&6; }
14566 ac_res=$ac_cv_search_MMDB_open
14567 if test "$ac_res" != no; then :
14568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14569
14570 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14571
14572 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14573 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14574 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_mmdb_open"
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&5
14576 $as_echo "$as_me: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&6;}
14577 eval MAXMINDDB_PREFIX=\$$with_geoip2
14578
14579 else
14580 as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
14581 fi
14582
14583
14584 CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
14585
14586
14587 CFLAGS=$CFLAGS_maxminddb_ax_save_flags
14588
14589
14590 CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
14591
14592
14593 CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
14594
14595
14596 ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
14597
14598
14599 FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
14600
14601
14602 FCLIBS=$FCLIBS_maxminddb_ax_save_flags
14603
14604
14605 FFLAGS=$FFLAGS_maxminddb_ax_save_flags
14606
14607
14608 FLIBS=$FLIBS_maxminddb_ax_save_flags
14609
14610
14611 GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
14612
14613
14614 JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
14615
14616
14617 LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
14618
14619
14620 LIBS=$LIBS_maxminddb_ax_save_flags
14621
14622
14623 OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
14624
14625
14626 OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
14627
14628
14629 UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
14630
14631
14632 VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
14633
14634
14635
14636 ;;
14637 esac
14638
14639
14640
14641
14642
14643
14644 GEOIPLINKSRCS=
14645 GEOIPLINKOBJS=
14646 if test "yes" = "$use_geoip"
14647 then
14648 for d in /usr /usr/local /opt/local
14649 do
14650 if test -f $d/include/GeoIP.h
14651 then
14652 use_geoip=$d
14653 break
14654 fi
14655 done
14656 fi
14657
14658 case "$use_geoip" in
14659 no|'')
14660 ;;
14661 *)
14662 if test -d "$use_geoip" -o -L "$use_geoip"
14663 then
14664 CFLAGS="$CFLAGS -I$use_geoip/include"
14665 CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
14666 LIBS="$LIBS -L$use_geoip/lib"
14667 case "$host_os" in
14668 netbsd*|openbsd*|solaris*)
14669 LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
14670 ;;
14671 esac
14672 elif test "yes" = "$use_geoip"
14673 then
14674 as_fn_error $? "GeoIP path not found" "$LINENO" 5
14675 else
14676 as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
14677 fi
14678 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14679 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14680
14681 else
14682 as_fn_error $? "GeoIP header file not found" "$LINENO" 5
14683
14684 fi
14685
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
14688 $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
14689 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 ac_func_search_save_LIBS=$LIBS
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695
14696 /* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply. */
14699 #ifdef __cplusplus
14700 extern "C"
14701 #endif
14702 char GeoIP_id_by_addr_gl ();
14703 int
14704 main ()
14705 {
14706 return GeoIP_id_by_addr_gl ();
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 for ac_lib in '' GeoIP; do
14712 if test -z "$ac_lib"; then
14713 ac_res="none required"
14714 else
14715 ac_res=-l$ac_lib
14716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14717 fi
14718 if ac_fn_c_try_link "$LINENO"; then :
14719 ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext
14723 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14724 break
14725 fi
14726 done
14727 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14728
14729 else
14730 ac_cv_search_GeoIP_id_by_addr_gl=no
14731 fi
14732 rm conftest.$ac_ext
14733 LIBS=$ac_func_search_save_LIBS
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
14736 $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
14737 ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
14738 if test "$ac_res" != no; then :
14739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14740
14741 else
14742 as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
14743
14744 fi
14745
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
14747 $as_echo_n "checking for library containing fabsf... " >&6; }
14748 if ${ac_cv_search_fabsf+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 ac_func_search_save_LIBS=$LIBS
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754
14755 /* Override any GCC internal prototype to avoid an error.
14756 Use char because int might match the return type of a GCC
14757 builtin and then its argument prototype would still apply. */
14758 #ifdef __cplusplus
14759 extern "C"
14760 #endif
14761 char fabsf ();
14762 int
14763 main ()
14764 {
14765 return fabsf ();
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 for ac_lib in '' m; do
14771 if test -z "$ac_lib"; then
14772 ac_res="none required"
14773 else
14774 ac_res=-l$ac_lib
14775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14776 fi
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 ac_cv_search_fabsf=$ac_res
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext
14782 if ${ac_cv_search_fabsf+:} false; then :
14783 break
14784 fi
14785 done
14786 if ${ac_cv_search_fabsf+:} false; then :
14787
14788 else
14789 ac_cv_search_fabsf=no
14790 fi
14791 rm conftest.$ac_ext
14792 LIBS=$ac_func_search_save_LIBS
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
14795 $as_echo "$ac_cv_search_fabsf" >&6; }
14796 ac_res=$ac_cv_search_fabsf
14797 if test "$ac_res" != no; then :
14798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14799
14800 else
14801 as_fn_error $? "Math library not found" "$LINENO" 5
14802
14803 fi
14804
14805
14806 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
14807
14808 GEOIPLINKSRCS='${GEOIPLINKSRCS}'
14809 GEOIPLINKOBJS='${GEOIPLINKOBJS}'
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
14811 $as_echo_n "checking for GeoIP support... " >&6; }
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14813 $as_echo "yes" >&6; }
14814
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
14816 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819
14820 #include <GeoIP.h>
14821 #include <netinet/in.h>
14822
14823 int
14824 main ()
14825 {
14826
14827 struct in6_addr in6;
14828 GeoIP_country_name_by_ipnum_v6(NULL, in6);
14829
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_compile "$LINENO"; then :
14835
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14837 $as_echo "yes" >&6; }
14838
14839 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
14840
14841
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14845
14846 fi
14847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14848
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
14850 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853
14854 #include <GeoIP.h>
14855 #include <GeoIPCity.h>
14856 #include <netinet/in.h>
14857
14858 int
14859 main ()
14860 {
14861
14862 struct in6_addr in6;
14863 int i = GEOIP_CITY_EDITION_REV0_V6;
14864 GeoIP_record_by_ipnum_v6(NULL, in6);
14865
14866 ;
14867 return 0;
14868 }
14869 _ACEOF
14870 if ac_fn_c_try_compile "$LINENO"; then :
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14873 $as_echo "yes" >&6; }
14874
14875 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
14876
14877
14878 else
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880 $as_echo "no" >&6; }
14881
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884 ;;
14885 esac
14886
14887
14888
14889 #
14890 # Do we have arc4random(), etc ?
14891 #
14892 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
14893 do :
14894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14896 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14897 cat >>confdefs.h <<_ACEOF
14898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14899 _ACEOF
14900
14901 fi
14902 done
14903
14904
14905
14906
14907
14908
14909 ac_ext=c
14910 ac_cpp='$CPP $CPPFLAGS'
14911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14914
14915 ax_pthread_ok=no
14916
14917 # We used to check for pthread.h first, but this fails if pthread.h
14918 # requires special compiler flags (e.g. on Tru64 or Sequent).
14919 # It gets checked for in the link test anyway.
14920
14921 # First of all, check if the user has set any of the PTHREAD_LIBS,
14922 # etcetera environment variables, and if threads linking works using
14923 # them:
14924 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14925 ax_pthread_save_CC="$CC"
14926 ax_pthread_save_CFLAGS="$CFLAGS"
14927 ax_pthread_save_LIBS="$LIBS"
14928 if test "x$PTHREAD_CC" != "x"; then :
14929 CC="$PTHREAD_CC"
14930 fi
14931 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14932 LIBS="$PTHREAD_LIBS $LIBS"
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14934 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937
14938 /* Override any GCC internal prototype to avoid an error.
14939 Use char because int might match the return type of a GCC
14940 builtin and then its argument prototype would still apply. */
14941 #ifdef __cplusplus
14942 extern "C"
14943 #endif
14944 char pthread_join ();
14945 int
14946 main ()
14947 {
14948 return pthread_join ();
14949 ;
14950 return 0;
14951 }
14952 _ACEOF
14953 if ac_fn_c_try_link "$LINENO"; then :
14954 ax_pthread_ok=yes
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14959 $as_echo "$ax_pthread_ok" >&6; }
14960 if test "x$ax_pthread_ok" = "xno"; then
14961 PTHREAD_LIBS=""
14962 PTHREAD_CFLAGS=""
14963 fi
14964 CC="$ax_pthread_save_CC"
14965 CFLAGS="$ax_pthread_save_CFLAGS"
14966 LIBS="$ax_pthread_save_LIBS"
14967 fi
14968
14969 # We must check for the threads library under a number of different
14970 # names; the ordering is very important because some systems
14971 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14972 # libraries is broken (non-POSIX).
14973
14974 # Create a list of thread flags to try. Items starting with a "-" are
14975 # C compiler flags, and other items are library names, except for "none"
14976 # which indicates that we try without any flags at all, and "pthread-config"
14977 # which is a program returning the flags for the Pth emulation library.
14978
14979 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14980
14981 # The ordering *is* (sometimes) important. Some notes on the
14982 # individual items follow:
14983
14984 # pthreads: AIX (must check this before -lpthread)
14985 # none: in case threads are in libc; should be tried before -Kthread and
14986 # other compiler flags to prevent continual compiler warnings
14987 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14988 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14989 # (Note: HP C rejects this with "bad form for `-t' option")
14990 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14991 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14992 # doesn't hurt to check since this sometimes defines pthreads and
14993 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14994 # is present but should not be used directly; and before -mthreads,
14995 # because the compiler interprets this as "-mt" + "-hreads")
14996 # -mthreads: Mingw32/gcc, Lynx/gcc
14997 # pthread: Linux, etcetera
14998 # --thread-safe: KAI C++
14999 # pthread-config: use pthread-config program (for GNU Pth library)
15000
15001 case $host_os in
15002
15003 freebsd*)
15004
15005 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15006 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15007
15008 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15009 ;;
15010
15011 hpux*)
15012
15013 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15014 # multi-threading and also sets -lpthread."
15015
15016 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15017 ;;
15018
15019 openedition*)
15020
15021 # IBM z/OS requires a feature-test macro to be defined in order to
15022 # enable POSIX threads at all, so give the user a hint if this is
15023 # not set. (We don't define these ourselves, as they can affect
15024 # other portions of the system API in unpredictable ways.)
15025
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028
15029 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15030 AX_PTHREAD_ZOS_MISSING
15031 # endif
15032
15033 _ACEOF
15034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15035 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15037 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15038 fi
15039 rm -f conftest*
15040
15041 ;;
15042
15043 solaris*)
15044
15045 # On Solaris (at least, for some versions), libc contains stubbed
15046 # (non-functional) versions of the pthreads routines, so link-based
15047 # tests will erroneously succeed. (N.B.: The stubs are missing
15048 # pthread_cleanup_push, or rather a function called by this macro,
15049 # so we could check for that, but who knows whether they'll stub
15050 # that too in a future libc.) So we'll check first for the
15051 # standard Solaris way of linking pthreads (-mt -lpthread).
15052
15053 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15054 ;;
15055 esac
15056
15057 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15058
15059 if test "x$GCC" = "xyes"; then :
15060 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15061 fi
15062
15063 # The presence of a feature test macro requesting re-entrant function
15064 # definitions is, on some systems, a strong hint that pthreads support is
15065 # correctly enabled
15066
15067 case $host_os in
15068 darwin* | hpux* | linux* | osf* | solaris*)
15069 ax_pthread_check_macro="_REENTRANT"
15070 ;;
15071
15072 aix*)
15073 ax_pthread_check_macro="_THREAD_SAFE"
15074 ;;
15075
15076 *)
15077 ax_pthread_check_macro="--"
15078 ;;
15079 esac
15080 if test "x$ax_pthread_check_macro" = "x--"; then :
15081 ax_pthread_check_cond=0
15082 else
15083 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15084 fi
15085
15086 # Are we compiling with Clang?
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15089 $as_echo_n "checking whether $CC is Clang... " >&6; }
15090 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 ax_cv_PTHREAD_CLANG=no
15094 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15095 if test "x$GCC" = "xyes"; then
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15099 # if defined(__clang__) && defined(__llvm__)
15100 AX_PTHREAD_CC_IS_CLANG
15101 # endif
15102
15103 _ACEOF
15104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15105 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15106 ax_cv_PTHREAD_CLANG=yes
15107 fi
15108 rm -f conftest*
15109
15110 fi
15111
15112 fi
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15114 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15115 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15116
15117 ax_pthread_clang_warning=no
15118
15119 # Clang needs special handling, because older versions handle the -pthread
15120 # option in a rather... idiosyncratic way
15121
15122 if test "x$ax_pthread_clang" = "xyes"; then
15123
15124 # Clang takes -pthread; it has never supported any other flag
15125
15126 # (Note 1: This will need to be revisited if a system that Clang
15127 # supports has POSIX threads in a separate library. This tends not
15128 # to be the way of modern systems, but it's conceivable.)
15129
15130 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15131 # to get POSIX threads support; the API is always present and
15132 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15133 # -pthread does define _REENTRANT, and while the Darwin headers
15134 # ignore this macro, third-party headers might not.)
15135
15136 PTHREAD_CFLAGS="-pthread"
15137 PTHREAD_LIBS=
15138
15139 ax_pthread_ok=yes
15140
15141 # However, older versions of Clang make a point of warning the user
15142 # that, in an invocation where only linking and no compilation is
15143 # taking place, the -pthread option has no effect ("argument unused
15144 # during compilation"). They expect -pthread to be passed in only
15145 # when source code is being compiled.
15146 #
15147 # Problem is, this is at odds with the way Automake and most other
15148 # C build frameworks function, which is that the same flags used in
15149 # compilation (CFLAGS) are also used in linking. Many systems
15150 # supported by AX_PTHREAD require exactly this for POSIX threads
15151 # support, and in fact it is often not straightforward to specify a
15152 # flag that is used only in the compilation phase and not in
15153 # linking. Such a scenario is extremely rare in practice.
15154 #
15155 # Even though use of the -pthread flag in linking would only print
15156 # a warning, this can be a nuisance for well-run software projects
15157 # that build with -Werror. So if the active version of Clang has
15158 # this misfeature, we search for an option to squash it.
15159
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15161 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15162 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
15163 $as_echo_n "(cached) " >&6
15164 else
15165 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15166 # Create an alternate version of $ac_link that compiles and
15167 # links in two steps (.c -> .o, .o -> exe) instead of one
15168 # (.c -> exe), because the warning occurs only in the second
15169 # step
15170 ax_pthread_save_ac_link="$ac_link"
15171 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15172 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
15173 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15174 ax_pthread_save_CFLAGS="$CFLAGS"
15175 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15176 if test "x$ax_pthread_try" = "xunknown"; then :
15177 break
15178 fi
15179 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15180 ac_link="$ax_pthread_save_ac_link"
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 int main(void){return 0;}
15184 _ACEOF
15185 if ac_fn_c_try_link "$LINENO"; then :
15186 ac_link="$ax_pthread_2step_ac_link"
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 int main(void){return 0;}
15190 _ACEOF
15191 if ac_fn_c_try_link "$LINENO"; then :
15192 break
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 done
15201 ac_link="$ax_pthread_save_ac_link"
15202 CFLAGS="$ax_pthread_save_CFLAGS"
15203 if test "x$ax_pthread_try" = "x"; then :
15204 ax_pthread_try=no
15205 fi
15206 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15207
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15210 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15211
15212 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15213 no | unknown) ;;
15214 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15215 esac
15216
15217 fi # $ax_pthread_clang = yes
15218
15219 if test "x$ax_pthread_ok" = "xno"; then
15220 for ax_pthread_try_flag in $ax_pthread_flags; do
15221
15222 case $ax_pthread_try_flag in
15223 none)
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15225 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15226 ;;
15227
15228 -mt,pthread)
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
15230 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
15231 PTHREAD_CFLAGS="-mt"
15232 PTHREAD_LIBS="-lpthread"
15233 ;;
15234
15235 -*)
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15237 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15238 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15239 ;;
15240
15241 pthread-config)
15242 # Extract the first word of "pthread-config", so it can be a program name with args.
15243 set dummy pthread-config; ac_word=$2
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15245 $as_echo_n "checking for $ac_word... " >&6; }
15246 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15249 if test -n "$ax_pthread_config"; then
15250 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15251 else
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15254 do
15255 IFS=$as_save_IFS
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_prog_ax_pthread_config="yes"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15261 break 2
15262 fi
15263 done
15264 done
15265 IFS=$as_save_IFS
15266
15267 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15268 fi
15269 fi
15270 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15271 if test -n "$ax_pthread_config"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15273 $as_echo "$ax_pthread_config" >&6; }
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15277 fi
15278
15279
15280 if test "x$ax_pthread_config" = "xno"; then :
15281 continue
15282 fi
15283 PTHREAD_CFLAGS="`pthread-config --cflags`"
15284 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15285 ;;
15286
15287 *)
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15289 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15290 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15291 ;;
15292 esac
15293
15294 ax_pthread_save_CFLAGS="$CFLAGS"
15295 ax_pthread_save_LIBS="$LIBS"
15296 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15297 LIBS="$PTHREAD_LIBS $LIBS"
15298
15299 # Check for various functions. We must include pthread.h,
15300 # since some functions may be macros. (On the Sequent, we
15301 # need a special flag -Kthread to make this header compile.)
15302 # We check for pthread_join because it is in -lpthread on IRIX
15303 # while pthread_create is in libc. We check for pthread_attr_init
15304 # due to DEC craziness with -lpthreads. We check for
15305 # pthread_cleanup_push because it is one of the few pthread
15306 # functions on Solaris that doesn't have a non-functional libc stub.
15307 # We try pthread_create on general principles.
15308
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include <pthread.h>
15312 # if $ax_pthread_check_cond
15313 # error "$ax_pthread_check_macro must be defined"
15314 # endif
15315 static void routine(void *a) { a = 0; }
15316 static void *start_routine(void *a) { return a; }
15317 int
15318 main ()
15319 {
15320 pthread_t th; pthread_attr_t attr;
15321 pthread_create(&th, 0, start_routine, 0);
15322 pthread_join(th, 0);
15323 pthread_attr_init(&attr);
15324 pthread_cleanup_push(routine, 0);
15325 pthread_cleanup_pop(0) /* ; */
15326 ;
15327 return 0;
15328 }
15329 _ACEOF
15330 if ac_fn_c_try_link "$LINENO"; then :
15331 ax_pthread_ok=yes
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15335
15336 CFLAGS="$ax_pthread_save_CFLAGS"
15337 LIBS="$ax_pthread_save_LIBS"
15338
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15340 $as_echo "$ax_pthread_ok" >&6; }
15341 if test "x$ax_pthread_ok" = "xyes"; then :
15342 break
15343 fi
15344
15345 PTHREAD_LIBS=""
15346 PTHREAD_CFLAGS=""
15347 done
15348 fi
15349
15350 # Various other checks:
15351 if test "x$ax_pthread_ok" = "xyes"; then
15352 ax_pthread_save_CFLAGS="$CFLAGS"
15353 ax_pthread_save_LIBS="$LIBS"
15354 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15355 LIBS="$PTHREAD_LIBS $LIBS"
15356
15357 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15359 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15360 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15364 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367 #include <pthread.h>
15368 int
15369 main ()
15370 {
15371 int attr = $ax_pthread_attr; return attr /* ; */
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 if ac_fn_c_try_link "$LINENO"; then :
15377 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 done
15382
15383 fi
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15385 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15386 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15387 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15388 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
15389
15390 cat >>confdefs.h <<_ACEOF
15391 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
15392 _ACEOF
15393
15394 ax_pthread_joinable_attr_defined=yes
15395
15396 fi
15397
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15399 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
15400 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 ax_cv_PTHREAD_SPECIAL_FLAGS=no
15404 case $host_os in
15405 solaris*)
15406 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15407 ;;
15408 esac
15409
15410 fi
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15412 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15413 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15414 test "x$ax_pthread_special_flags_added" != "xyes"; then :
15415 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15416 ax_pthread_special_flags_added=yes
15417 fi
15418
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15420 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15421 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15422 $as_echo_n "(cached) " >&6
15423 else
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 #include <pthread.h>
15427 int
15428 main ()
15429 {
15430 int i = PTHREAD_PRIO_INHERIT;
15431 ;
15432 return 0;
15433 }
15434 _ACEOF
15435 if ac_fn_c_try_link "$LINENO"; then :
15436 ax_cv_PTHREAD_PRIO_INHERIT=yes
15437 else
15438 ax_cv_PTHREAD_PRIO_INHERIT=no
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442
15443 fi
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15445 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15446 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15447 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
15448
15449 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15450
15451 ax_pthread_prio_inherit_defined=yes
15452
15453 fi
15454
15455 CFLAGS="$ax_pthread_save_CFLAGS"
15456 LIBS="$ax_pthread_save_LIBS"
15457
15458 # More AIX lossage: compile with *_r variant
15459 if test "x$GCC" != "xyes"; then
15460 case $host_os in
15461 aix*)
15462 case "x/$CC" in #(
15463 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15464 #handle absolute path differently from PATH based program lookup
15465 case "x$CC" in #(
15466 x/*) :
15467 if as_fn_executable_p ${CC}_r; then :
15468 PTHREAD_CC="${CC}_r"
15469 fi ;; #(
15470 *) :
15471 for ac_prog in ${CC}_r
15472 do
15473 # Extract the first word of "$ac_prog", so it can be a program name with args.
15474 set dummy $ac_prog; ac_word=$2
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15476 $as_echo_n "checking for $ac_word... " >&6; }
15477 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480 if test -n "$PTHREAD_CC"; then
15481 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15482 else
15483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $PATH
15485 do
15486 IFS=$as_save_IFS
15487 test -z "$as_dir" && as_dir=.
15488 for ac_exec_ext in '' $ac_executable_extensions; do
15489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15490 ac_cv_prog_PTHREAD_CC="$ac_prog"
15491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15492 break 2
15493 fi
15494 done
15495 done
15496 IFS=$as_save_IFS
15497
15498 fi
15499 fi
15500 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15501 if test -n "$PTHREAD_CC"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15503 $as_echo "$PTHREAD_CC" >&6; }
15504 else
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15506 $as_echo "no" >&6; }
15507 fi
15508
15509
15510 test -n "$PTHREAD_CC" && break
15511 done
15512 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15513 ;;
15514 esac ;; #(
15515 *) :
15516 ;;
15517 esac
15518 ;;
15519 esac
15520 fi
15521 fi
15522
15523 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15524
15525
15526
15527
15528
15529 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15530 if test "x$ax_pthread_ok" = "xyes"; then
15531
15532 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15533
15534 :
15535 else
15536 ax_pthread_ok=no
15537
15538 fi
15539 ac_ext=c
15540 ac_cpp='$CPP $CPPFLAGS'
15541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15544
15545
15546
15547 LIBS="$PTHREAD_LIBS $LIBS"
15548 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15549 CC="$PTHREAD_CC"
15550
15551 #
15552 # We'd like to use sigwait() too
15553 #
15554 for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
15555 do :
15556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15557 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15558 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15559 cat >>confdefs.h <<_ACEOF
15560 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15561 _ACEOF
15562
15563 fi
15564 done
15565
15566
15567
15568 # Check whether --with-locktype was given.
15569 if test "${with_locktype+set}" = set; then :
15570 withval=$with_locktype;
15571 else
15572 with_locktype="adaptive"
15573 fi
15574
15575
15576 case $with_locktype in #(
15577 adaptive) :
15578
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
15580 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583
15584 #ifndef _GNU_SOURCE
15585 #define _GNU_SOURCE
15586 #endif
15587 #include <pthread.h>
15588
15589 int
15590 main ()
15591 {
15592
15593 return (PTHREAD_MUTEX_ADAPTIVE_NP);
15594
15595
15596 ;
15597 return 0;
15598 }
15599 _ACEOF
15600 if ac_fn_c_try_compile "$LINENO"; then :
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
15602 $as_echo "using adaptive lock type" >&6; }
15603
15604 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
15605
15606 else
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15608 $as_echo "using standard lock type" >&6; }
15609
15610 fi
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
15612 standard) :
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15614 $as_echo "using standard lock type" >&6; } ;; #(
15615 *) :
15616 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
15617 ;;
15618 esac
15619
15620 for ac_header in sched.h
15621 do :
15622 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15623 if test "x$ac_cv_header_sched_h" = xyes; then :
15624 cat >>confdefs.h <<_ACEOF
15625 #define HAVE_SCHED_H 1
15626 _ACEOF
15627
15628 fi
15629
15630 done
15631
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15634 $as_echo_n "checking for library containing sched_yield... " >&6; }
15635 if ${ac_cv_search_sched_yield+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 ac_func_search_save_LIBS=$LIBS
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641
15642 /* Override any GCC internal prototype to avoid an error.
15643 Use char because int might match the return type of a GCC
15644 builtin and then its argument prototype would still apply. */
15645 #ifdef __cplusplus
15646 extern "C"
15647 #endif
15648 char sched_yield ();
15649 int
15650 main ()
15651 {
15652 return sched_yield ();
15653 ;
15654 return 0;
15655 }
15656 _ACEOF
15657 for ac_lib in '' rt; do
15658 if test -z "$ac_lib"; then
15659 ac_res="none required"
15660 else
15661 ac_res=-l$ac_lib
15662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15663 fi
15664 if ac_fn_c_try_link "$LINENO"; then :
15665 ac_cv_search_sched_yield=$ac_res
15666 fi
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext
15669 if ${ac_cv_search_sched_yield+:} false; then :
15670 break
15671 fi
15672 done
15673 if ${ac_cv_search_sched_yield+:} false; then :
15674
15675 else
15676 ac_cv_search_sched_yield=no
15677 fi
15678 rm conftest.$ac_ext
15679 LIBS=$ac_func_search_save_LIBS
15680 fi
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15682 $as_echo "$ac_cv_search_sched_yield" >&6; }
15683 ac_res=$ac_cv_search_sched_yield
15684 if test "$ac_res" != no; then :
15685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15686
15687 fi
15688
15689 for ac_func in sched_yield pthread_yield pthread_yield_np
15690 do :
15691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15692 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15693 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15694 cat >>confdefs.h <<_ACEOF
15695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15696 _ACEOF
15697
15698 fi
15699 done
15700
15701
15702 for ac_header in sys/cpuset.h
15703 do :
15704 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
15705 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
15706 cat >>confdefs.h <<_ACEOF
15707 #define HAVE_SYS_CPUSET_H 1
15708 _ACEOF
15709
15710 fi
15711
15712 done
15713
15714 for ac_header in sys/procset.h
15715 do :
15716 ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
15717 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
15718 cat >>confdefs.h <<_ACEOF
15719 #define HAVE_SYS_PROCSET_H 1
15720 _ACEOF
15721
15722 fi
15723
15724 done
15725
15726 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
15727 do :
15728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15731 cat >>confdefs.h <<_ACEOF
15732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15733 _ACEOF
15734
15735 fi
15736 done
15737
15738
15739 # Look for functions relating to thread naming
15740 for ac_func in pthread_setname_np pthread_set_name_np
15741 do :
15742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15744 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15745 cat >>confdefs.h <<_ACEOF
15746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15747 _ACEOF
15748
15749 fi
15750 done
15751
15752 for ac_header in pthread_np.h
15753 do :
15754 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
15755 "
15756 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_PTHREAD_NP_H 1
15759 _ACEOF
15760
15761 fi
15762
15763 done
15764
15765
15766 #
15767 # flockfile is usually provided by pthreads
15768 #
15769 for ac_func in flockfile getc_unlocked
15770 do :
15771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15773 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15774 cat >>confdefs.h <<_ACEOF
15775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15776 _ACEOF
15777
15778 fi
15779 done
15780
15781
15782 #
15783 # Look for sysconf to allow detection of the number of processors.
15784 #
15785 for ac_func in sysconf
15786 do :
15787 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
15788 if test "x$ac_cv_func_sysconf" = xyes; then :
15789 cat >>confdefs.h <<_ACEOF
15790 #define HAVE_SYSCONF 1
15791 _ACEOF
15792
15793 fi
15794 done
15795
15796
15797
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
15800 $as_echo_n "checking for libtool... " >&6; }
15801
15802 # Check whether --with-libtool was given.
15803 if test "${with_libtool+set}" = set; then :
15804 withval=$with_libtool; use_libtool="$withval"
15805 else
15806 use_libtool="no"
15807 fi
15808
15809
15810 case $use_libtool in
15811 yes)
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814
15815 O=lo
15816 A=la
15817 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
15818 LIBTOOL_MODE_COMPILE='--mode=compile'
15819 LIBTOOL_MODE_INSTALL='--mode=install'
15820 LIBTOOL_MODE_LINK='--mode=link'
15821 LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
15822 INSTALL_LIBRARY='${INSTALL_PROGRAM}'
15823 ;;
15824 *)
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15827 O=o
15828 A=a
15829 LIBTOOL=
15830
15831 LIBTOOL_MKDEP_SED=
15832 LIBTOOL_MODE_COMPILE=
15833 LIBTOOL_MODE_INSTALL=
15834 LIBTOOL_MODE_LINK=
15835 LIBTOOL_MODE_UNINSTALL=
15836 INSTALL_LIBRARY='${INSTALL_DATA}'
15837 ;;
15838 esac
15839
15840
15841 #
15842 # If PIC is disabled, shared libraries must also be
15843 #
15844 if test "$pic_mode" = "no"; then :
15845 enable_shared="no"
15846 fi
15847
15848 CRYPTO=OpenSSL
15849
15850 #
15851 # was --with-openssl specified?
15852 #
15853
15854 found=false
15855 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"
15856
15857 # Check whether --with-openssl was given.
15858 if test "${with_openssl+set}" = set; then :
15859 withval=$with_openssl;
15860 case $with_openssl in #(
15861 ""|y|ye|yes) :
15862 ssldirs="$default_ssldirs" ;; #(
15863 n|no) :
15864 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
15865 *) :
15866 ssldirs="$withval" ;; #(
15867 *) :
15868 ssldirs="$default_ssldirs"
15869 ;;
15870 esac
15871
15872 else
15873
15874 # if pkg-config is installed and openssl has installed a .pc file,
15875 # then use that information and don't search ssldirs
15876
15877 pkg_failed=no
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
15879 $as_echo_n "checking for crypto... " >&6; }
15880
15881 if test -n "$OPENSSL_CFLAGS"; then
15882 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15883 elif test -n "$PKG_CONFIG"; then
15884 if test -n "$PKG_CONFIG" && \
15885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
15886 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
15887 ac_status=$?
15888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15889 test $ac_status = 0; }; then
15890 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
15891 test "x$?" != "x0" && pkg_failed=yes
15892 else
15893 pkg_failed=yes
15894 fi
15895 else
15896 pkg_failed=untried
15897 fi
15898 if test -n "$OPENSSL_LIBS"; then
15899 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15900 elif test -n "$PKG_CONFIG"; then
15901 if test -n "$PKG_CONFIG" && \
15902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
15903 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
15904 ac_status=$?
15905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; }; then
15907 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
15908 test "x$?" != "x0" && pkg_failed=yes
15909 else
15910 pkg_failed=yes
15911 fi
15912 else
15913 pkg_failed=untried
15914 fi
15915
15916
15917
15918 if test $pkg_failed = yes; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15920 $as_echo "no" >&6; }
15921
15922 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15923 _pkg_short_errors_supported=yes
15924 else
15925 _pkg_short_errors_supported=no
15926 fi
15927 if test $_pkg_short_errors_supported = yes; then
15928 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
15929 else
15930 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
15931 fi
15932 # Put the nasty error message in config.log where it belongs
15933 echo "$OPENSSL_PKG_ERRORS" >&5
15934
15935 ssldirs="$default_ssldirs"
15936 elif test $pkg_failed = untried; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938 $as_echo "no" >&6; }
15939 ssldirs="$default_ssldirs"
15940 else
15941 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15942 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15944 $as_echo "yes" >&6; }
15945 found=true
15946 fi
15947
15948
15949
15950 fi
15951
15952
15953
15954 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
15955 # an 'openssl' subdirectory
15956
15957 if ! $found; then :
15958
15959 OPENSSL_INCLUDES=
15960 for ssldir in $ssldirs; do
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
15962 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
15963 if test -f "$ssldir/include/openssl/ssl.h"; then :
15964
15965 OPENSSL_INCLUDES="-I$ssldir/include"
15966 OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
15967 found=true
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15969 $as_echo "yes" >&6; }
15970 break
15971
15972 else
15973
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975 $as_echo "no" >&6; }
15976
15977 fi
15978 done
15979
15980 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
15981 # it will just work!
15982
15983 fi
15984
15985 # try the preprocessor and linker with our new flags,
15986 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15987
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
15989 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
15990 # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
15991
15992 save_LIBS="$LIBS"
15993 save_CPPFLAGS="$CPPFLAGS"
15994 LIBS="$OPENSSL_LIBS $LIBS"
15995 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15998
15999 #include <openssl/crypto.h>
16000
16001 int
16002 main ()
16003 {
16004
16005 OPENSSL_free(NULL);
16006
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_c_try_link "$LINENO"; then :
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16014 $as_echo "yes" >&6; }
16015 :
16016
16017 else
16018
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16023 as_fn_error $? "OpenSSL/LibreSSL not found
16024 See \`config.log' for more details" "$LINENO" 5; }
16025
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext \
16028 conftest$ac_exeext conftest.$ac_ext
16029 CPPFLAGS="$save_CPPFLAGS"
16030 LIBS="$save_LIBS"
16031
16032
16033
16034
16035
16036 save_CFLAGS="$CFLAGS"
16037 save_LIBS="$LIBS"
16038 save_LDFLAGS="$LDFLAGS"
16039 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
16040 LIBS="$LIBS $OPENSSL_LIBS"
16041 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
16042
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
16044 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16047 #include <openssl/opensslv.h>
16048 int
16049 main ()
16050 {
16051 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
16052 #error OpenSSL >= 1.0.0 or LibreSSL required
16053 #endif
16054
16055 ;
16056 return 0;
16057 }
16058 _ACEOF
16059 if ac_fn_c_try_compile "$LINENO"; then :
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16061 $as_echo "yes" >&6; }
16062 else
16063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16065 as_fn_error $? "not found
16066 See \`config.log' for more details" "$LINENO" 5; }
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069
16070 #
16071 # Check for functions added in OpenSSL or LibreSSL
16072 #
16073
16074 for ac_func in CRYPTO_zalloc
16075 do :
16076 ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
16077 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_CRYPTO_ZALLOC 1
16080 _ACEOF
16081
16082 fi
16083 done
16084
16085 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
16086 do :
16087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16090 cat >>confdefs.h <<_ACEOF
16091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16092 _ACEOF
16093
16094 fi
16095 done
16096
16097 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
16098 do :
16099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16101 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16104 _ACEOF
16105
16106 fi
16107 done
16108
16109 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
16110 do :
16111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16114 cat >>confdefs.h <<_ACEOF
16115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16116 _ACEOF
16117
16118 fi
16119 done
16120
16121
16122 #
16123 # Check for algorithm support in OpenSSL
16124 #
16125
16126 for ac_func in ECDSA_sign ECDSA_verify
16127 do :
16128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16131 cat >>confdefs.h <<_ACEOF
16132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16133 _ACEOF
16134 :
16135 else
16136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16138 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
16139 See \`config.log' for more details" "$LINENO" 5; }
16140 fi
16141 done
16142
16143
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
16145 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16148 #include <openssl/evp.h>
16149 #include <openssl/ec.h>
16150 int
16151 main ()
16152 {
16153 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_compile "$LINENO"; then :
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16160 $as_echo "yes" >&6; }
16161 else
16162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16164 as_fn_error $? "not found. ECDSA P-256 support in OpenSSL is mandatory.
16165 See \`config.log' for more details" "$LINENO" 5; }
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16168
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
16170 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 #include <openssl/evp.h>
16174 #include <openssl/ec.h>
16175 int
16176 main ()
16177 {
16178 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
16179 ;
16180 return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_compile "$LINENO"; then :
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16185 $as_echo "yes" >&6; }
16186 else
16187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16189 as_fn_error $? "not found. ECDSA P-384 support in OpenSSL is mandatory.
16190 See \`config.log' for more details" "$LINENO" 5; }
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
16195 $as_echo_n "checking for Ed25519 support... " >&6; }
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 #include <openssl/evp.h>
16199 #include <openssl/ec.h>
16200 int
16201 main ()
16202 {
16203 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
16204 ;
16205 return 0;
16206 }
16207 _ACEOF
16208 if ac_fn_c_try_compile "$LINENO"; then :
16209
16210 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
16211
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16213 $as_echo "yes" >&6; }
16214 else
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216 $as_echo "no" >&6; }
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
16221 $as_echo_n "checking for Ed448 support... " >&6; }
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #include <openssl/evp.h>
16225 #include <openssl/ec.h>
16226 int
16227 main ()
16228 {
16229 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
16230 ;
16231 return 0;
16232 }
16233 _ACEOF
16234 if ac_fn_c_try_compile "$LINENO"; then :
16235
16236 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16239 $as_echo "yes" >&6; }
16240 else
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16242 $as_echo "no" >&6; }
16243 fi
16244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245
16246 #
16247 # Check for OpenSSL SHA-1 support
16248 #
16249 for ac_func in EVP_sha1
16250 do :
16251 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
16252 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
16253 cat >>confdefs.h <<_ACEOF
16254 #define HAVE_EVP_SHA1 1
16255 _ACEOF
16256 :
16257 else
16258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16260 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
16261 See \`config.log' for more details" "$LINENO" 5; }
16262 fi
16263 done
16264
16265
16266 #
16267 # Check for OpenSSL SHA-2 support
16268 #
16269 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
16270 do :
16271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16273 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16274 cat >>confdefs.h <<_ACEOF
16275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 _ACEOF
16277 :
16278 else
16279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16281 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
16282 See \`config.log' for more details" "$LINENO" 5; }
16283 fi
16284 done
16285
16286
16287 #
16288 # Check for OpenSSL AES support
16289 #
16290 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
16291 do :
16292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16294 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16295 cat >>confdefs.h <<_ACEOF
16296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16297 _ACEOF
16298 :
16299 else
16300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16302 as_fn_error $? "AES support in OpenSSL is mandatory.
16303 See \`config.log' for more details" "$LINENO" 5; }
16304 fi
16305 done
16306
16307
16308 #
16309 # Check for OpenSSL 1.1.x/LibreSSL functions
16310 #
16311 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
16312 do :
16313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16315 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16316 cat >>confdefs.h <<_ACEOF
16317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16318 _ACEOF
16319
16320 fi
16321 done
16322
16323
16324 #
16325 # Check whether FIPS mode is available and whether we should enable it
16326 #
16327 # Check whether --enable-fips-mode was given.
16328 if test "${enable_fips_mode+set}" = set; then :
16329 enableval=$enable_fips_mode;
16330 else
16331 enable_fips_mode="no"
16332 fi
16333
16334
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
16336 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
16337 case $enable_fips_mode in #(
16338 yes) :
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16340 $as_echo "yes" >&6; }
16341 for ac_func in FIPS_mode
16342 do :
16343 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
16344 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_FIPS_MODE 1
16347 _ACEOF
16348
16349 else
16350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16352 as_fn_error $? "OpenSSL FIPS mode requested but not available.
16353 See \`config.log' for more details" "$LINENO" 5; }
16354 fi
16355 done
16356 ;; #(
16357 no) :
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; } ;; #(
16360 *) :
16361 ;;
16362 esac
16363
16364 CFLAGS="$save_CFLAGS"
16365 LIBS="$save_LIBS"
16366 LDFLAGS="$save_LDFLAGS"
16367
16368
16369
16370
16371
16372 #
16373 # Client Cookie algorithm choice
16374 #
16375
16376 # Check whether --with-cc-alg was given.
16377 if test "${with_cc_alg+set}" = set; then :
16378 withval=$with_cc_alg; :
16379 else
16380 with_cc_alg="siphash24"
16381 fi
16382
16383
16384 case $with_cc_alg in #(
16385 siphash24) :
16386 : ;; #(
16387 *) :
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The Client Cookie is always SipHash 2-4 based" >&5
16389 $as_echo "$as_me: WARNING: The Client Cookie is always SipHash 2-4 based" >&2;} ;;
16390 esac
16391
16392 PKCS11_TOOLS=
16393 PKCS11_TEST=
16394 #
16395 # was --enable-native-pkcs11 specified?
16396 #
16397 # Check whether --enable-native-pkcs11 was given.
16398 if test "${enable_native_pkcs11+set}" = set; then :
16399 enableval=$enable_native_pkcs11; :
16400 else
16401 enable_native_pkcs11="no"
16402 fi
16403
16404
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
16406 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
16407 case $enable_native_pkcs11 in #(
16408 no) :
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; } ;; #(
16411 yes) :
16412 PKCS11_TOOLS=pkcs11
16413 PKCS11_TEST=pkcs11
16414 CRYPTO=pkcs11
16415 if $use_threads; then :
16416 :
16417 else
16418 as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
16419 fi
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16421 $as_echo "yes" >&6; }
16422 for ac_func in getpassphrase
16423 do :
16424 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
16425 if test "x$ac_cv_func_getpassphrase" = xyes; then :
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_GETPASSPHRASE 1
16428 _ACEOF
16429
16430 fi
16431 done
16432
16433 ;; #(
16434 *) :
16435 ;;
16436 esac
16437
16438
16439
16440 case $CRYPTO in #(
16441 pkcs11) :
16442
16443 $as_echo "#define USE_PKCS11 1" >>confdefs.h
16444 ;; #(
16445 *) :
16446
16447 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
16448 ;;
16449 esac
16450
16451 # preparation for automake
16452 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
16453
16454 #
16455 # was --with-pkcs11 specified?
16456 #
16457
16458 # Check whether --with-pkcs11 was given.
16459 if test "${with_pkcs11+set}" = set; then :
16460 withval=$with_pkcs11; :
16461 else
16462 with_pkcs11="undefined"
16463 fi
16464
16465
16466 case $with_pkcs11 in #(
16467 yes|auto) :
16468 as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
16469 no|undefined) :
16470 with_pkcs11="undefined" ;; #(
16471 *) :
16472 ;;
16473 esac
16474
16475 cat >>confdefs.h <<_ACEOF
16476 #define PK11_LIB_LOCATION "$with_pkcs11"
16477 _ACEOF
16478
16479
16480 # for PKCS11 benchmarks
16481
16482 have_clock_gt=no
16483 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16484 if test "x$ac_cv_func_clock_gettime" = xyes; then :
16485 have_clock_gt=yes
16486 fi
16487
16488 if test "no" = "$have_clock_gt"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16490 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16491 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16492 $as_echo_n "(cached) " >&6
16493 else
16494 ac_check_lib_save_LIBS=$LIBS
16495 LIBS="-lrt $LIBS"
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498
16499 /* Override any GCC internal prototype to avoid an error.
16500 Use char because int might match the return type of a GCC
16501 builtin and then its argument prototype would still apply. */
16502 #ifdef __cplusplus
16503 extern "C"
16504 #endif
16505 char clock_gettime ();
16506 int
16507 main ()
16508 {
16509 return clock_gettime ();
16510 ;
16511 return 0;
16512 }
16513 _ACEOF
16514 if ac_fn_c_try_link "$LINENO"; then :
16515 ac_cv_lib_rt_clock_gettime=yes
16516 else
16517 ac_cv_lib_rt_clock_gettime=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext \
16520 conftest$ac_exeext conftest.$ac_ext
16521 LIBS=$ac_check_lib_save_LIBS
16522 fi
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16524 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16525 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16526 have_clock_gt=rt
16527 fi
16528
16529 fi
16530
16531 if test "no" != "$have_clock_gt"; then
16532
16533 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16534
16535 fi
16536
16537 if test "rt" = "$have_clock_gt"; then
16538 LIBS="-lrt $LIBS"
16539 fi
16540
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
16542 $as_echo_n "checking for GSSAPI library... " >&6; }
16543
16544 # Check whether --with-gssapi was given.
16545 if test "${with_gssapi+set}" = set; then :
16546 withval=$with_gssapi; use_gssapi="$withval"
16547 else
16548 use_gssapi="auto"
16549 fi
16550
16551
16552 # first try using krb5-config, if that does not work then fall back to "yes" method.
16553
16554 case "$use_gssapi" in
16555 */krb5-config|krb5-config)
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
16557 $as_echo "trying $use_gssapi" >&6; }
16558 if test krb5-config = "$use_gssapi"
16559 then
16560 # Extract the first word of "$use_gssapi", so it can be a program name with args.
16561 set dummy $use_gssapi; ac_word=$2
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16563 $as_echo_n "checking for $ac_word... " >&6; }
16564 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
16565 $as_echo_n "(cached) " >&6
16566 else
16567 case $KRB5_CONFIG in
16568 [\\/]* | ?:[\\/]*)
16569 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
16570 ;;
16571 *)
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16574 do
16575 IFS=$as_save_IFS
16576 test -z "$as_dir" && as_dir=.
16577 for ac_exec_ext in '' $ac_executable_extensions; do
16578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16581 break 2
16582 fi
16583 done
16584 done
16585 IFS=$as_save_IFS
16586
16587 ;;
16588 esac
16589 fi
16590 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
16591 if test -n "$KRB5_CONFIG"; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
16593 $as_echo "$KRB5_CONFIG" >&6; }
16594 else
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16597 fi
16598
16599
16600 else
16601 KRB5_CONFIG="$use_gssapi"
16602 fi
16603 gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
16604 gssapi_libs=`$KRB5_CONFIG --libs gssapi`
16605 saved_cppflags="$CPPFLAGS"
16606 CPPFLAGS="$gssapi_cflags $CPPFLAGS"
16607 for ac_header in gssapi.h gssapi/gssapi.h
16608 do :
16609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16610 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16612 cat >>confdefs.h <<_ACEOF
16613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16614 _ACEOF
16615 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
16616 fi
16617
16618 done
16619
16620 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
16622 $as_echo "krb5-config: gssapi.h not found" >&6; }
16623 CPPFLAGS="$saved_cppflags"
16624 use_gssapi="yes"
16625 else
16626 for ac_header in krb5/krb5.h krb5.h
16627 do :
16628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16631 cat >>confdefs.h <<_ACEOF
16632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16633 _ACEOF
16634 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
16635 fi
16636
16637 done
16638
16639 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
16641 $as_echo "krb5-config: krb5.h not found" >&6; }
16642 CPPFLAGS="$saved_cppflags"
16643 use_gssapi="yes"
16644 else
16645 CPPFLAGS="$saved_cppflags"
16646 saved_libs="$LIBS"
16647 LIBS=$gssapi_libs
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
16649 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16652
16653 int
16654 main ()
16655 {
16656 gss_acquire_cred();krb5_init_context()
16657 ;
16658 return 0;
16659 }
16660 _ACEOF
16661 if ac_fn_c_try_link "$LINENO"; then :
16662 gssapi_linked=yes
16663 else
16664 gssapi_linked=no
16665 fi
16666 rm -f core conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668 case $gssapi_linked in
16669 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
16670 $as_echo "krb5-config: linked" >&6; };;
16671 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
16672 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
16673 use_gssapi="yes"
16674 ;;
16675 esac
16676 LIBS=$saved_libs
16677 fi
16678 fi
16679 if test "yes" = "$use_gssapi"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
16681 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
16682 fi
16683 ;;
16684 esac
16685
16686 case "$host" in
16687 *darwin*)
16688 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
16689 then
16690 use_gssapi=framework
16691 fi
16692 ;;
16693 esac
16694
16695 # gssapi is just the framework, we really require kerberos v5, so
16696 # look for those headers (the gssapi headers must be there, too)
16697 # The problem with this implementation is that it doesn't allow
16698 # for the specification of gssapi and krb5 headers in different locations,
16699 # which probably ought to be fixed although fixing might raise the issue of
16700 # trying to build with incompatible versions of gssapi and krb5.
16701 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
16702 then
16703 # first, deal with the obvious
16704 if test \( -f /usr/include/kerberosv5/krb5.h -o \
16705 -f /usr/include/krb5/krb5.h -o \
16706 -f /usr/include/krb5.h \) -a \
16707 \( -f /usr/include/gssapi.h -o \
16708 -f /usr/include/gssapi/gssapi.h \)
16709 then
16710 use_gssapi=/usr
16711 else
16712 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
16713 for d in $krb5dirs
16714 do
16715 if test -f $d/include/gssapi/gssapi_krb5.h -o \
16716 -f $d/include/krb5.h
16717 then
16718 if test -f $d/include/gssapi/gssapi.h -o \
16719 -f $d/include/gssapi.h
16720 then
16721 use_gssapi=$d
16722 break
16723 fi
16724 fi
16725 done
16726 if test "auto" = "$use_gssapi"
16727 then
16728 use_gssapi="no"
16729 fi
16730 fi
16731 fi
16732
16733 case "$use_gssapi" in
16734 no)
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16736 $as_echo "disabled" >&6; }
16737 USE_GSSAPI=''
16738 ;;
16739 yes)
16740 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
16741 ;;
16742 */krb5-config|krb5-config)
16743 USE_GSSAPI='-DGSSAPI'
16744 DST_GSSAPI_INC="$gssapi_cflags"
16745 DNS_GSSAPI_LIBS="$gssapi_libs"
16746 ;;
16747 framework)
16748 USE_GSSAPI='-DGSSAPI'
16749 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
16750 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
16751 DNS_GSSAPI_LIBS="-framework Kerberos"
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
16753 $as_echo "framework" >&6; }
16754 ;;
16755
16756 *)
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
16758 $as_echo "looking in $use_gssapi/lib" >&6; }
16759 USE_GSSAPI='-DGSSAPI'
16760 saved_cppflags="$CPPFLAGS"
16761 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
16762 for ac_header in gssapi.h gssapi/gssapi.h
16763 do :
16764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16765 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16767 cat >>confdefs.h <<_ACEOF
16768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16769 _ACEOF
16770 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
16771 gssapi_hack="#include <$ac_header>"
16772 fi
16773
16774 done
16775
16776
16777 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
16778 as_fn_error $? "gssapi.h not found" "$LINENO" 5
16779 fi
16780
16781 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
16782 do :
16783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16784 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16786 cat >>confdefs.h <<_ACEOF
16787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16788 _ACEOF
16789 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
16790 gssapi_krb5_hack="#include <$ac_header>"
16791 fi
16792
16793 done
16794
16795
16796 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
16797 do :
16798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16799 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16801 cat >>confdefs.h <<_ACEOF
16802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16803 _ACEOF
16804 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
16805 krb5_hack="#include <$ac_header>"
16806 fi
16807
16808 done
16809
16810
16811 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
16812 as_fn_error $? "krb5.h not found" "$LINENO" 5
16813 fi
16814
16815 #
16816 # XXXDCL This probably doesn't work right on all systems.
16817 # It will need to be worked on as problems become evident.
16818 #
16819 # Essentially the problems here relate to two different
16820 # areas. The first area is building with either KTH
16821 # or MIT Kerberos, particularly when both are present on
16822 # the machine. The other is static versus dynamic linking.
16823 #
16824 # On the KTH vs MIT issue, Both have libkrb5 that can mess
16825 # up the works if one implementation ends up trying to
16826 # use the other's krb. This is unfortunately a situation
16827 # that very easily arises.
16828 #
16829 # Dynamic linking when the dependency information is built
16830 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
16831 # all such problems go away, but when that setup is not
16832 # present, because either the dynamic libraries lack
16833 # dependencies or static linking is being done, then the
16834 # problems start to show up.
16835 saved_libs="$LIBS"
16836 for TRY_LIBS in \
16837 "-lgssapi_krb5" \
16838 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
16839 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
16840 "-lgssapi" \
16841 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
16842 "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
16843 "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
16844 "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
16845 "-lgss -lkrb5"
16846 do
16847 # Note that this does not include $saved_libs, because
16848 # on FreeBSD machines this configure script has added
16849 # -L/usr/local/lib to LIBS, which can make the
16850 # -lgssapi_krb5 test succeed with shared libraries even
16851 # when you are trying to build with KTH in /usr/lib.
16852 if test "/usr" = "$use_gssapi"
16853 then
16854 LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
16855 else
16856 LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
16857 fi
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
16859 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862
16863 #include <sys/types.h>
16864 $gssapi_hack
16865 $gssapi_krb5_hack
16866 $krb5_hack
16867
16868 int
16869 main ()
16870 {
16871 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
16872 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
16873 gsskrb5_register_acceptor_identity(NULL);
16874 #endif
16875 ;
16876 return 0;
16877 }
16878 _ACEOF
16879 if ac_fn_c_try_link "$LINENO"; then :
16880 gssapi_linked=yes
16881 else
16882 gssapi_linked=no
16883 fi
16884 rm -f core conftest.err conftest.$ac_objext \
16885 conftest$ac_exeext conftest.$ac_ext
16886 case $gssapi_linked in
16887 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16888 $as_echo "yes" >&6; }; break ;;
16889 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890 $as_echo "no" >&6; } ;;
16891 esac
16892 done
16893
16894 CPPFLAGS="$saved_cppflags"
16895
16896 case $gssapi_linked in
16897 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
16898 esac
16899
16900 #
16901 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
16902 # but MIT in /usr/local/lib and trying to build with KTH.
16903 # /usr/local/lib can end up earlier on the link lines.
16904 # Like most kludges, this one is not only inelegant it
16905 # is also likely to be the wrong thing to do at least as
16906 # many times as it is the right thing. Something better
16907 # needs to be done.
16908 #
16909 if test "/usr" = "$use_gssapi" -a \
16910 -f /usr/local/lib/libkrb5.a; then
16911 FIX_KTH_VS_MIT=yes
16912 fi
16913
16914 case "$FIX_KTH_VS_MIT" in
16915 yes)
16916 case "$enable_static_linking" in
16917 yes) gssapi_lib_suffix=".a" ;;
16918 *) gssapi_lib_suffix=".so" ;;
16919 esac
16920
16921 for lib in $LIBS; do
16922 case $lib in
16923 -L*)
16924 ;;
16925 -l*)
16926 new_lib=`echo $lib |
16927 sed -e s%^-l%$use_gssapi/lib/lib% \
16928 -e s%$%$gssapi_lib_suffix%`
16929 NEW_LIBS="$NEW_LIBS $new_lib"
16930 ;;
16931 *)
16932 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
16933 ;;
16934 esac
16935 done
16936 LIBS="$NEW_LIBS"
16937 ;;
16938 esac
16939
16940 DST_GSSAPI_INC="-I$use_gssapi/include"
16941 DNS_GSSAPI_LIBS="$LIBS"
16942
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
16944 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
16945 LIBS="$saved_libs"
16946 ;;
16947 esac
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
16958
16959 #
16960 # Applications linking with libdns also need to link with these libraries.
16961 #
16962
16963
16964
16965 #
16966 # was --with-lmdb specified?
16967 #
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
16969 $as_echo_n "checking for lmdb library... " >&6; }
16970
16971 # Check whether --with-lmdb was given.
16972 if test "${with_lmdb+set}" = set; then :
16973 withval=$with_lmdb; use_lmdb="$withval"
16974 else
16975 use_lmdb="auto"
16976 fi
16977
16978
16979 have_lmdb=""
16980 case "$use_lmdb" in
16981 no)
16982 lmdb_libs=""
16983 ;;
16984 auto|yes)
16985 for d in /usr /usr/local /opt/local
16986 do
16987 if test -f "${d}/include/lmdb.h"
16988 then
16989 if test ${d} != /usr
16990 then
16991 lmdb_cflags="-I ${d}/include"
16992 LIBS="$LIBS -L${d}/lib"
16993 fi
16994 have_lmdb="yes"
16995 fi
16996 done
16997 ;;
16998 *)
16999 if test -f "${use_lmdb}/include/lmdb.h"
17000 then
17001 lmdb_cflags="-I${use_lmdb}/include"
17002 LIBS="$LIBS -L${use_lmdb}/lib"
17003 have_lmdb="yes"
17004 else
17005 as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
17006 fi
17007 ;;
17008 esac
17009
17010 if test "X${have_lmdb}" != "X"
17011 then
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17013 $as_echo "yes" >&6; }
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
17015 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
17016 if ${ac_cv_search_mdb_env_create+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 ac_func_search_save_LIBS=$LIBS
17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021 /* end confdefs.h. */
17022
17023 /* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17026 #ifdef __cplusplus
17027 extern "C"
17028 #endif
17029 char mdb_env_create ();
17030 int
17031 main ()
17032 {
17033 return mdb_env_create ();
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 for ac_lib in '' lmdb; do
17039 if test -z "$ac_lib"; then
17040 ac_res="none required"
17041 else
17042 ac_res=-l$ac_lib
17043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17044 fi
17045 if ac_fn_c_try_link "$LINENO"; then :
17046 ac_cv_search_mdb_env_create=$ac_res
17047 fi
17048 rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext
17050 if ${ac_cv_search_mdb_env_create+:} false; then :
17051 break
17052 fi
17053 done
17054 if ${ac_cv_search_mdb_env_create+:} false; then :
17055
17056 else
17057 ac_cv_search_mdb_env_create=no
17058 fi
17059 rm conftest.$ac_ext
17060 LIBS=$ac_func_search_save_LIBS
17061 fi
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
17063 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
17064 ac_res=$ac_cv_search_mdb_env_create
17065 if test "$ac_res" != no; then :
17066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17067
17068 else
17069 as_fn_error $? "found lmdb include but not library." "$LINENO" 5
17070 have_lmdb=""
17071 fi
17072
17073 elif test "X$use_lmdb" = Xyes
17074 then
17075 as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
17076 else
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17078 $as_echo "no" >&6; }
17079 fi
17080
17081 NZD_TOOLS=""
17082 NZDSRCS=
17083 NZDTARGETS=
17084 if test "X${have_lmdb}" != "X"
17085 then
17086 CFLAGS="$CFLAGS $lmdb_cflags"
17087
17088 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
17089
17090 NZD_TOOLS="nzd"
17091 NZDSRCS='${NZDSRCS}'
17092 NZDTARGETS='${NZDTARGETS}'
17093 fi
17094
17095
17096
17097
17098 #
17099 # was --with-libxml2 specified?
17100 #
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
17102 $as_echo_n "checking for libxml2 library... " >&6; }
17103
17104 # Check whether --with-libxml2 was given.
17105 if test "${with_libxml2+set}" = set; then :
17106 withval=$with_libxml2; use_libxml2="$withval"
17107 else
17108 use_libxml2="auto"
17109 fi
17110
17111
17112 case "$use_libxml2" in
17113 no)
17114 DST_LIBXML2_INC=""
17115 ;;
17116 auto|yes)
17117 case X`(xml2-config --version) 2>/dev/null` in
17118 X2.[6789].*)
17119 libxml2_libs=`xml2-config --libs`
17120 libxml2_cflags=`xml2-config --cflags`
17121 ;;
17122 *)
17123 if test "yes" = "$use_libxml2" ; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17126 as_fn_error $? "required libxml2 version not available" "$LINENO" 5
17127 else
17128 libxml2_libs=
17129 libxml2_cflags=
17130 fi
17131 ;;
17132 esac
17133 ;;
17134 *)
17135 if test -f "$use_libxml2/bin/xml2-config" ; then
17136 libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
17137 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
17138 fi
17139 ;;
17140 esac
17141
17142 if test "X$libxml2_libs" != "X"
17143 then
17144 CFLAGS="$CFLAGS $libxml2_cflags"
17145 LIBS="$LIBS $libxml2_libs"
17146 #
17147 # Sanity check xml2-config output.
17148 #
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17151 #include <libxml/xmlwriter.h>
17152 int
17153 main ()
17154 {
17155 return(xmlTextWriterStartElement(NULL, NULL));
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"; then :
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17162 $as_echo "yes" >&6; }
17163 else
17164 as_fn_error $? "xml2-config returns badness" "$LINENO" 5
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168
17169 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
17170
17171 XMLSTATS=1
17172 else
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174 $as_echo "no" >&6; }
17175 fi
17176
17177
17178 #
17179 # was --with-libjson specified?
17180 #
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
17182 $as_echo_n "checking for json library... " >&6; }
17183
17184 # Check whether --with-libjson was given.
17185 if test "${with_libjson+set}" = set; then :
17186 withval=$with_libjson; use_libjson="$withval"
17187 else
17188 use_libjson="auto"
17189 fi
17190
17191
17192 have_libjson=""
17193 have_libjson_c=""
17194 case "$use_libjson" in
17195 no)
17196 libjson_libs=""
17197 ;;
17198 auto|yes)
17199 for d in /usr /usr/local /opt/local
17200 do
17201 if test -f "${d}/include/json/json.h"
17202 then
17203 if test ${d} != /usr
17204 then
17205 libjson_cflags="-I ${d}/include"
17206 LIBS="$LIBS -L${d}/lib"
17207 fi
17208 have_libjson="yes"
17209 elif test -f "${d}/include/json-c/json.h"
17210 then
17211 if test ${d} != /usr
17212 then
17213 libjson_cflags="-I ${d}/include"
17214 LIBS="$LIBS -L${d}/lib"
17215 fi
17216 have_libjson="yes"
17217 have_libjson_c="yes"
17218 fi
17219 done
17220 ;;
17221 *)
17222 if test -f "${use_libjson}/include/json/json.h"
17223 then
17224 libjson_cflags="-I${use_libjson}/include"
17225 LIBS="$LIBS -L${use_libjson}/lib"
17226 have_libjson="yes"
17227 elif test -f "${use_libjson}/include/json-c/json.h"
17228 then
17229 libjson_cflags="-I${use_libjson}/include"
17230 LIBS="$LIBS -L${use_libjson}/lib"
17231 have_libjson="yes"
17232 have_libjson_c="yes"
17233 else
17234 as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
17235 fi
17236 ;;
17237 esac
17238
17239 if test "X${have_libjson}" != "X"
17240 then
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17242 $as_echo "yes" >&6; }
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
17244 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
17245 if ${ac_cv_search_json_object_new_int64+:} false; then :
17246 $as_echo_n "(cached) " >&6
17247 else
17248 ac_func_search_save_LIBS=$LIBS
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251
17252 /* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
17255 #ifdef __cplusplus
17256 extern "C"
17257 #endif
17258 char json_object_new_int64 ();
17259 int
17260 main ()
17261 {
17262 return json_object_new_int64 ();
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 for ac_lib in '' json json-c; do
17268 if test -z "$ac_lib"; then
17269 ac_res="none required"
17270 else
17271 ac_res=-l$ac_lib
17272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17273 fi
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 ac_cv_search_json_object_new_int64=$ac_res
17276 fi
17277 rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext
17279 if ${ac_cv_search_json_object_new_int64+:} false; then :
17280 break
17281 fi
17282 done
17283 if ${ac_cv_search_json_object_new_int64+:} false; then :
17284
17285 else
17286 ac_cv_search_json_object_new_int64=no
17287 fi
17288 rm conftest.$ac_ext
17289 LIBS=$ac_func_search_save_LIBS
17290 fi
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
17292 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
17293 ac_res=$ac_cv_search_json_object_new_int64
17294 if test "$ac_res" != no; then :
17295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17296
17297 else
17298 as_fn_error $? "found libjson include but not library." "$LINENO" 5
17299 have_libjson=""
17300 fi
17301
17302 elif test "X$use_libjson" = Xyes
17303 then
17304 as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
17305 else
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17308 fi
17309
17310 if test "X${have_libjson}" != "X"
17311 then
17312 CFLAGS="$CFLAGS $libjson_cflags"
17313
17314 $as_echo "#define HAVE_JSON 1" >>confdefs.h
17315
17316 if test "X${have_libjson_c}" = Xyes
17317 then
17318
17319 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
17320
17321 fi
17322 JSONSTATS=1
17323 fi
17324
17325
17326 #
17327 # was --with-zlib specified?
17328 #
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
17330 $as_echo_n "checking for zlib library... " >&6; }
17331
17332 # Check whether --with-zlib was given.
17333 if test "${with_zlib+set}" = set; then :
17334 withval=$with_zlib; with_zlib="$withval"
17335 else
17336 with_zlib="auto"
17337 fi
17338
17339
17340 have_zlib=""
17341 case "$with_zlib" in
17342 no)
17343 zlib_libs=""
17344 ;;
17345 auto|yes)
17346 for d in /usr /usr/local /opt/local
17347 do
17348 if test -f "${d}/include/zlib.h"
17349 then
17350 if test ${d} != /usr
17351 then
17352 zlib_cflags="-I ${d}/include"
17353 LIBS="$LIBS -L${d}/lib"
17354 fi
17355 have_zlib="yes"
17356 fi
17357 done
17358 ;;
17359 *)
17360 if test -f "${with_zlib}/include/zlib.h"
17361 then
17362 zlib_cflags="-I${with_zlib}/include"
17363 LIBS="$LIBS -L${with_zlib}/lib"
17364 have_zlib="yes"
17365 else
17366 as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
17367 fi
17368 ;;
17369 esac
17370
17371 if test "X${have_zlib}" != "X"
17372 then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
17376 $as_echo_n "checking for library containing deflate... " >&6; }
17377 if ${ac_cv_search_deflate+:} false; then :
17378 $as_echo_n "(cached) " >&6
17379 else
17380 ac_func_search_save_LIBS=$LIBS
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char deflate ();
17391 int
17392 main ()
17393 {
17394 return deflate ();
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 for ac_lib in '' z; do
17400 if test -z "$ac_lib"; then
17401 ac_res="none required"
17402 else
17403 ac_res=-l$ac_lib
17404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17405 fi
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 ac_cv_search_deflate=$ac_res
17408 fi
17409 rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext
17411 if ${ac_cv_search_deflate+:} false; then :
17412 break
17413 fi
17414 done
17415 if ${ac_cv_search_deflate+:} false; then :
17416
17417 else
17418 ac_cv_search_deflate=no
17419 fi
17420 rm conftest.$ac_ext
17421 LIBS=$ac_func_search_save_LIBS
17422 fi
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
17424 $as_echo "$ac_cv_search_deflate" >&6; }
17425 ac_res=$ac_cv_search_deflate
17426 if test "$ac_res" != no; then :
17427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17428
17429 else
17430 as_fn_error $? "found zlib include but not library." "$LINENO" 5
17431 have_zlib=""
17432 fi
17433
17434 elif test "X$with_zlib" = Xyes
17435 then
17436 as_fn_error $? "include/zlib.h not found." "$LINENO" 5
17437 else
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17439 $as_echo "no" >&6; }
17440 fi
17441
17442 ZLIB=
17443 if test "X${have_zlib}" != "X"
17444 then
17445 CFLAGS="$CFLAGS $zlib_cflags"
17446
17447 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17448
17449 ZLIB=1
17450 fi
17451
17452
17453
17454 #
17455 # In solaris 10, SMF can manage named service
17456 #
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
17458 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
17459 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
17460 $as_echo_n "(cached) " >&6
17461 else
17462 ac_check_lib_save_LIBS=$LIBS
17463 LIBS="-lscf $LIBS"
17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17466
17467 /* Override any GCC internal prototype to avoid an error.
17468 Use char because int might match the return type of a GCC
17469 builtin and then its argument prototype would still apply. */
17470 #ifdef __cplusplus
17471 extern "C"
17472 #endif
17473 char smf_enable_instance ();
17474 int
17475 main ()
17476 {
17477 return smf_enable_instance ();
17478 ;
17479 return 0;
17480 }
17481 _ACEOF
17482 if ac_fn_c_try_link "$LINENO"; then :
17483 ac_cv_lib_scf_smf_enable_instance=yes
17484 else
17485 ac_cv_lib_scf_smf_enable_instance=no
17486 fi
17487 rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17489 LIBS=$ac_check_lib_save_LIBS
17490 fi
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
17492 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
17493 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
17494 cat >>confdefs.h <<_ACEOF
17495 #define HAVE_LIBSCF 1
17496 _ACEOF
17497
17498 LIBS="-lscf $LIBS"
17499
17500 fi
17501
17502
17503 #
17504 # Large File
17505 #
17506 # Check whether --enable-largefile was given.
17507 if test "${enable_largefile+set}" = set; then :
17508 enableval=$enable_largefile; want_largefile="yes"
17509 else
17510 want_largefile="no"
17511 fi
17512
17513 case $want_largefile in
17514 yes)
17515 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
17516 ;;
17517 *)
17518 ;;
17519 esac
17520
17521 #
17522 # Additional compiler settings.
17523 #
17524 MKDEPCC="$CC"
17525 MKDEPCFLAGS="-M"
17526
17527 if test "X$GCC" = "Xyes"; then
17528 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
17530 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
17531 SAVE_CFLAGS="$CFLAGS"
17532 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534 /* end confdefs.h. */
17535
17536 int
17537 main ()
17538 {
17539
17540 ;
17541 return 0;
17542 }
17543 _ACEOF
17544 if ac_fn_c_try_compile "$LINENO"; then :
17545 FNOSTRICTALIASING=yes
17546 else
17547 FNOSTRICTALIASING=no
17548 fi
17549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17550 CFLAGS="$SAVE_CFLAGS"
17551 if test "yes" = "$FNOSTRICTALIASING"; then
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17553 $as_echo "yes" >&6; }
17554 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
17555 else
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17557 $as_echo "no" >&6; }
17558 fi
17559 #
17560 # turn off delete null pointer checks
17561 #
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
17563 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
17564 SAVE_CFLAGS="$CFLAGS"
17565 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567 /* end confdefs.h. */
17568
17569 int
17570 main ()
17571 {
17572
17573 ;
17574 return 0;
17575 }
17576 _ACEOF
17577 if ac_fn_c_try_compile "$LINENO"; then :
17578 FNODELETENULLPOINTERCHECKS=yes
17579 else
17580 FNODELETENULLPOINTERCHECKS=no
17581 fi
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 CFLAGS="$SAVE_CFLAGS"
17584 if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17586 $as_echo "yes" >&6; }
17587 STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
17588 else
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17590 $as_echo "no" >&6; }
17591 fi
17592 if test "X$enable_warn_shadow" = Xyes; then
17593 STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
17594 fi
17595 if test "X$enable_warn_error" = Xyes; then
17596 STD_CWARNINGS="$STD_CWARNINGS -Werror"
17597 fi
17598 else
17599 case $host in
17600 *-solaris*)
17601 MKDEPCFLAGS="-xM"
17602 ;;
17603 esac
17604 fi
17605
17606
17607
17608
17609
17610 #
17611 # -lxnet buys us one big porting headache... standards, gotta love 'em.
17612 #
17613 # AC_CHECK_LIB(xnet, socket, ,
17614 # AC_CHECK_LIB(socket, socket)
17615 # )
17616 #
17617 # Use this for now, instead:
17618 #
17619 case "$host" in
17620 *-linux*)
17621 ;;
17622 *)
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17624 $as_echo_n "checking for socket in -lsocket... " >&6; }
17625 if ${ac_cv_lib_socket_socket+:} false; then :
17626 $as_echo_n "(cached) " >&6
17627 else
17628 ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-lsocket $LIBS"
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632
17633 /* Override any GCC internal prototype to avoid an error.
17634 Use char because int might match the return type of a GCC
17635 builtin and then its argument prototype would still apply. */
17636 #ifdef __cplusplus
17637 extern "C"
17638 #endif
17639 char socket ();
17640 int
17641 main ()
17642 {
17643 return socket ();
17644 ;
17645 return 0;
17646 }
17647 _ACEOF
17648 if ac_fn_c_try_link "$LINENO"; then :
17649 ac_cv_lib_socket_socket=yes
17650 else
17651 ac_cv_lib_socket_socket=no
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LIBS=$ac_check_lib_save_LIBS
17656 fi
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17658 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17659 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17660 cat >>confdefs.h <<_ACEOF
17661 #define HAVE_LIBSOCKET 1
17662 _ACEOF
17663
17664 LIBS="-lsocket $LIBS"
17665
17666 fi
17667
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17669 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17670 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17671 $as_echo_n "(cached) " >&6
17672 else
17673 ac_check_lib_save_LIBS=$LIBS
17674 LIBS="-lnsl $LIBS"
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17677
17678 /* Override any GCC internal prototype to avoid an error.
17679 Use char because int might match the return type of a GCC
17680 builtin and then its argument prototype would still apply. */
17681 #ifdef __cplusplus
17682 extern "C"
17683 #endif
17684 char inet_addr ();
17685 int
17686 main ()
17687 {
17688 return inet_addr ();
17689 ;
17690 return 0;
17691 }
17692 _ACEOF
17693 if ac_fn_c_try_link "$LINENO"; then :
17694 ac_cv_lib_nsl_inet_addr=yes
17695 else
17696 ac_cv_lib_nsl_inet_addr=no
17697 fi
17698 rm -f core conftest.err conftest.$ac_objext \
17699 conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_check_lib_save_LIBS
17701 fi
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17703 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17704 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17705 cat >>confdefs.h <<_ACEOF
17706 #define HAVE_LIBNSL 1
17707 _ACEOF
17708
17709 LIBS="-lnsl $LIBS"
17710
17711 fi
17712
17713 ;;
17714 esac
17715
17716 #
17717 # Work around Solaris's select() limitations.
17718 #
17719 case "$host" in
17720 *-solaris2.[89]|*-solaris2.1?)
17721
17722 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
17723
17724 ;;
17725 esac
17726
17727 #
17728 # Purify support
17729 #
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
17731 $as_echo_n "checking whether to use purify... " >&6; }
17732
17733 # Check whether --with-purify was given.
17734 if test "${with_purify+set}" = set; then :
17735 withval=$with_purify; use_purify="$withval"
17736 else
17737 use_purify="no"
17738 fi
17739
17740
17741 case "$use_purify" in
17742 no)
17743 ;;
17744 yes)
17745 # Extract the first word of "purify", so it can be a program name with args.
17746 set dummy purify; ac_word=$2
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17748 $as_echo_n "checking for $ac_word... " >&6; }
17749 if ${ac_cv_path_purify_path+:} false; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752 case $purify_path in
17753 [\\/]* | ?:[\\/]*)
17754 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
17755 ;;
17756 *)
17757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17758 for as_dir in $PATH
17759 do
17760 IFS=$as_save_IFS
17761 test -z "$as_dir" && as_dir=.
17762 for ac_exec_ext in '' $ac_executable_extensions; do
17763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17764 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
17765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17766 break 2
17767 fi
17768 done
17769 done
17770 IFS=$as_save_IFS
17771
17772 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
17773 ;;
17774 esac
17775 fi
17776 purify_path=$ac_cv_path_purify_path
17777 if test -n "$purify_path"; then
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
17779 $as_echo "$purify_path" >&6; }
17780 else
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17782 $as_echo "no" >&6; }
17783 fi
17784
17785
17786 ;;
17787 *)
17788 purify_path="$use_purify"
17789 ;;
17790 esac
17791
17792 case "$use_purify" in
17793 no)
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17795 $as_echo "no" >&6; }
17796 PURIFY=""
17797 ;;
17798 *)
17799 if test -f "$purify_path" || test purify = "$purify_path"; then
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
17801 $as_echo "$purify_path" >&6; }
17802 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
17803 PURIFY="$purify_path $PURIFYFLAGS"
17804 else
17805 as_fn_error $? "$purify_path not found.
17806
17807 Please choose the proper path with the following command:
17808
17809 configure --with-purify=PATH
17810 " "$LINENO" 5
17811 fi
17812 ;;
17813 esac
17814
17815
17816
17817 #
17818 # Google/Great Performance Tools CPU Profiler
17819 #
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
17821 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
17822
17823 # Check whether --with-gperftools-profiler was given.
17824 if test "${with_gperftools_profiler+set}" = set; then :
17825 withval=$with_gperftools_profiler; use_profiler="$withval"
17826 else
17827 use_profiler="no"
17828 fi
17829
17830
17831 case $use_profiler in
17832 yes)
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17834 $as_echo "yes" >&6; }
17835
17836 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
17837
17838 LIBS="$LIBS -lprofiler"
17839 ;;
17840 *)
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17843 ;;
17844 esac
17845
17846 #
17847 # enable/disable dumping stack backtrace. Also check if the system supports
17848 # glibc-compatible backtrace() function.
17849 #
17850 # Check whether --enable-backtrace was given.
17851 if test "${enable_backtrace+set}" = set; then :
17852 enableval=$enable_backtrace;
17853 else
17854 enable_backtrace="yes"
17855 fi
17856
17857
17858 if test "$enable_backtrace" = "yes"; then :
17859
17860 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
17861
17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17864 #include <execinfo.h>
17865 int
17866 main ()
17867 {
17868 return (backtrace((void **)0, 0));
17869
17870 ;
17871 return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875
17876 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
17877
17878
17879 fi
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17882 fi
17883
17884 # Check whether --enable-symtable was given.
17885 if test "${enable_symtable+set}" = set; then :
17886 enableval=$enable_symtable; want_symtable="$enableval"
17887 else
17888 want_symtable="minimal"
17889 fi
17890
17891 case $want_symtable in
17892 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
17893 if test "" = "$PERL"
17894 then
17895 as_fn_error $? "Internal symbol table requires perl but no perl is found.
17896 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
17897 fi
17898 if test "yes" = "$use_libtool"; then
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
17900 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
17901 else
17902 # we generate the internal symbol table only for those systems
17903 # known to work to avoid unexpected build failure. Also, warn
17904 # about unsupported systems when the feature is enabled
17905 # manually.
17906 case $host_os in
17907 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
17908 MKSYMTBL_PROGRAM="$PERL"
17909 if test "all" = "$want_symtable"; then
17910 ALWAYS_MAKE_SYMTABLE="yes"
17911 fi
17912 ;;
17913 *)
17914 if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
17915 then
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
17917 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
17918 fi
17919 esac
17920 fi
17921 ;;
17922 *)
17923 ;;
17924 esac
17925
17926
17927
17928 #
17929 # File name extension for static archive files, for those few places
17930 # where they are treated differently from dynamic ones.
17931 #
17932 SA=a
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943 BIND9_CO_RULE=".c.$O:"
17944
17945
17946 #
17947 # Here begins a very long section to determine the system's networking
17948 # capabilities. The order of the tests is significant.
17949 #
17950
17951 #
17952 # We do the IPv6 compilation checking after libtool so that we can put
17953 # the right suffix on the files.
17954 #
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
17956 $as_echo_n "checking for IPv6 structures... " >&6; }
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17959
17960 #include <sys/types.h>
17961 #include <sys/socket.h>
17962 #include <netinet/in.h>
17963
17964 int
17965 main ()
17966 {
17967
17968 struct sockaddr_in6 sin6;
17969 struct in6_addr in6;
17970 struct in6_pktinfo in6_pi;
17971 struct sockaddr_storage storage;
17972 in6 = in6addr_any;
17973 in6 = in6addr_loopback;
17974 sin6.sin6_scope_id = 0;
17975 return (0);
17976
17977 ;
17978 return 0;
17979 }
17980 _ACEOF
17981 if ac_fn_c_try_compile "$LINENO"; then :
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17983 $as_echo "yes" >&6; }
17984 else
17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17987 as_fn_error $? "IPv6 support is mandatory
17988 See \`config.log' for more details" "$LINENO" 5; }
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991
17992 #
17993 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
17994 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
17995 # comment in lib/isc/unix/socket.c).
17996 #
17997
17998 # Check whether --enable-tcp_fastopen was given.
17999 if test "${enable_tcp_fastopen+set}" = set; then :
18000 enableval=$enable_tcp_fastopen;
18001 else
18002 enable_tcp_fastopen="yes"
18003 fi
18004
18005
18006 if test "$enable_tcp_fastopen" = "yes"; then :
18007
18008 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
18009
18010 fi
18011
18012 #
18013 # Check for some other useful functions that are not ever-present.
18014 #
18015 for ac_func in strlcpy strlcat
18016 do :
18017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18019 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18020 cat >>confdefs.h <<_ACEOF
18021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18022 _ACEOF
18023
18024 fi
18025 done
18026
18027
18028
18029
18030 # Check whether --with-readline was given.
18031 if test "${with_readline+set}" = set; then :
18032 withval=$with_readline; use_readline="$withval"
18033 else
18034 use_readline="auto"
18035 fi
18036
18037 case "$use_readline" in
18038 no) ;;
18039 *)
18040 saved_LIBS="$LIBS"
18041 case "$use_readline" in
18042 yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
18043 *) try_readline="$use_readline"
18044 esac
18045 for readline in "$try_readline" $or_readline
18046 do
18047 LIBS="$readline"
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
18049 $as_echo "$as_me: checking for readline with $readline" >&6;}
18050 for ac_func in readline
18051 do :
18052 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
18053 if test "x$ac_cv_func_readline" = xyes; then :
18054 cat >>confdefs.h <<_ACEOF
18055 #define HAVE_READLINE 1
18056 _ACEOF
18057
18058 fi
18059 done
18060
18061 if test "yes" = "$ac_cv_func_readline"
18062 then
18063 READLINE_LIB="$readline"
18064 break
18065 fi
18066 for lib in -lterminfo -ltermcap -lncurses -lcurses
18067 do
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
18069 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
18070 unset ac_cv_func_readline
18071 LIBS="$readline $lib"
18072 for ac_func in readline
18073 do :
18074 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
18075 if test "x$ac_cv_func_readline" = xyes; then :
18076 cat >>confdefs.h <<_ACEOF
18077 #define HAVE_READLINE 1
18078 _ACEOF
18079
18080 fi
18081 done
18082
18083 if test "yes" = "$ac_cv_func_readline"
18084 then
18085 READLINE_LIB="$readline $lib"
18086 break
18087 fi
18088 done
18089 if test "yes" = "$ac_cv_func_readline"
18090 then
18091 break
18092 fi
18093 done
18094 if test "auto" != "$use_readline" &&
18095 test "X$READLINE_LIB" = "X"
18096 then
18097 as_fn_error $? "The readline library was not found." "$LINENO" 5
18098 fi
18099 LIBS="$saved_LIBS"
18100 ;;
18101 esac
18102 if test "yes" = "$ac_cv_func_readline"
18103 then
18104 case "$READLINE_LIB" in
18105 *edit*)
18106 for ac_header in editline/readline.h
18107 do :
18108 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18109 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_EDITLINE_READLINE_H 1
18112 _ACEOF
18113
18114 fi
18115
18116 done
18117
18118 for ac_header in edit/readline/readline.h
18119 do :
18120 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18121 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18122 cat >>confdefs.h <<_ACEOF
18123 #define HAVE_EDIT_READLINE_READLINE_H 1
18124 _ACEOF
18125
18126 fi
18127
18128 done
18129
18130 for ac_header in edit/readline/history.h
18131 do :
18132 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
18133 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
18134 cat >>confdefs.h <<_ACEOF
18135 #define HAVE_EDIT_READLINE_HISTORY_H 1
18136 _ACEOF
18137
18138 fi
18139
18140 done
18141
18142 ;;
18143 esac
18144 for ac_header in readline/readline.h
18145 do :
18146 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18147 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18148 cat >>confdefs.h <<_ACEOF
18149 #define HAVE_READLINE_READLINE_H 1
18150 _ACEOF
18151
18152 fi
18153
18154 done
18155
18156 for ac_header in readline/history.h
18157 do :
18158 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18159 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18160 cat >>confdefs.h <<_ACEOF
18161 #define HAVE_READLINE_HISTORY_H 1
18162 _ACEOF
18163
18164 fi
18165
18166 done
18167
18168 fi
18169
18170 #
18171 # Use our own SPNEGO implementation?
18172 #
18173 # Check whether --enable-isc-spnego was given.
18174 if test "${enable_isc_spnego+set}" = set; then :
18175 enableval=$enable_isc_spnego;
18176 fi
18177
18178
18179 if test -n "$USE_GSSAPI"
18180 then
18181 case "$enable_isc_spnego" in
18182 yes|'')
18183 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
18184 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
18185 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
18187 $as_echo "using SPNEGO from lib/dns" >&6; }
18188 ;;
18189 no)
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
18191 $as_echo "using SPNEGO from GSSAPI library" >&6; }
18192 ;;
18193 esac
18194 fi
18195
18196
18197
18198
18199
18200
18201 #
18202 # Security Stuff
18203 #
18204 # Note it is very recommended to *not* disable chroot(),
18205 # this is only because chroot() was made obsolete by Posix.
18206 # Check whether --enable-chroot was given.
18207 if test "${enable_chroot+set}" = set; then :
18208 enableval=$enable_chroot;
18209 fi
18210
18211 case "$enable_chroot" in
18212 yes|'')
18213 for ac_func in chroot
18214 do :
18215 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
18216 if test "x$ac_cv_func_chroot" = xyes; then :
18217 cat >>confdefs.h <<_ACEOF
18218 #define HAVE_CHROOT 1
18219 _ACEOF
18220
18221 fi
18222 done
18223
18224 ;;
18225 no)
18226 ;;
18227 esac
18228
18229 LIBCAP_LIBS=""
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
18231 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
18232 # Check whether --enable-linux-caps was given.
18233 if test "${enable_linux_caps+set}" = set; then :
18234 enableval=$enable_linux_caps;
18235 else
18236 case $host in #(
18237 *-linux*) :
18238 enable_linux_caps=yes ;; #(
18239 *) :
18240 enable_linux_caps=no ;;
18241 esac
18242 fi
18243
18244
18245 if test "$enable_linux_caps" = "yes"; then :
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18247 $as_echo "yes" >&6; }
18248 for ac_header in sys/capability.h
18249 do :
18250 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
18251 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
18252 cat >>confdefs.h <<_ACEOF
18253 #define HAVE_SYS_CAPABILITY_H 1
18254 _ACEOF
18255
18256 else
18257 as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
18258 fi
18259
18260 done
18261
18262 save_LIBS="$LIBS"
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
18264 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
18265 if ${ac_cv_search_cap_set_proc+:} false; then :
18266 $as_echo_n "(cached) " >&6
18267 else
18268 ac_func_search_save_LIBS=$LIBS
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18271
18272 /* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18275 #ifdef __cplusplus
18276 extern "C"
18277 #endif
18278 char cap_set_proc ();
18279 int
18280 main ()
18281 {
18282 return cap_set_proc ();
18283 ;
18284 return 0;
18285 }
18286 _ACEOF
18287 for ac_lib in '' cap; do
18288 if test -z "$ac_lib"; then
18289 ac_res="none required"
18290 else
18291 ac_res=-l$ac_lib
18292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18293 fi
18294 if ac_fn_c_try_link "$LINENO"; then :
18295 ac_cv_search_cap_set_proc=$ac_res
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext
18299 if ${ac_cv_search_cap_set_proc+:} false; then :
18300 break
18301 fi
18302 done
18303 if ${ac_cv_search_cap_set_proc+:} false; then :
18304
18305 else
18306 ac_cv_search_cap_set_proc=no
18307 fi
18308 rm conftest.$ac_ext
18309 LIBS=$ac_func_search_save_LIBS
18310 fi
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
18312 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
18313 ac_res=$ac_cv_search_cap_set_proc
18314 if test "$ac_res" != no; then :
18315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18316 LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
18317 else
18318 as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
18319 fi
18320
18321 LIBS="$save_LIBS"
18322 else
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324 $as_echo "no" >&6; }
18325 fi
18326
18327
18328 for ac_header in sys/un.h
18329 do :
18330 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
18331 if test "x$ac_cv_header_sys_un_h" = xyes; then :
18332 cat >>confdefs.h <<_ACEOF
18333 #define HAVE_SYS_UN_H 1
18334 _ACEOF
18335 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
18336
18337 else
18338 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
18339
18340 fi
18341
18342 done
18343
18344
18345
18346 case "$host" in
18347 *-solaris*)
18348
18349 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
18350
18351 ;;
18352 esac
18353
18354 #
18355 # Time Zone Stuff
18356 #
18357 for ac_func in tzset
18358 do :
18359 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
18360 if test "x$ac_cv_func_tzset" = xyes; then :
18361 cat >>confdefs.h <<_ACEOF
18362 #define HAVE_TZSET 1
18363 _ACEOF
18364
18365 fi
18366 done
18367
18368
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
18370 $as_echo_n "checking for optarg declaration... " >&6; }
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373
18374 #include <unistd.h>
18375
18376 int
18377 main ()
18378 {
18379 optarg = 0;
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_compile "$LINENO"; then :
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18386 $as_echo "yes" >&6; }
18387 else
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18389 $as_echo "no" >&6; }
18390 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
18391
18392 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
18393
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18396
18397 #
18398 # Check for nanoseconds in file stats
18399 #
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
18401 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18404 #include <sys/fcntl.h>
18405 int
18406 main ()
18407 {
18408 struct stat s;
18409 return(s.st_mtim.tv_nsec);
18410
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_compile "$LINENO"; then :
18416
18417 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
18418
18419 fi
18420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18421
18422 #
18423 # Check for if_nametoindex() for IPv6 scoped addresses support
18424 #
18425 for ac_func in if_nametoindex
18426 do :
18427 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
18428 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
18429 cat >>confdefs.h <<_ACEOF
18430 #define HAVE_IF_NAMETOINDEX 1
18431 _ACEOF
18432
18433 fi
18434 done
18435
18436
18437 for ac_func in nanosleep usleep explicit_bzero
18438 do :
18439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18441 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18442 cat >>confdefs.h <<_ACEOF
18443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18444 _ACEOF
18445
18446 fi
18447 done
18448
18449
18450 ISC_ATOMIC_LIBS=""
18451 for ac_header in stdatomic.h
18452 do :
18453 ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
18454 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
18455 cat >>confdefs.h <<_ACEOF
18456 #define HAVE_STDATOMIC_H 1
18457 _ACEOF
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
18459 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18462 #include <stdatomic.h>
18463 int
18464 main ()
18465 {
18466 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18467
18468 ;
18469 return 0;
18470 }
18471 _ACEOF
18472 if ac_fn_c_try_compile "$LINENO"; then :
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
18474 $as_echo "stdatomic.h" >&6; }
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
18476 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h. */
18479 #include <stdatomic.h>
18480 int
18481 main ()
18482 {
18483 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18484
18485 ;
18486 return 0;
18487 }
18488 _ACEOF
18489 if ac_fn_c_try_link "$LINENO"; then :
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491 $as_echo "no" >&6; }
18492 else
18493 ISC_ATOMIC_LIBS="-latomic"
18494 save_LIBS="$LIBS"
18495 LIBS="$LIBS $ISC_ATOMIC_LIBS"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498 #include <stdatomic.h>
18499 int
18500 main ()
18501 {
18502 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18503
18504 ;
18505 return 0;
18506 }
18507 _ACEOF
18508 if ac_fn_c_try_link "$LINENO"; then :
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18510 $as_echo "yes" >&6; }
18511 else
18512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18514 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
18515 See \`config.log' for more details" "$LINENO" 5; }
18516 fi
18517 rm -f core conftest.err conftest.$ac_objext \
18518 conftest$ac_exeext conftest.$ac_ext
18519 LIBS="$save_LIBS"
18520
18521 fi
18522 rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
18524
18525 else
18526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18528 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
18529 See \`config.log' for more details" "$LINENO" 5; }
18530
18531 fi
18532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533 else
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
18535 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18538 #include <inttypes.h>
18539 int
18540 main ()
18541 {
18542 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_compile "$LINENO"; then :
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
18550 $as_echo "__atomic builtins" >&6; }
18551
18552 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
18553
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
18555 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18558 #include <inttypes.h>
18559 int
18560 main ()
18561 {
18562 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
18563
18564 ;
18565 return 0;
18566 }
18567 _ACEOF
18568 if ac_fn_c_try_link "$LINENO"; then :
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18571 else
18572 ISC_ATOMIC_LIBS="-latomic"
18573 save_LIBS="$LIBS"
18574 LIBS="$LIBS $ISC_ATOMIC_LIBS"
18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576 /* end confdefs.h. */
18577 #include <inttypes.h>
18578 int
18579 main ()
18580 {
18581 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
18582
18583 ;
18584 return 0;
18585 }
18586 _ACEOF
18587 if ac_fn_c_try_link "$LINENO"; then :
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18589 $as_echo "yes" >&6; }
18590 else
18591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18593 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
18594 See \`config.log' for more details" "$LINENO" 5; }
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18598 LIBS="$save_LIBS"
18599
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18603
18604 else
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
18606 $as_echo "__sync builtins" >&6; }
18607
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610
18611 fi
18612
18613 done
18614
18615 LIBS="$LIBS $ISC_ATOMIC_LIBS"
18616
18617 for ac_header in uchar.h
18618 do :
18619 ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
18620 if test "x$ac_cv_header_uchar_h" = xyes; then :
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_UCHAR_H 1
18623 _ACEOF
18624
18625 fi
18626
18627 done
18628
18629
18630 #
18631 # Check for __builtin_unreachable
18632 #
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
18634 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18637
18638 int
18639 main ()
18640 {
18641 __builtin_unreachable();
18642
18643 ;
18644 return 0;
18645 }
18646 _ACEOF
18647 if ac_fn_c_try_link "$LINENO"; then :
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18649 $as_echo "yes" >&6; }
18650
18651 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
18652
18653
18654 else
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18656 $as_echo "no" >&6; }
18657
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661
18662 #
18663 # Check for __builtin_expect
18664 #
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
18666 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669
18670 int
18671 main ()
18672 {
18673
18674 return (__builtin_expect(1, 1) ? 1 : 0);
18675
18676 ;
18677 return 0;
18678 }
18679 _ACEOF
18680 if ac_fn_c_try_link "$LINENO"; then :
18681
18682 have_builtin_expect=yes
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18685
18686 else
18687
18688 have_builtin_expect=no
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690 $as_echo "no" >&6; }
18691
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext \
18694 conftest$ac_exeext conftest.$ac_ext
18695 if test "yes" = "$have_builtin_expect"; then
18696
18697 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18698
18699 fi
18700
18701 #
18702 # Check for __builtin_clz
18703 #
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
18705 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18708
18709 int
18710 main ()
18711 {
18712
18713 return (__builtin_clz(0xff) == 24 ? 1 : 0);
18714
18715 ;
18716 return 0;
18717 }
18718 _ACEOF
18719 if ac_fn_c_try_link "$LINENO"; then :
18720
18721 have_builtin_clz=yes
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18724
18725 else
18726
18727 have_builtin_clz=no
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730
18731 fi
18732 rm -f core conftest.err conftest.$ac_objext \
18733 conftest$ac_exeext conftest.$ac_ext
18734 if test "yes" = "$have_builtin_clz"; then
18735
18736 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
18737
18738 fi
18739
18740 #
18741 # Activate "rrset-order fixed" or not?
18742 #
18743 # Check whether --enable-fixed-rrset was given.
18744 if test "${enable_fixed_rrset+set}" = set; then :
18745 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
18746 else
18747 enable_fixed="no"
18748 fi
18749
18750 case "$enable_fixed" in
18751 yes)
18752
18753 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
18754
18755 ;;
18756 no)
18757 ;;
18758 *)
18759 ;;
18760 esac
18761
18762 #
18763 # Activate dnstap?
18764 #
18765 # Check whether --enable-dnstap was given.
18766 if test "${enable_dnstap+set}" = set; then :
18767 enableval=$enable_dnstap; use_dnstap=$enableval
18768 else
18769 use_dnstap=no
18770 fi
18771
18772
18773 DNSTAP=
18774 DNSTAPSRCS=
18775 DNSTAPOBJS=
18776 DNSTAPTARGETS=
18777 if test "x$use_dnstap" != "xno"; then
18778
18779 # Check whether --with-protobuf-c was given.
18780 if test "${with_protobuf_c+set}" = set; then :
18781 withval=$with_protobuf_c;
18782 # workaround for protobuf-c includes at old dir
18783 # before protobuf-c-1.0.0
18784 if test -f $withval/include/google/protobuf-c/protobuf-c.h
18785 then
18786 CFLAGS="$CFLAGS -I$withval/include/google"
18787 else
18788 CFLAGS="$CFLAGS -I$withval/include"
18789 fi
18790 LDFLAGS="$LDFLAGS -L$withval/lib"
18791 # Extract the first word of "protoc-c", so it can be a program name with args.
18792 set dummy protoc-c; ac_word=$2
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18794 $as_echo_n "checking for $ac_word... " >&6; }
18795 if ${ac_cv_path_PROTOC_C+:} false; then :
18796 $as_echo_n "(cached) " >&6
18797 else
18798 case $PROTOC_C in
18799 [\\/]* | ?:[\\/]*)
18800 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18801 ;;
18802 *)
18803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18804 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
18805 do
18806 IFS=$as_save_IFS
18807 test -z "$as_dir" && as_dir=.
18808 for ac_exec_ext in '' $ac_executable_extensions; do
18809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18810 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18812 break 2
18813 fi
18814 done
18815 done
18816 IFS=$as_save_IFS
18817
18818 ;;
18819 esac
18820 fi
18821 PROTOC_C=$ac_cv_path_PROTOC_C
18822 if test -n "$PROTOC_C"; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18824 $as_echo "$PROTOC_C" >&6; }
18825 else
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18827 $as_echo "no" >&6; }
18828 fi
18829
18830
18831
18832 else
18833
18834 # workaround for protobuf-c includes at old dir
18835 # before protobuf-c-1.0.0
18836 if test -f /usr/include/google/protobuf-c/protobuf-c.h
18837 then
18838 CFLAGS="$CFLAGS -I/usr/include/google"
18839 else
18840 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
18841 then
18842 CFLAGS="$CFLAGS -I/usr/local/include/google"
18843 LDFLAGS="$LDFLAGS -L/usr/local/lib"
18844 fi
18845 fi
18846 # Extract the first word of "protoc-c", so it can be a program name with args.
18847 set dummy protoc-c; ac_word=$2
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18849 $as_echo_n "checking for $ac_word... " >&6; }
18850 if ${ac_cv_path_PROTOC_C+:} false; then :
18851 $as_echo_n "(cached) " >&6
18852 else
18853 case $PROTOC_C in
18854 [\\/]* | ?:[\\/]*)
18855 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18856 ;;
18857 *)
18858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18859 for as_dir in $PATH
18860 do
18861 IFS=$as_save_IFS
18862 test -z "$as_dir" && as_dir=.
18863 for ac_exec_ext in '' $ac_executable_extensions; do
18864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18865 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18867 break 2
18868 fi
18869 done
18870 done
18871 IFS=$as_save_IFS
18872
18873 ;;
18874 esac
18875 fi
18876 PROTOC_C=$ac_cv_path_PROTOC_C
18877 if test -n "$PROTOC_C"; then
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18879 $as_echo "$PROTOC_C" >&6; }
18880 else
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18882 $as_echo "no" >&6; }
18883 fi
18884
18885
18886
18887 fi
18888
18889 if test -z "$PROTOC_C"; then
18890 as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
18891 fi
18892
18893 # Check whether --with-libfstrm was given.
18894 if test "${with_libfstrm+set}" = set; then :
18895 withval=$with_libfstrm;
18896 CFLAGS="$CFLAGS -I$withval/include"
18897 LDFLAGS="$LDFLAGS -L$withval/lib"
18898 # Extract the first word of "fstrm_capture", so it can be a program name with args.
18899 set dummy fstrm_capture; ac_word=$2
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18901 $as_echo_n "checking for $ac_word... " >&6; }
18902 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
18903 $as_echo_n "(cached) " >&6
18904 else
18905 case $FSTRM_CAPTURE in
18906 [\\/]* | ?:[\\/]*)
18907 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
18908 ;;
18909 *)
18910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18911 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
18912 do
18913 IFS=$as_save_IFS
18914 test -z "$as_dir" && as_dir=.
18915 for ac_exec_ext in '' $ac_executable_extensions; do
18916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18917 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
18918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18919 break 2
18920 fi
18921 done
18922 done
18923 IFS=$as_save_IFS
18924
18925 ;;
18926 esac
18927 fi
18928 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
18929 if test -n "$FSTRM_CAPTURE"; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
18931 $as_echo "$FSTRM_CAPTURE" >&6; }
18932 else
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18934 $as_echo "no" >&6; }
18935 fi
18936
18937
18938
18939 else
18940
18941 # Extract the first word of "fstrm_capture", so it can be a program name with args.
18942 set dummy fstrm_capture; ac_word=$2
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18944 $as_echo_n "checking for $ac_word... " >&6; }
18945 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
18946 $as_echo_n "(cached) " >&6
18947 else
18948 case $FSTRM_CAPTURE in
18949 [\\/]* | ?:[\\/]*)
18950 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
18951 ;;
18952 *)
18953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954 for as_dir in $PATH
18955 do
18956 IFS=$as_save_IFS
18957 test -z "$as_dir" && as_dir=.
18958 for ac_exec_ext in '' $ac_executable_extensions; do
18959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
18961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18962 break 2
18963 fi
18964 done
18965 done
18966 IFS=$as_save_IFS
18967
18968 ;;
18969 esac
18970 fi
18971 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
18972 if test -n "$FSTRM_CAPTURE"; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
18974 $as_echo "$FSTRM_CAPTURE" >&6; }
18975 else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 fi
18979
18980
18981
18982 fi
18983
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18986 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18987 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18988 $as_echo_n "(cached) " >&6
18989 else
18990 ac_func_search_save_LIBS=$LIBS
18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992 /* end confdefs.h. */
18993
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
18997 #ifdef __cplusplus
18998 extern "C"
18999 #endif
19000 char fstrm_iothr_init ();
19001 int
19002 main ()
19003 {
19004 return fstrm_iothr_init ();
19005 ;
19006 return 0;
19007 }
19008 _ACEOF
19009 for ac_lib in '' fstrm; do
19010 if test -z "$ac_lib"; then
19011 ac_res="none required"
19012 else
19013 ac_res=-l$ac_lib
19014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19015 fi
19016 if ac_fn_c_try_link "$LINENO"; then :
19017 ac_cv_search_fstrm_iothr_init=$ac_res
19018 fi
19019 rm -f core conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext
19021 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19022 break
19023 fi
19024 done
19025 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19026
19027 else
19028 ac_cv_search_fstrm_iothr_init=no
19029 fi
19030 rm conftest.$ac_ext
19031 LIBS=$ac_func_search_save_LIBS
19032 fi
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
19034 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
19035 ac_res=$ac_cv_search_fstrm_iothr_init
19036 if test "$ac_res" != no; then :
19037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19038
19039 else
19040 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
19041 fi
19042
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
19044 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
19045 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19046 $as_echo_n "(cached) " >&6
19047 else
19048 ac_func_search_save_LIBS=$LIBS
19049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19051
19052 /* Override any GCC internal prototype to avoid an error.
19053 Use char because int might match the return type of a GCC
19054 builtin and then its argument prototype would still apply. */
19055 #ifdef __cplusplus
19056 extern "C"
19057 #endif
19058 char protobuf_c_message_pack ();
19059 int
19060 main ()
19061 {
19062 return protobuf_c_message_pack ();
19063 ;
19064 return 0;
19065 }
19066 _ACEOF
19067 for ac_lib in '' protobuf-c; do
19068 if test -z "$ac_lib"; then
19069 ac_res="none required"
19070 else
19071 ac_res=-l$ac_lib
19072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19073 fi
19074 if ac_fn_c_try_link "$LINENO"; then :
19075 ac_cv_search_protobuf_c_message_pack=$ac_res
19076 fi
19077 rm -f core conftest.err conftest.$ac_objext \
19078 conftest$ac_exeext
19079 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19080 break
19081 fi
19082 done
19083 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19084
19085 else
19086 ac_cv_search_protobuf_c_message_pack=no
19087 fi
19088 rm conftest.$ac_ext
19089 LIBS=$ac_func_search_save_LIBS
19090 fi
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
19092 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
19093 ac_res=$ac_cv_search_protobuf_c_message_pack
19094 if test "$ac_res" != no; then :
19095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19096
19097 else
19098 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
19099 fi
19100
19101
19102
19103 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
19104
19105 DNSTAP=dnstap
19106 DNSTAPSRCS='${DNSTAPSRCS}'
19107 DNSTAPOBJS='${DNSTAPOBJS}'
19108 DNSTAPTARGETS='${DNSTAPTARGETS}'
19109 fi
19110
19111
19112
19113
19114
19115 #
19116 # The following sets up how non-blocking i/o is established.
19117 # cygwin and solaris 2.x (x<5) require special handling.
19118 #
19119 case "$host" in
19120 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
19121 ;;
19122 *-solaris2.[01234])
19123 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
19124
19125
19126 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
19127
19128 ;;
19129 *)
19130 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
19131
19132 ;;
19133 esac
19134 #
19135 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
19136 # This prevents the source address being set.
19137 #
19138 case "$host" in
19139 *-solaris2.[012345]|*-solaris2.5.1)
19140
19141 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
19142
19143 ;;
19144 esac
19145 #
19146 # The following sections deal with tools used for formatting
19147 # the documentation. They are all optional, unless you are
19148 # a developer editing the documentation source.
19149 #
19150
19151 #
19152 # Look for TeX.
19153 #
19154
19155 for ac_prog in latex
19156 do
19157 # Extract the first word of "$ac_prog", so it can be a program name with args.
19158 set dummy $ac_prog; ac_word=$2
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19160 $as_echo_n "checking for $ac_word... " >&6; }
19161 if ${ac_cv_path_LATEX+:} false; then :
19162 $as_echo_n "(cached) " >&6
19163 else
19164 case $LATEX in
19165 [\\/]* | ?:[\\/]*)
19166 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
19167 ;;
19168 *)
19169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19170 for as_dir in $PATH
19171 do
19172 IFS=$as_save_IFS
19173 test -z "$as_dir" && as_dir=.
19174 for ac_exec_ext in '' $ac_executable_extensions; do
19175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19176 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
19177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19178 break 2
19179 fi
19180 done
19181 done
19182 IFS=$as_save_IFS
19183
19184 ;;
19185 esac
19186 fi
19187 LATEX=$ac_cv_path_LATEX
19188 if test -n "$LATEX"; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
19190 $as_echo "$LATEX" >&6; }
19191 else
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19194 fi
19195
19196
19197 test -n "$LATEX" && break
19198 done
19199 test -n "$LATEX" || LATEX="latex"
19200
19201
19202
19203 for ac_prog in pdflatex
19204 do
19205 # Extract the first word of "$ac_prog", so it can be a program name with args.
19206 set dummy $ac_prog; ac_word=$2
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19208 $as_echo_n "checking for $ac_word... " >&6; }
19209 if ${ac_cv_path_PDFLATEX+:} false; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 case $PDFLATEX in
19213 [\\/]* | ?:[\\/]*)
19214 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
19215 ;;
19216 *)
19217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19218 for as_dir in $PATH
19219 do
19220 IFS=$as_save_IFS
19221 test -z "$as_dir" && as_dir=.
19222 for ac_exec_ext in '' $ac_executable_extensions; do
19223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19224 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
19225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19226 break 2
19227 fi
19228 done
19229 done
19230 IFS=$as_save_IFS
19231
19232 ;;
19233 esac
19234 fi
19235 PDFLATEX=$ac_cv_path_PDFLATEX
19236 if test -n "$PDFLATEX"; then
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
19238 $as_echo "$PDFLATEX" >&6; }
19239 else
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241 $as_echo "no" >&6; }
19242 fi
19243
19244
19245 test -n "$PDFLATEX" && break
19246 done
19247 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
19248
19249
19250
19251 for ac_prog in dblatex
19252 do
19253 # Extract the first word of "$ac_prog", so it can be a program name with args.
19254 set dummy $ac_prog; ac_word=$2
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19256 $as_echo_n "checking for $ac_word... " >&6; }
19257 if ${ac_cv_path_DBLATEX+:} false; then :
19258 $as_echo_n "(cached) " >&6
19259 else
19260 case $DBLATEX in
19261 [\\/]* | ?:[\\/]*)
19262 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
19263 ;;
19264 *)
19265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19266 for as_dir in $PATH
19267 do
19268 IFS=$as_save_IFS
19269 test -z "$as_dir" && as_dir=.
19270 for ac_exec_ext in '' $ac_executable_extensions; do
19271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19272 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
19273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19274 break 2
19275 fi
19276 done
19277 done
19278 IFS=$as_save_IFS
19279
19280 ;;
19281 esac
19282 fi
19283 DBLATEX=$ac_cv_path_DBLATEX
19284 if test -n "$DBLATEX"; then
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
19286 $as_echo "$DBLATEX" >&6; }
19287 else
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289 $as_echo "no" >&6; }
19290 fi
19291
19292
19293 test -n "$DBLATEX" && break
19294 done
19295 test -n "$DBLATEX" || DBLATEX="dblatex"
19296
19297
19298
19299 #
19300 # Look for w3m
19301 #
19302
19303 for ac_prog in w3m
19304 do
19305 # Extract the first word of "$ac_prog", so it can be a program name with args.
19306 set dummy $ac_prog; ac_word=$2
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19308 $as_echo_n "checking for $ac_word... " >&6; }
19309 if ${ac_cv_path_W3M+:} false; then :
19310 $as_echo_n "(cached) " >&6
19311 else
19312 case $W3M in
19313 [\\/]* | ?:[\\/]*)
19314 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
19315 ;;
19316 *)
19317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19318 for as_dir in $PATH
19319 do
19320 IFS=$as_save_IFS
19321 test -z "$as_dir" && as_dir=.
19322 for ac_exec_ext in '' $ac_executable_extensions; do
19323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19324 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
19325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19326 break 2
19327 fi
19328 done
19329 done
19330 IFS=$as_save_IFS
19331
19332 ;;
19333 esac
19334 fi
19335 W3M=$ac_cv_path_W3M
19336 if test -n "$W3M"; then
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
19338 $as_echo "$W3M" >&6; }
19339 else
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341 $as_echo "no" >&6; }
19342 fi
19343
19344
19345 test -n "$W3M" && break
19346 done
19347 test -n "$W3M" || W3M="w3m"
19348
19349
19350
19351 #
19352 # Look for pandoc
19353 #
19354 # Extract the first word of "pandoc", so it can be a program name with args.
19355 set dummy pandoc; ac_word=$2
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19357 $as_echo_n "checking for $ac_word... " >&6; }
19358 if ${ac_cv_path_PANDOC+:} false; then :
19359 $as_echo_n "(cached) " >&6
19360 else
19361 case $PANDOC in
19362 [\\/]* | ?:[\\/]*)
19363 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
19364 ;;
19365 *)
19366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19367 for as_dir in $PATH
19368 do
19369 IFS=$as_save_IFS
19370 test -z "$as_dir" && as_dir=.
19371 for ac_exec_ext in '' $ac_executable_extensions; do
19372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19373 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
19374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19375 break 2
19376 fi
19377 done
19378 done
19379 IFS=$as_save_IFS
19380
19381 test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
19382 ;;
19383 esac
19384 fi
19385 PANDOC=$ac_cv_path_PANDOC
19386 if test -n "$PANDOC"; then
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
19388 $as_echo "$PANDOC" >&6; }
19389 else
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391 $as_echo "no" >&6; }
19392 fi
19393
19394
19395
19396
19397
19398 #
19399 # Look for xsltproc (libxslt)
19400 #
19401
19402 # Extract the first word of "xsltproc", so it can be a program name with args.
19403 set dummy xsltproc; ac_word=$2
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19405 $as_echo_n "checking for $ac_word... " >&6; }
19406 if ${ac_cv_path_XSLTPROC+:} false; then :
19407 $as_echo_n "(cached) " >&6
19408 else
19409 case $XSLTPROC in
19410 [\\/]* | ?:[\\/]*)
19411 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19412 ;;
19413 *)
19414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415 for as_dir in $PATH
19416 do
19417 IFS=$as_save_IFS
19418 test -z "$as_dir" && as_dir=.
19419 for ac_exec_ext in '' $ac_executable_extensions; do
19420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19421 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19423 break 2
19424 fi
19425 done
19426 done
19427 IFS=$as_save_IFS
19428
19429 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
19430 ;;
19431 esac
19432 fi
19433 XSLTPROC=$ac_cv_path_XSLTPROC
19434 if test -n "$XSLTPROC"; then
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19436 $as_echo "$XSLTPROC" >&6; }
19437 else
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439 $as_echo "no" >&6; }
19440 fi
19441
19442
19443
19444
19445 #
19446 # Look for xmllint (libxml2)
19447 #
19448
19449 # Extract the first word of "xmllint", so it can be a program name with args.
19450 set dummy xmllint; ac_word=$2
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19452 $as_echo_n "checking for $ac_word... " >&6; }
19453 if ${ac_cv_path_XMLLINT+:} false; then :
19454 $as_echo_n "(cached) " >&6
19455 else
19456 case $XMLLINT in
19457 [\\/]* | ?:[\\/]*)
19458 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
19459 ;;
19460 *)
19461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19462 for as_dir in $PATH
19463 do
19464 IFS=$as_save_IFS
19465 test -z "$as_dir" && as_dir=.
19466 for ac_exec_ext in '' $ac_executable_extensions; do
19467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19468 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
19469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19470 break 2
19471 fi
19472 done
19473 done
19474 IFS=$as_save_IFS
19475
19476 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
19477 ;;
19478 esac
19479 fi
19480 XMLLINT=$ac_cv_path_XMLLINT
19481 if test -n "$XMLLINT"; then
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19483 $as_echo "$XMLLINT" >&6; }
19484 else
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486 $as_echo "no" >&6; }
19487 fi
19488
19489
19490
19491
19492 #
19493 # Look for Doxygen
19494 #
19495
19496 # Extract the first word of "doxygen", so it can be a program name with args.
19497 set dummy doxygen; ac_word=$2
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19499 $as_echo_n "checking for $ac_word... " >&6; }
19500 if ${ac_cv_path_DOXYGEN+:} false; then :
19501 $as_echo_n "(cached) " >&6
19502 else
19503 case $DOXYGEN in
19504 [\\/]* | ?:[\\/]*)
19505 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19506 ;;
19507 *)
19508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19509 for as_dir in $PATH
19510 do
19511 IFS=$as_save_IFS
19512 test -z "$as_dir" && as_dir=.
19513 for ac_exec_ext in '' $ac_executable_extensions; do
19514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19515 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19517 break 2
19518 fi
19519 done
19520 done
19521 IFS=$as_save_IFS
19522
19523 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
19524 ;;
19525 esac
19526 fi
19527 DOXYGEN=$ac_cv_path_DOXYGEN
19528 if test -n "$DOXYGEN"; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19530 $as_echo "$DOXYGEN" >&6; }
19531 else
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19534 fi
19535
19536
19537
19538
19539 #
19540 # Look for curl
19541 #
19542
19543 # Extract the first word of "curl", so it can be a program name with args.
19544 set dummy curl; ac_word=$2
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19546 $as_echo_n "checking for $ac_word... " >&6; }
19547 if ${ac_cv_path_CURL+:} false; then :
19548 $as_echo_n "(cached) " >&6
19549 else
19550 case $CURL in
19551 [\\/]* | ?:[\\/]*)
19552 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
19553 ;;
19554 *)
19555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19556 for as_dir in $PATH
19557 do
19558 IFS=$as_save_IFS
19559 test -z "$as_dir" && as_dir=.
19560 for ac_exec_ext in '' $ac_executable_extensions; do
19561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19562 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
19563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19564 break 2
19565 fi
19566 done
19567 done
19568 IFS=$as_save_IFS
19569
19570 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
19571 ;;
19572 esac
19573 fi
19574 CURL=$ac_cv_path_CURL
19575 if test -n "$CURL"; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
19577 $as_echo "$CURL" >&6; }
19578 else
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580 $as_echo "no" >&6; }
19581 fi
19582
19583
19584
19585
19586 #
19587 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
19588 # in a number of directories:
19589 #
19590 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
19591 #
19592 # If the file FILENAME is found in one of the DIRECTORIES, the shell
19593 # variable VARIABLE is defined to its absolute pathname. Otherwise,
19594 # it is set to FILENAME, with no directory prefix (that's not terribly
19595 # useful, but looks less confusing in substitutions than leaving it
19596 # empty). The variable VARIABLE will be substituted into output files.
19597 #
19598
19599
19600
19601 #
19602 # Look for Docbook-XSL stylesheets. Location probably varies by system.
19603 # If it's not explicitly specified, guess where it might be found, based on
19604 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
19605 # of at the moment).
19606 #
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
19608 $as_echo_n "checking for Docbook-XSL path... " >&6; }
19609
19610 # Check whether --with-docbook-xsl was given.
19611 if test "${with_docbook_xsl+set}" = set; then :
19612 withval=$with_docbook_xsl; docbook_path="$withval"
19613 else
19614 docbook_path="auto"
19615 fi
19616
19617 case "$docbook_path" in
19618 auto)
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
19620 $as_echo "auto" >&6; }
19621 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /usr/share/sgml/docbook/xsl-stylesheets /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl"
19622 ;;
19623 *)
19624 docbook_xsl_trees="$withval"
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
19626 $as_echo "$docbook_xsl_trees" >&6; }
19627 ;;
19628 esac
19629
19630 #
19631 # Look for stylesheets we need.
19632 #
19633
19634
19635 XSLT_DOCBOOK_STYLE_HTML=""
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
19637 $as_echo_n "checking for html/docbook.xsl... " >&6; }
19638 for d in $docbook_xsl_trees
19639 do
19640 f=$d/html/docbook.xsl
19641 if test -f $f
19642 then
19643 XSLT_DOCBOOK_STYLE_HTML=$f
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19645 $as_echo "$f" >&6; }
19646 break
19647 fi
19648 done
19649 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
19650 then
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19652 $as_echo "\"not found\"" >&6; };
19653 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
19654 fi
19655
19656
19657
19658 XSLT_DOCBOOK_STYLE_XHTML=""
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
19660 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
19661 for d in $docbook_xsl_trees
19662 do
19663 f=$d/xhtml/docbook.xsl
19664 if test -f $f
19665 then
19666 XSLT_DOCBOOK_STYLE_XHTML=$f
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19668 $as_echo "$f" >&6; }
19669 break
19670 fi
19671 done
19672 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
19673 then
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19675 $as_echo "\"not found\"" >&6; };
19676 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
19677 fi
19678
19679
19680
19681 XSLT_DOCBOOK_STYLE_MAN=""
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
19683 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
19684 for d in $docbook_xsl_trees
19685 do
19686 f=$d/manpages/docbook.xsl
19687 if test -f $f
19688 then
19689 XSLT_DOCBOOK_STYLE_MAN=$f
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19691 $as_echo "$f" >&6; }
19692 break
19693 fi
19694 done
19695 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
19696 then
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19698 $as_echo "\"not found\"" >&6; };
19699 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
19700 fi
19701
19702
19703
19704 XSLT_DOCBOOK_CHUNK_HTML=""
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
19706 $as_echo_n "checking for html/chunk.xsl... " >&6; }
19707 for d in $docbook_xsl_trees
19708 do
19709 f=$d/html/chunk.xsl
19710 if test -f $f
19711 then
19712 XSLT_DOCBOOK_CHUNK_HTML=$f
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19714 $as_echo "$f" >&6; }
19715 break
19716 fi
19717 done
19718 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
19719 then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19721 $as_echo "\"not found\"" >&6; };
19722 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
19723 fi
19724
19725
19726
19727 XSLT_DOCBOOK_CHUNK_XHTML=""
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
19729 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
19730 for d in $docbook_xsl_trees
19731 do
19732 f=$d/xhtml/chunk.xsl
19733 if test -f $f
19734 then
19735 XSLT_DOCBOOK_CHUNK_XHTML=$f
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19737 $as_echo "$f" >&6; }
19738 break
19739 fi
19740 done
19741 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
19742 then
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19744 $as_echo "\"not found\"" >&6; };
19745 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
19746 fi
19747
19748
19749
19750 XSLT_DOCBOOK_CHUNKTOC_HTML=""
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
19752 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
19753 for d in $docbook_xsl_trees
19754 do
19755 f=$d/html/chunktoc.xsl
19756 if test -f $f
19757 then
19758 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19760 $as_echo "$f" >&6; }
19761 break
19762 fi
19763 done
19764 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
19765 then
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19767 $as_echo "\"not found\"" >&6; };
19768 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
19769 fi
19770
19771
19772
19773 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
19775 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
19776 for d in $docbook_xsl_trees
19777 do
19778 f=$d/xhtml/chunktoc.xsl
19779 if test -f $f
19780 then
19781 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19783 $as_echo "$f" >&6; }
19784 break
19785 fi
19786 done
19787 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
19788 then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19790 $as_echo "\"not found\"" >&6; };
19791 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
19792 fi
19793
19794
19795
19796 XSLT_DOCBOOK_MAKETOC_HTML=""
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
19798 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
19799 for d in $docbook_xsl_trees
19800 do
19801 f=$d/html/maketoc.xsl
19802 if test -f $f
19803 then
19804 XSLT_DOCBOOK_MAKETOC_HTML=$f
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19806 $as_echo "$f" >&6; }
19807 break
19808 fi
19809 done
19810 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
19811 then
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19813 $as_echo "\"not found\"" >&6; };
19814 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
19815 fi
19816
19817
19818
19819 XSLT_DOCBOOK_MAKETOC_XHTML=""
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
19821 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
19822 for d in $docbook_xsl_trees
19823 do
19824 f=$d/xhtml/maketoc.xsl
19825 if test -f $f
19826 then
19827 XSLT_DOCBOOK_MAKETOC_XHTML=$f
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19829 $as_echo "$f" >&6; }
19830 break
19831 fi
19832 done
19833 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
19834 then
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19836 $as_echo "\"not found\"" >&6; };
19837 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
19838 fi
19839
19840
19841
19842 #
19843 # IDN support using libidn2
19844 #
19845
19846 LIBIDN2_CFLAGS=
19847 LIBIDN2_LDFLAGS=
19848 LIBIDN2_LIBS=
19849
19850 # Check whether --with-libidn2 was given.
19851 if test "${with_libidn2+set}" = set; then :
19852 withval=$with_libidn2; with_libidn2="$withval"
19853 else
19854 with_libidn2="no"
19855 fi
19856
19857 case $with_libidn2 in #(
19858 yes) :
19859
19860 pkg_failed=no
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
19862 $as_echo_n "checking for libidn2... " >&6; }
19863
19864 if test -n "$LIBIDN2_CFLAGS"; then
19865 pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
19866 elif test -n "$PKG_CONFIG"; then
19867 if test -n "$PKG_CONFIG" && \
19868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
19869 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
19870 ac_status=$?
19871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19872 test $ac_status = 0; }; then
19873 pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
19874 test "x$?" != "x0" && pkg_failed=yes
19875 else
19876 pkg_failed=yes
19877 fi
19878 else
19879 pkg_failed=untried
19880 fi
19881 if test -n "$LIBIDN2_LIBS"; then
19882 pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
19883 elif test -n "$PKG_CONFIG"; then
19884 if test -n "$PKG_CONFIG" && \
19885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
19886 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
19887 ac_status=$?
19888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19889 test $ac_status = 0; }; then
19890 pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
19891 test "x$?" != "x0" && pkg_failed=yes
19892 else
19893 pkg_failed=yes
19894 fi
19895 else
19896 pkg_failed=untried
19897 fi
19898
19899
19900
19901 if test $pkg_failed = yes; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903 $as_echo "no" >&6; }
19904
19905 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19906 _pkg_short_errors_supported=yes
19907 else
19908 _pkg_short_errors_supported=no
19909 fi
19910 if test $_pkg_short_errors_supported = yes; then
19911 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
19912 else
19913 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
19914 fi
19915 # Put the nasty error message in config.log where it belongs
19916 echo "$LIBIDN2_PKG_ERRORS" >&5
19917
19918 as_fn_error $? "Package requirements (libidn2) were not met:
19919
19920 $LIBIDN2_PKG_ERRORS
19921
19922 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19923 installed software in a non-standard prefix.
19924
19925 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
19926 and LIBIDN2_LIBS to avoid the need to call pkg-config.
19927 See the pkg-config man page for more details." "$LINENO" 5
19928 elif test $pkg_failed = untried; then
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930 $as_echo "no" >&6; }
19931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19933 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19934 is in your PATH or set the PKG_CONFIG environment variable to the full
19935 path to pkg-config.
19936
19937 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
19938 and LIBIDN2_LIBS to avoid the need to call pkg-config.
19939 See the pkg-config man page for more details.
19940
19941 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19942 See \`config.log' for more details" "$LINENO" 5; }
19943 else
19944 LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
19945 LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19947 $as_echo "yes" >&6; }
19948
19949 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
19950
19951 fi ;; #(
19952 no) :
19953 ;; #(
19954 *) :
19955 save_CFLAGS="$CFLAGS"
19956 save_CPPFLAGS="$CPPFLAGS"
19957 save_LDFLAGS="$LDFLAGS"
19958 save_LIBS="$LIBS"
19959 LIBIDN2_CFLAGS="-I$with_libidn2/include"
19960 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
19961 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
19962 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
19963 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
19964 for ac_header in idn2.h
19965 do :
19966 ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
19967 if test "x$ac_cv_header_idn2_h" = xyes; then :
19968 cat >>confdefs.h <<_ACEOF
19969 #define HAVE_IDN2_H 1
19970 _ACEOF
19971
19972 else
19973 as_fn_error $? "idn2.h not found" "$LINENO" 5
19974 fi
19975
19976 done
19977
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
19979 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
19980 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 ac_func_search_save_LIBS=$LIBS
19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19986
19987 /* Override any GCC internal prototype to avoid an error.
19988 Use char because int might match the return type of a GCC
19989 builtin and then its argument prototype would still apply. */
19990 #ifdef __cplusplus
19991 extern "C"
19992 #endif
19993 char idn2_to_ascii_lz ();
19994 int
19995 main ()
19996 {
19997 return idn2_to_ascii_lz ();
19998 ;
19999 return 0;
20000 }
20001 _ACEOF
20002 for ac_lib in '' idn2; do
20003 if test -z "$ac_lib"; then
20004 ac_res="none required"
20005 else
20006 ac_res=-l$ac_lib
20007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20008 fi
20009 if ac_fn_c_try_link "$LINENO"; then :
20010 ac_cv_search_idn2_to_ascii_lz=$ac_res
20011 fi
20012 rm -f core conftest.err conftest.$ac_objext \
20013 conftest$ac_exeext
20014 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
20015 break
20016 fi
20017 done
20018 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
20019
20020 else
20021 ac_cv_search_idn2_to_ascii_lz=no
20022 fi
20023 rm conftest.$ac_ext
20024 LIBS=$ac_func_search_save_LIBS
20025 fi
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
20027 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
20028 ac_res=$ac_cv_search_idn2_to_ascii_lz
20029 if test "$ac_res" != no; then :
20030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20031 LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
20032
20033 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
20034
20035 else
20036 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
20037 fi
20038
20039 CFLAGS="$save_CFLAGS"
20040 CPPFLAGS="$save_CPPFLAGS"
20041 LDFLAGS="$save_LDFLAGS"
20042 LIBS="$save_LIBS" ;; #(
20043 *) :
20044 ;;
20045 esac
20046
20047
20048
20049
20050 #
20051 # Check whether to build with cmocka unit testing framework
20052 #
20053
20054
20055 # Check whether --with-cmocka was given.
20056 if test "${with_cmocka+set}" = set; then :
20057 withval=$with_cmocka;
20058 else
20059 with_cmocka=detect
20060 fi
20061
20062
20063 case $with_cmocka in #(
20064 no) :
20065 ;; #(
20066 detect) :
20067
20068 pkg_failed=no
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
20070 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
20071
20072 if test -n "$CMOCKA_CFLAGS"; then
20073 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
20074 elif test -n "$PKG_CONFIG"; then
20075 if test -n "$PKG_CONFIG" && \
20076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20077 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20078 ac_status=$?
20079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20080 test $ac_status = 0; }; then
20081 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
20082 test "x$?" != "x0" && pkg_failed=yes
20083 else
20084 pkg_failed=yes
20085 fi
20086 else
20087 pkg_failed=untried
20088 fi
20089 if test -n "$CMOCKA_LIBS"; then
20090 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
20091 elif test -n "$PKG_CONFIG"; then
20092 if test -n "$PKG_CONFIG" && \
20093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20094 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20095 ac_status=$?
20096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20097 test $ac_status = 0; }; then
20098 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
20099 test "x$?" != "x0" && pkg_failed=yes
20100 else
20101 pkg_failed=yes
20102 fi
20103 else
20104 pkg_failed=untried
20105 fi
20106
20107
20108
20109 if test $pkg_failed = yes; then
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20111 $as_echo "no" >&6; }
20112
20113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20114 _pkg_short_errors_supported=yes
20115 else
20116 _pkg_short_errors_supported=no
20117 fi
20118 if test $_pkg_short_errors_supported = yes; then
20119 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20120 else
20121 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20122 fi
20123 # Put the nasty error message in config.log where it belongs
20124 echo "$CMOCKA_PKG_ERRORS" >&5
20125
20126 with_cmocka=no
20127 elif test $pkg_failed = untried; then
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20129 $as_echo "no" >&6; }
20130 with_cmocka=no
20131 else
20132 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
20133 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20135 $as_echo "yes" >&6; }
20136
20137 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
20138
20139 UNITTESTS=tests
20140 fi ;; #(
20141 yes) :
20142
20143 pkg_failed=no
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
20145 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
20146
20147 if test -n "$CMOCKA_CFLAGS"; then
20148 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
20149 elif test -n "$PKG_CONFIG"; then
20150 if test -n "$PKG_CONFIG" && \
20151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20152 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20153 ac_status=$?
20154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20155 test $ac_status = 0; }; then
20156 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
20157 test "x$?" != "x0" && pkg_failed=yes
20158 else
20159 pkg_failed=yes
20160 fi
20161 else
20162 pkg_failed=untried
20163 fi
20164 if test -n "$CMOCKA_LIBS"; then
20165 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
20166 elif test -n "$PKG_CONFIG"; then
20167 if test -n "$PKG_CONFIG" && \
20168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20169 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20170 ac_status=$?
20171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20172 test $ac_status = 0; }; then
20173 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
20174 test "x$?" != "x0" && pkg_failed=yes
20175 else
20176 pkg_failed=yes
20177 fi
20178 else
20179 pkg_failed=untried
20180 fi
20181
20182
20183
20184 if test $pkg_failed = yes; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20187
20188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20189 _pkg_short_errors_supported=yes
20190 else
20191 _pkg_short_errors_supported=no
20192 fi
20193 if test $_pkg_short_errors_supported = yes; then
20194 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20195 else
20196 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20197 fi
20198 # Put the nasty error message in config.log where it belongs
20199 echo "$CMOCKA_PKG_ERRORS" >&5
20200
20201 as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
20202
20203 $CMOCKA_PKG_ERRORS
20204
20205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20206 installed software in a non-standard prefix.
20207
20208 Alternatively, you may set the environment variables CMOCKA_CFLAGS
20209 and CMOCKA_LIBS to avoid the need to call pkg-config.
20210 See the pkg-config man page for more details." "$LINENO" 5
20211 elif test $pkg_failed = untried; then
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20213 $as_echo "no" >&6; }
20214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20216 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20217 is in your PATH or set the PKG_CONFIG environment variable to the full
20218 path to pkg-config.
20219
20220 Alternatively, you may set the environment variables CMOCKA_CFLAGS
20221 and CMOCKA_LIBS to avoid the need to call pkg-config.
20222 See the pkg-config man page for more details.
20223
20224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20225 See \`config.log' for more details" "$LINENO" 5; }
20226 else
20227 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
20228 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230 $as_echo "yes" >&6; }
20231
20232 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
20233
20234 fi
20235 UNITTESTS=tests ;; #(
20236 *) :
20237 as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
20238 ;;
20239 esac
20240
20241
20242
20243
20244 #
20245 # Check for kyua execution engine if CMocka was requested
20246 # and bail out if execution engine was not found
20247 #
20248
20249 if test "$with_cmocka" != "no"; then :
20250 for ac_prog in kyua
20251 do
20252 # Extract the first word of "$ac_prog", so it can be a program name with args.
20253 set dummy $ac_prog; ac_word=$2
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20255 $as_echo_n "checking for $ac_word... " >&6; }
20256 if ${ac_cv_path_KYUA+:} false; then :
20257 $as_echo_n "(cached) " >&6
20258 else
20259 case $KYUA in
20260 [\\/]* | ?:[\\/]*)
20261 ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
20262 ;;
20263 *)
20264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20265 for as_dir in $PATH
20266 do
20267 IFS=$as_save_IFS
20268 test -z "$as_dir" && as_dir=.
20269 for ac_exec_ext in '' $ac_executable_extensions; do
20270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20271 ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
20272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20273 break 2
20274 fi
20275 done
20276 done
20277 IFS=$as_save_IFS
20278
20279 ;;
20280 esac
20281 fi
20282 KYUA=$ac_cv_path_KYUA
20283 if test -n "$KYUA"; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
20285 $as_echo "$KYUA" >&6; }
20286 else
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288 $as_echo "no" >&6; }
20289 fi
20290
20291
20292 test -n "$KYUA" && break
20293 done
20294
20295 if test -z "$KYUA"; then :
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
20297 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
20298 fi
20299 fi
20300
20301
20302
20303 #
20304 # Check for i18n
20305 #
20306 for ac_header in locale.h
20307 do :
20308 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
20309 if test "x$ac_cv_header_locale_h" = xyes; then :
20310 cat >>confdefs.h <<_ACEOF
20311 #define HAVE_LOCALE_H 1
20312 _ACEOF
20313
20314 fi
20315
20316 done
20317
20318 for ac_func in setlocale
20319 do :
20320 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
20321 if test "x$ac_cv_func_setlocale" = xyes; then :
20322 cat >>confdefs.h <<_ACEOF
20323 #define HAVE_SETLOCALE 1
20324 _ACEOF
20325
20326 fi
20327 done
20328
20329
20330 #
20331 # was --with-tuning specified?
20332 #
20333
20334 # Check whether --with-tuning was given.
20335 if test "${with_tuning+set}" = set; then :
20336 withval=$with_tuning; use_tuning="$withval"
20337 else
20338 use_tuning="no"
20339 fi
20340
20341
20342 case "$use_tuning" in
20343 large)
20344
20345 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
20346
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
20348 $as_echo "using large-system tuning" >&6; }
20349 ;;
20350 no|default)
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
20352 $as_echo "using default tuning" >&6; }
20353 ;;
20354 yes|*)
20355 as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
20356 ;;
20357 esac
20358
20359 #
20360 # was --enable-querytrace specified?
20361 #
20362 # Check whether --enable-querytrace was given.
20363 if test "${enable_querytrace+set}" = set; then :
20364 enableval=$enable_querytrace; want_querytrace="$enableval"
20365 else
20366 want_querytrace="no"
20367 fi
20368
20369
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
20371 $as_echo_n "checking whether to enable query trace logging... " >&6; }
20372 case "$want_querytrace" in
20373 yes)
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20375 $as_echo "yes" >&6; }
20376
20377 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
20378
20379 ;;
20380 no)
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20382 $as_echo "no" >&6; }
20383 ;;
20384 *)
20385 as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
20386 ;;
20387 esac
20388
20389 #
20390 # Was --disable-auto-validation specified?
20391 #
20392 validation_default=auto
20393 # Check whether --enable-auto-validation was given.
20394 if test "${enable_auto_validation+set}" = set; then :
20395 enableval=$enable_auto_validation; :
20396 else
20397 enable_auto_validation=yes
20398 fi
20399
20400 if test "$enable_auto_validation" = "no"; then :
20401 validation_default=yes
20402 fi
20403
20404 cat >>confdefs.h <<_ACEOF
20405 #define VALIDATION_DEFAULT "$validation_default"
20406 _ACEOF
20407
20408
20409 #
20410 # Substitutions
20411 #
20412
20413 BIND9_TOP_BUILDDIR=`pwd`
20414
20415
20416
20417
20418
20419
20420
20421
20422 if test "X$srcdir" != "X"; then
20423 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
20424 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
20425 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
20426 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
20427 BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
20428 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
20429 BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
20430 else
20431 BIND9_ISC_BUILDINCLUDE=""
20432 BIND9_ISCCC_BUILDINCLUDE=""
20433 BIND9_ISCCFG_BUILDINCLUDE=""
20434 BIND9_DNS_BUILDINCLUDE=""
20435 BIND9_NS_BUILDINCLUDE=""
20436 BIND9_BIND9_BUILDINCLUDE=""
20437 BIND9_IRS_BUILDINCLUDE=""
20438 fi
20439
20440
20441 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
20442
20443
20444 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
20445
20446 . "$srcdir/version"
20447 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
20448
20449 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
20450
20451 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
20452
20453 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
20454
20455 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
20456
20457 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
20458
20459
20460 BIND9_SRCID="SRCID=unset_id"
20461 if test -f "${srcdir}/srcid"; then
20462 . "${srcdir}/srcid"
20463 BIND9_SRCID="SRCID=$SRCID"
20464 elif test -d "${srcdir}/.git"; then
20465 BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
20466 fi
20467
20468
20469
20470 if test -z "$ac_configure_args"; then
20471 BIND9_CONFIGARGS="defaults"
20472 else
20473 for a in $ac_configure_args
20474 do
20475 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
20476 done
20477 fi
20478 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
20479 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
20480
20481
20482
20483 LIBISC_API="$srcdir/lib/isc/api"
20484
20485
20486 LIBISCCC_API="$srcdir/lib/isccc/api"
20487
20488
20489 LIBISCCFG_API="$srcdir/lib/isccfg/api"
20490
20491
20492 LIBDNS_API="$srcdir/lib/dns/api"
20493
20494
20495 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
20496
20497
20498 LIBBIND9_API="$srcdir/lib/bind9/api"
20499
20500
20501 LIBIRS_API="$srcdir/lib/irs/api"
20502
20503
20504 LIBNS_API="$srcdir/lib/ns/api"
20505
20506 #
20507 # Configure any DLZ drivers.
20508 #
20509 # If config.dlz.in selects one or more DLZ drivers, it will set
20510 # CONTRIB_DLZ to a non-empty value, which will be our clue to
20511 # build DLZ drivers in contrib.
20512 #
20513 # This section has to come after the libtool stuff because it needs to
20514 # know how to name the driver object files.
20515 #
20516
20517 CONTRIB_DLZ=""
20518 DLZ_DRIVER_INCLUDES=""
20519 DLZ_DRIVER_LIBS=""
20520 DLZ_DRIVER_SRCS=""
20521 DLZ_DRIVER_OBJS=""
20522 DLZ_SYSTEM_TEST=""
20523 DLZ_DRIVER_MYSQL_INCLUDES=""
20524 DLZ_DRIVER_MYSQL_LIBS=""
20525
20526 #
20527 # Configure support for building a shared library object
20528 #
20529 # Even when libtool is available it can't always be relied upon
20530 # to build an object that can be dlopen()'ed, but this is necessary
20531 # for building the dlzexternal system test, so we'll try it the
20532 # old-fashioned way.
20533 #
20534 SO="so"
20535 SO_CFLAGS=""
20536 SO_LDFLAGS=""
20537 SO_LD=""
20538 SO_TARGETS=""
20539 SO_STRIP="cat"
20540
20541
20542 # Check whether --with-dlopen was given.
20543 if test "${with_dlopen+set}" = set; then :
20544 withval=$with_dlopen;
20545 else
20546 with_dlopen="auto"
20547 fi
20548
20549
20550
20551 #
20552 # If PIC is disabled, dlopen must also be
20553 #
20554 if test "$pic_mode" = "no"; then :
20555 case $with_dlopen in #(
20556 auto) :
20557 with_dlopen="no" ;; #(
20558 yes) :
20559 as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
20560 *) :
20561 ;;
20562 esac
20563 fi
20564
20565 case $with_dlopen in #(
20566 auto|yes) :
20567
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20569 $as_echo_n "checking for library containing dlopen... " >&6; }
20570 if ${ac_cv_search_dlopen+:} false; then :
20571 $as_echo_n "(cached) " >&6
20572 else
20573 ac_func_search_save_LIBS=$LIBS
20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20576
20577 /* Override any GCC internal prototype to avoid an error.
20578 Use char because int might match the return type of a GCC
20579 builtin and then its argument prototype would still apply. */
20580 #ifdef __cplusplus
20581 extern "C"
20582 #endif
20583 char dlopen ();
20584 int
20585 main ()
20586 {
20587 return dlopen ();
20588 ;
20589 return 0;
20590 }
20591 _ACEOF
20592 for ac_lib in '' dl; do
20593 if test -z "$ac_lib"; then
20594 ac_res="none required"
20595 else
20596 ac_res=-l$ac_lib
20597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20598 fi
20599 if ac_fn_c_try_link "$LINENO"; then :
20600 ac_cv_search_dlopen=$ac_res
20601 fi
20602 rm -f core conftest.err conftest.$ac_objext \
20603 conftest$ac_exeext
20604 if ${ac_cv_search_dlopen+:} false; then :
20605 break
20606 fi
20607 done
20608 if ${ac_cv_search_dlopen+:} false; then :
20609
20610 else
20611 ac_cv_search_dlopen=no
20612 fi
20613 rm conftest.$ac_ext
20614 LIBS=$ac_func_search_save_LIBS
20615 fi
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20617 $as_echo "$ac_cv_search_dlopen" >&6; }
20618 ac_res=$ac_cv_search_dlopen
20619 if test "$ac_res" != no; then :
20620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20621
20622 fi
20623
20624 for ac_func in dlopen dlclose dlsym
20625 do :
20626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20629 cat >>confdefs.h <<_ACEOF
20630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20631 _ACEOF
20632 with_dlopen="yes"
20633 else
20634 with_dlopen="no"
20635 fi
20636 done
20637
20638 ;; #(
20639 *) :
20640 ;;
20641 esac
20642
20643 if test "$with_dlopen" = "yes"; then :
20644 case $host in #(
20645 *-linux*|*-gnu*) :
20646
20647 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
20648 SO_CFLAGS="-fPIC"
20649 SO_LDFLAGS=""
20650 if test "$use_libtool" = "yes"; then :
20651
20652 SO_LDFLAGS="-Xcompiler -shared"
20653 SO_LD="${CC}"
20654
20655 else
20656
20657 SO_LDFLAGS="-shared"
20658 SO_LD="${CC}"
20659
20660 fi
20661 ;; #(
20662 *-freebsd*|*-openbsd*|*-netbsd*) :
20663
20664 LDFLAGS="${LDFLAGS} -Wl,-E"
20665 SO_CFLAGS="-fpic"
20666 if test "$use_libtool" = "yes"; then :
20667
20668 SO_LDFLAGS="-Xcompiler -shared"
20669 SO_LD="${CC}"
20670
20671 else
20672
20673 SO_LDFLAGS="-shared"
20674 SO_LD="${CC}"
20675
20676 fi
20677 ;; #(
20678 *-darwin*) :
20679
20680 SO_CFLAGS="-fPIC"
20681 SO_LD="${CC}"
20682 if test "$use_libtool" = "yes"; then :
20683
20684 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
20685
20686 else
20687
20688 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
20689
20690 fi
20691 ;; #(
20692 *-solaris*) :
20693
20694 SO_CFLAGS="-KPIC"
20695 SO_LDFLAGS="-G -z text"
20696 SO_LD="ld"
20697 ;; #(
20698 ia64-hp-hpux*) :
20699
20700 SO_CFLAGS="+z"
20701 SO_LDFLAGS="-b"
20702 SO_LD="${CC}"
20703 ;; #(
20704 *) :
20705
20706 SO_CFLAGS="-fPIC"
20707 ;;
20708 esac
20709 if test "$GCC" = "yes"; then :
20710
20711 SO_CFLAGS="-fPIC"
20712 if test -z "$SO_LD"; then :
20713 if test "$use_libtool" = "yes"; then :
20714
20715 SO_LDFLAGS="-Xcompiler -shared"
20716 SO_LD="${CC}"
20717
20718 else
20719
20720 SO_LDFLAGS="-shared"
20721 SO_LD="${CC}"
20722
20723 fi
20724
20725 fi
20726
20727 fi
20728 # If we still don't know how to make shared objects, don't make any.
20729 if test -n "$SO_LD"; then :
20730 SO_TARGETS="\${SO_TARGETS}"
20731
20732 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
20733
20734
20735 fi
20736
20737 fi
20738
20739 CFLAGS="$CFLAGS $SO_CFLAGS"
20740
20741
20742
20743
20744
20745
20746
20747
20748 #
20749 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
20750 # interface.
20751 #
20752 # DNSRPS can be compiled into BIND everywhere with a reasonably
20753 # modern C compiler. It is enabled on systems with dlopen() and librpz.so.
20754 #
20755 dnsrps_avail=yes
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
20757 $as_echo_n "checking for librpz __attribute__s... " >&6; }
20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20760
20761 int
20762 main ()
20763 {
20764
20765 extern void f(char *p __attribute__((unused)), ...)
20766 __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
20767
20768 ;
20769 return 0;
20770 }
20771 _ACEOF
20772 if ac_fn_c_try_compile "$LINENO"; then :
20773
20774 librpz_have_attr=yes
20775
20776 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
20777
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20779 $as_echo "yes" >&6; }
20780
20781 else
20782
20783 librpz_have_attr=no
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20785 $as_echo "no" >&6; }
20786
20787 fi
20788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20789
20790 # Check whether --enable-dnsrps-dl was given.
20791 if test "${enable_dnsrps_dl+set}" = set; then :
20792 enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
20793 else
20794 enable_librpz_dl="$with_dlopen"
20795 fi
20796
20797
20798 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
20799 as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
20800 fi
20801
20802
20803 # Check whether --with-dnsrps-libname was given.
20804 if test "${with_dnsrps_libname+set}" = set; then :
20805 withval=$with_dnsrps_libname; librpz_name="$withval"
20806 else
20807 librpz_name="librpz.so"
20808 fi
20809
20810
20811 # Check whether --with-dnsrps-dir was given.
20812 if test "${with_dnsrps_dir+set}" = set; then :
20813 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
20814 else
20815 librpz_path="$librpz_name"
20816 fi
20817
20818
20819 cat >>confdefs.h <<_ACEOF
20820 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
20821 _ACEOF
20822
20823 if test "$enable_librpz_dl" = "yes"; then :
20824
20825 dnsrps_lib_open=2
20826
20827 else
20828
20829 dnsrps_lib_open=1
20830 # Add librpz.so to linked libraries if we are not using dlopen()
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
20832 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
20833 if ${ac_cv_search_librpz_client_create+:} false; then :
20834 $as_echo_n "(cached) " >&6
20835 else
20836 ac_func_search_save_LIBS=$LIBS
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20839
20840 /* Override any GCC internal prototype to avoid an error.
20841 Use char because int might match the return type of a GCC
20842 builtin and then its argument prototype would still apply. */
20843 #ifdef __cplusplus
20844 extern "C"
20845 #endif
20846 char librpz_client_create ();
20847 int
20848 main ()
20849 {
20850 return librpz_client_create ();
20851 ;
20852 return 0;
20853 }
20854 _ACEOF
20855 for ac_lib in '' rpz; do
20856 if test -z "$ac_lib"; then
20857 ac_res="none required"
20858 else
20859 ac_res=-l$ac_lib
20860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20861 fi
20862 if ac_fn_c_try_link "$LINENO"; then :
20863 ac_cv_search_librpz_client_create=$ac_res
20864 fi
20865 rm -f core conftest.err conftest.$ac_objext \
20866 conftest$ac_exeext
20867 if ${ac_cv_search_librpz_client_create+:} false; then :
20868 break
20869 fi
20870 done
20871 if ${ac_cv_search_librpz_client_create+:} false; then :
20872
20873 else
20874 ac_cv_search_librpz_client_create=no
20875 fi
20876 rm conftest.$ac_ext
20877 LIBS=$ac_func_search_save_LIBS
20878 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
20880 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
20881 ac_res=$ac_cv_search_librpz_client_create
20882 if test "$ac_res" != no; then :
20883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20884
20885 else
20886 dnsrps_lib_open=0
20887 dnsrps_avail=no
20888 fi
20889
20890
20891 fi
20892
20893 cat >>confdefs.h <<_ACEOF
20894 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
20895 _ACEOF
20896
20897
20898 # Check whether --enable-dnsrps was given.
20899 if test "${enable_dnsrps+set}" = set; then :
20900 enableval=$enable_dnsrps; enable_dnsrps=$enableval
20901 else
20902 enable_dnsrps=no
20903 fi
20904
20905
20906 if test "$enable_dnsrps" != "no"; then :
20907
20908 if test "$dnsrps_avail" != "yes"; then :
20909 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
20910 fi
20911 if test "$dnsrps_lib_open" = "0"; then :
20912 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
20913 fi
20914
20915 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
20916
20917
20918 fi
20919
20920 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
20921 #
20922 # Permission to use, copy, modify, and distribute this software for any
20923 # purpose with or without fee is hereby granted, provided that the above
20924 # copyright notice and this permission notice appear in all copies.
20925 #
20926 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
20927 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20928 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
20929 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20930 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
20931 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20932 # PERFORMANCE OF THIS SOFTWARE.
20933
20934 #
20935 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
20936 #
20937 dlzdir='${DLZ_DRIVER_DIR}'
20938
20939 #
20940 # Private autoconf macro to simplify configuring drivers:
20941 #
20942 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
20943 #
20944 # where:
20945 # DEFINE is FOO (to define -DDLZ_FOO)
20946 # DRIVER is dlz_foo_driver (sources without the .c)
20947 # INCLUDES is any necessary include definitions
20948 # LIBS is any necessary library definitions
20949 #
20950
20951
20952 #
20953 # Check for the various DLZ drivers
20954 #
20955
20956 #
20957 # Was --with-dlz-postgres specified?
20958 #
20959
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
20961 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
20962
20963 # Check whether --with-dlz_postgres was given.
20964 if test "${with_dlz_postgres+set}" = set; then :
20965 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
20966 else
20967 use_dlz_postgres="no"
20968 fi
20969
20970
20971 if test "$use_dlz_postgres" != "no"
20972 then
20973 if test "$use_dlz_postgres" != "yes"
20974 then
20975 for ac_prog in pg_config
20976 do
20977 # Extract the first word of "$ac_prog", so it can be a program name with args.
20978 set dummy $ac_prog; ac_word=$2
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20980 $as_echo_n "checking for $ac_word... " >&6; }
20981 if ${ac_cv_path_PG_CONFIG+:} false; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 case $PG_CONFIG in
20985 [\\/]* | ?:[\\/]*)
20986 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
20987 ;;
20988 *)
20989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20990 for as_dir in $use_dlz_postgres/bin
20991 do
20992 IFS=$as_save_IFS
20993 test -z "$as_dir" && as_dir=.
20994 for ac_exec_ext in '' $ac_executable_extensions; do
20995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20996 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20998 break 2
20999 fi
21000 done
21001 done
21002 IFS=$as_save_IFS
21003
21004 ;;
21005 esac
21006 fi
21007 PG_CONFIG=$ac_cv_path_PG_CONFIG
21008 if test -n "$PG_CONFIG"; then
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
21010 $as_echo "$PG_CONFIG" >&6; }
21011 else
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21013 $as_echo "no" >&6; }
21014 fi
21015
21016
21017 test -n "$PG_CONFIG" && break
21018 done
21019 test -n "$PG_CONFIG" || PG_CONFIG="not found"
21020
21021 else
21022 for ac_prog in pg_config
21023 do
21024 # Extract the first word of "$ac_prog", so it can be a program name with args.
21025 set dummy $ac_prog; ac_word=$2
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21027 $as_echo_n "checking for $ac_word... " >&6; }
21028 if ${ac_cv_path_PG_CONFIG+:} false; then :
21029 $as_echo_n "(cached) " >&6
21030 else
21031 case $PG_CONFIG in
21032 [\\/]* | ?:[\\/]*)
21033 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21034 ;;
21035 *)
21036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $PATH
21038 do
21039 IFS=$as_save_IFS
21040 test -z "$as_dir" && as_dir=.
21041 for ac_exec_ext in '' $ac_executable_extensions; do
21042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21043 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21045 break 2
21046 fi
21047 done
21048 done
21049 IFS=$as_save_IFS
21050
21051 ;;
21052 esac
21053 fi
21054 PG_CONFIG=$ac_cv_path_PG_CONFIG
21055 if test -n "$PG_CONFIG"; then
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
21057 $as_echo "$PG_CONFIG" >&6; }
21058 else
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21061 fi
21062
21063
21064 test -n "$PG_CONFIG" && break
21065 done
21066 test -n "$PG_CONFIG" || PG_CONFIG="not found"
21067
21068 fi
21069
21070 if test "$PG_CONFIG" != "not found"
21071 then
21072 use_dlz_postgres=`$PG_CONFIG --includedir`
21073 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
21074 else
21075 pgprefix="$use_dlz_postgres"
21076 use_dlz_postgres="$pgprefix/include"
21077 use_dlz_postgres_lib="$pgprefix/lib"
21078 fi
21079 fi
21080
21081 if test "$use_dlz_postgres" = "yes/include"
21082 then
21083 # User did not specify path and Postgres didn't say - guess it
21084 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
21085 for d in $pgdirs
21086 do
21087 if test -f $d/include/libpq-fe.h
21088 then
21089 use_dlz_postgres=$d/include
21090 use_dlz_postgres_lib=$d/lib
21091 break
21092 fi
21093 done
21094 fi
21095
21096 if test "$use_dlz_postgres" = "yes/include"
21097 then
21098 # Still no joy, give up
21099
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21101 $as_echo "not found" >&6; }
21102 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
21103 fi
21104
21105 case "$use_dlz_postgres" in
21106 no)
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21108 $as_echo "no" >&6; }
21109 ;;
21110 *)
21111
21112 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
21113 for i in dlz_postgres_driver
21114 do
21115 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21116 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21117 done
21118 if test -n "-I$use_dlz_postgres"
21119 then
21120 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
21121 DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
21122 fi
21123 if test -n "-L$use_dlz_postgres_lib -lpq"
21124 then
21125 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
21126 DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
21127 fi
21128
21129
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
21131 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
21132 ;;
21133 esac
21134
21135
21136 #
21137 # Was --with-dlz-mysql specified?
21138 #
21139
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
21141 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
21142
21143 # Check whether --with-dlz_mysql was given.
21144 if test "${with_dlz_mysql+set}" = set; then :
21145 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
21146 else
21147 use_dlz_mysql="no"
21148 fi
21149
21150
21151 mysql_include=""
21152 mysql_lib=""
21153 if test "$use_dlz_mysql" = "yes"
21154 then
21155 for ac_prog in mysql_config
21156 do
21157 # Extract the first word of "$ac_prog", so it can be a program name with args.
21158 set dummy $ac_prog; ac_word=$2
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21160 $as_echo_n "checking for $ac_word... " >&6; }
21161 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
21162 $as_echo_n "(cached) " >&6
21163 else
21164 if test -n "$MYSQL_CONFIG"; then
21165 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
21166 else
21167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21168 for as_dir in $PATH
21169 do
21170 IFS=$as_save_IFS
21171 test -z "$as_dir" && as_dir=.
21172 for ac_exec_ext in '' $ac_executable_extensions; do
21173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21174 ac_cv_prog_MYSQL_CONFIG="$ac_prog"
21175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21176 break 2
21177 fi
21178 done
21179 done
21180 IFS=$as_save_IFS
21181
21182 fi
21183 fi
21184 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
21185 if test -n "$MYSQL_CONFIG"; then
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
21187 $as_echo "$MYSQL_CONFIG" >&6; }
21188 else
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190 $as_echo "no" >&6; }
21191 fi
21192
21193
21194 test -n "$MYSQL_CONFIG" && break
21195 done
21196
21197 if test -n "$MYSQL_CONFIG"
21198 then
21199 mysql_include=`${MYSQL_CONFIG} --include`
21200 mysql_lib=`${MYSQL_CONFIG} --libs`
21201 use_dlz_mysql="config"
21202
21203 else
21204 # User did not specify a path - guess it
21205 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
21206 for d in $mysqldirs
21207 do
21208 if test -f $d/include/mysql/mysql.h
21209 then
21210 use_dlz_mysql=$d
21211 mysql_include=$d/include/mysql
21212 break
21213 elif test -f $d/include/mysql.h
21214 then
21215 use_dlz_mysql=$d
21216 mysql_include=$d/include
21217 break
21218 fi
21219 done
21220 fi
21221 elif test "$use_dlz_mysql" != "no"
21222 then
21223 d=$use_dlz_mysql
21224 if test -f $d/include/mysql/mysql.h
21225 then
21226 mysql_include=$d/include/mysql
21227 elif test -f $d/include/mysql.h
21228 then
21229 mysql_include=$d/include
21230 fi
21231 fi
21232
21233 if test "$use_dlz_mysql" = "yes"
21234 then
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21236 $as_echo "not found" >&6; }
21237 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
21238 fi
21239
21240 case "$use_dlz_mysql" in
21241 no)
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21243 $as_echo "no" >&6; }
21244 ;;
21245 config)
21246
21247 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
21248 for i in dlz_mysql_driver
21249 do
21250 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21251 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21252 done
21253 if test -n "${mysql_include}"
21254 then
21255 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
21256 DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
21257 fi
21258 if test -n "${mysql_lib}"
21259 then
21260 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
21261 DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
21262 fi
21263
21264
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
21266 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
21267 ;;
21268 *)
21269 if test -d "$use_dlz_mysql/lib/mysql"
21270 then
21271 mysql_lib="$use_dlz_mysql/lib/mysql"
21272 else
21273 mysql_lib="$use_dlz_mysql/lib"
21274 fi
21275
21276 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
21277 for i in dlz_mysql_driver
21278 do
21279 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21280 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21281 done
21282 if test -n "-I${mysql_include}"
21283 then
21284 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
21285 DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
21286 fi
21287 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21288 then
21289 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21290 DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21291 fi
21292
21293
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
21295 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
21296 ;;
21297 esac
21298
21299
21300 #
21301 # Was --with-dlz-bdb specified?
21302 #
21303
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
21305 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
21306
21307 # Check whether --with-dlz_bdb was given.
21308 if test "${with_dlz_bdb+set}" = set; then :
21309 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
21310 else
21311 use_dlz_bdb="no"
21312 fi
21313
21314
21315 case "$use_dlz_bdb" in
21316 no)
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21318 $as_echo "no" >&6; }
21319 ;;
21320 *)
21321 if test "$use_dlz_bdb" = "yes"
21322 then
21323 # User did not specify a path - guess directories
21324 bdbdirs="/usr/local /usr/pkg /usr"
21325 elif test -d "$use_dlz_bdb"
21326 then
21327 # User specified directory and it exists
21328 bdbdirs="$use_dlz_bdb"
21329 else
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21331 $as_echo "not found" >&6; }
21332 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
21333 bdbdirs=""
21334 fi
21335
21336 # Use path we were given or guessed. This is insanely
21337 # complicated because we have to search for a bunch of
21338 # platform-specific variations and have to check
21339 # separately for include and library directories.
21340
21341 # Set both to yes, so we can check them later
21342 dlz_bdb_inc="yes"
21343 dlz_bdb_libs="yes"
21344
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21346 $as_echo "" >&6; }
21347 for dd in $bdbdirs
21348 do
21349 # Skip nonexistant directories
21350 if test ! -d "$dd"
21351 then
21352 continue
21353 fi
21354
21355 # Check other locations for includes.
21356 # Order is important (sigh).
21357
21358 bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
21359 # include a blank element first
21360 for d in "" $bdb_incdirs
21361 do
21362 if test -f "$dd/include${d}/db.h"
21363 then
21364 dlz_bdb_inc="-I$dd/include${d}"
21365 break
21366 fi
21367 done
21368
21369 # Give up on this directory if we couldn't
21370 # find the include subdir
21371
21372 if test "$dlz_bdb_inc" = "yes"
21373 then
21374 continue
21375 fi
21376
21377 # Look for libname other than libdb.so.
21378 # Order is important (sigh).
21379
21380 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"
21381 for d in $bdb_libnames
21382 do
21383 if test "$dd" = "/usr"
21384 then
21385 as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
21387 $as_echo_n "checking for db_create in -l$d... " >&6; }
21388 if eval \${$as_ac_Lib+:} false; then :
21389 $as_echo_n "(cached) " >&6
21390 else
21391 ac_check_lib_save_LIBS=$LIBS
21392 LIBS="-l$d $LIBS"
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21395
21396 /* Override any GCC internal prototype to avoid an error.
21397 Use char because int might match the return type of a GCC
21398 builtin and then its argument prototype would still apply. */
21399 #ifdef __cplusplus
21400 extern "C"
21401 #endif
21402 char db_create ();
21403 int
21404 main ()
21405 {
21406 return db_create ();
21407 ;
21408 return 0;
21409 }
21410 _ACEOF
21411 if ac_fn_c_try_link "$LINENO"; then :
21412 eval "$as_ac_Lib=yes"
21413 else
21414 eval "$as_ac_Lib=no"
21415 fi
21416 rm -f core conftest.err conftest.$ac_objext \
21417 conftest$ac_exeext conftest.$ac_ext
21418 LIBS=$ac_check_lib_save_LIBS
21419 fi
21420 eval ac_res=\$$as_ac_Lib
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21422 $as_echo "$ac_res" >&6; }
21423 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21424 dlz_bdb_libs="-l${d}"
21425 fi
21426
21427 if test $dlz_bdb_libs != "yes"
21428 then
21429 break
21430 fi
21431 elif test -f "$dd/lib/lib${d}.so"
21432 then
21433 dlz_bdb_libs="-L${dd}/lib -l${d}"
21434 break
21435 fi
21436 done
21437
21438 # If we found both incdir and lib, we're done
21439 if test "$dlz_bdb_libs" != "yes"
21440 then
21441 break
21442 fi
21443
21444 # Otherwise, we're starting over
21445
21446 dlz_bdb_inc="yes"
21447 dlz_bdb_libs="yes"
21448 done
21449
21450 # Done searching, now make sure we got everything.
21451
21452 if test "$dlz_bdb_inc" = "yes"
21453 then
21454 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
21455 fi
21456
21457 if test "$dlz_bdb_libs" = "yes"
21458 then
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21460 $as_echo "not found" >&6; }
21461 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
21462 fi
21463
21464
21465 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
21466 for i in dlz_bdb_driver dlz_bdbhpt_driver
21467 do
21468 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21469 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21470 done
21471 if test -n "$dlz_bdb_inc"
21472 then
21473 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
21474 DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
21475 fi
21476 if test -n "$dlz_bdb_libs"
21477 then
21478 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
21479 DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
21480 fi
21481
21482
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
21484 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
21485
21486 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
21487
21488 ;;
21489 esac
21490
21491
21492 #
21493 # Was --with-dlz-filesystem specified?
21494 #
21495
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
21497 $as_echo_n "checking for file system DLZ driver... " >&6; }
21498
21499 # Check whether --with-dlz_filesystem was given.
21500 if test "${with_dlz_filesystem+set}" = set; then :
21501 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
21502 else
21503 use_dlz_filesystem="no"
21504 fi
21505
21506
21507 case "$use_dlz_filesystem" in
21508 no)
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 $as_echo "no" >&6; }
21511 ;;
21512 *)
21513
21514 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
21515 for i in dlz_filesystem_driver
21516 do
21517 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21518 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21519 done
21520 if test -n ""
21521 then
21522 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
21523 DLZ_DRIVER_FILESYSTEM_INCLUDES=""
21524 fi
21525 if test -n ""
21526 then
21527 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
21528 DLZ_DRIVER_FILESYSTEM_LIBS=""
21529 fi
21530
21531 DLZ_SYSTEM_TEST=filesystem
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21533 $as_echo "yes" >&6; }
21534 ;;
21535 esac
21536
21537
21538 #
21539 # Was --with-dlz-ldap specified?
21540 #
21541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
21543 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
21544
21545 # Check whether --with-dlz_ldap was given.
21546 if test "${with_dlz_ldap+set}" = set; then :
21547 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
21548 else
21549 use_dlz_ldap="no"
21550 fi
21551
21552
21553 if test "$use_dlz_ldap" = "yes"
21554 then
21555 # User did not specify a path - guess it
21556 ldapdirs="/usr /usr/local /usr/pkg"
21557 for d in $ldapdirs
21558 do
21559 if test -f $d/include/ldap.h
21560 then
21561 use_dlz_ldap=$d
21562 break
21563 fi
21564 done
21565 fi
21566
21567 if test "$use_dlz_ldap" = "yes"
21568 then
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21570 $as_echo "not found" >&6; }
21571 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
21572 fi
21573
21574 case "$use_dlz_ldap" in
21575 no)
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21577 $as_echo "no" >&6; }
21578 ;;
21579 *)
21580
21581 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
21582 for i in dlz_ldap_driver
21583 do
21584 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21585 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21586 done
21587 if test -n "-I$use_dlz_ldap/include"
21588 then
21589 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
21590 DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
21591 fi
21592 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
21593 then
21594 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
21595 DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
21596 fi
21597
21598
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
21600 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
21601 ;;
21602 esac
21603
21604
21605 #
21606 # Was --with-dlz-odbc specified?
21607 #
21608
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
21610 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
21611
21612 # Check whether --with-dlz_odbc was given.
21613 if test "${with_dlz_odbc+set}" = set; then :
21614 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
21615 else
21616 use_dlz_odbc="no"
21617 fi
21618
21619
21620 if test "$use_dlz_odbc" = "yes"
21621 then
21622 # User did not specify a path - guess it
21623 libodbc_found=no
21624 sql_h_found=no
21625 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
21626 if test "x$ac_cv_header_sql_h" = xyes; then :
21627 sql_h_found=yes
21628 fi
21629
21630
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
21632 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
21633 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21636 ac_check_lib_save_LIBS=$LIBS
21637 LIBS="-lodbc $LIBS"
21638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h. */
21640
21641 /* Override any GCC internal prototype to avoid an error.
21642 Use char because int might match the return type of a GCC
21643 builtin and then its argument prototype would still apply. */
21644 #ifdef __cplusplus
21645 extern "C"
21646 #endif
21647 char SQLConnect ();
21648 int
21649 main ()
21650 {
21651 return SQLConnect ();
21652 ;
21653 return 0;
21654 }
21655 _ACEOF
21656 if ac_fn_c_try_link "$LINENO"; then :
21657 ac_cv_lib_odbc_SQLConnect=yes
21658 else
21659 ac_cv_lib_odbc_SQLConnect=no
21660 fi
21661 rm -f core conftest.err conftest.$ac_objext \
21662 conftest$ac_exeext conftest.$ac_ext
21663 LIBS=$ac_check_lib_save_LIBS
21664 fi
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
21666 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
21667 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
21668 libodbc_found=yes
21669 fi
21670
21671
21672 if test $libodbc_found = "yes" -o $sql_h_found = "yes"
21673 then
21674 use_dlz_odbc=system
21675 dlz_odbc_include=""
21676 dlz_odbc_libs="-lodbc"
21677 else
21678 odbcdirs="/usr /usr/local /usr/pkg"
21679 for d in $odbcdirs
21680 do
21681 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
21682 then
21683 use_dlz_odbc=$d
21684 dlz_odbc_include="-I$use_dlz_odbc/include"
21685 dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
21686 break
21687 fi
21688 done
21689 fi
21690 fi
21691
21692 case "$use_dlz_odbc" in
21693 no)
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21695 $as_echo "no" >&6; }
21696 ;;
21697 yes)
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21699 $as_echo "not found" >&6; }
21700 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
21701 ;;
21702 *)
21703
21704 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
21705 for i in dlz_odbc_driver
21706 do
21707 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21708 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21709 done
21710 if test -n "$dlz_odbc_include"
21711 then
21712 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
21713 DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
21714 fi
21715 if test -n "$dlz_odbc_libs"
21716 then
21717 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
21718 DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
21719 fi
21720
21721
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
21723 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
21724 ;;
21725 esac
21726
21727
21728 #
21729 # Was --with-dlz-stub specified?
21730 #
21731
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
21733 $as_echo_n "checking for stub DLZ driver... " >&6; }
21734
21735 # Check whether --with-dlz_stub was given.
21736 if test "${with_dlz_stub+set}" = set; then :
21737 withval=$with_dlz_stub; use_dlz_stub="$withval"
21738 else
21739 use_dlz_stub="no"
21740 fi
21741
21742
21743 case "$use_dlz_stub" in
21744 no)
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21746 $as_echo "no" >&6; }
21747 ;;
21748 *)
21749
21750
21751 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
21752 for i in dlz_stub_driver
21753 do
21754 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21755 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21756 done
21757 if test -n ""
21758 then
21759 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
21760 DLZ_DRIVER_STUB_INCLUDES=""
21761 fi
21762 if test -n ""
21763 then
21764 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
21765 DLZ_DRIVER_STUB_LIBS=""
21766 fi
21767
21768
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21770 $as_echo "yes" >&6; }
21771 ;;
21772 esac
21773
21774 # Add any additional DLZ drivers here.
21775
21776 #
21777 # Finally, some generic stuff that applies to all drivers, assuming
21778 # we're compiling contrib DLZ drivers at all.
21779 #
21780 if test -n "$CONTRIB_DLZ"
21781 then
21782 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
21783
21784 #
21785 # Where to find DLZ driver header files.
21786 #
21787 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
21788
21789 #
21790 # Initialization and shutdown wrappers, helper functions.
21791 #
21792 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
21793 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
21794 fi
21795
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
21797 $as_echo_n "checking contributed DLZ drivers... " >&6; }
21798
21799 if test -n "$CONTRIB_DLZ"
21800 then
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21802 $as_echo "yes" >&6; }
21803 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
21804 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
21805
21806 else
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21808 $as_echo "no" >&6; }
21809 DLZ_DRIVER_RULES=/dev/null
21810 fi
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822 if test "yes" = "$cross_compiling"; then
21823 if test -z "$BUILD_CC"; then
21824 as_fn_error $? "BUILD_CC not set" "$LINENO" 5
21825 fi
21826 BUILD_CFLAGS="$BUILD_CFLAGS"
21827 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
21828 BUILD_LDFLAGS="$BUILD_LDFLAGS"
21829 BUILD_LIBS="$BUILD_LIBS"
21830 else
21831 BUILD_CC="$CC"
21832 BUILD_CFLAGS="$CFLAGS"
21833 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
21834 BUILD_LDFLAGS="$LDFLAGS"
21835 BUILD_LIBS="$LIBS"
21836 fi
21837
21838 NEWFLAGS=""
21839 for e in $BUILD_LDFLAGS ; do
21840 case $e in
21841 -L*)
21842 case $host_os in
21843 netbsd*)
21844 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21845 NEWFLAGS="$NEWFLAGS $e $ee"
21846 ;;
21847 freebsd*)
21848 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21849 NEWFLAGS="$NEWFLAGS $e $ee"
21850 ;;
21851 solaris*)
21852 ee=`echo $e | sed -e 's%^-L%-R%'`
21853 NEWFLAGS="$NEWFLAGS $e $ee"
21854 ;;
21855 *)
21856 NEWFLAGS="$NEWFLAGS $e"
21857 ;;
21858 esac
21859 ;;
21860 *)
21861 NEWFLAGS="$NEWFLAGS $e"
21862 ;;
21863 esac
21864 done
21865 BUILD_LDFLAGS="$NEWFLAGS"
21866
21867 NEWFLAGS=""
21868 for e in $DNS_GSSAPI_LIBS ; do
21869 case $e in
21870 -L*)
21871 case $host_os in
21872 netbsd*)
21873 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21874 NEWFLAGS="$NEWFLAGS $e $ee"
21875 ;;
21876 freebsd*)
21877 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21878 NEWFLAGS="$NEWFLAGS $e $ee"
21879 ;;
21880 solaris*)
21881 ee=`echo $e | sed -e 's%^-L%-R%'`
21882 NEWFLAGS="$NEWFLAGS $e $ee"
21883 ;;
21884 *)
21885 NEWFLAGS="$NEWFLAGS $e"
21886 ;;
21887 esac
21888 ;;
21889 *)
21890 NEWFLAGS="$NEWFLAGS $e"
21891 ;;
21892 esac
21893 done
21894 DNS_GSSAPI_LIBS="$NEWFLAGS"
21895
21896 NEWFLAGS=""
21897 for e in $ISC_OPENSSL_LIBS ; do
21898 case $e in
21899 -L*)
21900 case $host_os in
21901 netbsd*)
21902 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21903 NEWFLAGS="$NEWFLAGS $e $ee"
21904 ;;
21905 freebsd*)
21906 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21907 NEWFLAGS="$NEWFLAGS $e $ee"
21908 ;;
21909 solaris*)
21910 ee=`echo $e | sed -e 's%^-L%-R%'`
21911 NEWFLAGS="$NEWFLAGS $e $ee"
21912 ;;
21913 *)
21914 NEWFLAGS="$NEWFLAGS $e"
21915 ;;
21916 esac
21917 ;;
21918 *)
21919 NEWFLAGS="$NEWFLAGS $e"
21920 ;;
21921 esac
21922 done
21923 ISC_OPENSSL_LIBS="$NEWFLAGS"
21924
21925 NEWFLAGS=""
21926 for e in $DNS_CRYPTO_LIBS ; do
21927 case $e in
21928 -L*)
21929 case $host_os in
21930 netbsd*)
21931 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21932 NEWFLAGS="$NEWFLAGS $e $ee"
21933 ;;
21934 freebsd*)
21935 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21936 NEWFLAGS="$NEWFLAGS $e $ee"
21937 ;;
21938 solaris*)
21939 ee=`echo $e | sed -e 's%^-L%-R%'`
21940 NEWFLAGS="$NEWFLAGS $e $ee"
21941 ;;
21942 *)
21943 NEWFLAGS="$NEWFLAGS $e"
21944 ;;
21945 esac
21946 ;;
21947 *)
21948 NEWFLAGS="$NEWFLAGS $e"
21949 ;;
21950 esac
21951 done
21952 DNS_CRYPTO_LIBS="$NEWFLAGS"
21953
21954
21955
21956
21957
21958
21959
21960 #
21961 # Commands to run at the end of config.status.
21962 # Don't just put these into configure, it won't work right if somebody
21963 # runs config.status directly (which autoconf allows).
21964 #
21965
21966 ac_config_commands="$ac_config_commands chmod"
21967
21968
21969 #
21970 # Files to configure. These are listed here because we used to
21971 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
21972 # elsewhere if there's a good reason for doing so.
21973 #
21974
21975 ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/plugins/Makefile bin/python/Makefile bin/python/isc/Makefile bin/python/isc/utils.py bin/python/isc/tests/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/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/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/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 unit/unittest.sh fuzz/Makefile"
21976
21977
21978 #
21979 # Do it
21980 #
21981
21982 cat >confcache <<\_ACEOF
21983 # This file is a shell script that caches the results of configure
21984 # tests run on this system so they can be shared between configure
21985 # scripts and configure runs, see configure's option --config-cache.
21986 # It is not useful on other systems. If it contains results you don't
21987 # want to keep, you may remove or edit it.
21988 #
21989 # config.status only pays attention to the cache file if you give it
21990 # the --recheck option to rerun configure.
21991 #
21992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21994 # following values.
21995
21996 _ACEOF
21997
21998 # The following way of writing the cache mishandles newlines in values,
21999 # but we know of no workaround that is simple, portable, and efficient.
22000 # So, we kill variables containing newlines.
22001 # Ultrix sh set writes to stderr and can't be redirected directly,
22002 # and sets the high bit in the cache file unless we assign to the vars.
22003 (
22004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22005 eval ac_val=\$$ac_var
22006 case $ac_val in #(
22007 *${as_nl}*)
22008 case $ac_var in #(
22009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22011 esac
22012 case $ac_var in #(
22013 _ | IFS | as_nl) ;; #(
22014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22015 *) { eval $ac_var=; unset $ac_var;} ;;
22016 esac ;;
22017 esac
22018 done
22019
22020 (set) 2>&1 |
22021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22022 *${as_nl}ac_space=\ *)
22023 # `set' does not quote correctly, so add quotes: double-quote
22024 # substitution turns \\\\ into \\, and sed turns \\ into \.
22025 sed -n \
22026 "s/'/'\\\\''/g;
22027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22028 ;; #(
22029 *)
22030 # `set' quotes correctly as required by POSIX, so do not add quotes.
22031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22032 ;;
22033 esac |
22034 sort
22035 ) |
22036 sed '
22037 /^ac_cv_env_/b end
22038 t clear
22039 :clear
22040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22041 t end
22042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22043 :end' >>confcache
22044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22045 if test -w "$cache_file"; then
22046 if test "x$cache_file" != "x/dev/null"; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22048 $as_echo "$as_me: updating cache $cache_file" >&6;}
22049 if test ! -f "$cache_file" || test -h "$cache_file"; then
22050 cat confcache >"$cache_file"
22051 else
22052 case $cache_file in #(
22053 */* | ?:*)
22054 mv -f confcache "$cache_file"$$ &&
22055 mv -f "$cache_file"$$ "$cache_file" ;; #(
22056 *)
22057 mv -f confcache "$cache_file" ;;
22058 esac
22059 fi
22060 fi
22061 else
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22064 fi
22065 fi
22066 rm -f confcache
22067
22068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22069 # Let make expand exec_prefix.
22070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22071
22072 DEFS=-DHAVE_CONFIG_H
22073
22074 ac_libobjs=
22075 ac_ltlibobjs=
22076 U=
22077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22078 # 1. Remove the extension, and $U if already installed.
22079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22082 # will be set to the directory where LIBOBJS objects are built.
22083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22085 done
22086 LIBOBJS=$ac_libobjs
22087
22088 LTLIBOBJS=$ac_ltlibobjs
22089
22090
22091
22092
22093 : "${CONFIG_STATUS=./config.status}"
22094 ac_write_fail=0
22095 ac_clean_files_save=$ac_clean_files
22096 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22098 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22099 as_write_fail=0
22100 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22101 #! $SHELL
22102 # Generated by $as_me.
22103 # Run this file to recreate the current configuration.
22104 # Compiler output produced by configure, useful for debugging
22105 # configure, is in config.log if it exists.
22106
22107 debug=false
22108 ac_cs_recheck=false
22109 ac_cs_silent=false
22110
22111 SHELL=\${CONFIG_SHELL-$SHELL}
22112 export SHELL
22113 _ASEOF
22114 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22115 ## -------------------- ##
22116 ## M4sh Initialization. ##
22117 ## -------------------- ##
22118
22119 # Be more Bourne compatible
22120 DUALCASE=1; export DUALCASE # for MKS sh
22121 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22122 emulate sh
22123 NULLCMD=:
22124 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22125 # is contrary to our usage. Disable this feature.
22126 alias -g '${1+"$@"}'='"$@"'
22127 setopt NO_GLOB_SUBST
22128 else
22129 case `(set -o) 2>/dev/null` in #(
22130 *posix*) :
22131 set -o posix ;; #(
22132 *) :
22133 ;;
22134 esac
22135 fi
22136
22137
22138 as_nl='
22139 '
22140 export as_nl
22141 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22142 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22143 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22145 # Prefer a ksh shell builtin over an external printf program on Solaris,
22146 # but without wasting forks for bash or zsh.
22147 if test -z "$BASH_VERSION$ZSH_VERSION" \
22148 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22149 as_echo='print -r --'
22150 as_echo_n='print -rn --'
22151 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22152 as_echo='printf %s\n'
22153 as_echo_n='printf %s'
22154 else
22155 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22156 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22157 as_echo_n='/usr/ucb/echo -n'
22158 else
22159 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22160 as_echo_n_body='eval
22161 arg=$1;
22162 case $arg in #(
22163 *"$as_nl"*)
22164 expr "X$arg" : "X\\(.*\\)$as_nl";
22165 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22166 esac;
22167 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22168 '
22169 export as_echo_n_body
22170 as_echo_n='sh -c $as_echo_n_body as_echo'
22171 fi
22172 export as_echo_body
22173 as_echo='sh -c $as_echo_body as_echo'
22174 fi
22175
22176 # The user is always right.
22177 if test "${PATH_SEPARATOR+set}" != set; then
22178 PATH_SEPARATOR=:
22179 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22180 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22181 PATH_SEPARATOR=';'
22182 }
22183 fi
22184
22185
22186 # IFS
22187 # We need space, tab and new line, in precisely that order. Quoting is
22188 # there to prevent editors from complaining about space-tab.
22189 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22190 # splitting by setting IFS to empty value.)
22191 IFS=" "" $as_nl"
22192
22193 # Find who we are. Look in the path if we contain no directory separator.
22194 as_myself=
22195 case $0 in #((
22196 *[\\/]* ) as_myself=$0 ;;
22197 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22198 for as_dir in $PATH
22199 do
22200 IFS=$as_save_IFS
22201 test -z "$as_dir" && as_dir=.
22202 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22203 done
22204 IFS=$as_save_IFS
22205
22206 ;;
22207 esac
22208 # We did not find ourselves, most probably we were run as `sh COMMAND'
22209 # in which case we are not to be found in the path.
22210 if test "x$as_myself" = x; then
22211 as_myself=$0
22212 fi
22213 if test ! -f "$as_myself"; then
22214 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22215 exit 1
22216 fi
22217
22218 # Unset variables that we do not need and which cause bugs (e.g. in
22219 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22220 # suppresses any "Segmentation fault" message there. '((' could
22221 # trigger a bug in pdksh 5.2.14.
22222 for as_var in BASH_ENV ENV MAIL MAILPATH
22223 do eval test x\${$as_var+set} = xset \
22224 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22225 done
22226 PS1='$ '
22227 PS2='> '
22228 PS4='+ '
22229
22230 # NLS nuisances.
22231 LC_ALL=C
22232 export LC_ALL
22233 LANGUAGE=C
22234 export LANGUAGE
22235
22236 # CDPATH.
22237 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22238
22239
22240 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22241 # ----------------------------------------
22242 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22243 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22244 # script with STATUS, using 1 if that was 0.
22245 as_fn_error ()
22246 {
22247 as_status=$1; test $as_status -eq 0 && as_status=1
22248 if test "$4"; then
22249 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22250 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22251 fi
22252 $as_echo "$as_me: error: $2" >&2
22253 as_fn_exit $as_status
22254 } # as_fn_error
22255
22256
22257 # as_fn_set_status STATUS
22258 # -----------------------
22259 # Set $? to STATUS, without forking.
22260 as_fn_set_status ()
22261 {
22262 return $1
22263 } # as_fn_set_status
22264
22265 # as_fn_exit STATUS
22266 # -----------------
22267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22268 as_fn_exit ()
22269 {
22270 set +e
22271 as_fn_set_status $1
22272 exit $1
22273 } # as_fn_exit
22274
22275 # as_fn_unset VAR
22276 # ---------------
22277 # Portably unset VAR.
22278 as_fn_unset ()
22279 {
22280 { eval $1=; unset $1;}
22281 }
22282 as_unset=as_fn_unset
22283 # as_fn_append VAR VALUE
22284 # ----------------------
22285 # Append the text in VALUE to the end of the definition contained in VAR. Take
22286 # advantage of any shell optimizations that allow amortized linear growth over
22287 # repeated appends, instead of the typical quadratic growth present in naive
22288 # implementations.
22289 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22290 eval 'as_fn_append ()
22291 {
22292 eval $1+=\$2
22293 }'
22294 else
22295 as_fn_append ()
22296 {
22297 eval $1=\$$1\$2
22298 }
22299 fi # as_fn_append
22300
22301 # as_fn_arith ARG...
22302 # ------------------
22303 # Perform arithmetic evaluation on the ARGs, and store the result in the
22304 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22305 # must be portable across $(()) and expr.
22306 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22307 eval 'as_fn_arith ()
22308 {
22309 as_val=$(( $* ))
22310 }'
22311 else
22312 as_fn_arith ()
22313 {
22314 as_val=`expr "$@" || test $? -eq 1`
22315 }
22316 fi # as_fn_arith
22317
22318
22319 if expr a : '\(a\)' >/dev/null 2>&1 &&
22320 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22321 as_expr=expr
22322 else
22323 as_expr=false
22324 fi
22325
22326 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22327 as_basename=basename
22328 else
22329 as_basename=false
22330 fi
22331
22332 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22333 as_dirname=dirname
22334 else
22335 as_dirname=false
22336 fi
22337
22338 as_me=`$as_basename -- "$0" ||
22339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22340 X"$0" : 'X\(//\)$' \| \
22341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22342 $as_echo X/"$0" |
22343 sed '/^.*\/\([^/][^/]*\)\/*$/{
22344 s//\1/
22345 q
22346 }
22347 /^X\/\(\/\/\)$/{
22348 s//\1/
22349 q
22350 }
22351 /^X\/\(\/\).*/{
22352 s//\1/
22353 q
22354 }
22355 s/.*/./; q'`
22356
22357 # Avoid depending upon Character Ranges.
22358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22361 as_cr_digits='0123456789'
22362 as_cr_alnum=$as_cr_Letters$as_cr_digits
22363
22364 ECHO_C= ECHO_N= ECHO_T=
22365 case `echo -n x` in #(((((
22366 -n*)
22367 case `echo 'xy\c'` in
22368 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22369 xy) ECHO_C='\c';;
22370 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22371 ECHO_T=' ';;
22372 esac;;
22373 *)
22374 ECHO_N='-n';;
22375 esac
22376
22377 rm -f conf$$ conf$$.exe conf$$.file
22378 if test -d conf$$.dir; then
22379 rm -f conf$$.dir/conf$$.file
22380 else
22381 rm -f conf$$.dir
22382 mkdir conf$$.dir 2>/dev/null
22383 fi
22384 if (echo >conf$$.file) 2>/dev/null; then
22385 if ln -s conf$$.file conf$$ 2>/dev/null; then
22386 as_ln_s='ln -s'
22387 # ... but there are two gotchas:
22388 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22389 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22390 # In both cases, we have to default to `cp -pR'.
22391 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22392 as_ln_s='cp -pR'
22393 elif ln conf$$.file conf$$ 2>/dev/null; then
22394 as_ln_s=ln
22395 else
22396 as_ln_s='cp -pR'
22397 fi
22398 else
22399 as_ln_s='cp -pR'
22400 fi
22401 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22402 rmdir conf$$.dir 2>/dev/null
22403
22404
22405 # as_fn_mkdir_p
22406 # -------------
22407 # Create "$as_dir" as a directory, including parents if necessary.
22408 as_fn_mkdir_p ()
22409 {
22410
22411 case $as_dir in #(
22412 -*) as_dir=./$as_dir;;
22413 esac
22414 test -d "$as_dir" || eval $as_mkdir_p || {
22415 as_dirs=
22416 while :; do
22417 case $as_dir in #(
22418 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22419 *) as_qdir=$as_dir;;
22420 esac
22421 as_dirs="'$as_qdir' $as_dirs"
22422 as_dir=`$as_dirname -- "$as_dir" ||
22423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22424 X"$as_dir" : 'X\(//\)[^/]' \| \
22425 X"$as_dir" : 'X\(//\)$' \| \
22426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22427 $as_echo X"$as_dir" |
22428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22429 s//\1/
22430 q
22431 }
22432 /^X\(\/\/\)[^/].*/{
22433 s//\1/
22434 q
22435 }
22436 /^X\(\/\/\)$/{
22437 s//\1/
22438 q
22439 }
22440 /^X\(\/\).*/{
22441 s//\1/
22442 q
22443 }
22444 s/.*/./; q'`
22445 test -d "$as_dir" && break
22446 done
22447 test -z "$as_dirs" || eval "mkdir $as_dirs"
22448 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22449
22450
22451 } # as_fn_mkdir_p
22452 if mkdir -p . 2>/dev/null; then
22453 as_mkdir_p='mkdir -p "$as_dir"'
22454 else
22455 test -d ./-p && rmdir ./-p
22456 as_mkdir_p=false
22457 fi
22458
22459
22460 # as_fn_executable_p FILE
22461 # -----------------------
22462 # Test if FILE is an executable regular file.
22463 as_fn_executable_p ()
22464 {
22465 test -f "$1" && test -x "$1"
22466 } # as_fn_executable_p
22467 as_test_x='test -x'
22468 as_executable_p=as_fn_executable_p
22469
22470 # Sed expression to map a string onto a valid CPP name.
22471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22472
22473 # Sed expression to map a string onto a valid variable name.
22474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22475
22476
22477 exec 6>&1
22478 ## ----------------------------------- ##
22479 ## Main body of $CONFIG_STATUS script. ##
22480 ## ----------------------------------- ##
22481 _ASEOF
22482 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22483
22484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22485 # Save the log message, to keep $0 and so on meaningful, and to
22486 # report actual input values of CONFIG_FILES etc. instead of their
22487 # values after options handling.
22488 ac_log="
22489 This file was extended by BIND $as_me 9.14, which was
22490 generated by GNU Autoconf 2.69. Invocation command line was
22491
22492 CONFIG_FILES = $CONFIG_FILES
22493 CONFIG_HEADERS = $CONFIG_HEADERS
22494 CONFIG_LINKS = $CONFIG_LINKS
22495 CONFIG_COMMANDS = $CONFIG_COMMANDS
22496 $ $0 $@
22497
22498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22499 "
22500
22501 _ACEOF
22502
22503 case $ac_config_files in *"
22504 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22505 esac
22506
22507 case $ac_config_headers in *"
22508 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22509 esac
22510
22511
22512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513 # Files that config.status was made for.
22514 config_files="$ac_config_files"
22515 config_headers="$ac_config_headers"
22516 config_commands="$ac_config_commands"
22517
22518 _ACEOF
22519
22520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22521 ac_cs_usage="\
22522 \`$as_me' instantiates files and other configuration actions
22523 from templates according to the current configuration. Unless the files
22524 and actions are specified as TAGs, all are instantiated by default.
22525
22526 Usage: $0 [OPTION]... [TAG]...
22527
22528 -h, --help print this help, then exit
22529 -V, --version print version number and configuration settings, then exit
22530 --config print configuration, then exit
22531 -q, --quiet, --silent
22532 do not print progress messages
22533 -d, --debug don't remove temporary files
22534 --recheck update $as_me by reconfiguring in the same conditions
22535 --file=FILE[:TEMPLATE]
22536 instantiate the configuration file FILE
22537 --header=FILE[:TEMPLATE]
22538 instantiate the configuration header FILE
22539
22540 Configuration files:
22541 $config_files
22542
22543 Configuration headers:
22544 $config_headers
22545
22546 Configuration commands:
22547 $config_commands
22548
22549 Report bugs to <info@isc.org>.
22550 BIND home page: <https://www.isc.org/downloads/BIND/>."
22551
22552 _ACEOF
22553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22555 ac_cs_version="\\
22556 BIND config.status 9.14
22557 configured by $0, generated by GNU Autoconf 2.69,
22558 with options \\"\$ac_cs_config\\"
22559
22560 Copyright (C) 2012 Free Software Foundation, Inc.
22561 This config.status script is free software; the Free Software Foundation
22562 gives unlimited permission to copy, distribute and modify it."
22563
22564 ac_pwd='$ac_pwd'
22565 srcdir='$srcdir'
22566 INSTALL='$INSTALL'
22567 AWK='$AWK'
22568 test -n "\$AWK" || AWK=awk
22569 _ACEOF
22570
22571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22572 # The default lists apply if the user does not specify any file.
22573 ac_need_defaults=:
22574 while test $# != 0
22575 do
22576 case $1 in
22577 --*=?*)
22578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22579 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22580 ac_shift=:
22581 ;;
22582 --*=)
22583 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22584 ac_optarg=
22585 ac_shift=:
22586 ;;
22587 *)
22588 ac_option=$1
22589 ac_optarg=$2
22590 ac_shift=shift
22591 ;;
22592 esac
22593
22594 case $ac_option in
22595 # Handling of the options.
22596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22597 ac_cs_recheck=: ;;
22598 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22599 $as_echo "$ac_cs_version"; exit ;;
22600 --config | --confi | --conf | --con | --co | --c )
22601 $as_echo "$ac_cs_config"; exit ;;
22602 --debug | --debu | --deb | --de | --d | -d )
22603 debug=: ;;
22604 --file | --fil | --fi | --f )
22605 $ac_shift
22606 case $ac_optarg in
22607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22608 '') as_fn_error $? "missing file argument" ;;
22609 esac
22610 as_fn_append CONFIG_FILES " '$ac_optarg'"
22611 ac_need_defaults=false;;
22612 --header | --heade | --head | --hea )
22613 $ac_shift
22614 case $ac_optarg in
22615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22616 esac
22617 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22618 ac_need_defaults=false;;
22619 --he | --h)
22620 # Conflict between --help and --header
22621 as_fn_error $? "ambiguous option: \`$1'
22622 Try \`$0 --help' for more information.";;
22623 --help | --hel | -h )
22624 $as_echo "$ac_cs_usage"; exit ;;
22625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22627 ac_cs_silent=: ;;
22628
22629 # This is an error.
22630 -*) as_fn_error $? "unrecognized option: \`$1'
22631 Try \`$0 --help' for more information." ;;
22632
22633 *) as_fn_append ac_config_targets " $1"
22634 ac_need_defaults=false ;;
22635
22636 esac
22637 shift
22638 done
22639
22640 ac_configure_extra_args=
22641
22642 if $ac_cs_silent; then
22643 exec 6>/dev/null
22644 ac_configure_extra_args="$ac_configure_extra_args --silent"
22645 fi
22646
22647 _ACEOF
22648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22649 if \$ac_cs_recheck; then
22650 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22651 shift
22652 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22653 CONFIG_SHELL='$SHELL'
22654 export CONFIG_SHELL
22655 exec "\$@"
22656 fi
22657
22658 _ACEOF
22659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22660 exec 5>>config.log
22661 {
22662 echo
22663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22664 ## Running $as_me. ##
22665 _ASBOX
22666 $as_echo "$ac_log"
22667 } >&5
22668
22669 _ACEOF
22670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22671 #
22672 # INIT-COMMANDS
22673 #
22674
22675
22676 # The HP-UX ksh and POSIX shell print the target directory to stdout
22677 # if CDPATH is set.
22678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22679
22680 sed_quote_subst='$sed_quote_subst'
22681 double_quote_subst='$double_quote_subst'
22682 delay_variable_subst='$delay_variable_subst'
22683 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22684 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22685 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22686 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22687 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22688 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22689 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22690 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22691 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22692 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22713 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22714 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22715 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22716 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22717 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22718 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22719 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22720 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22721 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22722 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22723 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22724 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22725 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22726 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22727 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22728 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22729 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22730 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22731 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22732 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22733 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22734 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22735 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22736 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22737 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22738 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22739 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22740 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22741 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"`'
22742 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22743 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22744 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22745 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22746 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22747 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22748 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22749 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22750 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22751 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22752 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22753 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22754 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22755 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22756 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22757 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22758 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22759 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22760 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22761 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22762 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22763 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22764 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22765 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22766 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22767 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22768 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22769 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22770 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22771 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22772 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22773 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22774 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22775 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22776 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22777 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22778 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22779 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22780 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22781 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22782 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22783 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22784 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22785 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22786 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22787 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22788 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22789 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22790 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22791 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22792 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22793 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22794 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22795 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22796 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22797 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22798 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22799 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22800 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22801 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22802 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22803 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22804 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22805 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22806 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22807 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22808 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22809 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22810 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22811 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22812 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22813 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22814 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22815 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22816 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22817 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22818
22819 LTCC='$LTCC'
22820 LTCFLAGS='$LTCFLAGS'
22821 compiler='$compiler_DEFAULT'
22822
22823 # A function that is used when there is no print builtin or printf.
22824 func_fallback_echo ()
22825 {
22826 eval 'cat <<_LTECHO_EOF
22827 \$1
22828 _LTECHO_EOF'
22829 }
22830
22831 # Quote evaled strings.
22832 for var in SHELL \
22833 ECHO \
22834 PATH_SEPARATOR \
22835 SED \
22836 GREP \
22837 EGREP \
22838 FGREP \
22839 LD \
22840 NM \
22841 LN_S \
22842 lt_SP2NL \
22843 lt_NL2SP \
22844 reload_flag \
22845 OBJDUMP \
22846 deplibs_check_method \
22847 file_magic_cmd \
22848 file_magic_glob \
22849 want_nocaseglob \
22850 DLLTOOL \
22851 sharedlib_from_linklib_cmd \
22852 AR \
22853 AR_FLAGS \
22854 archiver_list_spec \
22855 STRIP \
22856 RANLIB \
22857 CC \
22858 CFLAGS \
22859 compiler \
22860 lt_cv_sys_global_symbol_pipe \
22861 lt_cv_sys_global_symbol_to_cdecl \
22862 lt_cv_sys_global_symbol_to_import \
22863 lt_cv_sys_global_symbol_to_c_name_address \
22864 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22865 lt_cv_nm_interface \
22866 nm_file_list_spec \
22867 lt_cv_truncate_bin \
22868 lt_prog_compiler_no_builtin_flag \
22869 lt_prog_compiler_pic \
22870 lt_prog_compiler_wl \
22871 lt_prog_compiler_static \
22872 lt_cv_prog_compiler_c_o \
22873 need_locks \
22874 MANIFEST_TOOL \
22875 DSYMUTIL \
22876 NMEDIT \
22877 LIPO \
22878 OTOOL \
22879 OTOOL64 \
22880 shrext_cmds \
22881 export_dynamic_flag_spec \
22882 whole_archive_flag_spec \
22883 compiler_needs_object \
22884 with_gnu_ld \
22885 allow_undefined_flag \
22886 no_undefined_flag \
22887 hardcode_libdir_flag_spec \
22888 hardcode_libdir_separator \
22889 exclude_expsyms \
22890 include_expsyms \
22891 file_list_spec \
22892 variables_saved_for_relink \
22893 libname_spec \
22894 library_names_spec \
22895 soname_spec \
22896 install_override_mode \
22897 finish_eval \
22898 old_striplib \
22899 striplib; do
22900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22901 *[\\\\\\\`\\"\\\$]*)
22902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22903 ;;
22904 *)
22905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22906 ;;
22907 esac
22908 done
22909
22910 # Double-quote double-evaled strings.
22911 for var in reload_cmds \
22912 old_postinstall_cmds \
22913 old_postuninstall_cmds \
22914 old_archive_cmds \
22915 extract_expsyms_cmds \
22916 old_archive_from_new_cmds \
22917 old_archive_from_expsyms_cmds \
22918 archive_cmds \
22919 archive_expsym_cmds \
22920 module_cmds \
22921 module_expsym_cmds \
22922 export_symbols_cmds \
22923 prelink_cmds \
22924 postlink_cmds \
22925 postinstall_cmds \
22926 postuninstall_cmds \
22927 finish_cmds \
22928 sys_lib_search_path_spec \
22929 configure_time_dlsearch_path \
22930 configure_time_lt_sys_library_path; do
22931 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22932 *[\\\\\\\`\\"\\\$]*)
22933 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22934 ;;
22935 *)
22936 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22937 ;;
22938 esac
22939 done
22940
22941 ac_aux_dir='$ac_aux_dir'
22942
22943 # See if we are running on zsh, and set the options that allow our
22944 # commands through without removal of \ escapes INIT.
22945 if test -n "\${ZSH_VERSION+set}"; then
22946 setopt NO_GLOB_SUBST
22947 fi
22948
22949
22950 PACKAGE='$PACKAGE'
22951 VERSION='$VERSION'
22952 RM='$RM'
22953 ofile='$ofile'
22954
22955
22956
22957
22958 _ACEOF
22959
22960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22961
22962 # Handling of arguments.
22963 for ac_config_target in $ac_config_targets
22964 do
22965 case $ac_config_target in
22966 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22967 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22968 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
22969 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
22970 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
22971 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
22972 "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
22973 "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
22974 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
22975 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
22976 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
22977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22978 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
22979 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
22980 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
22981 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
22982 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
22983 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
22984 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
22985 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
22986 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
22987 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
22988 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
22989 "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
22990 "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
22991 "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
22992 "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
22993 "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
22994 "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
22995 "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
22996 "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
22997 "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
22998 "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
22999 "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
23000 "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
23001 "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
23002 "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
23003 "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
23004 "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
23005 "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
23006 "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
23007 "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
23008 "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
23009 "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
23010 "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
23011 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
23012 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
23013 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
23014 "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
23015 "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
23016 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
23017 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
23018 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
23019 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
23020 "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
23021 "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
23022 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
23023 "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
23024 "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
23025 "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
23026 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
23027 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
23028 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
23029 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
23030 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
23031 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
23032 "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
23033 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23034 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
23035 "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
23036 "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
23037 "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
23038 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
23039 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
23040 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
23041 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23042 "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
23043 "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
23044 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
23045 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
23046 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
23047 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
23048 "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
23049 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
23050 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23051 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
23052 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
23053 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
23054 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
23055 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
23056 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
23057 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
23058 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
23059 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
23060 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
23061 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
23062 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
23063 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
23064 "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
23065 "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
23066 "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
23067 "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
23068 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
23069 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
23070 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
23071 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
23072 "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
23073 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
23074 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
23075 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
23076 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
23077 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
23078 "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
23079 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
23080 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
23081 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
23082 "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
23083 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
23084 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
23085 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
23086 "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
23087 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
23088 "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
23089 "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
23090 "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
23091 "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
23092 "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
23093 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
23094 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
23095
23096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23097 esac
23098 done
23099
23100
23101 # If the user did not use the arguments to specify the items to instantiate,
23102 # then the envvar interface is used. Set only those that are not.
23103 # We use the long form for the default assignment because of an extremely
23104 # bizarre bug on SunOS 4.1.3.
23105 if $ac_need_defaults; then
23106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23108 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23109 fi
23110
23111 # Have a temporary directory for convenience. Make it in the build tree
23112 # simply because there is no reason against having it here, and in addition,
23113 # creating and moving files from /tmp can sometimes cause problems.
23114 # Hook for its removal unless debugging.
23115 # Note that there is a small window in which the directory will not be cleaned:
23116 # after its creation but before its name has been assigned to `$tmp'.
23117 $debug ||
23118 {
23119 tmp= ac_tmp=
23120 trap 'exit_status=$?
23121 : "${ac_tmp:=$tmp}"
23122 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23123 ' 0
23124 trap 'as_fn_exit 1' 1 2 13 15
23125 }
23126 # Create a (secure) tmp directory for tmp files.
23127
23128 {
23129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23130 test -d "$tmp"
23131 } ||
23132 {
23133 tmp=./conf$$-$RANDOM
23134 (umask 077 && mkdir "$tmp")
23135 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23136 ac_tmp=$tmp
23137
23138 # Set up the scripts for CONFIG_FILES section.
23139 # No need to generate them if there are no CONFIG_FILES.
23140 # This happens for instance with `./config.status config.h'.
23141 if test -n "$CONFIG_FILES"; then
23142
23143 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23144 ac_cs_awk_getline=:
23145 ac_cs_awk_pipe_init=
23146 ac_cs_awk_read_file='
23147 while ((getline aline < (F[key])) > 0)
23148 print(aline)
23149 close(F[key])'
23150 ac_cs_awk_pipe_fini=
23151 else
23152 ac_cs_awk_getline=false
23153 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23154 ac_cs_awk_read_file='
23155 print "|#_!!_#|"
23156 print "cat " F[key] " &&"
23157 '$ac_cs_awk_pipe_init
23158 # The final `:' finishes the AND list.
23159 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23160 fi
23161 ac_cr=`echo X | tr X '\015'`
23162 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23163 # But we know of no other shell where ac_cr would be empty at this
23164 # point, so we can use a bashism as a fallback.
23165 if test "x$ac_cr" = x; then
23166 eval ac_cr=\$\'\\r\'
23167 fi
23168 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23169 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23170 ac_cs_awk_cr='\\r'
23171 else
23172 ac_cs_awk_cr=$ac_cr
23173 fi
23174
23175 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23176 _ACEOF
23177
23178 # Create commands to substitute file output variables.
23179 {
23180 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23181 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
23182 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23183 echo "_ACAWK" &&
23184 echo "_ACEOF"
23185 } >conf$$files.sh &&
23186 . ./conf$$files.sh ||
23187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23188 rm -f conf$$files.sh
23189
23190 {
23191 echo "cat >conf$$subs.awk <<_ACEOF" &&
23192 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23193 echo "_ACEOF"
23194 } >conf$$subs.sh ||
23195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23197 ac_delim='%!_!# '
23198 for ac_last_try in false false false false false :; do
23199 . ./conf$$subs.sh ||
23200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23201
23202 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23203 if test $ac_delim_n = $ac_delim_num; then
23204 break
23205 elif $ac_last_try; then
23206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23207 else
23208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23209 fi
23210 done
23211 rm -f conf$$subs.sh
23212
23213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23214 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23215 _ACEOF
23216 sed -n '
23217 h
23218 s/^/S["/; s/!.*/"]=/
23219 p
23220 g
23221 s/^[^!]*!//
23222 :repl
23223 t repl
23224 s/'"$ac_delim"'$//
23225 t delim
23226 :nl
23227 h
23228 s/\(.\{148\}\)..*/\1/
23229 t more1
23230 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23231 p
23232 n
23233 b repl
23234 :more1
23235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23236 p
23237 g
23238 s/.\{148\}//
23239 t nl
23240 :delim
23241 h
23242 s/\(.\{148\}\)..*/\1/
23243 t more2
23244 s/["\\]/\\&/g; s/^/"/; s/$/"/
23245 p
23246 b
23247 :more2
23248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23249 p
23250 g
23251 s/.\{148\}//
23252 t delim
23253 ' <conf$$subs.awk | sed '
23254 /^[^""]/{
23255 N
23256 s/\n//
23257 }
23258 ' >>$CONFIG_STATUS || ac_write_fail=1
23259 rm -f conf$$subs.awk
23260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23261 _ACAWK
23262 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23263 for (key in S) S_is_set[key] = 1
23264 FS = ""
23265 \$ac_cs_awk_pipe_init
23266 }
23267 {
23268 line = $ 0
23269 nfields = split(line, field, "@")
23270 substed = 0
23271 len = length(field[1])
23272 for (i = 2; i < nfields; i++) {
23273 key = field[i]
23274 keylen = length(key)
23275 if (S_is_set[key]) {
23276 value = S[key]
23277 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23278 len += length(value) + length(field[++i])
23279 substed = 1
23280 } else
23281 len += 1 + keylen
23282 }
23283 if (nfields == 3 && !substed) {
23284 key = field[2]
23285 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23286 \$ac_cs_awk_read_file
23287 next
23288 }
23289 }
23290 print line
23291 }
23292 \$ac_cs_awk_pipe_fini
23293 _ACAWK
23294 _ACEOF
23295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23296 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23298 else
23299 cat
23300 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23301 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23302 _ACEOF
23303
23304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23306 # trailing colons and then remove the whole line if VPATH becomes empty
23307 # (actually we leave an empty line to preserve line numbers).
23308 if test "x$srcdir" = x.; then
23309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23310 h
23311 s///
23312 s/^/:/
23313 s/[ ]*$/:/
23314 s/:\$(srcdir):/:/g
23315 s/:\${srcdir}:/:/g
23316 s/:@srcdir@:/:/g
23317 s/^:*//
23318 s/:*$//
23319 x
23320 s/\(=[ ]*\).*/\1/
23321 G
23322 s/\n//
23323 s/^[^=]*=[ ]*$//
23324 }'
23325 fi
23326
23327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23328 fi # test -n "$CONFIG_FILES"
23329
23330 # Set up the scripts for CONFIG_HEADERS section.
23331 # No need to generate them if there are no CONFIG_HEADERS.
23332 # This happens for instance with `./config.status Makefile'.
23333 if test -n "$CONFIG_HEADERS"; then
23334 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23335 BEGIN {
23336 _ACEOF
23337
23338 # Transform confdefs.h into an awk script `defines.awk', embedded as
23339 # here-document in config.status, that substitutes the proper values into
23340 # config.h.in to produce config.h.
23341
23342 # Create a delimiter string that does not exist in confdefs.h, to ease
23343 # handling of long lines.
23344 ac_delim='%!_!# '
23345 for ac_last_try in false false :; do
23346 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23347 if test -z "$ac_tt"; then
23348 break
23349 elif $ac_last_try; then
23350 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23351 else
23352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23353 fi
23354 done
23355
23356 # For the awk script, D is an array of macro values keyed by name,
23357 # likewise P contains macro parameters if any. Preserve backslash
23358 # newline sequences.
23359
23360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23361 sed -n '
23362 s/.\{148\}/&'"$ac_delim"'/g
23363 t rset
23364 :rset
23365 s/^[ ]*#[ ]*define[ ][ ]*/ /
23366 t def
23367 d
23368 :def
23369 s/\\$//
23370 t bsnl
23371 s/["\\]/\\&/g
23372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23373 D["\1"]=" \3"/p
23374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23375 d
23376 :bsnl
23377 s/["\\]/\\&/g
23378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23379 D["\1"]=" \3\\\\\\n"\\/p
23380 t cont
23381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23382 t cont
23383 d
23384 :cont
23385 n
23386 s/.\{148\}/&'"$ac_delim"'/g
23387 t clear
23388 :clear
23389 s/\\$//
23390 t bsnlc
23391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23392 d
23393 :bsnlc
23394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23395 b cont
23396 ' <confdefs.h | sed '
23397 s/'"$ac_delim"'/"\\\
23398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23399
23400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23401 for (key in D) D_is_set[key] = 1
23402 FS = ""
23403 }
23404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23405 line = \$ 0
23406 split(line, arg, " ")
23407 if (arg[1] == "#") {
23408 defundef = arg[2]
23409 mac1 = arg[3]
23410 } else {
23411 defundef = substr(arg[1], 2)
23412 mac1 = arg[2]
23413 }
23414 split(mac1, mac2, "(") #)
23415 macro = mac2[1]
23416 prefix = substr(line, 1, index(line, defundef) - 1)
23417 if (D_is_set[macro]) {
23418 # Preserve the white space surrounding the "#".
23419 print prefix "define", macro P[macro] D[macro]
23420 next
23421 } else {
23422 # Replace #undef with comments. This is necessary, for example,
23423 # in the case of _POSIX_SOURCE, which is predefined and required
23424 # on some systems where configure will not decide to define it.
23425 if (defundef == "undef") {
23426 print "/*", prefix defundef, macro, "*/"
23427 next
23428 }
23429 }
23430 }
23431 { print }
23432 _ACAWK
23433 _ACEOF
23434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23435 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23436 fi # test -n "$CONFIG_HEADERS"
23437
23438
23439 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23440 shift
23441 for ac_tag
23442 do
23443 case $ac_tag in
23444 :[FHLC]) ac_mode=$ac_tag; continue;;
23445 esac
23446 case $ac_mode$ac_tag in
23447 :[FHL]*:*);;
23448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23449 :[FH]-) ac_tag=-:-;;
23450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23451 esac
23452 ac_save_IFS=$IFS
23453 IFS=:
23454 set x $ac_tag
23455 IFS=$ac_save_IFS
23456 shift
23457 ac_file=$1
23458 shift
23459
23460 case $ac_mode in
23461 :L) ac_source=$1;;
23462 :[FH])
23463 ac_file_inputs=
23464 for ac_f
23465 do
23466 case $ac_f in
23467 -) ac_f="$ac_tmp/stdin";;
23468 *) # Look for the file first in the build tree, then in the source tree
23469 # (if the path is not absolute). The absolute path cannot be DOS-style,
23470 # because $ac_f cannot contain `:'.
23471 test -f "$ac_f" ||
23472 case $ac_f in
23473 [\\/$]*) false;;
23474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23475 esac ||
23476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23477 esac
23478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23479 as_fn_append ac_file_inputs " '$ac_f'"
23480 done
23481
23482 # Let's still pretend it is `configure' which instantiates (i.e., don't
23483 # use $as_me), people would be surprised to read:
23484 # /* config.h. Generated by config.status. */
23485 configure_input='Generated from '`
23486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23487 `' by configure.'
23488 if test x"$ac_file" != x-; then
23489 configure_input="$ac_file. $configure_input"
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23491 $as_echo "$as_me: creating $ac_file" >&6;}
23492 fi
23493 # Neutralize special characters interpreted by sed in replacement strings.
23494 case $configure_input in #(
23495 *\&* | *\|* | *\\* )
23496 ac_sed_conf_input=`$as_echo "$configure_input" |
23497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23498 *) ac_sed_conf_input=$configure_input;;
23499 esac
23500
23501 case $ac_tag in
23502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23504 esac
23505 ;;
23506 esac
23507
23508 ac_dir=`$as_dirname -- "$ac_file" ||
23509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23510 X"$ac_file" : 'X\(//\)[^/]' \| \
23511 X"$ac_file" : 'X\(//\)$' \| \
23512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23513 $as_echo X"$ac_file" |
23514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23515 s//\1/
23516 q
23517 }
23518 /^X\(\/\/\)[^/].*/{
23519 s//\1/
23520 q
23521 }
23522 /^X\(\/\/\)$/{
23523 s//\1/
23524 q
23525 }
23526 /^X\(\/\).*/{
23527 s//\1/
23528 q
23529 }
23530 s/.*/./; q'`
23531 as_dir="$ac_dir"; as_fn_mkdir_p
23532 ac_builddir=.
23533
23534 case "$ac_dir" in
23535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23536 *)
23537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23538 # A ".." for each directory in $ac_dir_suffix.
23539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23540 case $ac_top_builddir_sub in
23541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23543 esac ;;
23544 esac
23545 ac_abs_top_builddir=$ac_pwd
23546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23547 # for backward compatibility:
23548 ac_top_builddir=$ac_top_build_prefix
23549
23550 case $srcdir in
23551 .) # We are building in place.
23552 ac_srcdir=.
23553 ac_top_srcdir=$ac_top_builddir_sub
23554 ac_abs_top_srcdir=$ac_pwd ;;
23555 [\\/]* | ?:[\\/]* ) # Absolute name.
23556 ac_srcdir=$srcdir$ac_dir_suffix;
23557 ac_top_srcdir=$srcdir
23558 ac_abs_top_srcdir=$srcdir ;;
23559 *) # Relative name.
23560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23561 ac_top_srcdir=$ac_top_build_prefix$srcdir
23562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23563 esac
23564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23565
23566
23567 case $ac_mode in
23568 :F)
23569 #
23570 # CONFIG_FILE
23571 #
23572
23573 case $INSTALL in
23574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23576 esac
23577 _ACEOF
23578
23579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23580 # If the template does not know about datarootdir, expand it.
23581 # FIXME: This hack should be removed a few years after 2.60.
23582 ac_datarootdir_hack=; ac_datarootdir_seen=
23583 ac_sed_dataroot='
23584 /datarootdir/ {
23585 p
23586 q
23587 }
23588 /@datadir@/p
23589 /@docdir@/p
23590 /@infodir@/p
23591 /@localedir@/p
23592 /@mandir@/p'
23593 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23594 *datarootdir*) ac_datarootdir_seen=yes;;
23595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23597 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23598 _ACEOF
23599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23600 ac_datarootdir_hack='
23601 s&@datadir@&$datadir&g
23602 s&@docdir@&$docdir&g
23603 s&@infodir@&$infodir&g
23604 s&@localedir@&$localedir&g
23605 s&@mandir@&$mandir&g
23606 s&\\\${datarootdir}&$datarootdir&g' ;;
23607 esac
23608 _ACEOF
23609
23610 # Neutralize VPATH when `$srcdir' = `.'.
23611 # Shell code in configure.ac might set extrasub.
23612 # FIXME: do we really want to maintain this feature?
23613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23614 ac_sed_extra="$ac_vpsub
23615 $extrasub
23616 _ACEOF
23617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23618 :t
23619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23620 s|@configure_input@|$ac_sed_conf_input|;t t
23621 s&@top_builddir@&$ac_top_builddir_sub&;t t
23622 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23623 s&@srcdir@&$ac_srcdir&;t t
23624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23625 s&@top_srcdir@&$ac_top_srcdir&;t t
23626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23627 s&@builddir@&$ac_builddir&;t t
23628 s&@abs_builddir@&$ac_abs_builddir&;t t
23629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23630 s&@INSTALL@&$ac_INSTALL&;t t
23631 $ac_datarootdir_hack
23632 "
23633 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23634 if $ac_cs_awk_getline; then
23635 $AWK -f "$ac_tmp/subs.awk"
23636 else
23637 $AWK -f "$ac_tmp/subs.awk" | $SHELL
23638 fi \
23639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23640
23641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23644 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23646 which seems to be undefined. Please make sure it is defined" >&5
23647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23648 which seems to be undefined. Please make sure it is defined" >&2;}
23649
23650 rm -f "$ac_tmp/stdin"
23651 case $ac_file in
23652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23654 esac \
23655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23656 ;;
23657 :H)
23658 #
23659 # CONFIG_HEADER
23660 #
23661 if test x"$ac_file" != x-; then
23662 {
23663 $as_echo "/* $configure_input */" \
23664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23665 } >"$ac_tmp/config.h" \
23666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23667 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23669 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23670 else
23671 rm -f "$ac_file"
23672 mv "$ac_tmp/config.h" "$ac_file" \
23673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23674 fi
23675 else
23676 $as_echo "/* $configure_input */" \
23677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23678 || as_fn_error $? "could not create -" "$LINENO" 5
23679 fi
23680 ;;
23681
23682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23683 $as_echo "$as_me: executing $ac_file commands" >&6;}
23684 ;;
23685 esac
23686
23687
23688 case $ac_file$ac_mode in
23689 "libtool":C)
23690
23691 # See if we are running on zsh, and set the options that allow our
23692 # commands through without removal of \ escapes.
23693 if test -n "${ZSH_VERSION+set}"; then
23694 setopt NO_GLOB_SUBST
23695 fi
23696
23697 cfgfile=${ofile}T
23698 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23699 $RM "$cfgfile"
23700
23701 cat <<_LT_EOF >> "$cfgfile"
23702 #! $SHELL
23703 # Generated automatically by $as_me ($PACKAGE) $VERSION
23704 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23705 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23706
23707 # Provide generalized library-building support services.
23708 # Written by Gordon Matzigkeit, 1996
23709
23710 # Copyright (C) 2014 Free Software Foundation, Inc.
23711 # This is free software; see the source for copying conditions. There is NO
23712 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23713
23714 # GNU Libtool is free software; you can redistribute it and/or modify
23715 # it under the terms of the GNU General Public License as published by
23716 # the Free Software Foundation; either version 2 of of the License, or
23717 # (at your option) any later version.
23718 #
23719 # As a special exception to the GNU General Public License, if you
23720 # distribute this file as part of a program or library that is built
23721 # using GNU Libtool, you may include this file under the same
23722 # distribution terms that you use for the rest of that program.
23723 #
23724 # GNU Libtool is distributed in the hope that it will be useful, but
23725 # WITHOUT ANY WARRANTY; without even the implied warranty of
23726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23727 # GNU General Public License for more details.
23728 #
23729 # You should have received a copy of the GNU General Public License
23730 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23731
23732
23733 # The names of the tagged configurations supported by this script.
23734 available_tags=''
23735
23736 # Configured defaults for sys_lib_dlsearch_path munging.
23737 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23738
23739 # ### BEGIN LIBTOOL CONFIG
23740
23741 # Which release of libtool.m4 was used?
23742 macro_version=$macro_version
23743 macro_revision=$macro_revision
23744
23745 # Whether or not to build shared libraries.
23746 build_libtool_libs=$enable_shared
23747
23748 # Whether or not to build static libraries.
23749 build_old_libs=$enable_static
23750
23751 # What type of objects to build.
23752 pic_mode=$pic_mode
23753
23754 # Whether or not to optimize for fast installation.
23755 fast_install=$enable_fast_install
23756
23757 # Shared archive member basename,for filename based shared library versioning on AIX.
23758 shared_archive_member_spec=$shared_archive_member_spec
23759
23760 # Shell to use when invoking shell scripts.
23761 SHELL=$lt_SHELL
23762
23763 # An echo program that protects backslashes.
23764 ECHO=$lt_ECHO
23765
23766 # The PATH separator for the build system.
23767 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23768
23769 # The host system.
23770 host_alias=$host_alias
23771 host=$host
23772 host_os=$host_os
23773
23774 # The build system.
23775 build_alias=$build_alias
23776 build=$build
23777 build_os=$build_os
23778
23779 # A sed program that does not truncate output.
23780 SED=$lt_SED
23781
23782 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23783 Xsed="\$SED -e 1s/^X//"
23784
23785 # A grep program that handles long lines.
23786 GREP=$lt_GREP
23787
23788 # An ERE matcher.
23789 EGREP=$lt_EGREP
23790
23791 # A literal string matcher.
23792 FGREP=$lt_FGREP
23793
23794 # A BSD- or MS-compatible name lister.
23795 NM=$lt_NM
23796
23797 # Whether we need soft or hard links.
23798 LN_S=$lt_LN_S
23799
23800 # What is the maximum length of a command?
23801 max_cmd_len=$max_cmd_len
23802
23803 # Object file suffix (normally "o").
23804 objext=$ac_objext
23805
23806 # Executable file suffix (normally "").
23807 exeext=$exeext
23808
23809 # whether the shell understands "unset".
23810 lt_unset=$lt_unset
23811
23812 # turn spaces into newlines.
23813 SP2NL=$lt_lt_SP2NL
23814
23815 # turn newlines into spaces.
23816 NL2SP=$lt_lt_NL2SP
23817
23818 # convert \$build file names to \$host format.
23819 to_host_file_cmd=$lt_cv_to_host_file_cmd
23820
23821 # convert \$build files to toolchain format.
23822 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23823
23824 # An object symbol dumper.
23825 OBJDUMP=$lt_OBJDUMP
23826
23827 # Method to check whether dependent libraries are shared objects.
23828 deplibs_check_method=$lt_deplibs_check_method
23829
23830 # Command to use when deplibs_check_method = "file_magic".
23831 file_magic_cmd=$lt_file_magic_cmd
23832
23833 # How to find potential files when deplibs_check_method = "file_magic".
23834 file_magic_glob=$lt_file_magic_glob
23835
23836 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23837 want_nocaseglob=$lt_want_nocaseglob
23838
23839 # DLL creation program.
23840 DLLTOOL=$lt_DLLTOOL
23841
23842 # Command to associate shared and link libraries.
23843 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23844
23845 # The archiver.
23846 AR=$lt_AR
23847
23848 # Flags to create an archive.
23849 AR_FLAGS=$lt_AR_FLAGS
23850
23851 # How to feed a file listing to the archiver.
23852 archiver_list_spec=$lt_archiver_list_spec
23853
23854 # A symbol stripping program.
23855 STRIP=$lt_STRIP
23856
23857 # Commands used to install an old-style archive.
23858 RANLIB=$lt_RANLIB
23859 old_postinstall_cmds=$lt_old_postinstall_cmds
23860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23861
23862 # Whether to use a lock for old archive extraction.
23863 lock_old_archive_extraction=$lock_old_archive_extraction
23864
23865 # A C compiler.
23866 LTCC=$lt_CC
23867
23868 # LTCC compiler flags.
23869 LTCFLAGS=$lt_CFLAGS
23870
23871 # Take the output of nm and produce a listing of raw symbols and C names.
23872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23873
23874 # Transform the output of nm in a proper C declaration.
23875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23876
23877 # Transform the output of nm into a list of symbols to manually relocate.
23878 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23879
23880 # Transform the output of nm in a C name address pair.
23881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23882
23883 # Transform the output of nm in a C name address pair when lib prefix is needed.
23884 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23885
23886 # The name lister interface.
23887 nm_interface=$lt_lt_cv_nm_interface
23888
23889 # Specify filename containing input files for \$NM.
23890 nm_file_list_spec=$lt_nm_file_list_spec
23891
23892 # The root where to search for dependent libraries,and where our libraries should be installed.
23893 lt_sysroot=$lt_sysroot
23894
23895 # Command to truncate a binary pipe.
23896 lt_truncate_bin=$lt_lt_cv_truncate_bin
23897
23898 # The name of the directory that contains temporary libtool files.
23899 objdir=$objdir
23900
23901 # Used to examine libraries when file_magic_cmd begins with "file".
23902 MAGIC_CMD=$MAGIC_CMD
23903
23904 # Must we lock files when doing compilation?
23905 need_locks=$lt_need_locks
23906
23907 # Manifest tool.
23908 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23909
23910 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23911 DSYMUTIL=$lt_DSYMUTIL
23912
23913 # Tool to change global to local symbols on Mac OS X.
23914 NMEDIT=$lt_NMEDIT
23915
23916 # Tool to manipulate fat objects and archives on Mac OS X.
23917 LIPO=$lt_LIPO
23918
23919 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23920 OTOOL=$lt_OTOOL
23921
23922 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23923 OTOOL64=$lt_OTOOL64
23924
23925 # Old archive suffix (normally "a").
23926 libext=$libext
23927
23928 # Shared library suffix (normally ".so").
23929 shrext_cmds=$lt_shrext_cmds
23930
23931 # The commands to extract the exported symbol list from a shared archive.
23932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23933
23934 # Variables whose values should be saved in libtool wrapper scripts and
23935 # restored at link time.
23936 variables_saved_for_relink=$lt_variables_saved_for_relink
23937
23938 # Do we need the "lib" prefix for modules?
23939 need_lib_prefix=$need_lib_prefix
23940
23941 # Do we need a version for libraries?
23942 need_version=$need_version
23943
23944 # Library versioning type.
23945 version_type=$version_type
23946
23947 # Shared library runtime path variable.
23948 runpath_var=$runpath_var
23949
23950 # Shared library path variable.
23951 shlibpath_var=$shlibpath_var
23952
23953 # Is shlibpath searched before the hard-coded library search path?
23954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23955
23956 # Format of library name prefix.
23957 libname_spec=$lt_libname_spec
23958
23959 # List of archive names. First name is the real one, the rest are links.
23960 # The last name is the one that the linker finds with -lNAME
23961 library_names_spec=$lt_library_names_spec
23962
23963 # The coded name of the library, if different from the real name.
23964 soname_spec=$lt_soname_spec
23965
23966 # Permission mode override for installation of shared libraries.
23967 install_override_mode=$lt_install_override_mode
23968
23969 # Command to use after installation of a shared archive.
23970 postinstall_cmds=$lt_postinstall_cmds
23971
23972 # Command to use after uninstallation of a shared archive.
23973 postuninstall_cmds=$lt_postuninstall_cmds
23974
23975 # Commands used to finish a libtool library installation in a directory.
23976 finish_cmds=$lt_finish_cmds
23977
23978 # As "finish_cmds", except a single script fragment to be evaled but
23979 # not shown.
23980 finish_eval=$lt_finish_eval
23981
23982 # Whether we should hardcode library paths into libraries.
23983 hardcode_into_libs=$hardcode_into_libs
23984
23985 # Compile-time system search path for libraries.
23986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23987
23988 # Detected run-time system search path for libraries.
23989 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23990
23991 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23992 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23993
23994 # Whether dlopen is supported.
23995 dlopen_support=$enable_dlopen
23996
23997 # Whether dlopen of programs is supported.
23998 dlopen_self=$enable_dlopen_self
23999
24000 # Whether dlopen of statically linked programs is supported.
24001 dlopen_self_static=$enable_dlopen_self_static
24002
24003 # Commands to strip libraries.
24004 old_striplib=$lt_old_striplib
24005 striplib=$lt_striplib
24006
24007
24008 # The linker used to build libraries.
24009 LD=$lt_LD
24010
24011 # How to create reloadable object files.
24012 reload_flag=$lt_reload_flag
24013 reload_cmds=$lt_reload_cmds
24014
24015 # Commands used to build an old-style archive.
24016 old_archive_cmds=$lt_old_archive_cmds
24017
24018 # A language specific compiler.
24019 CC=$lt_compiler
24020
24021 # Is the compiler the GNU compiler?
24022 with_gcc=$GCC
24023
24024 # Compiler flag to turn off builtin functions.
24025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24026
24027 # Additional compiler flags for building library objects.
24028 pic_flag=$lt_lt_prog_compiler_pic
24029
24030 # How to pass a linker flag through the compiler.
24031 wl=$lt_lt_prog_compiler_wl
24032
24033 # Compiler flag to prevent dynamic linking.
24034 link_static_flag=$lt_lt_prog_compiler_static
24035
24036 # Does compiler simultaneously support -c and -o options?
24037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24038
24039 # Whether or not to add -lc for building shared libraries.
24040 build_libtool_need_lc=$archive_cmds_need_lc
24041
24042 # Whether or not to disallow shared libs when runtime libs are static.
24043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24044
24045 # Compiler flag to allow reflexive dlopens.
24046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24047
24048 # Compiler flag to generate shared objects directly from archives.
24049 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24050
24051 # Whether the compiler copes with passing no objects directly.
24052 compiler_needs_object=$lt_compiler_needs_object
24053
24054 # Create an old-style archive from a shared archive.
24055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24056
24057 # Create a temporary old-style archive to link instead of a shared archive.
24058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24059
24060 # Commands used to build a shared archive.
24061 archive_cmds=$lt_archive_cmds
24062 archive_expsym_cmds=$lt_archive_expsym_cmds
24063
24064 # Commands used to build a loadable module if different from building
24065 # a shared archive.
24066 module_cmds=$lt_module_cmds
24067 module_expsym_cmds=$lt_module_expsym_cmds
24068
24069 # Whether we are building with GNU ld or not.
24070 with_gnu_ld=$lt_with_gnu_ld
24071
24072 # Flag that allows shared libraries with undefined symbols to be built.
24073 allow_undefined_flag=$lt_allow_undefined_flag
24074
24075 # Flag that enforces no undefined symbols.
24076 no_undefined_flag=$lt_no_undefined_flag
24077
24078 # Flag to hardcode \$libdir into a binary during linking.
24079 # This must work even if \$libdir does not exist
24080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24081
24082 # Whether we need a single "-rpath" flag with a separated argument.
24083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24084
24085 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24086 # DIR into the resulting binary.
24087 hardcode_direct=$hardcode_direct
24088
24089 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24090 # DIR into the resulting binary and the resulting library dependency is
24091 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24092 # library is relocated.
24093 hardcode_direct_absolute=$hardcode_direct_absolute
24094
24095 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24096 # into the resulting binary.
24097 hardcode_minus_L=$hardcode_minus_L
24098
24099 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24100 # into the resulting binary.
24101 hardcode_shlibpath_var=$hardcode_shlibpath_var
24102
24103 # Set to "yes" if building a shared library automatically hardcodes DIR
24104 # into the library and all subsequent libraries and executables linked
24105 # against it.
24106 hardcode_automatic=$hardcode_automatic
24107
24108 # Set to yes if linker adds runtime paths of dependent libraries
24109 # to runtime path list.
24110 inherit_rpath=$inherit_rpath
24111
24112 # Whether libtool must link a program against all its dependency libraries.
24113 link_all_deplibs=$link_all_deplibs
24114
24115 # Set to "yes" if exported symbols are required.
24116 always_export_symbols=$always_export_symbols
24117
24118 # The commands to list exported symbols.
24119 export_symbols_cmds=$lt_export_symbols_cmds
24120
24121 # Symbols that should not be listed in the preloaded symbols.
24122 exclude_expsyms=$lt_exclude_expsyms
24123
24124 # Symbols that must always be exported.
24125 include_expsyms=$lt_include_expsyms
24126
24127 # Commands necessary for linking programs (against libraries) with templates.
24128 prelink_cmds=$lt_prelink_cmds
24129
24130 # Commands necessary for finishing linking programs.
24131 postlink_cmds=$lt_postlink_cmds
24132
24133 # Specify filename containing input files.
24134 file_list_spec=$lt_file_list_spec
24135
24136 # How to hardcode a shared library path into an executable.
24137 hardcode_action=$hardcode_action
24138
24139 # ### END LIBTOOL CONFIG
24140
24141 _LT_EOF
24142
24143 cat <<'_LT_EOF' >> "$cfgfile"
24144
24145 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24146
24147 # func_munge_path_list VARIABLE PATH
24148 # -----------------------------------
24149 # VARIABLE is name of variable containing _space_ separated list of
24150 # directories to be munged by the contents of PATH, which is string
24151 # having a format:
24152 # "DIR[:DIR]:"
24153 # string "DIR[ DIR]" will be prepended to VARIABLE
24154 # ":DIR[:DIR]"
24155 # string "DIR[ DIR]" will be appended to VARIABLE
24156 # "DIRP[:DIRP]::[DIRA:]DIRA"
24157 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24158 # "DIRA[ DIRA]" will be appended to VARIABLE
24159 # "DIR[:DIR]"
24160 # VARIABLE will be replaced by "DIR[ DIR]"
24161 func_munge_path_list ()
24162 {
24163 case x$2 in
24164 x)
24165 ;;
24166 *:)
24167 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24168 ;;
24169 x:*)
24170 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24171 ;;
24172 *::*)
24173 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24174 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24175 ;;
24176 *)
24177 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24178 ;;
24179 esac
24180 }
24181
24182
24183 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24184 func_cc_basename ()
24185 {
24186 for cc_temp in $*""; do
24187 case $cc_temp in
24188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24190 \-*) ;;
24191 *) break;;
24192 esac
24193 done
24194 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24195 }
24196
24197
24198 # ### END FUNCTIONS SHARED WITH CONFIGURE
24199
24200 _LT_EOF
24201
24202 case $host_os in
24203 aix3*)
24204 cat <<\_LT_EOF >> "$cfgfile"
24205 # AIX sometimes has problems with the GCC collect2 program. For some
24206 # reason, if we set the COLLECT_NAMES environment variable, the problems
24207 # vanish in a puff of smoke.
24208 if test set != "${COLLECT_NAMES+set}"; then
24209 COLLECT_NAMES=
24210 export COLLECT_NAMES
24211 fi
24212 _LT_EOF
24213 ;;
24214 esac
24215
24216
24217 ltmain=$ac_aux_dir/ltmain.sh
24218
24219
24220 # We use sed instead of cat because bash on DJGPP gets confused if
24221 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24222 # text mode, it properly converts lines to CR/LF. This bash problem
24223 # is reportedly fixed, but why not run on old versions too?
24224 sed '$q' "$ltmain" >> "$cfgfile" \
24225 || (rm -f "$cfgfile"; exit 1)
24226
24227 mv -f "$cfgfile" "$ofile" ||
24228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24229 chmod +x "$ofile"
24230
24231 ;;
24232 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
24233
24234 esac
24235 done # for ac_tag
24236
24237
24238 as_fn_exit 0
24239 _ACEOF
24240 ac_clean_files=$ac_clean_files_save
24241
24242 test $ac_write_fail = 0 ||
24243 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24244
24245
24246 # configure is writing to config.log, and then calls config.status.
24247 # config.status does its own redirection, appending to config.log.
24248 # Unfortunately, on DOS this fails, as config.log is still kept open
24249 # by configure, so config.status won't be able to write to it; its
24250 # output is simply discarded. So we exec the FD to /dev/null,
24251 # effectively closing config.log, so it can be properly (re)opened and
24252 # appended to by config.status. When coming back to configure, we
24253 # need to make the FD available again.
24254 if test "$no_create" != yes; then
24255 ac_cs_success=:
24256 ac_config_status_args=
24257 test "$silent" = yes &&
24258 ac_config_status_args="$ac_config_status_args --quiet"
24259 exec 5>/dev/null
24260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24261 exec 5>>config.log
24262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24263 # would make configure fail if this is the last instruction.
24264 $ac_cs_success || as_fn_exit 1
24265 fi
24266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24269 fi
24270
24271
24272 #
24273 # Now that the Makefiles exist we can ensure that everything is rebuilt.
24274 #
24275
24276 # Check whether --with-make-clean was given.
24277 if test "${with_make_clean+set}" = set; then :
24278 withval=$with_make_clean; make_clean="$withval"
24279 else
24280 make_clean="yes"
24281 fi
24282
24283 case "$make_clean" in
24284 yes)
24285 if test "yes" != "$no_create"
24286 then
24287 if test "yes" = "$silent"
24288 then
24289 make clean > /dev/null
24290 else
24291 make clean
24292 fi
24293 fi
24294 ;;
24295 esac
24296
24297 # Check whether --enable-full-report was given.
24298 if test "${enable_full_report+set}" = set; then :
24299 enableval=$enable_full_report;
24300 fi
24301
24302
24303 report() {
24304 echo "==============================================================================="
24305 echo "Configuration summary:"
24306 echo "-------------------------------------------------------------------------------"
24307 echo "Optional features enabled:"
24308 if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
24309 echo " Mutex lock type: $locktype"
24310 fi
24311 test "large" = "$use_tuning" && echo " Large-system tuning (--with-tuning)"
24312 test "no" = "$use_dnstap" || \
24313 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
24314 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--with-geoip2)"
24315 test "no" = "$use_geoip" || echo " Legacy GeoIP access control (--with-geoip)"
24316 test "no" = "$use_gssapi" || echo " GSS-API (--with-gssapi)"
24317
24318 # these lines are only printed if run with --enable-full-report
24319 if test "yes" = "$enable_full_report"; then
24320 test "no" = "$found_ipv6" || echo " IPv6 support (--enable-ipv6)"
24321 test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
24322 test "X$XMLSTATS" = "X" || echo " XML statistics (--with-libxml2)"
24323 test "X$JSONSTATS" = "X" || echo " JSON statistics (--with-libjson)"
24324 test "X$ZLIB" = "X" || echo " HTTP zlib compression (--with-zlib)"
24325 test "X$NZD_TOOLS" = "X" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
24326 test "no" = "$with_libidn2" || echo " IDN support (--with-libidn2)"
24327 fi
24328
24329 test "yes" = "$enable_dnsrps" && \
24330 echo " DNS Response Policy Service interface (--enable-dnsrps)"
24331 test "yes" = "$enable_fixed" && \
24332 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
24333 test "yes" = "$enable_backtrace" && \
24334 echo " Print backtrace on crash (--enable-backtrace)"
24335 test "minimal" = "$want_symtable" && \
24336 echo " Use symbol table for backtrace, named only (--enable-symtable)"
24337 test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
24338 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)"
24339 test "no" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
24340 test "yes" = "$want_querytrace" && \
24341 echo " Very verbose query trace logging (--enable-querytrace)"
24342 test "no" = "$with_cmocka" || echo " CMocka Unit Testing Framework (--with-cmocka)"
24343
24344 test "auto" = "$validation_default" && echo " DNSSEC validation active by default (--enable-auto-validation)"
24345
24346 test "$CRYPTO" = "pkcs11" && (
24347 echo " Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
24348 echo " PKCS#11 module (--with-pkcs11): $with_pkcs11"
24349 )
24350
24351 echo " Dynamically loadable zone (DLZ) drivers:"
24352 test "no" = "$use_dlz_bdb" || \
24353 echo " Berkeley DB (--with-dlz-bdb)"
24354 test "no" = "$use_dlz_ldap" || \
24355 echo " LDAP (--with-dlz-ldap)"
24356 test "no" = "$use_dlz_mysql" || \
24357 echo " MySQL (--with-dlz-mysql)"
24358 test "no" = "$use_dlz_odbc" || \
24359 echo " ODBC (--with-dlz-odbc)"
24360 test "no" = "$use_dlz_postgres" || \
24361 echo " Postgres (--with-dlz-postgres)"
24362 test "no" = "$use_dlz_filesystem" || \
24363 echo " Filesystem (--with-dlz-filesystem)"
24364 test "no" = "$use_dlz_stub" || \
24365 echo " Stub (--with-dlz-stub)"
24366 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"
24367
24368 echo "-------------------------------------------------------------------------------"
24369
24370 echo "Features disabled or unavailable on this platform:"
24371 test "no" = "$found_ipv6" && echo " IPv6 support (--enable-ipv6)"
24372 test "large" = "$use_tuning" || echo " Large-system tuning (--with-tuning)"
24373
24374 test "no" = "$use_dnstap" && \
24375 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
24376 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--with-geoip2)"
24377 test "no" = "$use_gssapi" && echo " GSS-API (--with-gssapi)"
24378
24379 test "no" = "$enable_dnsrps" && \
24380 echo " DNS Response Policy Service interface (--enable-dnsrps)"
24381
24382 test "yes" = "$enable_fixed" || \
24383 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
24384
24385 test "yes" = "$validation_default" && echo " DNSSEC validation requires configuration (--enablee-auto-validation)"
24386
24387 test "$CRYPTO" = "pkcs11" || (
24388 echo " Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
24389 )
24390
24391 test "yes" = "$enable_backtrace" || \
24392 echo " Print backtrace on crash (--enable-backtrace)"
24393 test "yes" = "$want_querytrace" || \
24394 echo " Very verbose query trace logging (--enable-querytrace)"
24395
24396 test "yes" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
24397 test "no" = "$with_cmocka" && echo " CMocka Unit Testing Framework (--with-cmocka)"
24398
24399 test "X$PYTHON" = "X" && echo " Python tools (--with-python)"
24400 test "X$XMLSTATS" = "X" && echo " XML statistics (--with-libxml2)"
24401 test "X$JSONSTATS" = "X" && echo " JSON statistics (--with-libjson)"
24402 test "X$ZLIB" = "X" && echo " HTTP zlib compression (--with-zlib)"
24403 test "X$NZD_TOOLS" = "X" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
24404 test "no" = "$with_libidn2" && echo " IDN support (--with-libidn2)"
24405
24406 echo "-------------------------------------------------------------------------------"
24407 echo "Configured paths:"
24408 echo " prefix: $prefix"
24409 echo " sysconfdir: $sysconfdir"
24410 echo " localstatedir: $localstatedir"
24411 echo "-------------------------------------------------------------------------------"
24412 echo "Compiler: $CC"
24413 $CC --version 2>&1 | sed 's/^/ /'
24414
24415 if test "X$ac_unrecognized_opts" != "X"; then
24416 echo "Unrecognized options:"
24417 echo " $ac_unrecognized_opts"
24418 fi
24419
24420 if test "yes" != "$enable_full_report"; then
24421 echo "-------------------------------------------------------------------------------"
24422 echo "For more detail, use --enable-full-report."
24423 fi
24424 echo "==============================================================================="
24425 }
24426
24427 if test "yes" != "$silent"; then
24428 report
24429 fi
24430
24431 # Tell Emacs to edit this file in shell mode.
24432 # Local Variables:
24433 # mode: sh
24434 # End:
24435