Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for BIND 9.20.4.
4 #
5 # Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='BIND'
624 PACKAGE_TARNAME='bind'
625 PACKAGE_VERSION='9.20.4'
626 PACKAGE_STRING='BIND 9.20.4'
627 PACKAGE_BUGREPORT='https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug'
628 PACKAGE_URL='https://www.isc.org/downloads/'
629
630 ac_unique_file="bin/named/main.c"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 HAVE_DTRACE_FALSE
668 HAVE_DTRACE_TRUE
669 HAVE_SYSTEMTAP_FALSE
670 HAVE_SYSTEMTAP_TRUE
671 DTRACE
672 DNSRPS_FALSE
673 DNSRPS_TRUE
674 HAVE_JEMALLOC_FALSE
675 HAVE_JEMALLOC_TRUE
676 JEMALLOC_VERSION
677 JEMALLOC_LIBS
678 JEMALLOC_CFLAGS
679 HAVE_CMOCKA_FALSE
680 HAVE_CMOCKA_TRUE
681 CMOCKA_LIBS
682 CMOCKA_CFLAGS
683 LIBIDN2_LIBS
684 LIBIDN2_CFLAGS
685 NC
686 CURL
687 DOXYGEN
688 RELEASE_DATE
689 BUILD_MANPAGES_FALSE
690 BUILD_MANPAGES_TRUE
691 HAVE_SPHINX_BUILD_FALSE
692 HAVE_SPHINX_BUILD_TRUE
693 SPHINX_BUILD
694 HAVE_DNSTAP_FALSE
695 HAVE_DNSTAP_TRUE
696 PROTOC_C
697 FSTRM_CAPTURE
698 DNSTAP_LIBS
699 DNSTAP_CFLAGS
700 LIBCAP_LIBS
701 LIBCAP_CFLAGS
702 HAVE_READLINE_FALSE
703 HAVE_READLINE_TRUE
704 READLINE_LIBS
705 READLINE_CFLAGS
706 LIBSYSTEMD_LIBS
707 LIBSYSTEMD_CFLAGS
708 ZLIB_LIBS
709 ZLIB_CFLAGS
710 HAVE_JSON_C_FALSE
711 HAVE_JSON_C_TRUE
712 JSON_C_LIBS
713 JSON_C_CFLAGS
714 HAVE_LIBXML2_FALSE
715 HAVE_LIBXML2_TRUE
716 LIBXML2_LIBS
717 LIBXML2_CFLAGS
718 HAVE_LMDB_FALSE
719 HAVE_LMDB_TRUE
720 LMDB_LIBS
721 LMDB_CFLAGS
722 KRB5_LIBS
723 KRB5_CFLAGS
724 GSSAPI_LIBS
725 GSSAPI_CFLAGS
726 HAVE_GSSAPI_FALSE
727 HAVE_GSSAPI_TRUE
728 KRB5_CONFIG
729 OPENSSL_VERSION
730 OPENSSL_LDFLAGS
731 OPENSSL_LIBS
732 OPENSSL_CFLAGS
733 USE_ISC_RWLOCK_FALSE
734 USE_ISC_RWLOCK_TRUE
735 HAVE_LIBNGHTTP2_FALSE
736 HAVE_LIBNGHTTP2_TRUE
737 LIBNGHTTP2_LIBS
738 LIBNGHTTP2_CFLAGS
739 LIBUV_VERSION
740 LIBUV_LIBS
741 LIBUV_CFLAGS
742 PTHREAD_CFLAGS
743 PTHREAD_LIBS
744 PTHREAD_CXX
745 PTHREAD_CC
746 ax_pthread_config
747 HAVE_GEOIP2_FALSE
748 HAVE_GEOIP2_TRUE
749 MAXMINDDB_PREFIX
750 MAXMINDDB_LIBS
751 MAXMINDDB_CFLAGS
752 XSLTPROC
753 HAVE_PYTEST_FALSE
754 HAVE_PYTEST_TRUE
755 PYTEST
756 HAVE_PYTHON_FALSE
757 HAVE_PYTHON_TRUE
758 pkgpyexecdir
759 pyexecdir
760 pkgpythondir
761 pythondir
762 PYTHON_EXEC_PREFIX
763 PYTHON_PREFIX
764 PYTHON_PLATFORM
765 PYTHON_VERSION
766 PYTHON
767 HAVE_PERL_FALSE
768 HAVE_PERL_TRUE
769 PERL
770 FUZZ_LDFLAGS
771 FUZZ_LOG_COMPILER
772 HAVE_FUZZ_LOG_COMPILER_FALSE
773 HAVE_FUZZ_LOG_COMPILER_TRUE
774 RCU_VERSION
775 LIBURCU_LIBS
776 LIBURCU_CFLAGS
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 TEST_CFLAGS
781 STD_LDFLAGS
782 STD_CPPFLAGS
783 STD_CFLAGS
784 DEVELOPER_MODE
785 HOST_MACOS_FALSE
786 HOST_MACOS_TRUE
787 DLOPEN_LIBS
788 LT_SYS_LIBRARY_PATH
789 OTOOL64
790 OTOOL
791 LIPO
792 NMEDIT
793 DSYMUTIL
794 MANIFEST_TOOL
795 RANLIB
796 DLLTOOL
797 OBJDUMP
798 FILECMD
799 NM
800 ac_ct_DUMPBIN
801 DUMPBIN
802 LD
803 FGREP
804 EGREP
805 GREP
806 SED
807 LIBTOOL
808 LN_S
809 ac_ct_AR
810 AR
811 LDFLAGS_FOR_BUILD
812 CPPFLAGS_FOR_BUILD
813 CFLAGS_FOR_BUILD
814 BUILD_OBJEXT
815 BUILD_EXEEXT
816 CPP_FOR_BUILD
817 ac_ct_CC_FOR_BUILD
818 CC_FOR_BUILD
819 CPP
820 am__fastdepCC_FALSE
821 am__fastdepCC_TRUE
822 CCDEPMODE
823 am__nodep
824 AMDEPBACKSLASH
825 AMDEP_FALSE
826 AMDEP_TRUE
827 am__include
828 DEPDIR
829 OBJEXT
830 EXEEXT
831 ac_ct_CC
832 CPPFLAGS
833 LDFLAGS
834 CFLAGS
835 CC
836 MAINT
837 MAINTAINER_MODE_FALSE
838 MAINTAINER_MODE_TRUE
839 AM_BACKSLASH
840 AM_DEFAULT_VERBOSITY
841 AM_DEFAULT_V
842 AM_V
843 CSCOPE
844 ETAGS
845 CTAGS
846 am__untar
847 am__tar
848 AMTAR
849 am__leading_dot
850 SET_MAKE
851 AWK
852 mkdir_p
853 MKDIR_P
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 am__isrc
866 INSTALL_DATA
867 INSTALL_SCRIPT
868 INSTALL_PROGRAM
869 target_os
870 target_vendor
871 target_cpu
872 target
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 runstatedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_URL
913 PACKAGE_BUGREPORT
914 PACKAGE_STRING
915 PACKAGE_VERSION
916 PACKAGE_TARNAME
917 PACKAGE_NAME
918 PATH_SEPARATOR
919 SHELL
920 am__quote'
921 ac_subst_files=''
922 ac_user_opts='
923 enable_option_checking
924 enable_silent_rules
925 enable_maintainer_mode
926 enable_dependency_tracking
927 enable_largefile
928 enable_static
929 with_pic
930 enable_shared
931 enable_fast_install
932 with_aix_soname
933 with_gnu_ld
934 with_sysroot
935 enable_libtool_lock
936 enable_developer
937 enable_warn_error
938 with_liburcu
939 enable_fuzzing
940 with_python_sys_prefix
941 with_python_prefix
942 with_python_exec_prefix
943 enable_geoip
944 with_maxminddb
945 enable_doh
946 with_libnghttp2
947 enable_pthread_rwlock
948 with_openssl
949 enable_fips_mode
950 with_gssapi
951 with_lmdb
952 with_libxml2
953 with_json_c
954 with_zlib
955 with_libsystemd
956 enable_tcp_fastopen
957 with_readline
958 enable_chroot
959 enable_fixed_rrset
960 enable_dnstap
961 with_libidn2
962 with_cmocka
963 with_jemalloc
964 enable_leak_detection
965 enable_singletrace
966 enable_querytrace
967 enable_auto_validation
968 enable_dnsrps_dl
969 with_dnsrps_libname
970 with_dnsrps_dir
971 enable_dnsrps
972 enable_tracing
973 with_zonedb
974 with_cachedb
975 enable_full_report
976 '
977 ac_precious_vars='build_alias
978 host_alias
979 target_alias
980 CC
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
985 CPP
986 LT_SYS_LIBRARY_PATH
987 PKG_CONFIG
988 PKG_CONFIG_PATH
989 PKG_CONFIG_LIBDIR
990 LIBURCU_CFLAGS
991 LIBURCU_LIBS
992 RCU_VERSION
993 PYTHON
994 MAXMINDDB_CFLAGS
995 MAXMINDDB_LIBS
996 MAXMINDDB_PREFIX
997 LIBUV_CFLAGS
998 LIBUV_LIBS
999 LIBUV_VERSION
1000 LIBNGHTTP2_CFLAGS
1001 LIBNGHTTP2_LIBS
1002 OPENSSL_CFLAGS
1003 OPENSSL_LIBS
1004 OPENSSL_VERSION
1005 LMDB_CFLAGS
1006 LMDB_LIBS
1007 LIBXML2_CFLAGS
1008 LIBXML2_LIBS
1009 JSON_C_CFLAGS
1010 JSON_C_LIBS
1011 ZLIB_CFLAGS
1012 ZLIB_LIBS
1013 LIBSYSTEMD_CFLAGS
1014 LIBSYSTEMD_LIBS
1015 READLINE_CFLAGS
1016 READLINE_LIBS
1017 LIBCAP_CFLAGS
1018 LIBCAP_LIBS
1019 DNSTAP_CFLAGS
1020 DNSTAP_LIBS
1021 SPHINX_BUILD
1022 LIBIDN2_CFLAGS
1023 LIBIDN2_LIBS
1024 CMOCKA_CFLAGS
1025 CMOCKA_LIBS
1026 JEMALLOC_CFLAGS
1027 JEMALLOC_LIBS
1028 JEMALLOC_VERSION
1029 DTRACE'
1030
1031
1032 # Initialize some variables set by options.
1033 ac_init_help=
1034 ac_init_version=false
1035 ac_unrecognized_opts=
1036 ac_unrecognized_sep=
1037 # The variables have the same names as the options, with
1038 # dashes changed to underlines.
1039 cache_file=/dev/null
1040 exec_prefix=NONE
1041 no_create=
1042 no_recursion=
1043 prefix=NONE
1044 program_prefix=NONE
1045 program_suffix=NONE
1046 program_transform_name=s,x,x,
1047 silent=
1048 site=
1049 srcdir=
1050 verbose=
1051 x_includes=NONE
1052 x_libraries=NONE
1053
1054 # Installation directory options.
1055 # These are left unexpanded so users can "make install exec_prefix=/foo"
1056 # and all the variables that are supposed to be based on exec_prefix
1057 # by default will actually change.
1058 # Use braces instead of parens because sh, perl, etc. also accept them.
1059 # (The list follows the same order as the GNU Coding Standards.)
1060 bindir='${exec_prefix}/bin'
1061 sbindir='${exec_prefix}/sbin'
1062 libexecdir='${exec_prefix}/libexec'
1063 datarootdir='${prefix}/share'
1064 datadir='${datarootdir}'
1065 sysconfdir='${prefix}/etc'
1066 sharedstatedir='${prefix}/com'
1067 localstatedir='${prefix}/var'
1068 runstatedir='${localstatedir}/run'
1069 includedir='${prefix}/include'
1070 oldincludedir='/usr/include'
1071 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1072 infodir='${datarootdir}/info'
1073 htmldir='${docdir}'
1074 dvidir='${docdir}'
1075 pdfdir='${docdir}'
1076 psdir='${docdir}'
1077 libdir='${exec_prefix}/lib'
1078 localedir='${datarootdir}/locale'
1079 mandir='${datarootdir}/man'
1080
1081 ac_prev=
1082 ac_dashdash=
1083 for ac_option
1084 do
1085 # If the previous option needs an argument, assign it.
1086 if test -n "$ac_prev"; then
1087 eval $ac_prev=\$ac_option
1088 ac_prev=
1089 continue
1090 fi
1091
1092 case $ac_option in
1093 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094 *=) ac_optarg= ;;
1095 *) ac_optarg=yes ;;
1096 esac
1097
1098 case $ac_dashdash$ac_option in
1099 --)
1100 ac_dashdash=yes ;;
1101
1102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103 ac_prev=bindir ;;
1104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105 bindir=$ac_optarg ;;
1106
1107 -build | --build | --buil | --bui | --bu)
1108 ac_prev=build_alias ;;
1109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110 build_alias=$ac_optarg ;;
1111
1112 -cache-file | --cache-file | --cache-fil | --cache-fi \
1113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114 ac_prev=cache_file ;;
1115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117 cache_file=$ac_optarg ;;
1118
1119 --config-cache | -C)
1120 cache_file=config.cache ;;
1121
1122 -datadir | --datadir | --datadi | --datad)
1123 ac_prev=datadir ;;
1124 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1125 datadir=$ac_optarg ;;
1126
1127 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128 | --dataroo | --dataro | --datar)
1129 ac_prev=datarootdir ;;
1130 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132 datarootdir=$ac_optarg ;;
1133
1134 -disable-* | --disable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "enable_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval enable_$ac_useropt=no ;;
1149
1150 -docdir | --docdir | --docdi | --doc | --do)
1151 ac_prev=docdir ;;
1152 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1153 docdir=$ac_optarg ;;
1154
1155 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1156 ac_prev=dvidir ;;
1157 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1158 dvidir=$ac_optarg ;;
1159
1160 -enable-* | --enable-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "enable_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval enable_$ac_useropt=\$ac_optarg ;;
1175
1176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1178 | --exec | --exe | --ex)
1179 ac_prev=exec_prefix ;;
1180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1182 | --exec=* | --exe=* | --ex=*)
1183 exec_prefix=$ac_optarg ;;
1184
1185 -gas | --gas | --ga | --g)
1186 # Obsolete; use --with-gas.
1187 with_gas=yes ;;
1188
1189 -help | --help | --hel | --he | -h)
1190 ac_init_help=long ;;
1191 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1192 ac_init_help=recursive ;;
1193 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1194 ac_init_help=short ;;
1195
1196 -host | --host | --hos | --ho)
1197 ac_prev=host_alias ;;
1198 -host=* | --host=* | --hos=* | --ho=*)
1199 host_alias=$ac_optarg ;;
1200
1201 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1202 ac_prev=htmldir ;;
1203 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1204 | --ht=*)
1205 htmldir=$ac_optarg ;;
1206
1207 -includedir | --includedir | --includedi | --included | --include \
1208 | --includ | --inclu | --incl | --inc)
1209 ac_prev=includedir ;;
1210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1211 | --includ=* | --inclu=* | --incl=* | --inc=*)
1212 includedir=$ac_optarg ;;
1213
1214 -infodir | --infodir | --infodi | --infod | --info | --inf)
1215 ac_prev=infodir ;;
1216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1217 infodir=$ac_optarg ;;
1218
1219 -libdir | --libdir | --libdi | --libd)
1220 ac_prev=libdir ;;
1221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1222 libdir=$ac_optarg ;;
1223
1224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1225 | --libexe | --libex | --libe)
1226 ac_prev=libexecdir ;;
1227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1228 | --libexe=* | --libex=* | --libe=*)
1229 libexecdir=$ac_optarg ;;
1230
1231 -localedir | --localedir | --localedi | --localed | --locale)
1232 ac_prev=localedir ;;
1233 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1234 localedir=$ac_optarg ;;
1235
1236 -localstatedir | --localstatedir | --localstatedi | --localstated \
1237 | --localstate | --localstat | --localsta | --localst | --locals)
1238 ac_prev=localstatedir ;;
1239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1240 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1241 localstatedir=$ac_optarg ;;
1242
1243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1244 ac_prev=mandir ;;
1245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1246 mandir=$ac_optarg ;;
1247
1248 -nfp | --nfp | --nf)
1249 # Obsolete; use --without-fp.
1250 with_fp=no ;;
1251
1252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1253 | --no-cr | --no-c | -n)
1254 no_create=yes ;;
1255
1256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1258 no_recursion=yes ;;
1259
1260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1262 | --oldin | --oldi | --old | --ol | --o)
1263 ac_prev=oldincludedir ;;
1264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1267 oldincludedir=$ac_optarg ;;
1268
1269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1270 ac_prev=prefix ;;
1271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1272 prefix=$ac_optarg ;;
1273
1274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1275 | --program-pre | --program-pr | --program-p)
1276 ac_prev=program_prefix ;;
1277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1279 program_prefix=$ac_optarg ;;
1280
1281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1282 | --program-suf | --program-su | --program-s)
1283 ac_prev=program_suffix ;;
1284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1286 program_suffix=$ac_optarg ;;
1287
1288 -program-transform-name | --program-transform-name \
1289 | --program-transform-nam | --program-transform-na \
1290 | --program-transform-n | --program-transform- \
1291 | --program-transform | --program-transfor \
1292 | --program-transfo | --program-transf \
1293 | --program-trans | --program-tran \
1294 | --progr-tra | --program-tr | --program-t)
1295 ac_prev=program_transform_name ;;
1296 -program-transform-name=* | --program-transform-name=* \
1297 | --program-transform-nam=* | --program-transform-na=* \
1298 | --program-transform-n=* | --program-transform-=* \
1299 | --program-transform=* | --program-transfor=* \
1300 | --program-transfo=* | --program-transf=* \
1301 | --program-trans=* | --program-tran=* \
1302 | --progr-tra=* | --program-tr=* | --program-t=*)
1303 program_transform_name=$ac_optarg ;;
1304
1305 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1306 ac_prev=pdfdir ;;
1307 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1308 pdfdir=$ac_optarg ;;
1309
1310 -psdir | --psdir | --psdi | --psd | --ps)
1311 ac_prev=psdir ;;
1312 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1313 psdir=$ac_optarg ;;
1314
1315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316 | -silent | --silent | --silen | --sile | --sil)
1317 silent=yes ;;
1318
1319 -runstatedir | --runstatedir | --runstatedi | --runstated \
1320 | --runstate | --runstat | --runsta | --runst | --runs \
1321 | --run | --ru | --r)
1322 ac_prev=runstatedir ;;
1323 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1324 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1325 | --run=* | --ru=* | --r=*)
1326 runstatedir=$ac_optarg ;;
1327
1328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329 ac_prev=sbindir ;;
1330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331 | --sbi=* | --sb=*)
1332 sbindir=$ac_optarg ;;
1333
1334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336 | --sharedst | --shareds | --shared | --share | --shar \
1337 | --sha | --sh)
1338 ac_prev=sharedstatedir ;;
1339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342 | --sha=* | --sh=*)
1343 sharedstatedir=$ac_optarg ;;
1344
1345 -site | --site | --sit)
1346 ac_prev=site ;;
1347 -site=* | --site=* | --sit=*)
1348 site=$ac_optarg ;;
1349
1350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351 ac_prev=srcdir ;;
1352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353 srcdir=$ac_optarg ;;
1354
1355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356 | --syscon | --sysco | --sysc | --sys | --sy)
1357 ac_prev=sysconfdir ;;
1358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360 sysconfdir=$ac_optarg ;;
1361
1362 -target | --target | --targe | --targ | --tar | --ta | --t)
1363 ac_prev=target_alias ;;
1364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365 target_alias=$ac_optarg ;;
1366
1367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368 verbose=yes ;;
1369
1370 -version | --version | --versio | --versi | --vers | -V)
1371 ac_init_version=: ;;
1372
1373 -with-* | --with-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: \`$ac_useropt'"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1381 *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=\$ac_optarg ;;
1388
1389 -without-* | --without-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393 as_fn_error $? "invalid package name: \`$ac_useropt'"
1394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1397 *"
1398 "with_$ac_useropt"
1399 "*) ;;
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1402 esac
1403 eval with_$ac_useropt=no ;;
1404
1405 --x)
1406 # Obsolete; use --with-x.
1407 with_x=yes ;;
1408
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1415
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1422
1423 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1425 ;;
1426
1427 *=*)
1428 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429 # Reject names that are not valid shell variable names.
1430 case $ac_envvar in #(
1431 '' | [0-9]* | *[!_$as_cr_alnum]* )
1432 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433 esac
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1436
1437 *)
1438 # FIXME: should be removed in autoconf 3.0.
1439 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1443 ;;
1444
1445 esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 as_fn_error $? "missing argument to $ac_option"
1451 fi
1452
1453 if test -n "$ac_unrecognized_opts"; then
1454 case $enable_option_checking in
1455 no) ;;
1456 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458 esac
1459 fi
1460
1461 # Check all directory arguments for consistency.
1462 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463 datadir sysconfdir sharedstatedir localstatedir includedir \
1464 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465 libdir localedir mandir runstatedir
1466 do
1467 eval ac_val=\$$ac_var
1468 # Remove trailing slashes.
1469 case $ac_val in
1470 */ )
1471 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472 eval $ac_var=\$ac_val;;
1473 esac
1474 # Be sure to have absolute directory names.
1475 case $ac_val in
1476 [\\/$]* | ?:[\\/]* ) continue;;
1477 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478 esac
1479 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480 done
1481
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1485 build=$build_alias
1486 host=$host_alias
1487 target=$target_alias
1488
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x; then
1491 if test "x$build_alias" = x; then
1492 cross_compiling=maybe
1493 elif test "x$build_alias" != "x$host_alias"; then
1494 cross_compiling=yes
1495 fi
1496 fi
1497
1498 ac_tool_prefix=
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501 test "$silent" = yes && exec 6>/dev/null
1502
1503
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 as_fn_error $? "working directory cannot be determined"
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509 as_fn_error $? "pwd does not report name of working directory"
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514 ac_srcdir_defaulted=yes
1515 # Try the directory containing this script, then the parent directory.
1516 ac_confdir=`$as_dirname -- "$as_myself" ||
1517 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518 X"$as_myself" : 'X\(//\)[^/]' \| \
1519 X"$as_myself" : 'X\(//\)$' \| \
1520 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521 printf "%s\n" X"$as_myself" |
1522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523 s//\1/
1524 q
1525 }
1526 /^X\(\/\/\)[^/].*/{
1527 s//\1/
1528 q
1529 }
1530 /^X\(\/\/\)$/{
1531 s//\1/
1532 q
1533 }
1534 /^X\(\/\).*/{
1535 s//\1/
1536 q
1537 }
1538 s/.*/./; q'`
1539 srcdir=$ac_confdir
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541 srcdir=..
1542 fi
1543 else
1544 ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1549 fi
1550 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551 ac_abs_confdir=`(
1552 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1553 pwd)`
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 srcdir=.
1557 fi
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1561 case $srcdir in
1562 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1563 esac
1564 for ac_var in $ac_precious_vars; do
1565 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_env_${ac_var}_value=\$${ac_var}
1567 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569 done
1570
1571 #
1572 # Report the --help message.
1573 #
1574 if test "$ac_init_help" = "long"; then
1575 # Omit some internal or obsolete options to make the list less imposing.
1576 # This message is too long to be a string in the A/UX 3.1 sh.
1577 cat <<_ACEOF
1578 \`configure' configures BIND 9.20.4 to adapt to many kinds of systems.
1579
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1581
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE. See below for descriptions of some of the useful variables.
1584
1585 Defaults for the options are specified in brackets.
1586
1587 Configuration:
1588 -h, --help display this help and exit
1589 --help=short display options specific to this package
1590 --help=recursive display the short help of all the included packages
1591 -V, --version display version information and exit
1592 -q, --quiet, --silent do not print \`checking ...' messages
1593 --cache-file=FILE cache test results in FILE [disabled]
1594 -C, --config-cache alias for \`--cache-file=config.cache'
1595 -n, --no-create do not create output files
1596 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1597
1598 Installation directories:
1599 --prefix=PREFIX install architecture-independent files in PREFIX
1600 [$ac_default_prefix]
1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 [PREFIX]
1603
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1608
1609 For better control, use the options below.
1610
1611 Fine tuning of the installation directories:
1612 --bindir=DIR user executables [EPREFIX/bin]
1613 --sbindir=DIR system admin executables [EPREFIX/sbin]
1614 --libexecdir=DIR program executables [EPREFIX/libexec]
1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1618 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1619 --libdir=DIR object code libraries [EPREFIX/lib]
1620 --includedir=DIR C header files [PREFIX/include]
1621 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1624 --infodir=DIR info documentation [DATAROOTDIR/info]
1625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1626 --mandir=DIR man documentation [DATAROOTDIR/man]
1627 --docdir=DIR documentation root [DATAROOTDIR/doc/bind]
1628 --htmldir=DIR html documentation [DOCDIR]
1629 --dvidir=DIR dvi documentation [DOCDIR]
1630 --pdfdir=DIR pdf documentation [DOCDIR]
1631 --psdir=DIR ps documentation [DOCDIR]
1632 _ACEOF
1633
1634 cat <<\_ACEOF
1635
1636 Program names:
1637 --program-prefix=PREFIX prepend PREFIX to installed program names
1638 --program-suffix=SUFFIX append SUFFIX to installed program names
1639 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1640
1641 System types:
1642 --build=BUILD configure for building on BUILD [guessed]
1643 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1644 --target=TARGET configure for building compilers for TARGET [HOST]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649 case $ac_init_help in
1650 short | recursive ) echo "Configuration of BIND 9.20.4:";;
1651 esac
1652 cat <<\_ACEOF
1653
1654 Optional Features:
1655 --disable-option-checking ignore unrecognized --enable/--with options
1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1658 --enable-silent-rules less verbose build output (undo: "make V=1")
1659 --disable-silent-rules verbose build output (undo: "make V=0")
1660 --disable-maintainer-mode
1661 disable make rules and dependencies not useful (and
1662 sometimes confusing) to the casual installer
1663 --enable-dependency-tracking
1664 do not reject slow dependency extractors
1665 --disable-dependency-tracking
1666 speeds up one-time build
1667 --disable-largefile omit support for large files
1668 --enable-static[=PKGS] build static libraries [default=no]
1669 --enable-shared[=PKGS] build shared libraries [default=yes]
1670 --enable-fast-install[=PKGS]
1671 optimize for fast installation [default=yes]
1672 --disable-libtool-lock avoid locking (might break parallel builds)
1673 --enable-developer enable developer build settings
1674 --enable-warn-error turn on -Werror when compiling
1675 --enable-fuzzing=<afl|libfuzzer|ossfuzz>
1676 Enable fuzzing using American Fuzzy Lop or libFuzzer
1677 (default=no)
1678 --disable-geoip support GeoIP2 geolocation ACLs if available
1679 [default=yes]
1680 --disable-doh disable DNS over HTTPS, removes dependency on
1681 libnghttp2 (default is --enable-doh)
1682 --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
1683 implementation
1684 --enable-fips-mode enable FIPS mode in OpenSSL library [default=no]
1685 --disable-tcp-fastopen disable TCP Fast Open support [default=yes]
1686 --disable-chroot disable chroot
1687 --enable-fixed-rrset enable fixed rrset ordering [default=no]
1688 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c)
1689 --enable-leak-detection enable the memory leak detection in external
1690 libraries (libxml2, libuv, OpenSSL) (disabled by
1691 default)
1692 --enable-singletrace enable single-query trace logging [default=no]
1693 --enable-querytrace enable very verbose query trace logging [default=no]
1694 --enable-auto-validation
1695 turn on DNSSEC validation by default, using the IANA
1696 root key [default=yes]
1697 --enable-dnsrps-dl DNS Response Policy Service delayed link
1698 [default=yes]
1699 --enable-dnsrps enable DNS Response Policy Service API
1700 --enable-tracing enable User Statically Defined Tracing
1701 --enable-full-report report values of all configure options
1702
1703 Optional Packages:
1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1706 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1707 both]
1708 --with-aix-soname=aix|svr4|both
1709 shared library versioning (aka "SONAME") variant to
1710 provide on AIX, [default=aix].
1711 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1712 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1713 compiler's sysroot if not specified).
1714 --with-liburcu=FLAVOR Build with Userspace-RCU variant (developer-only
1715 option) (membarrier|qsbr|mb|bp) [default=membarrier])
1716 --with-python-sys-prefix
1717 use Python's sys.prefix and sys.exec_prefix values
1718 --with-python_prefix override the default PYTHON_PREFIX
1719 --with-python_exec_prefix
1720 override the default PYTHON_EXEC_PREFIX
1721 --with-maxminddb=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path)
1722 [default=auto]
1723 --with-libnghttp2 build with libnghttp2 library [yes|no|auto] (default
1724 is auto)
1725 --with-openssl=DIR root of the OpenSSL directory
1726 --with-gssapi=PATH|[/path/]krb5-config
1727 Specify path for system-supplied GSSAPI
1728 [default=auto]
1729 --with-lmdb=[PATH] use LMDB library [default=auto], optionally specify
1730 the prefix for lmdb library
1731 --with-libxml2 build with libxml2 library [yes|no|auto] (default is
1732 auto)
1733 --with-json-c build with json-c library [yes|no|detect] (default
1734 is detect)
1735 --with-zlib build with zlib for HTTP compression [default=yes]
1736 --with-libsystemd build with libsystemd integration [default=auto]
1737 --with-readline=yes|no|libedit|readline
1738 specify readline library [default auto]
1739 --with-libidn2=PATH enable IDN support using GNU libidn2
1740 [yes|no(default)|path]
1741 --with-cmocka=detect enable CMocka based tests (default is detect)
1742 --with-jemalloc=detect enable jemalloc memory allocator (default is detect)
1743 --with-dnsrps-libname DNSRPS provider library name (librpz.so)
1744 --with-dnsrps-dir path to DNSRPS provider library
1745 --with-zonedb=detect specify default zone database type (default is
1746 "qpzone")
1747 --with-cachedb=detect specify default cache database type (default is
1748 "qpcache")
1749
1750 Some influential environment variables:
1751 CC C compiler command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1754 nonstandard directory <lib dir>
1755 LIBS libraries to pass to the linker, e.g. -l<library>
1756 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757 you have headers in a nonstandard directory <include dir>
1758 CPP C preprocessor
1759 LT_SYS_LIBRARY_PATH
1760 User-defined run-time library search path.
1761 PKG_CONFIG path to pkg-config utility
1762 PKG_CONFIG_PATH
1763 directories to add to pkg-config's search path
1764 PKG_CONFIG_LIBDIR
1765 path overriding pkg-config's built-in search path
1766 LIBURCU_CFLAGS
1767 C compiler flags for LIBURCU, overriding pkg-config
1768 LIBURCU_LIBS
1769 linker flags for LIBURCU, overriding pkg-config
1770 RCU_VERSION version of $RCU_FLAVOR, overriding pkg-config
1771 PYTHON the Python interpreter
1772 MAXMINDDB_CFLAGS
1773 C compiler flags for MAXMINDDB, overriding pkg-config
1774 MAXMINDDB_LIBS
1775 linker flags for MAXMINDDB, overriding pkg-config
1776 MAXMINDDB_PREFIX
1777 value of prefix for libmaxminddb, overriding pkg-config
1778 LIBUV_CFLAGS
1779 C compiler flags for LIBUV, overriding pkg-config
1780 LIBUV_LIBS linker flags for LIBUV, overriding pkg-config
1781 LIBUV_VERSION
1782 version of libuv, overriding pkg-config
1783 LIBNGHTTP2_CFLAGS
1784 C compiler flags for LIBNGHTTP2, overriding pkg-config
1785 LIBNGHTTP2_LIBS
1786 linker flags for LIBNGHTTP2, overriding pkg-config
1787 OPENSSL_CFLAGS
1788 C compiler flags for OPENSSL, overriding pkg-config
1789 OPENSSL_LIBS
1790 linker flags for OPENSSL, overriding pkg-config
1791 OPENSSL_VERSION
1792 version of openssl, overriding pkg-config
1793 LMDB_CFLAGS C compiler flags for LMDB, overriding pkg-config
1794 LMDB_LIBS linker flags for LMDB, overriding pkg-config
1795 LIBXML2_CFLAGS
1796 C compiler flags for LIBXML2, overriding pkg-config
1797 LIBXML2_LIBS
1798 linker flags for LIBXML2, overriding pkg-config
1799 JSON_C_CFLAGS
1800 C compiler flags for JSON_C, overriding pkg-config
1801 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1802 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1803 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1804 LIBSYSTEMD_CFLAGS
1805 C compiler flags for LIBSYSTEMD, overriding pkg-config
1806 LIBSYSTEMD_LIBS
1807 linker flags for LIBSYSTEMD, overriding pkg-config
1808 READLINE_CFLAGS
1809 C compiler flags for READLINE, overriding pkg-config
1810 READLINE_LIBS
1811 linker flags for READLINE, overriding pkg-config
1812 LIBCAP_CFLAGS
1813 C compiler flags for LIBCAP, overriding pkg-config
1814 LIBCAP_LIBS linker flags for LIBCAP, overriding pkg-config
1815 DNSTAP_CFLAGS
1816 C compiler flags for DNSTAP, overriding pkg-config
1817 DNSTAP_LIBS linker flags for DNSTAP, overriding pkg-config
1818 SPHINX_BUILD
1819 path to sphinx-build binary used to build the documentation
1820 LIBIDN2_CFLAGS
1821 C compiler flags for LIBIDN2, overriding pkg-config
1822 LIBIDN2_LIBS
1823 linker flags for LIBIDN2, overriding pkg-config
1824 CMOCKA_CFLAGS
1825 C compiler flags for CMOCKA, overriding pkg-config
1826 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1827 JEMALLOC_CFLAGS
1828 C compiler flags for JEMALLOC, overriding pkg-config
1829 JEMALLOC_LIBS
1830 linker flags for JEMALLOC, overriding pkg-config
1831 JEMALLOC_VERSION
1832 version of jemalloc, overriding pkg-config
1833 DTRACE path to dtrace binary used to build User Statically Defined
1834 Tracing probes
1835
1836 Use these variables to override the choices made by `configure' or to help
1837 it to find libraries and programs with nonstandard names/locations.
1838
1839 Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
1840 BIND home page: <https://www.isc.org/downloads/>.
1841 _ACEOF
1842 ac_status=$?
1843 fi
1844
1845 if test "$ac_init_help" = "recursive"; then
1846 # If there are subdirs, report their specific --help.
1847 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1848 test -d "$ac_dir" ||
1849 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1850 continue
1851 ac_builddir=.
1852
1853 case "$ac_dir" in
1854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1855 *)
1856 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1857 # A ".." for each directory in $ac_dir_suffix.
1858 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1859 case $ac_top_builddir_sub in
1860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1862 esac ;;
1863 esac
1864 ac_abs_top_builddir=$ac_pwd
1865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1866 # for backward compatibility:
1867 ac_top_builddir=$ac_top_build_prefix
1868
1869 case $srcdir in
1870 .) # We are building in place.
1871 ac_srcdir=.
1872 ac_top_srcdir=$ac_top_builddir_sub
1873 ac_abs_top_srcdir=$ac_pwd ;;
1874 [\\/]* | ?:[\\/]* ) # Absolute name.
1875 ac_srcdir=$srcdir$ac_dir_suffix;
1876 ac_top_srcdir=$srcdir
1877 ac_abs_top_srcdir=$srcdir ;;
1878 *) # Relative name.
1879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1880 ac_top_srcdir=$ac_top_build_prefix$srcdir
1881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1882 esac
1883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1884
1885 cd "$ac_dir" || { ac_status=$?; continue; }
1886 # Check for configure.gnu first; this name is used for a wrapper for
1887 # Metaconfig's "Configure" on case-insensitive file systems.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1889 echo &&
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1894 else
1895 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896 fi || ac_status=$?
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1898 done
1899 fi
1900
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1903 cat <<\_ACEOF
1904 BIND configure 9.20.4
1905 generated by GNU Autoconf 2.71
1906
1907 Copyright (C) 2021 Free Software Foundation, Inc.
1908 This configure script is free software; the Free Software Foundation
1909 gives unlimited permission to copy, distribute and modify it.
1910 _ACEOF
1911 exit
1912 fi
1913
1914 ## ------------------------ ##
1915 ## Autoconf initialization. ##
1916 ## ------------------------ ##
1917
1918 # ac_fn_c_try_compile LINENO
1919 # --------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_compile ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest.beam
1925 if { { ac_try="$ac_compile"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 printf "%s\n" "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext
1944 then :
1945 ac_retval=0
1946 else $as_nop
1947 printf "%s\n" "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951 fi
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1954
1955 } # ac_fn_c_try_compile
1956
1957 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists and can be compiled using the include files in
1960 # INCLUDES, setting the cache variable VAR accordingly.
1961 ac_fn_c_check_header_compile ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 printf %s "checking for $2... " >&6; }
1966 if eval test \${$3+y}
1967 then :
1968 printf %s "(cached) " >&6
1969 else $as_nop
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"
1976 then :
1977 eval "$3=yes"
1978 else $as_nop
1979 eval "$3=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 printf "%s\n" "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_header_compile
1989
1990 # ac_fn_c_try_cpp LINENO
1991 # ----------------------
1992 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_c_try_cpp ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_cpp conftest.$ac_ext"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 printf "%s\n" "$ac_try_echo"; } >&5
2003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } > conftest.i && {
2012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2013 test ! -s conftest.err
2014 }
2015 then :
2016 ac_retval=0
2017 else $as_nop
2018 printf "%s\n" "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021 ac_retval=1
2022 fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2025
2026 } # ac_fn_c_try_cpp
2027
2028 # ac_fn_c_try_run LINENO
2029 # ----------------------
2030 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2031 # executables *can* be run.
2032 ac_fn_c_try_run ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_link"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 printf "%s\n" "$ac_try_echo"; } >&5
2042 (eval "$ac_link") 2>&5
2043 ac_status=$?
2044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2046 { { case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 printf "%s\n" "$ac_try_echo"; } >&5
2052 (eval "$ac_try") 2>&5
2053 ac_status=$?
2054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; }; }
2056 then :
2057 ac_retval=0
2058 else $as_nop
2059 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2060 printf "%s\n" "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=$ac_status
2064 fi
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 as_fn_set_status $ac_retval
2068
2069 } # ac_fn_c_try_run
2070
2071 # ac_fn_c_try_link LINENO
2072 # -----------------------
2073 # Try to link conftest.$ac_ext, and return whether this succeeded.
2074 ac_fn_c_try_link ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2078 if { { ac_try="$ac_link"
2079 case "(($ac_try" in
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2082 esac
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 printf "%s\n" "$ac_try_echo"; } >&5
2085 (eval "$ac_link") 2>conftest.err
2086 ac_status=$?
2087 if test -s conftest.err; then
2088 grep -v '^ *+' conftest.err >conftest.er1
2089 cat conftest.er1 >&5
2090 mv -f conftest.er1 conftest.err
2091 fi
2092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2093 test $ac_status = 0; } && {
2094 test -z "$ac_c_werror_flag" ||
2095 test ! -s conftest.err
2096 } && test -s conftest$ac_exeext && {
2097 test "$cross_compiling" = yes ||
2098 test -x conftest$ac_exeext
2099 }
2100 then :
2101 ac_retval=0
2102 else $as_nop
2103 printf "%s\n" "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_retval=1
2107 fi
2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110 # interfere with the next link command; also delete a directory that is
2111 # left behind by Apple's compiler. We do this before executing the actions.
2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2115
2116 } # ac_fn_c_try_link
2117
2118 # ac_fn_c_check_func LINENO FUNC VAR
2119 # ----------------------------------
2120 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2121 ac_fn_c_check_func ()
2122 {
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 printf %s "checking for $2... " >&6; }
2126 if eval test \${$3+y}
2127 then :
2128 printf %s "(cached) " >&6
2129 else $as_nop
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2134 #define $2 innocuous_$2
2135
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $2 (); below. */
2138
2139 #include <limits.h>
2140 #undef $2
2141
2142 /* Override any GCC internal prototype to avoid an error.
2143 Use char because int might match the return type of a GCC
2144 builtin and then its argument prototype would still apply. */
2145 #ifdef __cplusplus
2146 extern "C"
2147 #endif
2148 char $2 ();
2149 /* The GNU C library defines this for functions which it implements
2150 to always fail with ENOSYS. Some functions are actually named
2151 something starting with __ and the normal name is an alias. */
2152 #if defined __stub_$2 || defined __stub___$2
2153 choke me
2154 #endif
2155
2156 int
2157 main (void)
2158 {
2159 return $2 ();
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_link "$LINENO"
2165 then :
2166 eval "$3=yes"
2167 else $as_nop
2168 eval "$3=no"
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2171 conftest$ac_exeext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$3
2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 printf "%s\n" "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_check_func
2179
2180 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2181 # -------------------------------------------
2182 # Tests whether TYPE exists after having included INCLUDES, setting cache
2183 # variable VAR accordingly.
2184 ac_fn_c_check_type ()
2185 {
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 printf %s "checking for $2... " >&6; }
2189 if eval test \${$3+y}
2190 then :
2191 printf %s "(cached) " >&6
2192 else $as_nop
2193 eval "$3=no"
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $4
2197 int
2198 main (void)
2199 {
2200 if (sizeof ($2))
2201 return 0;
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"
2207 then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $4
2211 int
2212 main (void)
2213 {
2214 if (sizeof (($2)))
2215 return 0;
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"
2221 then :
2222
2223 else $as_nop
2224 eval "$3=yes"
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 fi
2230 eval ac_res=\$$3
2231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 printf "%s\n" "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234
2235 } # ac_fn_c_check_type
2236
2237 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2238 # ------------------------------------------------------------------
2239 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2240 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2241 ac_fn_check_decl ()
2242 {
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 as_decl_name=`echo $2|sed 's/ *(.*//'`
2245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2246 printf %s "checking whether $as_decl_name is declared... " >&6; }
2247 if eval test \${$3+y}
2248 then :
2249 printf %s "(cached) " >&6
2250 else $as_nop
2251 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2252 eval ac_save_FLAGS=\$$6
2253 as_fn_append $6 " $5"
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 $4
2257 int
2258 main (void)
2259 {
2260 #ifndef $as_decl_name
2261 #ifdef __cplusplus
2262 (void) $as_decl_use;
2263 #else
2264 (void) $as_decl_name;
2265 #endif
2266 #endif
2267
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"
2273 then :
2274 eval "$3=yes"
2275 else $as_nop
2276 eval "$3=no"
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2279 eval $6=\$ac_save_FLAGS
2280
2281 fi
2282 eval ac_res=\$$3
2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 printf "%s\n" "$ac_res" >&6; }
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286
2287 } # ac_fn_check_decl
2288 ac_configure_args_raw=
2289 for ac_arg
2290 do
2291 case $ac_arg in
2292 *\'*)
2293 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 esac
2295 as_fn_append ac_configure_args_raw " '$ac_arg'"
2296 done
2297
2298 case $ac_configure_args_raw in
2299 *$as_nl*)
2300 ac_safe_unquote= ;;
2301 *)
2302 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2303 ac_unsafe_a="$ac_unsafe_z#~"
2304 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2305 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2306 esac
2307
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2311
2312 It was created by BIND $as_me 9.20.4, which was
2313 generated by GNU Autoconf 2.71. Invocation command line was
2314
2315 $ $0$ac_configure_args_raw
2316
2317 _ACEOF
2318 exec 5>>config.log
2319 {
2320 cat <<_ASUNAME
2321 ## --------- ##
2322 ## Platform. ##
2323 ## --------- ##
2324
2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330
2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333
2334 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2337 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2338 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341
2342 _ASUNAME
2343
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 case $as_dir in #(((
2349 '') as_dir=./ ;;
2350 */) ;;
2351 *) as_dir=$as_dir/ ;;
2352 esac
2353 printf "%s\n" "PATH: $as_dir"
2354 done
2355 IFS=$as_save_IFS
2356
2357 } >&5
2358
2359 cat >&5 <<_ACEOF
2360
2361
2362 ## ----------- ##
2363 ## Core tests. ##
2364 ## ----------- ##
2365
2366 _ACEOF
2367
2368
2369 # Keep a trace of the command line.
2370 # Strip out --no-create and --no-recursion so they do not pile up.
2371 # Strip out --silent because we don't want to record it for future runs.
2372 # Also quote any args containing shell meta-characters.
2373 # Make two passes to allow for proper duplicate-argument suppression.
2374 ac_configure_args=
2375 ac_configure_args0=
2376 ac_configure_args1=
2377 ac_must_keep_next=false
2378 for ac_pass in 1 2
2379 do
2380 for ac_arg
2381 do
2382 case $ac_arg in
2383 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2385 | -silent | --silent | --silen | --sile | --sil)
2386 continue ;;
2387 *\'*)
2388 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 esac
2390 case $ac_pass in
2391 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 2)
2393 as_fn_append ac_configure_args1 " '$ac_arg'"
2394 if test $ac_must_keep_next = true; then
2395 ac_must_keep_next=false # Got value, back to normal.
2396 else
2397 case $ac_arg in
2398 *=* | --config-cache | -C | -disable-* | --disable-* \
2399 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2400 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2401 | -with-* | --with-* | -without-* | --without-* | --x)
2402 case "$ac_configure_args0 " in
2403 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404 esac
2405 ;;
2406 -* ) ac_must_keep_next=true ;;
2407 esac
2408 fi
2409 as_fn_append ac_configure_args " '$ac_arg'"
2410 ;;
2411 esac
2412 done
2413 done
2414 { ac_configure_args0=; unset ac_configure_args0;}
2415 { ac_configure_args1=; unset ac_configure_args1;}
2416
2417 # When interrupted or exit'd, cleanup temporary files, and complete
2418 # config.log. We remove comments because anyway the quotes in there
2419 # would cause problems or look ugly.
2420 # WARNING: Use '\'' to represent an apostrophe within the trap.
2421 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2422 trap 'exit_status=$?
2423 # Sanitize IFS.
2424 IFS=" "" $as_nl"
2425 # Save into config.log some information that might help in debugging.
2426 {
2427 echo
2428
2429 printf "%s\n" "## ---------------- ##
2430 ## Cache variables. ##
2431 ## ---------------- ##"
2432 echo
2433 # The following way of writing the cache mishandles newlines in values,
2434 (
2435 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436 eval ac_val=\$$ac_var
2437 case $ac_val in #(
2438 *${as_nl}*)
2439 case $ac_var in #(
2440 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442 esac
2443 case $ac_var in #(
2444 _ | IFS | as_nl) ;; #(
2445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446 *) { eval $ac_var=; unset $ac_var;} ;;
2447 esac ;;
2448 esac
2449 done
2450 (set) 2>&1 |
2451 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452 *${as_nl}ac_space=\ *)
2453 sed -n \
2454 "s/'\''/'\''\\\\'\'''\''/g;
2455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456 ;; #(
2457 *)
2458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 ;;
2460 esac |
2461 sort
2462 )
2463 echo
2464
2465 printf "%s\n" "## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##"
2468 echo
2469 for ac_var in $ac_subst_vars
2470 do
2471 eval ac_val=\$$ac_var
2472 case $ac_val in
2473 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 esac
2475 printf "%s\n" "$ac_var='\''$ac_val'\''"
2476 done | sort
2477 echo
2478
2479 if test -n "$ac_subst_files"; then
2480 printf "%s\n" "## ------------------- ##
2481 ## File substitutions. ##
2482 ## ------------------- ##"
2483 echo
2484 for ac_var in $ac_subst_files
2485 do
2486 eval ac_val=\$$ac_var
2487 case $ac_val in
2488 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 esac
2490 printf "%s\n" "$ac_var='\''$ac_val'\''"
2491 done | sort
2492 echo
2493 fi
2494
2495 if test -s confdefs.h; then
2496 printf "%s\n" "## ----------- ##
2497 ## confdefs.h. ##
2498 ## ----------- ##"
2499 echo
2500 cat confdefs.h
2501 echo
2502 fi
2503 test "$ac_signal" != 0 &&
2504 printf "%s\n" "$as_me: caught signal $ac_signal"
2505 printf "%s\n" "$as_me: exit $exit_status"
2506 } >&5
2507 rm -f core *.core core.conftest.* &&
2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2509 exit $exit_status
2510 ' 0
2511 for ac_signal in 1 2 13 15; do
2512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2513 done
2514 ac_signal=0
2515
2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2517 rm -f -r conftest* confdefs.h
2518
2519 printf "%s\n" "/* confdefs.h */" > confdefs.h
2520
2521 # Predefined preprocessor variables.
2522
2523 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2524
2525 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2526
2527 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2528
2529 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2530
2531 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2532
2533 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2534
2535
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer an explicitly selected file to automatically selected ones.
2538 if test -n "$CONFIG_SITE"; then
2539 ac_site_files="$CONFIG_SITE"
2540 elif test "x$prefix" != xNONE; then
2541 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2542 else
2543 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2544 fi
2545
2546 for ac_site_file in $ac_site_files
2547 do
2548 case $ac_site_file in #(
2549 */*) :
2550 ;; #(
2551 *) :
2552 ac_site_file=./$ac_site_file ;;
2553 esac
2554 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2556 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2557 sed 's/^/| /' "$ac_site_file" >&5
2558 . "$ac_site_file" \
2559 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error $? "failed to load site script $ac_site_file
2562 See \`config.log' for more details" "$LINENO" 5; }
2563 fi
2564 done
2565
2566 if test -r "$cache_file"; then
2567 # Some versions of bash will fail to source /dev/null (special files
2568 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2569 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2571 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2572 case $cache_file in
2573 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2574 *) . "./$cache_file";;
2575 esac
2576 fi
2577 else
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2579 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2580 >$cache_file
2581 fi
2582
2583 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2584 # Test code for whether the C compiler supports C89 (global declarations)
2585 ac_c_conftest_c89_globals='
2586 /* Does the compiler advertise C89 conformance?
2587 Do not test the value of __STDC__, because some compilers set it to 0
2588 while being otherwise adequately conformant. */
2589 #if !defined __STDC__
2590 # error "Compiler does not advertise C89 conformance"
2591 #endif
2592
2593 #include <stddef.h>
2594 #include <stdarg.h>
2595 struct stat;
2596 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2597 struct buf { int x; };
2598 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2599 static char *e (p, i)
2600 char **p;
2601 int i;
2602 {
2603 return p[i];
2604 }
2605 static char *f (char * (*g) (char **, int), char **p, ...)
2606 {
2607 char *s;
2608 va_list v;
2609 va_start (v,p);
2610 s = g (p, va_arg (v,int));
2611 va_end (v);
2612 return s;
2613 }
2614
2615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2616 function prototypes and stuff, but not \xHH hex character constants.
2617 These do not provoke an error unfortunately, instead are silently treated
2618 as an "x". The following induces an error, until -std is added to get
2619 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2620 array size at least. It is necessary to write \x00 == 0 to get something
2621 that is true only with -std. */
2622 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2623
2624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2625 inside strings and character constants. */
2626 #define FOO(x) '\''x'\''
2627 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2628
2629 int test (int i, double x);
2630 struct s1 {int (*f) (int a);};
2631 struct s2 {int (*f) (double a);};
2632 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2633 int, int);'
2634
2635 # Test code for whether the C compiler supports C89 (body of main).
2636 ac_c_conftest_c89_main='
2637 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2638 '
2639
2640 # Test code for whether the C compiler supports C99 (global declarations)
2641 ac_c_conftest_c99_globals='
2642 // Does the compiler advertise C99 conformance?
2643 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2644 # error "Compiler does not advertise C99 conformance"
2645 #endif
2646
2647 #include <stdbool.h>
2648 extern int puts (const char *);
2649 extern int printf (const char *, ...);
2650 extern int dprintf (int, const char *, ...);
2651 extern void *malloc (size_t);
2652
2653 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2654 // dprintf is used instead of fprintf to avoid needing to declare
2655 // FILE and stderr.
2656 #define debug(...) dprintf (2, __VA_ARGS__)
2657 #define showlist(...) puts (#__VA_ARGS__)
2658 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2659 static void
2660 test_varargs_macros (void)
2661 {
2662 int x = 1234;
2663 int y = 5678;
2664 debug ("Flag");
2665 debug ("X = %d\n", x);
2666 showlist (The first, second, and third items.);
2667 report (x>y, "x is %d but y is %d", x, y);
2668 }
2669
2670 // Check long long types.
2671 #define BIG64 18446744073709551615ull
2672 #define BIG32 4294967295ul
2673 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2674 #if !BIG_OK
2675 #error "your preprocessor is broken"
2676 #endif
2677 #if BIG_OK
2678 #else
2679 #error "your preprocessor is broken"
2680 #endif
2681 static long long int bignum = -9223372036854775807LL;
2682 static unsigned long long int ubignum = BIG64;
2683
2684 struct incomplete_array
2685 {
2686 int datasize;
2687 double data[];
2688 };
2689
2690 struct named_init {
2691 int number;
2692 const wchar_t *name;
2693 double average;
2694 };
2695
2696 typedef const char *ccp;
2697
2698 static inline int
2699 test_restrict (ccp restrict text)
2700 {
2701 // See if C++-style comments work.
2702 // Iterate through items via the restricted pointer.
2703 // Also check for declarations in for loops.
2704 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2705 continue;
2706 return 0;
2707 }
2708
2709 // Check varargs and va_copy.
2710 static bool
2711 test_varargs (const char *format, ...)
2712 {
2713 va_list args;
2714 va_start (args, format);
2715 va_list args_copy;
2716 va_copy (args_copy, args);
2717
2718 const char *str = "";
2719 int number = 0;
2720 float fnumber = 0;
2721
2722 while (*format)
2723 {
2724 switch (*format++)
2725 {
2726 case '\''s'\'': // string
2727 str = va_arg (args_copy, const char *);
2728 break;
2729 case '\''d'\'': // int
2730 number = va_arg (args_copy, int);
2731 break;
2732 case '\''f'\'': // float
2733 fnumber = va_arg (args_copy, double);
2734 break;
2735 default:
2736 break;
2737 }
2738 }
2739 va_end (args_copy);
2740 va_end (args);
2741
2742 return *str && number && fnumber;
2743 }
2744 '
2745
2746 # Test code for whether the C compiler supports C99 (body of main).
2747 ac_c_conftest_c99_main='
2748 // Check bool.
2749 _Bool success = false;
2750 success |= (argc != 0);
2751
2752 // Check restrict.
2753 if (test_restrict ("String literal") == 0)
2754 success = true;
2755 char *restrict newvar = "Another string";
2756
2757 // Check varargs.
2758 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2759 test_varargs_macros ();
2760
2761 // Check flexible array members.
2762 struct incomplete_array *ia =
2763 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2764 ia->datasize = 10;
2765 for (int i = 0; i < ia->datasize; ++i)
2766 ia->data[i] = i * 1.234;
2767
2768 // Check named initializers.
2769 struct named_init ni = {
2770 .number = 34,
2771 .name = L"Test wide string",
2772 .average = 543.34343,
2773 };
2774
2775 ni.number = 58;
2776
2777 int dynamic_array[ni.number];
2778 dynamic_array[0] = argv[0][0];
2779 dynamic_array[ni.number - 1] = 543;
2780
2781 // work around unused variable warnings
2782 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2783 || dynamic_array[ni.number - 1] != 543);
2784 '
2785
2786 # Test code for whether the C compiler supports C11 (global declarations)
2787 ac_c_conftest_c11_globals='
2788 // Does the compiler advertise C11 conformance?
2789 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2790 # error "Compiler does not advertise C11 conformance"
2791 #endif
2792
2793 // Check _Alignas.
2794 char _Alignas (double) aligned_as_double;
2795 char _Alignas (0) no_special_alignment;
2796 extern char aligned_as_int;
2797 char _Alignas (0) _Alignas (int) aligned_as_int;
2798
2799 // Check _Alignof.
2800 enum
2801 {
2802 int_alignment = _Alignof (int),
2803 int_array_alignment = _Alignof (int[100]),
2804 char_alignment = _Alignof (char)
2805 };
2806 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2807
2808 // Check _Noreturn.
2809 int _Noreturn does_not_return (void) { for (;;) continue; }
2810
2811 // Check _Static_assert.
2812 struct test_static_assert
2813 {
2814 int x;
2815 _Static_assert (sizeof (int) <= sizeof (long int),
2816 "_Static_assert does not work in struct");
2817 long int y;
2818 };
2819
2820 // Check UTF-8 literals.
2821 #define u8 syntax error!
2822 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2823
2824 // Check duplicate typedefs.
2825 typedef long *long_ptr;
2826 typedef long int *long_ptr;
2827 typedef long_ptr long_ptr;
2828
2829 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2830 struct anonymous
2831 {
2832 union {
2833 struct { int i; int j; };
2834 struct { int k; long int l; } w;
2835 };
2836 int m;
2837 } v1;
2838 '
2839
2840 # Test code for whether the C compiler supports C11 (body of main).
2841 ac_c_conftest_c11_main='
2842 _Static_assert ((offsetof (struct anonymous, i)
2843 == offsetof (struct anonymous, w.k)),
2844 "Anonymous union alignment botch");
2845 v1.i = 2;
2846 v1.w.k = 5;
2847 ok |= v1.i != 5;
2848 '
2849
2850 # Test code for whether the C compiler supports C11 (complete).
2851 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2852 ${ac_c_conftest_c99_globals}
2853 ${ac_c_conftest_c11_globals}
2854
2855 int
2856 main (int argc, char **argv)
2857 {
2858 int ok = 0;
2859 ${ac_c_conftest_c89_main}
2860 ${ac_c_conftest_c99_main}
2861 ${ac_c_conftest_c11_main}
2862 return ok;
2863 }
2864 "
2865
2866 # Test code for whether the C compiler supports C99 (complete).
2867 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2868 ${ac_c_conftest_c99_globals}
2869
2870 int
2871 main (int argc, char **argv)
2872 {
2873 int ok = 0;
2874 ${ac_c_conftest_c89_main}
2875 ${ac_c_conftest_c99_main}
2876 return ok;
2877 }
2878 "
2879
2880 # Test code for whether the C compiler supports C89 (complete).
2881 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2882
2883 int
2884 main (int argc, char **argv)
2885 {
2886 int ok = 0;
2887 ${ac_c_conftest_c89_main}
2888 return ok;
2889 }
2890 "
2891
2892 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2893 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2894 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2895 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2896 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2897 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2898 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2899 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2900 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2901 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2902
2903 # Auxiliary files required by this configure script.
2904 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2905
2906 # Locations in which to look for auxiliary files.
2907 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2908
2909 # Search for a directory containing all of the required auxiliary files,
2910 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2911 # If we don't find one directory that contains all the files we need,
2912 # we report the set of missing files from the *first* directory in
2913 # $ac_aux_dir_candidates and give up.
2914 ac_missing_aux_files=""
2915 ac_first_candidate=:
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 as_found=false
2919 for as_dir in $ac_aux_dir_candidates
2920 do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 as_found=:
2928
2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2930 ac_aux_dir_found=yes
2931 ac_install_sh=
2932 for ac_aux in $ac_aux_files
2933 do
2934 # As a special case, if "install-sh" is required, that requirement
2935 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2936 # and $ac_install_sh is set appropriately for whichever one is found.
2937 if test x"$ac_aux" = x"install-sh"
2938 then
2939 if test -f "${as_dir}install-sh"; then
2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2941 ac_install_sh="${as_dir}install-sh -c"
2942 elif test -f "${as_dir}install.sh"; then
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2944 ac_install_sh="${as_dir}install.sh -c"
2945 elif test -f "${as_dir}shtool"; then
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2947 ac_install_sh="${as_dir}shtool install -c"
2948 else
2949 ac_aux_dir_found=no
2950 if $ac_first_candidate; then
2951 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2952 else
2953 break
2954 fi
2955 fi
2956 else
2957 if test -f "${as_dir}${ac_aux}"; then
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2959 else
2960 ac_aux_dir_found=no
2961 if $ac_first_candidate; then
2962 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2963 else
2964 break
2965 fi
2966 fi
2967 fi
2968 done
2969 if test "$ac_aux_dir_found" = yes; then
2970 ac_aux_dir="$as_dir"
2971 break
2972 fi
2973 ac_first_candidate=false
2974
2975 as_found=false
2976 done
2977 IFS=$as_save_IFS
2978 if $as_found
2979 then :
2980
2981 else $as_nop
2982 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2983 fi
2984
2985
2986 # These three variables are undocumented and unsupported,
2987 # and are intended to be withdrawn in a future Autoconf release.
2988 # They can cause serious problems if a builder's source tree is in a directory
2989 # whose full name contains unusual characters.
2990 if test -f "${ac_aux_dir}config.guess"; then
2991 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2992 fi
2993 if test -f "${ac_aux_dir}config.sub"; then
2994 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2995 fi
2996 if test -f "$ac_aux_dir/configure"; then
2997 ac_configure="$SHELL ${ac_aux_dir}configure"
2998 fi
2999
3000 # Check that the precious variables saved in the cache have kept the same
3001 # value.
3002 ac_cache_corrupted=false
3003 for ac_var in $ac_precious_vars; do
3004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3005 eval ac_new_set=\$ac_env_${ac_var}_set
3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3007 eval ac_new_val=\$ac_env_${ac_var}_value
3008 case $ac_old_set,$ac_new_set in
3009 set,)
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3011 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3012 ac_cache_corrupted=: ;;
3013 ,set)
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3015 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3016 ac_cache_corrupted=: ;;
3017 ,);;
3018 *)
3019 if test "x$ac_old_val" != "x$ac_new_val"; then
3020 # differences in whitespace do not lead to failure.
3021 ac_old_val_w=`echo x $ac_old_val`
3022 ac_new_val_w=`echo x $ac_new_val`
3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3025 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3026 ac_cache_corrupted=:
3027 else
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3029 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3030 eval $ac_var=\$ac_old_val
3031 fi
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3033 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3035 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3036 fi;;
3037 esac
3038 # Pass precious variables to config.status.
3039 if test "$ac_new_set" = set; then
3040 case $ac_new_val in
3041 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3042 *) ac_arg=$ac_var=$ac_new_val ;;
3043 esac
3044 case " $ac_configure_args " in
3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3047 esac
3048 fi
3049 done
3050 if $ac_cache_corrupted; then
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3054 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3055 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3056 and start over" "$LINENO" 5
3057 fi
3058 ## -------------------- ##
3059 ## Main body of script. ##
3060 ## -------------------- ##
3061
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067
3068
3069
3070
3071
3072 printf "%s\n" "#define PACKAGE_VERSION_MAJOR \"9\"" >>confdefs.h
3073
3074
3075 printf "%s\n" "#define PACKAGE_VERSION_MINOR \"20\"" >>confdefs.h
3076
3077
3078 printf "%s\n" "#define PACKAGE_VERSION_PATCH \"4\"" >>confdefs.h
3079
3080
3081 printf "%s\n" "#define PACKAGE_VERSION_EXTRA \"\"" >>confdefs.h
3082
3083
3084 printf "%s\n" "#define PACKAGE_DESCRIPTION \" (Stable Release)\"" >>confdefs.h
3085
3086
3087 printf "%s\n" "#define PACKAGE_SRCID \"283ac23\"" >>confdefs.h
3088
3089
3090 bind_CONFIGARGS="${ac_configure_args:-default}"
3091
3092 printf "%s\n" "#define PACKAGE_CONFIGARGS \"$bind_CONFIGARGS\"" >>confdefs.h
3093
3094
3095
3096 printf "%s\n" "#define PACKAGE_BUILDER \"make\"" >>confdefs.h
3097
3098
3099 #
3100 # Get the Canonical System Type
3101 #
3102
3103
3104
3105 # Make sure we can run config.sub.
3106 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3107 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3108
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3110 printf %s "checking build system type... " >&6; }
3111 if test ${ac_cv_build+y}
3112 then :
3113 printf %s "(cached) " >&6
3114 else $as_nop
3115 ac_build_alias=$build_alias
3116 test "x$ac_build_alias" = x &&
3117 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3118 test "x$ac_build_alias" = x &&
3119 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3120 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3121 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3122
3123 fi
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3125 printf "%s\n" "$ac_cv_build" >&6; }
3126 case $ac_cv_build in
3127 *-*-*) ;;
3128 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3129 esac
3130 build=$ac_cv_build
3131 ac_save_IFS=$IFS; IFS='-'
3132 set x $ac_cv_build
3133 shift
3134 build_cpu=$1
3135 build_vendor=$2
3136 shift; shift
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3139 build_os=$*
3140 IFS=$ac_save_IFS
3141 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3142
3143
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3145 printf %s "checking host system type... " >&6; }
3146 if test ${ac_cv_host+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else $as_nop
3150 if test "x$host_alias" = x; then
3151 ac_cv_host=$ac_cv_build
3152 else
3153 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3154 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3155 fi
3156
3157 fi
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3159 printf "%s\n" "$ac_cv_host" >&6; }
3160 case $ac_cv_host in
3161 *-*-*) ;;
3162 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3163 esac
3164 host=$ac_cv_host
3165 ac_save_IFS=$IFS; IFS='-'
3166 set x $ac_cv_host
3167 shift
3168 host_cpu=$1
3169 host_vendor=$2
3170 shift; shift
3171 # Remember, the first character of IFS is used to create $*,
3172 # except with old shells:
3173 host_os=$*
3174 IFS=$ac_save_IFS
3175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3176
3177
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3179 printf %s "checking target system type... " >&6; }
3180 if test ${ac_cv_target+y}
3181 then :
3182 printf %s "(cached) " >&6
3183 else $as_nop
3184 if test "x$target_alias" = x; then
3185 ac_cv_target=$ac_cv_host
3186 else
3187 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3188 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3189 fi
3190
3191 fi
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3193 printf "%s\n" "$ac_cv_target" >&6; }
3194 case $ac_cv_target in
3195 *-*-*) ;;
3196 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3197 esac
3198 target=$ac_cv_target
3199 ac_save_IFS=$IFS; IFS='-'
3200 set x $ac_cv_target
3201 shift
3202 target_cpu=$1
3203 target_vendor=$2
3204 shift; shift
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3207 target_os=$*
3208 IFS=$ac_save_IFS
3209 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3210
3211
3212 # The aliases save the names the user supplied, while $host etc.
3213 # will get canonicalized.
3214 test -n "$target_alias" &&
3215 test "$program_prefix$program_suffix$program_transform_name" = \
3216 NONENONEs,x,x, &&
3217 program_prefix=${target_alias}-
3218
3219
3220 am__api_version='1.16'
3221
3222
3223 # Find a good install program. We prefer a C program (faster),
3224 # so one script is as good as another. But avoid the broken or
3225 # incompatible versions:
3226 # SysV /etc/install, /usr/sbin/install
3227 # SunOS /usr/etc/install
3228 # IRIX /sbin/install
3229 # AIX /bin/install
3230 # AmigaOS /C/install, which installs bootblocks on floppy discs
3231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3234 # OS/2's system install, which has a completely different semantic
3235 # ./install, which can be erroneously created by make from ./install.sh.
3236 # Reject install programs that cannot install multiple files.
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3238 printf %s "checking for a BSD-compatible install... " >&6; }
3239 if test -z "$INSTALL"; then
3240 if test ${ac_cv_path_install+y}
3241 then :
3242 printf %s "(cached) " >&6
3243 else $as_nop
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 case $as_dir in #(((
3249 '') as_dir=./ ;;
3250 */) ;;
3251 *) as_dir=$as_dir/ ;;
3252 esac
3253 # Account for fact that we put trailing slashes in our PATH walk.
3254 case $as_dir in #((
3255 ./ | /[cC]/* | \
3256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3257 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3258 /usr/ucb/* ) ;;
3259 *)
3260 # OSF1 and SCO ODT 3.0 have their own names for install.
3261 # Don't use installbsd from OSF since it installs stuff as root
3262 # by default.
3263 for ac_prog in ginstall scoinst install; do
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3266 if test $ac_prog = install &&
3267 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3268 # AIX install. It has an incompatible calling convention.
3269 :
3270 elif test $ac_prog = install &&
3271 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # program-specific install script used by HP pwplus--don't use.
3273 :
3274 else
3275 rm -rf conftest.one conftest.two conftest.dir
3276 echo one > conftest.one
3277 echo two > conftest.two
3278 mkdir conftest.dir
3279 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3280 test -s conftest.one && test -s conftest.two &&
3281 test -s conftest.dir/conftest.one &&
3282 test -s conftest.dir/conftest.two
3283 then
3284 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3285 break 3
3286 fi
3287 fi
3288 fi
3289 done
3290 done
3291 ;;
3292 esac
3293
3294 done
3295 IFS=$as_save_IFS
3296
3297 rm -rf conftest.one conftest.two conftest.dir
3298
3299 fi
3300 if test ${ac_cv_path_install+y}; then
3301 INSTALL=$ac_cv_path_install
3302 else
3303 # As a last resort, use the slow shell script. Don't cache a
3304 # value for INSTALL within a source directory, because that will
3305 # break other packages using the cache if that directory is
3306 # removed, or if the value is a relative name.
3307 INSTALL=$ac_install_sh
3308 fi
3309 fi
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3311 printf "%s\n" "$INSTALL" >&6; }
3312
3313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3314 # It thinks the first close brace ends the variable substitution.
3315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3316
3317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3318
3319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3320
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3322 printf %s "checking whether build environment is sane... " >&6; }
3323 # Reject unsafe characters in $srcdir or the absolute working directory
3324 # name. Accept space and tab only in the latter.
3325 am_lf='
3326 '
3327 case `pwd` in
3328 *[\\\"\#\$\&\'\`$am_lf]*)
3329 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3330 esac
3331 case $srcdir in
3332 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3333 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3334 esac
3335
3336 # Do 'set' in a subshell so we don't clobber the current shell's
3337 # arguments. Must try -L first in case configure is actually a
3338 # symlink; some systems play weird games with the mod time of symlinks
3339 # (eg FreeBSD returns the mod time of the symlink's containing
3340 # directory).
3341 if (
3342 am_has_slept=no
3343 for am_try in 1 2; do
3344 echo "timestamp, slept: $am_has_slept" > conftest.file
3345 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3346 if test "$*" = "X"; then
3347 # -L didn't work.
3348 set X `ls -t "$srcdir/configure" conftest.file`
3349 fi
3350 if test "$*" != "X $srcdir/configure conftest.file" \
3351 && test "$*" != "X conftest.file $srcdir/configure"; then
3352
3353 # If neither matched, then we have a broken ls. This can happen
3354 # if, for instance, CONFIG_SHELL is bash and it inherits a
3355 # broken ls alias from the environment. This has actually
3356 # happened. Such a system could not be considered "sane".
3357 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3358 alias in your environment" "$LINENO" 5
3359 fi
3360 if test "$2" = conftest.file || test $am_try -eq 2; then
3361 break
3362 fi
3363 # Just in case.
3364 sleep 1
3365 am_has_slept=yes
3366 done
3367 test "$2" = conftest.file
3368 )
3369 then
3370 # Ok.
3371 :
3372 else
3373 as_fn_error $? "newly created file is older than distributed files!
3374 Check your system clock" "$LINENO" 5
3375 fi
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 printf "%s\n" "yes" >&6; }
3378 # If we didn't sleep, we still need to ensure time stamps of config.status and
3379 # generated files are strictly newer.
3380 am_sleep_pid=
3381 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3382 ( sleep 1 ) &
3383 am_sleep_pid=$!
3384 fi
3385
3386 rm -f conftest.file
3387
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3397
3398
3399 # Expand $ac_aux_dir to an absolute path.
3400 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3401
3402
3403 if test x"${MISSING+set}" != xset; then
3404 MISSING="\${SHELL} '$am_aux_dir/missing'"
3405 fi
3406 # Use eval to expand $SHELL
3407 if eval "$MISSING --is-lightweight"; then
3408 am_missing_run="$MISSING "
3409 else
3410 am_missing_run=
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3412 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3413 fi
3414
3415 if test x"${install_sh+set}" != xset; then
3416 case $am_aux_dir in
3417 *\ * | *\ *)
3418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3419 *)
3420 install_sh="\${SHELL} $am_aux_dir/install-sh"
3421 esac
3422 fi
3423
3424 # Installed binaries are usually stripped using 'strip' when the user
3425 # run "make install-strip". However 'strip' might not be the right
3426 # tool to use in cross-compilation environments, therefore Automake
3427 # will honor the 'STRIP' environment variable to overrule this program.
3428 if test "$cross_compiling" != no; then
3429 if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}strip; ac_word=$2
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 printf %s "checking for $ac_word... " >&6; }
3434 if test ${ac_cv_prog_STRIP+y}
3435 then :
3436 printf %s "(cached) " >&6
3437 else $as_nop
3438 if test -n "$STRIP"; then
3439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 case $as_dir in #(((
3446 '') as_dir=./ ;;
3447 */) ;;
3448 *) as_dir=$as_dir/ ;;
3449 esac
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 STRIP=$ac_cv_prog_STRIP
3463 if test -n "$STRIP"; then
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3465 printf "%s\n" "$STRIP" >&6; }
3466 else
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 printf "%s\n" "no" >&6; }
3469 fi
3470
3471
3472 fi
3473 if test -z "$ac_cv_prog_STRIP"; then
3474 ac_ct_STRIP=$STRIP
3475 # Extract the first word of "strip", so it can be a program name with args.
3476 set dummy strip; ac_word=$2
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 printf %s "checking for $ac_word... " >&6; }
3479 if test ${ac_cv_prog_ac_ct_STRIP+y}
3480 then :
3481 printf %s "(cached) " >&6
3482 else $as_nop
3483 if test -n "$ac_ct_STRIP"; then
3484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489 IFS=$as_save_IFS
3490 case $as_dir in #(((
3491 '') as_dir=./ ;;
3492 */) ;;
3493 *) as_dir=$as_dir/ ;;
3494 esac
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_ac_ct_STRIP="strip"
3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3508 if test -n "$ac_ct_STRIP"; then
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3510 printf "%s\n" "$ac_ct_STRIP" >&6; }
3511 else
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 printf "%s\n" "no" >&6; }
3514 fi
3515
3516 if test "x$ac_ct_STRIP" = x; then
3517 STRIP=":"
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525 STRIP=$ac_ct_STRIP
3526 fi
3527 else
3528 STRIP="$ac_cv_prog_STRIP"
3529 fi
3530
3531 fi
3532 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3533
3534
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3536 printf %s "checking for a race-free mkdir -p... " >&6; }
3537 if test -z "$MKDIR_P"; then
3538 if test ${ac_cv_path_mkdir+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else $as_nop
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3544 do
3545 IFS=$as_save_IFS
3546 case $as_dir in #(((
3547 '') as_dir=./ ;;
3548 */) ;;
3549 *) as_dir=$as_dir/ ;;
3550 esac
3551 for ac_prog in mkdir gmkdir; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3554 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3555 'mkdir ('*'coreutils) '* | \
3556 'BusyBox '* | \
3557 'mkdir (fileutils) '4.1*)
3558 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3559 break 3;;
3560 esac
3561 done
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi
3567
3568 test -d ./--version && rmdir ./--version
3569 if test ${ac_cv_path_mkdir+y}; then
3570 MKDIR_P="$ac_cv_path_mkdir -p"
3571 else
3572 # As a last resort, use the slow shell script. Don't cache a
3573 # value for MKDIR_P within a source directory, because that will
3574 # break other packages using the cache if that directory is
3575 # removed, or if the value is a relative name.
3576 MKDIR_P="$ac_install_sh -d"
3577 fi
3578 fi
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3580 printf "%s\n" "$MKDIR_P" >&6; }
3581
3582 for ac_prog in gawk mawk nawk awk
3583 do
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 printf %s "checking for $ac_word... " >&6; }
3588 if test ${ac_cv_prog_AWK+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else $as_nop
3592 if test -n "$AWK"; then
3593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 case $as_dir in #(((
3600 '') as_dir=./ ;;
3601 */) ;;
3602 *) as_dir=$as_dir/ ;;
3603 esac
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_AWK="$ac_prog"
3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 AWK=$ac_cv_prog_AWK
3617 if test -n "$AWK"; then
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3619 printf "%s\n" "$AWK" >&6; }
3620 else
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 printf "%s\n" "no" >&6; }
3623 fi
3624
3625
3626 test -n "$AWK" && break
3627 done
3628
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3630 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3631 set x ${MAKE-make}
3632 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3633 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else $as_nop
3637 cat >conftest.make <<\_ACEOF
3638 SHELL = /bin/sh
3639 all:
3640 @echo '@@@%%%=$(MAKE)=@@@%%%'
3641 _ACEOF
3642 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3643 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3644 *@@@%%%=?*=@@@%%%*)
3645 eval ac_cv_prog_make_${ac_make}_set=yes;;
3646 *)
3647 eval ac_cv_prog_make_${ac_make}_set=no;;
3648 esac
3649 rm -f conftest.make
3650 fi
3651 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 printf "%s\n" "yes" >&6; }
3654 SET_MAKE=
3655 else
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3658 SET_MAKE="MAKE=${MAKE-make}"
3659 fi
3660
3661 rm -rf .tst 2>/dev/null
3662 mkdir .tst 2>/dev/null
3663 if test -d .tst; then
3664 am__leading_dot=.
3665 else
3666 am__leading_dot=_
3667 fi
3668 rmdir .tst 2>/dev/null
3669
3670 # Check whether --enable-silent-rules was given.
3671 if test ${enable_silent_rules+y}
3672 then :
3673 enableval=$enable_silent_rules;
3674 fi
3675
3676 case $enable_silent_rules in # (((
3677 yes) AM_DEFAULT_VERBOSITY=0;;
3678 no) AM_DEFAULT_VERBOSITY=1;;
3679 *) AM_DEFAULT_VERBOSITY=1;;
3680 esac
3681 am_make=${MAKE-make}
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3683 printf %s "checking whether $am_make supports nested variables... " >&6; }
3684 if test ${am_cv_make_support_nested_variables+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else $as_nop
3688 if printf "%s\n" 'TRUE=$(BAR$(V))
3689 BAR0=false
3690 BAR1=true
3691 V=1
3692 am__doit:
3693 @$(TRUE)
3694 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3695 am_cv_make_support_nested_variables=yes
3696 else
3697 am_cv_make_support_nested_variables=no
3698 fi
3699 fi
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3701 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3702 if test $am_cv_make_support_nested_variables = yes; then
3703 AM_V='$(V)'
3704 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3705 else
3706 AM_V=$AM_DEFAULT_VERBOSITY
3707 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3708 fi
3709 AM_BACKSLASH='\'
3710
3711 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3713 # is not polluted with repeated "-I."
3714 am__isrc=' -I$(srcdir)'
3715 # test to see if srcdir already configured
3716 if test -f $srcdir/config.status; then
3717 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3718 fi
3719 fi
3720
3721 # test whether we have cygpath
3722 if test -z "$CYGPATH_W"; then
3723 if (cygpath --version) >/dev/null 2>/dev/null; then
3724 CYGPATH_W='cygpath -w'
3725 else
3726 CYGPATH_W=echo
3727 fi
3728 fi
3729
3730
3731 # Define the identity of the package.
3732 PACKAGE='bind'
3733 VERSION='9.20.4'
3734
3735
3736 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3737
3738
3739 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3740
3741 # Some tools Automake needs.
3742
3743 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3744
3745
3746 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3747
3748
3749 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3750
3751
3752 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3753
3754
3755 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3756
3757 # For better backward compatibility. To be removed once Automake 1.9.x
3758 # dies out for good. For more background, see:
3759 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3760 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3761 mkdir_p='$(MKDIR_P)'
3762
3763 # We need awk for the "check" target (and possibly the TAP driver). The
3764 # system "awk" is bad on some platforms.
3765 # Always define AMTAR for backward compatibility. Yes, it's still used
3766 # in the wild :-( We should find a proper way to deprecate it ...
3767 AMTAR='$${TAR-tar}'
3768
3769
3770 # We'll loop over all known methods to create a tar archive until one works.
3771 _am_tools='gnutar pax cpio none'
3772
3773
3774
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3776 printf %s "checking how to create a pax tar archive... " >&6; }
3777
3778 # Go ahead even if we have the value already cached. We do so because we
3779 # need to set the values for the 'am__tar' and 'am__untar' variables.
3780 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3781
3782 for _am_tool in $_am_tools; do
3783 case $_am_tool in
3784 gnutar)
3785 for _am_tar in tar gnutar gtar; do
3786 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3787 ($_am_tar --version) >&5 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } && break
3791 done
3792 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3793 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3794 am__untar="$_am_tar -xf -"
3795 ;;
3796 plaintar)
3797 # Must skip GNU tar: if it does not support --format= it doesn't create
3798 # ustar tarball either.
3799 (tar --version) >/dev/null 2>&1 && continue
3800 am__tar='tar chf - "$$tardir"'
3801 am__tar_='tar chf - "$tardir"'
3802 am__untar='tar xf -'
3803 ;;
3804 pax)
3805 am__tar='pax -L -x pax -w "$$tardir"'
3806 am__tar_='pax -L -x pax -w "$tardir"'
3807 am__untar='pax -r'
3808 ;;
3809 cpio)
3810 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3811 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3812 am__untar='cpio -i -H pax -d'
3813 ;;
3814 none)
3815 am__tar=false
3816 am__tar_=false
3817 am__untar=false
3818 ;;
3819 esac
3820
3821 # If the value was cached, stop now. We just wanted to have am__tar
3822 # and am__untar set.
3823 test -n "${am_cv_prog_tar_pax}" && break
3824
3825 # tar/untar a dummy directory, and stop if the command works.
3826 rm -rf conftest.dir
3827 mkdir conftest.dir
3828 echo GrepMe > conftest.dir/file
3829 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3830 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }
3834 rm -rf conftest.dir
3835 if test -s conftest.tar; then
3836 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3837 ($am__untar <conftest.tar) >&5 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }
3841 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3842 (cat conftest.dir/file) >&5 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3847 fi
3848 done
3849 rm -rf conftest.dir
3850
3851 if test ${am_cv_prog_tar_pax+y}
3852 then :
3853 printf %s "(cached) " >&6
3854 else $as_nop
3855 am_cv_prog_tar_pax=$_am_tool
3856 fi
3857
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3859 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3860
3861
3862
3863
3864
3865 # Variables for tags utilities; see am/tags.am
3866 if test -z "$CTAGS"; then
3867 CTAGS=ctags
3868 fi
3869
3870 if test -z "$ETAGS"; then
3871 ETAGS=etags
3872 fi
3873
3874 if test -z "$CSCOPE"; then
3875 CSCOPE=cscope
3876 fi
3877
3878
3879
3880 # POSIX will say in a future version that running "rm -f" with no argument
3881 # is OK; and we want to be able to make that assumption in our Makefile
3882 # recipes. So use an aggressive probe to check that the usage we want is
3883 # actually supported "in the wild" to an acceptable degree.
3884 # See automake bug#10828.
3885 # To make any issue more visible, cause the running configure to be aborted
3886 # by default if the 'rm' program in use doesn't match our expectations; the
3887 # user can still override this though.
3888 if rm -f && rm -fr && rm -rf; then : OK; else
3889 cat >&2 <<'END'
3890 Oops!
3891
3892 Your 'rm' program seems unable to run without file operands specified
3893 on the command line, even when the '-f' option is present. This is contrary
3894 to the behaviour of most rm programs out there, and not conforming with
3895 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3896
3897 Please tell [email protected] about your system, including the value
3898 of your $PATH and any error possibly output before this message. This
3899 can help us improve future automake versions.
3900
3901 END
3902 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3903 echo 'Configuration will proceed anyway, since you have set the' >&2
3904 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3905 echo >&2
3906 else
3907 cat >&2 <<'END'
3908 Aborting the configuration process, to ensure you take notice of the issue.
3909
3910 You can download and install GNU coreutils to get an 'rm' implementation
3911 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3912
3913 If you want to complete the configuration process using your problematic
3914 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3915 to "yes", and re-run configure.
3916
3917 END
3918 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3919 fi
3920 fi
3921
3922 # Check whether --enable-silent-rules was given.
3923 if test ${enable_silent_rules+y}
3924 then :
3925 enableval=$enable_silent_rules;
3926 fi
3927
3928 case $enable_silent_rules in # (((
3929 yes) AM_DEFAULT_VERBOSITY=0;;
3930 no) AM_DEFAULT_VERBOSITY=1;;
3931 *) AM_DEFAULT_VERBOSITY=0;;
3932 esac
3933 am_make=${MAKE-make}
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3935 printf %s "checking whether $am_make supports nested variables... " >&6; }
3936 if test ${am_cv_make_support_nested_variables+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else $as_nop
3940 if printf "%s\n" 'TRUE=$(BAR$(V))
3941 BAR0=false
3942 BAR1=true
3943 V=1
3944 am__doit:
3945 @$(TRUE)
3946 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3947 am_cv_make_support_nested_variables=yes
3948 else
3949 am_cv_make_support_nested_variables=no
3950 fi
3951 fi
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3953 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3954 if test $am_cv_make_support_nested_variables = yes; then
3955 AM_V='$(V)'
3956 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3957 else
3958 AM_V=$AM_DEFAULT_VERBOSITY
3959 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3960 fi
3961 AM_BACKSLASH='\'
3962
3963
3964
3965 ac_config_headers="$ac_config_headers config.h"
3966
3967
3968
3969 #
3970 # Enable maintainer mode by default only when building from git repository
3971 # and not cross compling
3972 #
3973 if test "$cross_compiling" = no
3974 then :
3975
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3977 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3978 # Check whether --enable-maintainer-mode was given.
3979 if test ${enable_maintainer_mode+y}
3980 then :
3981 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3982 else $as_nop
3983 USE_MAINTAINER_MODE=yes
3984 fi
3985
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3987 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3988 if test $USE_MAINTAINER_MODE = yes; then
3989 MAINTAINER_MODE_TRUE=
3990 MAINTAINER_MODE_FALSE='#'
3991 else
3992 MAINTAINER_MODE_TRUE='#'
3993 MAINTAINER_MODE_FALSE=
3994 fi
3995
3996 MAINT=$MAINTAINER_MODE_TRUE
3997
3998
3999 else $as_nop
4000
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4002 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4003 # Check whether --enable-maintainer-mode was given.
4004 if test ${enable_maintainer_mode+y}
4005 then :
4006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4007 else $as_nop
4008 USE_MAINTAINER_MODE=no
4009 fi
4010
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4012 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4013 if test $USE_MAINTAINER_MODE = yes; then
4014 MAINTAINER_MODE_TRUE=
4015 MAINTAINER_MODE_FALSE='#'
4016 else
4017 MAINTAINER_MODE_TRUE='#'
4018 MAINTAINER_MODE_FALSE=
4019 fi
4020
4021 MAINT=$MAINTAINER_MODE_TRUE
4022
4023
4024 fi
4025
4026 #
4027 # Enable system extensions to C and POSIX
4028 #
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038 DEPDIR="${am__leading_dot}deps"
4039
4040 ac_config_commands="$ac_config_commands depfiles"
4041
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4043 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4044 cat > confinc.mk << 'END'
4045 am__doit:
4046 @echo this is the am__doit target >confinc.out
4047 .PHONY: am__doit
4048 END
4049 am__include="#"
4050 am__quote=
4051 # BSD make does it like this.
4052 echo '.include "confinc.mk" # ignored' > confmf.BSD
4053 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4054 echo 'include confinc.mk # ignored' > confmf.GNU
4055 _am_result=no
4056 for s in GNU BSD; do
4057 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4058 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }
4062 case $?:`cat confinc.out 2>/dev/null` in #(
4063 '0:this is the am__doit target') :
4064 case $s in #(
4065 BSD) :
4066 am__include='.include' am__quote='"' ;; #(
4067 *) :
4068 am__include='include' am__quote='' ;;
4069 esac ;; #(
4070 *) :
4071 ;;
4072 esac
4073 if test "$am__include" != "#"; then
4074 _am_result="yes ($s style)"
4075 break
4076 fi
4077 done
4078 rm -f confinc.* confmf.*
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4080 printf "%s\n" "${_am_result}" >&6; }
4081
4082 # Check whether --enable-dependency-tracking was given.
4083 if test ${enable_dependency_tracking+y}
4084 then :
4085 enableval=$enable_dependency_tracking;
4086 fi
4087
4088 if test "x$enable_dependency_tracking" != xno; then
4089 am_depcomp="$ac_aux_dir/depcomp"
4090 AMDEPBACKSLASH='\'
4091 am__nodep='_no'
4092 fi
4093 if test "x$enable_dependency_tracking" != xno; then
4094 AMDEP_TRUE=
4095 AMDEP_FALSE='#'
4096 else
4097 AMDEP_TRUE='#'
4098 AMDEP_FALSE=
4099 fi
4100
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 printf %s "checking for $ac_word... " >&6; }
4112 if test ${ac_cv_prog_CC+y}
4113 then :
4114 printf %s "(cached) " >&6
4115 else $as_nop
4116 if test -n "$CC"; then
4117 ac_cv_prog_CC="$CC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 case $as_dir in #(((
4124 '') as_dir=./ ;;
4125 */) ;;
4126 *) as_dir=$as_dir/ ;;
4127 esac
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 CC=$ac_cv_prog_CC
4141 if test -n "$CC"; then
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143 printf "%s\n" "$CC" >&6; }
4144 else
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 printf "%s\n" "no" >&6; }
4147 fi
4148
4149
4150 fi
4151 if test -z "$ac_cv_prog_CC"; then
4152 ac_ct_CC=$CC
4153 # Extract the first word of "gcc", so it can be a program name with args.
4154 set dummy gcc; ac_word=$2
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 printf %s "checking for $ac_word... " >&6; }
4157 if test ${ac_cv_prog_ac_ct_CC+y}
4158 then :
4159 printf %s "(cached) " >&6
4160 else $as_nop
4161 if test -n "$ac_ct_CC"; then
4162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167 IFS=$as_save_IFS
4168 case $as_dir in #(((
4169 '') as_dir=./ ;;
4170 */) ;;
4171 *) as_dir=$as_dir/ ;;
4172 esac
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_ac_ct_CC="gcc"
4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179 done
4180 done
4181 IFS=$as_save_IFS
4182
4183 fi
4184 fi
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4188 printf "%s\n" "$ac_ct_CC" >&6; }
4189 else
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 printf "%s\n" "no" >&6; }
4192 fi
4193
4194 if test "x$ac_ct_CC" = x; then
4195 CC=""
4196 else
4197 case $cross_compiling:$ac_tool_warned in
4198 yes:)
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4201 ac_tool_warned=yes ;;
4202 esac
4203 CC=$ac_ct_CC
4204 fi
4205 else
4206 CC="$ac_cv_prog_CC"
4207 fi
4208
4209 if test -z "$CC"; then
4210 if test -n "$ac_tool_prefix"; then
4211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4212 set dummy ${ac_tool_prefix}cc; ac_word=$2
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 printf %s "checking for $ac_word... " >&6; }
4215 if test ${ac_cv_prog_CC+y}
4216 then :
4217 printf %s "(cached) " >&6
4218 else $as_nop
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC="$CC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 case $as_dir in #(((
4227 '') as_dir=./ ;;
4228 */) ;;
4229 *) as_dir=$as_dir/ ;;
4230 esac
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_CC="${ac_tool_prefix}cc"
4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237 done
4238 done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 CC=$ac_cv_prog_CC
4244 if test -n "$CC"; then
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246 printf "%s\n" "$CC" >&6; }
4247 else
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 printf "%s\n" "no" >&6; }
4250 fi
4251
4252
4253 fi
4254 fi
4255 if test -z "$CC"; then
4256 # Extract the first word of "cc", so it can be a program name with args.
4257 set dummy cc; ac_word=$2
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 printf %s "checking for $ac_word... " >&6; }
4260 if test ${ac_cv_prog_CC+y}
4261 then :
4262 printf %s "(cached) " >&6
4263 else $as_nop
4264 if test -n "$CC"; then
4265 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 else
4267 ac_prog_rejected=no
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271 IFS=$as_save_IFS
4272 case $as_dir in #(((
4273 '') as_dir=./ ;;
4274 */) ;;
4275 *) as_dir=$as_dir/ ;;
4276 esac
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4279 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4280 ac_prog_rejected=yes
4281 continue
4282 fi
4283 ac_cv_prog_CC="cc"
4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287 done
4288 done
4289 IFS=$as_save_IFS
4290
4291 if test $ac_prog_rejected = yes; then
4292 # We found a bogon in the path, so make sure we never use it.
4293 set dummy $ac_cv_prog_CC
4294 shift
4295 if test $# != 0; then
4296 # We chose a different compiler from the bogus one.
4297 # However, it has the same basename, so the bogon will be chosen
4298 # first if we set CC to just the basename; use the full file name.
4299 shift
4300 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4301 fi
4302 fi
4303 fi
4304 fi
4305 CC=$ac_cv_prog_CC
4306 if test -n "$CC"; then
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 printf "%s\n" "$CC" >&6; }
4309 else
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 printf "%s\n" "no" >&6; }
4312 fi
4313
4314
4315 fi
4316 if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in cl.exe
4319 do
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 printf %s "checking for $ac_word... " >&6; }
4324 if test ${ac_cv_prog_CC+y}
4325 then :
4326 printf %s "(cached) " >&6
4327 else $as_nop
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334 IFS=$as_save_IFS
4335 case $as_dir in #(((
4336 '') as_dir=./ ;;
4337 */) ;;
4338 *) as_dir=$as_dir/ ;;
4339 esac
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4344 break 2
4345 fi
4346 done
4347 done
4348 IFS=$as_save_IFS
4349
4350 fi
4351 fi
4352 CC=$ac_cv_prog_CC
4353 if test -n "$CC"; then
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4355 printf "%s\n" "$CC" >&6; }
4356 else
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 printf "%s\n" "no" >&6; }
4359 fi
4360
4361
4362 test -n "$CC" && break
4363 done
4364 fi
4365 if test -z "$CC"; then
4366 ac_ct_CC=$CC
4367 for ac_prog in cl.exe
4368 do
4369 # Extract the first word of "$ac_prog", so it can be a program name with args.
4370 set dummy $ac_prog; ac_word=$2
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 printf %s "checking for $ac_word... " >&6; }
4373 if test ${ac_cv_prog_ac_ct_CC+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else $as_nop
4377 if test -n "$ac_ct_CC"; then
4378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383 IFS=$as_save_IFS
4384 case $as_dir in #(((
4385 '') as_dir=./ ;;
4386 */) ;;
4387 *) as_dir=$as_dir/ ;;
4388 esac
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_CC="$ac_prog"
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 if test -n "$ac_ct_CC"; then
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404 printf "%s\n" "$ac_ct_CC" >&6; }
4405 else
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 printf "%s\n" "no" >&6; }
4408 fi
4409
4410
4411 test -n "$ac_ct_CC" && break
4412 done
4413
4414 if test "x$ac_ct_CC" = x; then
4415 CC=""
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 ac_tool_warned=yes ;;
4422 esac
4423 CC=$ac_ct_CC
4424 fi
4425 fi
4426
4427 fi
4428 if test -z "$CC"; then
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}clang; ac_word=$2
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 printf %s "checking for $ac_word... " >&6; }
4434 if test ${ac_cv_prog_CC+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else $as_nop
4438 if test -n "$CC"; then
4439 ac_cv_prog_CC="$CC" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 case $as_dir in #(((
4446 '') as_dir=./ ;;
4447 */) ;;
4448 *) as_dir=$as_dir/ ;;
4449 esac
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_CC="${ac_tool_prefix}clang"
4453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 CC=$ac_cv_prog_CC
4463 if test -n "$CC"; then
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4465 printf "%s\n" "$CC" >&6; }
4466 else
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 printf "%s\n" "no" >&6; }
4469 fi
4470
4471
4472 fi
4473 if test -z "$ac_cv_prog_CC"; then
4474 ac_ct_CC=$CC
4475 # Extract the first word of "clang", so it can be a program name with args.
4476 set dummy clang; ac_word=$2
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 printf %s "checking for $ac_word... " >&6; }
4479 if test ${ac_cv_prog_ac_ct_CC+y}
4480 then :
4481 printf %s "(cached) " >&6
4482 else $as_nop
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 case $as_dir in #(((
4491 '') as_dir=./ ;;
4492 */) ;;
4493 *) as_dir=$as_dir/ ;;
4494 esac
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_ac_ct_CC="clang"
4498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503 IFS=$as_save_IFS
4504
4505 fi
4506 fi
4507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4508 if test -n "$ac_ct_CC"; then
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4510 printf "%s\n" "$ac_ct_CC" >&6; }
4511 else
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 printf "%s\n" "no" >&6; }
4514 fi
4515
4516 if test "x$ac_ct_CC" = x; then
4517 CC=""
4518 else
4519 case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 CC=$ac_ct_CC
4526 fi
4527 else
4528 CC="$ac_cv_prog_CC"
4529 fi
4530
4531 fi
4532
4533
4534 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "no acceptable C compiler found in \$PATH
4537 See \`config.log' for more details" "$LINENO" 5; }
4538
4539 # Provide some information about the compiler.
4540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4541 set X $ac_compile
4542 ac_compiler=$2
4543 for ac_option in --version -v -V -qversion -version; do
4544 { { ac_try="$ac_compiler $ac_option >&5"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 printf "%s\n" "$ac_try_echo"; } >&5
4551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4552 ac_status=$?
4553 if test -s conftest.err; then
4554 sed '10a\
4555 ... rest of stderr output deleted ...
4556 10q' conftest.err >conftest.er1
4557 cat conftest.er1 >&5
4558 fi
4559 rm -f conftest.er1 conftest.err
4560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }
4562 done
4563
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main (void)
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 ac_clean_files_save=$ac_clean_files
4576 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4577 # Try to create an executable without -o first, disregard a.out.
4578 # It will help us diagnose broken compilers, and finding out an intuition
4579 # of exeext.
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4581 printf %s "checking whether the C compiler works... " >&6; }
4582 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4583
4584 # The possible output files:
4585 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4586
4587 ac_rmfiles=
4588 for ac_file in $ac_files
4589 do
4590 case $ac_file in
4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4592 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4593 esac
4594 done
4595 rm -f $ac_rmfiles
4596
4597 if { { ac_try="$ac_link_default"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603 printf "%s\n" "$ac_try_echo"; } >&5
4604 (eval "$ac_link_default") 2>&5
4605 ac_status=$?
4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }
4608 then :
4609 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4610 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4611 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4612 # so that the user can short-circuit this test for compilers unknown to
4613 # Autoconf.
4614 for ac_file in $ac_files ''
4615 do
4616 test -f "$ac_file" || continue
4617 case $ac_file in
4618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4619 ;;
4620 [ab].out )
4621 # We found the default executable, but exeext='' is most
4622 # certainly right.
4623 break;;
4624 *.* )
4625 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4626 then :; else
4627 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4628 fi
4629 # We set ac_cv_exeext here because the later test for it is not
4630 # safe: cross compilers may not add the suffix if given an `-o'
4631 # argument, so we may need to know it at that point already.
4632 # Even if this section looks crufty: it has the advantage of
4633 # actually working.
4634 break;;
4635 * )
4636 break;;
4637 esac
4638 done
4639 test "$ac_cv_exeext" = no && ac_cv_exeext=
4640
4641 else $as_nop
4642 ac_file=''
4643 fi
4644 if test -z "$ac_file"
4645 then :
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 printf "%s\n" "no" >&6; }
4648 printf "%s\n" "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4653 as_fn_error 77 "C compiler cannot create executables
4654 See \`config.log' for more details" "$LINENO" 5; }
4655 else $as_nop
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 printf "%s\n" "yes" >&6; }
4658 fi
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4660 printf %s "checking for C compiler default output file name... " >&6; }
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4662 printf "%s\n" "$ac_file" >&6; }
4663 ac_exeext=$ac_cv_exeext
4664
4665 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4666 ac_clean_files=$ac_clean_files_save
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4668 printf %s "checking for suffix of executables... " >&6; }
4669 if { { ac_try="$ac_link"
4670 case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675 printf "%s\n" "$ac_try_echo"; } >&5
4676 (eval "$ac_link") 2>&5
4677 ac_status=$?
4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }
4680 then :
4681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4683 # work properly (i.e., refer to `conftest.exe'), while it won't with
4684 # `rm'.
4685 for ac_file in conftest.exe conftest conftest.*; do
4686 test -f "$ac_file" || continue
4687 case $ac_file in
4688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4690 break;;
4691 * ) break;;
4692 esac
4693 done
4694 else $as_nop
4695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4698 See \`config.log' for more details" "$LINENO" 5; }
4699 fi
4700 rm -f conftest conftest$ac_cv_exeext
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4702 printf "%s\n" "$ac_cv_exeext" >&6; }
4703
4704 rm -f conftest.$ac_ext
4705 EXEEXT=$ac_cv_exeext
4706 ac_exeext=$EXEEXT
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <stdio.h>
4710 int
4711 main (void)
4712 {
4713 FILE *f = fopen ("conftest.out", "w");
4714 return ferror (f) || fclose (f) != 0;
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 ac_clean_files="$ac_clean_files conftest.out"
4721 # Check that the compiler produces executables we can run. If not, either
4722 # the compiler is broken, or we cross compile.
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4724 printf %s "checking whether we are cross compiling... " >&6; }
4725 if test "$cross_compiling" != yes; then
4726 { { ac_try="$ac_link"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 printf "%s\n" "$ac_try_echo"; } >&5
4733 (eval "$ac_link") 2>&5
4734 ac_status=$?
4735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }
4737 if { ac_try='./conftest$ac_cv_exeext'
4738 { { case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4743 printf "%s\n" "$ac_try_echo"; } >&5
4744 (eval "$ac_try") 2>&5
4745 ac_status=$?
4746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4747 test $ac_status = 0; }; }; then
4748 cross_compiling=no
4749 else
4750 if test "$cross_compiling" = maybe; then
4751 cross_compiling=yes
4752 else
4753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4754 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4755 as_fn_error 77 "cannot run C compiled programs.
4756 If you meant to cross compile, use \`--host'.
4757 See \`config.log' for more details" "$LINENO" 5; }
4758 fi
4759 fi
4760 fi
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4762 printf "%s\n" "$cross_compiling" >&6; }
4763
4764 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4765 ac_clean_files=$ac_clean_files_save
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4767 printf %s "checking for suffix of object files... " >&6; }
4768 if test ${ac_cv_objext+y}
4769 then :
4770 printf %s "(cached) " >&6
4771 else $as_nop
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main (void)
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 rm -f conftest.o conftest.obj
4784 if { { ac_try="$ac_compile"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 printf "%s\n" "$ac_try_echo"; } >&5
4791 (eval "$ac_compile") 2>&5
4792 ac_status=$?
4793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }
4795 then :
4796 for ac_file in conftest.o conftest.obj conftest.*; do
4797 test -f "$ac_file" || continue;
4798 case $ac_file in
4799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4801 break;;
4802 esac
4803 done
4804 else $as_nop
4805 printf "%s\n" "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4809 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4810 as_fn_error $? "cannot compute suffix of object files: cannot compile
4811 See \`config.log' for more details" "$LINENO" 5; }
4812 fi
4813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4814 fi
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4816 printf "%s\n" "$ac_cv_objext" >&6; }
4817 OBJEXT=$ac_cv_objext
4818 ac_objext=$OBJEXT
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4820 printf %s "checking whether the compiler supports GNU C... " >&6; }
4821 if test ${ac_cv_c_compiler_gnu+y}
4822 then :
4823 printf %s "(cached) " >&6
4824 else $as_nop
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827
4828 int
4829 main (void)
4830 {
4831 #ifndef __GNUC__
4832 choke me
4833 #endif
4834
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"
4840 then :
4841 ac_compiler_gnu=yes
4842 else $as_nop
4843 ac_compiler_gnu=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4847
4848 fi
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4850 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853 if test $ac_compiler_gnu = yes; then
4854 GCC=yes
4855 else
4856 GCC=
4857 fi
4858 ac_test_CFLAGS=${CFLAGS+y}
4859 ac_save_CFLAGS=$CFLAGS
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4861 printf %s "checking whether $CC accepts -g... " >&6; }
4862 if test ${ac_cv_prog_cc_g+y}
4863 then :
4864 printf %s "(cached) " >&6
4865 else $as_nop
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4868 ac_cv_prog_cc_g=no
4869 CFLAGS="-g"
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 int
4874 main (void)
4875 {
4876
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_c_try_compile "$LINENO"
4882 then :
4883 ac_cv_prog_cc_g=yes
4884 else $as_nop
4885 CFLAGS=""
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888
4889 int
4890 main (void)
4891 {
4892
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"
4898 then :
4899
4900 else $as_nop
4901 ac_c_werror_flag=$ac_save_c_werror_flag
4902 CFLAGS="-g"
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905
4906 int
4907 main (void)
4908 {
4909
4910 ;
4911 return 0;
4912 }
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"
4915 then :
4916 ac_cv_prog_cc_g=yes
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4923 ac_c_werror_flag=$ac_save_c_werror_flag
4924 fi
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4926 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4927 if test $ac_test_CFLAGS; then
4928 CFLAGS=$ac_save_CFLAGS
4929 elif test $ac_cv_prog_cc_g = yes; then
4930 if test "$GCC" = yes; then
4931 CFLAGS="-g -O2"
4932 else
4933 CFLAGS="-g"
4934 fi
4935 else
4936 if test "$GCC" = yes; then
4937 CFLAGS="-O2"
4938 else
4939 CFLAGS=
4940 fi
4941 fi
4942 ac_prog_cc_stdc=no
4943 if test x$ac_prog_cc_stdc = xno
4944 then :
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4946 printf %s "checking for $CC option to enable C11 features... " >&6; }
4947 if test ${ac_cv_prog_cc_c11+y}
4948 then :
4949 printf %s "(cached) " >&6
4950 else $as_nop
4951 ac_cv_prog_cc_c11=no
4952 ac_save_CC=$CC
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955 $ac_c_conftest_c11_program
4956 _ACEOF
4957 for ac_arg in '' -std=gnu11
4958 do
4959 CC="$ac_save_CC $ac_arg"
4960 if ac_fn_c_try_compile "$LINENO"
4961 then :
4962 ac_cv_prog_cc_c11=$ac_arg
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.beam
4965 test "x$ac_cv_prog_cc_c11" != "xno" && break
4966 done
4967 rm -f conftest.$ac_ext
4968 CC=$ac_save_CC
4969 fi
4970
4971 if test "x$ac_cv_prog_cc_c11" = xno
4972 then :
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4974 printf "%s\n" "unsupported" >&6; }
4975 else $as_nop
4976 if test "x$ac_cv_prog_cc_c11" = x
4977 then :
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4979 printf "%s\n" "none needed" >&6; }
4980 else $as_nop
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4982 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4983 CC="$CC $ac_cv_prog_cc_c11"
4984 fi
4985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4986 ac_prog_cc_stdc=c11
4987 fi
4988 fi
4989 if test x$ac_prog_cc_stdc = xno
4990 then :
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4992 printf %s "checking for $CC option to enable C99 features... " >&6; }
4993 if test ${ac_cv_prog_cc_c99+y}
4994 then :
4995 printf %s "(cached) " >&6
4996 else $as_nop
4997 ac_cv_prog_cc_c99=no
4998 ac_save_CC=$CC
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 $ac_c_conftest_c99_program
5002 _ACEOF
5003 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5004 do
5005 CC="$ac_save_CC $ac_arg"
5006 if ac_fn_c_try_compile "$LINENO"
5007 then :
5008 ac_cv_prog_cc_c99=$ac_arg
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.beam
5011 test "x$ac_cv_prog_cc_c99" != "xno" && break
5012 done
5013 rm -f conftest.$ac_ext
5014 CC=$ac_save_CC
5015 fi
5016
5017 if test "x$ac_cv_prog_cc_c99" = xno
5018 then :
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5020 printf "%s\n" "unsupported" >&6; }
5021 else $as_nop
5022 if test "x$ac_cv_prog_cc_c99" = x
5023 then :
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5025 printf "%s\n" "none needed" >&6; }
5026 else $as_nop
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5028 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5029 CC="$CC $ac_cv_prog_cc_c99"
5030 fi
5031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5032 ac_prog_cc_stdc=c99
5033 fi
5034 fi
5035 if test x$ac_prog_cc_stdc = xno
5036 then :
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5038 printf %s "checking for $CC option to enable C89 features... " >&6; }
5039 if test ${ac_cv_prog_cc_c89+y}
5040 then :
5041 printf %s "(cached) " >&6
5042 else $as_nop
5043 ac_cv_prog_cc_c89=no
5044 ac_save_CC=$CC
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 $ac_c_conftest_c89_program
5048 _ACEOF
5049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5050 do
5051 CC="$ac_save_CC $ac_arg"
5052 if ac_fn_c_try_compile "$LINENO"
5053 then :
5054 ac_cv_prog_cc_c89=$ac_arg
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext conftest.beam
5057 test "x$ac_cv_prog_cc_c89" != "xno" && break
5058 done
5059 rm -f conftest.$ac_ext
5060 CC=$ac_save_CC
5061 fi
5062
5063 if test "x$ac_cv_prog_cc_c89" = xno
5064 then :
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066 printf "%s\n" "unsupported" >&6; }
5067 else $as_nop
5068 if test "x$ac_cv_prog_cc_c89" = x
5069 then :
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071 printf "%s\n" "none needed" >&6; }
5072 else $as_nop
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5074 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5075 CC="$CC $ac_cv_prog_cc_c89"
5076 fi
5077 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5078 ac_prog_cc_stdc=c89
5079 fi
5080 fi
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088
5089 ac_ext=c
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5095 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5096 if test ${am_cv_prog_cc_c_o+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else $as_nop
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int
5104 main (void)
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 # Make sure it works both with $CC and with simple cc.
5112 # Following AC_PROG_CC_C_O, we do the test twice because some
5113 # compilers refuse to overwrite an existing .o file with -o,
5114 # though they will create one.
5115 am_cv_prog_cc_c_o=yes
5116 for am_i in 1 2; do
5117 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5118 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } \
5122 && test -f conftest2.$ac_objext; then
5123 : OK
5124 else
5125 am_cv_prog_cc_c_o=no
5126 break
5127 fi
5128 done
5129 rm -f core conftest*
5130 unset am_i
5131 fi
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5133 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5134 if test "$am_cv_prog_cc_c_o" != yes; then
5135 # Losing compiler, so override with the script.
5136 # FIXME: It is wrong to rewrite CC.
5137 # But if we don't then we get into trouble of one sort or another.
5138 # A longer-term fix would be to have automake use am__CC in this case,
5139 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5140 CC="$am_aux_dir/compile $CC"
5141 fi
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148
5149 depcc="$CC" am_compiler_list=
5150
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5152 printf %s "checking dependency style of $depcc... " >&6; }
5153 if test ${am_cv_CC_dependencies_compiler_type+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5158 # We make a subdir and do the tests there. Otherwise we can end up
5159 # making bogus files that we don't know about and never remove. For
5160 # instance it was reported that on HP-UX the gcc test will end up
5161 # making a dummy file named 'D' -- because '-MD' means "put the output
5162 # in D".
5163 rm -rf conftest.dir
5164 mkdir conftest.dir
5165 # Copy depcomp to subdir because otherwise we won't find it if we're
5166 # using a relative directory.
5167 cp "$am_depcomp" conftest.dir
5168 cd conftest.dir
5169 # We will build objects and dependencies in a subdirectory because
5170 # it helps to detect inapplicable dependency modes. For instance
5171 # both Tru64's cc and ICC support -MD to output dependencies as a
5172 # side effect of compilation, but ICC will put the dependencies in
5173 # the current directory while Tru64 will put them in the object
5174 # directory.
5175 mkdir sub
5176
5177 am_cv_CC_dependencies_compiler_type=none
5178 if test "$am_compiler_list" = ""; then
5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180 fi
5181 am__universal=false
5182 case " $depcc " in #(
5183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5184 esac
5185
5186 for depmode in $am_compiler_list; do
5187 # Setup a source with many dependencies, because some compilers
5188 # like to wrap large dependency lists on column 80 (with \), and
5189 # we should not choose a depcomp mode which is confused by this.
5190 #
5191 # We need to recreate these files for each test, as the compiler may
5192 # overwrite some of them when testing with obscure command lines.
5193 # This happens at least with the AIX C compiler.
5194 : > sub/conftest.c
5195 for i in 1 2 3 4 5 6; do
5196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5198 # Solaris 10 /bin/sh.
5199 echo '/* dummy */' > sub/conftst$i.h
5200 done
5201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5202
5203 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5204 # mode. It turns out that the SunPro C++ compiler does not properly
5205 # handle '-M -o', and we need to detect this. Also, some Intel
5206 # versions had trouble with output in subdirs.
5207 am__obj=sub/conftest.${OBJEXT-o}
5208 am__minus_obj="-o $am__obj"
5209 case $depmode in
5210 gcc)
5211 # This depmode causes a compiler race in universal mode.
5212 test "$am__universal" = false || continue
5213 ;;
5214 nosideeffect)
5215 # After this tag, mechanisms are not by side-effect, so they'll
5216 # only be used when explicitly requested.
5217 if test "x$enable_dependency_tracking" = xyes; then
5218 continue
5219 else
5220 break
5221 fi
5222 ;;
5223 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5224 # This compiler won't grok '-c -o', but also, the minuso test has
5225 # not run yet. These depmodes are late enough in the game, and
5226 # so weak that their functioning should not be impacted.
5227 am__obj=conftest.${OBJEXT-o}
5228 am__minus_obj=
5229 ;;
5230 none) break ;;
5231 esac
5232 if depmode=$depmode \
5233 source=sub/conftest.c object=$am__obj \
5234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5236 >/dev/null 2>conftest.err &&
5237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5241 # icc doesn't choke on unknown options, it will just issue warnings
5242 # or remarks (even with -Werror). So we grep stderr for any message
5243 # that says an option was ignored or not supported.
5244 # When given -MP, icc 7.0 and 7.1 complain thusly:
5245 # icc: Command line warning: ignoring option '-M'; no argument required
5246 # The diagnosis changed in icc 8.0:
5247 # icc: Command line remark: option '-MP' not supported
5248 if (grep 'ignoring option' conftest.err ||
5249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5250 am_cv_CC_dependencies_compiler_type=$depmode
5251 break
5252 fi
5253 fi
5254 done
5255
5256 cd ..
5257 rm -rf conftest.dir
5258 else
5259 am_cv_CC_dependencies_compiler_type=none
5260 fi
5261
5262 fi
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5264 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5266
5267 if
5268 test "x$enable_dependency_tracking" != xno \
5269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5270 am__fastdepCC_TRUE=
5271 am__fastdepCC_FALSE='#'
5272 else
5273 am__fastdepCC_TRUE='#'
5274 am__fastdepCC_FALSE=
5275 fi
5276
5277
5278
5279 ac_header= ac_cache=
5280 for ac_item in $ac_header_c_list
5281 do
5282 if test $ac_cache; then
5283 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5284 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5285 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5286 fi
5287 ac_header= ac_cache=
5288 elif test $ac_header; then
5289 ac_cache=$ac_item
5290 else
5291 ac_header=$ac_item
5292 fi
5293 done
5294
5295
5296
5297
5298
5299
5300
5301
5302 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5303 then :
5304
5305 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5306
5307 fi
5308
5309
5310
5311
5312
5313
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5315 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5316 if test ${ac_cv_safe_to_define___extensions__+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else $as_nop
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322
5323 # define __EXTENSIONS__ 1
5324 $ac_includes_default
5325 int
5326 main (void)
5327 {
5328
5329 ;
5330 return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_c_try_compile "$LINENO"
5334 then :
5335 ac_cv_safe_to_define___extensions__=yes
5336 else $as_nop
5337 ac_cv_safe_to_define___extensions__=no
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 fi
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5342 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5343
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5345 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5346 if test ${ac_cv_should_define__xopen_source+y}
5347 then :
5348 printf %s "(cached) " >&6
5349 else $as_nop
5350 ac_cv_should_define__xopen_source=no
5351 if test $ac_cv_header_wchar_h = yes
5352 then :
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355
5356 #include <wchar.h>
5357 mbstate_t x;
5358 int
5359 main (void)
5360 {
5361
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"
5367 then :
5368
5369 else $as_nop
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372
5373 #define _XOPEN_SOURCE 500
5374 #include <wchar.h>
5375 mbstate_t x;
5376 int
5377 main (void)
5378 {
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"
5385 then :
5386 ac_cv_should_define__xopen_source=yes
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5391 fi
5392 fi
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5394 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5395
5396 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5397
5398 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5399
5400 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5401
5402 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5403
5404 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5405
5406 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5407
5408 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5409
5410 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5411
5412 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5413
5414 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5415
5416 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5417
5418 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5419
5420 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5421
5422 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5423
5424 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5425
5426 if test $ac_cv_header_minix_config_h = yes
5427 then :
5428 MINIX=yes
5429 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5430
5431 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5432
5433 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5434
5435 else $as_nop
5436 MINIX=
5437 fi
5438 if test $ac_cv_safe_to_define___extensions__ = yes
5439 then :
5440 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5441
5442 fi
5443 if test $ac_cv_should_define__xopen_source = yes
5444 then :
5445 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5446
5447 fi
5448
5449
5450 #
5451 # Compiler compatibility flags
5452 #
5453 ac_ext=c
5454 ac_cpp='$CPP $CPPFLAGS'
5455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458 if test -n "$ac_tool_prefix"; then
5459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 printf %s "checking for $ac_word... " >&6; }
5463 if test ${ac_cv_prog_CC+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else $as_nop
5467 if test -n "$CC"; then
5468 ac_cv_prog_CC="$CC" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 case $as_dir in #(((
5475 '') as_dir=./ ;;
5476 */) ;;
5477 *) as_dir=$as_dir/ ;;
5478 esac
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 CC=$ac_cv_prog_CC
5492 if test -n "$CC"; then
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5494 printf "%s\n" "$CC" >&6; }
5495 else
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 printf "%s\n" "no" >&6; }
5498 fi
5499
5500
5501 fi
5502 if test -z "$ac_cv_prog_CC"; then
5503 ac_ct_CC=$CC
5504 # Extract the first word of "gcc", so it can be a program name with args.
5505 set dummy gcc; ac_word=$2
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 printf %s "checking for $ac_word... " >&6; }
5508 if test ${ac_cv_prog_ac_ct_CC+y}
5509 then :
5510 printf %s "(cached) " >&6
5511 else $as_nop
5512 if test -n "$ac_ct_CC"; then
5513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 case $as_dir in #(((
5520 '') as_dir=./ ;;
5521 */) ;;
5522 *) as_dir=$as_dir/ ;;
5523 esac
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_ac_ct_CC="gcc"
5527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5537 if test -n "$ac_ct_CC"; then
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5539 printf "%s\n" "$ac_ct_CC" >&6; }
5540 else
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 printf "%s\n" "no" >&6; }
5543 fi
5544
5545 if test "x$ac_ct_CC" = x; then
5546 CC=""
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549 yes:)
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned=yes ;;
5553 esac
5554 CC=$ac_ct_CC
5555 fi
5556 else
5557 CC="$ac_cv_prog_CC"
5558 fi
5559
5560 if test -z "$CC"; then
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}cc; ac_word=$2
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 printf %s "checking for $ac_word... " >&6; }
5566 if test ${ac_cv_prog_CC+y}
5567 then :
5568 printf %s "(cached) " >&6
5569 else $as_nop
5570 if test -n "$CC"; then
5571 ac_cv_prog_CC="$CC" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576 IFS=$as_save_IFS
5577 case $as_dir in #(((
5578 '') as_dir=./ ;;
5579 */) ;;
5580 *) as_dir=$as_dir/ ;;
5581 esac
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_CC="${ac_tool_prefix}cc"
5585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 CC=$ac_cv_prog_CC
5595 if test -n "$CC"; then
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5597 printf "%s\n" "$CC" >&6; }
5598 else
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 printf "%s\n" "no" >&6; }
5601 fi
5602
5603
5604 fi
5605 fi
5606 if test -z "$CC"; then
5607 # Extract the first word of "cc", so it can be a program name with args.
5608 set dummy cc; ac_word=$2
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 printf %s "checking for $ac_word... " >&6; }
5611 if test ${ac_cv_prog_CC+y}
5612 then :
5613 printf %s "(cached) " >&6
5614 else $as_nop
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617 else
5618 ac_prog_rejected=no
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 case $as_dir in #(((
5624 '') as_dir=./ ;;
5625 */) ;;
5626 *) as_dir=$as_dir/ ;;
5627 esac
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5630 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5631 ac_prog_rejected=yes
5632 continue
5633 fi
5634 ac_cv_prog_CC="cc"
5635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 if test $ac_prog_rejected = yes; then
5643 # We found a bogon in the path, so make sure we never use it.
5644 set dummy $ac_cv_prog_CC
5645 shift
5646 if test $# != 0; then
5647 # We chose a different compiler from the bogus one.
5648 # However, it has the same basename, so the bogon will be chosen
5649 # first if we set CC to just the basename; use the full file name.
5650 shift
5651 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5652 fi
5653 fi
5654 fi
5655 fi
5656 CC=$ac_cv_prog_CC
5657 if test -n "$CC"; then
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5659 printf "%s\n" "$CC" >&6; }
5660 else
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 printf "%s\n" "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$CC"; then
5668 if test -n "$ac_tool_prefix"; then
5669 for ac_prog in cl.exe
5670 do
5671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 printf %s "checking for $ac_word... " >&6; }
5675 if test ${ac_cv_prog_CC+y}
5676 then :
5677 printf %s "(cached) " >&6
5678 else $as_nop
5679 if test -n "$CC"; then
5680 ac_cv_prog_CC="$CC" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685 IFS=$as_save_IFS
5686 case $as_dir in #(((
5687 '') as_dir=./ ;;
5688 */) ;;
5689 *) as_dir=$as_dir/ ;;
5690 esac
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697 done
5698 done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 CC=$ac_cv_prog_CC
5704 if test -n "$CC"; then
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706 printf "%s\n" "$CC" >&6; }
5707 else
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 printf "%s\n" "no" >&6; }
5710 fi
5711
5712
5713 test -n "$CC" && break
5714 done
5715 fi
5716 if test -z "$CC"; then
5717 ac_ct_CC=$CC
5718 for ac_prog in cl.exe
5719 do
5720 # Extract the first word of "$ac_prog", so it can be a program name with args.
5721 set dummy $ac_prog; ac_word=$2
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 printf %s "checking for $ac_word... " >&6; }
5724 if test ${ac_cv_prog_ac_ct_CC+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else $as_nop
5728 if test -n "$ac_ct_CC"; then
5729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734 IFS=$as_save_IFS
5735 case $as_dir in #(((
5736 '') as_dir=./ ;;
5737 */) ;;
5738 *) as_dir=$as_dir/ ;;
5739 esac
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_ac_ct_CC="$ac_prog"
5743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746 done
5747 done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5753 if test -n "$ac_ct_CC"; then
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5755 printf "%s\n" "$ac_ct_CC" >&6; }
5756 else
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 printf "%s\n" "no" >&6; }
5759 fi
5760
5761
5762 test -n "$ac_ct_CC" && break
5763 done
5764
5765 if test "x$ac_ct_CC" = x; then
5766 CC=""
5767 else
5768 case $cross_compiling:$ac_tool_warned in
5769 yes:)
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5772 ac_tool_warned=yes ;;
5773 esac
5774 CC=$ac_ct_CC
5775 fi
5776 fi
5777
5778 fi
5779 if test -z "$CC"; then
5780 if test -n "$ac_tool_prefix"; then
5781 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5782 set dummy ${ac_tool_prefix}clang; ac_word=$2
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 printf %s "checking for $ac_word... " >&6; }
5785 if test ${ac_cv_prog_CC+y}
5786 then :
5787 printf %s "(cached) " >&6
5788 else $as_nop
5789 if test -n "$CC"; then
5790 ac_cv_prog_CC="$CC" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795 IFS=$as_save_IFS
5796 case $as_dir in #(((
5797 '') as_dir=./ ;;
5798 */) ;;
5799 *) as_dir=$as_dir/ ;;
5800 esac
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_CC="${ac_tool_prefix}clang"
5804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 CC=$ac_cv_prog_CC
5814 if test -n "$CC"; then
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5816 printf "%s\n" "$CC" >&6; }
5817 else
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 printf "%s\n" "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_CC"; then
5825 ac_ct_CC=$CC
5826 # Extract the first word of "clang", so it can be a program name with args.
5827 set dummy clang; ac_word=$2
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 printf %s "checking for $ac_word... " >&6; }
5830 if test ${ac_cv_prog_ac_ct_CC+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else $as_nop
5834 if test -n "$ac_ct_CC"; then
5835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840 IFS=$as_save_IFS
5841 case $as_dir in #(((
5842 '') as_dir=./ ;;
5843 */) ;;
5844 *) as_dir=$as_dir/ ;;
5845 esac
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_CC="clang"
5849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5859 if test -n "$ac_ct_CC"; then
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5861 printf "%s\n" "$ac_ct_CC" >&6; }
5862 else
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 printf "%s\n" "no" >&6; }
5865 fi
5866
5867 if test "x$ac_ct_CC" = x; then
5868 CC=""
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871 yes:)
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874 ac_tool_warned=yes ;;
5875 esac
5876 CC=$ac_ct_CC
5877 fi
5878 else
5879 CC="$ac_cv_prog_CC"
5880 fi
5881
5882 fi
5883
5884
5885 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5886 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5887 as_fn_error $? "no acceptable C compiler found in \$PATH
5888 See \`config.log' for more details" "$LINENO" 5; }
5889
5890 # Provide some information about the compiler.
5891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5892 set X $ac_compile
5893 ac_compiler=$2
5894 for ac_option in --version -v -V -qversion -version; do
5895 { { ac_try="$ac_compiler $ac_option >&5"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5901 printf "%s\n" "$ac_try_echo"; } >&5
5902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5903 ac_status=$?
5904 if test -s conftest.err; then
5905 sed '10a\
5906 ... rest of stderr output deleted ...
5907 10q' conftest.err >conftest.er1
5908 cat conftest.er1 >&5
5909 fi
5910 rm -f conftest.er1 conftest.err
5911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }
5913 done
5914
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5916 printf %s "checking whether the compiler supports GNU C... " >&6; }
5917 if test ${ac_cv_c_compiler_gnu+y}
5918 then :
5919 printf %s "(cached) " >&6
5920 else $as_nop
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924 int
5925 main (void)
5926 {
5927 #ifndef __GNUC__
5928 choke me
5929 #endif
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"
5936 then :
5937 ac_compiler_gnu=yes
5938 else $as_nop
5939 ac_compiler_gnu=no
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5943
5944 fi
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5946 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948
5949 if test $ac_compiler_gnu = yes; then
5950 GCC=yes
5951 else
5952 GCC=
5953 fi
5954 ac_test_CFLAGS=${CFLAGS+y}
5955 ac_save_CFLAGS=$CFLAGS
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5957 printf %s "checking whether $CC accepts -g... " >&6; }
5958 if test ${ac_cv_prog_cc_g+y}
5959 then :
5960 printf %s "(cached) " >&6
5961 else $as_nop
5962 ac_save_c_werror_flag=$ac_c_werror_flag
5963 ac_c_werror_flag=yes
5964 ac_cv_prog_cc_g=no
5965 CFLAGS="-g"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968
5969 int
5970 main (void)
5971 {
5972
5973 ;
5974 return 0;
5975 }
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"
5978 then :
5979 ac_cv_prog_cc_g=yes
5980 else $as_nop
5981 CFLAGS=""
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984
5985 int
5986 main (void)
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"
5994 then :
5995
5996 else $as_nop
5997 ac_c_werror_flag=$ac_save_c_werror_flag
5998 CFLAGS="-g"
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001
6002 int
6003 main (void)
6004 {
6005
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"
6011 then :
6012 ac_cv_prog_cc_g=yes
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6019 ac_c_werror_flag=$ac_save_c_werror_flag
6020 fi
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6022 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6023 if test $ac_test_CFLAGS; then
6024 CFLAGS=$ac_save_CFLAGS
6025 elif test $ac_cv_prog_cc_g = yes; then
6026 if test "$GCC" = yes; then
6027 CFLAGS="-g -O2"
6028 else
6029 CFLAGS="-g"
6030 fi
6031 else
6032 if test "$GCC" = yes; then
6033 CFLAGS="-O2"
6034 else
6035 CFLAGS=
6036 fi
6037 fi
6038 ac_prog_cc_stdc=no
6039 if test x$ac_prog_cc_stdc = xno
6040 then :
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6042 printf %s "checking for $CC option to enable C11 features... " >&6; }
6043 if test ${ac_cv_prog_cc_c11+y}
6044 then :
6045 printf %s "(cached) " >&6
6046 else $as_nop
6047 ac_cv_prog_cc_c11=no
6048 ac_save_CC=$CC
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 $ac_c_conftest_c11_program
6052 _ACEOF
6053 for ac_arg in '' -std=gnu11
6054 do
6055 CC="$ac_save_CC $ac_arg"
6056 if ac_fn_c_try_compile "$LINENO"
6057 then :
6058 ac_cv_prog_cc_c11=$ac_arg
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam
6061 test "x$ac_cv_prog_cc_c11" != "xno" && break
6062 done
6063 rm -f conftest.$ac_ext
6064 CC=$ac_save_CC
6065 fi
6066
6067 if test "x$ac_cv_prog_cc_c11" = xno
6068 then :
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6070 printf "%s\n" "unsupported" >&6; }
6071 else $as_nop
6072 if test "x$ac_cv_prog_cc_c11" = x
6073 then :
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6075 printf "%s\n" "none needed" >&6; }
6076 else $as_nop
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6078 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6079 CC="$CC $ac_cv_prog_cc_c11"
6080 fi
6081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6082 ac_prog_cc_stdc=c11
6083 fi
6084 fi
6085 if test x$ac_prog_cc_stdc = xno
6086 then :
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6088 printf %s "checking for $CC option to enable C99 features... " >&6; }
6089 if test ${ac_cv_prog_cc_c99+y}
6090 then :
6091 printf %s "(cached) " >&6
6092 else $as_nop
6093 ac_cv_prog_cc_c99=no
6094 ac_save_CC=$CC
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 $ac_c_conftest_c99_program
6098 _ACEOF
6099 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6100 do
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"
6103 then :
6104 ac_cv_prog_cc_c99=$ac_arg
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam
6107 test "x$ac_cv_prog_cc_c99" != "xno" && break
6108 done
6109 rm -f conftest.$ac_ext
6110 CC=$ac_save_CC
6111 fi
6112
6113 if test "x$ac_cv_prog_cc_c99" = xno
6114 then :
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6116 printf "%s\n" "unsupported" >&6; }
6117 else $as_nop
6118 if test "x$ac_cv_prog_cc_c99" = x
6119 then :
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6121 printf "%s\n" "none needed" >&6; }
6122 else $as_nop
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6124 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6125 CC="$CC $ac_cv_prog_cc_c99"
6126 fi
6127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6128 ac_prog_cc_stdc=c99
6129 fi
6130 fi
6131 if test x$ac_prog_cc_stdc = xno
6132 then :
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6134 printf %s "checking for $CC option to enable C89 features... " >&6; }
6135 if test ${ac_cv_prog_cc_c89+y}
6136 then :
6137 printf %s "(cached) " >&6
6138 else $as_nop
6139 ac_cv_prog_cc_c89=no
6140 ac_save_CC=$CC
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 $ac_c_conftest_c89_program
6144 _ACEOF
6145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6146 do
6147 CC="$ac_save_CC $ac_arg"
6148 if ac_fn_c_try_compile "$LINENO"
6149 then :
6150 ac_cv_prog_cc_c89=$ac_arg
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.beam
6153 test "x$ac_cv_prog_cc_c89" != "xno" && break
6154 done
6155 rm -f conftest.$ac_ext
6156 CC=$ac_save_CC
6157 fi
6158
6159 if test "x$ac_cv_prog_cc_c89" = xno
6160 then :
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6162 printf "%s\n" "unsupported" >&6; }
6163 else $as_nop
6164 if test "x$ac_cv_prog_cc_c89" = x
6165 then :
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6167 printf "%s\n" "none needed" >&6; }
6168 else $as_nop
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6170 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6171 CC="$CC $ac_cv_prog_cc_c89"
6172 fi
6173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6174 ac_prog_cc_stdc=c89
6175 fi
6176 fi
6177
6178 ac_ext=c
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183
6184
6185 ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6191 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6192 if test ${am_cv_prog_cc_c_o+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198
6199 int
6200 main (void)
6201 {
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 # Make sure it works both with $CC and with simple cc.
6208 # Following AC_PROG_CC_C_O, we do the test twice because some
6209 # compilers refuse to overwrite an existing .o file with -o,
6210 # though they will create one.
6211 am_cv_prog_cc_c_o=yes
6212 for am_i in 1 2; do
6213 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6214 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } \
6218 && test -f conftest2.$ac_objext; then
6219 : OK
6220 else
6221 am_cv_prog_cc_c_o=no
6222 break
6223 fi
6224 done
6225 rm -f core conftest*
6226 unset am_i
6227 fi
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6229 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6230 if test "$am_cv_prog_cc_c_o" != yes; then
6231 # Losing compiler, so override with the script.
6232 # FIXME: It is wrong to rewrite CC.
6233 # But if we don't then we get into trouble of one sort or another.
6234 # A longer-term fix would be to have automake use am__CC in this case,
6235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6236 CC="$am_aux_dir/compile $CC"
6237 fi
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244
6245 depcc="$CC" am_compiler_list=
6246
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6248 printf %s "checking dependency style of $depcc... " >&6; }
6249 if test ${am_cv_CC_dependencies_compiler_type+y}
6250 then :
6251 printf %s "(cached) " >&6
6252 else $as_nop
6253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6254 # We make a subdir and do the tests there. Otherwise we can end up
6255 # making bogus files that we don't know about and never remove. For
6256 # instance it was reported that on HP-UX the gcc test will end up
6257 # making a dummy file named 'D' -- because '-MD' means "put the output
6258 # in D".
6259 rm -rf conftest.dir
6260 mkdir conftest.dir
6261 # Copy depcomp to subdir because otherwise we won't find it if we're
6262 # using a relative directory.
6263 cp "$am_depcomp" conftest.dir
6264 cd conftest.dir
6265 # We will build objects and dependencies in a subdirectory because
6266 # it helps to detect inapplicable dependency modes. For instance
6267 # both Tru64's cc and ICC support -MD to output dependencies as a
6268 # side effect of compilation, but ICC will put the dependencies in
6269 # the current directory while Tru64 will put them in the object
6270 # directory.
6271 mkdir sub
6272
6273 am_cv_CC_dependencies_compiler_type=none
6274 if test "$am_compiler_list" = ""; then
6275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6276 fi
6277 am__universal=false
6278 case " $depcc " in #(
6279 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6280 esac
6281
6282 for depmode in $am_compiler_list; do
6283 # Setup a source with many dependencies, because some compilers
6284 # like to wrap large dependency lists on column 80 (with \), and
6285 # we should not choose a depcomp mode which is confused by this.
6286 #
6287 # We need to recreate these files for each test, as the compiler may
6288 # overwrite some of them when testing with obscure command lines.
6289 # This happens at least with the AIX C compiler.
6290 : > sub/conftest.c
6291 for i in 1 2 3 4 5 6; do
6292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6293 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6294 # Solaris 10 /bin/sh.
6295 echo '/* dummy */' > sub/conftst$i.h
6296 done
6297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6298
6299 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6300 # mode. It turns out that the SunPro C++ compiler does not properly
6301 # handle '-M -o', and we need to detect this. Also, some Intel
6302 # versions had trouble with output in subdirs.
6303 am__obj=sub/conftest.${OBJEXT-o}
6304 am__minus_obj="-o $am__obj"
6305 case $depmode in
6306 gcc)
6307 # This depmode causes a compiler race in universal mode.
6308 test "$am__universal" = false || continue
6309 ;;
6310 nosideeffect)
6311 # After this tag, mechanisms are not by side-effect, so they'll
6312 # only be used when explicitly requested.
6313 if test "x$enable_dependency_tracking" = xyes; then
6314 continue
6315 else
6316 break
6317 fi
6318 ;;
6319 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6320 # This compiler won't grok '-c -o', but also, the minuso test has
6321 # not run yet. These depmodes are late enough in the game, and
6322 # so weak that their functioning should not be impacted.
6323 am__obj=conftest.${OBJEXT-o}
6324 am__minus_obj=
6325 ;;
6326 none) break ;;
6327 esac
6328 if depmode=$depmode \
6329 source=sub/conftest.c object=$am__obj \
6330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6332 >/dev/null 2>conftest.err &&
6333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6337 # icc doesn't choke on unknown options, it will just issue warnings
6338 # or remarks (even with -Werror). So we grep stderr for any message
6339 # that says an option was ignored or not supported.
6340 # When given -MP, icc 7.0 and 7.1 complain thusly:
6341 # icc: Command line warning: ignoring option '-M'; no argument required
6342 # The diagnosis changed in icc 8.0:
6343 # icc: Command line remark: option '-MP' not supported
6344 if (grep 'ignoring option' conftest.err ||
6345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6346 am_cv_CC_dependencies_compiler_type=$depmode
6347 break
6348 fi
6349 fi
6350 done
6351
6352 cd ..
6353 rm -rf conftest.dir
6354 else
6355 am_cv_CC_dependencies_compiler_type=none
6356 fi
6357
6358 fi
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6360 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6361 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6362
6363 if
6364 test "x$enable_dependency_tracking" != xno \
6365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6366 am__fastdepCC_TRUE=
6367 am__fastdepCC_FALSE='#'
6368 else
6369 am__fastdepCC_TRUE='#'
6370 am__fastdepCC_FALSE=
6371 fi
6372
6373
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6380 printf %s "checking how to run the C preprocessor... " >&6; }
6381 # On Suns, sometimes $CPP names a directory.
6382 if test -n "$CPP" && test -d "$CPP"; then
6383 CPP=
6384 fi
6385 if test -z "$CPP"; then
6386 if test ${ac_cv_prog_CPP+y}
6387 then :
6388 printf %s "(cached) " >&6
6389 else $as_nop
6390 # Double quotes because $CC needs to be expanded
6391 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6392 do
6393 ac_preproc_ok=false
6394 for ac_c_preproc_warn_flag in '' yes
6395 do
6396 # Use a header file that comes with gcc, so configuring glibc
6397 # with a fresh cross-compiler works.
6398 # On the NeXT, cc -E runs the code through the compiler's parser,
6399 # not just through cpp. "Syntax error" is here to catch this case.
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include <limits.h>
6403 Syntax error
6404 _ACEOF
6405 if ac_fn_c_try_cpp "$LINENO"
6406 then :
6407
6408 else $as_nop
6409 # Broken: fails on valid input.
6410 continue
6411 fi
6412 rm -f conftest.err conftest.i conftest.$ac_ext
6413
6414 # OK, works on sane cases. Now check whether nonexistent headers
6415 # can be detected and how.
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 #include <ac_nonexistent.h>
6419 _ACEOF
6420 if ac_fn_c_try_cpp "$LINENO"
6421 then :
6422 # Broken: success on invalid input.
6423 continue
6424 else $as_nop
6425 # Passes both tests.
6426 ac_preproc_ok=:
6427 break
6428 fi
6429 rm -f conftest.err conftest.i conftest.$ac_ext
6430
6431 done
6432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6433 rm -f conftest.i conftest.err conftest.$ac_ext
6434 if $ac_preproc_ok
6435 then :
6436 break
6437 fi
6438
6439 done
6440 ac_cv_prog_CPP=$CPP
6441
6442 fi
6443 CPP=$ac_cv_prog_CPP
6444 else
6445 ac_cv_prog_CPP=$CPP
6446 fi
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6448 printf "%s\n" "$CPP" >&6; }
6449 ac_preproc_ok=false
6450 for ac_c_preproc_warn_flag in '' yes
6451 do
6452 # Use a header file that comes with gcc, so configuring glibc
6453 # with a fresh cross-compiler works.
6454 # On the NeXT, cc -E runs the code through the compiler's parser,
6455 # not just through cpp. "Syntax error" is here to catch this case.
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 #include <limits.h>
6459 Syntax error
6460 _ACEOF
6461 if ac_fn_c_try_cpp "$LINENO"
6462 then :
6463
6464 else $as_nop
6465 # Broken: fails on valid input.
6466 continue
6467 fi
6468 rm -f conftest.err conftest.i conftest.$ac_ext
6469
6470 # OK, works on sane cases. Now check whether nonexistent headers
6471 # can be detected and how.
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 #include <ac_nonexistent.h>
6475 _ACEOF
6476 if ac_fn_c_try_cpp "$LINENO"
6477 then :
6478 # Broken: success on invalid input.
6479 continue
6480 else $as_nop
6481 # Passes both tests.
6482 ac_preproc_ok=:
6483 break
6484 fi
6485 rm -f conftest.err conftest.i conftest.$ac_ext
6486
6487 done
6488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6489 rm -f conftest.i conftest.err conftest.$ac_ext
6490 if $ac_preproc_ok
6491 then :
6492
6493 else $as_nop
6494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6495 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6496 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6497 See \`config.log' for more details" "$LINENO" 5; }
6498 fi
6499
6500 ac_ext=c
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506 ac_c_preproc_warn_flag=yes
6507
6508 #
6509 # Find build compiler when cross compiling
6510 #
6511
6512
6513 cross_compiling_build=no
6514
6515 ac_build_tool_prefix=
6516 if test -n "$build"
6517 then :
6518 ac_build_tool_prefix="$build-"
6519 elif test -n "$build_alias"
6520 then :
6521 ac_build_tool_prefix="$build_alias-"
6522 fi
6523
6524 ac_ext=c
6525 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6526 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6527 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6528 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6529
6530
6531 was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
6532 if test ${was_set_c_compiler_gnu}
6533 then :
6534 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
6535 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
6536 fi
6537
6538 ac_ext=c
6539 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6540 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6541 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6543 if test -n "$ac_build_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6545 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 printf %s "checking for $ac_word... " >&6; }
6548 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6549 then :
6550 printf %s "(cached) " >&6
6551 else $as_nop
6552 if test -n "$CC_FOR_BUILD"; then
6553 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558 IFS=$as_save_IFS
6559 case $as_dir in #(((
6560 '') as_dir=./ ;;
6561 */) ;;
6562 *) as_dir=$as_dir/ ;;
6563 esac
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
6567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6577 if test -n "$CC_FOR_BUILD"; then
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6579 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6580 else
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 printf "%s\n" "no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6588 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6589 # Extract the first word of "gcc", so it can be a program name with args.
6590 set dummy gcc; ac_word=$2
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 printf %s "checking for $ac_word... " >&6; }
6593 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6594 then :
6595 printf %s "(cached) " >&6
6596 else $as_nop
6597 if test -n "$ac_ct_CC_FOR_BUILD"; then
6598 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 case $as_dir in #(((
6605 '') as_dir=./ ;;
6606 */) ;;
6607 *) as_dir=$as_dir/ ;;
6608 esac
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
6612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6622 if test -n "$ac_ct_CC_FOR_BUILD"; then
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6624 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6625 else
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 printf "%s\n" "no" >&6; }
6628 fi
6629
6630 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6631 CC_FOR_BUILD=""
6632 else
6633 case $cross_compiling_build:$ac_tool_warned in
6634 yes:)
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6640 fi
6641 else
6642 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6643 fi
6644
6645 if test -z "$CC_FOR_BUILD"; then
6646 if test -n "$ac_build_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6648 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 printf %s "checking for $ac_word... " >&6; }
6651 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6652 then :
6653 printf %s "(cached) " >&6
6654 else $as_nop
6655 if test -n "$CC_FOR_BUILD"; then
6656 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 case $as_dir in #(((
6663 '') as_dir=./ ;;
6664 */) ;;
6665 *) as_dir=$as_dir/ ;;
6666 esac
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
6670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6680 if test -n "$CC_FOR_BUILD"; then
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6682 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6683 else
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 printf "%s\n" "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 fi
6691 if test -z "$CC_FOR_BUILD"; then
6692 # Extract the first word of "cc", so it can be a program name with args.
6693 set dummy cc; ac_word=$2
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 printf %s "checking for $ac_word... " >&6; }
6696 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6697 then :
6698 printf %s "(cached) " >&6
6699 else $as_nop
6700 if test -n "$CC_FOR_BUILD"; then
6701 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6702 else
6703 ac_prog_rejected=no
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 case $as_dir in #(((
6709 '') as_dir=./ ;;
6710 */) ;;
6711 *) as_dir=$as_dir/ ;;
6712 esac
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6715 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6716 ac_prog_rejected=yes
6717 continue
6718 fi
6719 ac_cv_prog_CC_FOR_BUILD="cc"
6720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 if test $ac_prog_rejected = yes; then
6728 # We found a bogon in the path, so make sure we never use it.
6729 set dummy $ac_cv_prog_CC_FOR_BUILD
6730 shift
6731 if test $# != 0; then
6732 # We chose a different compiler from the bogus one.
6733 # However, it has the same basename, so the bogon will be chosen
6734 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
6735 shift
6736 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
6737 fi
6738 fi
6739 fi
6740 fi
6741 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6742 if test -n "$CC_FOR_BUILD"; then
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6744 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6745 else
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 printf "%s\n" "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$CC_FOR_BUILD"; then
6753 if test -n "$ac_build_tool_prefix"; then
6754 for ac_prog in cl.exe
6755 do
6756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6757 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 printf %s "checking for $ac_word... " >&6; }
6760 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6761 then :
6762 printf %s "(cached) " >&6
6763 else $as_nop
6764 if test -n "$CC_FOR_BUILD"; then
6765 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 case $as_dir in #(((
6772 '') as_dir=./ ;;
6773 */) ;;
6774 *) as_dir=$as_dir/ ;;
6775 esac
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6789 if test -n "$CC_FOR_BUILD"; then
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6791 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6792 else
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 printf "%s\n" "no" >&6; }
6795 fi
6796
6797
6798 test -n "$CC_FOR_BUILD" && break
6799 done
6800 fi
6801 if test -z "$CC_FOR_BUILD"; then
6802 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6803 for ac_prog in cl.exe
6804 do
6805 # Extract the first word of "$ac_prog", so it can be a program name with args.
6806 set dummy $ac_prog; ac_word=$2
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 printf %s "checking for $ac_word... " >&6; }
6809 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6810 then :
6811 printf %s "(cached) " >&6
6812 else $as_nop
6813 if test -n "$ac_ct_CC_FOR_BUILD"; then
6814 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 case $as_dir in #(((
6821 '') as_dir=./ ;;
6822 */) ;;
6823 *) as_dir=$as_dir/ ;;
6824 esac
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6838 if test -n "$ac_ct_CC_FOR_BUILD"; then
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6840 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6841 else
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 printf "%s\n" "no" >&6; }
6844 fi
6845
6846
6847 test -n "$ac_ct_CC_FOR_BUILD" && break
6848 done
6849
6850 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6851 CC_FOR_BUILD=""
6852 else
6853 case $cross_compiling_build:$ac_tool_warned in
6854 yes:)
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6860 fi
6861 fi
6862
6863 fi
6864 if test -z "$CC_FOR_BUILD"; then
6865 if test -n "$ac_build_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6867 set dummy ${ac_build_tool_prefix}clang; ac_word=$2
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 printf %s "checking for $ac_word... " >&6; }
6870 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6871 then :
6872 printf %s "(cached) " >&6
6873 else $as_nop
6874 if test -n "$CC_FOR_BUILD"; then
6875 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 case $as_dir in #(((
6882 '') as_dir=./ ;;
6883 */) ;;
6884 *) as_dir=$as_dir/ ;;
6885 esac
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6899 if test -n "$CC_FOR_BUILD"; then
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6901 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6902 else
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 printf "%s\n" "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6910 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6911 # Extract the first word of "clang", so it can be a program name with args.
6912 set dummy clang; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else $as_nop
6919 if test -n "$ac_ct_CC_FOR_BUILD"; then
6920 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 case $as_dir in #(((
6927 '') as_dir=./ ;;
6928 */) ;;
6929 *) as_dir=$as_dir/ ;;
6930 esac
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6944 if test -n "$ac_ct_CC_FOR_BUILD"; then
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6946 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6947 else
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 printf "%s\n" "no" >&6; }
6950 fi
6951
6952 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6953 CC_FOR_BUILD=""
6954 else
6955 case $cross_compiling_build:$ac_tool_warned in
6956 yes:)
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6962 fi
6963 else
6964 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6965 fi
6966
6967 fi
6968
6969
6970 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6971 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6972 as_fn_error $? "no acceptable C compiler found in \$PATH
6973 See \`config.log' for more details" "$LINENO" 5; }
6974
6975 # Provide some information about the compiler.
6976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6977 set X $ac_compile
6978 ac_compiler=$2
6979 for ac_option in --version -v -V -qversion -version; do
6980 { { ac_try="$ac_compiler $ac_option >&5"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6986 printf "%s\n" "$ac_try_echo"; } >&5
6987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6988 ac_status=$?
6989 if test -s conftest.err; then
6990 sed '10a\
6991 ... rest of stderr output deleted ...
6992 10q' conftest.err >conftest.er1
6993 cat conftest.er1 >&5
6994 fi
6995 rm -f conftest.er1 conftest.err
6996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997 test $ac_status = 0; }
6998 done
6999
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
7001 printf %s "checking whether the compiler supports GNU C... " >&6; }
7002 if test ${ac_cv_c_compiler_gnu+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else $as_nop
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008
7009 int
7010 main (void)
7011 {
7012 #ifndef __GNUC__
7013 choke me
7014 #endif
7015
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_compile "$LINENO"
7021 then :
7022 ac_compiler_gnu=yes
7023 else $as_nop
7024 ac_compiler_gnu=no
7025 fi
7026 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7027 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7028
7029 fi
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7031 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033
7034 if test $ac_compiler_gnu = yes; then
7035 GCC_FOR_BUILD=yes
7036 else
7037 GCC_FOR_BUILD=
7038 fi
7039 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
7040 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
7042 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
7043 if test ${ac_cv_build_prog_cc_g+y}
7044 then :
7045 printf %s "(cached) " >&6
7046 else $as_nop
7047 ac_save_c_werror_flag=$ac_c_werror_flag
7048 ac_c_werror_flag=yes
7049 ac_cv_build_prog_cc_g=no
7050 CFLAGS_FOR_BUILD="-g"
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053
7054 int
7055 main (void)
7056 {
7057
7058 ;
7059 return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_compile "$LINENO"
7063 then :
7064 ac_cv_build_prog_cc_g=yes
7065 else $as_nop
7066 CFLAGS_FOR_BUILD=""
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069
7070 int
7071 main (void)
7072 {
7073
7074 ;
7075 return 0;
7076 }
7077 _ACEOF
7078 if ac_fn_c_try_compile "$LINENO"
7079 then :
7080
7081 else $as_nop
7082 ac_c_werror_flag=$ac_save_c_werror_flag
7083 CFLAGS_FOR_BUILD="-g"
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086
7087 int
7088 main (void)
7089 {
7090
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"
7096 then :
7097 ac_cv_build_prog_cc_g=yes
7098 fi
7099 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7100 fi
7101 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7102 fi
7103 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7104 ac_c_werror_flag=$ac_save_c_werror_flag
7105 fi
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
7107 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
7108 if test $ac_test_CFLAGS; then
7109 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
7110 elif test $ac_cv_build_prog_cc_g = yes; then
7111 if test "$GCC_FOR_BUILD" = yes; then
7112 CFLAGS_FOR_BUILD="-g -O2"
7113 else
7114 CFLAGS_FOR_BUILD="-g"
7115 fi
7116 else
7117 if test "$GCC_FOR_BUILD" = yes; then
7118 CFLAGS_FOR_BUILD="-O2"
7119 else
7120 CFLAGS_FOR_BUILD=
7121 fi
7122 fi
7123 ac_prog_cc_stdc=no
7124 if test x$ac_prog_cc_stdc = xno
7125 then :
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
7127 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
7128 if test ${ac_cv_build_prog_cc_c11+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else $as_nop
7132 ac_cv_build_prog_cc_c11=no
7133 ac_save_CC=$CC_FOR_BUILD
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 $ac_c_conftest_c11_program
7137 _ACEOF
7138 for ac_arg in '' -std=gnu11
7139 do
7140 CC_FOR_BUILD="$ac_save_CC $ac_arg"
7141 if ac_fn_c_try_compile "$LINENO"
7142 then :
7143 ac_cv_build_prog_cc_c11=$ac_arg
7144 fi
7145 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7146 test "x$ac_cv_build_prog_cc_c11" != "xno" && break
7147 done
7148 rm -f conftest.$ac_ext
7149 CC_FOR_BUILD=$ac_save_CC
7150 fi
7151
7152 if test "x$ac_cv_build_prog_cc_c11" = xno
7153 then :
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7155 printf "%s\n" "unsupported" >&6; }
7156 else $as_nop
7157 if test "x$ac_cv_build_prog_cc_c11" = x
7158 then :
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7160 printf "%s\n" "none needed" >&6; }
7161 else $as_nop
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5
7163 printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; }
7164 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11"
7165 fi
7166 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11
7167 ac_prog_cc_stdc=c11
7168 fi
7169 fi
7170 if test x$ac_prog_cc_stdc = xno
7171 then :
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
7173 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
7174 if test ${ac_cv_build_prog_cc_c99+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else $as_nop
7178 ac_cv_build_prog_cc_c99=no
7179 ac_save_CC=$CC_FOR_BUILD
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 $ac_c_conftest_c99_program
7183 _ACEOF
7184 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
7185 do
7186 CC_FOR_BUILD="$ac_save_CC $ac_arg"
7187 if ac_fn_c_try_compile "$LINENO"
7188 then :
7189 ac_cv_build_prog_cc_c99=$ac_arg
7190 fi
7191 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7192 test "x$ac_cv_build_prog_cc_c99" != "xno" && break
7193 done
7194 rm -f conftest.$ac_ext
7195 CC_FOR_BUILD=$ac_save_CC
7196 fi
7197
7198 if test "x$ac_cv_build_prog_cc_c99" = xno
7199 then :
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7201 printf "%s\n" "unsupported" >&6; }
7202 else $as_nop
7203 if test "x$ac_cv_build_prog_cc_c99" = x
7204 then :
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7206 printf "%s\n" "none needed" >&6; }
7207 else $as_nop
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
7209 printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; }
7210 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99"
7211 fi
7212 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
7213 ac_prog_cc_stdc=c99
7214 fi
7215 fi
7216 if test x$ac_prog_cc_stdc = xno
7217 then :
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
7219 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
7220 if test ${ac_cv_build_prog_cc_c89+y}
7221 then :
7222 printf %s "(cached) " >&6
7223 else $as_nop
7224 ac_cv_build_prog_cc_c89=no
7225 ac_save_CC=$CC_FOR_BUILD
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 $ac_c_conftest_c89_program
7229 _ACEOF
7230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7231 do
7232 CC_FOR_BUILD="$ac_save_CC $ac_arg"
7233 if ac_fn_c_try_compile "$LINENO"
7234 then :
7235 ac_cv_build_prog_cc_c89=$ac_arg
7236 fi
7237 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7238 test "x$ac_cv_build_prog_cc_c89" != "xno" && break
7239 done
7240 rm -f conftest.$ac_ext
7241 CC_FOR_BUILD=$ac_save_CC
7242 fi
7243
7244 if test "x$ac_cv_build_prog_cc_c89" = xno
7245 then :
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7247 printf "%s\n" "unsupported" >&6; }
7248 else $as_nop
7249 if test "x$ac_cv_build_prog_cc_c89" = x
7250 then :
7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7252 printf "%s\n" "none needed" >&6; }
7253 else $as_nop
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
7255 printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
7256 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
7257 fi
7258 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
7259 ac_prog_cc_stdc=c89
7260 fi
7261 fi
7262
7263 ac_ext=c
7264 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7265 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7266 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7268
7269
7270 ac_ext=c
7271 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7272 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7273 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
7276 printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
7277 if test ${am_cv_build_prog_cc_c_o+y}
7278 then :
7279 printf %s "(cached) " >&6
7280 else $as_nop
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283
7284 int
7285 main (void)
7286 {
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 # Make sure it works both with $CC and with simple cc.
7293 # Following AC_PROG_CC_C_O, we do the test twice because some
7294 # compilers refuse to overwrite an existing .o file with -o,
7295 # though they will create one.
7296 am_cv_build_prog_cc_c_o=yes
7297 for am_i in 1 2; do
7298 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
7299 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } \
7303 && test -f conftest2.$ac_build_objext; then
7304 : OK
7305 else
7306 am_cv_build_prog_cc_c_o=no
7307 break
7308 fi
7309 done
7310 rm -f core conftest*
7311 unset am_i
7312 fi
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
7314 printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; }
7315 if test "$am_cv_build_prog_cc_c_o" != yes; then
7316 # Losing compiler, so override with the script.
7317 # FIXME: It is wrong to rewrite CC.
7318 # But if we don't then we get into trouble of one sort or another.
7319 # A longer-term fix would be to have automake use am__CC in this case,
7320 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7321 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
7322 fi
7323 ac_ext=c
7324 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7325 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7326 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7328
7329
7330 depcc="$CC_FOR_BUILD" am_compiler_list=
7331
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7333 printf %s "checking dependency style of $depcc... " >&6; }
7334 if test ${am_cv_build_CC_dependencies_compiler_type+y}
7335 then :
7336 printf %s "(cached) " >&6
7337 else $as_nop
7338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7339 # We make a subdir and do the tests there. Otherwise we can end up
7340 # making bogus files that we don't know about and never remove. For
7341 # instance it was reported that on HP-UX the gcc test will end up
7342 # making a dummy file named 'D' -- because '-MD' means "put the output
7343 # in D".
7344 rm -rf conftest.dir
7345 mkdir conftest.dir
7346 # Copy depcomp to subdir because otherwise we won't find it if we're
7347 # using a relative directory.
7348 cp "$am_depcomp" conftest.dir
7349 cd conftest.dir
7350 # We will build objects and dependencies in a subdirectory because
7351 # it helps to detect inapplicable dependency modes. For instance
7352 # both Tru64's cc and ICC support -MD to output dependencies as a
7353 # side effect of compilation, but ICC will put the dependencies in
7354 # the current directory while Tru64 will put them in the object
7355 # directory.
7356 mkdir sub
7357
7358 am_cv_build_CC_dependencies_compiler_type=none
7359 if test "$am_compiler_list" = ""; then
7360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7361 fi
7362 am__universal=false
7363 case " $depcc " in #(
7364 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7365 esac
7366
7367 for depmode in $am_compiler_list; do
7368 # Setup a source with many dependencies, because some compilers
7369 # like to wrap large dependency lists on column 80 (with \), and
7370 # we should not choose a depcomp mode which is confused by this.
7371 #
7372 # We need to recreate these files for each test, as the compiler may
7373 # overwrite some of them when testing with obscure command lines.
7374 # This happens at least with the AIX C compiler.
7375 : > sub/conftest.c
7376 for i in 1 2 3 4 5 6; do
7377 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7378 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7379 # Solaris 10 /bin/sh.
7380 echo '/* dummy */' > sub/conftst$i.h
7381 done
7382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7383
7384 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7385 # mode. It turns out that the SunPro C++ compiler does not properly
7386 # handle '-M -o', and we need to detect this. Also, some Intel
7387 # versions had trouble with output in subdirs.
7388 am__obj=sub/conftest.${BUILD_OBJEXT-o}
7389 am__minus_obj="-o $am__obj"
7390 case $depmode in
7391 gcc)
7392 # This depmode causes a compiler race in universal mode.
7393 test "$am__universal" = false || continue
7394 ;;
7395 nosideeffect)
7396 # After this tag, mechanisms are not by side-effect, so they'll
7397 # only be used when explicitly requested.
7398 if test "x$enable_dependency_tracking" = xyes; then
7399 continue
7400 else
7401 break
7402 fi
7403 ;;
7404 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7405 # This compiler won't grok '-c -o', but also, the minuso test has
7406 # not run yet. These depmodes are late enough in the game, and
7407 # so weak that their functioning should not be impacted.
7408 am__obj=conftest.${BUILD_OBJEXT-o}
7409 am__minus_obj=
7410 ;;
7411 none) break ;;
7412 esac
7413 if depmode=$depmode \
7414 source=sub/conftest.c object=$am__obj \
7415 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7416 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7417 >/dev/null 2>conftest.err &&
7418 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7419 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7420 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7421 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7422 # icc doesn't choke on unknown options, it will just issue warnings
7423 # or remarks (even with -Werror). So we grep stderr for any message
7424 # that says an option was ignored or not supported.
7425 # When given -MP, icc 7.0 and 7.1 complain thusly:
7426 # icc: Command line warning: ignoring option '-M'; no argument required
7427 # The diagnosis changed in icc 8.0:
7428 # icc: Command line remark: option '-MP' not supported
7429 if (grep 'ignoring option' conftest.err ||
7430 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7431 am_cv_build_CC_dependencies_compiler_type=$depmode
7432 break
7433 fi
7434 fi
7435 done
7436
7437 cd ..
7438 rm -rf conftest.dir
7439 else
7440 am_cv_build_CC_dependencies_compiler_type=none
7441 fi
7442
7443 fi
7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
7445 printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; }
7446 CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
7447
7448 if
7449 test "x$enable_dependency_tracking" != xno \
7450 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
7451 am__fastdepCC_TRUE=
7452 am__fastdepCC_FALSE='#'
7453 else
7454 am__fastdepCC_TRUE='#'
7455 am__fastdepCC_FALSE=
7456 fi
7457
7458
7459
7460 if test ${was_set_c_compiler_gnu}
7461 then :
7462 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
7463 fi
7464
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467
7468 int
7469 main (void)
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 ac_clean_files_save=$ac_clean_files
7477 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7478 # Try to create an executable without -o first, disregard a.out.
7479 # It will help us diagnose broken compilers, and finding out an intuition
7480 # of exeext.
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7482 printf %s "checking whether the C compiler works... " >&6; }
7483 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7484
7485 # The possible output files:
7486 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
7487
7488 ac_rmfiles=
7489 for ac_file in $ac_files
7490 do
7491 case $ac_file in
7492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7493 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
7494 esac
7495 done
7496 rm -f $ac_rmfiles
7497
7498 if { { ac_try="$ac_link_default"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7504 printf "%s\n" "$ac_try_echo"; } >&5
7505 (eval "$ac_link_default") 2>&5
7506 ac_status=$?
7507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }
7509 then :
7510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
7511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
7512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
7513 # so that the user can short-circuit this test for compilers unknown to
7514 # Autoconf.
7515 for ac_file in $ac_files ''
7516 do
7517 test -f "$ac_file" || continue
7518 case $ac_file in
7519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
7520 ;;
7521 [ab].out )
7522 # We found the default executable, but exeext='' is most
7523 # certainly right.
7524 break;;
7525 *.* )
7526 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
7527 then :; else
7528 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7529 fi
7530 # We set ac_cv_exeext here because the later test for it is not
7531 # safe: cross compilers may not add the suffix if given an `-o'
7532 # argument, so we may need to know it at that point already.
7533 # Even if this section looks crufty: it has the advantage of
7534 # actually working.
7535 break;;
7536 * )
7537 break;;
7538 esac
7539 done
7540 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
7541
7542 else $as_nop
7543 ac_file=''
7544 fi
7545 if test -z "$ac_file"
7546 then :
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 printf "%s\n" "no" >&6; }
7549 printf "%s\n" "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7553 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7554 as_fn_error 77 "C compiler cannot create executables
7555 See \`config.log' for more details" "$LINENO" 5; }
7556 else $as_nop
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7558 printf "%s\n" "yes" >&6; }
7559 fi
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
7561 printf %s "checking for C compiler default output file name... " >&6; }
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
7563 printf "%s\n" "$ac_file" >&6; }
7564 ac_build_exeext=$ac_cv_build_exeext
7565
7566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
7567 ac_clean_files=$ac_clean_files_save
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7569 printf %s "checking for suffix of executables... " >&6; }
7570 if { { ac_try="$ac_link"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7576 printf "%s\n" "$ac_try_echo"; } >&5
7577 (eval "$ac_link") 2>&5
7578 ac_status=$?
7579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; }
7581 then :
7582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
7583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
7584 # work properly (i.e., refer to `conftest.exe'), while it won't with
7585 # `rm'.
7586 for ac_file in conftest.exe conftest conftest.*; do
7587 test -f "$ac_file" || continue
7588 case $ac_file in
7589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7590 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7591 break;;
7592 * ) break;;
7593 esac
7594 done
7595 else $as_nop
7596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
7599 See \`config.log' for more details" "$LINENO" 5; }
7600 fi
7601 rm -f conftest conftest$ac_cv_build_exeext
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
7603 printf "%s\n" "$ac_cv_build_exeext" >&6; }
7604
7605 rm -f conftest.$ac_ext
7606 EXEEXT=$ac_cv_build_exeext
7607 ac_build_exeext=$BUILD_EXEEXT
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 #include <stdio.h>
7611 int
7612 main (void)
7613 {
7614 FILE *f = fopen ("conftest.out", "w");
7615 return ferror (f) || fclose (f) != 0;
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 ac_clean_files="$ac_clean_files conftest.out"
7622 # Check that the compiler produces executables we can run. If not, either
7623 # the compiler is broken, or we cross compile.
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7625 printf %s "checking whether we are cross compiling... " >&6; }
7626 if test "$cross_compiling_build" != yes; then
7627 { { ac_try="$ac_link"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7633 printf "%s\n" "$ac_try_echo"; } >&5
7634 (eval "$ac_link") 2>&5
7635 ac_status=$?
7636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }
7638 if { ac_try='./conftest$ac_cv_build_exeext'
7639 { { case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642 esac
7643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7644 printf "%s\n" "$ac_try_echo"; } >&5
7645 (eval "$ac_try") 2>&5
7646 ac_status=$?
7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648 test $ac_status = 0; }; }; then
7649 cross_compiling_build=no
7650 else
7651 if test "$cross_compiling_build" = maybe; then
7652 cross_compiling_build=yes
7653 else
7654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7655 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7656 as_fn_error 77 "cannot run C compiled programs.
7657 If you meant to cross compile, use \`--build'.
7658 See \`config.log' for more details" "$LINENO" 5; }
7659 fi
7660 fi
7661 fi
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
7663 printf "%s\n" "$cross_compiling_build" >&6; }
7664
7665 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
7666 ac_clean_files=$ac_clean_files_save
7667
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7669 printf %s "checking for suffix of object files... " >&6; }
7670 if test ${ac_cv_build_objext+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else $as_nop
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676
7677 int
7678 main (void)
7679 {
7680
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.o conftest.obj
7686 if { { ac_try="$ac_compile"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7692 printf "%s\n" "$ac_try_echo"; } >&5
7693 (eval "$ac_compile") 2>&5
7694 ac_status=$?
7695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }
7697 then :
7698 for ac_file in conftest.o conftest.obj conftest.*; do
7699 test -f "$ac_file" || continue;
7700 case $ac_file in
7701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7702 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7703 break;;
7704 esac
7705 done
7706 else $as_nop
7707 printf "%s\n" "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7711 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7712 as_fn_error $? "cannot compute suffix of object files: cannot compile
7713 See \`config.log' for more details" "$LINENO" 5; }
7714 fi
7715 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
7716 fi
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
7718 printf "%s\n" "$ac_cv_build_objext" >&6; }
7719 OBJEXT=$ac_cv_build_objext
7720 ac_build_objext=$BUILD_OBJEXT
7721
7722 ac_ext=c
7723 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7724 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7725 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7728 printf %s "checking how to run the C preprocessor... " >&6; }
7729 # On Suns, sometimes $CPP names a directory.
7730 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
7731 CPP_FOR_BUILD=
7732 fi
7733 if test -z "$CPP_FOR_BUILD"; then
7734 if test ${ac_cv_build_prog_CPP+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else $as_nop
7738 # Double quotes because $CC needs to be expanded
7739 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
7740 do
7741 ac_preproc_ok=false
7742 for ac_c_preproc_warn_flag in '' yes
7743 do
7744 # Use a header file that comes with gcc, so configuring glibc
7745 # with a fresh cross-compiler works.
7746 # On the NeXT, cc -E runs the code through the compiler's parser,
7747 # not just through cpp. "Syntax error" is here to catch this case.
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 #include <limits.h>
7751 Syntax error
7752 _ACEOF
7753 if ac_fn_c_try_cpp "$LINENO"
7754 then :
7755
7756 else $as_nop
7757 # Broken: fails on valid input.
7758 continue
7759 fi
7760 rm -f conftest.err conftest.i conftest.$ac_ext
7761
7762 # OK, works on sane cases. Now check whether nonexistent headers
7763 # can be detected and how.
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #include <ac_nonexistent.h>
7767 _ACEOF
7768 if ac_fn_c_try_cpp "$LINENO"
7769 then :
7770 # Broken: success on invalid input.
7771 continue
7772 else $as_nop
7773 # Passes both tests.
7774 ac_preproc_ok=:
7775 break
7776 fi
7777 rm -f conftest.err conftest.i conftest.$ac_ext
7778
7779 done
7780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781 rm -f conftest.i conftest.err conftest.$ac_ext
7782 if $ac_preproc_ok
7783 then :
7784 break
7785 fi
7786
7787 done
7788 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7789
7790 fi
7791 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7792 else
7793 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7794 fi
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
7796 printf "%s\n" "$CPP_FOR_BUILD" >&6; }
7797 ac_preproc_ok=false
7798 for ac_c_preproc_warn_flag in '' yes
7799 do
7800 # Use a header file that comes with gcc, so configuring glibc
7801 # with a fresh cross-compiler works.
7802 # On the NeXT, cc -E runs the code through the compiler's parser,
7803 # not just through cpp. "Syntax error" is here to catch this case.
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 #include <limits.h>
7807 Syntax error
7808 _ACEOF
7809 if ac_fn_c_try_cpp "$LINENO"
7810 then :
7811
7812 else $as_nop
7813 # Broken: fails on valid input.
7814 continue
7815 fi
7816 rm -f conftest.err conftest.i conftest.$ac_ext
7817
7818 # OK, works on sane cases. Now check whether nonexistent headers
7819 # can be detected and how.
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7822 #include <ac_nonexistent.h>
7823 _ACEOF
7824 if ac_fn_c_try_cpp "$LINENO"
7825 then :
7826 # Broken: success on invalid input.
7827 continue
7828 else $as_nop
7829 # Passes both tests.
7830 ac_preproc_ok=:
7831 break
7832 fi
7833 rm -f conftest.err conftest.i conftest.$ac_ext
7834
7835 done
7836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7837 rm -f conftest.i conftest.err conftest.$ac_ext
7838 if $ac_preproc_ok
7839 then :
7840
7841 else $as_nop
7842 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7843 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7844 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7845 See \`config.log' for more details" "$LINENO" 5; }
7846 fi
7847
7848 ac_ext=c
7849 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7850 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7851 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7852 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7853
7854
7855
7856 ac_ext=c
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862
7863
7864
7865 #
7866 # Find the machine's endian flavor.
7867 #
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7869 printf %s "checking whether byte ordering is bigendian... " >&6; }
7870 if test ${ac_cv_c_bigendian+y}
7871 then :
7872 printf %s "(cached) " >&6
7873 else $as_nop
7874 ac_cv_c_bigendian=unknown
7875 # See if we're dealing with a universal compiler.
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #ifndef __APPLE_CC__
7879 not a universal capable compiler
7880 #endif
7881 typedef int dummy;
7882
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"
7885 then :
7886
7887 # Check for potential -arch flags. It is not universal unless
7888 # there are at least two -arch flags with different values.
7889 ac_arch=
7890 ac_prev=
7891 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7892 if test -n "$ac_prev"; then
7893 case $ac_word in
7894 i?86 | x86_64 | ppc | ppc64)
7895 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7896 ac_arch=$ac_word
7897 else
7898 ac_cv_c_bigendian=universal
7899 break
7900 fi
7901 ;;
7902 esac
7903 ac_prev=
7904 elif test "x$ac_word" = "x-arch"; then
7905 ac_prev=arch
7906 fi
7907 done
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7910 if test $ac_cv_c_bigendian = unknown; then
7911 # See if sys/param.h defines the BYTE_ORDER macro.
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <sys/types.h>
7915 #include <sys/param.h>
7916
7917 int
7918 main (void)
7919 {
7920 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7922 && LITTLE_ENDIAN)
7923 bogus endian macros
7924 #endif
7925
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"
7931 then :
7932 # It does; now see whether it defined to BIG_ENDIAN or not.
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #include <sys/types.h>
7936 #include <sys/param.h>
7937
7938 int
7939 main (void)
7940 {
7941 #if BYTE_ORDER != BIG_ENDIAN
7942 not big endian
7943 #endif
7944
7945 ;
7946 return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_compile "$LINENO"
7950 then :
7951 ac_cv_c_bigendian=yes
7952 else $as_nop
7953 ac_cv_c_bigendian=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7958 fi
7959 if test $ac_cv_c_bigendian = unknown; then
7960 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <limits.h>
7964
7965 int
7966 main (void)
7967 {
7968 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7969 bogus endian macros
7970 #endif
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"
7977 then :
7978 # It does; now see whether it defined to _BIG_ENDIAN or not.
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <limits.h>
7982
7983 int
7984 main (void)
7985 {
7986 #ifndef _BIG_ENDIAN
7987 not big endian
7988 #endif
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 if ac_fn_c_try_compile "$LINENO"
7995 then :
7996 ac_cv_c_bigendian=yes
7997 else $as_nop
7998 ac_cv_c_bigendian=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8003 fi
8004 if test $ac_cv_c_bigendian = unknown; then
8005 # Compile a test program.
8006 if test "$cross_compiling" = yes
8007 then :
8008 # Try to guess by grepping values from an object file.
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 unsigned short int ascii_mm[] =
8012 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8013 unsigned short int ascii_ii[] =
8014 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8015 int use_ascii (int i) {
8016 return ascii_mm[i] + ascii_ii[i];
8017 }
8018 unsigned short int ebcdic_ii[] =
8019 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8020 unsigned short int ebcdic_mm[] =
8021 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8022 int use_ebcdic (int i) {
8023 return ebcdic_mm[i] + ebcdic_ii[i];
8024 }
8025 extern int foo;
8026
8027 int
8028 main (void)
8029 {
8030 return use_ascii (foo) == use_ebcdic (foo);
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_compile "$LINENO"
8036 then :
8037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8038 ac_cv_c_bigendian=yes
8039 fi
8040 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8041 if test "$ac_cv_c_bigendian" = unknown; then
8042 ac_cv_c_bigendian=no
8043 else
8044 # finding both strings is unlikely to happen, but who knows?
8045 ac_cv_c_bigendian=unknown
8046 fi
8047 fi
8048 fi
8049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8050 else $as_nop
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 int
8055 main (void)
8056 {
8057
8058 /* Are we little or big endian? From Harbison&Steele. */
8059 union
8060 {
8061 long int l;
8062 char c[sizeof (long int)];
8063 } u;
8064 u.l = 1;
8065 return u.c[sizeof (long int) - 1] == 1;
8066
8067 ;
8068 return 0;
8069 }
8070 _ACEOF
8071 if ac_fn_c_try_run "$LINENO"
8072 then :
8073 ac_cv_c_bigendian=no
8074 else $as_nop
8075 ac_cv_c_bigendian=yes
8076 fi
8077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8078 conftest.$ac_objext conftest.beam conftest.$ac_ext
8079 fi
8080
8081 fi
8082 fi
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8084 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
8085 case $ac_cv_c_bigendian in #(
8086 yes)
8087 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
8088 ;; #(
8089 no)
8090 ;; #(
8091 universal)
8092
8093 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8094
8095 ;; #(
8096 *)
8097 as_fn_error $? "unknown endianness
8098 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8099 esac
8100
8101
8102 #
8103 # Enable large file support
8104 #
8105 # Check whether --enable-largefile was given.
8106 if test ${enable_largefile+y}
8107 then :
8108 enableval=$enable_largefile;
8109 fi
8110
8111 if test "$enable_largefile" != no; then
8112
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8114 printf %s "checking for special C compiler options needed for large files... " >&6; }
8115 if test ${ac_cv_sys_largefile_CC+y}
8116 then :
8117 printf %s "(cached) " >&6
8118 else $as_nop
8119 ac_cv_sys_largefile_CC=no
8120 if test "$GCC" != yes; then
8121 ac_save_CC=$CC
8122 while :; do
8123 # IRIX 6.2 and later do not support large files by default,
8124 # so use the C compiler's -n32 option if that helps.
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #include <sys/types.h>
8128 /* Check that off_t can represent 2**63 - 1 correctly.
8129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8130 since some C++ compilers masquerading as C compilers
8131 incorrectly reject 9223372036854775807. */
8132 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8134 && LARGE_OFF_T % 2147483647 == 1)
8135 ? 1 : -1];
8136 int
8137 main (void)
8138 {
8139
8140 ;
8141 return 0;
8142 }
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"
8145 then :
8146 break
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext conftest.beam
8149 CC="$CC -n32"
8150 if ac_fn_c_try_compile "$LINENO"
8151 then :
8152 ac_cv_sys_largefile_CC=' -n32'; break
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.beam
8155 break
8156 done
8157 CC=$ac_save_CC
8158 rm -f conftest.$ac_ext
8159 fi
8160 fi
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8162 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8163 if test "$ac_cv_sys_largefile_CC" != no; then
8164 CC=$CC$ac_cv_sys_largefile_CC
8165 fi
8166
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8168 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8169 if test ${ac_cv_sys_file_offset_bits+y}
8170 then :
8171 printf %s "(cached) " >&6
8172 else $as_nop
8173 while :; do
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8177 /* Check that off_t can represent 2**63 - 1 correctly.
8178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8179 since some C++ compilers masquerading as C compilers
8180 incorrectly reject 9223372036854775807. */
8181 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8183 && LARGE_OFF_T % 2147483647 == 1)
8184 ? 1 : -1];
8185 int
8186 main (void)
8187 {
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"
8194 then :
8195 ac_cv_sys_file_offset_bits=no; break
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #define _FILE_OFFSET_BITS 64
8201 #include <sys/types.h>
8202 /* Check that off_t can represent 2**63 - 1 correctly.
8203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8204 since some C++ compilers masquerading as C compilers
8205 incorrectly reject 9223372036854775807. */
8206 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8208 && LARGE_OFF_T % 2147483647 == 1)
8209 ? 1 : -1];
8210 int
8211 main (void)
8212 {
8213
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"
8219 then :
8220 ac_cv_sys_file_offset_bits=64; break
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8223 ac_cv_sys_file_offset_bits=unknown
8224 break
8225 done
8226 fi
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8228 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8229 case $ac_cv_sys_file_offset_bits in #(
8230 no | unknown) ;;
8231 *)
8232 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8233 ;;
8234 esac
8235 rm -rf conftest*
8236 if test $ac_cv_sys_file_offset_bits = unknown; then
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8238 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8239 if test ${ac_cv_sys_large_files+y}
8240 then :
8241 printf %s "(cached) " >&6
8242 else $as_nop
8243 while :; do
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 #include <sys/types.h>
8247 /* Check that off_t can represent 2**63 - 1 correctly.
8248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8249 since some C++ compilers masquerading as C compilers
8250 incorrectly reject 9223372036854775807. */
8251 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8253 && LARGE_OFF_T % 2147483647 == 1)
8254 ? 1 : -1];
8255 int
8256 main (void)
8257 {
8258
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"
8264 then :
8265 ac_cv_sys_large_files=no; break
8266 fi
8267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 #define _LARGE_FILES 1
8271 #include <sys/types.h>
8272 /* Check that off_t can represent 2**63 - 1 correctly.
8273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8274 since some C++ compilers masquerading as C compilers
8275 incorrectly reject 9223372036854775807. */
8276 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8278 && LARGE_OFF_T % 2147483647 == 1)
8279 ? 1 : -1];
8280 int
8281 main (void)
8282 {
8283
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"
8289 then :
8290 ac_cv_sys_large_files=1; break
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8293 ac_cv_sys_large_files=unknown
8294 break
8295 done
8296 fi
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8298 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8299 case $ac_cv_sys_large_files in #(
8300 no | unknown) ;;
8301 *)
8302 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8303 ;;
8304 esac
8305 rm -rf conftest*
8306 fi
8307 fi
8308
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8310 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8311 if test ${ac_cv_sys_largefile_source+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else $as_nop
8315 while :; do
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 #include <sys/types.h> /* for off_t */
8319 #include <stdio.h>
8320 int
8321 main (void)
8322 {
8323 int (*fp) (FILE *, off_t, int) = fseeko;
8324 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"
8330 then :
8331 ac_cv_sys_largefile_source=no; break
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8334 conftest$ac_exeext conftest.$ac_ext
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #define _LARGEFILE_SOURCE 1
8338 #include <sys/types.h> /* for off_t */
8339 #include <stdio.h>
8340 int
8341 main (void)
8342 {
8343 int (*fp) (FILE *, off_t, int) = fseeko;
8344 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_link "$LINENO"
8350 then :
8351 ac_cv_sys_largefile_source=1; break
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8354 conftest$ac_exeext conftest.$ac_ext
8355 ac_cv_sys_largefile_source=unknown
8356 break
8357 done
8358 fi
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8360 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
8361 case $ac_cv_sys_largefile_source in #(
8362 no | unknown) ;;
8363 *)
8364 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
8365 ;;
8366 esac
8367 rm -rf conftest*
8368
8369 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8370 # in glibc 2.1.3, but that breaks too many other things.
8371 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8372 if test $ac_cv_sys_largefile_source != unknown; then
8373
8374 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
8375
8376 fi
8377
8378
8379 # Enable RFC 3542 APIs on macOS
8380
8381 printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
8382
8383
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8385 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8386 set x ${MAKE-make}
8387 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8388 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8389 then :
8390 printf %s "(cached) " >&6
8391 else $as_nop
8392 cat >conftest.make <<\_ACEOF
8393 SHELL = /bin/sh
8394 all:
8395 @echo '@@@%%%=$(MAKE)=@@@%%%'
8396 _ACEOF
8397 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8398 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8399 *@@@%%%=?*=@@@%%%*)
8400 eval ac_cv_prog_make_${ac_make}_set=yes;;
8401 *)
8402 eval ac_cv_prog_make_${ac_make}_set=no;;
8403 esac
8404 rm -f conftest.make
8405 fi
8406 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408 printf "%s\n" "yes" >&6; }
8409 SET_MAKE=
8410 else
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 printf "%s\n" "no" >&6; }
8413 SET_MAKE="MAKE=${MAKE-make}"
8414 fi
8415
8416
8417 # Checks for programs.
8418
8419 if test -n "$ac_tool_prefix"; then
8420 for ac_prog in ar lib "link -lib"
8421 do
8422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 printf %s "checking for $ac_word... " >&6; }
8426 if test ${ac_cv_prog_AR+y}
8427 then :
8428 printf %s "(cached) " >&6
8429 else $as_nop
8430 if test -n "$AR"; then
8431 ac_cv_prog_AR="$AR" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8435 do
8436 IFS=$as_save_IFS
8437 case $as_dir in #(((
8438 '') as_dir=./ ;;
8439 */) ;;
8440 *) as_dir=$as_dir/ ;;
8441 esac
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448 done
8449 done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 AR=$ac_cv_prog_AR
8455 if test -n "$AR"; then
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8457 printf "%s\n" "$AR" >&6; }
8458 else
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 printf "%s\n" "no" >&6; }
8461 fi
8462
8463
8464 test -n "$AR" && break
8465 done
8466 fi
8467 if test -z "$AR"; then
8468 ac_ct_AR=$AR
8469 for ac_prog in ar lib "link -lib"
8470 do
8471 # Extract the first word of "$ac_prog", so it can be a program name with args.
8472 set dummy $ac_prog; ac_word=$2
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 printf %s "checking for $ac_word... " >&6; }
8475 if test ${ac_cv_prog_ac_ct_AR+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else $as_nop
8479 if test -n "$ac_ct_AR"; then
8480 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485 IFS=$as_save_IFS
8486 case $as_dir in #(((
8487 '') as_dir=./ ;;
8488 */) ;;
8489 *) as_dir=$as_dir/ ;;
8490 esac
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_ac_ct_AR="$ac_prog"
8494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8504 if test -n "$ac_ct_AR"; then
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8506 printf "%s\n" "$ac_ct_AR" >&6; }
8507 else
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 printf "%s\n" "no" >&6; }
8510 fi
8511
8512
8513 test -n "$ac_ct_AR" && break
8514 done
8515
8516 if test "x$ac_ct_AR" = x; then
8517 AR="false"
8518 else
8519 case $cross_compiling:$ac_tool_warned in
8520 yes:)
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8523 ac_tool_warned=yes ;;
8524 esac
8525 AR=$ac_ct_AR
8526 fi
8527 fi
8528
8529 : ${AR=ar}
8530
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8532 printf %s "checking the archiver ($AR) interface... " >&6; }
8533 if test ${am_cv_ar_interface+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else $as_nop
8537 ac_ext=c
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542
8543 am_cv_ar_interface=ar
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 int some_variable = 0;
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"
8549 then :
8550 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8552 (eval $am_ar_try) 2>&5
8553 ac_status=$?
8554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555 test $ac_status = 0; }
8556 if test "$ac_status" -eq 0; then
8557 am_cv_ar_interface=ar
8558 else
8559 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8561 (eval $am_ar_try) 2>&5
8562 ac_status=$?
8563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8564 test $ac_status = 0; }
8565 if test "$ac_status" -eq 0; then
8566 am_cv_ar_interface=lib
8567 else
8568 am_cv_ar_interface=unknown
8569 fi
8570 fi
8571 rm -f conftest.lib libconftest.a
8572
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8575 ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581 fi
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8583 printf "%s\n" "$am_cv_ar_interface" >&6; }
8584
8585 case $am_cv_ar_interface in
8586 ar)
8587 ;;
8588 lib)
8589 # Microsoft lib, so override with the ar-lib wrapper script.
8590 # FIXME: It is wrong to rewrite AR.
8591 # But if we don't then we get into trouble of one sort or another.
8592 # A longer-term fix would be to have automake use am__AR in this case,
8593 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8594 # similar.
8595 AR="$am_aux_dir/ar-lib $AR"
8596 ;;
8597 unknown)
8598 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8599 ;;
8600 esac
8601 # call AM_PROG_AR only if available
8602
8603
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8605 printf %s "checking whether ln -s works... " >&6; }
8606 LN_S=$as_ln_s
8607 if test "$LN_S" = "ln -s"; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8609 printf "%s\n" "yes" >&6; }
8610 else
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8612 printf "%s\n" "no, using $LN_S" >&6; }
8613 fi
8614
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
8616 printf %s "checking for a POSIX-compatible shell... " >&6; }
8617 if test ${ac_cv_prog_shell+y}
8618 then :
8619 printf %s "(cached) " >&6
8620 else $as_nop
8621 ac_test_shell_script='
8622 test "$(expr 1 + 1)" = "2" &&
8623 test "$(( 1 + 1 ))" = "2"
8624 '
8625
8626 for ac_cv_prog_shell in \
8627 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
8628 case $ac_cv_prog_shell in #(
8629 /*) :
8630
8631 if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null
8632 then :
8633 break
8634 fi
8635 ;; #(
8636 *) :
8637 ;;
8638 esac
8639 done
8640
8641 fi
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
8643 printf "%s\n" "$ac_cv_prog_shell" >&6; }
8644 if test "$ac_cv_prog_shell" = "no"
8645 then :
8646 SHELL=/bin/sh
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
8648 printf "%s\n" "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
8649
8650 else $as_nop
8651 SHELL="$ac_cv_prog_shell"
8652
8653 fi
8654
8655
8656
8657
8658 # Initialize libtool
8659 case `pwd` in
8660 *\ * | *\ *)
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8662 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8663 esac
8664
8665
8666
8667 macro_version='2.4.7'
8668 macro_revision='2.4.7'
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 ltmain=$ac_aux_dir/ltmain.sh
8684
8685 # Backslashify metacharacters that are still active within
8686 # double-quoted strings.
8687 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8688
8689 # Same as above, but do not quote variable references.
8690 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8691
8692 # Sed substitution to delay expansion of an escaped shell variable in a
8693 # double_quote_subst'ed string.
8694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8695
8696 # Sed substitution to delay expansion of an escaped single quote.
8697 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8698
8699 # Sed substitution to avoid accidental globbing in evaled expressions
8700 no_glob_subst='s/\*/\\\*/g'
8701
8702 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8703 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8705
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8707 printf %s "checking how to print strings... " >&6; }
8708 # Test print first, because it will be a builtin if present.
8709 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8710 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8711 ECHO='print -r --'
8712 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8713 ECHO='printf %s\n'
8714 else
8715 # Use this function as a fallback that always works.
8716 func_fallback_echo ()
8717 {
8718 eval 'cat <<_LTECHO_EOF
8719 $1
8720 _LTECHO_EOF'
8721 }
8722 ECHO='func_fallback_echo'
8723 fi
8724
8725 # func_echo_all arg...
8726 # Invoke $ECHO with all args, space-separated.
8727 func_echo_all ()
8728 {
8729 $ECHO ""
8730 }
8731
8732 case $ECHO in
8733 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8734 printf "%s\n" "printf" >&6; } ;;
8735 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8736 printf "%s\n" "print -r" >&6; } ;;
8737 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8738 printf "%s\n" "cat" >&6; } ;;
8739 esac
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8755 printf %s "checking for a sed that does not truncate output... " >&6; }
8756 if test ${ac_cv_path_SED+y}
8757 then :
8758 printf %s "(cached) " >&6
8759 else $as_nop
8760 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8761 for ac_i in 1 2 3 4 5 6 7; do
8762 ac_script="$ac_script$as_nl$ac_script"
8763 done
8764 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8765 { ac_script=; unset ac_script;}
8766 if test -z "$SED"; then
8767 ac_path_SED_found=false
8768 # Loop through the user's path and test for each of PROGNAME-LIST
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8771 do
8772 IFS=$as_save_IFS
8773 case $as_dir in #(((
8774 '') as_dir=./ ;;
8775 */) ;;
8776 *) as_dir=$as_dir/ ;;
8777 esac
8778 for ac_prog in sed gsed
8779 do
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8782 as_fn_executable_p "$ac_path_SED" || continue
8783 # Check for GNU ac_path_SED and select it if it is found.
8784 # Check for GNU $ac_path_SED
8785 case `"$ac_path_SED" --version 2>&1` in
8786 *GNU*)
8787 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8788 *)
8789 ac_count=0
8790 printf %s 0123456789 >"conftest.in"
8791 while :
8792 do
8793 cat "conftest.in" "conftest.in" >"conftest.tmp"
8794 mv "conftest.tmp" "conftest.in"
8795 cp "conftest.in" "conftest.nl"
8796 printf "%s\n" '' >> "conftest.nl"
8797 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8799 as_fn_arith $ac_count + 1 && ac_count=$as_val
8800 if test $ac_count -gt ${ac_path_SED_max-0}; then
8801 # Best one so far, save it but keep looking for a better one
8802 ac_cv_path_SED="$ac_path_SED"
8803 ac_path_SED_max=$ac_count
8804 fi
8805 # 10*(2^10) chars as input seems more than enough
8806 test $ac_count -gt 10 && break
8807 done
8808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8809 esac
8810
8811 $ac_path_SED_found && break 3
8812 done
8813 done
8814 done
8815 IFS=$as_save_IFS
8816 if test -z "$ac_cv_path_SED"; then
8817 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8818 fi
8819 else
8820 ac_cv_path_SED=$SED
8821 fi
8822
8823 fi
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8825 printf "%s\n" "$ac_cv_path_SED" >&6; }
8826 SED="$ac_cv_path_SED"
8827 rm -f conftest.sed
8828
8829 test -z "$SED" && SED=sed
8830 Xsed="$SED -e 1s/^X//"
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8843 printf %s "checking for grep that handles long lines and -e... " >&6; }
8844 if test ${ac_cv_path_GREP+y}
8845 then :
8846 printf %s "(cached) " >&6
8847 else $as_nop
8848 if test -z "$GREP"; then
8849 ac_path_GREP_found=false
8850 # Loop through the user's path and test for each of PROGNAME-LIST
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8853 do
8854 IFS=$as_save_IFS
8855 case $as_dir in #(((
8856 '') as_dir=./ ;;
8857 */) ;;
8858 *) as_dir=$as_dir/ ;;
8859 esac
8860 for ac_prog in grep ggrep
8861 do
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8864 as_fn_executable_p "$ac_path_GREP" || continue
8865 # Check for GNU ac_path_GREP and select it if it is found.
8866 # Check for GNU $ac_path_GREP
8867 case `"$ac_path_GREP" --version 2>&1` in
8868 *GNU*)
8869 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8870 *)
8871 ac_count=0
8872 printf %s 0123456789 >"conftest.in"
8873 while :
8874 do
8875 cat "conftest.in" "conftest.in" >"conftest.tmp"
8876 mv "conftest.tmp" "conftest.in"
8877 cp "conftest.in" "conftest.nl"
8878 printf "%s\n" 'GREP' >> "conftest.nl"
8879 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8881 as_fn_arith $ac_count + 1 && ac_count=$as_val
8882 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8883 # Best one so far, save it but keep looking for a better one
8884 ac_cv_path_GREP="$ac_path_GREP"
8885 ac_path_GREP_max=$ac_count
8886 fi
8887 # 10*(2^10) chars as input seems more than enough
8888 test $ac_count -gt 10 && break
8889 done
8890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8891 esac
8892
8893 $ac_path_GREP_found && break 3
8894 done
8895 done
8896 done
8897 IFS=$as_save_IFS
8898 if test -z "$ac_cv_path_GREP"; then
8899 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8900 fi
8901 else
8902 ac_cv_path_GREP=$GREP
8903 fi
8904
8905 fi
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8907 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8908 GREP="$ac_cv_path_GREP"
8909
8910
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8912 printf %s "checking for egrep... " >&6; }
8913 if test ${ac_cv_path_EGREP+y}
8914 then :
8915 printf %s "(cached) " >&6
8916 else $as_nop
8917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8918 then ac_cv_path_EGREP="$GREP -E"
8919 else
8920 if test -z "$EGREP"; then
8921 ac_path_EGREP_found=false
8922 # Loop through the user's path and test for each of PROGNAME-LIST
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8925 do
8926 IFS=$as_save_IFS
8927 case $as_dir in #(((
8928 '') as_dir=./ ;;
8929 */) ;;
8930 *) as_dir=$as_dir/ ;;
8931 esac
8932 for ac_prog in egrep
8933 do
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8936 as_fn_executable_p "$ac_path_EGREP" || continue
8937 # Check for GNU ac_path_EGREP and select it if it is found.
8938 # Check for GNU $ac_path_EGREP
8939 case `"$ac_path_EGREP" --version 2>&1` in
8940 *GNU*)
8941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8942 *)
8943 ac_count=0
8944 printf %s 0123456789 >"conftest.in"
8945 while :
8946 do
8947 cat "conftest.in" "conftest.in" >"conftest.tmp"
8948 mv "conftest.tmp" "conftest.in"
8949 cp "conftest.in" "conftest.nl"
8950 printf "%s\n" 'EGREP' >> "conftest.nl"
8951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8953 as_fn_arith $ac_count + 1 && ac_count=$as_val
8954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8955 # Best one so far, save it but keep looking for a better one
8956 ac_cv_path_EGREP="$ac_path_EGREP"
8957 ac_path_EGREP_max=$ac_count
8958 fi
8959 # 10*(2^10) chars as input seems more than enough
8960 test $ac_count -gt 10 && break
8961 done
8962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8963 esac
8964
8965 $ac_path_EGREP_found && break 3
8966 done
8967 done
8968 done
8969 IFS=$as_save_IFS
8970 if test -z "$ac_cv_path_EGREP"; then
8971 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8972 fi
8973 else
8974 ac_cv_path_EGREP=$EGREP
8975 fi
8976
8977 fi
8978 fi
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8980 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8981 EGREP="$ac_cv_path_EGREP"
8982
8983
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8985 printf %s "checking for fgrep... " >&6; }
8986 if test ${ac_cv_path_FGREP+y}
8987 then :
8988 printf %s "(cached) " >&6
8989 else $as_nop
8990 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8991 then ac_cv_path_FGREP="$GREP -F"
8992 else
8993 if test -z "$FGREP"; then
8994 ac_path_FGREP_found=false
8995 # Loop through the user's path and test for each of PROGNAME-LIST
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8998 do
8999 IFS=$as_save_IFS
9000 case $as_dir in #(((
9001 '') as_dir=./ ;;
9002 */) ;;
9003 *) as_dir=$as_dir/ ;;
9004 esac
9005 for ac_prog in fgrep
9006 do
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9009 as_fn_executable_p "$ac_path_FGREP" || continue
9010 # Check for GNU ac_path_FGREP and select it if it is found.
9011 # Check for GNU $ac_path_FGREP
9012 case `"$ac_path_FGREP" --version 2>&1` in
9013 *GNU*)
9014 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9015 *)
9016 ac_count=0
9017 printf %s 0123456789 >"conftest.in"
9018 while :
9019 do
9020 cat "conftest.in" "conftest.in" >"conftest.tmp"
9021 mv "conftest.tmp" "conftest.in"
9022 cp "conftest.in" "conftest.nl"
9023 printf "%s\n" 'FGREP' >> "conftest.nl"
9024 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9026 as_fn_arith $ac_count + 1 && ac_count=$as_val
9027 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9028 # Best one so far, save it but keep looking for a better one
9029 ac_cv_path_FGREP="$ac_path_FGREP"
9030 ac_path_FGREP_max=$ac_count
9031 fi
9032 # 10*(2^10) chars as input seems more than enough
9033 test $ac_count -gt 10 && break
9034 done
9035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9036 esac
9037
9038 $ac_path_FGREP_found && break 3
9039 done
9040 done
9041 done
9042 IFS=$as_save_IFS
9043 if test -z "$ac_cv_path_FGREP"; then
9044 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9045 fi
9046 else
9047 ac_cv_path_FGREP=$FGREP
9048 fi
9049
9050 fi
9051 fi
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9053 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9054 FGREP="$ac_cv_path_FGREP"
9055
9056
9057 test -z "$GREP" && GREP=grep
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077 # Check whether --with-gnu-ld was given.
9078 if test ${with_gnu_ld+y}
9079 then :
9080 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9081 else $as_nop
9082 with_gnu_ld=no
9083 fi
9084
9085 ac_prog=ld
9086 if test yes = "$GCC"; then
9087 # Check if gcc -print-prog-name=ld gives a path.
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9089 printf %s "checking for ld used by $CC... " >&6; }
9090 case $host in
9091 *-*-mingw*)
9092 # gcc leaves a trailing carriage return, which upsets mingw
9093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9094 *)
9095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9096 esac
9097 case $ac_prog in
9098 # Accept absolute paths.
9099 [\\/]* | ?:[\\/]*)
9100 re_direlt='/[^/][^/]*/\.\./'
9101 # Canonicalize the pathname of ld
9102 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9103 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9104 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9105 done
9106 test -z "$LD" && LD=$ac_prog
9107 ;;
9108 "")
9109 # If it fails, then pretend we aren't using GCC.
9110 ac_prog=ld
9111 ;;
9112 *)
9113 # If it is relative, then search for the first ld in PATH.
9114 with_gnu_ld=unknown
9115 ;;
9116 esac
9117 elif test yes = "$with_gnu_ld"; then
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9119 printf %s "checking for GNU ld... " >&6; }
9120 else
9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9122 printf %s "checking for non-GNU ld... " >&6; }
9123 fi
9124 if test ${lt_cv_path_LD+y}
9125 then :
9126 printf %s "(cached) " >&6
9127 else $as_nop
9128 if test -z "$LD"; then
9129 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9130 for ac_dir in $PATH; do
9131 IFS=$lt_save_ifs
9132 test -z "$ac_dir" && ac_dir=.
9133 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9134 lt_cv_path_LD=$ac_dir/$ac_prog
9135 # Check to see if the program is GNU ld. I'd rather use --version,
9136 # but apparently some variants of GNU ld only accept -v.
9137 # Break only if it was the GNU/non-GNU ld that we prefer.
9138 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9139 *GNU* | *'with BFD'*)
9140 test no != "$with_gnu_ld" && break
9141 ;;
9142 *)
9143 test yes != "$with_gnu_ld" && break
9144 ;;
9145 esac
9146 fi
9147 done
9148 IFS=$lt_save_ifs
9149 else
9150 lt_cv_path_LD=$LD # Let the user override the test with a path.
9151 fi
9152 fi
9153
9154 LD=$lt_cv_path_LD
9155 if test -n "$LD"; then
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9157 printf "%s\n" "$LD" >&6; }
9158 else
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 printf "%s\n" "no" >&6; }
9161 fi
9162 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9164 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9165 if test ${lt_cv_prog_gnu_ld+y}
9166 then :
9167 printf %s "(cached) " >&6
9168 else $as_nop
9169 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9170 case `$LD -v 2>&1 </dev/null` in
9171 *GNU* | *'with BFD'*)
9172 lt_cv_prog_gnu_ld=yes
9173 ;;
9174 *)
9175 lt_cv_prog_gnu_ld=no
9176 ;;
9177 esac
9178 fi
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9180 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9181 with_gnu_ld=$lt_cv_prog_gnu_ld
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9192 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9193 if test ${lt_cv_path_NM+y}
9194 then :
9195 printf %s "(cached) " >&6
9196 else $as_nop
9197 if test -n "$NM"; then
9198 # Let the user override the test.
9199 lt_cv_path_NM=$NM
9200 else
9201 lt_nm_to_check=${ac_tool_prefix}nm
9202 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9203 lt_nm_to_check="$lt_nm_to_check nm"
9204 fi
9205 for lt_tmp_nm in $lt_nm_to_check; do
9206 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9207 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9208 IFS=$lt_save_ifs
9209 test -z "$ac_dir" && ac_dir=.
9210 tmp_nm=$ac_dir/$lt_tmp_nm
9211 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9212 # Check to see if the nm accepts a BSD-compat flag.
9213 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9214 # nm: unknown option "B" ignored
9215 # Tru64's nm complains that /dev/null is an invalid object file
9216 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9217 case $build_os in
9218 mingw*) lt_bad_file=conftest.nm/nofile ;;
9219 *) lt_bad_file=/dev/null ;;
9220 esac
9221 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9222 *$lt_bad_file* | *'Invalid file or object type'*)
9223 lt_cv_path_NM="$tmp_nm -B"
9224 break 2
9225 ;;
9226 *)
9227 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9228 */dev/null*)
9229 lt_cv_path_NM="$tmp_nm -p"
9230 break 2
9231 ;;
9232 *)
9233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9234 continue # so that we can try to find one that supports BSD flags
9235 ;;
9236 esac
9237 ;;
9238 esac
9239 fi
9240 done
9241 IFS=$lt_save_ifs
9242 done
9243 : ${lt_cv_path_NM=no}
9244 fi
9245 fi
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9247 printf "%s\n" "$lt_cv_path_NM" >&6; }
9248 if test no != "$lt_cv_path_NM"; then
9249 NM=$lt_cv_path_NM
9250 else
9251 # Didn't find any BSD compatible name lister, look for dumpbin.
9252 if test -n "$DUMPBIN"; then :
9253 # Let the user override the test.
9254 else
9255 if test -n "$ac_tool_prefix"; then
9256 for ac_prog in dumpbin "link -dump"
9257 do
9258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 printf %s "checking for $ac_word... " >&6; }
9262 if test ${ac_cv_prog_DUMPBIN+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else $as_nop
9266 if test -n "$DUMPBIN"; then
9267 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272 IFS=$as_save_IFS
9273 case $as_dir in #(((
9274 '') as_dir=./ ;;
9275 */) ;;
9276 *) as_dir=$as_dir/ ;;
9277 esac
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9280 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9282 break 2
9283 fi
9284 done
9285 done
9286 IFS=$as_save_IFS
9287
9288 fi
9289 fi
9290 DUMPBIN=$ac_cv_prog_DUMPBIN
9291 if test -n "$DUMPBIN"; then
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9293 printf "%s\n" "$DUMPBIN" >&6; }
9294 else
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 printf "%s\n" "no" >&6; }
9297 fi
9298
9299
9300 test -n "$DUMPBIN" && break
9301 done
9302 fi
9303 if test -z "$DUMPBIN"; then
9304 ac_ct_DUMPBIN=$DUMPBIN
9305 for ac_prog in dumpbin "link -dump"
9306 do
9307 # Extract the first word of "$ac_prog", so it can be a program name with args.
9308 set dummy $ac_prog; ac_word=$2
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 printf %s "checking for $ac_word... " >&6; }
9311 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 if test -n "$ac_ct_DUMPBIN"; then
9316 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9320 do
9321 IFS=$as_save_IFS
9322 case $as_dir in #(((
9323 '') as_dir=./ ;;
9324 */) ;;
9325 *) as_dir=$as_dir/ ;;
9326 esac
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9331 break 2
9332 fi
9333 done
9334 done
9335 IFS=$as_save_IFS
9336
9337 fi
9338 fi
9339 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9340 if test -n "$ac_ct_DUMPBIN"; then
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9342 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9343 else
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 printf "%s\n" "no" >&6; }
9346 fi
9347
9348
9349 test -n "$ac_ct_DUMPBIN" && break
9350 done
9351
9352 if test "x$ac_ct_DUMPBIN" = x; then
9353 DUMPBIN=":"
9354 else
9355 case $cross_compiling:$ac_tool_warned in
9356 yes:)
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9359 ac_tool_warned=yes ;;
9360 esac
9361 DUMPBIN=$ac_ct_DUMPBIN
9362 fi
9363 fi
9364
9365 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9366 *COFF*)
9367 DUMPBIN="$DUMPBIN -symbols -headers"
9368 ;;
9369 *)
9370 DUMPBIN=:
9371 ;;
9372 esac
9373 fi
9374
9375 if test : != "$DUMPBIN"; then
9376 NM=$DUMPBIN
9377 fi
9378 fi
9379 test -z "$NM" && NM=nm
9380
9381
9382
9383
9384
9385
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9387 printf %s "checking the name lister ($NM) interface... " >&6; }
9388 if test ${lt_cv_nm_interface+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else $as_nop
9392 lt_cv_nm_interface="BSD nm"
9393 echo "int some_variable = 0;" > conftest.$ac_ext
9394 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9395 (eval "$ac_compile" 2>conftest.err)
9396 cat conftest.err >&5
9397 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9398 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9399 cat conftest.err >&5
9400 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9401 cat conftest.out >&5
9402 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9403 lt_cv_nm_interface="MS dumpbin"
9404 fi
9405 rm -f conftest*
9406 fi
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9408 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9409
9410 # find the maximum length of command line arguments
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9412 printf %s "checking the maximum length of command line arguments... " >&6; }
9413 if test ${lt_cv_sys_max_cmd_len+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else $as_nop
9417 i=0
9418 teststring=ABCD
9419
9420 case $build_os in
9421 msdosdjgpp*)
9422 # On DJGPP, this test can blow up pretty badly due to problems in libc
9423 # (any single argument exceeding 2000 bytes causes a buffer overrun
9424 # during glob expansion). Even if it were fixed, the result of this
9425 # check would be larger than it should be.
9426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9427 ;;
9428
9429 gnu*)
9430 # Under GNU Hurd, this test is not required because there is
9431 # no limit to the length of command line arguments.
9432 # Libtool will interpret -1 as no limit whatsoever
9433 lt_cv_sys_max_cmd_len=-1;
9434 ;;
9435
9436 cygwin* | mingw* | cegcc*)
9437 # On Win9x/ME, this test blows up -- it succeeds, but takes
9438 # about 5 minutes as the teststring grows exponentially.
9439 # Worse, since 9x/ME are not pre-emptively multitasking,
9440 # you end up with a "frozen" computer, even though with patience
9441 # the test eventually succeeds (with a max line length of 256k).
9442 # Instead, let's just punt: use the minimum linelength reported by
9443 # all of the supported platforms: 8192 (on NT/2K/XP).
9444 lt_cv_sys_max_cmd_len=8192;
9445 ;;
9446
9447 mint*)
9448 # On MiNT this can take a long time and run out of memory.
9449 lt_cv_sys_max_cmd_len=8192;
9450 ;;
9451
9452 amigaos*)
9453 # On AmigaOS with pdksh, this test takes hours, literally.
9454 # So we just punt and use a minimum line length of 8192.
9455 lt_cv_sys_max_cmd_len=8192;
9456 ;;
9457
9458 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9459 # This has been around since 386BSD, at least. Likely further.
9460 if test -x /sbin/sysctl; then
9461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9462 elif test -x /usr/sbin/sysctl; then
9463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9464 else
9465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9466 fi
9467 # And add a safety zone
9468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9470 ;;
9471
9472 interix*)
9473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9474 lt_cv_sys_max_cmd_len=196608
9475 ;;
9476
9477 os2*)
9478 # The test takes a long time on OS/2.
9479 lt_cv_sys_max_cmd_len=8192
9480 ;;
9481
9482 osf*)
9483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9485 # nice to cause kernel panics so lets avoid the loop below.
9486 # First set a reasonable default.
9487 lt_cv_sys_max_cmd_len=16384
9488 #
9489 if test -x /sbin/sysconfig; then
9490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9492 esac
9493 fi
9494 ;;
9495 sco3.2v5*)
9496 lt_cv_sys_max_cmd_len=102400
9497 ;;
9498 sysv5* | sco5v6* | sysv4.2uw2*)
9499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9500 if test -n "$kargmax"; then
9501 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
9502 else
9503 lt_cv_sys_max_cmd_len=32768
9504 fi
9505 ;;
9506 *)
9507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9508 if test -n "$lt_cv_sys_max_cmd_len" && \
9509 test undefined != "$lt_cv_sys_max_cmd_len"; then
9510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9512 else
9513 # Make teststring a little bigger before we do anything with it.
9514 # a 1K string should be a reasonable start.
9515 for i in 1 2 3 4 5 6 7 8; do
9516 teststring=$teststring$teststring
9517 done
9518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9519 # If test is not a shell built-in, we'll probably end up computing a
9520 # maximum length that is only half of the actual maximum length, but
9521 # we can't tell.
9522 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9523 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9524 test 17 != "$i" # 1/2 MB should be enough
9525 do
9526 i=`expr $i + 1`
9527 teststring=$teststring$teststring
9528 done
9529 # Only check the string length outside the loop.
9530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9531 teststring=
9532 # Add a significant safety factor because C++ compilers can tack on
9533 # massive amounts of additional arguments before passing them to the
9534 # linker. It appears as though 1/2 is a usable value.
9535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9536 fi
9537 ;;
9538 esac
9539
9540 fi
9541
9542 if test -n "$lt_cv_sys_max_cmd_len"; then
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9544 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9545 else
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9547 printf "%s\n" "none" >&6; }
9548 fi
9549 max_cmd_len=$lt_cv_sys_max_cmd_len
9550
9551
9552
9553
9554
9555
9556 : ${CP="cp -f"}
9557 : ${MV="mv -f"}
9558 : ${RM="rm -f"}
9559
9560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9561 lt_unset=unset
9562 else
9563 lt_unset=false
9564 fi
9565
9566
9567
9568
9569
9570 # test EBCDIC or ASCII
9571 case `echo X|tr X '\101'` in
9572 A) # ASCII based system
9573 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9574 lt_SP2NL='tr \040 \012'
9575 lt_NL2SP='tr \015\012 \040\040'
9576 ;;
9577 *) # EBCDIC based system
9578 lt_SP2NL='tr \100 \n'
9579 lt_NL2SP='tr \r\n \100\100'
9580 ;;
9581 esac
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9592 printf %s "checking how to convert $build file names to $host format... " >&6; }
9593 if test ${lt_cv_to_host_file_cmd+y}
9594 then :
9595 printf %s "(cached) " >&6
9596 else $as_nop
9597 case $host in
9598 *-*-mingw* )
9599 case $build in
9600 *-*-mingw* ) # actually msys
9601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9602 ;;
9603 *-*-cygwin* )
9604 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9605 ;;
9606 * ) # otherwise, assume *nix
9607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9608 ;;
9609 esac
9610 ;;
9611 *-*-cygwin* )
9612 case $build in
9613 *-*-mingw* ) # actually msys
9614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9615 ;;
9616 *-*-cygwin* )
9617 lt_cv_to_host_file_cmd=func_convert_file_noop
9618 ;;
9619 * ) # otherwise, assume *nix
9620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9621 ;;
9622 esac
9623 ;;
9624 * ) # unhandled hosts (and "normal" native builds)
9625 lt_cv_to_host_file_cmd=func_convert_file_noop
9626 ;;
9627 esac
9628
9629 fi
9630
9631 to_host_file_cmd=$lt_cv_to_host_file_cmd
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9633 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9634
9635
9636
9637
9638
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9640 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9641 if test ${lt_cv_to_tool_file_cmd+y}
9642 then :
9643 printf %s "(cached) " >&6
9644 else $as_nop
9645 #assume ordinary cross tools, or native build.
9646 lt_cv_to_tool_file_cmd=func_convert_file_noop
9647 case $host in
9648 *-*-mingw* )
9649 case $build in
9650 *-*-mingw* ) # actually msys
9651 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9652 ;;
9653 esac
9654 ;;
9655 esac
9656
9657 fi
9658
9659 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9661 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9662
9663
9664
9665
9666
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9668 printf %s "checking for $LD option to reload object files... " >&6; }
9669 if test ${lt_cv_ld_reload_flag+y}
9670 then :
9671 printf %s "(cached) " >&6
9672 else $as_nop
9673 lt_cv_ld_reload_flag='-r'
9674 fi
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9676 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9677 reload_flag=$lt_cv_ld_reload_flag
9678 case $reload_flag in
9679 "" | " "*) ;;
9680 *) reload_flag=" $reload_flag" ;;
9681 esac
9682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9683 case $host_os in
9684 cygwin* | mingw* | pw32* | cegcc*)
9685 if test yes != "$GCC"; then
9686 reload_cmds=false
9687 fi
9688 ;;
9689 darwin*)
9690 if test yes = "$GCC"; then
9691 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9692 else
9693 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9694 fi
9695 ;;
9696 esac
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706 if test -n "$ac_tool_prefix"; then
9707 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9708 set dummy ${ac_tool_prefix}file; ac_word=$2
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 printf %s "checking for $ac_word... " >&6; }
9711 if test ${ac_cv_prog_FILECMD+y}
9712 then :
9713 printf %s "(cached) " >&6
9714 else $as_nop
9715 if test -n "$FILECMD"; then
9716 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721 IFS=$as_save_IFS
9722 case $as_dir in #(((
9723 '') as_dir=./ ;;
9724 */) ;;
9725 *) as_dir=$as_dir/ ;;
9726 esac
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9729 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733 done
9734 done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 FILECMD=$ac_cv_prog_FILECMD
9740 if test -n "$FILECMD"; then
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9742 printf "%s\n" "$FILECMD" >&6; }
9743 else
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 printf "%s\n" "no" >&6; }
9746 fi
9747
9748
9749 fi
9750 if test -z "$ac_cv_prog_FILECMD"; then
9751 ac_ct_FILECMD=$FILECMD
9752 # Extract the first word of "file", so it can be a program name with args.
9753 set dummy file; ac_word=$2
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 printf %s "checking for $ac_word... " >&6; }
9756 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else $as_nop
9760 if test -n "$ac_ct_FILECMD"; then
9761 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9762 else
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 for as_dir in $PATH
9765 do
9766 IFS=$as_save_IFS
9767 case $as_dir in #(((
9768 '') as_dir=./ ;;
9769 */) ;;
9770 *) as_dir=$as_dir/ ;;
9771 esac
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9774 ac_cv_prog_ac_ct_FILECMD="file"
9775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778 done
9779 done
9780 IFS=$as_save_IFS
9781
9782 fi
9783 fi
9784 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9785 if test -n "$ac_ct_FILECMD"; then
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9787 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9788 else
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 printf "%s\n" "no" >&6; }
9791 fi
9792
9793 if test "x$ac_ct_FILECMD" = x; then
9794 FILECMD=":"
9795 else
9796 case $cross_compiling:$ac_tool_warned in
9797 yes:)
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9799 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9800 ac_tool_warned=yes ;;
9801 esac
9802 FILECMD=$ac_ct_FILECMD
9803 fi
9804 else
9805 FILECMD="$ac_cv_prog_FILECMD"
9806 fi
9807
9808
9809
9810
9811
9812
9813
9814 if test -n "$ac_tool_prefix"; then
9815 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 printf %s "checking for $ac_word... " >&6; }
9819 if test ${ac_cv_prog_OBJDUMP+y}
9820 then :
9821 printf %s "(cached) " >&6
9822 else $as_nop
9823 if test -n "$OBJDUMP"; then
9824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 case $as_dir in #(((
9831 '') as_dir=./ ;;
9832 */) ;;
9833 *) as_dir=$as_dir/ ;;
9834 esac
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9837 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9839 break 2
9840 fi
9841 done
9842 done
9843 IFS=$as_save_IFS
9844
9845 fi
9846 fi
9847 OBJDUMP=$ac_cv_prog_OBJDUMP
9848 if test -n "$OBJDUMP"; then
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9850 printf "%s\n" "$OBJDUMP" >&6; }
9851 else
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 printf "%s\n" "no" >&6; }
9854 fi
9855
9856
9857 fi
9858 if test -z "$ac_cv_prog_OBJDUMP"; then
9859 ac_ct_OBJDUMP=$OBJDUMP
9860 # Extract the first word of "objdump", so it can be a program name with args.
9861 set dummy objdump; ac_word=$2
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 printf %s "checking for $ac_word... " >&6; }
9864 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9865 then :
9866 printf %s "(cached) " >&6
9867 else $as_nop
9868 if test -n "$ac_ct_OBJDUMP"; then
9869 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9870 else
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874 IFS=$as_save_IFS
9875 case $as_dir in #(((
9876 '') as_dir=./ ;;
9877 */) ;;
9878 *) as_dir=$as_dir/ ;;
9879 esac
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886 done
9887 done
9888 IFS=$as_save_IFS
9889
9890 fi
9891 fi
9892 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9893 if test -n "$ac_ct_OBJDUMP"; then
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9895 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9896 else
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 printf "%s\n" "no" >&6; }
9899 fi
9900
9901 if test "x$ac_ct_OBJDUMP" = x; then
9902 OBJDUMP="false"
9903 else
9904 case $cross_compiling:$ac_tool_warned in
9905 yes:)
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9907 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9908 ac_tool_warned=yes ;;
9909 esac
9910 OBJDUMP=$ac_ct_OBJDUMP
9911 fi
9912 else
9913 OBJDUMP="$ac_cv_prog_OBJDUMP"
9914 fi
9915
9916 test -z "$OBJDUMP" && OBJDUMP=objdump
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9927 printf %s "checking how to recognize dependent libraries... " >&6; }
9928 if test ${lt_cv_deplibs_check_method+y}
9929 then :
9930 printf %s "(cached) " >&6
9931 else $as_nop
9932 lt_cv_file_magic_cmd='$MAGIC_CMD'
9933 lt_cv_file_magic_test_file=
9934 lt_cv_deplibs_check_method='unknown'
9935 # Need to set the preceding variable on all platforms that support
9936 # interlibrary dependencies.
9937 # 'none' -- dependencies not supported.
9938 # 'unknown' -- same as none, but documents that we really don't know.
9939 # 'pass_all' -- all dependencies passed with no checks.
9940 # 'test_compile' -- check by making test program.
9941 # 'file_magic [[regex]]' -- check by looking for files in library path
9942 # that responds to the $file_magic_cmd with a given extended regex.
9943 # If you have 'file' or equivalent on your system and you're not sure
9944 # whether 'pass_all' will *always* work, you probably want this one.
9945
9946 case $host_os in
9947 aix[4-9]*)
9948 lt_cv_deplibs_check_method=pass_all
9949 ;;
9950
9951 beos*)
9952 lt_cv_deplibs_check_method=pass_all
9953 ;;
9954
9955 bsdi[45]*)
9956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9957 lt_cv_file_magic_cmd='$FILECMD -L'
9958 lt_cv_file_magic_test_file=/shlib/libc.so
9959 ;;
9960
9961 cygwin*)
9962 # func_win32_libid is a shell function defined in ltmain.sh
9963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9964 lt_cv_file_magic_cmd='func_win32_libid'
9965 ;;
9966
9967 mingw* | pw32*)
9968 # Base MSYS/MinGW do not provide the 'file' command needed by
9969 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9970 # unless we find 'file', for example because we are cross-compiling.
9971 if ( file / ) >/dev/null 2>&1; then
9972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9973 lt_cv_file_magic_cmd='func_win32_libid'
9974 else
9975 # Keep this pattern in sync with the one in func_win32_libid.
9976 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9977 lt_cv_file_magic_cmd='$OBJDUMP -f'
9978 fi
9979 ;;
9980
9981 cegcc*)
9982 # use the weaker test based on 'objdump'. See mingw*.
9983 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9984 lt_cv_file_magic_cmd='$OBJDUMP -f'
9985 ;;
9986
9987 darwin* | rhapsody*)
9988 lt_cv_deplibs_check_method=pass_all
9989 ;;
9990
9991 freebsd* | dragonfly* | midnightbsd*)
9992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9993 case $host_cpu in
9994 i*86 )
9995 # Not sure whether the presence of OpenBSD here was a mistake.
9996 # Let's accept both of them until this is cleared up.
9997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9998 lt_cv_file_magic_cmd=$FILECMD
9999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10000 ;;
10001 esac
10002 else
10003 lt_cv_deplibs_check_method=pass_all
10004 fi
10005 ;;
10006
10007 haiku*)
10008 lt_cv_deplibs_check_method=pass_all
10009 ;;
10010
10011 hpux10.20* | hpux11*)
10012 lt_cv_file_magic_cmd=$FILECMD
10013 case $host_cpu in
10014 ia64*)
10015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10016 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10017 ;;
10018 hppa*64*)
10019 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]'
10020 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10021 ;;
10022 *)
10023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10024 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10025 ;;
10026 esac
10027 ;;
10028
10029 interix[3-9]*)
10030 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10032 ;;
10033
10034 irix5* | irix6* | nonstopux*)
10035 case $LD in
10036 *-32|*"-32 ") libmagic=32-bit;;
10037 *-n32|*"-n32 ") libmagic=N32;;
10038 *-64|*"-64 ") libmagic=64-bit;;
10039 *) libmagic=never-match;;
10040 esac
10041 lt_cv_deplibs_check_method=pass_all
10042 ;;
10043
10044 # This must be glibc/ELF.
10045 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10046 lt_cv_deplibs_check_method=pass_all
10047 ;;
10048
10049 netbsd* | netbsdelf*-gnu)
10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10052 else
10053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10054 fi
10055 ;;
10056
10057 newos6*)
10058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10059 lt_cv_file_magic_cmd=$FILECMD
10060 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10061 ;;
10062
10063 *nto* | *qnx*)
10064 lt_cv_deplibs_check_method=pass_all
10065 ;;
10066
10067 openbsd* | bitrig*)
10068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10070 else
10071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10072 fi
10073 ;;
10074
10075 osf3* | osf4* | osf5*)
10076 lt_cv_deplibs_check_method=pass_all
10077 ;;
10078
10079 rdos*)
10080 lt_cv_deplibs_check_method=pass_all
10081 ;;
10082
10083 solaris*)
10084 lt_cv_deplibs_check_method=pass_all
10085 ;;
10086
10087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10088 lt_cv_deplibs_check_method=pass_all
10089 ;;
10090
10091 sysv4 | sysv4.3*)
10092 case $host_vendor in
10093 motorola)
10094 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]'
10095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10096 ;;
10097 ncr)
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100 sequent)
10101 lt_cv_file_magic_cmd='/bin/file'
10102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10103 ;;
10104 sni)
10105 lt_cv_file_magic_cmd='/bin/file'
10106 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10107 lt_cv_file_magic_test_file=/lib/libc.so
10108 ;;
10109 siemens)
10110 lt_cv_deplibs_check_method=pass_all
10111 ;;
10112 pc)
10113 lt_cv_deplibs_check_method=pass_all
10114 ;;
10115 esac
10116 ;;
10117
10118 tpf*)
10119 lt_cv_deplibs_check_method=pass_all
10120 ;;
10121 os2*)
10122 lt_cv_deplibs_check_method=pass_all
10123 ;;
10124 esac
10125
10126 fi
10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10128 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10129
10130 file_magic_glob=
10131 want_nocaseglob=no
10132 if test "$build" = "$host"; then
10133 case $host_os in
10134 mingw* | pw32*)
10135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10136 want_nocaseglob=yes
10137 else
10138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10139 fi
10140 ;;
10141 esac
10142 fi
10143
10144 file_magic_cmd=$lt_cv_file_magic_cmd
10145 deplibs_check_method=$lt_cv_deplibs_check_method
10146 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 if test -n "$ac_tool_prefix"; then
10170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10171 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 printf %s "checking for $ac_word... " >&6; }
10174 if test ${ac_cv_prog_DLLTOOL+y}
10175 then :
10176 printf %s "(cached) " >&6
10177 else $as_nop
10178 if test -n "$DLLTOOL"; then
10179 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184 IFS=$as_save_IFS
10185 case $as_dir in #(((
10186 '') as_dir=./ ;;
10187 */) ;;
10188 *) as_dir=$as_dir/ ;;
10189 esac
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10192 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10194 break 2
10195 fi
10196 done
10197 done
10198 IFS=$as_save_IFS
10199
10200 fi
10201 fi
10202 DLLTOOL=$ac_cv_prog_DLLTOOL
10203 if test -n "$DLLTOOL"; then
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10205 printf "%s\n" "$DLLTOOL" >&6; }
10206 else
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 printf "%s\n" "no" >&6; }
10209 fi
10210
10211
10212 fi
10213 if test -z "$ac_cv_prog_DLLTOOL"; then
10214 ac_ct_DLLTOOL=$DLLTOOL
10215 # Extract the first word of "dlltool", so it can be a program name with args.
10216 set dummy dlltool; ac_word=$2
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 printf %s "checking for $ac_word... " >&6; }
10219 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10220 then :
10221 printf %s "(cached) " >&6
10222 else $as_nop
10223 if test -n "$ac_ct_DLLTOOL"; then
10224 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10225 else
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229 IFS=$as_save_IFS
10230 case $as_dir in #(((
10231 '') as_dir=./ ;;
10232 */) ;;
10233 *) as_dir=$as_dir/ ;;
10234 esac
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241 done
10242 done
10243 IFS=$as_save_IFS
10244
10245 fi
10246 fi
10247 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10248 if test -n "$ac_ct_DLLTOOL"; then
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10250 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10251 else
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 printf "%s\n" "no" >&6; }
10254 fi
10255
10256 if test "x$ac_ct_DLLTOOL" = x; then
10257 DLLTOOL="false"
10258 else
10259 case $cross_compiling:$ac_tool_warned in
10260 yes:)
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10262 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10263 ac_tool_warned=yes ;;
10264 esac
10265 DLLTOOL=$ac_ct_DLLTOOL
10266 fi
10267 else
10268 DLLTOOL="$ac_cv_prog_DLLTOOL"
10269 fi
10270
10271 test -z "$DLLTOOL" && DLLTOOL=dlltool
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10283 printf %s "checking how to associate runtime and link libraries... " >&6; }
10284 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10285 then :
10286 printf %s "(cached) " >&6
10287 else $as_nop
10288 lt_cv_sharedlib_from_linklib_cmd='unknown'
10289
10290 case $host_os in
10291 cygwin* | mingw* | pw32* | cegcc*)
10292 # two different shell functions defined in ltmain.sh;
10293 # decide which one to use based on capabilities of $DLLTOOL
10294 case `$DLLTOOL --help 2>&1` in
10295 *--identify-strict*)
10296 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10297 ;;
10298 *)
10299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10300 ;;
10301 esac
10302 ;;
10303 *)
10304 # fallback: assume linklib IS sharedlib
10305 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10306 ;;
10307 esac
10308
10309 fi
10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10311 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10312 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10313 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10314
10315
10316
10317
10318
10319
10320
10321 if test -n "$ac_tool_prefix"; then
10322 for ac_prog in ar
10323 do
10324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 printf %s "checking for $ac_word... " >&6; }
10328 if test ${ac_cv_prog_AR+y}
10329 then :
10330 printf %s "(cached) " >&6
10331 else $as_nop
10332 if test -n "$AR"; then
10333 ac_cv_prog_AR="$AR" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 case $as_dir in #(((
10340 '') as_dir=./ ;;
10341 */) ;;
10342 *) as_dir=$as_dir/ ;;
10343 esac
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350 done
10351 done
10352 IFS=$as_save_IFS
10353
10354 fi
10355 fi
10356 AR=$ac_cv_prog_AR
10357 if test -n "$AR"; then
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10359 printf "%s\n" "$AR" >&6; }
10360 else
10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 printf "%s\n" "no" >&6; }
10363 fi
10364
10365
10366 test -n "$AR" && break
10367 done
10368 fi
10369 if test -z "$AR"; then
10370 ac_ct_AR=$AR
10371 for ac_prog in ar
10372 do
10373 # Extract the first word of "$ac_prog", so it can be a program name with args.
10374 set dummy $ac_prog; ac_word=$2
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376 printf %s "checking for $ac_word... " >&6; }
10377 if test ${ac_cv_prog_ac_ct_AR+y}
10378 then :
10379 printf %s "(cached) " >&6
10380 else $as_nop
10381 if test -n "$ac_ct_AR"; then
10382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10383 else
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387 IFS=$as_save_IFS
10388 case $as_dir in #(((
10389 '') as_dir=./ ;;
10390 */) ;;
10391 *) as_dir=$as_dir/ ;;
10392 esac
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10395 ac_cv_prog_ac_ct_AR="$ac_prog"
10396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10397 break 2
10398 fi
10399 done
10400 done
10401 IFS=$as_save_IFS
10402
10403 fi
10404 fi
10405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10406 if test -n "$ac_ct_AR"; then
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10408 printf "%s\n" "$ac_ct_AR" >&6; }
10409 else
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 printf "%s\n" "no" >&6; }
10412 fi
10413
10414
10415 test -n "$ac_ct_AR" && break
10416 done
10417
10418 if test "x$ac_ct_AR" = x; then
10419 AR="false"
10420 else
10421 case $cross_compiling:$ac_tool_warned in
10422 yes:)
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10424 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425 ac_tool_warned=yes ;;
10426 esac
10427 AR=$ac_ct_AR
10428 fi
10429 fi
10430
10431 : ${AR=ar}
10432
10433
10434
10435
10436
10437
10438 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10439 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10440 # higher priority because thats what people were doing historically (setting
10441 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
10442 # variable obsoleted/removed.
10443
10444 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10445 lt_ar_flags=$AR_FLAGS
10446
10447
10448
10449
10450
10451
10452 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
10453 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10454
10455
10456
10457
10458
10459
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10461 printf %s "checking for archiver @FILE support... " >&6; }
10462 if test ${lt_cv_ar_at_file+y}
10463 then :
10464 printf %s "(cached) " >&6
10465 else $as_nop
10466 lt_cv_ar_at_file=no
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469
10470 int
10471 main (void)
10472 {
10473
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_compile "$LINENO"
10479 then :
10480 echo conftest.$ac_objext > conftest.lst
10481 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10483 (eval $lt_ar_try) 2>&5
10484 ac_status=$?
10485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486 test $ac_status = 0; }
10487 if test 0 -eq "$ac_status"; then
10488 # Ensure the archiver fails upon bogus file names.
10489 rm -f conftest.$ac_objext libconftest.a
10490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10491 (eval $lt_ar_try) 2>&5
10492 ac_status=$?
10493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; }
10495 if test 0 -ne "$ac_status"; then
10496 lt_cv_ar_at_file=@
10497 fi
10498 fi
10499 rm -f conftest.* libconftest.a
10500
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10503
10504 fi
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10506 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10507
10508 if test no = "$lt_cv_ar_at_file"; then
10509 archiver_list_spec=
10510 else
10511 archiver_list_spec=$lt_cv_ar_at_file
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520 if test -n "$ac_tool_prefix"; then
10521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10522 set dummy ${ac_tool_prefix}strip; ac_word=$2
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 printf %s "checking for $ac_word... " >&6; }
10525 if test ${ac_cv_prog_STRIP+y}
10526 then :
10527 printf %s "(cached) " >&6
10528 else $as_nop
10529 if test -n "$STRIP"; then
10530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10531 else
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535 IFS=$as_save_IFS
10536 case $as_dir in #(((
10537 '') as_dir=./ ;;
10538 */) ;;
10539 *) as_dir=$as_dir/ ;;
10540 esac
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547 done
10548 done
10549 IFS=$as_save_IFS
10550
10551 fi
10552 fi
10553 STRIP=$ac_cv_prog_STRIP
10554 if test -n "$STRIP"; then
10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10556 printf "%s\n" "$STRIP" >&6; }
10557 else
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 printf "%s\n" "no" >&6; }
10560 fi
10561
10562
10563 fi
10564 if test -z "$ac_cv_prog_STRIP"; then
10565 ac_ct_STRIP=$STRIP
10566 # Extract the first word of "strip", so it can be a program name with args.
10567 set dummy strip; ac_word=$2
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 printf %s "checking for $ac_word... " >&6; }
10570 if test ${ac_cv_prog_ac_ct_STRIP+y}
10571 then :
10572 printf %s "(cached) " >&6
10573 else $as_nop
10574 if test -n "$ac_ct_STRIP"; then
10575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10576 else
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578 for as_dir in $PATH
10579 do
10580 IFS=$as_save_IFS
10581 case $as_dir in #(((
10582 '') as_dir=./ ;;
10583 */) ;;
10584 *) as_dir=$as_dir/ ;;
10585 esac
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_ac_ct_STRIP="strip"
10589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592 done
10593 done
10594 IFS=$as_save_IFS
10595
10596 fi
10597 fi
10598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10599 if test -n "$ac_ct_STRIP"; then
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10601 printf "%s\n" "$ac_ct_STRIP" >&6; }
10602 else
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 printf "%s\n" "no" >&6; }
10605 fi
10606
10607 if test "x$ac_ct_STRIP" = x; then
10608 STRIP=":"
10609 else
10610 case $cross_compiling:$ac_tool_warned in
10611 yes:)
10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10614 ac_tool_warned=yes ;;
10615 esac
10616 STRIP=$ac_ct_STRIP
10617 fi
10618 else
10619 STRIP="$ac_cv_prog_STRIP"
10620 fi
10621
10622 test -z "$STRIP" && STRIP=:
10623
10624
10625
10626
10627
10628
10629 if test -n "$ac_tool_prefix"; then
10630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 printf %s "checking for $ac_word... " >&6; }
10634 if test ${ac_cv_prog_RANLIB+y}
10635 then :
10636 printf %s "(cached) " >&6
10637 else $as_nop
10638 if test -n "$RANLIB"; then
10639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10643 do
10644 IFS=$as_save_IFS
10645 case $as_dir in #(((
10646 '') as_dir=./ ;;
10647 */) ;;
10648 *) as_dir=$as_dir/ ;;
10649 esac
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10654 break 2
10655 fi
10656 done
10657 done
10658 IFS=$as_save_IFS
10659
10660 fi
10661 fi
10662 RANLIB=$ac_cv_prog_RANLIB
10663 if test -n "$RANLIB"; then
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10665 printf "%s\n" "$RANLIB" >&6; }
10666 else
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 printf "%s\n" "no" >&6; }
10669 fi
10670
10671
10672 fi
10673 if test -z "$ac_cv_prog_RANLIB"; then
10674 ac_ct_RANLIB=$RANLIB
10675 # Extract the first word of "ranlib", so it can be a program name with args.
10676 set dummy ranlib; ac_word=$2
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 printf %s "checking for $ac_word... " >&6; }
10679 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10680 then :
10681 printf %s "(cached) " >&6
10682 else $as_nop
10683 if test -n "$ac_ct_RANLIB"; then
10684 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10685 else
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689 IFS=$as_save_IFS
10690 case $as_dir in #(((
10691 '') as_dir=./ ;;
10692 */) ;;
10693 *) as_dir=$as_dir/ ;;
10694 esac
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_ac_ct_RANLIB="ranlib"
10698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701 done
10702 done
10703 IFS=$as_save_IFS
10704
10705 fi
10706 fi
10707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10708 if test -n "$ac_ct_RANLIB"; then
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10710 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10711 else
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 printf "%s\n" "no" >&6; }
10714 fi
10715
10716 if test "x$ac_ct_RANLIB" = x; then
10717 RANLIB=":"
10718 else
10719 case $cross_compiling:$ac_tool_warned in
10720 yes:)
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10723 ac_tool_warned=yes ;;
10724 esac
10725 RANLIB=$ac_ct_RANLIB
10726 fi
10727 else
10728 RANLIB="$ac_cv_prog_RANLIB"
10729 fi
10730
10731 test -z "$RANLIB" && RANLIB=:
10732
10733
10734
10735
10736
10737
10738 # Determine commands to create old-style static archives.
10739 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10740 old_postinstall_cmds='chmod 644 $oldlib'
10741 old_postuninstall_cmds=
10742
10743 if test -n "$RANLIB"; then
10744 case $host_os in
10745 bitrig* | openbsd*)
10746 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10747 ;;
10748 *)
10749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10750 ;;
10751 esac
10752 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10753 fi
10754
10755 case $host_os in
10756 darwin*)
10757 lock_old_archive_extraction=yes ;;
10758 *)
10759 lock_old_archive_extraction=no ;;
10760 esac
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800 # If no C compiler was specified, use CC.
10801 LTCC=${LTCC-"$CC"}
10802
10803 # If no C compiler flags were specified, use CFLAGS.
10804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10805
10806 # Allow CC to be a program name with arguments.
10807 compiler=$CC
10808
10809
10810 # Check for command to grab the raw symbol name followed by C symbol from nm.
10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10812 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10813 if test ${lt_cv_sys_global_symbol_pipe+y}
10814 then :
10815 printf %s "(cached) " >&6
10816 else $as_nop
10817
10818 # These are sane defaults that work on at least a few old systems.
10819 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10820
10821 # Character class describing NM global symbol codes.
10822 symcode='[BCDEGRST]'
10823
10824 # Regexp to match symbols that can be accessed directly from C.
10825 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10826
10827 # Define system-specific variables.
10828 case $host_os in
10829 aix*)
10830 symcode='[BCDT]'
10831 ;;
10832 cygwin* | mingw* | pw32* | cegcc*)
10833 symcode='[ABCDGISTW]'
10834 ;;
10835 hpux*)
10836 if test ia64 = "$host_cpu"; then
10837 symcode='[ABCDEGRST]'
10838 fi
10839 ;;
10840 irix* | nonstopux*)
10841 symcode='[BCDEGRST]'
10842 ;;
10843 osf*)
10844 symcode='[BCDEGQRST]'
10845 ;;
10846 solaris*)
10847 symcode='[BDRT]'
10848 ;;
10849 sco3.2v5*)
10850 symcode='[DT]'
10851 ;;
10852 sysv4.2uw2*)
10853 symcode='[DT]'
10854 ;;
10855 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10856 symcode='[ABDT]'
10857 ;;
10858 sysv4)
10859 symcode='[DFNSTU]'
10860 ;;
10861 esac
10862
10863 # If we're using GNU nm, then use its standard symbol codes.
10864 case `$NM -V 2>&1` in
10865 *GNU* | *'with BFD'*)
10866 symcode='[ABCDGIRSTW]' ;;
10867 esac
10868
10869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10870 # Gets list of data symbols to import.
10871 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10872 # Adjust the below global symbol transforms to fixup imported variables.
10873 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10874 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10875 lt_c_name_lib_hook="\
10876 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10877 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10878 else
10879 # Disable hooks by default.
10880 lt_cv_sys_global_symbol_to_import=
10881 lt_cdecl_hook=
10882 lt_c_name_hook=
10883 lt_c_name_lib_hook=
10884 fi
10885
10886 # Transform an extracted symbol line into a proper C declaration.
10887 # Some systems (esp. on ia64) link data and code symbols differently,
10888 # so use this general approach.
10889 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10890 $lt_cdecl_hook\
10891 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10892 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10893
10894 # Transform an extracted symbol line into symbol name and symbol address
10895 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10896 $lt_c_name_hook\
10897 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10898 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10899
10900 # Transform an extracted symbol line into symbol name with lib prefix and
10901 # symbol address.
10902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10903 $lt_c_name_lib_hook\
10904 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10905 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10906 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10907
10908 # Handle CRLF in mingw tool chain
10909 opt_cr=
10910 case $build_os in
10911 mingw*)
10912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10913 ;;
10914 esac
10915
10916 # Try without a prefix underscore, then with it.
10917 for ac_symprfx in "" "_"; do
10918
10919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10920 symxfrm="\\1 $ac_symprfx\\2 \\2"
10921
10922 # Write the raw and C identifiers.
10923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10924 # Fake it for dumpbin and say T for any non-static function,
10925 # D for any global variable and I for any imported variable.
10926 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10927 # which start with @ or ?.
10928 lt_cv_sys_global_symbol_pipe="$AWK '"\
10929 " {last_section=section; section=\$ 3};"\
10930 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10931 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10932 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10933 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10934 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10935 " \$ 0!~/External *\|/{next};"\
10936 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10937 " {if(hide[section]) next};"\
10938 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10939 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10940 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10941 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10942 " ' prfx=^$ac_symprfx"
10943 else
10944 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10945 fi
10946 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10947
10948 # Check to see that the pipe works correctly.
10949 pipe_works=no
10950
10951 rm -f conftest*
10952 cat > conftest.$ac_ext <<_LT_EOF
10953 #ifdef __cplusplus
10954 extern "C" {
10955 #endif
10956 char nm_test_var;
10957 void nm_test_func(void);
10958 void nm_test_func(void){}
10959 #ifdef __cplusplus
10960 }
10961 #endif
10962 int main(){nm_test_var='a';nm_test_func();return(0);}
10963 _LT_EOF
10964
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10966 (eval $ac_compile) 2>&5
10967 ac_status=$?
10968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; }; then
10970 # Now try to grab the symbols.
10971 nlist=conftest.nm
10972 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10973 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10974 # Try sorting and uniquifying the output.
10975 if sort "$nlist" | uniq > "$nlist"T; then
10976 mv -f "$nlist"T "$nlist"
10977 else
10978 rm -f "$nlist"T
10979 fi
10980
10981 # Make sure that we snagged all the symbols we need.
10982 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10983 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10984 cat <<_LT_EOF > conftest.$ac_ext
10985 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10986 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10987 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10988 relocations are performed -- see ld's documentation on pseudo-relocs. */
10989 # define LT_DLSYM_CONST
10990 #elif defined __osf__
10991 /* This system does not cope well with relocations in const data. */
10992 # define LT_DLSYM_CONST
10993 #else
10994 # define LT_DLSYM_CONST const
10995 #endif
10996
10997 #ifdef __cplusplus
10998 extern "C" {
10999 #endif
11000
11001 _LT_EOF
11002 # Now generate the symbol file.
11003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11004
11005 cat <<_LT_EOF >> conftest.$ac_ext
11006
11007 /* The mapping between symbol names and symbols. */
11008 LT_DLSYM_CONST struct {
11009 const char *name;
11010 void *address;
11011 }
11012 lt__PROGRAM__LTX_preloaded_symbols[] =
11013 {
11014 { "@PROGRAM@", (void *) 0 },
11015 _LT_EOF
11016 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11017 cat <<\_LT_EOF >> conftest.$ac_ext
11018 {0, (void *) 0}
11019 };
11020
11021 /* This works around a problem in FreeBSD linker */
11022 #ifdef FREEBSD_WORKAROUND
11023 static const void *lt_preloaded_setup() {
11024 return lt__PROGRAM__LTX_preloaded_symbols;
11025 }
11026 #endif
11027
11028 #ifdef __cplusplus
11029 }
11030 #endif
11031 _LT_EOF
11032 # Now try linking the two files.
11033 mv conftest.$ac_objext conftstm.$ac_objext
11034 lt_globsym_save_LIBS=$LIBS
11035 lt_globsym_save_CFLAGS=$CFLAGS
11036 LIBS=conftstm.$ac_objext
11037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11039 (eval $ac_link) 2>&5
11040 ac_status=$?
11041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11043 pipe_works=yes
11044 fi
11045 LIBS=$lt_globsym_save_LIBS
11046 CFLAGS=$lt_globsym_save_CFLAGS
11047 else
11048 echo "cannot find nm_test_func in $nlist" >&5
11049 fi
11050 else
11051 echo "cannot find nm_test_var in $nlist" >&5
11052 fi
11053 else
11054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11055 fi
11056 else
11057 echo "$progname: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 fi
11060 rm -rf conftest* conftst*
11061
11062 # Do not use the global_symbol_pipe unless it works.
11063 if test yes = "$pipe_works"; then
11064 break
11065 else
11066 lt_cv_sys_global_symbol_pipe=
11067 fi
11068 done
11069
11070 fi
11071
11072 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11073 lt_cv_sys_global_symbol_to_cdecl=
11074 fi
11075 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11077 printf "%s\n" "failed" >&6; }
11078 else
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11080 printf "%s\n" "ok" >&6; }
11081 fi
11082
11083 # Response file support.
11084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11085 nm_file_list_spec='@'
11086 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11087 nm_file_list_spec='@'
11088 fi
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11127 printf %s "checking for sysroot... " >&6; }
11128
11129 # Check whether --with-sysroot was given.
11130 if test ${with_sysroot+y}
11131 then :
11132 withval=$with_sysroot;
11133 else $as_nop
11134 with_sysroot=no
11135 fi
11136
11137
11138 lt_sysroot=
11139 case $with_sysroot in #(
11140 yes)
11141 if test yes = "$GCC"; then
11142 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11143 fi
11144 ;; #(
11145 /*)
11146 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11147 ;; #(
11148 no|'')
11149 ;; #(
11150 *)
11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11152 printf "%s\n" "$with_sysroot" >&6; }
11153 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11154 ;;
11155 esac
11156
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11158 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11159
11160
11161
11162
11163
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11165 printf %s "checking for a working dd... " >&6; }
11166 if test ${ac_cv_path_lt_DD+y}
11167 then :
11168 printf %s "(cached) " >&6
11169 else $as_nop
11170 printf 0123456789abcdef0123456789abcdef >conftest.i
11171 cat conftest.i conftest.i >conftest2.i
11172 : ${lt_DD:=$DD}
11173 if test -z "$lt_DD"; then
11174 ac_path_lt_DD_found=false
11175 # Loop through the user's path and test for each of PROGNAME-LIST
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179 IFS=$as_save_IFS
11180 case $as_dir in #(((
11181 '') as_dir=./ ;;
11182 */) ;;
11183 *) as_dir=$as_dir/ ;;
11184 esac
11185 for ac_prog in dd
11186 do
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11189 as_fn_executable_p "$ac_path_lt_DD" || continue
11190 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11191 cmp -s conftest.i conftest.out \
11192 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11193 fi
11194 $ac_path_lt_DD_found && break 3
11195 done
11196 done
11197 done
11198 IFS=$as_save_IFS
11199 if test -z "$ac_cv_path_lt_DD"; then
11200 :
11201 fi
11202 else
11203 ac_cv_path_lt_DD=$lt_DD
11204 fi
11205
11206 rm -f conftest.i conftest2.i conftest.out
11207 fi
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11209 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11210
11211
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11213 printf %s "checking how to truncate binary pipes... " >&6; }
11214 if test ${lt_cv_truncate_bin+y}
11215 then :
11216 printf %s "(cached) " >&6
11217 else $as_nop
11218 printf 0123456789abcdef0123456789abcdef >conftest.i
11219 cat conftest.i conftest.i >conftest2.i
11220 lt_cv_truncate_bin=
11221 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11222 cmp -s conftest.i conftest.out \
11223 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11224 fi
11225 rm -f conftest.i conftest2.i conftest.out
11226 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11227 fi
11228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11229 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11230
11231
11232
11233
11234
11235
11236
11237 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11238 func_cc_basename ()
11239 {
11240 for cc_temp in $*""; do
11241 case $cc_temp in
11242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11244 \-*) ;;
11245 *) break;;
11246 esac
11247 done
11248 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11249 }
11250
11251 # Check whether --enable-libtool-lock was given.
11252 if test ${enable_libtool_lock+y}
11253 then :
11254 enableval=$enable_libtool_lock;
11255 fi
11256
11257 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11258
11259 # Some flags need to be propagated to the compiler or linker for good
11260 # libtool support.
11261 case $host in
11262 ia64-*-hpux*)
11263 # Find out what ABI is being produced by ac_compile, and set mode
11264 # options accordingly.
11265 echo 'int i;' > conftest.$ac_ext
11266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11267 (eval $ac_compile) 2>&5
11268 ac_status=$?
11269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11270 test $ac_status = 0; }; then
11271 case `$FILECMD conftest.$ac_objext` in
11272 *ELF-32*)
11273 HPUX_IA64_MODE=32
11274 ;;
11275 *ELF-64*)
11276 HPUX_IA64_MODE=64
11277 ;;
11278 esac
11279 fi
11280 rm -rf conftest*
11281 ;;
11282 *-*-irix6*)
11283 # Find out what ABI is being produced by ac_compile, and set linker
11284 # options accordingly.
11285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11287 (eval $ac_compile) 2>&5
11288 ac_status=$?
11289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; }; then
11291 if test yes = "$lt_cv_prog_gnu_ld"; then
11292 case `$FILECMD conftest.$ac_objext` in
11293 *32-bit*)
11294 LD="${LD-ld} -melf32bsmip"
11295 ;;
11296 *N32*)
11297 LD="${LD-ld} -melf32bmipn32"
11298 ;;
11299 *64-bit*)
11300 LD="${LD-ld} -melf64bmip"
11301 ;;
11302 esac
11303 else
11304 case `$FILECMD conftest.$ac_objext` in
11305 *32-bit*)
11306 LD="${LD-ld} -32"
11307 ;;
11308 *N32*)
11309 LD="${LD-ld} -n32"
11310 ;;
11311 *64-bit*)
11312 LD="${LD-ld} -64"
11313 ;;
11314 esac
11315 fi
11316 fi
11317 rm -rf conftest*
11318 ;;
11319
11320 mips64*-*linux*)
11321 # Find out what ABI is being produced by ac_compile, and set linker
11322 # options accordingly.
11323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11325 (eval $ac_compile) 2>&5
11326 ac_status=$?
11327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328 test $ac_status = 0; }; then
11329 emul=elf
11330 case `$FILECMD conftest.$ac_objext` in
11331 *32-bit*)
11332 emul="${emul}32"
11333 ;;
11334 *64-bit*)
11335 emul="${emul}64"
11336 ;;
11337 esac
11338 case `$FILECMD conftest.$ac_objext` in
11339 *MSB*)
11340 emul="${emul}btsmip"
11341 ;;
11342 *LSB*)
11343 emul="${emul}ltsmip"
11344 ;;
11345 esac
11346 case `$FILECMD conftest.$ac_objext` in
11347 *N32*)
11348 emul="${emul}n32"
11349 ;;
11350 esac
11351 LD="${LD-ld} -m $emul"
11352 fi
11353 rm -rf conftest*
11354 ;;
11355
11356 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11357 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11358 # Find out what ABI is being produced by ac_compile, and set linker
11359 # options accordingly. Note that the listed cases only cover the
11360 # situations where additional linker options are needed (such as when
11361 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11362 # vice versa); the common cases where no linker options are needed do
11363 # not appear in the list.
11364 echo 'int i;' > conftest.$ac_ext
11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11366 (eval $ac_compile) 2>&5
11367 ac_status=$?
11368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; }; then
11370 case `$FILECMD conftest.o` in
11371 *32-bit*)
11372 case $host in
11373 x86_64-*kfreebsd*-gnu)
11374 LD="${LD-ld} -m elf_i386_fbsd"
11375 ;;
11376 x86_64-*linux*)
11377 case `$FILECMD conftest.o` in
11378 *x86-64*)
11379 LD="${LD-ld} -m elf32_x86_64"
11380 ;;
11381 *)
11382 LD="${LD-ld} -m elf_i386"
11383 ;;
11384 esac
11385 ;;
11386 powerpc64le-*linux*)
11387 LD="${LD-ld} -m elf32lppclinux"
11388 ;;
11389 powerpc64-*linux*)
11390 LD="${LD-ld} -m elf32ppclinux"
11391 ;;
11392 s390x-*linux*)
11393 LD="${LD-ld} -m elf_s390"
11394 ;;
11395 sparc64-*linux*)
11396 LD="${LD-ld} -m elf32_sparc"
11397 ;;
11398 esac
11399 ;;
11400 *64-bit*)
11401 case $host in
11402 x86_64-*kfreebsd*-gnu)
11403 LD="${LD-ld} -m elf_x86_64_fbsd"
11404 ;;
11405 x86_64-*linux*)
11406 LD="${LD-ld} -m elf_x86_64"
11407 ;;
11408 powerpcle-*linux*)
11409 LD="${LD-ld} -m elf64lppc"
11410 ;;
11411 powerpc-*linux*)
11412 LD="${LD-ld} -m elf64ppc"
11413 ;;
11414 s390*-*linux*|s390*-*tpf*)
11415 LD="${LD-ld} -m elf64_s390"
11416 ;;
11417 sparc*-*linux*)
11418 LD="${LD-ld} -m elf64_sparc"
11419 ;;
11420 esac
11421 ;;
11422 esac
11423 fi
11424 rm -rf conftest*
11425 ;;
11426
11427 *-*-sco3.2v5*)
11428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11429 SAVE_CFLAGS=$CFLAGS
11430 CFLAGS="$CFLAGS -belf"
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11432 printf %s "checking whether the C compiler needs -belf... " >&6; }
11433 if test ${lt_cv_cc_needs_belf+y}
11434 then :
11435 printf %s "(cached) " >&6
11436 else $as_nop
11437 ac_ext=c
11438 ac_cpp='$CPP $CPPFLAGS'
11439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11442
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445
11446 int
11447 main (void)
11448 {
11449
11450 ;
11451 return 0;
11452 }
11453 _ACEOF
11454 if ac_fn_c_try_link "$LINENO"
11455 then :
11456 lt_cv_cc_needs_belf=yes
11457 else $as_nop
11458 lt_cv_cc_needs_belf=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11461 conftest$ac_exeext conftest.$ac_ext
11462 ac_ext=c
11463 ac_cpp='$CPP $CPPFLAGS'
11464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11467
11468 fi
11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11470 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11471 if test yes != "$lt_cv_cc_needs_belf"; then
11472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11473 CFLAGS=$SAVE_CFLAGS
11474 fi
11475 ;;
11476 *-*solaris*)
11477 # Find out what ABI is being produced by ac_compile, and set linker
11478 # options accordingly.
11479 echo 'int i;' > conftest.$ac_ext
11480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11481 (eval $ac_compile) 2>&5
11482 ac_status=$?
11483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11484 test $ac_status = 0; }; then
11485 case `$FILECMD conftest.o` in
11486 *64-bit*)
11487 case $lt_cv_prog_gnu_ld in
11488 yes*)
11489 case $host in
11490 i?86-*-solaris*|x86_64-*-solaris*)
11491 LD="${LD-ld} -m elf_x86_64"
11492 ;;
11493 sparc*-*-solaris*)
11494 LD="${LD-ld} -m elf64_sparc"
11495 ;;
11496 esac
11497 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11498 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11499 LD=${LD-ld}_sol2
11500 fi
11501 ;;
11502 *)
11503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11504 LD="${LD-ld} -64"
11505 fi
11506 ;;
11507 esac
11508 ;;
11509 esac
11510 fi
11511 rm -rf conftest*
11512 ;;
11513 esac
11514
11515 need_locks=$enable_libtool_lock
11516
11517 if test -n "$ac_tool_prefix"; then
11518 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11519 set dummy ${ac_tool_prefix}mt; ac_word=$2
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 printf %s "checking for $ac_word... " >&6; }
11522 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11523 then :
11524 printf %s "(cached) " >&6
11525 else $as_nop
11526 if test -n "$MANIFEST_TOOL"; then
11527 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11531 do
11532 IFS=$as_save_IFS
11533 case $as_dir in #(((
11534 '') as_dir=./ ;;
11535 */) ;;
11536 *) as_dir=$as_dir/ ;;
11537 esac
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544 done
11545 done
11546 IFS=$as_save_IFS
11547
11548 fi
11549 fi
11550 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11551 if test -n "$MANIFEST_TOOL"; then
11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11553 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11554 else
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 printf "%s\n" "no" >&6; }
11557 fi
11558
11559
11560 fi
11561 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11562 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11563 # Extract the first word of "mt", so it can be a program name with args.
11564 set dummy mt; ac_word=$2
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 printf %s "checking for $ac_word... " >&6; }
11567 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11568 then :
11569 printf %s "(cached) " >&6
11570 else $as_nop
11571 if test -n "$ac_ct_MANIFEST_TOOL"; then
11572 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11573 else
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11576 do
11577 IFS=$as_save_IFS
11578 case $as_dir in #(((
11579 '') as_dir=./ ;;
11580 */) ;;
11581 *) as_dir=$as_dir/ ;;
11582 esac
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11585 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11587 break 2
11588 fi
11589 done
11590 done
11591 IFS=$as_save_IFS
11592
11593 fi
11594 fi
11595 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11596 if test -n "$ac_ct_MANIFEST_TOOL"; then
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11598 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11599 else
11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 printf "%s\n" "no" >&6; }
11602 fi
11603
11604 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11605 MANIFEST_TOOL=":"
11606 else
11607 case $cross_compiling:$ac_tool_warned in
11608 yes:)
11609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11610 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11611 ac_tool_warned=yes ;;
11612 esac
11613 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11614 fi
11615 else
11616 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11617 fi
11618
11619 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11621 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11622 if test ${lt_cv_path_mainfest_tool+y}
11623 then :
11624 printf %s "(cached) " >&6
11625 else $as_nop
11626 lt_cv_path_mainfest_tool=no
11627 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11628 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11629 cat conftest.err >&5
11630 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11631 lt_cv_path_mainfest_tool=yes
11632 fi
11633 rm -f conftest*
11634 fi
11635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11636 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11637 if test yes != "$lt_cv_path_mainfest_tool"; then
11638 MANIFEST_TOOL=:
11639 fi
11640
11641
11642
11643
11644
11645
11646 case $host_os in
11647 rhapsody* | darwin*)
11648 if test -n "$ac_tool_prefix"; then
11649 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11650 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 printf %s "checking for $ac_word... " >&6; }
11653 if test ${ac_cv_prog_DSYMUTIL+y}
11654 then :
11655 printf %s "(cached) " >&6
11656 else $as_nop
11657 if test -n "$DSYMUTIL"; then
11658 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663 IFS=$as_save_IFS
11664 case $as_dir in #(((
11665 '') as_dir=./ ;;
11666 */) ;;
11667 *) as_dir=$as_dir/ ;;
11668 esac
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11671 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675 done
11676 done
11677 IFS=$as_save_IFS
11678
11679 fi
11680 fi
11681 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11682 if test -n "$DSYMUTIL"; then
11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11684 printf "%s\n" "$DSYMUTIL" >&6; }
11685 else
11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 printf "%s\n" "no" >&6; }
11688 fi
11689
11690
11691 fi
11692 if test -z "$ac_cv_prog_DSYMUTIL"; then
11693 ac_ct_DSYMUTIL=$DSYMUTIL
11694 # Extract the first word of "dsymutil", so it can be a program name with args.
11695 set dummy dsymutil; ac_word=$2
11696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 printf %s "checking for $ac_word... " >&6; }
11698 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11699 then :
11700 printf %s "(cached) " >&6
11701 else $as_nop
11702 if test -n "$ac_ct_DSYMUTIL"; then
11703 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11704 else
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11707 do
11708 IFS=$as_save_IFS
11709 case $as_dir in #(((
11710 '') as_dir=./ ;;
11711 */) ;;
11712 *) as_dir=$as_dir/ ;;
11713 esac
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11716 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11718 break 2
11719 fi
11720 done
11721 done
11722 IFS=$as_save_IFS
11723
11724 fi
11725 fi
11726 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11727 if test -n "$ac_ct_DSYMUTIL"; then
11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11729 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11730 else
11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 printf "%s\n" "no" >&6; }
11733 fi
11734
11735 if test "x$ac_ct_DSYMUTIL" = x; then
11736 DSYMUTIL=":"
11737 else
11738 case $cross_compiling:$ac_tool_warned in
11739 yes:)
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11741 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11742 ac_tool_warned=yes ;;
11743 esac
11744 DSYMUTIL=$ac_ct_DSYMUTIL
11745 fi
11746 else
11747 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11748 fi
11749
11750 if test -n "$ac_tool_prefix"; then
11751 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11752 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 printf %s "checking for $ac_word... " >&6; }
11755 if test ${ac_cv_prog_NMEDIT+y}
11756 then :
11757 printf %s "(cached) " >&6
11758 else $as_nop
11759 if test -n "$NMEDIT"; then
11760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11761 else
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765 IFS=$as_save_IFS
11766 case $as_dir in #(((
11767 '') as_dir=./ ;;
11768 */) ;;
11769 *) as_dir=$as_dir/ ;;
11770 esac
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11773 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777 done
11778 done
11779 IFS=$as_save_IFS
11780
11781 fi
11782 fi
11783 NMEDIT=$ac_cv_prog_NMEDIT
11784 if test -n "$NMEDIT"; then
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11786 printf "%s\n" "$NMEDIT" >&6; }
11787 else
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 printf "%s\n" "no" >&6; }
11790 fi
11791
11792
11793 fi
11794 if test -z "$ac_cv_prog_NMEDIT"; then
11795 ac_ct_NMEDIT=$NMEDIT
11796 # Extract the first word of "nmedit", so it can be a program name with args.
11797 set dummy nmedit; ac_word=$2
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 printf %s "checking for $ac_word... " >&6; }
11800 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11801 then :
11802 printf %s "(cached) " >&6
11803 else $as_nop
11804 if test -n "$ac_ct_NMEDIT"; then
11805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11806 else
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808 for as_dir in $PATH
11809 do
11810 IFS=$as_save_IFS
11811 case $as_dir in #(((
11812 '') as_dir=./ ;;
11813 */) ;;
11814 *) as_dir=$as_dir/ ;;
11815 esac
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826 fi
11827 fi
11828 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11829 if test -n "$ac_ct_NMEDIT"; then
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11831 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11832 else
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 printf "%s\n" "no" >&6; }
11835 fi
11836
11837 if test "x$ac_ct_NMEDIT" = x; then
11838 NMEDIT=":"
11839 else
11840 case $cross_compiling:$ac_tool_warned in
11841 yes:)
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11844 ac_tool_warned=yes ;;
11845 esac
11846 NMEDIT=$ac_ct_NMEDIT
11847 fi
11848 else
11849 NMEDIT="$ac_cv_prog_NMEDIT"
11850 fi
11851
11852 if test -n "$ac_tool_prefix"; then
11853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11854 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 printf %s "checking for $ac_word... " >&6; }
11857 if test ${ac_cv_prog_LIPO+y}
11858 then :
11859 printf %s "(cached) " >&6
11860 else $as_nop
11861 if test -n "$LIPO"; then
11862 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 case $as_dir in #(((
11869 '') as_dir=./ ;;
11870 */) ;;
11871 *) as_dir=$as_dir/ ;;
11872 esac
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11877 break 2
11878 fi
11879 done
11880 done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 LIPO=$ac_cv_prog_LIPO
11886 if test -n "$LIPO"; then
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11888 printf "%s\n" "$LIPO" >&6; }
11889 else
11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 printf "%s\n" "no" >&6; }
11892 fi
11893
11894
11895 fi
11896 if test -z "$ac_cv_prog_LIPO"; then
11897 ac_ct_LIPO=$LIPO
11898 # Extract the first word of "lipo", so it can be a program name with args.
11899 set dummy lipo; ac_word=$2
11900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 printf %s "checking for $ac_word... " >&6; }
11902 if test ${ac_cv_prog_ac_ct_LIPO+y}
11903 then :
11904 printf %s "(cached) " >&6
11905 else $as_nop
11906 if test -n "$ac_ct_LIPO"; then
11907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912 IFS=$as_save_IFS
11913 case $as_dir in #(((
11914 '') as_dir=./ ;;
11915 */) ;;
11916 *) as_dir=$as_dir/ ;;
11917 esac
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11920 ac_cv_prog_ac_ct_LIPO="lipo"
11921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11922 break 2
11923 fi
11924 done
11925 done
11926 IFS=$as_save_IFS
11927
11928 fi
11929 fi
11930 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11931 if test -n "$ac_ct_LIPO"; then
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11933 printf "%s\n" "$ac_ct_LIPO" >&6; }
11934 else
11935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 printf "%s\n" "no" >&6; }
11937 fi
11938
11939 if test "x$ac_ct_LIPO" = x; then
11940 LIPO=":"
11941 else
11942 case $cross_compiling:$ac_tool_warned in
11943 yes:)
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11946 ac_tool_warned=yes ;;
11947 esac
11948 LIPO=$ac_ct_LIPO
11949 fi
11950 else
11951 LIPO="$ac_cv_prog_LIPO"
11952 fi
11953
11954 if test -n "$ac_tool_prefix"; then
11955 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11956 set dummy ${ac_tool_prefix}otool; ac_word=$2
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 printf %s "checking for $ac_word... " >&6; }
11959 if test ${ac_cv_prog_OTOOL+y}
11960 then :
11961 printf %s "(cached) " >&6
11962 else $as_nop
11963 if test -n "$OTOOL"; then
11964 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11965 else
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969 IFS=$as_save_IFS
11970 case $as_dir in #(((
11971 '') as_dir=./ ;;
11972 */) ;;
11973 *) as_dir=$as_dir/ ;;
11974 esac
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11977 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11979 break 2
11980 fi
11981 done
11982 done
11983 IFS=$as_save_IFS
11984
11985 fi
11986 fi
11987 OTOOL=$ac_cv_prog_OTOOL
11988 if test -n "$OTOOL"; then
11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11990 printf "%s\n" "$OTOOL" >&6; }
11991 else
11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 printf "%s\n" "no" >&6; }
11994 fi
11995
11996
11997 fi
11998 if test -z "$ac_cv_prog_OTOOL"; then
11999 ac_ct_OTOOL=$OTOOL
12000 # Extract the first word of "otool", so it can be a program name with args.
12001 set dummy otool; ac_word=$2
12002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 printf %s "checking for $ac_word... " >&6; }
12004 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12005 then :
12006 printf %s "(cached) " >&6
12007 else $as_nop
12008 if test -n "$ac_ct_OTOOL"; then
12009 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12010 else
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12013 do
12014 IFS=$as_save_IFS
12015 case $as_dir in #(((
12016 '') as_dir=./ ;;
12017 */) ;;
12018 *) as_dir=$as_dir/ ;;
12019 esac
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12022 ac_cv_prog_ac_ct_OTOOL="otool"
12023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12024 break 2
12025 fi
12026 done
12027 done
12028 IFS=$as_save_IFS
12029
12030 fi
12031 fi
12032 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12033 if test -n "$ac_ct_OTOOL"; then
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12035 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12036 else
12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 printf "%s\n" "no" >&6; }
12039 fi
12040
12041 if test "x$ac_ct_OTOOL" = x; then
12042 OTOOL=":"
12043 else
12044 case $cross_compiling:$ac_tool_warned in
12045 yes:)
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12048 ac_tool_warned=yes ;;
12049 esac
12050 OTOOL=$ac_ct_OTOOL
12051 fi
12052 else
12053 OTOOL="$ac_cv_prog_OTOOL"
12054 fi
12055
12056 if test -n "$ac_tool_prefix"; then
12057 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 printf %s "checking for $ac_word... " >&6; }
12061 if test ${ac_cv_prog_OTOOL64+y}
12062 then :
12063 printf %s "(cached) " >&6
12064 else $as_nop
12065 if test -n "$OTOOL64"; then
12066 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071 IFS=$as_save_IFS
12072 case $as_dir in #(((
12073 '') as_dir=./ ;;
12074 */) ;;
12075 *) as_dir=$as_dir/ ;;
12076 esac
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12079 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12081 break 2
12082 fi
12083 done
12084 done
12085 IFS=$as_save_IFS
12086
12087 fi
12088 fi
12089 OTOOL64=$ac_cv_prog_OTOOL64
12090 if test -n "$OTOOL64"; then
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12092 printf "%s\n" "$OTOOL64" >&6; }
12093 else
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 printf "%s\n" "no" >&6; }
12096 fi
12097
12098
12099 fi
12100 if test -z "$ac_cv_prog_OTOOL64"; then
12101 ac_ct_OTOOL64=$OTOOL64
12102 # Extract the first word of "otool64", so it can be a program name with args.
12103 set dummy otool64; ac_word=$2
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 printf %s "checking for $ac_word... " >&6; }
12106 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12107 then :
12108 printf %s "(cached) " >&6
12109 else $as_nop
12110 if test -n "$ac_ct_OTOOL64"; then
12111 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12112 else
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116 IFS=$as_save_IFS
12117 case $as_dir in #(((
12118 '') as_dir=./ ;;
12119 */) ;;
12120 *) as_dir=$as_dir/ ;;
12121 esac
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12124 ac_cv_prog_ac_ct_OTOOL64="otool64"
12125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12126 break 2
12127 fi
12128 done
12129 done
12130 IFS=$as_save_IFS
12131
12132 fi
12133 fi
12134 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12135 if test -n "$ac_ct_OTOOL64"; then
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12137 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12138 else
12139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 printf "%s\n" "no" >&6; }
12141 fi
12142
12143 if test "x$ac_ct_OTOOL64" = x; then
12144 OTOOL64=":"
12145 else
12146 case $cross_compiling:$ac_tool_warned in
12147 yes:)
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12150 ac_tool_warned=yes ;;
12151 esac
12152 OTOOL64=$ac_ct_OTOOL64
12153 fi
12154 else
12155 OTOOL64="$ac_cv_prog_OTOOL64"
12156 fi
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12185 printf %s "checking for -single_module linker flag... " >&6; }
12186 if test ${lt_cv_apple_cc_single_mod+y}
12187 then :
12188 printf %s "(cached) " >&6
12189 else $as_nop
12190 lt_cv_apple_cc_single_mod=no
12191 if test -z "$LT_MULTI_MODULE"; then
12192 # By default we will add the -single_module flag. You can override
12193 # by either setting the environment variable LT_MULTI_MODULE
12194 # non-empty at configure time, or by adding -multi_module to the
12195 # link flags.
12196 rm -rf libconftest.dylib*
12197 echo "int foo(void){return 1;}" > conftest.c
12198 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12199 -dynamiclib -Wl,-single_module conftest.c" >&5
12200 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12201 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12202 _lt_result=$?
12203 # If there is a non-empty error log, and "single_module"
12204 # appears in it, assume the flag caused a linker warning
12205 if test -s conftest.err && $GREP single_module conftest.err; then
12206 cat conftest.err >&5
12207 # Otherwise, if the output was created with a 0 exit code from
12208 # the compiler, it worked.
12209 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12210 lt_cv_apple_cc_single_mod=yes
12211 else
12212 cat conftest.err >&5
12213 fi
12214 rm -rf libconftest.dylib*
12215 rm -f conftest.*
12216 fi
12217 fi
12218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12219 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12220
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12222 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12223 if test ${lt_cv_ld_exported_symbols_list+y}
12224 then :
12225 printf %s "(cached) " >&6
12226 else $as_nop
12227 lt_cv_ld_exported_symbols_list=no
12228 save_LDFLAGS=$LDFLAGS
12229 echo "_main" > conftest.sym
12230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233
12234 int
12235 main (void)
12236 {
12237
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"
12243 then :
12244 lt_cv_ld_exported_symbols_list=yes
12245 else $as_nop
12246 lt_cv_ld_exported_symbols_list=no
12247 fi
12248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LDFLAGS=$save_LDFLAGS
12251
12252 fi
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12254 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12255
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12257 printf %s "checking for -force_load linker flag... " >&6; }
12258 if test ${lt_cv_ld_force_load+y}
12259 then :
12260 printf %s "(cached) " >&6
12261 else $as_nop
12262 lt_cv_ld_force_load=no
12263 cat > conftest.c << _LT_EOF
12264 int forced_loaded() { return 2;}
12265 _LT_EOF
12266 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12267 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12268 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12269 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12270 echo "$RANLIB libconftest.a" >&5
12271 $RANLIB libconftest.a 2>&5
12272 cat > conftest.c << _LT_EOF
12273 int main() { return 0;}
12274 _LT_EOF
12275 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12276 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12277 _lt_result=$?
12278 if test -s conftest.err && $GREP force_load conftest.err; then
12279 cat conftest.err >&5
12280 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12281 lt_cv_ld_force_load=yes
12282 else
12283 cat conftest.err >&5
12284 fi
12285 rm -f conftest.err libconftest.a conftest conftest.c
12286 rm -rf conftest.dSYM
12287
12288 fi
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12290 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12291 case $host_os in
12292 rhapsody* | darwin1.[012])
12293 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12294 darwin1.*)
12295 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12296 darwin*)
12297 case $MACOSX_DEPLOYMENT_TARGET,$host in
12298 10.[012],*|,*powerpc*-darwin[5-8]*)
12299 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12300 *)
12301 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12302 esac
12303 ;;
12304 esac
12305 if test yes = "$lt_cv_apple_cc_single_mod"; then
12306 _lt_dar_single_mod='$single_module'
12307 fi
12308 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12309 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12310 else
12311 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12312 fi
12313 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12314 _lt_dsymutil='~$DSYMUTIL $lib || :'
12315 else
12316 _lt_dsymutil=
12317 fi
12318 ;;
12319 esac
12320
12321 # func_munge_path_list VARIABLE PATH
12322 # -----------------------------------
12323 # VARIABLE is name of variable containing _space_ separated list of
12324 # directories to be munged by the contents of PATH, which is string
12325 # having a format:
12326 # "DIR[:DIR]:"
12327 # string "DIR[ DIR]" will be prepended to VARIABLE
12328 # ":DIR[:DIR]"
12329 # string "DIR[ DIR]" will be appended to VARIABLE
12330 # "DIRP[:DIRP]::[DIRA:]DIRA"
12331 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12332 # "DIRA[ DIRA]" will be appended to VARIABLE
12333 # "DIR[:DIR]"
12334 # VARIABLE will be replaced by "DIR[ DIR]"
12335 func_munge_path_list ()
12336 {
12337 case x$2 in
12338 x)
12339 ;;
12340 *:)
12341 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12342 ;;
12343 x:*)
12344 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12345 ;;
12346 *::*)
12347 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12348 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12349 ;;
12350 *)
12351 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12352 ;;
12353 esac
12354 }
12355
12356 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12357 "
12358 if test "x$ac_cv_header_dlfcn_h" = xyes
12359 then :
12360 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12361
12362 fi
12363
12364
12365
12366
12367
12368 # Set options
12369 # Check whether --enable-static was given.
12370 if test ${enable_static+y}
12371 then :
12372 enableval=$enable_static; p=${PACKAGE-default}
12373 case $enableval in
12374 yes) enable_static=yes ;;
12375 no) enable_static=no ;;
12376 *)
12377 enable_static=no
12378 # Look at the argument we got. We use all the common list separators.
12379 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12380 for pkg in $enableval; do
12381 IFS=$lt_save_ifs
12382 if test "X$pkg" = "X$p"; then
12383 enable_static=yes
12384 fi
12385 done
12386 IFS=$lt_save_ifs
12387 ;;
12388 esac
12389 else $as_nop
12390 enable_static=no
12391 fi
12392
12393
12394
12395
12396
12397
12398
12399 enable_dlopen=yes
12400
12401 # Check whether --with-pic was given.
12402 if test ${with_pic+y}
12403 then :
12404 withval=$with_pic; lt_p=${PACKAGE-default}
12405 case $withval in
12406 yes|no) pic_mode=$withval ;;
12407 *)
12408 pic_mode=default
12409 # Look at the argument we got. We use all the common list separators.
12410 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12411 for lt_pkg in $withval; do
12412 IFS=$lt_save_ifs
12413 if test "X$lt_pkg" = "X$lt_p"; then
12414 pic_mode=yes
12415 fi
12416 done
12417 IFS=$lt_save_ifs
12418 ;;
12419 esac
12420 else $as_nop
12421 pic_mode=yes
12422 fi
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433 enable_win32_dll=no
12434
12435
12436 # Check whether --enable-shared was given.
12437 if test ${enable_shared+y}
12438 then :
12439 enableval=$enable_shared; p=${PACKAGE-default}
12440 case $enableval in
12441 yes) enable_shared=yes ;;
12442 no) enable_shared=no ;;
12443 *)
12444 enable_shared=no
12445 # Look at the argument we got. We use all the common list separators.
12446 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12447 for pkg in $enableval; do
12448 IFS=$lt_save_ifs
12449 if test "X$pkg" = "X$p"; then
12450 enable_shared=yes
12451 fi
12452 done
12453 IFS=$lt_save_ifs
12454 ;;
12455 esac
12456 else $as_nop
12457 enable_shared=yes
12458 fi
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470 # Check whether --enable-fast-install was given.
12471 if test ${enable_fast_install+y}
12472 then :
12473 enableval=$enable_fast_install; p=${PACKAGE-default}
12474 case $enableval in
12475 yes) enable_fast_install=yes ;;
12476 no) enable_fast_install=no ;;
12477 *)
12478 enable_fast_install=no
12479 # Look at the argument we got. We use all the common list separators.
12480 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12481 for pkg in $enableval; do
12482 IFS=$lt_save_ifs
12483 if test "X$pkg" = "X$p"; then
12484 enable_fast_install=yes
12485 fi
12486 done
12487 IFS=$lt_save_ifs
12488 ;;
12489 esac
12490 else $as_nop
12491 enable_fast_install=yes
12492 fi
12493
12494
12495
12496
12497
12498
12499
12500
12501 shared_archive_member_spec=
12502 case $host,$enable_shared in
12503 power*-*-aix[5-9]*,yes)
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12505 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12506
12507 # Check whether --with-aix-soname was given.
12508 if test ${with_aix_soname+y}
12509 then :
12510 withval=$with_aix_soname; case $withval in
12511 aix|svr4|both)
12512 ;;
12513 *)
12514 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12515 ;;
12516 esac
12517 lt_cv_with_aix_soname=$with_aix_soname
12518 else $as_nop
12519 if test ${lt_cv_with_aix_soname+y}
12520 then :
12521 printf %s "(cached) " >&6
12522 else $as_nop
12523 lt_cv_with_aix_soname=aix
12524 fi
12525
12526 with_aix_soname=$lt_cv_with_aix_soname
12527 fi
12528
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12530 printf "%s\n" "$with_aix_soname" >&6; }
12531 if test aix != "$with_aix_soname"; then
12532 # For the AIX way of multilib, we name the shared archive member
12533 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12534 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12535 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12536 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12537 if test 64 = "${OBJECT_MODE-32}"; then
12538 shared_archive_member_spec=shr_64
12539 else
12540 shared_archive_member_spec=shr
12541 fi
12542 fi
12543 ;;
12544 *)
12545 with_aix_soname=aix
12546 ;;
12547 esac
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558 # This can be used to rebuild libtool when needed
12559 LIBTOOL_DEPS=$ltmain
12560
12561 # Always use our own libtool.
12562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593 test -z "$LN_S" && LN_S="ln -s"
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 if test -n "${ZSH_VERSION+set}"; then
12609 setopt NO_GLOB_SUBST
12610 fi
12611
12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12613 printf %s "checking for objdir... " >&6; }
12614 if test ${lt_cv_objdir+y}
12615 then :
12616 printf %s "(cached) " >&6
12617 else $as_nop
12618 rm -f .libs 2>/dev/null
12619 mkdir .libs 2>/dev/null
12620 if test -d .libs; then
12621 lt_cv_objdir=.libs
12622 else
12623 # MS-DOS does not allow filenames that begin with a dot.
12624 lt_cv_objdir=_libs
12625 fi
12626 rmdir .libs 2>/dev/null
12627 fi
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12629 printf "%s\n" "$lt_cv_objdir" >&6; }
12630 objdir=$lt_cv_objdir
12631
12632
12633
12634
12635
12636 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12637
12638
12639
12640
12641 case $host_os in
12642 aix3*)
12643 # AIX sometimes has problems with the GCC collect2 program. For some
12644 # reason, if we set the COLLECT_NAMES environment variable, the problems
12645 # vanish in a puff of smoke.
12646 if test set != "${COLLECT_NAMES+set}"; then
12647 COLLECT_NAMES=
12648 export COLLECT_NAMES
12649 fi
12650 ;;
12651 esac
12652
12653 # Global variables:
12654 ofile=libtool
12655 can_build_shared=yes
12656
12657 # All known linkers require a '.a' archive for static linking (except MSVC and
12658 # ICC, which need '.lib').
12659 libext=a
12660
12661 with_gnu_ld=$lt_cv_prog_gnu_ld
12662
12663 old_CC=$CC
12664 old_CFLAGS=$CFLAGS
12665
12666 # Set sane defaults for various variables
12667 test -z "$CC" && CC=cc
12668 test -z "$LTCC" && LTCC=$CC
12669 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12670 test -z "$LD" && LD=ld
12671 test -z "$ac_objext" && ac_objext=o
12672
12673 func_cc_basename $compiler
12674 cc_basename=$func_cc_basename_result
12675
12676
12677 # Only perform the check for file, if the check method requires it
12678 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12679 case $deplibs_check_method in
12680 file_magic*)
12681 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12683 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12684 if test ${lt_cv_path_MAGIC_CMD+y}
12685 then :
12686 printf %s "(cached) " >&6
12687 else $as_nop
12688 case $MAGIC_CMD in
12689 [\\/*] | ?:[\\/]*)
12690 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12691 ;;
12692 *)
12693 lt_save_MAGIC_CMD=$MAGIC_CMD
12694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12696 for ac_dir in $ac_dummy; do
12697 IFS=$lt_save_ifs
12698 test -z "$ac_dir" && ac_dir=.
12699 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12700 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12701 if test -n "$file_magic_test_file"; then
12702 case $deplibs_check_method in
12703 "file_magic "*)
12704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12705 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12707 $EGREP "$file_magic_regex" > /dev/null; then
12708 :
12709 else
12710 cat <<_LT_EOF 1>&2
12711
12712 *** Warning: the command libtool uses to detect shared libraries,
12713 *** $file_magic_cmd, produces output that libtool cannot recognize.
12714 *** The result is that libtool may fail to recognize shared libraries
12715 *** as such. This will affect the creation of libtool libraries that
12716 *** depend on shared libraries, but programs linked with such libtool
12717 *** libraries will work regardless of this problem. Nevertheless, you
12718 *** may want to report the problem to your system manager and/or to
12719 *** [email protected]
12720
12721 _LT_EOF
12722 fi ;;
12723 esac
12724 fi
12725 break
12726 fi
12727 done
12728 IFS=$lt_save_ifs
12729 MAGIC_CMD=$lt_save_MAGIC_CMD
12730 ;;
12731 esac
12732 fi
12733
12734 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12735 if test -n "$MAGIC_CMD"; then
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12737 printf "%s\n" "$MAGIC_CMD" >&6; }
12738 else
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 printf "%s\n" "no" >&6; }
12741 fi
12742
12743
12744
12745
12746
12747 if test -z "$lt_cv_path_MAGIC_CMD"; then
12748 if test -n "$ac_tool_prefix"; then
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12750 printf %s "checking for file... " >&6; }
12751 if test ${lt_cv_path_MAGIC_CMD+y}
12752 then :
12753 printf %s "(cached) " >&6
12754 else $as_nop
12755 case $MAGIC_CMD in
12756 [\\/*] | ?:[\\/]*)
12757 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12758 ;;
12759 *)
12760 lt_save_MAGIC_CMD=$MAGIC_CMD
12761 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12763 for ac_dir in $ac_dummy; do
12764 IFS=$lt_save_ifs
12765 test -z "$ac_dir" && ac_dir=.
12766 if test -f "$ac_dir/file"; then
12767 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12768 if test -n "$file_magic_test_file"; then
12769 case $deplibs_check_method in
12770 "file_magic "*)
12771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12772 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12774 $EGREP "$file_magic_regex" > /dev/null; then
12775 :
12776 else
12777 cat <<_LT_EOF 1>&2
12778
12779 *** Warning: the command libtool uses to detect shared libraries,
12780 *** $file_magic_cmd, produces output that libtool cannot recognize.
12781 *** The result is that libtool may fail to recognize shared libraries
12782 *** as such. This will affect the creation of libtool libraries that
12783 *** depend on shared libraries, but programs linked with such libtool
12784 *** libraries will work regardless of this problem. Nevertheless, you
12785 *** may want to report the problem to your system manager and/or to
12786 *** [email protected]
12787
12788 _LT_EOF
12789 fi ;;
12790 esac
12791 fi
12792 break
12793 fi
12794 done
12795 IFS=$lt_save_ifs
12796 MAGIC_CMD=$lt_save_MAGIC_CMD
12797 ;;
12798 esac
12799 fi
12800
12801 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12802 if test -n "$MAGIC_CMD"; then
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12804 printf "%s\n" "$MAGIC_CMD" >&6; }
12805 else
12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 printf "%s\n" "no" >&6; }
12808 fi
12809
12810
12811 else
12812 MAGIC_CMD=:
12813 fi
12814 fi
12815
12816 fi
12817 ;;
12818 esac
12819
12820 # Use C for the default configuration in the libtool script
12821
12822 lt_save_CC=$CC
12823 ac_ext=c
12824 ac_cpp='$CPP $CPPFLAGS'
12825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828
12829
12830 # Source file extension for C test sources.
12831 ac_ext=c
12832
12833 # Object file extension for compiled C test sources.
12834 objext=o
12835 objext=$objext
12836
12837 # Code to be used in simple compile tests
12838 lt_simple_compile_test_code="int some_variable = 0;"
12839
12840 # Code to be used in simple link tests
12841 lt_simple_link_test_code='int main(){return(0);}'
12842
12843
12844
12845
12846
12847
12848
12849 # If no C compiler was specified, use CC.
12850 LTCC=${LTCC-"$CC"}
12851
12852 # If no C compiler flags were specified, use CFLAGS.
12853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12854
12855 # Allow CC to be a program name with arguments.
12856 compiler=$CC
12857
12858 # Save the default compiler, since it gets overwritten when the other
12859 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12860 compiler_DEFAULT=$CC
12861
12862 # save warnings/boilerplate of simple test code
12863 ac_outfile=conftest.$ac_objext
12864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12866 _lt_compiler_boilerplate=`cat conftest.err`
12867 $RM conftest*
12868
12869 ac_outfile=conftest.$ac_objext
12870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12872 _lt_linker_boilerplate=`cat conftest.err`
12873 $RM -r conftest*
12874
12875
12876 ## CAVEAT EMPTOR:
12877 ## There is no encapsulation within the following macros, do not change
12878 ## the running order or otherwise move them around unless you know exactly
12879 ## what you are doing...
12880 if test -n "$compiler"; then
12881
12882 lt_prog_compiler_no_builtin_flag=
12883
12884 if test yes = "$GCC"; then
12885 case $cc_basename in
12886 nvcc*)
12887 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12888 *)
12889 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12890 esac
12891
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12893 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12894 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12895 then :
12896 printf %s "(cached) " >&6
12897 else $as_nop
12898 lt_cv_prog_compiler_rtti_exceptions=no
12899 ac_outfile=conftest.$ac_objext
12900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12901 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12902 # Insert the option either (1) after the last *FLAGS variable, or
12903 # (2) before a word containing "conftest.", or (3) at the end.
12904 # Note that $ac_compile itself does not contain backslashes and begins
12905 # with a dollar sign (not a hyphen), so the echo should work correctly.
12906 # The option is referenced via a variable to avoid confusing sed.
12907 lt_compile=`echo "$ac_compile" | $SED \
12908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12910 -e 's:$: $lt_compiler_flag:'`
12911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12912 (eval "$lt_compile" 2>conftest.err)
12913 ac_status=$?
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 if (exit $ac_status) && test -s "$ac_outfile"; then
12917 # The compiler can only warn and ignore the option if not recognized
12918 # So say no if there are warnings other than the usual output.
12919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12922 lt_cv_prog_compiler_rtti_exceptions=yes
12923 fi
12924 fi
12925 $RM conftest*
12926
12927 fi
12928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12929 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12930
12931 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12932 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12933 else
12934 :
12935 fi
12936
12937 fi
12938
12939
12940
12941
12942
12943
12944 lt_prog_compiler_wl=
12945 lt_prog_compiler_pic=
12946 lt_prog_compiler_static=
12947
12948
12949 if test yes = "$GCC"; then
12950 lt_prog_compiler_wl='-Wl,'
12951 lt_prog_compiler_static='-static'
12952
12953 case $host_os in
12954 aix*)
12955 # All AIX code is PIC.
12956 if test ia64 = "$host_cpu"; then
12957 # AIX 5 now supports IA64 processor
12958 lt_prog_compiler_static='-Bstatic'
12959 fi
12960 lt_prog_compiler_pic='-fPIC'
12961 ;;
12962
12963 amigaos*)
12964 case $host_cpu in
12965 powerpc)
12966 # see comment about AmigaOS4 .so support
12967 lt_prog_compiler_pic='-fPIC'
12968 ;;
12969 m68k)
12970 # FIXME: we need at least 68020 code to build shared libraries, but
12971 # adding the '-m68020' flag to GCC prevents building anything better,
12972 # like '-m68040'.
12973 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12974 ;;
12975 esac
12976 ;;
12977
12978 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12979 # PIC is the default for these OSes.
12980 ;;
12981
12982 mingw* | cygwin* | pw32* | os2* | cegcc*)
12983 # This hack is so that the source file can tell whether it is being
12984 # built for inclusion in a dll (and should export symbols for example).
12985 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12986 # (--disable-auto-import) libraries
12987 lt_prog_compiler_pic='-DDLL_EXPORT'
12988 case $host_os in
12989 os2*)
12990 lt_prog_compiler_static='$wl-static'
12991 ;;
12992 esac
12993 ;;
12994
12995 darwin* | rhapsody*)
12996 # PIC is the default on this platform
12997 # Common symbols not allowed in MH_DYLIB files
12998 lt_prog_compiler_pic='-fno-common'
12999 ;;
13000
13001 haiku*)
13002 # PIC is the default for Haiku.
13003 # The "-static" flag exists, but is broken.
13004 lt_prog_compiler_static=
13005 ;;
13006
13007 hpux*)
13008 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13009 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13010 # sets the default TLS model and affects inlining.
13011 case $host_cpu in
13012 hppa*64*)
13013 # +Z the default
13014 ;;
13015 *)
13016 lt_prog_compiler_pic='-fPIC'
13017 ;;
13018 esac
13019 ;;
13020
13021 interix[3-9]*)
13022 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13023 # Instead, we relocate shared libraries at runtime.
13024 ;;
13025
13026 msdosdjgpp*)
13027 # Just because we use GCC doesn't mean we suddenly get shared libraries
13028 # on systems that don't support them.
13029 lt_prog_compiler_can_build_shared=no
13030 enable_shared=no
13031 ;;
13032
13033 *nto* | *qnx*)
13034 # QNX uses GNU C++, but need to define -shared option too, otherwise
13035 # it will coredump.
13036 lt_prog_compiler_pic='-fPIC -shared'
13037 ;;
13038
13039 sysv4*MP*)
13040 if test -d /usr/nec; then
13041 lt_prog_compiler_pic=-Kconform_pic
13042 fi
13043 ;;
13044
13045 *)
13046 lt_prog_compiler_pic='-fPIC'
13047 ;;
13048 esac
13049
13050 case $cc_basename in
13051 nvcc*) # Cuda Compiler Driver 2.2
13052 lt_prog_compiler_wl='-Xlinker '
13053 if test -n "$lt_prog_compiler_pic"; then
13054 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13055 fi
13056 ;;
13057 esac
13058 else
13059 # PORTME Check for flag to pass linker flags through the system compiler.
13060 case $host_os in
13061 aix*)
13062 lt_prog_compiler_wl='-Wl,'
13063 if test ia64 = "$host_cpu"; then
13064 # AIX 5 now supports IA64 processor
13065 lt_prog_compiler_static='-Bstatic'
13066 else
13067 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13068 fi
13069 ;;
13070
13071 darwin* | rhapsody*)
13072 # PIC is the default on this platform
13073 # Common symbols not allowed in MH_DYLIB files
13074 lt_prog_compiler_pic='-fno-common'
13075 case $cc_basename in
13076 nagfor*)
13077 # NAG Fortran compiler
13078 lt_prog_compiler_wl='-Wl,-Wl,,'
13079 lt_prog_compiler_pic='-PIC'
13080 lt_prog_compiler_static='-Bstatic'
13081 ;;
13082 esac
13083 ;;
13084
13085 mingw* | cygwin* | pw32* | os2* | cegcc*)
13086 # This hack is so that the source file can tell whether it is being
13087 # built for inclusion in a dll (and should export symbols for example).
13088 lt_prog_compiler_pic='-DDLL_EXPORT'
13089 case $host_os in
13090 os2*)
13091 lt_prog_compiler_static='$wl-static'
13092 ;;
13093 esac
13094 ;;
13095
13096 hpux9* | hpux10* | hpux11*)
13097 lt_prog_compiler_wl='-Wl,'
13098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13099 # not for PA HP-UX.
13100 case $host_cpu in
13101 hppa*64*|ia64*)
13102 # +Z the default
13103 ;;
13104 *)
13105 lt_prog_compiler_pic='+Z'
13106 ;;
13107 esac
13108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13109 lt_prog_compiler_static='$wl-a ${wl}archive'
13110 ;;
13111
13112 irix5* | irix6* | nonstopux*)
13113 lt_prog_compiler_wl='-Wl,'
13114 # PIC (with -KPIC) is the default.
13115 lt_prog_compiler_static='-non_shared'
13116 ;;
13117
13118 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13119 case $cc_basename in
13120 # old Intel for x86_64, which still supported -KPIC.
13121 ecc*)
13122 lt_prog_compiler_wl='-Wl,'
13123 lt_prog_compiler_pic='-KPIC'
13124 lt_prog_compiler_static='-static'
13125 ;;
13126 # flang / f18. f95 an alias for gfortran or flang on Debian
13127 flang* | f18* | f95*)
13128 lt_prog_compiler_wl='-Wl,'
13129 lt_prog_compiler_pic='-fPIC'
13130 lt_prog_compiler_static='-static'
13131 ;;
13132 # icc used to be incompatible with GCC.
13133 # ICC 10 doesn't accept -KPIC any more.
13134 icc* | ifort*)
13135 lt_prog_compiler_wl='-Wl,'
13136 lt_prog_compiler_pic='-fPIC'
13137 lt_prog_compiler_static='-static'
13138 ;;
13139 # Lahey Fortran 8.1.
13140 lf95*)
13141 lt_prog_compiler_wl='-Wl,'
13142 lt_prog_compiler_pic='--shared'
13143 lt_prog_compiler_static='--static'
13144 ;;
13145 nagfor*)
13146 # NAG Fortran compiler
13147 lt_prog_compiler_wl='-Wl,-Wl,,'
13148 lt_prog_compiler_pic='-PIC'
13149 lt_prog_compiler_static='-Bstatic'
13150 ;;
13151 tcc*)
13152 # Fabrice Bellard et al's Tiny C Compiler
13153 lt_prog_compiler_wl='-Wl,'
13154 lt_prog_compiler_pic='-fPIC'
13155 lt_prog_compiler_static='-static'
13156 ;;
13157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13158 # Portland Group compilers (*not* the Pentium gcc compiler,
13159 # which looks to be a dead project)
13160 lt_prog_compiler_wl='-Wl,'
13161 lt_prog_compiler_pic='-fpic'
13162 lt_prog_compiler_static='-Bstatic'
13163 ;;
13164 ccc*)
13165 lt_prog_compiler_wl='-Wl,'
13166 # All Alpha code is PIC.
13167 lt_prog_compiler_static='-non_shared'
13168 ;;
13169 xl* | bgxl* | bgf* | mpixl*)
13170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13171 lt_prog_compiler_wl='-Wl,'
13172 lt_prog_compiler_pic='-qpic'
13173 lt_prog_compiler_static='-qstaticlink'
13174 ;;
13175 *)
13176 case `$CC -V 2>&1 | $SED 5q` in
13177 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13179 lt_prog_compiler_pic='-KPIC'
13180 lt_prog_compiler_static='-Bstatic'
13181 lt_prog_compiler_wl=''
13182 ;;
13183 *Sun\ F* | *Sun*Fortran*)
13184 lt_prog_compiler_pic='-KPIC'
13185 lt_prog_compiler_static='-Bstatic'
13186 lt_prog_compiler_wl='-Qoption ld '
13187 ;;
13188 *Sun\ C*)
13189 # Sun C 5.9
13190 lt_prog_compiler_pic='-KPIC'
13191 lt_prog_compiler_static='-Bstatic'
13192 lt_prog_compiler_wl='-Wl,'
13193 ;;
13194 *Intel*\ [CF]*Compiler*)
13195 lt_prog_compiler_wl='-Wl,'
13196 lt_prog_compiler_pic='-fPIC'
13197 lt_prog_compiler_static='-static'
13198 ;;
13199 *Portland\ Group*)
13200 lt_prog_compiler_wl='-Wl,'
13201 lt_prog_compiler_pic='-fpic'
13202 lt_prog_compiler_static='-Bstatic'
13203 ;;
13204 esac
13205 ;;
13206 esac
13207 ;;
13208
13209 newsos6)
13210 lt_prog_compiler_pic='-KPIC'
13211 lt_prog_compiler_static='-Bstatic'
13212 ;;
13213
13214 *nto* | *qnx*)
13215 # QNX uses GNU C++, but need to define -shared option too, otherwise
13216 # it will coredump.
13217 lt_prog_compiler_pic='-fPIC -shared'
13218 ;;
13219
13220 osf3* | osf4* | osf5*)
13221 lt_prog_compiler_wl='-Wl,'
13222 # All OSF/1 code is PIC.
13223 lt_prog_compiler_static='-non_shared'
13224 ;;
13225
13226 rdos*)
13227 lt_prog_compiler_static='-non_shared'
13228 ;;
13229
13230 solaris*)
13231 lt_prog_compiler_pic='-KPIC'
13232 lt_prog_compiler_static='-Bstatic'
13233 case $cc_basename in
13234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13235 lt_prog_compiler_wl='-Qoption ld ';;
13236 *)
13237 lt_prog_compiler_wl='-Wl,';;
13238 esac
13239 ;;
13240
13241 sunos4*)
13242 lt_prog_compiler_wl='-Qoption ld '
13243 lt_prog_compiler_pic='-PIC'
13244 lt_prog_compiler_static='-Bstatic'
13245 ;;
13246
13247 sysv4 | sysv4.2uw2* | sysv4.3*)
13248 lt_prog_compiler_wl='-Wl,'
13249 lt_prog_compiler_pic='-KPIC'
13250 lt_prog_compiler_static='-Bstatic'
13251 ;;
13252
13253 sysv4*MP*)
13254 if test -d /usr/nec; then
13255 lt_prog_compiler_pic='-Kconform_pic'
13256 lt_prog_compiler_static='-Bstatic'
13257 fi
13258 ;;
13259
13260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13261 lt_prog_compiler_wl='-Wl,'
13262 lt_prog_compiler_pic='-KPIC'
13263 lt_prog_compiler_static='-Bstatic'
13264 ;;
13265
13266 unicos*)
13267 lt_prog_compiler_wl='-Wl,'
13268 lt_prog_compiler_can_build_shared=no
13269 ;;
13270
13271 uts4*)
13272 lt_prog_compiler_pic='-pic'
13273 lt_prog_compiler_static='-Bstatic'
13274 ;;
13275
13276 *)
13277 lt_prog_compiler_can_build_shared=no
13278 ;;
13279 esac
13280 fi
13281
13282 case $host_os in
13283 # For platforms that do not support PIC, -DPIC is meaningless:
13284 *djgpp*)
13285 lt_prog_compiler_pic=
13286 ;;
13287 *)
13288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13289 ;;
13290 esac
13291
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13293 printf %s "checking for $compiler option to produce PIC... " >&6; }
13294 if test ${lt_cv_prog_compiler_pic+y}
13295 then :
13296 printf %s "(cached) " >&6
13297 else $as_nop
13298 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13299 fi
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13301 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13302 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13303
13304 #
13305 # Check to make sure the PIC flag actually works.
13306 #
13307 if test -n "$lt_prog_compiler_pic"; then
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13309 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13310 if test ${lt_cv_prog_compiler_pic_works+y}
13311 then :
13312 printf %s "(cached) " >&6
13313 else $as_nop
13314 lt_cv_prog_compiler_pic_works=no
13315 ac_outfile=conftest.$ac_objext
13316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13318 # Insert the option either (1) after the last *FLAGS variable, or
13319 # (2) before a word containing "conftest.", or (3) at the end.
13320 # Note that $ac_compile itself does not contain backslashes and begins
13321 # with a dollar sign (not a hyphen), so the echo should work correctly.
13322 # The option is referenced via a variable to avoid confusing sed.
13323 lt_compile=`echo "$ac_compile" | $SED \
13324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13326 -e 's:$: $lt_compiler_flag:'`
13327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13328 (eval "$lt_compile" 2>conftest.err)
13329 ac_status=$?
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 if (exit $ac_status) && test -s "$ac_outfile"; then
13333 # The compiler can only warn and ignore the option if not recognized
13334 # So say no if there are warnings other than the usual output.
13335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13338 lt_cv_prog_compiler_pic_works=yes
13339 fi
13340 fi
13341 $RM conftest*
13342
13343 fi
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13345 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13346
13347 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13348 case $lt_prog_compiler_pic in
13349 "" | " "*) ;;
13350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13351 esac
13352 else
13353 lt_prog_compiler_pic=
13354 lt_prog_compiler_can_build_shared=no
13355 fi
13356
13357 fi
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369 #
13370 # Check to make sure the static flag actually works.
13371 #
13372 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13374 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13375 if test ${lt_cv_prog_compiler_static_works+y}
13376 then :
13377 printf %s "(cached) " >&6
13378 else $as_nop
13379 lt_cv_prog_compiler_static_works=no
13380 save_LDFLAGS=$LDFLAGS
13381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13384 # The linker can only warn and ignore the option if not recognized
13385 # So say no if there are warnings
13386 if test -s conftest.err; then
13387 # Append any errors to the config.log.
13388 cat conftest.err 1>&5
13389 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13391 if diff conftest.exp conftest.er2 >/dev/null; then
13392 lt_cv_prog_compiler_static_works=yes
13393 fi
13394 else
13395 lt_cv_prog_compiler_static_works=yes
13396 fi
13397 fi
13398 $RM -r conftest*
13399 LDFLAGS=$save_LDFLAGS
13400
13401 fi
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13403 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13404
13405 if test yes = "$lt_cv_prog_compiler_static_works"; then
13406 :
13407 else
13408 lt_prog_compiler_static=
13409 fi
13410
13411
13412
13413
13414
13415
13416
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13418 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13419 if test ${lt_cv_prog_compiler_c_o+y}
13420 then :
13421 printf %s "(cached) " >&6
13422 else $as_nop
13423 lt_cv_prog_compiler_c_o=no
13424 $RM -r conftest 2>/dev/null
13425 mkdir conftest
13426 cd conftest
13427 mkdir out
13428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13429
13430 lt_compiler_flag="-o out/conftest2.$ac_objext"
13431 # Insert the option either (1) after the last *FLAGS variable, or
13432 # (2) before a word containing "conftest.", or (3) at the end.
13433 # Note that $ac_compile itself does not contain backslashes and begins
13434 # with a dollar sign (not a hyphen), so the echo should work correctly.
13435 lt_compile=`echo "$ac_compile" | $SED \
13436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13438 -e 's:$: $lt_compiler_flag:'`
13439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13440 (eval "$lt_compile" 2>out/conftest.err)
13441 ac_status=$?
13442 cat out/conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13445 then
13446 # The compiler can only warn and ignore the option if not recognized
13447 # So say no if there are warnings
13448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13451 lt_cv_prog_compiler_c_o=yes
13452 fi
13453 fi
13454 chmod u+w . 2>&5
13455 $RM conftest*
13456 # SGI C++ compiler will create directory out/ii_files/ for
13457 # template instantiation
13458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13459 $RM out/* && rmdir out
13460 cd ..
13461 $RM -r conftest
13462 $RM conftest*
13463
13464 fi
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13466 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13467
13468
13469
13470
13471
13472
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13474 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13475 if test ${lt_cv_prog_compiler_c_o+y}
13476 then :
13477 printf %s "(cached) " >&6
13478 else $as_nop
13479 lt_cv_prog_compiler_c_o=no
13480 $RM -r conftest 2>/dev/null
13481 mkdir conftest
13482 cd conftest
13483 mkdir out
13484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13485
13486 lt_compiler_flag="-o out/conftest2.$ac_objext"
13487 # Insert the option either (1) after the last *FLAGS variable, or
13488 # (2) before a word containing "conftest.", or (3) at the end.
13489 # Note that $ac_compile itself does not contain backslashes and begins
13490 # with a dollar sign (not a hyphen), so the echo should work correctly.
13491 lt_compile=`echo "$ac_compile" | $SED \
13492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13494 -e 's:$: $lt_compiler_flag:'`
13495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13496 (eval "$lt_compile" 2>out/conftest.err)
13497 ac_status=$?
13498 cat out/conftest.err >&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13501 then
13502 # The compiler can only warn and ignore the option if not recognized
13503 # So say no if there are warnings
13504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13507 lt_cv_prog_compiler_c_o=yes
13508 fi
13509 fi
13510 chmod u+w . 2>&5
13511 $RM conftest*
13512 # SGI C++ compiler will create directory out/ii_files/ for
13513 # template instantiation
13514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13515 $RM out/* && rmdir out
13516 cd ..
13517 $RM -r conftest
13518 $RM conftest*
13519
13520 fi
13521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13522 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13523
13524
13525
13526
13527 hard_links=nottested
13528 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13529 # do not overwrite the value of need_locks provided by the user
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13531 printf %s "checking if we can lock with hard links... " >&6; }
13532 hard_links=yes
13533 $RM conftest*
13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13535 touch conftest.a
13536 ln conftest.a conftest.b 2>&5 || hard_links=no
13537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13539 printf "%s\n" "$hard_links" >&6; }
13540 if test no = "$hard_links"; then
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13542 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13543 need_locks=warn
13544 fi
13545 else
13546 need_locks=no
13547 fi
13548
13549
13550
13551
13552
13553
13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13555 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13556
13557 runpath_var=
13558 allow_undefined_flag=
13559 always_export_symbols=no
13560 archive_cmds=
13561 archive_expsym_cmds=
13562 compiler_needs_object=no
13563 enable_shared_with_static_runtimes=no
13564 export_dynamic_flag_spec=
13565 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13566 hardcode_automatic=no
13567 hardcode_direct=no
13568 hardcode_direct_absolute=no
13569 hardcode_libdir_flag_spec=
13570 hardcode_libdir_separator=
13571 hardcode_minus_L=no
13572 hardcode_shlibpath_var=unsupported
13573 inherit_rpath=no
13574 link_all_deplibs=unknown
13575 module_cmds=
13576 module_expsym_cmds=
13577 old_archive_from_new_cmds=
13578 old_archive_from_expsyms_cmds=
13579 thread_safe_flag_spec=
13580 whole_archive_flag_spec=
13581 # include_expsyms should be a list of space-separated symbols to be *always*
13582 # included in the symbol list
13583 include_expsyms=
13584 # exclude_expsyms can be an extended regexp of symbols to exclude
13585 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13586 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13587 # as well as any symbol that contains 'd'.
13588 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13589 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13590 # platforms (ab)use it in PIC code, but their linkers get confused if
13591 # the symbol is explicitly referenced. Since portable code cannot
13592 # rely on this symbol name, it's probably fine to never include it in
13593 # preloaded symbol tables.
13594 # Exclude shared library initialization/finalization symbols.
13595 extract_expsyms_cmds=
13596
13597 case $host_os in
13598 cygwin* | mingw* | pw32* | cegcc*)
13599 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13600 # When not using gcc, we currently assume that we are using
13601 # Microsoft Visual C++ or Intel C++ Compiler.
13602 if test yes != "$GCC"; then
13603 with_gnu_ld=no
13604 fi
13605 ;;
13606 interix*)
13607 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13608 with_gnu_ld=yes
13609 ;;
13610 openbsd* | bitrig*)
13611 with_gnu_ld=no
13612 ;;
13613 linux* | k*bsd*-gnu | gnu*)
13614 link_all_deplibs=no
13615 ;;
13616 esac
13617
13618 ld_shlibs=yes
13619
13620 # On some targets, GNU ld is compatible enough with the native linker
13621 # that we're better off using the native interface for both.
13622 lt_use_gnu_ld_interface=no
13623 if test yes = "$with_gnu_ld"; then
13624 case $host_os in
13625 aix*)
13626 # The AIX port of GNU ld has always aspired to compatibility
13627 # with the native linker. However, as the warning in the GNU ld
13628 # block says, versions before 2.19.5* couldn't really create working
13629 # shared libraries, regardless of the interface used.
13630 case `$LD -v 2>&1` in
13631 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13632 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13633 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13634 *)
13635 lt_use_gnu_ld_interface=yes
13636 ;;
13637 esac
13638 ;;
13639 *)
13640 lt_use_gnu_ld_interface=yes
13641 ;;
13642 esac
13643 fi
13644
13645 if test yes = "$lt_use_gnu_ld_interface"; then
13646 # If archive_cmds runs LD, not CC, wlarc should be empty
13647 wlarc='$wl'
13648
13649 # Set some defaults for GNU ld with shared library support. These
13650 # are reset later if shared libraries are not supported. Putting them
13651 # here allows them to be overridden if necessary.
13652 runpath_var=LD_RUN_PATH
13653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13654 export_dynamic_flag_spec='$wl--export-dynamic'
13655 # ancient GNU ld didn't support --whole-archive et. al.
13656 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13657 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13658 else
13659 whole_archive_flag_spec=
13660 fi
13661 supports_anon_versioning=no
13662 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13663 *GNU\ gold*) supports_anon_versioning=yes ;;
13664 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13665 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13666 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13667 *\ 2.11.*) ;; # other 2.11 versions
13668 *) supports_anon_versioning=yes ;;
13669 esac
13670
13671 # See if GNU ld supports shared libraries.
13672 case $host_os in
13673 aix[3-9]*)
13674 # On AIX/PPC, the GNU linker is very broken
13675 if test ia64 != "$host_cpu"; then
13676 ld_shlibs=no
13677 cat <<_LT_EOF 1>&2
13678
13679 *** Warning: the GNU linker, at least up to release 2.19, is reported
13680 *** to be unable to reliably create shared libraries on AIX.
13681 *** Therefore, libtool is disabling shared libraries support. If you
13682 *** really care for shared libraries, you may want to install binutils
13683 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13684 *** You will then need to restart the configuration process.
13685
13686 _LT_EOF
13687 fi
13688 ;;
13689
13690 amigaos*)
13691 case $host_cpu in
13692 powerpc)
13693 # see comment about AmigaOS4 .so support
13694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13695 archive_expsym_cmds=''
13696 ;;
13697 m68k)
13698 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)'
13699 hardcode_libdir_flag_spec='-L$libdir'
13700 hardcode_minus_L=yes
13701 ;;
13702 esac
13703 ;;
13704
13705 beos*)
13706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13707 allow_undefined_flag=unsupported
13708 # Joseph Beckenbach <[email protected]> says some releases of gcc
13709 # support --undefined. This deserves some investigation. FIXME
13710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13711 else
13712 ld_shlibs=no
13713 fi
13714 ;;
13715
13716 cygwin* | mingw* | pw32* | cegcc*)
13717 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13718 # as there is no search path for DLLs.
13719 hardcode_libdir_flag_spec='-L$libdir'
13720 export_dynamic_flag_spec='$wl--export-all-symbols'
13721 allow_undefined_flag=unsupported
13722 always_export_symbols=no
13723 enable_shared_with_static_runtimes=yes
13724 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'
13725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13726
13727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13729 # If the export-symbols file already is a .def file, use it as
13730 # is; otherwise, prepend EXPORTS...
13731 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13732 cp $export_symbols $output_objdir/$soname.def;
13733 else
13734 echo EXPORTS > $output_objdir/$soname.def;
13735 cat $export_symbols >> $output_objdir/$soname.def;
13736 fi~
13737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13738 else
13739 ld_shlibs=no
13740 fi
13741 ;;
13742
13743 haiku*)
13744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13745 link_all_deplibs=yes
13746 ;;
13747
13748 os2*)
13749 hardcode_libdir_flag_spec='-L$libdir'
13750 hardcode_minus_L=yes
13751 allow_undefined_flag=unsupported
13752 shrext_cmds=.dll
13753 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13756 $ECHO EXPORTS >> $output_objdir/$libname.def~
13757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13759 emximp -o $lib $output_objdir/$libname.def'
13760 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13763 $ECHO EXPORTS >> $output_objdir/$libname.def~
13764 prefix_cmds="$SED"~
13765 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13766 prefix_cmds="$prefix_cmds -e 1d";
13767 fi~
13768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13771 emximp -o $lib $output_objdir/$libname.def'
13772 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13773 enable_shared_with_static_runtimes=yes
13774 file_list_spec='@'
13775 ;;
13776
13777 interix[3-9]*)
13778 hardcode_direct=no
13779 hardcode_shlibpath_var=no
13780 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13781 export_dynamic_flag_spec='$wl-E'
13782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13783 # Instead, shared libraries are loaded at an image base (0x10000000 by
13784 # default) and relocated if they conflict, which is a slow very memory
13785 # consuming and fragmenting process. To avoid this, we pick a random,
13786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13789 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'
13790 ;;
13791
13792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13793 tmp_diet=no
13794 if test linux-dietlibc = "$host_os"; then
13795 case $cc_basename in
13796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13797 esac
13798 fi
13799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13800 && test no = "$tmp_diet"
13801 then
13802 tmp_addflag=' $pic_flag'
13803 tmp_sharedflag='-shared'
13804 case $cc_basename,$host_cpu in
13805 pgcc*) # Portland Group C compiler
13806 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'
13807 tmp_addflag=' $pic_flag'
13808 ;;
13809 pgf77* | pgf90* | pgf95* | pgfortran*)
13810 # Portland Group f77 and f90 compilers
13811 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'
13812 tmp_addflag=' $pic_flag -Mnomain' ;;
13813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13814 tmp_addflag=' -i_dynamic' ;;
13815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13816 tmp_addflag=' -i_dynamic -nofor_main' ;;
13817 ifc* | ifort*) # Intel Fortran compiler
13818 tmp_addflag=' -nofor_main' ;;
13819 lf95*) # Lahey Fortran 8.1
13820 whole_archive_flag_spec=
13821 tmp_sharedflag='--shared' ;;
13822 nagfor*) # NAGFOR 5.3
13823 tmp_sharedflag='-Wl,-shared' ;;
13824 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13825 tmp_sharedflag='-qmkshrobj'
13826 tmp_addflag= ;;
13827 nvcc*) # Cuda Compiler Driver 2.2
13828 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'
13829 compiler_needs_object=yes
13830 ;;
13831 esac
13832 case `$CC -V 2>&1 | $SED 5q` in
13833 *Sun\ C*) # Sun C 5.9
13834 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'
13835 compiler_needs_object=yes
13836 tmp_sharedflag='-G' ;;
13837 *Sun\ F*) # Sun Fortran 8.3
13838 tmp_sharedflag='-G' ;;
13839 esac
13840 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13841
13842 if test yes = "$supports_anon_versioning"; then
13843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13844 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13845 echo "local: *; };" >> $output_objdir/$libname.ver~
13846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13847 fi
13848
13849 case $cc_basename in
13850 tcc*)
13851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13852 export_dynamic_flag_spec='-rdynamic'
13853 ;;
13854 xlf* | bgf* | bgxlf* | mpixlf*)
13855 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13856 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13857 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13858 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13859 if test yes = "$supports_anon_versioning"; then
13860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13861 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13862 echo "local: *; };" >> $output_objdir/$libname.ver~
13863 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13864 fi
13865 ;;
13866 esac
13867 else
13868 ld_shlibs=no
13869 fi
13870 ;;
13871
13872 netbsd* | netbsdelf*-gnu)
13873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13874 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13875 wlarc=
13876 else
13877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13878 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13879 fi
13880 ;;
13881
13882 solaris*)
13883 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13884 ld_shlibs=no
13885 cat <<_LT_EOF 1>&2
13886
13887 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13888 *** create shared libraries on Solaris systems. Therefore, libtool
13889 *** is disabling shared libraries support. We urge you to upgrade GNU
13890 *** binutils to release 2.9.1 or newer. Another option is to modify
13891 *** your PATH or compiler configuration so that the native linker is
13892 *** used, and then restart.
13893
13894 _LT_EOF
13895 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13897 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13898 else
13899 ld_shlibs=no
13900 fi
13901 ;;
13902
13903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13904 case `$LD -v 2>&1` in
13905 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13906 ld_shlibs=no
13907 cat <<_LT_EOF 1>&2
13908
13909 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13910 *** reliably create shared libraries on SCO systems. Therefore, libtool
13911 *** is disabling shared libraries support. We urge you to upgrade GNU
13912 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13913 *** your PATH or compiler configuration so that the native linker is
13914 *** used, and then restart.
13915
13916 _LT_EOF
13917 ;;
13918 *)
13919 # For security reasons, it is highly recommended that you always
13920 # use absolute paths for naming shared libraries, and exclude the
13921 # DT_RUNPATH tag from executables and libraries. But doing so
13922 # requires that you compile everything twice, which is a pain.
13923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13927 else
13928 ld_shlibs=no
13929 fi
13930 ;;
13931 esac
13932 ;;
13933
13934 sunos4*)
13935 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13936 wlarc=
13937 hardcode_direct=yes
13938 hardcode_shlibpath_var=no
13939 ;;
13940
13941 *)
13942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13944 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13945 else
13946 ld_shlibs=no
13947 fi
13948 ;;
13949 esac
13950
13951 if test no = "$ld_shlibs"; then
13952 runpath_var=
13953 hardcode_libdir_flag_spec=
13954 export_dynamic_flag_spec=
13955 whole_archive_flag_spec=
13956 fi
13957 else
13958 # PORTME fill in a description of your system's linker (not GNU ld)
13959 case $host_os in
13960 aix3*)
13961 allow_undefined_flag=unsupported
13962 always_export_symbols=yes
13963 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'
13964 # Note: this linker hardcodes the directories in LIBPATH if there
13965 # are no directories specified by -L.
13966 hardcode_minus_L=yes
13967 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13968 # Neither direct hardcoding nor static linking is supported with a
13969 # broken collect2.
13970 hardcode_direct=unsupported
13971 fi
13972 ;;
13973
13974 aix[4-9]*)
13975 if test ia64 = "$host_cpu"; then
13976 # On IA64, the linker does run time linking by default, so we don't
13977 # have to do anything special.
13978 aix_use_runtimelinking=no
13979 exp_sym_flag='-Bexport'
13980 no_entry_flag=
13981 else
13982 # If we're using GNU nm, then we don't want the "-C" option.
13983 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13984 # Without the "-l" option, or with the "-B" option, AIX nm treats
13985 # weak defined symbols like other global defined symbols, whereas
13986 # GNU nm marks them as "W".
13987 # While the 'weak' keyword is ignored in the Export File, we need
13988 # it in the Import File for the 'aix-soname' feature, so we have
13989 # to replace the "-B" option with "-P" for AIX nm.
13990 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13991 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'
13992 else
13993 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 == "L") || (\$ 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'
13994 fi
13995 aix_use_runtimelinking=no
13996
13997 # Test if we are trying to use run time linking or normal
13998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13999 # have runtime linking enabled, and use it for executables.
14000 # For shared libraries, we enable/disable runtime linking
14001 # depending on the kind of the shared library created -
14002 # when "with_aix_soname,aix_use_runtimelinking" is:
14003 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14004 # "aix,yes" lib.so shared, rtl:yes, for executables
14005 # lib.a static archive
14006 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14007 # lib.a(lib.so.V) shared, rtl:no, for executables
14008 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14009 # lib.a(lib.so.V) shared, rtl:no
14010 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14011 # lib.a static archive
14012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14013 for ld_flag in $LDFLAGS; do
14014 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14015 aix_use_runtimelinking=yes
14016 break
14017 fi
14018 done
14019 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14020 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14021 # so we don't have lib.a shared libs to link our executables.
14022 # We have to force runtime linking in this case.
14023 aix_use_runtimelinking=yes
14024 LDFLAGS="$LDFLAGS -Wl,-brtl"
14025 fi
14026 ;;
14027 esac
14028
14029 exp_sym_flag='-bexport'
14030 no_entry_flag='-bnoentry'
14031 fi
14032
14033 # When large executables or shared objects are built, AIX ld can
14034 # have problems creating the table of contents. If linking a library
14035 # or program results in "error TOC overflow" add -mminimal-toc to
14036 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14037 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14038
14039 archive_cmds=''
14040 hardcode_direct=yes
14041 hardcode_direct_absolute=yes
14042 hardcode_libdir_separator=':'
14043 link_all_deplibs=yes
14044 file_list_spec='$wl-f,'
14045 case $with_aix_soname,$aix_use_runtimelinking in
14046 aix,*) ;; # traditional, no import file
14047 svr4,* | *,yes) # use import file
14048 # The Import File defines what to hardcode.
14049 hardcode_direct=no
14050 hardcode_direct_absolute=no
14051 ;;
14052 esac
14053
14054 if test yes = "$GCC"; then
14055 case $host_os in aix4.[012]|aix4.[012].*)
14056 # We only want to do this on AIX 4.2 and lower, the check
14057 # below for broken collect2 doesn't work under 4.3+
14058 collect2name=`$CC -print-prog-name=collect2`
14059 if test -f "$collect2name" &&
14060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14061 then
14062 # We have reworked collect2
14063 :
14064 else
14065 # We have old collect2
14066 hardcode_direct=unsupported
14067 # It fails to find uninstalled libraries when the uninstalled
14068 # path is not listed in the libpath. Setting hardcode_minus_L
14069 # to unsupported forces relinking
14070 hardcode_minus_L=yes
14071 hardcode_libdir_flag_spec='-L$libdir'
14072 hardcode_libdir_separator=
14073 fi
14074 ;;
14075 esac
14076 shared_flag='-shared'
14077 if test yes = "$aix_use_runtimelinking"; then
14078 shared_flag="$shared_flag "'$wl-G'
14079 fi
14080 # Need to ensure runtime linking is disabled for the traditional
14081 # shared library, or the linker may eventually find shared libraries
14082 # /with/ Import File - we do not want to mix them.
14083 shared_flag_aix='-shared'
14084 shared_flag_svr4='-shared $wl-G'
14085 else
14086 # not using gcc
14087 if test ia64 = "$host_cpu"; then
14088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14089 # chokes on -Wl,-G. The following line is correct:
14090 shared_flag='-G'
14091 else
14092 if test yes = "$aix_use_runtimelinking"; then
14093 shared_flag='$wl-G'
14094 else
14095 shared_flag='$wl-bM:SRE'
14096 fi
14097 shared_flag_aix='$wl-bM:SRE'
14098 shared_flag_svr4='$wl-G'
14099 fi
14100 fi
14101
14102 export_dynamic_flag_spec='$wl-bexpall'
14103 # It seems that -bexpall does not export symbols beginning with
14104 # underscore (_), so it is better to generate a list of symbols to export.
14105 always_export_symbols=yes
14106 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14107 # Warning - without using the other runtime loading flags (-brtl),
14108 # -berok will link without error, but may produce a broken library.
14109 allow_undefined_flag='-berok'
14110 # Determine the default libpath from the value encoded in an
14111 # empty executable.
14112 if test set = "${lt_cv_aix_libpath+set}"; then
14113 aix_libpath=$lt_cv_aix_libpath
14114 else
14115 if test ${lt_cv_aix_libpath_+y}
14116 then :
14117 printf %s "(cached) " >&6
14118 else $as_nop
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121
14122 int
14123 main (void)
14124 {
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"
14131 then :
14132
14133 lt_aix_libpath_sed='
14134 /Import File Strings/,/^$/ {
14135 /^0/ {
14136 s/^0 *\([^ ]*\) *$/\1/
14137 p
14138 }
14139 }'
14140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14141 # Check for a 64-bit object if we didn't find anything.
14142 if test -z "$lt_cv_aix_libpath_"; then
14143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14144 fi
14145 fi
14146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14147 conftest$ac_exeext conftest.$ac_ext
14148 if test -z "$lt_cv_aix_libpath_"; then
14149 lt_cv_aix_libpath_=/usr/lib:/lib
14150 fi
14151
14152 fi
14153
14154 aix_libpath=$lt_cv_aix_libpath_
14155 fi
14156
14157 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14158 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
14159 else
14160 if test ia64 = "$host_cpu"; then
14161 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14162 allow_undefined_flag="-z nodefs"
14163 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"
14164 else
14165 # Determine the default libpath from the value encoded in an
14166 # empty executable.
14167 if test set = "${lt_cv_aix_libpath+set}"; then
14168 aix_libpath=$lt_cv_aix_libpath
14169 else
14170 if test ${lt_cv_aix_libpath_+y}
14171 then :
14172 printf %s "(cached) " >&6
14173 else $as_nop
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176
14177 int
14178 main (void)
14179 {
14180
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"
14186 then :
14187
14188 lt_aix_libpath_sed='
14189 /Import File Strings/,/^$/ {
14190 /^0/ {
14191 s/^0 *\([^ ]*\) *$/\1/
14192 p
14193 }
14194 }'
14195 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14196 # Check for a 64-bit object if we didn't find anything.
14197 if test -z "$lt_cv_aix_libpath_"; then
14198 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14199 fi
14200 fi
14201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14202 conftest$ac_exeext conftest.$ac_ext
14203 if test -z "$lt_cv_aix_libpath_"; then
14204 lt_cv_aix_libpath_=/usr/lib:/lib
14205 fi
14206
14207 fi
14208
14209 aix_libpath=$lt_cv_aix_libpath_
14210 fi
14211
14212 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14213 # Warning - without using the other run time loading flags,
14214 # -berok will link without error, but may produce a broken library.
14215 no_undefined_flag=' $wl-bernotok'
14216 allow_undefined_flag=' $wl-berok'
14217 if test yes = "$with_gnu_ld"; then
14218 # We only use this code for GNU lds that support --whole-archive.
14219 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14220 else
14221 # Exported symbols can be pulled into shared objects from archives
14222 whole_archive_flag_spec='$convenience'
14223 fi
14224 archive_cmds_need_lc=yes
14225 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14226 # -brtl affects multiple linker settings, -berok does not and is overridden later
14227 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14228 if test svr4 != "$with_aix_soname"; then
14229 # This is similar to how AIX traditionally builds its shared libraries.
14230 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'
14231 fi
14232 if test aix != "$with_aix_soname"; then
14233 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'
14234 else
14235 # used by -dlpreopen to get the symbols
14236 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14237 fi
14238 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14239 fi
14240 fi
14241 ;;
14242
14243 amigaos*)
14244 case $host_cpu in
14245 powerpc)
14246 # see comment about AmigaOS4 .so support
14247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14248 archive_expsym_cmds=''
14249 ;;
14250 m68k)
14251 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)'
14252 hardcode_libdir_flag_spec='-L$libdir'
14253 hardcode_minus_L=yes
14254 ;;
14255 esac
14256 ;;
14257
14258 bsdi[45]*)
14259 export_dynamic_flag_spec=-rdynamic
14260 ;;
14261
14262 cygwin* | mingw* | pw32* | cegcc*)
14263 # When not using gcc, we currently assume that we are using
14264 # Microsoft Visual C++ or Intel C++ Compiler.
14265 # hardcode_libdir_flag_spec is actually meaningless, as there is
14266 # no search path for DLLs.
14267 case $cc_basename in
14268 cl* | icl*)
14269 # Native MSVC or ICC
14270 hardcode_libdir_flag_spec=' '
14271 allow_undefined_flag=unsupported
14272 always_export_symbols=yes
14273 file_list_spec='@'
14274 # Tell ltmain to make .lib files, not .a files.
14275 libext=lib
14276 # Tell ltmain to make .dll files, not .so files.
14277 shrext_cmds=.dll
14278 # FIXME: Setting linknames here is a bad hack.
14279 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14280 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14281 cp "$export_symbols" "$output_objdir/$soname.def";
14282 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14283 else
14284 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14285 fi~
14286 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14287 linknames='
14288 # The linker will not automatically build a static lib if we build a DLL.
14289 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14290 enable_shared_with_static_runtimes=yes
14291 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14293 # Don't use ranlib
14294 old_postinstall_cmds='chmod 644 $oldlib'
14295 postlink_cmds='lt_outputfile="@OUTPUT@"~
14296 lt_tool_outputfile="@TOOL_OUTPUT@"~
14297 case $lt_outputfile in
14298 *.exe|*.EXE) ;;
14299 *)
14300 lt_outputfile=$lt_outputfile.exe
14301 lt_tool_outputfile=$lt_tool_outputfile.exe
14302 ;;
14303 esac~
14304 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14306 $RM "$lt_outputfile.manifest";
14307 fi'
14308 ;;
14309 *)
14310 # Assume MSVC and ICC wrapper
14311 hardcode_libdir_flag_spec=' '
14312 allow_undefined_flag=unsupported
14313 # Tell ltmain to make .lib files, not .a files.
14314 libext=lib
14315 # Tell ltmain to make .dll files, not .so files.
14316 shrext_cmds=.dll
14317 # FIXME: Setting linknames here is a bad hack.
14318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14319 # The linker will automatically build a .lib file if we build a DLL.
14320 old_archive_from_new_cmds='true'
14321 # FIXME: Should let the user specify the lib program.
14322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14323 enable_shared_with_static_runtimes=yes
14324 ;;
14325 esac
14326 ;;
14327
14328 darwin* | rhapsody*)
14329
14330
14331 archive_cmds_need_lc=no
14332 hardcode_direct=no
14333 hardcode_automatic=yes
14334 hardcode_shlibpath_var=unsupported
14335 if test yes = "$lt_cv_ld_force_load"; then
14336 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\"`'
14337
14338 else
14339 whole_archive_flag_spec=''
14340 fi
14341 link_all_deplibs=yes
14342 allow_undefined_flag=$_lt_dar_allow_undefined
14343 case $cc_basename in
14344 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14345 *) _lt_dar_can_shared=$GCC ;;
14346 esac
14347 if test yes = "$_lt_dar_can_shared"; then
14348 output_verbose_link_cmd=func_echo_all
14349 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14350 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14351 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"
14352 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"
14353
14354 else
14355 ld_shlibs=no
14356 fi
14357
14358 ;;
14359
14360 dgux*)
14361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362 hardcode_libdir_flag_spec='-L$libdir'
14363 hardcode_shlibpath_var=no
14364 ;;
14365
14366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14367 # support. Future versions do this automatically, but an explicit c++rt0.o
14368 # does not break anything, and helps significantly (at the cost of a little
14369 # extra space).
14370 freebsd2.2*)
14371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14372 hardcode_libdir_flag_spec='-R$libdir'
14373 hardcode_direct=yes
14374 hardcode_shlibpath_var=no
14375 ;;
14376
14377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14378 freebsd2.*)
14379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14380 hardcode_direct=yes
14381 hardcode_minus_L=yes
14382 hardcode_shlibpath_var=no
14383 ;;
14384
14385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14386 freebsd* | dragonfly* | midnightbsd*)
14387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14388 hardcode_libdir_flag_spec='-R$libdir'
14389 hardcode_direct=yes
14390 hardcode_shlibpath_var=no
14391 ;;
14392
14393 hpux9*)
14394 if test yes = "$GCC"; then
14395 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'
14396 else
14397 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'
14398 fi
14399 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14400 hardcode_libdir_separator=:
14401 hardcode_direct=yes
14402
14403 # hardcode_minus_L: Not really in the search PATH,
14404 # but as the default location of the library.
14405 hardcode_minus_L=yes
14406 export_dynamic_flag_spec='$wl-E'
14407 ;;
14408
14409 hpux10*)
14410 if test yes,no = "$GCC,$with_gnu_ld"; then
14411 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14412 else
14413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14414 fi
14415 if test no = "$with_gnu_ld"; then
14416 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14417 hardcode_libdir_separator=:
14418 hardcode_direct=yes
14419 hardcode_direct_absolute=yes
14420 export_dynamic_flag_spec='$wl-E'
14421 # hardcode_minus_L: Not really in the search PATH,
14422 # but as the default location of the library.
14423 hardcode_minus_L=yes
14424 fi
14425 ;;
14426
14427 hpux11*)
14428 if test yes,no = "$GCC,$with_gnu_ld"; then
14429 case $host_cpu in
14430 hppa*64*)
14431 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14432 ;;
14433 ia64*)
14434 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14435 ;;
14436 *)
14437 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14438 ;;
14439 esac
14440 else
14441 case $host_cpu in
14442 hppa*64*)
14443 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14444 ;;
14445 ia64*)
14446 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14447 ;;
14448 *)
14449
14450 # Older versions of the 11.00 compiler do not understand -b yet
14451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14453 printf %s "checking if $CC understands -b... " >&6; }
14454 if test ${lt_cv_prog_compiler__b+y}
14455 then :
14456 printf %s "(cached) " >&6
14457 else $as_nop
14458 lt_cv_prog_compiler__b=no
14459 save_LDFLAGS=$LDFLAGS
14460 LDFLAGS="$LDFLAGS -b"
14461 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14463 # The linker can only warn and ignore the option if not recognized
14464 # So say no if there are warnings
14465 if test -s conftest.err; then
14466 # Append any errors to the config.log.
14467 cat conftest.err 1>&5
14468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14470 if diff conftest.exp conftest.er2 >/dev/null; then
14471 lt_cv_prog_compiler__b=yes
14472 fi
14473 else
14474 lt_cv_prog_compiler__b=yes
14475 fi
14476 fi
14477 $RM -r conftest*
14478 LDFLAGS=$save_LDFLAGS
14479
14480 fi
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14482 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14483
14484 if test yes = "$lt_cv_prog_compiler__b"; then
14485 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14486 else
14487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14488 fi
14489
14490 ;;
14491 esac
14492 fi
14493 if test no = "$with_gnu_ld"; then
14494 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14495 hardcode_libdir_separator=:
14496
14497 case $host_cpu in
14498 hppa*64*|ia64*)
14499 hardcode_direct=no
14500 hardcode_shlibpath_var=no
14501 ;;
14502 *)
14503 hardcode_direct=yes
14504 hardcode_direct_absolute=yes
14505 export_dynamic_flag_spec='$wl-E'
14506
14507 # hardcode_minus_L: Not really in the search PATH,
14508 # but as the default location of the library.
14509 hardcode_minus_L=yes
14510 ;;
14511 esac
14512 fi
14513 ;;
14514
14515 irix5* | irix6* | nonstopux*)
14516 if test yes = "$GCC"; then
14517 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'
14518 # Try to use the -exported_symbol ld option, if it does not
14519 # work, assume that -exports_file does not work either and
14520 # implicitly export all symbols.
14521 # This should be the same for all languages, so no per-tag cache variable.
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14523 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14524 if test ${lt_cv_irix_exported_symbol+y}
14525 then :
14526 printf %s "(cached) " >&6
14527 else $as_nop
14528 save_LDFLAGS=$LDFLAGS
14529 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 int foo (void) { return 0; }
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"
14535 then :
14536 lt_cv_irix_exported_symbol=yes
14537 else $as_nop
14538 lt_cv_irix_exported_symbol=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LDFLAGS=$save_LDFLAGS
14543 fi
14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14545 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14546 if test yes = "$lt_cv_irix_exported_symbol"; then
14547 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'
14548 fi
14549 link_all_deplibs=no
14550 else
14551 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'
14552 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'
14553 fi
14554 archive_cmds_need_lc='no'
14555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14556 hardcode_libdir_separator=:
14557 inherit_rpath=yes
14558 link_all_deplibs=yes
14559 ;;
14560
14561 linux*)
14562 case $cc_basename in
14563 tcc*)
14564 # Fabrice Bellard et al's Tiny C Compiler
14565 ld_shlibs=yes
14566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14568 ;;
14569 esac
14570 ;;
14571
14572 netbsd* | netbsdelf*-gnu)
14573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14575 else
14576 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14577 fi
14578 hardcode_libdir_flag_spec='-R$libdir'
14579 hardcode_direct=yes
14580 hardcode_shlibpath_var=no
14581 ;;
14582
14583 newsos6)
14584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14585 hardcode_direct=yes
14586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14587 hardcode_libdir_separator=:
14588 hardcode_shlibpath_var=no
14589 ;;
14590
14591 *nto* | *qnx*)
14592 ;;
14593
14594 openbsd* | bitrig*)
14595 if test -f /usr/libexec/ld.so; then
14596 hardcode_direct=yes
14597 hardcode_shlibpath_var=no
14598 hardcode_direct_absolute=yes
14599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14601 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14602 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14603 export_dynamic_flag_spec='$wl-E'
14604 else
14605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14606 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14607 fi
14608 else
14609 ld_shlibs=no
14610 fi
14611 ;;
14612
14613 os2*)
14614 hardcode_libdir_flag_spec='-L$libdir'
14615 hardcode_minus_L=yes
14616 allow_undefined_flag=unsupported
14617 shrext_cmds=.dll
14618 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14621 $ECHO EXPORTS >> $output_objdir/$libname.def~
14622 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14623 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14624 emximp -o $lib $output_objdir/$libname.def'
14625 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14628 $ECHO EXPORTS >> $output_objdir/$libname.def~
14629 prefix_cmds="$SED"~
14630 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14631 prefix_cmds="$prefix_cmds -e 1d";
14632 fi~
14633 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14634 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14636 emximp -o $lib $output_objdir/$libname.def'
14637 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14638 enable_shared_with_static_runtimes=yes
14639 file_list_spec='@'
14640 ;;
14641
14642 osf3*)
14643 if test yes = "$GCC"; then
14644 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14645 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'
14646 else
14647 allow_undefined_flag=' -expect_unresolved \*'
14648 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'
14649 fi
14650 archive_cmds_need_lc='no'
14651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14652 hardcode_libdir_separator=:
14653 ;;
14654
14655 osf4* | osf5*) # as osf3* with the addition of -msym flag
14656 if test yes = "$GCC"; then
14657 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14658 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'
14659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14660 else
14661 allow_undefined_flag=' -expect_unresolved \*'
14662 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'
14663 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~
14664 $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'
14665
14666 # Both c and cxx compiler support -rpath directly
14667 hardcode_libdir_flag_spec='-rpath $libdir'
14668 fi
14669 archive_cmds_need_lc='no'
14670 hardcode_libdir_separator=:
14671 ;;
14672
14673 solaris*)
14674 no_undefined_flag=' -z defs'
14675 if test yes = "$GCC"; then
14676 wlarc='$wl'
14677 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14679 $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'
14680 else
14681 case `$CC -V 2>&1` in
14682 *"Compilers 5.0"*)
14683 wlarc=''
14684 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14686 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14687 ;;
14688 *)
14689 wlarc='$wl'
14690 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14692 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14693 ;;
14694 esac
14695 fi
14696 hardcode_libdir_flag_spec='-R$libdir'
14697 hardcode_shlibpath_var=no
14698 case $host_os in
14699 solaris2.[0-5] | solaris2.[0-5].*) ;;
14700 *)
14701 # The compiler driver will combine and reorder linker options,
14702 # but understands '-z linker_flag'. GCC discards it without '$wl',
14703 # but is careful enough not to reorder.
14704 # Supported since Solaris 2.6 (maybe 2.5.1?)
14705 if test yes = "$GCC"; then
14706 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14707 else
14708 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14709 fi
14710 ;;
14711 esac
14712 link_all_deplibs=yes
14713 ;;
14714
14715 sunos4*)
14716 if test sequent = "$host_vendor"; then
14717 # Use $CC to link under sequent, because it throws in some extra .o
14718 # files that make .init and .fini sections work.
14719 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14720 else
14721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14722 fi
14723 hardcode_libdir_flag_spec='-L$libdir'
14724 hardcode_direct=yes
14725 hardcode_minus_L=yes
14726 hardcode_shlibpath_var=no
14727 ;;
14728
14729 sysv4)
14730 case $host_vendor in
14731 sni)
14732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14733 hardcode_direct=yes # is this really true???
14734 ;;
14735 siemens)
14736 ## LD is ld it makes a PLAMLIB
14737 ## CC just makes a GrossModule.
14738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14739 reload_cmds='$CC -r -o $output$reload_objs'
14740 hardcode_direct=no
14741 ;;
14742 motorola)
14743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14745 ;;
14746 esac
14747 runpath_var='LD_RUN_PATH'
14748 hardcode_shlibpath_var=no
14749 ;;
14750
14751 sysv4.3*)
14752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753 hardcode_shlibpath_var=no
14754 export_dynamic_flag_spec='-Bexport'
14755 ;;
14756
14757 sysv4*MP*)
14758 if test -d /usr/nec; then
14759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_shlibpath_var=no
14761 runpath_var=LD_RUN_PATH
14762 hardcode_runpath_var=yes
14763 ld_shlibs=yes
14764 fi
14765 ;;
14766
14767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14768 no_undefined_flag='$wl-z,text'
14769 archive_cmds_need_lc=no
14770 hardcode_shlibpath_var=no
14771 runpath_var='LD_RUN_PATH'
14772
14773 if test yes = "$GCC"; then
14774 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14775 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14776 else
14777 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14779 fi
14780 ;;
14781
14782 sysv5* | sco3.2v5* | sco5v6*)
14783 # Note: We CANNOT use -z defs as we might desire, because we do not
14784 # link with -lc, and that would cause any symbols used from libc to
14785 # always be unresolved, which means just about no library would
14786 # ever link correctly. If we're not using GNU ld we use -z text
14787 # though, which does catch some bad symbols but isn't as heavy-handed
14788 # as -z defs.
14789 no_undefined_flag='$wl-z,text'
14790 allow_undefined_flag='$wl-z,nodefs'
14791 archive_cmds_need_lc=no
14792 hardcode_shlibpath_var=no
14793 hardcode_libdir_flag_spec='$wl-R,$libdir'
14794 hardcode_libdir_separator=':'
14795 link_all_deplibs=yes
14796 export_dynamic_flag_spec='$wl-Bexport'
14797 runpath_var='LD_RUN_PATH'
14798
14799 if test yes = "$GCC"; then
14800 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14801 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 else
14803 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14805 fi
14806 ;;
14807
14808 uts4*)
14809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_libdir_flag_spec='-L$libdir'
14811 hardcode_shlibpath_var=no
14812 ;;
14813
14814 *)
14815 ld_shlibs=no
14816 ;;
14817 esac
14818
14819 if test sni = "$host_vendor"; then
14820 case $host in
14821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14822 export_dynamic_flag_spec='$wl-Blargedynsym'
14823 ;;
14824 esac
14825 fi
14826 fi
14827
14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14829 printf "%s\n" "$ld_shlibs" >&6; }
14830 test no = "$ld_shlibs" && can_build_shared=no
14831
14832 with_gnu_ld=$with_gnu_ld
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848 #
14849 # Do we need to explicitly link libc?
14850 #
14851 case "x$archive_cmds_need_lc" in
14852 x|xyes)
14853 # Assume -lc should be added
14854 archive_cmds_need_lc=yes
14855
14856 if test yes,yes = "$GCC,$enable_shared"; then
14857 case $archive_cmds in
14858 *'~'*)
14859 # FIXME: we may have to deal with multi-command sequences.
14860 ;;
14861 '$CC '*)
14862 # Test whether the compiler implicitly links with -lc since on some
14863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14864 # to ld, don't add -lc before -lgcc.
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14866 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14867 if test ${lt_cv_archive_cmds_need_lc+y}
14868 then :
14869 printf %s "(cached) " >&6
14870 else $as_nop
14871 $RM conftest*
14872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14873
14874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14875 (eval $ac_compile) 2>&5
14876 ac_status=$?
14877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14878 test $ac_status = 0; } 2>conftest.err; then
14879 soname=conftest
14880 lib=conftest
14881 libobjs=conftest.$ac_objext
14882 deplibs=
14883 wl=$lt_prog_compiler_wl
14884 pic_flag=$lt_prog_compiler_pic
14885 compiler_flags=-v
14886 linker_flags=-v
14887 verstring=
14888 output_objdir=.
14889 libname=conftest
14890 lt_save_allow_undefined_flag=$allow_undefined_flag
14891 allow_undefined_flag=
14892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14893 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14894 ac_status=$?
14895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14896 test $ac_status = 0; }
14897 then
14898 lt_cv_archive_cmds_need_lc=no
14899 else
14900 lt_cv_archive_cmds_need_lc=yes
14901 fi
14902 allow_undefined_flag=$lt_save_allow_undefined_flag
14903 else
14904 cat conftest.err 1>&5
14905 fi
14906 $RM conftest*
14907
14908 fi
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14910 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14911 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14912 ;;
14913 esac
14914 fi
14915 ;;
14916 esac
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15070 printf %s "checking dynamic linker characteristics... " >&6; }
15071
15072 if test yes = "$GCC"; then
15073 case $host_os in
15074 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15075 *) lt_awk_arg='/^libraries:/' ;;
15076 esac
15077 case $host_os in
15078 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15079 *) lt_sed_strip_eq='s|=/|/|g' ;;
15080 esac
15081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15082 case $lt_search_path_spec in
15083 *\;*)
15084 # if the path contains ";" then we assume it to be the separator
15085 # otherwise default to the standard path separator (i.e. ":") - it is
15086 # assumed that no part of a normal pathname contains ";" but that should
15087 # okay in the real world where ";" in dirpaths is itself problematic.
15088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15089 ;;
15090 *)
15091 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15092 ;;
15093 esac
15094 # Ok, now we have the path, separated by spaces, we can step through it
15095 # and add multilib dir if necessary...
15096 lt_tmp_lt_search_path_spec=
15097 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15098 # ...but if some path component already ends with the multilib dir we assume
15099 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15100 case "$lt_multi_os_dir; $lt_search_path_spec " in
15101 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15102 lt_multi_os_dir=
15103 ;;
15104 esac
15105 for lt_sys_path in $lt_search_path_spec; do
15106 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15108 elif test -n "$lt_multi_os_dir"; then
15109 test -d "$lt_sys_path" && \
15110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15111 fi
15112 done
15113 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15114 BEGIN {RS = " "; FS = "/|\n";} {
15115 lt_foo = "";
15116 lt_count = 0;
15117 for (lt_i = NF; lt_i > 0; lt_i--) {
15118 if ($lt_i != "" && $lt_i != ".") {
15119 if ($lt_i == "..") {
15120 lt_count++;
15121 } else {
15122 if (lt_count == 0) {
15123 lt_foo = "/" $lt_i lt_foo;
15124 } else {
15125 lt_count--;
15126 }
15127 }
15128 }
15129 }
15130 if (lt_foo != "") { lt_freq[lt_foo]++; }
15131 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15132 }'`
15133 # AWK program above erroneously prepends '/' to C:/dos/paths
15134 # for these hosts.
15135 case $host_os in
15136 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15137 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15138 esac
15139 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15140 else
15141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15142 fi
15143 library_names_spec=
15144 libname_spec='lib$name'
15145 soname_spec=
15146 shrext_cmds=.so
15147 postinstall_cmds=
15148 postuninstall_cmds=
15149 finish_cmds=
15150 finish_eval=
15151 shlibpath_var=
15152 shlibpath_overrides_runpath=unknown
15153 version_type=none
15154 dynamic_linker="$host_os ld.so"
15155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15156 need_lib_prefix=unknown
15157 hardcode_into_libs=no
15158
15159 # when you set need_version to no, make sure it does not cause -set_version
15160 # flags to be left without arguments
15161 need_version=unknown
15162
15163
15164
15165 case $host_os in
15166 aix3*)
15167 version_type=linux # correct to gnu/linux during the next big refactor
15168 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15169 shlibpath_var=LIBPATH
15170
15171 # AIX 3 has no versioning support, so we append a major version to the name.
15172 soname_spec='$libname$release$shared_ext$major'
15173 ;;
15174
15175 aix[4-9]*)
15176 version_type=linux # correct to gnu/linux during the next big refactor
15177 need_lib_prefix=no
15178 need_version=no
15179 hardcode_into_libs=yes
15180 if test ia64 = "$host_cpu"; then
15181 # AIX 5 supports IA64
15182 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 else
15185 # With GCC up to 2.95.x, collect2 would create an import file
15186 # for dependence libraries. The import file would start with
15187 # the line '#! .'. This would cause the generated library to
15188 # depend on '.', always an invalid library. This was fixed in
15189 # development snapshots of GCC prior to 3.0.
15190 case $host_os in
15191 aix4 | aix4.[01] | aix4.[01].*)
15192 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15193 echo ' yes '
15194 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15195 :
15196 else
15197 can_build_shared=no
15198 fi
15199 ;;
15200 esac
15201 # Using Import Files as archive members, it is possible to support
15202 # filename-based versioning of shared library archives on AIX. While
15203 # this would work for both with and without runtime linking, it will
15204 # prevent static linking of such archives. So we do filename-based
15205 # shared library versioning with .so extension only, which is used
15206 # when both runtime linking and shared linking is enabled.
15207 # Unfortunately, runtime linking may impact performance, so we do
15208 # not want this to be the default eventually. Also, we use the
15209 # versioned .so libs for executables only if there is the -brtl
15210 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15211 # To allow for filename-based versioning support, we need to create
15212 # libNAME.so.V as an archive file, containing:
15213 # *) an Import File, referring to the versioned filename of the
15214 # archive as well as the shared archive member, telling the
15215 # bitwidth (32 or 64) of that shared object, and providing the
15216 # list of exported symbols of that shared object, eventually
15217 # decorated with the 'weak' keyword
15218 # *) the shared object with the F_LOADONLY flag set, to really avoid
15219 # it being seen by the linker.
15220 # At run time we better use the real file rather than another symlink,
15221 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15222
15223 case $with_aix_soname,$aix_use_runtimelinking in
15224 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15225 # soname into executable. Probably we can add versioning support to
15226 # collect2, so additional links can be useful in future.
15227 aix,yes) # traditional libtool
15228 dynamic_linker='AIX unversionable lib.so'
15229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15230 # instead of lib<name>.a to let people know that these are not
15231 # typical AIX shared libraries.
15232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15233 ;;
15234 aix,no) # traditional AIX only
15235 dynamic_linker='AIX lib.a(lib.so.V)'
15236 # We preserve .a as extension for shared libraries through AIX4.2
15237 # and later when we are not doing run time linking.
15238 library_names_spec='$libname$release.a $libname.a'
15239 soname_spec='$libname$release$shared_ext$major'
15240 ;;
15241 svr4,*) # full svr4 only
15242 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15243 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15244 # We do not specify a path in Import Files, so LIBPATH fires.
15245 shlibpath_overrides_runpath=yes
15246 ;;
15247 *,yes) # both, prefer svr4
15248 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15249 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15250 # unpreferred sharedlib libNAME.a needs extra handling
15251 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"'
15252 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"'
15253 # We do not specify a path in Import Files, so LIBPATH fires.
15254 shlibpath_overrides_runpath=yes
15255 ;;
15256 *,no) # both, prefer aix
15257 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15258 library_names_spec='$libname$release.a $libname.a'
15259 soname_spec='$libname$release$shared_ext$major'
15260 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15261 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)'
15262 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"'
15263 ;;
15264 esac
15265 shlibpath_var=LIBPATH
15266 fi
15267 ;;
15268
15269 amigaos*)
15270 case $host_cpu in
15271 powerpc)
15272 # Since July 2007 AmigaOS4 officially supports .so libraries.
15273 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15275 ;;
15276 m68k)
15277 library_names_spec='$libname.ixlibrary $libname.a'
15278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15279 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'
15280 ;;
15281 esac
15282 ;;
15283
15284 beos*)
15285 library_names_spec='$libname$shared_ext'
15286 dynamic_linker="$host_os ld.so"
15287 shlibpath_var=LIBRARY_PATH
15288 ;;
15289
15290 bsdi[45]*)
15291 version_type=linux # correct to gnu/linux during the next big refactor
15292 need_version=no
15293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15294 soname_spec='$libname$release$shared_ext$major'
15295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15299 # the default ld.so.conf also contains /usr/contrib/lib and
15300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15301 # libtool to hard-code these into programs
15302 ;;
15303
15304 cygwin* | mingw* | pw32* | cegcc*)
15305 version_type=windows
15306 shrext_cmds=.dll
15307 need_version=no
15308 need_lib_prefix=no
15309
15310 case $GCC,$cc_basename in
15311 yes,*)
15312 # gcc
15313 library_names_spec='$libname.dll.a'
15314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15315 postinstall_cmds='base_file=`basename \$file`~
15316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15317 dldir=$destdir/`dirname \$dlpath`~
15318 test -d \$dldir || mkdir -p \$dldir~
15319 $install_prog $dir/$dlname \$dldir/$dlname~
15320 chmod a+x \$dldir/$dlname~
15321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15323 fi'
15324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15325 dlpath=$dir/\$dldll~
15326 $RM \$dlpath'
15327 shlibpath_overrides_runpath=yes
15328
15329 case $host_os in
15330 cygwin*)
15331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15332 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15333
15334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15335 ;;
15336 mingw* | cegcc*)
15337 # MinGW DLLs use traditional 'lib' prefix
15338 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15339 ;;
15340 pw32*)
15341 # pw32 DLLs use 'pw' prefix rather than 'lib'
15342 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15343 ;;
15344 esac
15345 dynamic_linker='Win32 ld.exe'
15346 ;;
15347
15348 *,cl* | *,icl*)
15349 # Native MSVC or ICC
15350 libname_spec='$name'
15351 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15352 library_names_spec='$libname.dll.lib'
15353
15354 case $build_os in
15355 mingw*)
15356 sys_lib_search_path_spec=
15357 lt_save_ifs=$IFS
15358 IFS=';'
15359 for lt_path in $LIB
15360 do
15361 IFS=$lt_save_ifs
15362 # Let DOS variable expansion print the short 8.3 style file name.
15363 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15364 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15365 done
15366 IFS=$lt_save_ifs
15367 # Convert to MSYS style.
15368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15369 ;;
15370 cygwin*)
15371 # Convert to unix form, then to dos form, then back to unix form
15372 # but this time dos style (no spaces!) so that the unix form looks
15373 # like /cygdrive/c/PROGRA~1:/cygdr...
15374 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15375 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15376 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15377 ;;
15378 *)
15379 sys_lib_search_path_spec=$LIB
15380 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15381 # It is most probably a Windows format PATH.
15382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15383 else
15384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15385 fi
15386 # FIXME: find the short name or the path components, as spaces are
15387 # common. (e.g. "Program Files" -> "PROGRA~1")
15388 ;;
15389 esac
15390
15391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15392 postinstall_cmds='base_file=`basename \$file`~
15393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15394 dldir=$destdir/`dirname \$dlpath`~
15395 test -d \$dldir || mkdir -p \$dldir~
15396 $install_prog $dir/$dlname \$dldir/$dlname'
15397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15398 dlpath=$dir/\$dldll~
15399 $RM \$dlpath'
15400 shlibpath_overrides_runpath=yes
15401 dynamic_linker='Win32 link.exe'
15402 ;;
15403
15404 *)
15405 # Assume MSVC and ICC wrapper
15406 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15407 dynamic_linker='Win32 ld.exe'
15408 ;;
15409 esac
15410 # FIXME: first we should search . and the directory the executable is in
15411 shlibpath_var=PATH
15412 ;;
15413
15414 darwin* | rhapsody*)
15415 dynamic_linker="$host_os dyld"
15416 version_type=darwin
15417 need_lib_prefix=no
15418 need_version=no
15419 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15420 soname_spec='$libname$release$major$shared_ext'
15421 shlibpath_overrides_runpath=yes
15422 shlibpath_var=DYLD_LIBRARY_PATH
15423 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15424
15425 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15427 ;;
15428
15429 dgux*)
15430 version_type=linux # correct to gnu/linux during the next big refactor
15431 need_lib_prefix=no
15432 need_version=no
15433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15434 soname_spec='$libname$release$shared_ext$major'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 ;;
15437
15438 freebsd* | dragonfly* | midnightbsd*)
15439 # DragonFly does not have aout. When/if they implement a new
15440 # versioning mechanism, adjust this.
15441 if test -x /usr/bin/objformat; then
15442 objformat=`/usr/bin/objformat`
15443 else
15444 case $host_os in
15445 freebsd[23].*) objformat=aout ;;
15446 *) objformat=elf ;;
15447 esac
15448 fi
15449 version_type=freebsd-$objformat
15450 case $version_type in
15451 freebsd-elf*)
15452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15453 soname_spec='$libname$release$shared_ext$major'
15454 need_version=no
15455 need_lib_prefix=no
15456 ;;
15457 freebsd-*)
15458 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15459 need_version=yes
15460 ;;
15461 esac
15462 shlibpath_var=LD_LIBRARY_PATH
15463 case $host_os in
15464 freebsd2.*)
15465 shlibpath_overrides_runpath=yes
15466 ;;
15467 freebsd3.[01]* | freebsdelf3.[01]*)
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15470 ;;
15471 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15472 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15473 shlibpath_overrides_runpath=no
15474 hardcode_into_libs=yes
15475 ;;
15476 *) # from 4.6 on, and DragonFly
15477 shlibpath_overrides_runpath=yes
15478 hardcode_into_libs=yes
15479 ;;
15480 esac
15481 ;;
15482
15483 haiku*)
15484 version_type=linux # correct to gnu/linux during the next big refactor
15485 need_lib_prefix=no
15486 need_version=no
15487 dynamic_linker="$host_os runtime_loader"
15488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15489 soname_spec='$libname$release$shared_ext$major'
15490 shlibpath_var=LIBRARY_PATH
15491 shlibpath_overrides_runpath=no
15492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15493 hardcode_into_libs=yes
15494 ;;
15495
15496 hpux9* | hpux10* | hpux11*)
15497 # Give a soname corresponding to the major version so that dld.sl refuses to
15498 # link against other versions.
15499 version_type=sunos
15500 need_lib_prefix=no
15501 need_version=no
15502 case $host_cpu in
15503 ia64*)
15504 shrext_cmds='.so'
15505 hardcode_into_libs=yes
15506 dynamic_linker="$host_os dld.so"
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15510 soname_spec='$libname$release$shared_ext$major'
15511 if test 32 = "$HPUX_IA64_MODE"; then
15512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15513 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15514 else
15515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15516 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15517 fi
15518 ;;
15519 hppa*64*)
15520 shrext_cmds='.sl'
15521 hardcode_into_libs=yes
15522 dynamic_linker="$host_os dld.sl"
15523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15526 soname_spec='$libname$release$shared_ext$major'
15527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15529 ;;
15530 *)
15531 shrext_cmds='.sl'
15532 dynamic_linker="$host_os dld.sl"
15533 shlibpath_var=SHLIB_PATH
15534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15536 soname_spec='$libname$release$shared_ext$major'
15537 ;;
15538 esac
15539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15540 postinstall_cmds='chmod 555 $lib'
15541 # or fails outright, so override atomically:
15542 install_override_mode=555
15543 ;;
15544
15545 interix[3-9]*)
15546 version_type=linux # correct to gnu/linux during the next big refactor
15547 need_lib_prefix=no
15548 need_version=no
15549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15550 soname_spec='$libname$release$shared_ext$major'
15551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15552 shlibpath_var=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath=no
15554 hardcode_into_libs=yes
15555 ;;
15556
15557 irix5* | irix6* | nonstopux*)
15558 case $host_os in
15559 nonstopux*) version_type=nonstopux ;;
15560 *)
15561 if test yes = "$lt_cv_prog_gnu_ld"; then
15562 version_type=linux # correct to gnu/linux during the next big refactor
15563 else
15564 version_type=irix
15565 fi ;;
15566 esac
15567 need_lib_prefix=no
15568 need_version=no
15569 soname_spec='$libname$release$shared_ext$major'
15570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15571 case $host_os in
15572 irix5* | nonstopux*)
15573 libsuff= shlibsuff=
15574 ;;
15575 *)
15576 case $LD in # libtool.m4 will add one of these switches to LD
15577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15578 libsuff= shlibsuff= libmagic=32-bit;;
15579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15580 libsuff=32 shlibsuff=N32 libmagic=N32;;
15581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15583 *) libsuff= shlibsuff= libmagic=never-match;;
15584 esac
15585 ;;
15586 esac
15587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15588 shlibpath_overrides_runpath=no
15589 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15590 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15591 hardcode_into_libs=yes
15592 ;;
15593
15594 # No shared lib support for Linux oldld, aout, or coff.
15595 linux*oldld* | linux*aout* | linux*coff*)
15596 dynamic_linker=no
15597 ;;
15598
15599 linux*android*)
15600 version_type=none # Android doesn't support versioned libraries.
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='$libname$release$shared_ext'
15604 soname_spec='$libname$release$shared_ext'
15605 finish_cmds=
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608
15609 # This implies no fast_install, which is unacceptable.
15610 # Some rework will be needed to allow for fast_install
15611 # before this can be enabled.
15612 hardcode_into_libs=yes
15613
15614 dynamic_linker='Android linker'
15615 # Don't embed -rpath directories since the linker doesn't support them.
15616 hardcode_libdir_flag_spec='-L$libdir'
15617 ;;
15618
15619 # This must be glibc/ELF.
15620 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15621 version_type=linux # correct to gnu/linux during the next big refactor
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15625 soname_spec='$libname$release$shared_ext$major'
15626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=no
15629
15630 # Some binutils ld are patched to set DT_RUNPATH
15631 if test ${lt_cv_shlibpath_overrides_runpath+y}
15632 then :
15633 printf %s "(cached) " >&6
15634 else $as_nop
15635 lt_cv_shlibpath_overrides_runpath=no
15636 save_LDFLAGS=$LDFLAGS
15637 save_libdir=$libdir
15638 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15639 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641 /* end confdefs.h. */
15642
15643 int
15644 main (void)
15645 {
15646
15647 ;
15648 return 0;
15649 }
15650 _ACEOF
15651 if ac_fn_c_try_link "$LINENO"
15652 then :
15653 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15654 then :
15655 lt_cv_shlibpath_overrides_runpath=yes
15656 fi
15657 fi
15658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LDFLAGS=$save_LDFLAGS
15661 libdir=$save_libdir
15662
15663 fi
15664
15665 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15666
15667 # This implies no fast_install, which is unacceptable.
15668 # Some rework will be needed to allow for fast_install
15669 # before this can be enabled.
15670 hardcode_into_libs=yes
15671
15672 # Ideally, we could use ldconfig to report *all* directores which are
15673 # searched for libraries, however this is still not possible. Aside from not
15674 # being certain /sbin/ldconfig is available, command
15675 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15676 # even though it is searched at run-time. Try to do the best guess by
15677 # appending ld.so.conf contents (and includes) to the search path.
15678 if test -f /etc/ld.so.conf; then
15679 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' ' '`
15680 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15681 fi
15682
15683 # We used to test for /lib/ld.so.1 and disable shared libraries on
15684 # powerpc, because MkLinux only supported shared libraries with the
15685 # GNU dynamic linker. Since this was broken with cross compilers,
15686 # most powerpc-linux boxes support dynamic linking these days and
15687 # people can always --disable-shared, the test was removed, and we
15688 # assume the GNU/Linux dynamic linker is in use.
15689 dynamic_linker='GNU/Linux ld.so'
15690 ;;
15691
15692 netbsdelf*-gnu)
15693 version_type=linux
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=no
15700 hardcode_into_libs=yes
15701 dynamic_linker='NetBSD ld.elf_so'
15702 ;;
15703
15704 netbsd*)
15705 version_type=sunos
15706 need_lib_prefix=no
15707 need_version=no
15708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15709 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15711 dynamic_linker='NetBSD (a.out) ld.so'
15712 else
15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15714 soname_spec='$libname$release$shared_ext$major'
15715 dynamic_linker='NetBSD ld.elf_so'
15716 fi
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=yes
15719 hardcode_into_libs=yes
15720 ;;
15721
15722 newsos6)
15723 version_type=linux # correct to gnu/linux during the next big refactor
15724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 shlibpath_overrides_runpath=yes
15727 ;;
15728
15729 *nto* | *qnx*)
15730 version_type=qnx
15731 need_lib_prefix=no
15732 need_version=no
15733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15734 soname_spec='$libname$release$shared_ext$major'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 shlibpath_overrides_runpath=no
15737 hardcode_into_libs=yes
15738 dynamic_linker='ldqnx.so'
15739 ;;
15740
15741 openbsd* | bitrig*)
15742 version_type=sunos
15743 sys_lib_dlsearch_path_spec=/usr/lib
15744 need_lib_prefix=no
15745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15746 need_version=no
15747 else
15748 need_version=yes
15749 fi
15750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=yes
15754 ;;
15755
15756 os2*)
15757 libname_spec='$name'
15758 version_type=windows
15759 shrext_cmds=.dll
15760 need_version=no
15761 need_lib_prefix=no
15762 # OS/2 can only load a DLL with a base name of 8 characters or less.
15763 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15764 v=$($ECHO $release$versuffix | tr -d .-);
15765 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15766 $ECHO $n$v`$shared_ext'
15767 library_names_spec='${libname}_dll.$libext'
15768 dynamic_linker='OS/2 ld.exe'
15769 shlibpath_var=BEGINLIBPATH
15770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15772 postinstall_cmds='base_file=`basename \$file`~
15773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15774 dldir=$destdir/`dirname \$dlpath`~
15775 test -d \$dldir || mkdir -p \$dldir~
15776 $install_prog $dir/$dlname \$dldir/$dlname~
15777 chmod a+x \$dldir/$dlname~
15778 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15779 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15780 fi'
15781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15782 dlpath=$dir/\$dldll~
15783 $RM \$dlpath'
15784 ;;
15785
15786 osf3* | osf4* | osf5*)
15787 version_type=osf
15788 need_lib_prefix=no
15789 need_version=no
15790 soname_spec='$libname$release$shared_ext$major'
15791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15795 ;;
15796
15797 rdos*)
15798 dynamic_linker=no
15799 ;;
15800
15801 solaris*)
15802 version_type=linux # correct to gnu/linux during the next big refactor
15803 need_lib_prefix=no
15804 need_version=no
15805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15806 soname_spec='$libname$release$shared_ext$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 shlibpath_overrides_runpath=yes
15809 hardcode_into_libs=yes
15810 # ldd complains unless libraries are executable
15811 postinstall_cmds='chmod +x $lib'
15812 ;;
15813
15814 sunos4*)
15815 version_type=sunos
15816 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15818 shlibpath_var=LD_LIBRARY_PATH
15819 shlibpath_overrides_runpath=yes
15820 if test yes = "$with_gnu_ld"; then
15821 need_lib_prefix=no
15822 fi
15823 need_version=yes
15824 ;;
15825
15826 sysv4 | sysv4.3*)
15827 version_type=linux # correct to gnu/linux during the next big refactor
15828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15829 soname_spec='$libname$release$shared_ext$major'
15830 shlibpath_var=LD_LIBRARY_PATH
15831 case $host_vendor in
15832 sni)
15833 shlibpath_overrides_runpath=no
15834 need_lib_prefix=no
15835 runpath_var=LD_RUN_PATH
15836 ;;
15837 siemens)
15838 need_lib_prefix=no
15839 ;;
15840 motorola)
15841 need_lib_prefix=no
15842 need_version=no
15843 shlibpath_overrides_runpath=no
15844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15845 ;;
15846 esac
15847 ;;
15848
15849 sysv4*MP*)
15850 if test -d /usr/nec; then
15851 version_type=linux # correct to gnu/linux during the next big refactor
15852 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15853 soname_spec='$libname$shared_ext.$major'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 fi
15856 ;;
15857
15858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15859 version_type=sco
15860 need_lib_prefix=no
15861 need_version=no
15862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15863 soname_spec='$libname$release$shared_ext$major'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 shlibpath_overrides_runpath=yes
15866 hardcode_into_libs=yes
15867 if test yes = "$with_gnu_ld"; then
15868 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15869 else
15870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15871 case $host_os in
15872 sco3.2v5*)
15873 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15874 ;;
15875 esac
15876 fi
15877 sys_lib_dlsearch_path_spec='/usr/lib'
15878 ;;
15879
15880 tpf*)
15881 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15882 version_type=linux # correct to gnu/linux during the next big refactor
15883 need_lib_prefix=no
15884 need_version=no
15885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15889 ;;
15890
15891 uts4*)
15892 version_type=linux # correct to gnu/linux during the next big refactor
15893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15894 soname_spec='$libname$release$shared_ext$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 ;;
15897
15898 *)
15899 dynamic_linker=no
15900 ;;
15901 esac
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15903 printf "%s\n" "$dynamic_linker" >&6; }
15904 test no = "$dynamic_linker" && can_build_shared=no
15905
15906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15907 if test yes = "$GCC"; then
15908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15909 fi
15910
15911 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15912 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15913 fi
15914
15915 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15916 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15917 fi
15918
15919 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15920 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15921
15922 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15923 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15924
15925 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15926 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16025 printf %s "checking how to hardcode library paths into programs... " >&6; }
16026 hardcode_action=
16027 if test -n "$hardcode_libdir_flag_spec" ||
16028 test -n "$runpath_var" ||
16029 test yes = "$hardcode_automatic"; then
16030
16031 # We can hardcode non-existent directories.
16032 if test no != "$hardcode_direct" &&
16033 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16034 # have to relink, otherwise we might link with an installed library
16035 # when we should be linking with a yet-to-be-installed one
16036 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16037 test no != "$hardcode_minus_L"; then
16038 # Linking always hardcodes the temporary library directory.
16039 hardcode_action=relink
16040 else
16041 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16042 hardcode_action=immediate
16043 fi
16044 else
16045 # We cannot hardcode anything, or else we can only hardcode existing
16046 # directories.
16047 hardcode_action=unsupported
16048 fi
16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16050 printf "%s\n" "$hardcode_action" >&6; }
16051
16052 if test relink = "$hardcode_action" ||
16053 test yes = "$inherit_rpath"; then
16054 # Fast installation is not supported
16055 enable_fast_install=no
16056 elif test yes = "$shlibpath_overrides_runpath" ||
16057 test no = "$enable_shared"; then
16058 # Fast installation is not necessary
16059 enable_fast_install=needless
16060 fi
16061
16062
16063
16064
16065
16066
16067 if test yes != "$enable_dlopen"; then
16068 enable_dlopen=unknown
16069 enable_dlopen_self=unknown
16070 enable_dlopen_self_static=unknown
16071 else
16072 lt_cv_dlopen=no
16073 lt_cv_dlopen_libs=
16074
16075 case $host_os in
16076 beos*)
16077 lt_cv_dlopen=load_add_on
16078 lt_cv_dlopen_libs=
16079 lt_cv_dlopen_self=yes
16080 ;;
16081
16082 mingw* | pw32* | cegcc*)
16083 lt_cv_dlopen=LoadLibrary
16084 lt_cv_dlopen_libs=
16085 ;;
16086
16087 cygwin*)
16088 lt_cv_dlopen=dlopen
16089 lt_cv_dlopen_libs=
16090 ;;
16091
16092 darwin*)
16093 # if libdl is installed we need to link against it
16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16095 printf %s "checking for dlopen in -ldl... " >&6; }
16096 if test ${ac_cv_lib_dl_dlopen+y}
16097 then :
16098 printf %s "(cached) " >&6
16099 else $as_nop
16100 ac_check_lib_save_LIBS=$LIBS
16101 LIBS="-ldl $LIBS"
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104
16105 /* Override any GCC internal prototype to avoid an error.
16106 Use char because int might match the return type of a GCC
16107 builtin and then its argument prototype would still apply. */
16108 char dlopen ();
16109 int
16110 main (void)
16111 {
16112 return dlopen ();
16113 ;
16114 return 0;
16115 }
16116 _ACEOF
16117 if ac_fn_c_try_link "$LINENO"
16118 then :
16119 ac_cv_lib_dl_dlopen=yes
16120 else $as_nop
16121 ac_cv_lib_dl_dlopen=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16126 fi
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16128 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16129 if test "x$ac_cv_lib_dl_dlopen" = xyes
16130 then :
16131 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16132 else $as_nop
16133
16134 lt_cv_dlopen=dyld
16135 lt_cv_dlopen_libs=
16136 lt_cv_dlopen_self=yes
16137
16138 fi
16139
16140 ;;
16141
16142 tpf*)
16143 # Don't try to run any link tests for TPF. We know it's impossible
16144 # because TPF is a cross-compiler, and we know how we open DSOs.
16145 lt_cv_dlopen=dlopen
16146 lt_cv_dlopen_libs=
16147 lt_cv_dlopen_self=no
16148 ;;
16149
16150 *)
16151 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16152 if test "x$ac_cv_func_shl_load" = xyes
16153 then :
16154 lt_cv_dlopen=shl_load
16155 else $as_nop
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16157 printf %s "checking for shl_load in -ldld... " >&6; }
16158 if test ${ac_cv_lib_dld_shl_load+y}
16159 then :
16160 printf %s "(cached) " >&6
16161 else $as_nop
16162 ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-ldld $LIBS"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166
16167 /* Override any GCC internal prototype to avoid an error.
16168 Use char because int might match the return type of a GCC
16169 builtin and then its argument prototype would still apply. */
16170 char shl_load ();
16171 int
16172 main (void)
16173 {
16174 return shl_load ();
16175 ;
16176 return 0;
16177 }
16178 _ACEOF
16179 if ac_fn_c_try_link "$LINENO"
16180 then :
16181 ac_cv_lib_dld_shl_load=yes
16182 else $as_nop
16183 ac_cv_lib_dld_shl_load=no
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16186 conftest$ac_exeext conftest.$ac_ext
16187 LIBS=$ac_check_lib_save_LIBS
16188 fi
16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16190 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16191 if test "x$ac_cv_lib_dld_shl_load" = xyes
16192 then :
16193 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16194 else $as_nop
16195 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16196 if test "x$ac_cv_func_dlopen" = xyes
16197 then :
16198 lt_cv_dlopen=dlopen
16199 else $as_nop
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16201 printf %s "checking for dlopen in -ldl... " >&6; }
16202 if test ${ac_cv_lib_dl_dlopen+y}
16203 then :
16204 printf %s "(cached) " >&6
16205 else $as_nop
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-ldl $LIBS"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16210
16211 /* Override any GCC internal prototype to avoid an error.
16212 Use char because int might match the return type of a GCC
16213 builtin and then its argument prototype would still apply. */
16214 char dlopen ();
16215 int
16216 main (void)
16217 {
16218 return dlopen ();
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 if ac_fn_c_try_link "$LINENO"
16224 then :
16225 ac_cv_lib_dl_dlopen=yes
16226 else $as_nop
16227 ac_cv_lib_dl_dlopen=no
16228 fi
16229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16230 conftest$ac_exeext conftest.$ac_ext
16231 LIBS=$ac_check_lib_save_LIBS
16232 fi
16233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16234 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16235 if test "x$ac_cv_lib_dl_dlopen" = xyes
16236 then :
16237 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16238 else $as_nop
16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16240 printf %s "checking for dlopen in -lsvld... " >&6; }
16241 if test ${ac_cv_lib_svld_dlopen+y}
16242 then :
16243 printf %s "(cached) " >&6
16244 else $as_nop
16245 ac_check_lib_save_LIBS=$LIBS
16246 LIBS="-lsvld $LIBS"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249
16250 /* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16253 char dlopen ();
16254 int
16255 main (void)
16256 {
16257 return dlopen ();
16258 ;
16259 return 0;
16260 }
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"
16263 then :
16264 ac_cv_lib_svld_dlopen=yes
16265 else $as_nop
16266 ac_cv_lib_svld_dlopen=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16269 conftest$ac_exeext conftest.$ac_ext
16270 LIBS=$ac_check_lib_save_LIBS
16271 fi
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16273 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16274 if test "x$ac_cv_lib_svld_dlopen" = xyes
16275 then :
16276 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16277 else $as_nop
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16279 printf %s "checking for dld_link in -ldld... " >&6; }
16280 if test ${ac_cv_lib_dld_dld_link+y}
16281 then :
16282 printf %s "(cached) " >&6
16283 else $as_nop
16284 ac_check_lib_save_LIBS=$LIBS
16285 LIBS="-ldld $LIBS"
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16288
16289 /* Override any GCC internal prototype to avoid an error.
16290 Use char because int might match the return type of a GCC
16291 builtin and then its argument prototype would still apply. */
16292 char dld_link ();
16293 int
16294 main (void)
16295 {
16296 return dld_link ();
16297 ;
16298 return 0;
16299 }
16300 _ACEOF
16301 if ac_fn_c_try_link "$LINENO"
16302 then :
16303 ac_cv_lib_dld_dld_link=yes
16304 else $as_nop
16305 ac_cv_lib_dld_dld_link=no
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16308 conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_check_lib_save_LIBS
16310 fi
16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16312 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16313 if test "x$ac_cv_lib_dld_dld_link" = xyes
16314 then :
16315 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16316 fi
16317
16318
16319 fi
16320
16321
16322 fi
16323
16324
16325 fi
16326
16327
16328 fi
16329
16330
16331 fi
16332
16333 ;;
16334 esac
16335
16336 if test no = "$lt_cv_dlopen"; then
16337 enable_dlopen=no
16338 else
16339 enable_dlopen=yes
16340 fi
16341
16342 case $lt_cv_dlopen in
16343 dlopen)
16344 save_CPPFLAGS=$CPPFLAGS
16345 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16346
16347 save_LDFLAGS=$LDFLAGS
16348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16349
16350 save_LIBS=$LIBS
16351 LIBS="$lt_cv_dlopen_libs $LIBS"
16352
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16354 printf %s "checking whether a program can dlopen itself... " >&6; }
16355 if test ${lt_cv_dlopen_self+y}
16356 then :
16357 printf %s "(cached) " >&6
16358 else $as_nop
16359 if test yes = "$cross_compiling"; then :
16360 lt_cv_dlopen_self=cross
16361 else
16362 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16363 lt_status=$lt_dlunknown
16364 cat > conftest.$ac_ext <<_LT_EOF
16365 #line $LINENO "configure"
16366 #include "confdefs.h"
16367
16368 #if HAVE_DLFCN_H
16369 #include <dlfcn.h>
16370 #endif
16371
16372 #include <stdio.h>
16373
16374 #ifdef RTLD_GLOBAL
16375 # define LT_DLGLOBAL RTLD_GLOBAL
16376 #else
16377 # ifdef DL_GLOBAL
16378 # define LT_DLGLOBAL DL_GLOBAL
16379 # else
16380 # define LT_DLGLOBAL 0
16381 # endif
16382 #endif
16383
16384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16385 find out it does not work in some platform. */
16386 #ifndef LT_DLLAZY_OR_NOW
16387 # ifdef RTLD_LAZY
16388 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16389 # else
16390 # ifdef DL_LAZY
16391 # define LT_DLLAZY_OR_NOW DL_LAZY
16392 # else
16393 # ifdef RTLD_NOW
16394 # define LT_DLLAZY_OR_NOW RTLD_NOW
16395 # else
16396 # ifdef DL_NOW
16397 # define LT_DLLAZY_OR_NOW DL_NOW
16398 # else
16399 # define LT_DLLAZY_OR_NOW 0
16400 # endif
16401 # endif
16402 # endif
16403 # endif
16404 #endif
16405
16406 /* When -fvisibility=hidden is used, assume the code has been annotated
16407 correspondingly for the symbols needed. */
16408 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16409 int fnord () __attribute__((visibility("default")));
16410 #endif
16411
16412 int fnord () { return 42; }
16413 int main ()
16414 {
16415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16416 int status = $lt_dlunknown;
16417
16418 if (self)
16419 {
16420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16421 else
16422 {
16423 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16424 else puts (dlerror ());
16425 }
16426 /* dlclose (self); */
16427 }
16428 else
16429 puts (dlerror ());
16430
16431 return status;
16432 }
16433 _LT_EOF
16434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16435 (eval $ac_link) 2>&5
16436 ac_status=$?
16437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16438 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16439 (./conftest; exit; ) >&5 2>/dev/null
16440 lt_status=$?
16441 case x$lt_status in
16442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16444 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16445 esac
16446 else :
16447 # compilation failed
16448 lt_cv_dlopen_self=no
16449 fi
16450 fi
16451 rm -fr conftest*
16452
16453
16454 fi
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16456 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16457
16458 if test yes = "$lt_cv_dlopen_self"; then
16459 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16461 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16462 if test ${lt_cv_dlopen_self_static+y}
16463 then :
16464 printf %s "(cached) " >&6
16465 else $as_nop
16466 if test yes = "$cross_compiling"; then :
16467 lt_cv_dlopen_self_static=cross
16468 else
16469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16470 lt_status=$lt_dlunknown
16471 cat > conftest.$ac_ext <<_LT_EOF
16472 #line $LINENO "configure"
16473 #include "confdefs.h"
16474
16475 #if HAVE_DLFCN_H
16476 #include <dlfcn.h>
16477 #endif
16478
16479 #include <stdio.h>
16480
16481 #ifdef RTLD_GLOBAL
16482 # define LT_DLGLOBAL RTLD_GLOBAL
16483 #else
16484 # ifdef DL_GLOBAL
16485 # define LT_DLGLOBAL DL_GLOBAL
16486 # else
16487 # define LT_DLGLOBAL 0
16488 # endif
16489 #endif
16490
16491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16492 find out it does not work in some platform. */
16493 #ifndef LT_DLLAZY_OR_NOW
16494 # ifdef RTLD_LAZY
16495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16496 # else
16497 # ifdef DL_LAZY
16498 # define LT_DLLAZY_OR_NOW DL_LAZY
16499 # else
16500 # ifdef RTLD_NOW
16501 # define LT_DLLAZY_OR_NOW RTLD_NOW
16502 # else
16503 # ifdef DL_NOW
16504 # define LT_DLLAZY_OR_NOW DL_NOW
16505 # else
16506 # define LT_DLLAZY_OR_NOW 0
16507 # endif
16508 # endif
16509 # endif
16510 # endif
16511 #endif
16512
16513 /* When -fvisibility=hidden is used, assume the code has been annotated
16514 correspondingly for the symbols needed. */
16515 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16516 int fnord () __attribute__((visibility("default")));
16517 #endif
16518
16519 int fnord () { return 42; }
16520 int main ()
16521 {
16522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16523 int status = $lt_dlunknown;
16524
16525 if (self)
16526 {
16527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16528 else
16529 {
16530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16531 else puts (dlerror ());
16532 }
16533 /* dlclose (self); */
16534 }
16535 else
16536 puts (dlerror ());
16537
16538 return status;
16539 }
16540 _LT_EOF
16541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16542 (eval $ac_link) 2>&5
16543 ac_status=$?
16544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16545 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16546 (./conftest; exit; ) >&5 2>/dev/null
16547 lt_status=$?
16548 case x$lt_status in
16549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16552 esac
16553 else :
16554 # compilation failed
16555 lt_cv_dlopen_self_static=no
16556 fi
16557 fi
16558 rm -fr conftest*
16559
16560
16561 fi
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16563 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16564 fi
16565
16566 CPPFLAGS=$save_CPPFLAGS
16567 LDFLAGS=$save_LDFLAGS
16568 LIBS=$save_LIBS
16569 ;;
16570 esac
16571
16572 case $lt_cv_dlopen_self in
16573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16574 *) enable_dlopen_self=unknown ;;
16575 esac
16576
16577 case $lt_cv_dlopen_self_static in
16578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16579 *) enable_dlopen_self_static=unknown ;;
16580 esac
16581 fi
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599 striplib=
16600 old_striplib=
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16602 printf %s "checking whether stripping libraries is possible... " >&6; }
16603 if test -z "$STRIP"; then
16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605 printf "%s\n" "no" >&6; }
16606 else
16607 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16608 old_striplib="$STRIP --strip-debug"
16609 striplib="$STRIP --strip-unneeded"
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16611 printf "%s\n" "yes" >&6; }
16612 else
16613 case $host_os in
16614 darwin*)
16615 # FIXME - insert some real tests, host_os isn't really good enough
16616 striplib="$STRIP -x"
16617 old_striplib="$STRIP -S"
16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16619 printf "%s\n" "yes" >&6; }
16620 ;;
16621 freebsd*)
16622 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16623 old_striplib="$STRIP --strip-debug"
16624 striplib="$STRIP --strip-unneeded"
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16626 printf "%s\n" "yes" >&6; }
16627 else
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 printf "%s\n" "no" >&6; }
16630 fi
16631 ;;
16632 *)
16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634 printf "%s\n" "no" >&6; }
16635 ;;
16636 esac
16637 fi
16638 fi
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651 # Report what library types will actually be built
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16653 printf %s "checking if libtool supports shared libraries... " >&6; }
16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16655 printf "%s\n" "$can_build_shared" >&6; }
16656
16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16658 printf %s "checking whether to build shared libraries... " >&6; }
16659 test no = "$can_build_shared" && enable_shared=no
16660
16661 # On AIX, shared libraries and static libraries use the same namespace, and
16662 # are all built from PIC.
16663 case $host_os in
16664 aix3*)
16665 test yes = "$enable_shared" && enable_static=no
16666 if test -n "$RANLIB"; then
16667 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16668 postinstall_cmds='$RANLIB $lib'
16669 fi
16670 ;;
16671
16672 aix[4-9]*)
16673 if test ia64 != "$host_cpu"; then
16674 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16675 yes,aix,yes) ;; # shared object as lib.so file only
16676 yes,svr4,*) ;; # shared object as lib.so archive member only
16677 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16678 esac
16679 fi
16680 ;;
16681 esac
16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16683 printf "%s\n" "$enable_shared" >&6; }
16684
16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16686 printf %s "checking whether to build static libraries... " >&6; }
16687 # Make sure either enable_shared or enable_static is yes.
16688 test yes = "$enable_shared" || enable_static=yes
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16690 printf "%s\n" "$enable_static" >&6; }
16691
16692
16693
16694
16695 fi
16696 ac_ext=c
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702 CC=$lt_save_CC
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718 ac_config_commands="$ac_config_commands libtool"
16719
16720
16721
16722
16723 # Only expand once:
16724
16725
16726
16727 DLOPEN_LIBS="$lt_cv_dlopen_libs"
16728
16729
16730 if test "$enable_static" != "no" && test "$enable_developer" != "yes"
16731 then :
16732 as_fn_error $? "Static linking is not supported as it disables dlopen() and certain security features (e.g. RELRO, ASLR)" "$LINENO" 5
16733 fi
16734
16735
16736 #
16737 # Set the default CFLAGS, CPPFLAGS, and LDFLAGS
16738 #
16739 STD_CFLAGS="-Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow"
16740
16741 # These should be always errors
16742 STD_CFLAGS="$STD_CFLAGS -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla"
16743
16744 # Disable false positives generated by GCC 11+ and ASAN
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747
16748 int
16749 main (void)
16750 {
16751 #if __GNUC__ >= 11 && defined(__SANITIZE_ADDRESS__)
16752 #error Address Sanitizer enabled
16753 #endif
16754
16755 ;
16756 return 0;
16757 }
16758 _ACEOF
16759 if ac_fn_c_try_compile "$LINENO"
16760 then :
16761
16762 else $as_nop
16763 STD_CFLAGS="$STD_CFLAGS -Wno-stringop-overread"
16764 fi
16765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16766
16767 # Silence GCC 11.1+ note about the changed alignment, see GL #4841
16768 case $target_cpu in #(
16769 i?86) :
16770 STD_CFLAGS="$STD_CFLAGS -Wno-psabi" ;; #(
16771 *) :
16772 ;;
16773 esac
16774
16775 STD_LDFLAGS=""
16776
16777 # ... except in test code
16778 TEST_CFLAGS="-Wno-vla"
16779
16780 # Fortify the sources by default (we undefine the macro first in case
16781 # the compiler has a different built-in setting)
16782 STD_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
16783
16784 #
16785 # Additional compiler settings.
16786 #
16787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
16788 printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
16789 if test ${ax_cv_check_cflags___fno_strict_aliasing+y}
16790 then :
16791 printf %s "(cached) " >&6
16792 else $as_nop
16793
16794 ax_check_save_flags=$CFLAGS
16795 CFLAGS="$CFLAGS -fno-strict-aliasing"
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798
16799 int
16800 main (void)
16801 {
16802
16803 ;
16804 return 0;
16805 }
16806 _ACEOF
16807 if ac_fn_c_try_compile "$LINENO"
16808 then :
16809 ax_cv_check_cflags___fno_strict_aliasing=yes
16810 else $as_nop
16811 ax_cv_check_cflags___fno_strict_aliasing=no
16812 fi
16813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16814 CFLAGS=$ax_check_save_flags
16815 fi
16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
16817 printf "%s\n" "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
16818 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes
16819 then :
16820 STD_CFLAGS="$STD_CFLAGS -fno-strict-aliasing"
16821 else $as_nop
16822 :
16823 fi
16824
16825 # Clang only issues a warning so use -Werror to force a error.
16826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
16827 printf %s "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
16828 if test ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+y}
16829 then :
16830 printf %s "(cached) " >&6
16831 else $as_nop
16832
16833 ax_check_save_flags=$CFLAGS
16834 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837
16838 int
16839 main (void)
16840 {
16841
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_c_try_compile "$LINENO"
16847 then :
16848 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
16849 else $as_nop
16850 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16853 CFLAGS=$ax_check_save_flags
16854 fi
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
16856 printf "%s\n" "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
16857 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes
16858 then :
16859 STD_CFLAGS="$STD_CFLAGS -fno-delete-null-pointer-checks"
16860 else $as_nop
16861 :
16862 fi
16863
16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdiagnostics-show-option" >&5
16865 printf %s "checking whether C compiler accepts -fdiagnostics-show-option... " >&6; }
16866 if test ${ax_cv_check_cflags___fdiagnostics_show_option+y}
16867 then :
16868 printf %s "(cached) " >&6
16869 else $as_nop
16870
16871 ax_check_save_flags=$CFLAGS
16872 CFLAGS="$CFLAGS -fdiagnostics-show-option"
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875
16876 int
16877 main (void)
16878 {
16879
16880 ;
16881 return 0;
16882 }
16883 _ACEOF
16884 if ac_fn_c_try_compile "$LINENO"
16885 then :
16886 ax_cv_check_cflags___fdiagnostics_show_option=yes
16887 else $as_nop
16888 ax_cv_check_cflags___fdiagnostics_show_option=no
16889 fi
16890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16891 CFLAGS=$ax_check_save_flags
16892 fi
16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fdiagnostics_show_option" >&5
16894 printf "%s\n" "$ax_cv_check_cflags___fdiagnostics_show_option" >&6; }
16895 if test "x$ax_cv_check_cflags___fdiagnostics_show_option" = xyes
16896 then :
16897 STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option"
16898 else $as_nop
16899 :
16900 fi
16901
16902
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--export-dynamic" >&5
16904 printf %s "checking whether the linker accepts -Wl,--export-dynamic... " >&6; }
16905 if test ${ax_cv_check_ldflags___Wl___export_dynamic+y}
16906 then :
16907 printf %s "(cached) " >&6
16908 else $as_nop
16909
16910 ax_check_save_flags=$LDFLAGS
16911 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16914
16915 int
16916 main (void)
16917 {
16918
16919 ;
16920 return 0;
16921 }
16922 _ACEOF
16923 if ac_fn_c_try_link "$LINENO"
16924 then :
16925 ax_cv_check_ldflags___Wl___export_dynamic=yes
16926 else $as_nop
16927 ax_cv_check_ldflags___Wl___export_dynamic=no
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16930 conftest$ac_exeext conftest.$ac_ext
16931 LDFLAGS=$ax_check_save_flags
16932 fi
16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___export_dynamic" >&5
16934 printf "%s\n" "$ax_cv_check_ldflags___Wl___export_dynamic" >&6; }
16935 if test "x$ax_cv_check_ldflags___Wl___export_dynamic" = xyes
16936 then :
16937 STD_LDFLAGS="$STD_LDFLAGS -Wl,--export-dynamic"
16938 else $as_nop
16939 :
16940 fi
16941
16942
16943 host_macos=no
16944 case $host in #(
16945 *-darwin*) :
16946 host_macos=yes ;; #(
16947 *) :
16948 ;;
16949 esac
16950 if test "$host_macos" = "yes"; then
16951 HOST_MACOS_TRUE=
16952 HOST_MACOS_FALSE='#'
16953 else
16954 HOST_MACOS_TRUE='#'
16955 HOST_MACOS_FALSE=
16956 fi
16957
16958
16959 #
16960 # Change defaults for developers if not explicity set.
16961 # Needs to be before the option is tested.
16962 #
16963 # [pairwise: --enable-developer, --disable-developer]
16964 # Check whether --enable-developer was given.
16965 if test ${enable_developer+y}
16966 then :
16967 enableval=$enable_developer;
16968 fi
16969
16970
16971 if test "$enable_developer" = "yes"
16972 then :
16973 DEVELOPER_MODE=yes
16974 STD_CPPFLAGS="$STD_CPPFLAGS -DISC_MEM_DEFAULTFILL=1 -DISC_MEM_TRACKLINES=1 -DISC_LIST_CHECKINIT=1 -DISC_STATS_CHECKUNDERFLOW=1 -DDNS_RBTDB_STRONG_RWLOCK_CHECK=1 -DISC_MUTEX_ERROR_CHECK=1"
16975 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
16976 test "${enable_querytrace+set}" = set || enable_querytrace=yes
16977 test "${with_cmocka+set}" = set || with_cmocka=yes
16978 test "${with_zlib+set}" = set || with_zlib=yes
16979 test "${enable_warn_error+set}" = set || enable_warn_error=yes
16980
16981 fi
16982
16983
16984
16985
16986
16987
16988
16989 # [pairwise: --enable-warn-error, --disable-warn-error]
16990 # Check whether --enable-warn_error was given.
16991 if test ${enable_warn_error+y}
16992 then :
16993 enableval=$enable_warn_error;
16994 else $as_nop
16995 enable_warn_error=no
16996 fi
16997
16998 if test "$enable_warn_error" = "yes"
16999 then :
17000 STD_CFLAGS="$STD_CFLAGS -Werror"
17001 fi
17002
17003 #
17004 # Use pkg-config
17005 #
17006
17007
17008
17009
17010
17011
17012
17013
17014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17015 if test -n "$ac_tool_prefix"; then
17016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17019 printf %s "checking for $ac_word... " >&6; }
17020 if test ${ac_cv_path_PKG_CONFIG+y}
17021 then :
17022 printf %s "(cached) " >&6
17023 else $as_nop
17024 case $PKG_CONFIG in
17025 [\\/]* | ?:[\\/]*)
17026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17027 ;;
17028 *)
17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030 for as_dir in $PATH
17031 do
17032 IFS=$as_save_IFS
17033 case $as_dir in #(((
17034 '') as_dir=./ ;;
17035 */) ;;
17036 *) as_dir=$as_dir/ ;;
17037 esac
17038 for ac_exec_ext in '' $ac_executable_extensions; do
17039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17040 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17042 break 2
17043 fi
17044 done
17045 done
17046 IFS=$as_save_IFS
17047
17048 ;;
17049 esac
17050 fi
17051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17052 if test -n "$PKG_CONFIG"; then
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17054 printf "%s\n" "$PKG_CONFIG" >&6; }
17055 else
17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 printf "%s\n" "no" >&6; }
17058 fi
17059
17060
17061 fi
17062 if test -z "$ac_cv_path_PKG_CONFIG"; then
17063 ac_pt_PKG_CONFIG=$PKG_CONFIG
17064 # Extract the first word of "pkg-config", so it can be a program name with args.
17065 set dummy pkg-config; ac_word=$2
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17067 printf %s "checking for $ac_word... " >&6; }
17068 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17069 then :
17070 printf %s "(cached) " >&6
17071 else $as_nop
17072 case $ac_pt_PKG_CONFIG in
17073 [\\/]* | ?:[\\/]*)
17074 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17075 ;;
17076 *)
17077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17078 for as_dir in $PATH
17079 do
17080 IFS=$as_save_IFS
17081 case $as_dir in #(((
17082 '') as_dir=./ ;;
17083 */) ;;
17084 *) as_dir=$as_dir/ ;;
17085 esac
17086 for ac_exec_ext in '' $ac_executable_extensions; do
17087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17088 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17090 break 2
17091 fi
17092 done
17093 done
17094 IFS=$as_save_IFS
17095
17096 ;;
17097 esac
17098 fi
17099 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17100 if test -n "$ac_pt_PKG_CONFIG"; then
17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17102 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17103 else
17104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17105 printf "%s\n" "no" >&6; }
17106 fi
17107
17108 if test "x$ac_pt_PKG_CONFIG" = x; then
17109 PKG_CONFIG=""
17110 else
17111 case $cross_compiling:$ac_tool_warned in
17112 yes:)
17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17114 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17115 ac_tool_warned=yes ;;
17116 esac
17117 PKG_CONFIG=$ac_pt_PKG_CONFIG
17118 fi
17119 else
17120 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17121 fi
17122
17123 fi
17124 if test -n "$PKG_CONFIG"; then
17125 _pkg_min_version=0.9.0
17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17127 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17128 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130 printf "%s\n" "yes" >&6; }
17131 else
17132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17133 printf "%s\n" "no" >&6; }
17134 PKG_CONFIG=""
17135 fi
17136 fi
17137 if test -z "$PKG_CONFIG"
17138 then :
17139 as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
17140 fi
17141
17142 #
17143 # Pick Userspace-RCU flavor (developer only option)
17144 #
17145 # [pairwise: skip]
17146
17147 # Check whether --with-liburcu was given.
17148 if test ${with_liburcu+y}
17149 then :
17150 withval=$with_liburcu;
17151 else $as_nop
17152 with_liburcu=membarrier
17153 fi
17154
17155
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking liburcu flavor" >&5
17157 printf %s "checking liburcu flavor... " >&6; }
17158 case $with_liburcu in #(
17159 membarrier) :
17160 RCU_FLAVOR="liburcu"
17161
17162 printf "%s\n" "#define RCU_MEMBARRIER 1" >>confdefs.h
17163 ;; #(
17164 qsbr) :
17165 RCU_FLAVOR="liburcu-qsbr"
17166
17167 printf "%s\n" "#define RCU_QSBR 1" >>confdefs.h
17168 ;; #(
17169 mb) :
17170 RCU_FLAVOR="liburcu-mb"
17171
17172 printf "%s\n" "#define RCU_MB 1" >>confdefs.h
17173 ;; #(
17174 bp) :
17175 RCU_FLAVOR="liburcu-bp"
17176
17177 printf "%s\n" "#define RCU_BP 1" >>confdefs.h
17178 ;; #(
17179 *) :
17180 as_fn_error $? "Invalid Userspace-RCU flavor picked" "$LINENO" 5 ;;
17181 esac
17182
17183 if test "$with_liburcu" != "membarrier" && test "$enable_developer" != "yes"
17184 then :
17185 as_fn_error $? "Changing Userspace-RCU variant is allowed only in developer mode" "$LINENO" 5
17186 fi
17187
17188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCU_FLAVOR" >&5
17189 printf "%s\n" "$RCU_FLAVOR" >&6; }
17190
17191 #
17192 # liburcu << v0.13.0 didn't add -lurcu-common and some toolchains would
17193 # not add it automatically - we need to add it explicitly in such case.
17194 #
17195
17196 pkg_failed=no
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" >&5
17198 printf %s "checking for $RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0... " >&6; }
17199
17200 if test -n "$LIBURCU_CFLAGS"; then
17201 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS"
17202 elif test -n "$PKG_CONFIG"; then
17203 if test -n "$PKG_CONFIG" && \
17204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0\""; } >&5
17205 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0") 2>&5
17206 ac_status=$?
17207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208 test $ac_status = 0; }; then
17209 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>/dev/null`
17210 test "x$?" != "x0" && pkg_failed=yes
17211 else
17212 pkg_failed=yes
17213 fi
17214 else
17215 pkg_failed=untried
17216 fi
17217 if test -n "$LIBURCU_LIBS"; then
17218 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS"
17219 elif test -n "$PKG_CONFIG"; then
17220 if test -n "$PKG_CONFIG" && \
17221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0\""; } >&5
17222 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0") 2>&5
17223 ac_status=$?
17224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17225 test $ac_status = 0; }; then
17226 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>/dev/null`
17227 test "x$?" != "x0" && pkg_failed=yes
17228 else
17229 pkg_failed=yes
17230 fi
17231 else
17232 pkg_failed=untried
17233 fi
17234
17235
17236
17237 if test $pkg_failed = yes; then
17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 printf "%s\n" "no" >&6; }
17240
17241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17242 _pkg_short_errors_supported=yes
17243 else
17244 _pkg_short_errors_supported=no
17245 fi
17246 if test $_pkg_short_errors_supported = yes; then
17247 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>&1`
17248 else
17249 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>&1`
17250 fi
17251 # Put the nasty error message in config.log where it belongs
17252 echo "$LIBURCU_PKG_ERRORS" >&5
17253
17254
17255 pkg_failed=no
17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" >&5
17257 printf %s "checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0... " >&6; }
17258
17259 if test -n "$LIBURCU_CFLAGS"; then
17260 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS"
17261 elif test -n "$PKG_CONFIG"; then
17262 if test -n "$PKG_CONFIG" && \
17263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5
17264 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5
17265 ac_status=$?
17266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17267 test $ac_status = 0; }; then
17268 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null`
17269 test "x$?" != "x0" && pkg_failed=yes
17270 else
17271 pkg_failed=yes
17272 fi
17273 else
17274 pkg_failed=untried
17275 fi
17276 if test -n "$LIBURCU_LIBS"; then
17277 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS"
17278 elif test -n "$PKG_CONFIG"; then
17279 if test -n "$PKG_CONFIG" && \
17280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5
17281 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5
17282 ac_status=$?
17283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17284 test $ac_status = 0; }; then
17285 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null`
17286 test "x$?" != "x0" && pkg_failed=yes
17287 else
17288 pkg_failed=yes
17289 fi
17290 else
17291 pkg_failed=untried
17292 fi
17293
17294
17295
17296 if test $pkg_failed = yes; then
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17298 printf "%s\n" "no" >&6; }
17299
17300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17301 _pkg_short_errors_supported=yes
17302 else
17303 _pkg_short_errors_supported=no
17304 fi
17305 if test $_pkg_short_errors_supported = yes; then
17306 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1`
17307 else
17308 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1`
17309 fi
17310 # Put the nasty error message in config.log where it belongs
17311 echo "$LIBURCU_PKG_ERRORS" >&5
17312
17313 as_fn_error $? "Package requirements ($RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0) were not met:
17314
17315 $LIBURCU_PKG_ERRORS
17316
17317 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17318 installed software in a non-standard prefix.
17319
17320 Alternatively, you may set the environment variables LIBURCU_CFLAGS
17321 and LIBURCU_LIBS to avoid the need to call pkg-config.
17322 See the pkg-config man page for more details." "$LINENO" 5
17323 elif test $pkg_failed = untried; then
17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 printf "%s\n" "no" >&6; }
17326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17327 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17328 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17329 is in your PATH or set the PKG_CONFIG environment variable to the full
17330 path to pkg-config.
17331
17332 Alternatively, you may set the environment variables LIBURCU_CFLAGS
17333 and LIBURCU_LIBS to avoid the need to call pkg-config.
17334 See the pkg-config man page for more details.
17335
17336 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17337 See \`config.log' for more details" "$LINENO" 5; }
17338 else
17339 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS
17340 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17342 printf "%s\n" "yes" >&6; }
17343 LIBURCU_LIBS="$LIBURCU_LIBS -lurcu-common"
17344 fi
17345 elif test $pkg_failed = untried; then
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347 printf "%s\n" "no" >&6; }
17348
17349 pkg_failed=no
17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" >&5
17351 printf %s "checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0... " >&6; }
17352
17353 if test -n "$LIBURCU_CFLAGS"; then
17354 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS"
17355 elif test -n "$PKG_CONFIG"; then
17356 if test -n "$PKG_CONFIG" && \
17357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5
17358 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5
17359 ac_status=$?
17360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17361 test $ac_status = 0; }; then
17362 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null`
17363 test "x$?" != "x0" && pkg_failed=yes
17364 else
17365 pkg_failed=yes
17366 fi
17367 else
17368 pkg_failed=untried
17369 fi
17370 if test -n "$LIBURCU_LIBS"; then
17371 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS"
17372 elif test -n "$PKG_CONFIG"; then
17373 if test -n "$PKG_CONFIG" && \
17374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5
17375 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5
17376 ac_status=$?
17377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17378 test $ac_status = 0; }; then
17379 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null`
17380 test "x$?" != "x0" && pkg_failed=yes
17381 else
17382 pkg_failed=yes
17383 fi
17384 else
17385 pkg_failed=untried
17386 fi
17387
17388
17389
17390 if test $pkg_failed = yes; then
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392 printf "%s\n" "no" >&6; }
17393
17394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17395 _pkg_short_errors_supported=yes
17396 else
17397 _pkg_short_errors_supported=no
17398 fi
17399 if test $_pkg_short_errors_supported = yes; then
17400 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1`
17401 else
17402 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1`
17403 fi
17404 # Put the nasty error message in config.log where it belongs
17405 echo "$LIBURCU_PKG_ERRORS" >&5
17406
17407 as_fn_error $? "Package requirements ($RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0) were not met:
17408
17409 $LIBURCU_PKG_ERRORS
17410
17411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17412 installed software in a non-standard prefix.
17413
17414 Alternatively, you may set the environment variables LIBURCU_CFLAGS
17415 and LIBURCU_LIBS to avoid the need to call pkg-config.
17416 See the pkg-config man page for more details." "$LINENO" 5
17417 elif test $pkg_failed = untried; then
17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 printf "%s\n" "no" >&6; }
17420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17421 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17422 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17423 is in your PATH or set the PKG_CONFIG environment variable to the full
17424 path to pkg-config.
17425
17426 Alternatively, you may set the environment variables LIBURCU_CFLAGS
17427 and LIBURCU_LIBS to avoid the need to call pkg-config.
17428 See the pkg-config man page for more details.
17429
17430 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17431 See \`config.log' for more details" "$LINENO" 5; }
17432 else
17433 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS
17434 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17436 printf "%s\n" "yes" >&6; }
17437 LIBURCU_LIBS="$LIBURCU_LIBS -lurcu-common"
17438 fi
17439 else
17440 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS
17441 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17443 printf "%s\n" "yes" >&6; }
17444
17445 fi
17446
17447
17448 printf "%s\n" "#define RCU_FLAVOR \"$RCU_FLAVOR\"" >>confdefs.h
17449
17450
17451
17452 if test -n "$RCU_VERSION"; then
17453 pkg_cv_RCU_VERSION="$RCU_VERSION"
17454 elif test -n "$PKG_CONFIG"; then
17455 if test -n "$PKG_CONFIG" && \
17456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR\""; } >&5
17457 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR") 2>&5
17458 ac_status=$?
17459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17460 test $ac_status = 0; }; then
17461 pkg_cv_RCU_VERSION=`$PKG_CONFIG --modversion "$RCU_FLAVOR" 2>/dev/null`
17462 test "x$?" != "x0" && pkg_failed=yes
17463 else
17464 pkg_failed=yes
17465 fi
17466 else
17467 pkg_failed=untried
17468 fi
17469 RCU_VERSION=$pkg_cv_RCU_VERSION
17470
17471 if test "x$RCU_VERSION" = x""
17472 then :
17473
17474 fi
17475
17476 printf "%s\n" "#define RCU_VERSION \"$RCU_VERSION\"" >>confdefs.h
17477
17478
17479 CFLAGS="$CFLAGS $LIBURCU_CFLAGS"
17480 LIBS="$LIBS $LIBURCU_LIBS"
17481
17482 #
17483 # Userspace-RCU inlining doesn't work for rcu_deference() with some combination
17484 # of C compiler and library version.
17485 #
17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can inline small liburcu functions" >&5
17487 printf %s "checking whether we can inline small liburcu functions... " >&6; }
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490 #define URCU_INLINE_SMALL_FUNCTIONS 1
17491 #include <urcu.h>
17492 int
17493 main (void)
17494 {
17495 struct opaque *a; struct opaque *b = rcu_dereference(a);
17496 ;
17497 return 0;
17498 }
17499 _ACEOF
17500 if ac_fn_c_try_compile "$LINENO"
17501 then :
17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17503 printf "%s\n" "yes" >&6; }
17504
17505 printf "%s\n" "#define URCU_INLINE_SMALL_FUNCTIONS 1" >>confdefs.h
17506
17507 else $as_nop
17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509 printf "%s\n" "no" >&6; }
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17512
17513 # Fuzzing is not included in pairwise testing as fuzzing tools are
17514 # not present in the relevant Docker image.
17515 #
17516 # [pairwise: skip]
17517 # Check whether --enable-fuzzing was given.
17518 if test ${enable_fuzzing+y}
17519 then :
17520 enableval=$enable_fuzzing;
17521 else $as_nop
17522 enable_fuzzing=no
17523 fi
17524
17525
17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
17527 printf %s "checking whether to enable fuzzing mode... " >&6; }
17528 case $enable_fuzzing in #(
17529 no) :
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531 printf "%s\n" "no" >&6; } ;; #(
17532 afl) :
17533
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
17535 printf "%s\n" "using AFL" >&6; }
17536
17537 printf "%s\n" "#define ENABLE_AFL 1" >>confdefs.h
17538
17539 STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
17540 FUZZ_LOG_COMPILER="afl.sh" ;; #(
17541 libfuzzer) :
17542
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
17544 printf "%s\n" "using libFuzzer" >&6; }
17545 STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer-no-link,address,undefined"
17546 LDFLAGS="$LDFLAGS -fsanitize=address,undefined"
17547 FUZZ_LDFLAGS="-fsanitize=fuzzer,address,undefined"
17548 FUZZ_LOG_COMPILER="libfuzzer.sh" ;; #(
17549 ossfuzz) :
17550
17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OSS-Fuzz" >&5
17552 printf "%s\n" "using OSS-Fuzz" >&6; }
17553 FUZZ_LDFLAGS="$LIB_FUZZING_ENGINE" ;; #(
17554 *) :
17555 as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
17556 *) :
17557 ;;
17558 esac
17559 if test -n "$FUZZ_LOG_COMPILER"; then
17560 HAVE_FUZZ_LOG_COMPILER_TRUE=
17561 HAVE_FUZZ_LOG_COMPILER_FALSE='#'
17562 else
17563 HAVE_FUZZ_LOG_COMPILER_TRUE='#'
17564 HAVE_FUZZ_LOG_COMPILER_FALSE=
17565 fi
17566
17567
17568
17569
17570 if test "$enable_fuzzing" = "afl"
17571 then :
17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
17573 printf %s "checking \"for AFL enabled compiler\"... " >&6; }
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17576
17577 int
17578 main (void)
17579 {
17580 #ifndef __AFL_COMPILER
17581 #error AFL compiler required
17582 #endif
17583
17584 ;
17585 return 0;
17586 }
17587 _ACEOF
17588 if ac_fn_c_try_compile "$LINENO"
17589 then :
17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17591 printf "%s\n" "yes" >&6; }
17592 else $as_nop
17593 as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
17594 fi
17595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17596
17597 fi
17598
17599 #
17600 # Perl is optional; it is used only by some of the system test scripts.
17601 #
17602 for ac_prog in perl5 perl
17603 do
17604 # Extract the first word of "$ac_prog", so it can be a program name with args.
17605 set dummy $ac_prog; ac_word=$2
17606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17607 printf %s "checking for $ac_word... " >&6; }
17608 if test ${ac_cv_path_PERL+y}
17609 then :
17610 printf %s "(cached) " >&6
17611 else $as_nop
17612 case $PERL in
17613 [\\/]* | ?:[\\/]*)
17614 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17615 ;;
17616 *)
17617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17618 for as_dir in $PATH
17619 do
17620 IFS=$as_save_IFS
17621 case $as_dir in #(((
17622 '') as_dir=./ ;;
17623 */) ;;
17624 *) as_dir=$as_dir/ ;;
17625 esac
17626 for ac_exec_ext in '' $ac_executable_extensions; do
17627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17628 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
17629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17630 break 2
17631 fi
17632 done
17633 done
17634 IFS=$as_save_IFS
17635
17636 ;;
17637 esac
17638 fi
17639 PERL=$ac_cv_path_PERL
17640 if test -n "$PERL"; then
17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
17642 printf "%s\n" "$PERL" >&6; }
17643 else
17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645 printf "%s\n" "no" >&6; }
17646 fi
17647
17648
17649 test -n "$PERL" && break
17650 done
17651
17652
17653 if test -n "$PERL"; then
17654 HAVE_PERL_TRUE=
17655 HAVE_PERL_FALSE='#'
17656 else
17657 HAVE_PERL_TRUE='#'
17658 HAVE_PERL_FALSE=
17659 fi
17660
17661
17662 #
17663 # Python is optional, it is used only by some of the system test scripts.
17664 #
17665
17666
17667
17668
17669
17670
17671 if test -n "$PYTHON"; then
17672 # If the user set $PYTHON, use it and don't search something else.
17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
17674 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
17675 prog="import sys
17676 # split strings by '.' and convert to numeric. Append some zeros
17677 # because we need at least 4 digits for the hex conversion.
17678 # map returns an iterator in Python 3.0 and a list in 2.x
17679 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
17680 minverhex = 0
17681 # xrange is not present in Python 3.0 and range returns an iterator
17682 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17683 sys.exit(sys.hexversion < minverhex)"
17684 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17685 ($PYTHON -c "$prog") >&5 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }
17689 then :
17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691 printf "%s\n" "yes" >&6; }
17692 else $as_nop
17693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694 printf "%s\n" "no" >&6; }
17695 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17696 fi
17697 am_display_PYTHON=$PYTHON
17698 else
17699 # Otherwise, try each interpreter until we find one that satisfies
17700 # VERSION.
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
17702 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
17703 if test ${am_cv_pathless_PYTHON+y}
17704 then :
17705 printf %s "(cached) " >&6
17706 else $as_nop
17707
17708 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
17709 test "$am_cv_pathless_PYTHON" = none && break
17710 prog="import sys
17711 # split strings by '.' and convert to numeric. Append some zeros
17712 # because we need at least 4 digits for the hex conversion.
17713 # map returns an iterator in Python 3.0 and a list in 2.x
17714 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
17715 minverhex = 0
17716 # xrange is not present in Python 3.0 and range returns an iterator
17717 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17718 sys.exit(sys.hexversion < minverhex)"
17719 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17720 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }
17724 then :
17725 break
17726 fi
17727 done
17728 fi
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17730 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
17731 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17732 if test "$am_cv_pathless_PYTHON" = none; then
17733 PYTHON=:
17734 else
17735 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17736 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17738 printf %s "checking for $ac_word... " >&6; }
17739 if test ${ac_cv_path_PYTHON+y}
17740 then :
17741 printf %s "(cached) " >&6
17742 else $as_nop
17743 case $PYTHON in
17744 [\\/]* | ?:[\\/]*)
17745 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17746 ;;
17747 *)
17748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17750 do
17751 IFS=$as_save_IFS
17752 case $as_dir in #(((
17753 '') as_dir=./ ;;
17754 */) ;;
17755 *) as_dir=$as_dir/ ;;
17756 esac
17757 for ac_exec_ext in '' $ac_executable_extensions; do
17758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17759 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
17760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17761 break 2
17762 fi
17763 done
17764 done
17765 IFS=$as_save_IFS
17766
17767 ;;
17768 esac
17769 fi
17770 PYTHON=$ac_cv_path_PYTHON
17771 if test -n "$PYTHON"; then
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17773 printf "%s\n" "$PYTHON" >&6; }
17774 else
17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776 printf "%s\n" "no" >&6; }
17777 fi
17778
17779
17780 fi
17781 am_display_PYTHON=$am_cv_pathless_PYTHON
17782 fi
17783
17784
17785 if test "$PYTHON" = :; then
17786 :
17787 else
17788
17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17790 printf %s "checking for $am_display_PYTHON version... " >&6; }
17791 if test ${am_cv_python_version+y}
17792 then :
17793 printf %s "(cached) " >&6
17794 else $as_nop
17795 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
17796 fi
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17798 printf "%s\n" "$am_cv_python_version" >&6; }
17799 PYTHON_VERSION=$am_cv_python_version
17800
17801
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17803 printf %s "checking for $am_display_PYTHON platform... " >&6; }
17804 if test ${am_cv_python_platform+y}
17805 then :
17806 printf %s "(cached) " >&6
17807 else $as_nop
17808 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17809 fi
17810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17811 printf "%s\n" "$am_cv_python_platform" >&6; }
17812 PYTHON_PLATFORM=$am_cv_python_platform
17813
17814
17815 if test "x$prefix" = xNONE; then
17816 am__usable_prefix=$ac_default_prefix
17817 else
17818 am__usable_prefix=$prefix
17819 fi
17820
17821 # Allow user to request using sys.* values from Python,
17822 # instead of the GNU $prefix values.
17823
17824 # Check whether --with-python-sys-prefix was given.
17825 if test ${with_python_sys_prefix+y}
17826 then :
17827 withval=$with_python_sys_prefix; am_use_python_sys=:
17828 else $as_nop
17829 am_use_python_sys=false
17830 fi
17831
17832
17833 # Allow user to override whatever the default Python prefix is.
17834
17835 # Check whether --with-python_prefix was given.
17836 if test ${with_python_prefix+y}
17837 then :
17838 withval=$with_python_prefix; am_python_prefix_subst=$withval
17839 am_cv_python_prefix=$withval
17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
17841 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
17843 printf "%s\n" "$am_cv_python_prefix" >&6; }
17844 else $as_nop
17845
17846 if $am_use_python_sys; then
17847 # using python sys.prefix value, not GNU
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
17849 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
17850 if test ${am_cv_python_prefix+y}
17851 then :
17852 printf %s "(cached) " >&6
17853 else $as_nop
17854 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
17855 fi
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
17857 printf "%s\n" "$am_cv_python_prefix" >&6; }
17858
17859 case $am_cv_python_prefix in
17860 $am__usable_prefix*)
17861 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
17862 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
17863 ;;
17864 *)
17865 am_python_prefix_subst=$am_cv_python_prefix
17866 ;;
17867 esac
17868 else # using GNU prefix value, not python sys.prefix
17869 am_python_prefix_subst='${prefix}'
17870 am_python_prefix=$am_python_prefix_subst
17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
17872 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
17874 printf "%s\n" "$am_python_prefix" >&6; }
17875 fi
17876 fi
17877
17878 # Substituting python_prefix_subst value.
17879 PYTHON_PREFIX=$am_python_prefix_subst
17880
17881
17882 # emacs-page Now do it all over again for Python exec_prefix, but with yet
17883 # another conditional: fall back to regular prefix if that was specified.
17884
17885 # Check whether --with-python_exec_prefix was given.
17886 if test ${with_python_exec_prefix+y}
17887 then :
17888 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
17889 am_cv_python_exec_prefix=$withval
17890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
17891 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
17893 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
17894 else $as_nop
17895
17896 # no explicit --with-python_exec_prefix, but if
17897 # --with-python_prefix was given, use its value for python_exec_prefix too.
17898 if test -n "$with_python_prefix"
17899 then :
17900 am_python_exec_prefix_subst=$with_python_prefix
17901 am_cv_python_exec_prefix=$with_python_prefix
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
17903 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
17905 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
17906 else $as_nop
17907
17908 # Set am__usable_exec_prefix whether using GNU or Python values,
17909 # since we use that variable for pyexecdir.
17910 if test "x$exec_prefix" = xNONE; then
17911 am__usable_exec_prefix=$am__usable_prefix
17912 else
17913 am__usable_exec_prefix=$exec_prefix
17914 fi
17915 #
17916 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
17918 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
17919 if test ${am_cv_python_exec_prefix+y}
17920 then :
17921 printf %s "(cached) " >&6
17922 else $as_nop
17923 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
17924 fi
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
17926 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
17927 case $am_cv_python_exec_prefix in
17928 $am__usable_exec_prefix*)
17929 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
17930 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
17931 ;;
17932 *)
17933 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
17934 ;;
17935 esac
17936 else # using GNU $exec_prefix, not python sys.exec_prefix
17937 am_python_exec_prefix_subst='${exec_prefix}'
17938 am_python_exec_prefix=$am_python_exec_prefix_subst
17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
17940 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
17942 printf "%s\n" "$am_python_exec_prefix" >&6; }
17943 fi
17944 fi
17945 fi
17946
17947 # Substituting python_exec_prefix_subst.
17948 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
17949
17950
17951 # Factor out some code duplication into this shell variable.
17952 am_python_setup_sysconfig="\
17953 import sys
17954 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17955 # with python 3.x. See automake bug#10227.
17956 try:
17957 import sysconfig
17958 except ImportError:
17959 can_use_sysconfig = 0
17960 else:
17961 can_use_sysconfig = 1
17962 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17963 # <https://github.com/pypa/virtualenv/issues/118>
17964 try:
17965 from platform import python_implementation
17966 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17967 can_use_sysconfig = 0
17968 except ImportError:
17969 pass"
17970
17971
17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
17973 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
17974 if test ${am_cv_python_pythondir+y}
17975 then :
17976 printf %s "(cached) " >&6
17977 else $as_nop
17978 if test "x$am_cv_python_prefix" = x; then
17979 am_py_prefix=$am__usable_prefix
17980 else
17981 am_py_prefix=$am_cv_python_prefix
17982 fi
17983 am_cv_python_pythondir=`$PYTHON -c "
17984 $am_python_setup_sysconfig
17985 if can_use_sysconfig:
17986 if hasattr(sysconfig, 'get_default_scheme'):
17987 scheme = sysconfig.get_default_scheme()
17988 else:
17989 scheme = sysconfig._get_default_scheme()
17990 if scheme == 'posix_local':
17991 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
17992 scheme = 'posix_prefix'
17993 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
17994 else:
17995 from distutils import sysconfig
17996 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17997 sys.stdout.write(sitedir)"`
17998 #
17999 case $am_cv_python_pythondir in
18000 $am_py_prefix*)
18001 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
18002 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
18003 ;;
18004 *)
18005 case $am_py_prefix in
18006 /usr|/System*) ;;
18007 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
18008 ;;
18009 esac
18010 ;;
18011 esac
18012
18013 fi
18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
18015 printf "%s\n" "$am_cv_python_pythondir" >&6; }
18016 pythondir=$am_cv_python_pythondir
18017
18018
18019 pkgpythondir=\${pythondir}/$PACKAGE
18020
18021
18022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
18023 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
18024 if test ${am_cv_python_pyexecdir+y}
18025 then :
18026 printf %s "(cached) " >&6
18027 else $as_nop
18028 if test "x$am_cv_python_exec_prefix" = x; then
18029 am_py_exec_prefix=$am__usable_exec_prefix
18030 else
18031 am_py_exec_prefix=$am_cv_python_exec_prefix
18032 fi
18033 am_cv_python_pyexecdir=`$PYTHON -c "
18034 $am_python_setup_sysconfig
18035 if can_use_sysconfig:
18036 if hasattr(sysconfig, 'get_default_scheme'):
18037 scheme = sysconfig.get_default_scheme()
18038 else:
18039 scheme = sysconfig._get_default_scheme()
18040 if scheme == 'posix_local':
18041 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
18042 scheme = 'posix_prefix'
18043 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
18044 else:
18045 from distutils import sysconfig
18046 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
18047 sys.stdout.write(sitedir)"`
18048 #
18049 case $am_cv_python_pyexecdir in
18050 $am_py_exec_prefix*)
18051 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
18052 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
18053 ;;
18054 *)
18055 case $am_py_exec_prefix in
18056 /usr|/System*) ;;
18057 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
18058 ;;
18059 esac
18060 ;;
18061 esac
18062
18063 fi
18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
18065 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
18066 pyexecdir=$am_cv_python_pyexecdir
18067
18068
18069 pkgpyexecdir=\${pyexecdir}/$PACKAGE
18070
18071
18072
18073 fi
18074
18075 if test "$PYTHON" != ":"; then
18076 HAVE_PYTHON_TRUE=
18077 HAVE_PYTHON_FALSE='#'
18078 else
18079 HAVE_PYTHON_TRUE='#'
18080 HAVE_PYTHON_FALSE=
18081 fi
18082
18083
18084 for ac_prog in pytest-3 py.test-3 pytest py.test pytest-pypy
18085 do
18086 # Extract the first word of "$ac_prog", so it can be a program name with args.
18087 set dummy $ac_prog; ac_word=$2
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18089 printf %s "checking for $ac_word... " >&6; }
18090 if test ${ac_cv_path_PYTEST+y}
18091 then :
18092 printf %s "(cached) " >&6
18093 else $as_nop
18094 case $PYTEST in
18095 [\\/]* | ?:[\\/]*)
18096 ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
18097 ;;
18098 *)
18099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18100 for as_dir in $PATH
18101 do
18102 IFS=$as_save_IFS
18103 case $as_dir in #(((
18104 '') as_dir=./ ;;
18105 */) ;;
18106 *) as_dir=$as_dir/ ;;
18107 esac
18108 for ac_exec_ext in '' $ac_executable_extensions; do
18109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18110 ac_cv_path_PYTEST="$as_dir$ac_word$ac_exec_ext"
18111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18112 break 2
18113 fi
18114 done
18115 done
18116 IFS=$as_save_IFS
18117
18118 ;;
18119 esac
18120 fi
18121 PYTEST=$ac_cv_path_PYTEST
18122 if test -n "$PYTEST"; then
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
18124 printf "%s\n" "$PYTEST" >&6; }
18125 else
18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18127 printf "%s\n" "no" >&6; }
18128 fi
18129
18130
18131 test -n "$PYTEST" && break
18132 done
18133
18134 if test -z "$PYTEST"
18135 then :
18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
18137 printf "%s\n" "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
18138 fi
18139
18140 if test -n "$PYTEST"; then
18141 HAVE_PYTEST_TRUE=
18142 HAVE_PYTEST_FALSE='#'
18143 else
18144 HAVE_PYTEST_TRUE='#'
18145 HAVE_PYTEST_FALSE=
18146 fi
18147
18148
18149 #
18150 # xsltproc is optional, it is used only by system test scripts.
18151 #
18152 # Extract the first word of "xsltproc", so it can be a program name with args.
18153 set dummy xsltproc; ac_word=$2
18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18155 printf %s "checking for $ac_word... " >&6; }
18156 if test ${ac_cv_path_XSLTPROC+y}
18157 then :
18158 printf %s "(cached) " >&6
18159 else $as_nop
18160 case $XSLTPROC in
18161 [\\/]* | ?:[\\/]*)
18162 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18163 ;;
18164 *)
18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166 for as_dir in $PATH
18167 do
18168 IFS=$as_save_IFS
18169 case $as_dir in #(((
18170 '') as_dir=./ ;;
18171 */) ;;
18172 *) as_dir=$as_dir/ ;;
18173 esac
18174 for ac_exec_ext in '' $ac_executable_extensions; do
18175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18176 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
18177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18178 break 2
18179 fi
18180 done
18181 done
18182 IFS=$as_save_IFS
18183
18184 ;;
18185 esac
18186 fi
18187 XSLTPROC=$ac_cv_path_XSLTPROC
18188 if test -n "$XSLTPROC"; then
18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18190 printf "%s\n" "$XSLTPROC" >&6; }
18191 else
18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 printf "%s\n" "no" >&6; }
18194 fi
18195
18196
18197
18198 #
18199 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
18200 #
18201 case $host in #(
18202 *-solaris*) :
18203
18204 if test "$GCC" = "yes"
18205 then :
18206 LDFLAGS="$LDFLAGS -zrelax=transtls"
18207 { printf "%s\n" "$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
18208 printf "%s\n" "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
18209
18210 fi
18211 ;; #(
18212 *) :
18213 ;;
18214 esac
18215
18216 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18217 if test "x$ac_cv_header_sys_param_h" = xyes
18218 then :
18219 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
18220
18221 fi
18222 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18223 if test "x$ac_cv_header_sys_socket_h" = xyes
18224 then :
18225 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
18226
18227 fi
18228
18229 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default
18230 #ifdef HAVE_SYS_PARAM_H
18231 # include <sys/param.h>
18232 #endif
18233 #ifdef HAVE_SYS_SOCKET_H
18234 # include <sys/socket.h>
18235 #endif
18236
18237 "
18238 if test "x$ac_cv_header_fcntl_h" = xyes
18239 then :
18240 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
18241
18242 fi
18243 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
18244 #ifdef HAVE_SYS_PARAM_H
18245 # include <sys/param.h>
18246 #endif
18247 #ifdef HAVE_SYS_SOCKET_H
18248 # include <sys/socket.h>
18249 #endif
18250
18251 "
18252 if test "x$ac_cv_header_regex_h" = xyes
18253 then :
18254 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
18255
18256 fi
18257 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default
18258 #ifdef HAVE_SYS_PARAM_H
18259 # include <sys/param.h>
18260 #endif
18261 #ifdef HAVE_SYS_SOCKET_H
18262 # include <sys/socket.h>
18263 #endif
18264
18265 "
18266 if test "x$ac_cv_header_sys_time_h" = xyes
18267 then :
18268 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18269
18270 fi
18271 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
18272 #ifdef HAVE_SYS_PARAM_H
18273 # include <sys/param.h>
18274 #endif
18275 #ifdef HAVE_SYS_SOCKET_H
18276 # include <sys/socket.h>
18277 #endif
18278
18279 "
18280 if test "x$ac_cv_header_unistd_h" = xyes
18281 then :
18282 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18283
18284 fi
18285 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default
18286 #ifdef HAVE_SYS_PARAM_H
18287 # include <sys/param.h>
18288 #endif
18289 #ifdef HAVE_SYS_SOCKET_H
18290 # include <sys/socket.h>
18291 #endif
18292
18293 "
18294 if test "x$ac_cv_header_sys_mman_h" = xyes
18295 then :
18296 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
18297
18298 fi
18299 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default
18300 #ifdef HAVE_SYS_PARAM_H
18301 # include <sys/param.h>
18302 #endif
18303 #ifdef HAVE_SYS_SOCKET_H
18304 # include <sys/socket.h>
18305 #endif
18306
18307 "
18308 if test "x$ac_cv_header_sys_sockio_h" = xyes
18309 then :
18310 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
18311
18312 fi
18313 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
18314 #ifdef HAVE_SYS_PARAM_H
18315 # include <sys/param.h>
18316 #endif
18317 #ifdef HAVE_SYS_SOCKET_H
18318 # include <sys/socket.h>
18319 #endif
18320
18321 "
18322 if test "x$ac_cv_header_sys_select_h" = xyes
18323 then :
18324 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
18325
18326 fi
18327 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18328 #ifdef HAVE_SYS_PARAM_H
18329 # include <sys/param.h>
18330 #endif
18331 #ifdef HAVE_SYS_SOCKET_H
18332 # include <sys/socket.h>
18333 #endif
18334
18335 "
18336 if test "x$ac_cv_header_sys_sysctl_h" = xyes
18337 then :
18338 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
18339
18340 fi
18341 ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default
18342 #ifdef HAVE_SYS_PARAM_H
18343 # include <sys/param.h>
18344 #endif
18345 #ifdef HAVE_SYS_SOCKET_H
18346 # include <sys/socket.h>
18347 #endif
18348
18349 "
18350 if test "x$ac_cv_header_net_if6_h" = xyes
18351 then :
18352 printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h
18353
18354 fi
18355 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "$ac_includes_default
18356 #ifdef HAVE_SYS_PARAM_H
18357 # include <sys/param.h>
18358 #endif
18359 #ifdef HAVE_SYS_SOCKET_H
18360 # include <sys/socket.h>
18361 #endif
18362
18363 "
18364 if test "x$ac_cv_header_net_route_h" = xyes
18365 then :
18366 printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
18367
18368 fi
18369 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "$ac_includes_default
18370 #ifdef HAVE_SYS_PARAM_H
18371 # include <sys/param.h>
18372 #endif
18373 #ifdef HAVE_SYS_SOCKET_H
18374 # include <sys/socket.h>
18375 #endif
18376
18377 "
18378 if test "x$ac_cv_header_linux_netlink_h" = xyes
18379 then :
18380 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
18381
18382 fi
18383 ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" "$ac_includes_default
18384 #ifdef HAVE_SYS_PARAM_H
18385 # include <sys/param.h>
18386 #endif
18387 #ifdef HAVE_SYS_SOCKET_H
18388 # include <sys/socket.h>
18389 #endif
18390
18391 "
18392 if test "x$ac_cv_header_linux_rtnetlink_h" = xyes
18393 then :
18394 printf "%s\n" "#define HAVE_LINUX_RTNETLINK_H 1" >>confdefs.h
18395
18396 fi
18397
18398
18399 #
18400 # Check for C11 thread local storage
18401 #
18402 # NOTE: OpenBSD doesn't ship <threads.h>, so we can't require it (yet).
18403 #
18404 ac_fn_c_check_header_compile "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
18405 if test "x$ac_cv_header_threads_h" = xyes
18406 then :
18407 printf "%s\n" "#define HAVE_THREADS_H 1" >>confdefs.h
18408
18409 fi
18410
18411
18412 #
18413 # C11 Atomic Operations
18414 #
18415
18416 for ac_header in stdatomic.h
18417 do :
18418 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
18419 if test "x$ac_cv_header_stdatomic_h" = xyes
18420 then :
18421 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
18422
18423 else $as_nop
18424 as_fn_error $? "C11 Atomic Operations required, update your toolchain to build BIND 9" "$LINENO" 5
18425 fi
18426
18427 done
18428
18429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18431 #include <stdatomic.h>
18432 int
18433 main (void)
18434 {
18435 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18436
18437 ;
18438 return 0;
18439 }
18440 _ACEOF
18441 if ac_fn_c_try_compile "$LINENO"
18442 then :
18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
18444 printf %s "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447 #include <stdatomic.h>
18448 int
18449 main (void)
18450 {
18451 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18452
18453 ;
18454 return 0;
18455 }
18456 _ACEOF
18457 if ac_fn_c_try_link "$LINENO"
18458 then :
18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 printf "%s\n" "no" >&6; }
18461 else $as_nop
18462 LIBS="$LIBS -latomic"
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465 #include <stdatomic.h>
18466 int
18467 main (void)
18468 {
18469 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18470
18471 ;
18472 return 0;
18473 }
18474 _ACEOF
18475 if ac_fn_c_try_link "$LINENO"
18476 then :
18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18478 printf "%s\n" "yes" >&6; }
18479 else $as_nop
18480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18482 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
18483 See \`config.log' for more details" "$LINENO" 5; }
18484 fi
18485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18486 conftest$ac_exeext conftest.$ac_ext
18487
18488 fi
18489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18490 conftest$ac_exeext conftest.$ac_ext
18491
18492 else $as_nop
18493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18494 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18495 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
18496 See \`config.log' for more details" "$LINENO" 5; }
18497 fi
18498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18499
18500 for ac_header in stdnoreturn.h
18501 do :
18502 ac_fn_c_check_header_compile "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
18503 if test "x$ac_cv_header_stdnoreturn_h" = xyes
18504 then :
18505 printf "%s\n" "#define HAVE_STDNORETURN_H 1" >>confdefs.h
18506
18507 else $as_nop
18508 as_fn_error $? "C11 standard headers not found, update your toolchain." "$LINENO" 5
18509 fi
18510
18511 done
18512
18513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18514 printf %s "checking for an ANSI C-conforming const... " >&6; }
18515 if test ${ac_cv_c_const+y}
18516 then :
18517 printf %s "(cached) " >&6
18518 else $as_nop
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h. */
18521
18522 int
18523 main (void)
18524 {
18525
18526 #ifndef __cplusplus
18527 /* Ultrix mips cc rejects this sort of thing. */
18528 typedef int charset[2];
18529 const charset cs = { 0, 0 };
18530 /* SunOS 4.1.1 cc rejects this. */
18531 char const *const *pcpcc;
18532 char **ppc;
18533 /* NEC SVR4.0.2 mips cc rejects this. */
18534 struct point {int x, y;};
18535 static struct point const zero = {0,0};
18536 /* IBM XL C 1.02.0.0 rejects this.
18537 It does not let you subtract one const X* pointer from another in
18538 an arm of an if-expression whose if-part is not a constant
18539 expression */
18540 const char *g = "string";
18541 pcpcc = &g + (g ? g-g : 0);
18542 /* HPUX 7.0 cc rejects these. */
18543 ++pcpcc;
18544 ppc = (char**) pcpcc;
18545 pcpcc = (char const *const *) ppc;
18546 { /* SCO 3.2v4 cc rejects this sort of thing. */
18547 char tx;
18548 char *t = &tx;
18549 char const *s = 0 ? (char *) 0 : (char const *) 0;
18550
18551 *t++ = 0;
18552 if (s) return 0;
18553 }
18554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18555 int x[] = {25, 17};
18556 const int *foo = &x[0];
18557 ++foo;
18558 }
18559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18560 typedef const int *iptr;
18561 iptr p = 0;
18562 ++p;
18563 }
18564 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
18565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18566 struct s { int j; const int *ap[3]; } bx;
18567 struct s *b = &bx; b->j = 5;
18568 }
18569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18570 const int foo = 10;
18571 if (!foo) return 0;
18572 }
18573 return !cs[0] && !zero.x;
18574 #endif
18575
18576 ;
18577 return 0;
18578 }
18579 _ACEOF
18580 if ac_fn_c_try_compile "$LINENO"
18581 then :
18582 ac_cv_c_const=yes
18583 else $as_nop
18584 ac_cv_c_const=no
18585 fi
18586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18587 fi
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18589 printf "%s\n" "$ac_cv_c_const" >&6; }
18590 if test $ac_cv_c_const = no; then
18591
18592 printf "%s\n" "#define const /**/" >>confdefs.h
18593
18594 fi
18595
18596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18597 printf %s "checking for inline... " >&6; }
18598 if test ${ac_cv_c_inline+y}
18599 then :
18600 printf %s "(cached) " >&6
18601 else $as_nop
18602 ac_cv_c_inline=no
18603 for ac_kw in inline __inline__ __inline; do
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606 #ifndef __cplusplus
18607 typedef int foo_t;
18608 static $ac_kw foo_t static_foo (void) {return 0; }
18609 $ac_kw foo_t foo (void) {return 0; }
18610 #endif
18611
18612 _ACEOF
18613 if ac_fn_c_try_compile "$LINENO"
18614 then :
18615 ac_cv_c_inline=$ac_kw
18616 fi
18617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18618 test "$ac_cv_c_inline" != no && break
18619 done
18620
18621 fi
18622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18623 printf "%s\n" "$ac_cv_c_inline" >&6; }
18624
18625 case $ac_cv_c_inline in
18626 inline | yes) ;;
18627 *)
18628 case $ac_cv_c_inline in
18629 no) ac_val=;;
18630 *) ac_val=$ac_cv_c_inline;;
18631 esac
18632 cat >>confdefs.h <<_ACEOF
18633 #ifndef __cplusplus
18634 #define inline $ac_val
18635 #endif
18636 _ACEOF
18637 ;;
18638 esac
18639
18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
18641 printf %s "checking for working volatile... " >&6; }
18642 if test ${ac_cv_c_volatile+y}
18643 then :
18644 printf %s "(cached) " >&6
18645 else $as_nop
18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647 /* end confdefs.h. */
18648
18649 int
18650 main (void)
18651 {
18652
18653 volatile int x;
18654 int * volatile y = (int *) 0;
18655 return !x && !y;
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 if ac_fn_c_try_compile "$LINENO"
18661 then :
18662 ac_cv_c_volatile=yes
18663 else $as_nop
18664 ac_cv_c_volatile=no
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18667 fi
18668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
18669 printf "%s\n" "$ac_cv_c_volatile" >&6; }
18670 if test $ac_cv_c_volatile = no; then
18671
18672 printf "%s\n" "#define volatile /**/" >>confdefs.h
18673
18674 fi
18675
18676
18677 #
18678 # Check for yield support on ARM processors
18679 #
18680 case $host in #(
18681 arm*|aarch64*) :
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM yield instruction support" >&5
18683 printf %s "checking for ARM yield instruction support... " >&6; }
18684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685 /* end confdefs.h. */
18686
18687 int
18688 main (void)
18689 {
18690 __asm__ __volatile__ ("yield")
18691 ;
18692 return 0;
18693 }
18694 _ACEOF
18695 if ac_fn_c_try_compile "$LINENO"
18696 then :
18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18698 printf "%s\n" "yes" >&6; }
18699
18700 printf "%s\n" "#define HAVE_ARM_YIELD 1" >>confdefs.h
18701
18702 else $as_nop
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 printf "%s\n" "no" >&6; }
18705 fi
18706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
18707 *) :
18708 ;;
18709 esac
18710
18711 #
18712 # Check for pause support on SPARC processors
18713 #
18714 case $host in #(
18715 sparc*) :
18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
18717 printf %s "checking for pause instruction support... " >&6; }
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18720
18721 int
18722 main (void)
18723 {
18724 __asm__ __volatile__ ("pause")
18725 ;
18726 return 0;
18727 }
18728 _ACEOF
18729 if ac_fn_c_try_compile "$LINENO"
18730 then :
18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18732 printf "%s\n" "yes" >&6; }
18733
18734 printf "%s\n" "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
18735
18736 else $as_nop
18737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738 printf "%s\n" "no" >&6; }
18739 fi
18740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
18741 *) :
18742 ;;
18743 esac
18744
18745 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
18746 if test "x$ac_cv_func_sysctlbyname" = xyes
18747 then :
18748 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
18749
18750 fi
18751
18752
18753 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18754 if test "x$ac_cv_type_size_t" = xyes
18755 then :
18756
18757 else $as_nop
18758
18759 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18760
18761 fi
18762
18763 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18764 if test "x$ac_cv_type_ssize_t" = xyes
18765 then :
18766
18767 else $as_nop
18768
18769 printf "%s\n" "#define ssize_t int" >>confdefs.h
18770
18771 fi
18772
18773
18774 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
18775 if test "x$ac_cv_type_uintptr_t" = xyes
18776 then :
18777
18778 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
18779
18780 else $as_nop
18781 for ac_type in 'unsigned int' 'unsigned long int' \
18782 'unsigned long long int'; do
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 $ac_includes_default
18786 int
18787 main (void)
18788 {
18789 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
18790 test_array [0] = 0;
18791 return test_array [0];
18792
18793 ;
18794 return 0;
18795 }
18796 _ACEOF
18797 if ac_fn_c_try_compile "$LINENO"
18798 then :
18799
18800 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
18801
18802 ac_type=
18803 fi
18804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18805 test -z "$ac_type" && break
18806 done
18807 fi
18808
18809
18810
18811 #
18812 # check for uname library routine
18813 #
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
18815 printf %s "checking for uname... " >&6; }
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18818 #include <sys/utsname.h>
18819 #include <stdio.h>
18820
18821 int
18822 main (void)
18823 {
18824
18825 struct utsname uts;
18826 uname(&uts);
18827 printf("running on %s %s %s for %s\n",
18828 uts.sysname, uts.release, uts.version, uts.machine);
18829
18830 ;
18831 return 0;
18832 }
18833 _ACEOF
18834 if ac_fn_c_try_compile "$LINENO"
18835 then :
18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18837 printf "%s\n" "yes" >&6; }
18838
18839 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
18840
18841
18842 else $as_nop
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18844 printf "%s\n" "no" >&6; }
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
18846 printf "%s\n" "$as_me: WARNING: uname is not correctly supported" >&2;}
18847
18848 fi
18849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18850
18851 #
18852 # check for GCC noreturn attribute
18853 #
18854
18855
18856
18857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((noreturn))" >&5
18858 printf %s "checking for __attribute__((noreturn))... " >&6; }
18859 if test ${ax_cv_have_func_attribute_noreturn+y}
18860 then :
18861 printf %s "(cached) " >&6
18862 else $as_nop
18863
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866
18867
18868 void foo( void ) __attribute__((noreturn));
18869
18870 int
18871 main (void)
18872 {
18873
18874 ;
18875 return 0;
18876 }
18877
18878 _ACEOF
18879 if ac_fn_c_try_link "$LINENO"
18880 then :
18881 if grep -- -Wattributes conftest.err
18882 then :
18883 ax_cv_have_func_attribute_noreturn=no
18884 else $as_nop
18885 ax_cv_have_func_attribute_noreturn=yes
18886 fi
18887 else $as_nop
18888 ax_cv_have_func_attribute_noreturn=no
18889 fi
18890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18891 conftest$ac_exeext conftest.$ac_ext
18892
18893 fi
18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_noreturn" >&5
18895 printf "%s\n" "$ax_cv_have_func_attribute_noreturn" >&6; }
18896
18897 if test yes = $ax_cv_have_func_attribute_noreturn
18898 then :
18899
18900 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
18901
18902 fi
18903
18904
18905
18906
18907 #
18908 # check for GCC malloc attribute
18909 #
18910
18911
18912
18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5
18914 printf %s "checking for __attribute__((malloc))... " >&6; }
18915 if test ${ax_cv_have_func_attribute_malloc+y}
18916 then :
18917 printf %s "(cached) " >&6
18918 else $as_nop
18919
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18922
18923
18924 void *foo( void ) __attribute__((malloc));
18925
18926 int
18927 main (void)
18928 {
18929
18930 ;
18931 return 0;
18932 }
18933
18934 _ACEOF
18935 if ac_fn_c_try_link "$LINENO"
18936 then :
18937 if grep -- -Wattributes conftest.err
18938 then :
18939 ax_cv_have_func_attribute_malloc=no
18940 else $as_nop
18941 ax_cv_have_func_attribute_malloc=yes
18942 fi
18943 else $as_nop
18944 ax_cv_have_func_attribute_malloc=no
18945 fi
18946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18947 conftest$ac_exeext conftest.$ac_ext
18948
18949 fi
18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5
18951 printf "%s\n" "$ax_cv_have_func_attribute_malloc" >&6; }
18952
18953 if test yes = $ax_cv_have_func_attribute_malloc
18954 then :
18955
18956 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h
18957
18958 fi
18959
18960
18961
18962
18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended malloc attributes" >&5
18964 printf %s "checking for extended malloc attributes... " >&6; }
18965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h. */
18967
18968 #include <stddef.h>
18969 #include <stdlib.h>
18970 __attribute__ ((malloc, malloc (free, 1))
18971 void * xmalloc(size_t sz) { return malloc(sz); }
18972
18973 int
18974 main (void)
18975 {
18976
18977 void *p = xmalloc(8);
18978 free(p);
18979
18980 ;
18981 return 0;
18982 }
18983 _ACEOF
18984 if ac_fn_c_try_compile "$LINENO"
18985 then :
18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18987 printf "%s\n" "yes" >&6; }
18988
18989 printf "%s\n" "#define HAVE_MALLOC_EXT_ATTR 1" >>confdefs.h
18990
18991
18992 else $as_nop
18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18994 printf "%s\n" "no" >&6; }
18995 fi
18996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18997
18998 #
18999 # check for GCC returns_nonnull attribute
19000 #
19001
19002
19003
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((returns_nonnull))" >&5
19005 printf %s "checking for __attribute__((returns_nonnull))... " >&6; }
19006 if test ${ax_cv_have_func_attribute_returns_nonnull+y}
19007 then :
19008 printf %s "(cached) " >&6
19009 else $as_nop
19010
19011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19012 /* end confdefs.h. */
19013
19014
19015 void *foo( void ) __attribute__((returns_nonnull));
19016
19017 int
19018 main (void)
19019 {
19020
19021 ;
19022 return 0;
19023 }
19024
19025 _ACEOF
19026 if ac_fn_c_try_link "$LINENO"
19027 then :
19028 if grep -- -Wattributes conftest.err
19029 then :
19030 ax_cv_have_func_attribute_returns_nonnull=no
19031 else $as_nop
19032 ax_cv_have_func_attribute_returns_nonnull=yes
19033 fi
19034 else $as_nop
19035 ax_cv_have_func_attribute_returns_nonnull=no
19036 fi
19037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19038 conftest$ac_exeext conftest.$ac_ext
19039
19040 fi
19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_returns_nonnull" >&5
19042 printf "%s\n" "$ax_cv_have_func_attribute_returns_nonnull" >&6; }
19043
19044 if test yes = $ax_cv_have_func_attribute_returns_nonnull
19045 then :
19046
19047 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
19048
19049 fi
19050
19051
19052
19053
19054 #
19055 # how to link math functions?
19056 #
19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
19058 printf %s "checking for library containing sqrt... " >&6; }
19059 if test ${ac_cv_search_sqrt+y}
19060 then :
19061 printf %s "(cached) " >&6
19062 else $as_nop
19063 ac_func_search_save_LIBS=$LIBS
19064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070 char sqrt ();
19071 int
19072 main (void)
19073 {
19074 return sqrt ();
19075 ;
19076 return 0;
19077 }
19078 _ACEOF
19079 for ac_lib in '' m
19080 do
19081 if test -z "$ac_lib"; then
19082 ac_res="none required"
19083 else
19084 ac_res=-l$ac_lib
19085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19086 fi
19087 if ac_fn_c_try_link "$LINENO"
19088 then :
19089 ac_cv_search_sqrt=$ac_res
19090 fi
19091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19092 conftest$ac_exeext
19093 if test ${ac_cv_search_sqrt+y}
19094 then :
19095 break
19096 fi
19097 done
19098 if test ${ac_cv_search_sqrt+y}
19099 then :
19100
19101 else $as_nop
19102 ac_cv_search_sqrt=no
19103 fi
19104 rm conftest.$ac_ext
19105 LIBS=$ac_func_search_save_LIBS
19106 fi
19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
19108 printf "%s\n" "$ac_cv_search_sqrt" >&6; }
19109 ac_res=$ac_cv_search_sqrt
19110 if test "$ac_res" != no
19111 then :
19112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19113
19114 fi
19115
19116
19117 #
19118 # GeoIP support?
19119 #
19120 # Should be on by default if libmaxminddb exists.
19121 #
19122 # [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]
19123 # Check whether --enable-geoip was given.
19124 if test ${enable_geoip+y}
19125 then :
19126 enableval=$enable_geoip;
19127 else $as_nop
19128 enable_geoip="yes"
19129 fi
19130
19131
19132 # [pairwise: skip]
19133
19134 # Check whether --with-maxminddb was given.
19135 if test ${with_maxminddb+y}
19136 then :
19137 withval=$with_maxminddb;
19138 else $as_nop
19139 with_maxminddb="auto"
19140 fi
19141
19142
19143 if test "$enable_geoip" = "yes"
19144 then :
19145 case $with_maxminddb in #(
19146 no) :
19147 as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
19148 auto) :
19149
19150 pkg_failed=no
19151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
19152 printf %s "checking for libmaxminddb... " >&6; }
19153
19154 if test -n "$MAXMINDDB_CFLAGS"; then
19155 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
19156 elif test -n "$PKG_CONFIG"; then
19157 if test -n "$PKG_CONFIG" && \
19158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
19159 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
19160 ac_status=$?
19161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; then
19163 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
19164 test "x$?" != "x0" && pkg_failed=yes
19165 else
19166 pkg_failed=yes
19167 fi
19168 else
19169 pkg_failed=untried
19170 fi
19171 if test -n "$MAXMINDDB_LIBS"; then
19172 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
19173 elif test -n "$PKG_CONFIG"; then
19174 if test -n "$PKG_CONFIG" && \
19175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
19176 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
19177 ac_status=$?
19178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19179 test $ac_status = 0; }; then
19180 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
19181 test "x$?" != "x0" && pkg_failed=yes
19182 else
19183 pkg_failed=yes
19184 fi
19185 else
19186 pkg_failed=untried
19187 fi
19188
19189
19190
19191 if test $pkg_failed = yes; then
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 printf "%s\n" "no" >&6; }
19194
19195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19196 _pkg_short_errors_supported=yes
19197 else
19198 _pkg_short_errors_supported=no
19199 fi
19200 if test $_pkg_short_errors_supported = yes; then
19201 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
19202 else
19203 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
19204 fi
19205 # Put the nasty error message in config.log where it belongs
19206 echo "$MAXMINDDB_PKG_ERRORS" >&5
19207
19208 :
19209 elif test $pkg_failed = untried; then
19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211 printf "%s\n" "no" >&6; }
19212 :
19213 else
19214 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
19215 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19217 printf "%s\n" "yes" >&6; }
19218
19219 printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h
19220
19221
19222 if test -n "$MAXMINDDB_PREFIX"; then
19223 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
19224 elif test -n "$PKG_CONFIG"; then
19225 if test -n "$PKG_CONFIG" && \
19226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
19227 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
19228 ac_status=$?
19229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230 test $ac_status = 0; }; then
19231 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
19232 test "x$?" != "x0" && pkg_failed=yes
19233 else
19234 pkg_failed=yes
19235 fi
19236 else
19237 pkg_failed=untried
19238 fi
19239 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
19240
19241 if test "x$MAXMINDDB_PREFIX" = x""
19242 then :
19243 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
19244 fi
19245
19246 fi ;; #(
19247 yes) :
19248
19249 pkg_failed=no
19250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
19251 printf %s "checking for libmaxminddb... " >&6; }
19252
19253 if test -n "$MAXMINDDB_CFLAGS"; then
19254 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
19255 elif test -n "$PKG_CONFIG"; then
19256 if test -n "$PKG_CONFIG" && \
19257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
19258 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
19259 ac_status=$?
19260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19261 test $ac_status = 0; }; then
19262 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
19263 test "x$?" != "x0" && pkg_failed=yes
19264 else
19265 pkg_failed=yes
19266 fi
19267 else
19268 pkg_failed=untried
19269 fi
19270 if test -n "$MAXMINDDB_LIBS"; then
19271 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
19272 elif test -n "$PKG_CONFIG"; then
19273 if test -n "$PKG_CONFIG" && \
19274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
19275 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
19276 ac_status=$?
19277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19278 test $ac_status = 0; }; then
19279 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
19280 test "x$?" != "x0" && pkg_failed=yes
19281 else
19282 pkg_failed=yes
19283 fi
19284 else
19285 pkg_failed=untried
19286 fi
19287
19288
19289
19290 if test $pkg_failed = yes; then
19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19292 printf "%s\n" "no" >&6; }
19293
19294 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19295 _pkg_short_errors_supported=yes
19296 else
19297 _pkg_short_errors_supported=no
19298 fi
19299 if test $_pkg_short_errors_supported = yes; then
19300 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
19301 else
19302 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
19303 fi
19304 # Put the nasty error message in config.log where it belongs
19305 echo "$MAXMINDDB_PKG_ERRORS" >&5
19306
19307 as_fn_error $? "Package requirements (libmaxminddb) were not met:
19308
19309 $MAXMINDDB_PKG_ERRORS
19310
19311 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19312 installed software in a non-standard prefix.
19313
19314 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
19315 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
19316 See the pkg-config man page for more details." "$LINENO" 5
19317 elif test $pkg_failed = untried; then
19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 printf "%s\n" "no" >&6; }
19320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19321 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19322 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19323 is in your PATH or set the PKG_CONFIG environment variable to the full
19324 path to pkg-config.
19325
19326 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
19327 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
19328 See the pkg-config man page for more details.
19329
19330 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19331 See \`config.log' for more details" "$LINENO" 5; }
19332 else
19333 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
19334 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
19335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19336 printf "%s\n" "yes" >&6; }
19337
19338 printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h
19339
19340
19341 if test -n "$MAXMINDDB_PREFIX"; then
19342 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
19343 elif test -n "$PKG_CONFIG"; then
19344 if test -n "$PKG_CONFIG" && \
19345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
19346 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
19347 ac_status=$?
19348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19349 test $ac_status = 0; }; then
19350 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
19351 test "x$?" != "x0" && pkg_failed=yes
19352 else
19353 pkg_failed=yes
19354 fi
19355 else
19356 pkg_failed=untried
19357 fi
19358 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
19359
19360 if test "x$MAXMINDDB_PREFIX" = x""
19361 then :
19362 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
19363 fi
19364
19365 fi ;; #(
19366 *) :
19367 # default
19368
19369
19370 CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
19371
19372
19373
19374 CFLAGS_maxminddb_ax_save_flags=$CFLAGS
19375
19376
19377
19378 CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
19379
19380
19381
19382 CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
19383
19384
19385
19386 ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
19387
19388
19389
19390 FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
19391
19392
19393
19394 FCLIBS_maxminddb_ax_save_flags=$FCLIBS
19395
19396
19397
19398 FFLAGS_maxminddb_ax_save_flags=$FFLAGS
19399
19400
19401
19402 FLIBS_maxminddb_ax_save_flags=$FLIBS
19403
19404
19405
19406 GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
19407
19408
19409
19410 JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
19411
19412
19413
19414 LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
19415
19416
19417
19418 LIBS_maxminddb_ax_save_flags=$LIBS
19419
19420
19421
19422 OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
19423
19424
19425
19426 OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
19427
19428
19429
19430 UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
19431
19432
19433
19434 VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
19435
19436
19437
19438 MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
19439 MAXMINDDB_LIBS="-L$with_maxminddb/lib"
19440 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
19441 LIBS="$LIBS $MAXMINDDB_LIBS"
19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
19443 printf %s "checking for library containing MMDB_open... " >&6; }
19444 if test ${ac_cv_search_MMDB_open+y}
19445 then :
19446 printf %s "(cached) " >&6
19447 else $as_nop
19448 ac_func_search_save_LIBS=$LIBS
19449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450 /* end confdefs.h. */
19451
19452 /* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19455 char MMDB_open ();
19456 int
19457 main (void)
19458 {
19459 return MMDB_open ();
19460 ;
19461 return 0;
19462 }
19463 _ACEOF
19464 for ac_lib in '' maxminddb
19465 do
19466 if test -z "$ac_lib"; then
19467 ac_res="none required"
19468 else
19469 ac_res=-l$ac_lib
19470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19471 fi
19472 if ac_fn_c_try_link "$LINENO"
19473 then :
19474 ac_cv_search_MMDB_open=$ac_res
19475 fi
19476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19477 conftest$ac_exeext
19478 if test ${ac_cv_search_MMDB_open+y}
19479 then :
19480 break
19481 fi
19482 done
19483 if test ${ac_cv_search_MMDB_open+y}
19484 then :
19485
19486 else $as_nop
19487 ac_cv_search_MMDB_open=no
19488 fi
19489 rm conftest.$ac_ext
19490 LIBS=$ac_func_search_save_LIBS
19491 fi
19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
19493 printf "%s\n" "$ac_cv_search_MMDB_open" >&6; }
19494 ac_res=$ac_cv_search_MMDB_open
19495 if test "$ac_res" != no
19496 then :
19497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19498
19499 printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h
19500
19501 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open"
19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
19503 printf "%s\n" "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
19504 MAXMINDDB_PREFIX=$with_maxminddb
19505
19506 else $as_nop
19507 as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
19508 fi
19509
19510
19511 CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
19512
19513
19514 CFLAGS=$CFLAGS_maxminddb_ax_save_flags
19515
19516
19517 CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
19518
19519
19520 CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
19521
19522
19523 ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
19524
19525
19526 FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
19527
19528
19529 FCLIBS=$FCLIBS_maxminddb_ax_save_flags
19530
19531
19532 FFLAGS=$FFLAGS_maxminddb_ax_save_flags
19533
19534
19535 FLIBS=$FLIBS_maxminddb_ax_save_flags
19536
19537
19538 GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
19539
19540
19541 JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
19542
19543
19544 LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
19545
19546
19547 LIBS=$LIBS_maxminddb_ax_save_flags
19548
19549
19550 OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
19551
19552
19553 OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
19554
19555
19556 UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
19557
19558
19559 VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
19560
19561
19562
19563 ;;
19564 esac
19565
19566
19567 fi
19568
19569 if test -n "$MAXMINDDB_LIBS"; then
19570 HAVE_GEOIP2_TRUE=
19571 HAVE_GEOIP2_FALSE='#'
19572 else
19573 HAVE_GEOIP2_TRUE='#'
19574 HAVE_GEOIP2_FALSE=
19575 fi
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586 ac_ext=c
19587 ac_cpp='$CPP $CPPFLAGS'
19588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19591
19592 ax_pthread_ok=no
19593
19594 # We used to check for pthread.h first, but this fails if pthread.h
19595 # requires special compiler flags (e.g. on Tru64 or Sequent).
19596 # It gets checked for in the link test anyway.
19597
19598 # First of all, check if the user has set any of the PTHREAD_LIBS,
19599 # etcetera environment variables, and if threads linking works using
19600 # them:
19601 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19602 ax_pthread_save_CC="$CC"
19603 ax_pthread_save_CFLAGS="$CFLAGS"
19604 ax_pthread_save_LIBS="$LIBS"
19605 if test "x$PTHREAD_CC" != "x"
19606 then :
19607 CC="$PTHREAD_CC"
19608 fi
19609 if test "x$PTHREAD_CXX" != "x"
19610 then :
19611 CXX="$PTHREAD_CXX"
19612 fi
19613 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19614 LIBS="$PTHREAD_LIBS $LIBS"
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19616 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 char pthread_join ();
19624 int
19625 main (void)
19626 {
19627 return pthread_join ();
19628 ;
19629 return 0;
19630 }
19631 _ACEOF
19632 if ac_fn_c_try_link "$LINENO"
19633 then :
19634 ax_pthread_ok=yes
19635 fi
19636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19637 conftest$ac_exeext conftest.$ac_ext
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19639 printf "%s\n" "$ax_pthread_ok" >&6; }
19640 if test "x$ax_pthread_ok" = "xno"; then
19641 PTHREAD_LIBS=""
19642 PTHREAD_CFLAGS=""
19643 fi
19644 CC="$ax_pthread_save_CC"
19645 CFLAGS="$ax_pthread_save_CFLAGS"
19646 LIBS="$ax_pthread_save_LIBS"
19647 fi
19648
19649 # We must check for the threads library under a number of different
19650 # names; the ordering is very important because some systems
19651 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19652 # libraries is broken (non-POSIX).
19653
19654 # Create a list of thread flags to try. Items with a "," contain both
19655 # C compiler flags (before ",") and linker flags (after ","). Other items
19656 # starting with a "-" are C compiler flags, and remaining items are
19657 # library names, except for "none" which indicates that we try without
19658 # any flags at all, and "pthread-config" which is a program returning
19659 # the flags for the Pth emulation library.
19660
19661 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19662
19663 # The ordering *is* (sometimes) important. Some notes on the
19664 # individual items follow:
19665
19666 # pthreads: AIX (must check this before -lpthread)
19667 # none: in case threads are in libc; should be tried before -Kthread and
19668 # other compiler flags to prevent continual compiler warnings
19669 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19670 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19671 # (Note: HP C rejects this with "bad form for `-t' option")
19672 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19673 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19674 # doesn't hurt to check since this sometimes defines pthreads and
19675 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19676 # is present but should not be used directly; and before -mthreads,
19677 # because the compiler interprets this as "-mt" + "-hreads")
19678 # -mthreads: Mingw32/gcc, Lynx/gcc
19679 # pthread: Linux, etcetera
19680 # --thread-safe: KAI C++
19681 # pthread-config: use pthread-config program (for GNU Pth library)
19682
19683 case $target_os in
19684
19685 freebsd*)
19686
19687 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19688 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19689
19690 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19691 ;;
19692
19693 hpux*)
19694
19695 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19696 # multi-threading and also sets -lpthread."
19697
19698 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19699 ;;
19700
19701 openedition*)
19702
19703 # IBM z/OS requires a feature-test macro to be defined in order to
19704 # enable POSIX threads at all, so give the user a hint if this is
19705 # not set. (We don't define these ourselves, as they can affect
19706 # other portions of the system API in unpredictable ways.)
19707
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19710
19711 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19712 AX_PTHREAD_ZOS_MISSING
19713 # endif
19714
19715 _ACEOF
19716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19717 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
19718 then :
19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19720 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19721 fi
19722 rm -rf conftest*
19723
19724 ;;
19725
19726 solaris*)
19727
19728 # On Solaris (at least, for some versions), libc contains stubbed
19729 # (non-functional) versions of the pthreads routines, so link-based
19730 # tests will erroneously succeed. (N.B.: The stubs are missing
19731 # pthread_cleanup_push, or rather a function called by this macro,
19732 # so we could check for that, but who knows whether they'll stub
19733 # that too in a future libc.) So we'll check first for the
19734 # standard Solaris way of linking pthreads (-mt -lpthread).
19735
19736 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
19737 ;;
19738 esac
19739
19740 # Are we compiling with Clang?
19741
19742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19743 printf %s "checking whether $CC is Clang... " >&6; }
19744 if test ${ax_cv_PTHREAD_CLANG+y}
19745 then :
19746 printf %s "(cached) " >&6
19747 else $as_nop
19748 ax_cv_PTHREAD_CLANG=no
19749 # Note that Autoconf sets GCC=yes for Clang as well as GCC
19750 if test "x$GCC" = "xyes"; then
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19753 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19754 # if defined(__clang__) && defined(__llvm__)
19755 AX_PTHREAD_CC_IS_CLANG
19756 # endif
19757
19758 _ACEOF
19759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19760 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
19761 then :
19762 ax_cv_PTHREAD_CLANG=yes
19763 fi
19764 rm -rf conftest*
19765
19766 fi
19767
19768 fi
19769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19770 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
19771 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19772
19773
19774 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19775
19776 # Note that for GCC and Clang -pthread generally implies -lpthread,
19777 # except when -nostdlib is passed.
19778 # This is problematic using libtool to build C++ shared libraries with pthread:
19779 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
19780 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
19781 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
19782 # To solve this, first try -pthread together with -lpthread for GCC
19783
19784 if test "x$GCC" = "xyes"
19785 then :
19786 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
19787 fi
19788
19789 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
19790
19791 if test "x$ax_pthread_clang" = "xyes"
19792 then :
19793 ax_pthread_flags="-pthread,-lpthread -pthread"
19794 fi
19795
19796
19797 # The presence of a feature test macro requesting re-entrant function
19798 # definitions is, on some systems, a strong hint that pthreads support is
19799 # correctly enabled
19800
19801 case $target_os in
19802 darwin* | hpux* | linux* | osf* | solaris*)
19803 ax_pthread_check_macro="_REENTRANT"
19804 ;;
19805
19806 aix*)
19807 ax_pthread_check_macro="_THREAD_SAFE"
19808 ;;
19809
19810 *)
19811 ax_pthread_check_macro="--"
19812 ;;
19813 esac
19814 if test "x$ax_pthread_check_macro" = "x--"
19815 then :
19816 ax_pthread_check_cond=0
19817 else $as_nop
19818 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19819 fi
19820
19821
19822 if test "x$ax_pthread_ok" = "xno"; then
19823 for ax_pthread_try_flag in $ax_pthread_flags; do
19824
19825 case $ax_pthread_try_flag in
19826 none)
19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19828 printf %s "checking whether pthreads work without any flags... " >&6; }
19829 ;;
19830
19831 *,*)
19832 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
19833 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
19835 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
19836 ;;
19837
19838 -*)
19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19840 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19841 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19842 ;;
19843
19844 pthread-config)
19845 # Extract the first word of "pthread-config", so it can be a program name with args.
19846 set dummy pthread-config; ac_word=$2
19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19848 printf %s "checking for $ac_word... " >&6; }
19849 if test ${ac_cv_prog_ax_pthread_config+y}
19850 then :
19851 printf %s "(cached) " >&6
19852 else $as_nop
19853 if test -n "$ax_pthread_config"; then
19854 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19855 else
19856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19857 for as_dir in $PATH
19858 do
19859 IFS=$as_save_IFS
19860 case $as_dir in #(((
19861 '') as_dir=./ ;;
19862 */) ;;
19863 *) as_dir=$as_dir/ ;;
19864 esac
19865 for ac_exec_ext in '' $ac_executable_extensions; do
19866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19867 ac_cv_prog_ax_pthread_config="yes"
19868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19869 break 2
19870 fi
19871 done
19872 done
19873 IFS=$as_save_IFS
19874
19875 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19876 fi
19877 fi
19878 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19879 if test -n "$ax_pthread_config"; then
19880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19881 printf "%s\n" "$ax_pthread_config" >&6; }
19882 else
19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19884 printf "%s\n" "no" >&6; }
19885 fi
19886
19887
19888 if test "x$ax_pthread_config" = "xno"
19889 then :
19890 continue
19891 fi
19892 PTHREAD_CFLAGS="`pthread-config --cflags`"
19893 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19894 ;;
19895
19896 *)
19897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19898 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19899 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19900 ;;
19901 esac
19902
19903 ax_pthread_save_CFLAGS="$CFLAGS"
19904 ax_pthread_save_LIBS="$LIBS"
19905 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19906 LIBS="$PTHREAD_LIBS $LIBS"
19907
19908 # Check for various functions. We must include pthread.h,
19909 # since some functions may be macros. (On the Sequent, we
19910 # need a special flag -Kthread to make this header compile.)
19911 # We check for pthread_join because it is in -lpthread on IRIX
19912 # while pthread_create is in libc. We check for pthread_attr_init
19913 # due to DEC craziness with -lpthreads. We check for
19914 # pthread_cleanup_push because it is one of the few pthread
19915 # functions on Solaris that doesn't have a non-functional libc stub.
19916 # We try pthread_create on general principles.
19917
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920 #include <pthread.h>
19921 # if $ax_pthread_check_cond
19922 # error "$ax_pthread_check_macro must be defined"
19923 # endif
19924 static void *some_global = NULL;
19925 static void routine(void *a)
19926 {
19927 /* To avoid any unused-parameter or
19928 unused-but-set-parameter warning. */
19929 some_global = a;
19930 }
19931 static void *start_routine(void *a) { return a; }
19932 int
19933 main (void)
19934 {
19935 pthread_t th; pthread_attr_t attr;
19936 pthread_create(&th, 0, start_routine, 0);
19937 pthread_join(th, 0);
19938 pthread_attr_init(&attr);
19939 pthread_cleanup_push(routine, 0);
19940 pthread_cleanup_pop(0) /* ; */
19941 ;
19942 return 0;
19943 }
19944 _ACEOF
19945 if ac_fn_c_try_link "$LINENO"
19946 then :
19947 ax_pthread_ok=yes
19948 fi
19949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19950 conftest$ac_exeext conftest.$ac_ext
19951
19952 CFLAGS="$ax_pthread_save_CFLAGS"
19953 LIBS="$ax_pthread_save_LIBS"
19954
19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19956 printf "%s\n" "$ax_pthread_ok" >&6; }
19957 if test "x$ax_pthread_ok" = "xyes"
19958 then :
19959 break
19960 fi
19961
19962 PTHREAD_LIBS=""
19963 PTHREAD_CFLAGS=""
19964 done
19965 fi
19966
19967
19968 # Clang needs special handling, because older versions handle the -pthread
19969 # option in a rather... idiosyncratic way
19970
19971 if test "x$ax_pthread_clang" = "xyes"; then
19972
19973 # Clang takes -pthread; it has never supported any other flag
19974
19975 # (Note 1: This will need to be revisited if a system that Clang
19976 # supports has POSIX threads in a separate library. This tends not
19977 # to be the way of modern systems, but it's conceivable.)
19978
19979 # (Note 2: On some systems, notably Darwin, -pthread is not needed
19980 # to get POSIX threads support; the API is always present and
19981 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
19982 # -pthread does define _REENTRANT, and while the Darwin headers
19983 # ignore this macro, third-party headers might not.)
19984
19985 # However, older versions of Clang make a point of warning the user
19986 # that, in an invocation where only linking and no compilation is
19987 # taking place, the -pthread option has no effect ("argument unused
19988 # during compilation"). They expect -pthread to be passed in only
19989 # when source code is being compiled.
19990 #
19991 # Problem is, this is at odds with the way Automake and most other
19992 # C build frameworks function, which is that the same flags used in
19993 # compilation (CFLAGS) are also used in linking. Many systems
19994 # supported by AX_PTHREAD require exactly this for POSIX threads
19995 # support, and in fact it is often not straightforward to specify a
19996 # flag that is used only in the compilation phase and not in
19997 # linking. Such a scenario is extremely rare in practice.
19998 #
19999 # Even though use of the -pthread flag in linking would only print
20000 # a warning, this can be a nuisance for well-run software projects
20001 # that build with -Werror. So if the active version of Clang has
20002 # this misfeature, we search for an option to squash it.
20003
20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20005 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20006 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
20007 then :
20008 printf %s "(cached) " >&6
20009 else $as_nop
20010 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20011 # Create an alternate version of $ac_link that compiles and
20012 # links in two steps (.c -> .o, .o -> exe) instead of one
20013 # (.c -> exe), because the warning occurs only in the second
20014 # step
20015 ax_pthread_save_ac_link="$ac_link"
20016 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20017 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
20018 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20019 ax_pthread_save_CFLAGS="$CFLAGS"
20020 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20021 if test "x$ax_pthread_try" = "xunknown"
20022 then :
20023 break
20024 fi
20025 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20026 ac_link="$ax_pthread_save_ac_link"
20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20029 int main(void){return 0;}
20030 _ACEOF
20031 if ac_fn_c_try_link "$LINENO"
20032 then :
20033 ac_link="$ax_pthread_2step_ac_link"
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20036 int main(void){return 0;}
20037 _ACEOF
20038 if ac_fn_c_try_link "$LINENO"
20039 then :
20040 break
20041 fi
20042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20043 conftest$ac_exeext conftest.$ac_ext
20044
20045 fi
20046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20047 conftest$ac_exeext conftest.$ac_ext
20048 done
20049 ac_link="$ax_pthread_save_ac_link"
20050 CFLAGS="$ax_pthread_save_CFLAGS"
20051 if test "x$ax_pthread_try" = "x"
20052 then :
20053 ax_pthread_try=no
20054 fi
20055 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20056
20057 fi
20058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20059 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20060
20061 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20062 no | unknown) ;;
20063 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20064 esac
20065
20066 fi # $ax_pthread_clang = yes
20067
20068
20069
20070 # Various other checks:
20071 if test "x$ax_pthread_ok" = "xyes"; then
20072 ax_pthread_save_CFLAGS="$CFLAGS"
20073 ax_pthread_save_LIBS="$LIBS"
20074 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20075 LIBS="$PTHREAD_LIBS $LIBS"
20076
20077 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20079 printf %s "checking for joinable pthread attribute... " >&6; }
20080 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
20081 then :
20082 printf %s "(cached) " >&6
20083 else $as_nop
20084 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20085 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h. */
20088 #include <pthread.h>
20089 int
20090 main (void)
20091 {
20092 int attr = $ax_pthread_attr; return attr /* ; */
20093 ;
20094 return 0;
20095 }
20096 _ACEOF
20097 if ac_fn_c_try_link "$LINENO"
20098 then :
20099 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20100 fi
20101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20102 conftest$ac_exeext conftest.$ac_ext
20103 done
20104
20105 fi
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20107 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20108 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20109 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20110 test "x$ax_pthread_joinable_attr_defined" != "xyes"
20111 then :
20112
20113 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
20114
20115 ax_pthread_joinable_attr_defined=yes
20116
20117 fi
20118
20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20120 printf %s "checking whether more special flags are required for pthreads... " >&6; }
20121 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
20122 then :
20123 printf %s "(cached) " >&6
20124 else $as_nop
20125 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20126 case $target_os in
20127 solaris*)
20128 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20129 ;;
20130 esac
20131
20132 fi
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20134 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20135 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20136 test "x$ax_pthread_special_flags_added" != "xyes"
20137 then :
20138 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20139 ax_pthread_special_flags_added=yes
20140 fi
20141
20142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20143 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20144 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20145 then :
20146 printf %s "(cached) " >&6
20147 else $as_nop
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20150 #include <pthread.h>
20151 int
20152 main (void)
20153 {
20154 int i = PTHREAD_PRIO_INHERIT;
20155 return i;
20156 ;
20157 return 0;
20158 }
20159 _ACEOF
20160 if ac_fn_c_try_link "$LINENO"
20161 then :
20162 ax_cv_PTHREAD_PRIO_INHERIT=yes
20163 else $as_nop
20164 ax_cv_PTHREAD_PRIO_INHERIT=no
20165 fi
20166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20167 conftest$ac_exeext conftest.$ac_ext
20168
20169 fi
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20171 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20172 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20173 test "x$ax_pthread_prio_inherit_defined" != "xyes"
20174 then :
20175
20176 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20177
20178 ax_pthread_prio_inherit_defined=yes
20179
20180 fi
20181
20182 CFLAGS="$ax_pthread_save_CFLAGS"
20183 LIBS="$ax_pthread_save_LIBS"
20184
20185 # More AIX lossage: compile with *_r variant
20186 if test "x$GCC" != "xyes"; then
20187 case $target_os in
20188 aix*)
20189 case "x/$CC" in #(
20190 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20191 #handle absolute path differently from PATH based program lookup
20192 case "x$CC" in #(
20193 x/*) :
20194
20195 if as_fn_executable_p ${CC}_r
20196 then :
20197 PTHREAD_CC="${CC}_r"
20198 fi
20199 if test "x${CXX}" != "x"
20200 then :
20201 if as_fn_executable_p ${CXX}_r
20202 then :
20203 PTHREAD_CXX="${CXX}_r"
20204 fi
20205 fi
20206 ;; #(
20207 *) :
20208
20209 for ac_prog in ${CC}_r
20210 do
20211 # Extract the first word of "$ac_prog", so it can be a program name with args.
20212 set dummy $ac_prog; ac_word=$2
20213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20214 printf %s "checking for $ac_word... " >&6; }
20215 if test ${ac_cv_prog_PTHREAD_CC+y}
20216 then :
20217 printf %s "(cached) " >&6
20218 else $as_nop
20219 if test -n "$PTHREAD_CC"; then
20220 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20221 else
20222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223 for as_dir in $PATH
20224 do
20225 IFS=$as_save_IFS
20226 case $as_dir in #(((
20227 '') as_dir=./ ;;
20228 */) ;;
20229 *) as_dir=$as_dir/ ;;
20230 esac
20231 for ac_exec_ext in '' $ac_executable_extensions; do
20232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20233 ac_cv_prog_PTHREAD_CC="$ac_prog"
20234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20235 break 2
20236 fi
20237 done
20238 done
20239 IFS=$as_save_IFS
20240
20241 fi
20242 fi
20243 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20244 if test -n "$PTHREAD_CC"; then
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20246 printf "%s\n" "$PTHREAD_CC" >&6; }
20247 else
20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249 printf "%s\n" "no" >&6; }
20250 fi
20251
20252
20253 test -n "$PTHREAD_CC" && break
20254 done
20255 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20256
20257 if test "x${CXX}" != "x"
20258 then :
20259 for ac_prog in ${CXX}_r
20260 do
20261 # Extract the first word of "$ac_prog", so it can be a program name with args.
20262 set dummy $ac_prog; ac_word=$2
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20264 printf %s "checking for $ac_word... " >&6; }
20265 if test ${ac_cv_prog_PTHREAD_CXX+y}
20266 then :
20267 printf %s "(cached) " >&6
20268 else $as_nop
20269 if test -n "$PTHREAD_CXX"; then
20270 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
20271 else
20272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273 for as_dir in $PATH
20274 do
20275 IFS=$as_save_IFS
20276 case $as_dir in #(((
20277 '') as_dir=./ ;;
20278 */) ;;
20279 *) as_dir=$as_dir/ ;;
20280 esac
20281 for ac_exec_ext in '' $ac_executable_extensions; do
20282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20283 ac_cv_prog_PTHREAD_CXX="$ac_prog"
20284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20285 break 2
20286 fi
20287 done
20288 done
20289 IFS=$as_save_IFS
20290
20291 fi
20292 fi
20293 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
20294 if test -n "$PTHREAD_CXX"; then
20295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
20296 printf "%s\n" "$PTHREAD_CXX" >&6; }
20297 else
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20299 printf "%s\n" "no" >&6; }
20300 fi
20301
20302
20303 test -n "$PTHREAD_CXX" && break
20304 done
20305 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
20306
20307 fi
20308
20309 ;;
20310 esac
20311 ;; #(
20312 *) :
20313 ;;
20314 esac
20315 ;;
20316 esac
20317 fi
20318 fi
20319
20320 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20321 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
20322
20323
20324
20325
20326
20327
20328 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20329 if test "x$ax_pthread_ok" = "xyes"; then
20330
20331 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20332
20333 :
20334 else
20335 ax_pthread_ok=no
20336
20337 fi
20338 ac_ext=c
20339 ac_cpp='$CPP $CPPFLAGS'
20340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20343
20344
20345
20346 LIBS="$PTHREAD_LIBS $LIBS"
20347 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20348 CC="$PTHREAD_CC"
20349
20350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
20351 printf %s "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20354 #include <pthread.h>
20355 int
20356 main (void)
20357 {
20358 (void)pthread_mutexattr_settype(&(pthread_mutexattr_t){ NULL }, PTHREAD_MUTEX_ADAPTIVE_NP);
20359 ;
20360 return 0;
20361 }
20362 _ACEOF
20363 if ac_fn_c_try_compile "$LINENO"
20364 then :
20365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20366 printf "%s\n" "yes" >&6; }
20367
20368 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
20369
20370 else $as_nop
20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20372 printf "%s\n" "no" >&6; }
20373 fi
20374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20375
20376 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
20377 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes
20378 then :
20379 printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
20380
20381 fi
20382 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
20383 if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes
20384 then :
20385 printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
20386
20387 fi
20388 ac_fn_c_check_func "$LINENO" "pthread_barrier_init" "ac_cv_func_pthread_barrier_init"
20389 if test "x$ac_cv_func_pthread_barrier_init" = xyes
20390 then :
20391 printf "%s\n" "#define HAVE_PTHREAD_BARRIER_INIT 1" >>confdefs.h
20392
20393 fi
20394 ac_fn_c_check_func "$LINENO" "pthread_spin_init" "ac_cv_func_pthread_spin_init"
20395 if test "x$ac_cv_func_pthread_spin_init" = xyes
20396 then :
20397 printf "%s\n" "#define HAVE_PTHREAD_SPIN_INIT 1" >>confdefs.h
20398
20399 fi
20400
20401
20402 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
20403 if test "x$ac_cv_header_sched_h" = xyes
20404 then :
20405 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
20406
20407 fi
20408
20409
20410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
20411 printf %s "checking for library containing sched_yield... " >&6; }
20412 if test ${ac_cv_search_sched_yield+y}
20413 then :
20414 printf %s "(cached) " >&6
20415 else $as_nop
20416 ac_func_search_save_LIBS=$LIBS
20417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h. */
20419
20420 /* Override any GCC internal prototype to avoid an error.
20421 Use char because int might match the return type of a GCC
20422 builtin and then its argument prototype would still apply. */
20423 char sched_yield ();
20424 int
20425 main (void)
20426 {
20427 return sched_yield ();
20428 ;
20429 return 0;
20430 }
20431 _ACEOF
20432 for ac_lib in '' rt
20433 do
20434 if test -z "$ac_lib"; then
20435 ac_res="none required"
20436 else
20437 ac_res=-l$ac_lib
20438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20439 fi
20440 if ac_fn_c_try_link "$LINENO"
20441 then :
20442 ac_cv_search_sched_yield=$ac_res
20443 fi
20444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20445 conftest$ac_exeext
20446 if test ${ac_cv_search_sched_yield+y}
20447 then :
20448 break
20449 fi
20450 done
20451 if test ${ac_cv_search_sched_yield+y}
20452 then :
20453
20454 else $as_nop
20455 ac_cv_search_sched_yield=no
20456 fi
20457 rm conftest.$ac_ext
20458 LIBS=$ac_func_search_save_LIBS
20459 fi
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
20461 printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
20462 ac_res=$ac_cv_search_sched_yield
20463 if test "$ac_res" != no
20464 then :
20465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20466
20467 fi
20468
20469 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
20470 if test "x$ac_cv_func_sched_yield" = xyes
20471 then :
20472 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
20473
20474 fi
20475 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
20476 if test "x$ac_cv_func_pthread_yield" = xyes
20477 then :
20478 printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
20479
20480 fi
20481 ac_fn_c_check_func "$LINENO" "pthread_yield_np" "ac_cv_func_pthread_yield_np"
20482 if test "x$ac_cv_func_pthread_yield_np" = xyes
20483 then :
20484 printf "%s\n" "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h
20485
20486 fi
20487
20488
20489 # Look for functions relating to thread naming
20490 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
20491 if test "x$ac_cv_func_pthread_setname_np" = xyes
20492 then :
20493 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
20494
20495 fi
20496 ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
20497 if test "x$ac_cv_func_pthread_set_name_np" = xyes
20498 then :
20499 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
20500
20501 fi
20502
20503 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
20504 "
20505 if test "x$ac_cv_header_pthread_np_h" = xyes
20506 then :
20507 printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
20508
20509 fi
20510
20511
20512 # libuv
20513
20514 pkg_failed=no
20515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.37.0" >&5
20516 printf %s "checking for libuv >= 1.37.0... " >&6; }
20517
20518 if test -n "$LIBUV_CFLAGS"; then
20519 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
20520 elif test -n "$PKG_CONFIG"; then
20521 if test -n "$PKG_CONFIG" && \
20522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5
20523 ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5
20524 ac_status=$?
20525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20526 test $ac_status = 0; }; then
20527 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.37.0" 2>/dev/null`
20528 test "x$?" != "x0" && pkg_failed=yes
20529 else
20530 pkg_failed=yes
20531 fi
20532 else
20533 pkg_failed=untried
20534 fi
20535 if test -n "$LIBUV_LIBS"; then
20536 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
20537 elif test -n "$PKG_CONFIG"; then
20538 if test -n "$PKG_CONFIG" && \
20539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5
20540 ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5
20541 ac_status=$?
20542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543 test $ac_status = 0; }; then
20544 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.37.0" 2>/dev/null`
20545 test "x$?" != "x0" && pkg_failed=yes
20546 else
20547 pkg_failed=yes
20548 fi
20549 else
20550 pkg_failed=untried
20551 fi
20552
20553
20554
20555 if test $pkg_failed = yes; then
20556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557 printf "%s\n" "no" >&6; }
20558
20559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20560 _pkg_short_errors_supported=yes
20561 else
20562 _pkg_short_errors_supported=no
20563 fi
20564 if test $_pkg_short_errors_supported = yes; then
20565 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1`
20566 else
20567 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1`
20568 fi
20569 # Put the nasty error message in config.log where it belongs
20570 echo "$LIBUV_PKG_ERRORS" >&5
20571
20572
20573 pkg_failed=no
20574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.34.0 libuv < 1.35.0" >&5
20575 printf %s "checking for libuv >= 1.34.0 libuv < 1.35.0... " >&6; }
20576
20577 if test -n "$LIBUV_CFLAGS"; then
20578 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
20579 elif test -n "$PKG_CONFIG"; then
20580 if test -n "$PKG_CONFIG" && \
20581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5
20582 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5
20583 ac_status=$?
20584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20585 test $ac_status = 0; }; then
20586 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null`
20587 test "x$?" != "x0" && pkg_failed=yes
20588 else
20589 pkg_failed=yes
20590 fi
20591 else
20592 pkg_failed=untried
20593 fi
20594 if test -n "$LIBUV_LIBS"; then
20595 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
20596 elif test -n "$PKG_CONFIG"; then
20597 if test -n "$PKG_CONFIG" && \
20598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5
20599 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5
20600 ac_status=$?
20601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20602 test $ac_status = 0; }; then
20603 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null`
20604 test "x$?" != "x0" && pkg_failed=yes
20605 else
20606 pkg_failed=yes
20607 fi
20608 else
20609 pkg_failed=untried
20610 fi
20611
20612
20613
20614 if test $pkg_failed = yes; then
20615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20616 printf "%s\n" "no" >&6; }
20617
20618 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20619 _pkg_short_errors_supported=yes
20620 else
20621 _pkg_short_errors_supported=no
20622 fi
20623 if test $_pkg_short_errors_supported = yes; then
20624 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1`
20625 else
20626 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1`
20627 fi
20628 # Put the nasty error message in config.log where it belongs
20629 echo "$LIBUV_PKG_ERRORS" >&5
20630
20631 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20632 elif test $pkg_failed = untried; then
20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20634 printf "%s\n" "no" >&6; }
20635 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20636 else
20637 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
20638 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
20639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20640 printf "%s\n" "yes" >&6; }
20641
20642 fi
20643 elif test $pkg_failed = untried; then
20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20645 printf "%s\n" "no" >&6; }
20646
20647 pkg_failed=no
20648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.34.0 libuv < 1.35.0" >&5
20649 printf %s "checking for libuv >= 1.34.0 libuv < 1.35.0... " >&6; }
20650
20651 if test -n "$LIBUV_CFLAGS"; then
20652 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
20653 elif test -n "$PKG_CONFIG"; then
20654 if test -n "$PKG_CONFIG" && \
20655 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5
20656 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5
20657 ac_status=$?
20658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20659 test $ac_status = 0; }; then
20660 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null`
20661 test "x$?" != "x0" && pkg_failed=yes
20662 else
20663 pkg_failed=yes
20664 fi
20665 else
20666 pkg_failed=untried
20667 fi
20668 if test -n "$LIBUV_LIBS"; then
20669 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
20670 elif test -n "$PKG_CONFIG"; then
20671 if test -n "$PKG_CONFIG" && \
20672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5
20673 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5
20674 ac_status=$?
20675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20676 test $ac_status = 0; }; then
20677 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null`
20678 test "x$?" != "x0" && pkg_failed=yes
20679 else
20680 pkg_failed=yes
20681 fi
20682 else
20683 pkg_failed=untried
20684 fi
20685
20686
20687
20688 if test $pkg_failed = yes; then
20689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20690 printf "%s\n" "no" >&6; }
20691
20692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20693 _pkg_short_errors_supported=yes
20694 else
20695 _pkg_short_errors_supported=no
20696 fi
20697 if test $_pkg_short_errors_supported = yes; then
20698 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1`
20699 else
20700 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1`
20701 fi
20702 # Put the nasty error message in config.log where it belongs
20703 echo "$LIBUV_PKG_ERRORS" >&5
20704
20705 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20706 elif test $pkg_failed = untried; then
20707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20708 printf "%s\n" "no" >&6; }
20709 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20710 else
20711 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
20712 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20714 printf "%s\n" "yes" >&6; }
20715
20716 fi
20717 else
20718 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
20719 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
20720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20721 printf "%s\n" "yes" >&6; }
20722
20723 fi
20724
20725
20726 if test -n "$LIBUV_VERSION"; then
20727 pkg_cv_LIBUV_VERSION="$LIBUV_VERSION"
20728 elif test -n "$PKG_CONFIG"; then
20729 if test -n "$PKG_CONFIG" && \
20730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv\""; } >&5
20731 ($PKG_CONFIG --exists --print-errors "libuv") 2>&5
20732 ac_status=$?
20733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20734 test $ac_status = 0; }; then
20735 pkg_cv_LIBUV_VERSION=`$PKG_CONFIG --modversion "libuv" 2>/dev/null`
20736 test "x$?" != "x0" && pkg_failed=yes
20737 else
20738 pkg_failed=yes
20739 fi
20740 else
20741 pkg_failed=untried
20742 fi
20743 LIBUV_VERSION=$pkg_cv_LIBUV_VERSION
20744
20745 if test "x$LIBUV_VERSION" = x""
20746 then :
20747
20748 fi
20749
20750
20751
20752 CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
20753
20754
20755
20756 CFLAGS_libuv_ax_save_flags=$CFLAGS
20757
20758
20759
20760 CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
20761
20762
20763
20764 CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
20765
20766
20767
20768 ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
20769
20770
20771
20772 FCFLAGS_libuv_ax_save_flags=$FCFLAGS
20773
20774
20775
20776 FCLIBS_libuv_ax_save_flags=$FCLIBS
20777
20778
20779
20780 FFLAGS_libuv_ax_save_flags=$FFLAGS
20781
20782
20783
20784 FLIBS_libuv_ax_save_flags=$FLIBS
20785
20786
20787
20788 GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
20789
20790
20791
20792 JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
20793
20794
20795
20796 LDFLAGS_libuv_ax_save_flags=$LDFLAGS
20797
20798
20799
20800 LIBS_libuv_ax_save_flags=$LIBS
20801
20802
20803
20804 OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
20805
20806
20807
20808 OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
20809
20810
20811
20812 UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
20813
20814
20815
20816 VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
20817
20818
20819
20820 CFLAGS="$CFLAGS $LIBUV_CFLAGS"
20821 LIBS="$LIBS $LIBUV_LIBS"
20822
20823 # libuv recvmmsg support
20824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20825 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20826 if test ${ac_cv_c_undeclared_builtin_options+y}
20827 then :
20828 printf %s "(cached) " >&6
20829 else $as_nop
20830 ac_save_CFLAGS=$CFLAGS
20831 ac_cv_c_undeclared_builtin_options='cannot detect'
20832 for ac_arg in '' -fno-builtin; do
20833 CFLAGS="$ac_save_CFLAGS $ac_arg"
20834 # This test program should *not* compile successfully.
20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h. */
20837
20838 int
20839 main (void)
20840 {
20841 (void) strchr;
20842 ;
20843 return 0;
20844 }
20845 _ACEOF
20846 if ac_fn_c_try_compile "$LINENO"
20847 then :
20848
20849 else $as_nop
20850 # This test program should compile successfully.
20851 # No library function is consistently available on
20852 # freestanding implementations, so test against a dummy
20853 # declaration. Include always-available headers on the
20854 # off chance that they somehow elicit warnings.
20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856 /* end confdefs.h. */
20857 #include <float.h>
20858 #include <limits.h>
20859 #include <stdarg.h>
20860 #include <stddef.h>
20861 extern void ac_decl (int, char *);
20862
20863 int
20864 main (void)
20865 {
20866 (void) ac_decl (0, (char *) 0);
20867 (void) ac_decl;
20868
20869 ;
20870 return 0;
20871 }
20872 _ACEOF
20873 if ac_fn_c_try_compile "$LINENO"
20874 then :
20875 if test x"$ac_arg" = x
20876 then :
20877 ac_cv_c_undeclared_builtin_options='none needed'
20878 else $as_nop
20879 ac_cv_c_undeclared_builtin_options=$ac_arg
20880 fi
20881 break
20882 fi
20883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20886 done
20887 CFLAGS=$ac_save_CFLAGS
20888
20889 fi
20890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20891 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20892 case $ac_cv_c_undeclared_builtin_options in #(
20893 'cannot detect') :
20894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20895 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20896 as_fn_error $? "cannot make $CC report undeclared builtins
20897 See \`config.log' for more details" "$LINENO" 5; } ;; #(
20898 'none needed') :
20899 ac_c_undeclared_builtin_options='' ;; #(
20900 *) :
20901 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20902 esac
20903
20904 ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_FREE" "ac_cv_have_decl_UV_UDP_MMSG_FREE" "#include <uv.h>
20905 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20906 if test "x$ac_cv_have_decl_UV_UDP_MMSG_FREE" = xyes
20907 then :
20908 ac_have_decl=1
20909 else $as_nop
20910 ac_have_decl=0
20911 fi
20912 printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_FREE $ac_have_decl" >>confdefs.h
20913 ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_CHUNK" "ac_cv_have_decl_UV_UDP_MMSG_CHUNK" "#include <uv.h>
20914 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20915 if test "x$ac_cv_have_decl_UV_UDP_MMSG_CHUNK" = xyes
20916 then :
20917 ac_have_decl=1
20918 else $as_nop
20919 ac_have_decl=0
20920 fi
20921 printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_CHUNK $ac_have_decl" >>confdefs.h
20922
20923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct msghdr uses padding for alignment" >&5
20924 printf %s "checking whether struct msghdr uses padding for alignment... " >&6; }
20925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h. */
20927 #include <sys/socket.h>
20928 int
20929 main (void)
20930 {
20931 const struct msghdr h = { .__pad1 = 0, .__pad2 = 0 };
20932 ;
20933 return 0;
20934 }
20935 _ACEOF
20936 if ac_fn_c_try_compile "$LINENO"
20937 then :
20938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20939 printf "%s\n" "yes" >&6; }
20940
20941 printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG 0" >>confdefs.h
20942
20943 else $as_nop
20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 printf "%s\n" "no" >&6; }
20946 ac_fn_check_decl "$LINENO" "UV_UDP_RECVMMSG" "ac_cv_have_decl_UV_UDP_RECVMMSG" "#include <uv.h>
20947 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20948 if test "x$ac_cv_have_decl_UV_UDP_RECVMMSG" = xyes
20949 then :
20950 ac_have_decl=1
20951 else $as_nop
20952 ac_have_decl=0
20953 fi
20954 printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG $ac_have_decl" >>confdefs.h
20955
20956 fi
20957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20958
20959 # libuv recverr support
20960 ac_fn_check_decl "$LINENO" "UV_UDP_LINUX_RECVERR" "ac_cv_have_decl_UV_UDP_LINUX_RECVERR" "#include <uv.h>
20961 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20962 if test "x$ac_cv_have_decl_UV_UDP_LINUX_RECVERR" = xyes
20963 then :
20964 ac_have_decl=1
20965 else $as_nop
20966 ac_have_decl=0
20967 fi
20968 printf "%s\n" "#define HAVE_DECL_UV_UDP_LINUX_RECVERR $ac_have_decl" >>confdefs.h
20969
20970
20971
20972 CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags
20973
20974
20975 CFLAGS=$CFLAGS_libuv_ax_save_flags
20976
20977
20978 CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags
20979
20980
20981 CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags
20982
20983
20984 ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags
20985
20986
20987 FCFLAGS=$FCFLAGS_libuv_ax_save_flags
20988
20989
20990 FCLIBS=$FCLIBS_libuv_ax_save_flags
20991
20992
20993 FFLAGS=$FFLAGS_libuv_ax_save_flags
20994
20995
20996 FLIBS=$FLIBS_libuv_ax_save_flags
20997
20998
20999 GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags
21000
21001
21002 JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags
21003
21004
21005 LDFLAGS=$LDFLAGS_libuv_ax_save_flags
21006
21007
21008 LIBS=$LIBS_libuv_ax_save_flags
21009
21010
21011 OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags
21012
21013
21014 OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags
21015
21016
21017 UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags
21018
21019
21020 VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags
21021
21022
21023
21024
21025 # [pairwise: --enable-doh --with-libnghttp2=auto, --enable-doh --with-libnghttp2=yes, --disable-doh]
21026 # Check whether --enable-doh was given.
21027 if test ${enable_doh+y}
21028 then :
21029 enableval=$enable_doh;
21030 else $as_nop
21031 enable_doh=yes
21032 fi
21033
21034
21035 # [pairwise: skip]
21036
21037 # Check whether --with-libnghttp2 was given.
21038 if test ${with_libnghttp2+y}
21039 then :
21040 withval=$with_libnghttp2;
21041 else $as_nop
21042 with_libnghttp2="auto"
21043 fi
21044
21045
21046 if test "$enable_doh" = "yes"
21047 then :
21048 case $with_libnghttp2 in #(
21049 no) :
21050 as_fn_error $? "Use '--disable-doh' to disable DNS-over-HTTPS support" "$LINENO" 5 ;; #(
21051 auto|yes) :
21052
21053 pkg_failed=no
21054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 >= 1.6.0" >&5
21055 printf %s "checking for libnghttp2 >= 1.6.0... " >&6; }
21056
21057 if test -n "$LIBNGHTTP2_CFLAGS"; then
21058 pkg_cv_LIBNGHTTP2_CFLAGS="$LIBNGHTTP2_CFLAGS"
21059 elif test -n "$PKG_CONFIG"; then
21060 if test -n "$PKG_CONFIG" && \
21061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5
21062 ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5
21063 ac_status=$?
21064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21065 test $ac_status = 0; }; then
21066 pkg_cv_LIBNGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2 >= 1.6.0" 2>/dev/null`
21067 test "x$?" != "x0" && pkg_failed=yes
21068 else
21069 pkg_failed=yes
21070 fi
21071 else
21072 pkg_failed=untried
21073 fi
21074 if test -n "$LIBNGHTTP2_LIBS"; then
21075 pkg_cv_LIBNGHTTP2_LIBS="$LIBNGHTTP2_LIBS"
21076 elif test -n "$PKG_CONFIG"; then
21077 if test -n "$PKG_CONFIG" && \
21078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5
21079 ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5
21080 ac_status=$?
21081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21082 test $ac_status = 0; }; then
21083 pkg_cv_LIBNGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2 >= 1.6.0" 2>/dev/null`
21084 test "x$?" != "x0" && pkg_failed=yes
21085 else
21086 pkg_failed=yes
21087 fi
21088 else
21089 pkg_failed=untried
21090 fi
21091
21092
21093
21094 if test $pkg_failed = yes; then
21095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21096 printf "%s\n" "no" >&6; }
21097
21098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21099 _pkg_short_errors_supported=yes
21100 else
21101 _pkg_short_errors_supported=no
21102 fi
21103 if test $_pkg_short_errors_supported = yes; then
21104 LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1`
21105 else
21106 LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1`
21107 fi
21108 # Put the nasty error message in config.log where it belongs
21109 echo "$LIBNGHTTP2_PKG_ERRORS" >&5
21110
21111 as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5
21112 elif test $pkg_failed = untried; then
21113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21114 printf "%s\n" "no" >&6; }
21115 as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5
21116 else
21117 LIBNGHTTP2_CFLAGS=$pkg_cv_LIBNGHTTP2_CFLAGS
21118 LIBNGHTTP2_LIBS=$pkg_cv_LIBNGHTTP2_LIBS
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120 printf "%s\n" "yes" >&6; }
21121
21122 printf "%s\n" "#define HAVE_LIBNGHTTP2 1" >>confdefs.h
21123
21124 fi ;; #(
21125 *) :
21126 as_fn_error $? "Specifying libnghttp2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
21127 esac
21128 fi
21129
21130 if test -n "$LIBNGHTTP2_LIBS"; then
21131 HAVE_LIBNGHTTP2_TRUE=
21132 HAVE_LIBNGHTTP2_FALSE='#'
21133 else
21134 HAVE_LIBNGHTTP2_TRUE='#'
21135 HAVE_LIBNGHTTP2_FALSE=
21136 fi
21137
21138
21139
21140 #
21141 # flockfile is usually provided by pthreads
21142 #
21143 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
21144 if test "x$ac_cv_func_flockfile" = xyes
21145 then :
21146 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
21147
21148 fi
21149 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
21150 if test "x$ac_cv_func_getc_unlocked" = xyes
21151 then :
21152 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
21153
21154 fi
21155
21156
21157 #
21158 # Look for sysconf or other ways to allow detection of the number of processors.
21159 #
21160 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
21161 if test "x$ac_cv_func_sysconf" = xyes
21162 then :
21163 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
21164
21165 fi
21166
21167 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
21168 if test "x$ac_cv_func_sysconf" = xyes
21169 then :
21170 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
21171
21172 fi
21173 ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity"
21174 if test "x$ac_cv_func_sched_getaffinity" = xyes
21175 then :
21176 printf "%s\n" "#define HAVE_SCHED_GETAFFINITY 1" >>confdefs.h
21177
21178 fi
21179 ac_fn_c_check_func "$LINENO" "cpuset_getaffinity" "ac_cv_func_cpuset_getaffinity"
21180 if test "x$ac_cv_func_cpuset_getaffinity" = xyes
21181 then :
21182 printf "%s\n" "#define HAVE_CPUSET_GETAFFINITY 1" >>confdefs.h
21183
21184 fi
21185
21186 ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default
21187 #ifdef HAVE_SYS_PARAM_H
21188 # include <sys/param.h>
21189 #endif
21190
21191 "
21192 if test "x$ac_cv_header_sys_cpuset_h" = xyes
21193 then :
21194 printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h
21195
21196 fi
21197
21198
21199 #
21200 # Do we want to use pthread rwlock?
21201 #
21202 # [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock]
21203 # Check whether --enable-pthread_rwlock was given.
21204 if test ${enable_pthread_rwlock+y}
21205 then :
21206 enableval=$enable_pthread_rwlock;
21207 else $as_nop
21208 enable_pthread_rwlock=no
21209 fi
21210
21211
21212 if test "$enable_pthread_rwlock" = "yes"
21213 then :
21214
21215 for ac_func in pthread_rwlock_rdlock
21216 do :
21217 ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
21218 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes
21219 then :
21220 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK 1" >>confdefs.h
21221
21222 else $as_nop
21223 as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
21224 fi
21225
21226 done
21227
21228 printf "%s\n" "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
21229
21230
21231 fi
21232 if test "$enable_pthread_rwlock" != "yes"; then
21233 USE_ISC_RWLOCK_TRUE=
21234 USE_ISC_RWLOCK_FALSE='#'
21235 else
21236 USE_ISC_RWLOCK_TRUE='#'
21237 USE_ISC_RWLOCK_FALSE=
21238 fi
21239
21240
21241 CRYPTO=OpenSSL
21242
21243 #
21244 # OpenSSL/LibreSSL is mandatory
21245 #
21246
21247 pkg_failed=no
21248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5
21249 printf %s "checking for libssl libcrypto... " >&6; }
21250
21251 if test -n "$OPENSSL_CFLAGS"; then
21252 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
21253 elif test -n "$PKG_CONFIG"; then
21254 if test -n "$PKG_CONFIG" && \
21255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
21256 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
21257 ac_status=$?
21258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21259 test $ac_status = 0; }; then
21260 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null`
21261 test "x$?" != "x0" && pkg_failed=yes
21262 else
21263 pkg_failed=yes
21264 fi
21265 else
21266 pkg_failed=untried
21267 fi
21268 if test -n "$OPENSSL_LIBS"; then
21269 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
21270 elif test -n "$PKG_CONFIG"; then
21271 if test -n "$PKG_CONFIG" && \
21272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
21273 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
21274 ac_status=$?
21275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21276 test $ac_status = 0; }; then
21277 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null`
21278 test "x$?" != "x0" && pkg_failed=yes
21279 else
21280 pkg_failed=yes
21281 fi
21282 else
21283 pkg_failed=untried
21284 fi
21285
21286
21287
21288 if test $pkg_failed = yes; then
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21290 printf "%s\n" "no" >&6; }
21291
21292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21293 _pkg_short_errors_supported=yes
21294 else
21295 _pkg_short_errors_supported=no
21296 fi
21297 if test $_pkg_short_errors_supported = yes; then
21298 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1`
21299 else
21300 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1`
21301 fi
21302 # Put the nasty error message in config.log where it belongs
21303 echo "$OPENSSL_PKG_ERRORS" >&5
21304
21305
21306 found=false
21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
21308 printf %s "checking for a sed that does not truncate output... " >&6; }
21309 if test ${ac_cv_path_SED+y}
21310 then :
21311 printf %s "(cached) " >&6
21312 else $as_nop
21313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21314 for ac_i in 1 2 3 4 5 6 7; do
21315 ac_script="$ac_script$as_nl$ac_script"
21316 done
21317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
21318 { ac_script=; unset ac_script;}
21319 if test -z "$SED"; then
21320 ac_path_SED_found=false
21321 # Loop through the user's path and test for each of PROGNAME-LIST
21322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21323 for as_dir in $PATH
21324 do
21325 IFS=$as_save_IFS
21326 case $as_dir in #(((
21327 '') as_dir=./ ;;
21328 */) ;;
21329 *) as_dir=$as_dir/ ;;
21330 esac
21331 for ac_prog in sed gsed
21332 do
21333 for ac_exec_ext in '' $ac_executable_extensions; do
21334 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
21335 as_fn_executable_p "$ac_path_SED" || continue
21336 # Check for GNU ac_path_SED and select it if it is found.
21337 # Check for GNU $ac_path_SED
21338 case `"$ac_path_SED" --version 2>&1` in
21339 *GNU*)
21340 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21341 *)
21342 ac_count=0
21343 printf %s 0123456789 >"conftest.in"
21344 while :
21345 do
21346 cat "conftest.in" "conftest.in" >"conftest.tmp"
21347 mv "conftest.tmp" "conftest.in"
21348 cp "conftest.in" "conftest.nl"
21349 printf "%s\n" '' >> "conftest.nl"
21350 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21352 as_fn_arith $ac_count + 1 && ac_count=$as_val
21353 if test $ac_count -gt ${ac_path_SED_max-0}; then
21354 # Best one so far, save it but keep looking for a better one
21355 ac_cv_path_SED="$ac_path_SED"
21356 ac_path_SED_max=$ac_count
21357 fi
21358 # 10*(2^10) chars as input seems more than enough
21359 test $ac_count -gt 10 && break
21360 done
21361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21362 esac
21363
21364 $ac_path_SED_found && break 3
21365 done
21366 done
21367 done
21368 IFS=$as_save_IFS
21369 if test -z "$ac_cv_path_SED"; then
21370 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
21371 fi
21372 else
21373 ac_cv_path_SED=$SED
21374 fi
21375
21376 fi
21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
21378 printf "%s\n" "$ac_cv_path_SED" >&6; }
21379 SED="$ac_cv_path_SED"
21380 rm -f conftest.sed
21381
21382
21383 # Check whether --with-openssl was given.
21384 if test ${with_openssl+y}
21385 then :
21386 withval=$with_openssl;
21387 case "$withval" in
21388 "" | y | ye | yes | n | no)
21389 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
21390 ;;
21391 *) ssldirs="$withval"
21392 ;;
21393 esac
21394
21395 else $as_nop
21396
21397 # if pkg-config is installed and openssl has installed a .pc file,
21398 # then use that information and don't search ssldirs
21399 if test -n "$ac_tool_prefix"; then
21400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21403 printf %s "checking for $ac_word... " >&6; }
21404 if test ${ac_cv_prog_PKG_CONFIG+y}
21405 then :
21406 printf %s "(cached) " >&6
21407 else $as_nop
21408 if test -n "$PKG_CONFIG"; then
21409 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
21410 else
21411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21412 for as_dir in $PATH
21413 do
21414 IFS=$as_save_IFS
21415 case $as_dir in #(((
21416 '') as_dir=./ ;;
21417 */) ;;
21418 *) as_dir=$as_dir/ ;;
21419 esac
21420 for ac_exec_ext in '' $ac_executable_extensions; do
21421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21422 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
21423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21424 break 2
21425 fi
21426 done
21427 done
21428 IFS=$as_save_IFS
21429
21430 fi
21431 fi
21432 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
21433 if test -n "$PKG_CONFIG"; then
21434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21435 printf "%s\n" "$PKG_CONFIG" >&6; }
21436 else
21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21438 printf "%s\n" "no" >&6; }
21439 fi
21440
21441
21442 fi
21443 if test -z "$ac_cv_prog_PKG_CONFIG"; then
21444 ac_ct_PKG_CONFIG=$PKG_CONFIG
21445 # Extract the first word of "pkg-config", so it can be a program name with args.
21446 set dummy pkg-config; ac_word=$2
21447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21448 printf %s "checking for $ac_word... " >&6; }
21449 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
21450 then :
21451 printf %s "(cached) " >&6
21452 else $as_nop
21453 if test -n "$ac_ct_PKG_CONFIG"; then
21454 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
21455 else
21456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21457 for as_dir in $PATH
21458 do
21459 IFS=$as_save_IFS
21460 case $as_dir in #(((
21461 '') as_dir=./ ;;
21462 */) ;;
21463 *) as_dir=$as_dir/ ;;
21464 esac
21465 for ac_exec_ext in '' $ac_executable_extensions; do
21466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21467 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
21468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21469 break 2
21470 fi
21471 done
21472 done
21473 IFS=$as_save_IFS
21474
21475 fi
21476 fi
21477 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
21478 if test -n "$ac_ct_PKG_CONFIG"; then
21479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
21480 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
21481 else
21482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21483 printf "%s\n" "no" >&6; }
21484 fi
21485
21486 if test "x$ac_ct_PKG_CONFIG" = x; then
21487 PKG_CONFIG=""
21488 else
21489 case $cross_compiling:$ac_tool_warned in
21490 yes:)
21491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21493 ac_tool_warned=yes ;;
21494 esac
21495 PKG_CONFIG=$ac_ct_PKG_CONFIG
21496 fi
21497 else
21498 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
21499 fi
21500
21501 if test x"$PKG_CONFIG" != x""; then
21502 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
21503 if test $? = 0; then
21504 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
21505 OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
21506 OPENSSL_VERSION=`$PKG_CONFIG openssl --modversion 2>/dev/null`
21507 found=true
21508 fi
21509 fi
21510
21511 # no such luck; use some default ssldirs
21512 if ! $found; then
21513 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
21514 fi
21515
21516
21517 fi
21518
21519
21520
21521 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
21522 # an 'openssl' subdirectory
21523
21524 if ! $found; then
21525 OPENSSL_CFLAGS=
21526 for ssldir in $ssldirs; do
21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
21528 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
21529 if test -f "$ssldir/include/openssl/ssl.h"; then
21530 OPENSSL_CFLAGS="-I$ssldir/include"
21531 OPENSSL_LDFLAGS="-L$ssldir/lib"
21532 OPENSSL_LIBS="-lssl -lcrypto"
21533 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_STR^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h`
21534 if test -z "$OPENSSL_VERSION"; then
21535 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_TEXT^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h`
21536 fi
21537 found=true
21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21539 printf "%s\n" "yes" >&6; }
21540 break
21541 else
21542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543 printf "%s\n" "no" >&6; }
21544 fi
21545 done
21546
21547 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
21548 # it will just work!
21549 fi
21550
21551 # try the preprocessor and linker with our new flags,
21552 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
21553
21554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
21555 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
21556 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
21557 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5
21558
21559 save_LIBS="$LIBS"
21560 save_LDFLAGS="$LDFLAGS"
21561 save_CPPFLAGS="$CPPFLAGS"
21562 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
21563 LIBS="$OPENSSL_LIBS $LIBS"
21564 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566 /* end confdefs.h. */
21567 #include <openssl/ssl.h>
21568 int
21569 main (void)
21570 {
21571 SSL_new(NULL)
21572 ;
21573 return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"
21577 then :
21578
21579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21580 printf "%s\n" "yes" >&6; }
21581 :
21582
21583 else $as_nop
21584
21585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21586 printf "%s\n" "no" >&6; }
21587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21588 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21589 as_fn_error $? "OpenSSL/LibreSSL not found
21590 See \`config.log' for more details" "$LINENO" 5; }
21591
21592 fi
21593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21594 conftest$ac_exeext conftest.$ac_ext
21595 CPPFLAGS="$save_CPPFLAGS"
21596 LDFLAGS="$save_LDFLAGS"
21597 LIBS="$save_LIBS"
21598
21599
21600
21601
21602
21603
21604 elif test $pkg_failed = untried; then
21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21606 printf "%s\n" "no" >&6; }
21607
21608 found=false
21609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
21610 printf %s "checking for a sed that does not truncate output... " >&6; }
21611 if test ${ac_cv_path_SED+y}
21612 then :
21613 printf %s "(cached) " >&6
21614 else $as_nop
21615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21616 for ac_i in 1 2 3 4 5 6 7; do
21617 ac_script="$ac_script$as_nl$ac_script"
21618 done
21619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
21620 { ac_script=; unset ac_script;}
21621 if test -z "$SED"; then
21622 ac_path_SED_found=false
21623 # Loop through the user's path and test for each of PROGNAME-LIST
21624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21625 for as_dir in $PATH
21626 do
21627 IFS=$as_save_IFS
21628 case $as_dir in #(((
21629 '') as_dir=./ ;;
21630 */) ;;
21631 *) as_dir=$as_dir/ ;;
21632 esac
21633 for ac_prog in sed gsed
21634 do
21635 for ac_exec_ext in '' $ac_executable_extensions; do
21636 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
21637 as_fn_executable_p "$ac_path_SED" || continue
21638 # Check for GNU ac_path_SED and select it if it is found.
21639 # Check for GNU $ac_path_SED
21640 case `"$ac_path_SED" --version 2>&1` in
21641 *GNU*)
21642 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21643 *)
21644 ac_count=0
21645 printf %s 0123456789 >"conftest.in"
21646 while :
21647 do
21648 cat "conftest.in" "conftest.in" >"conftest.tmp"
21649 mv "conftest.tmp" "conftest.in"
21650 cp "conftest.in" "conftest.nl"
21651 printf "%s\n" '' >> "conftest.nl"
21652 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21654 as_fn_arith $ac_count + 1 && ac_count=$as_val
21655 if test $ac_count -gt ${ac_path_SED_max-0}; then
21656 # Best one so far, save it but keep looking for a better one
21657 ac_cv_path_SED="$ac_path_SED"
21658 ac_path_SED_max=$ac_count
21659 fi
21660 # 10*(2^10) chars as input seems more than enough
21661 test $ac_count -gt 10 && break
21662 done
21663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21664 esac
21665
21666 $ac_path_SED_found && break 3
21667 done
21668 done
21669 done
21670 IFS=$as_save_IFS
21671 if test -z "$ac_cv_path_SED"; then
21672 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
21673 fi
21674 else
21675 ac_cv_path_SED=$SED
21676 fi
21677
21678 fi
21679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
21680 printf "%s\n" "$ac_cv_path_SED" >&6; }
21681 SED="$ac_cv_path_SED"
21682 rm -f conftest.sed
21683
21684
21685 # Check whether --with-openssl was given.
21686 if test ${with_openssl+y}
21687 then :
21688 withval=$with_openssl;
21689 case "$withval" in
21690 "" | y | ye | yes | n | no)
21691 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
21692 ;;
21693 *) ssldirs="$withval"
21694 ;;
21695 esac
21696
21697 else $as_nop
21698
21699 # if pkg-config is installed and openssl has installed a .pc file,
21700 # then use that information and don't search ssldirs
21701 if test -n "$ac_tool_prefix"; then
21702 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21703 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21705 printf %s "checking for $ac_word... " >&6; }
21706 if test ${ac_cv_prog_PKG_CONFIG+y}
21707 then :
21708 printf %s "(cached) " >&6
21709 else $as_nop
21710 if test -n "$PKG_CONFIG"; then
21711 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
21712 else
21713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21714 for as_dir in $PATH
21715 do
21716 IFS=$as_save_IFS
21717 case $as_dir in #(((
21718 '') as_dir=./ ;;
21719 */) ;;
21720 *) as_dir=$as_dir/ ;;
21721 esac
21722 for ac_exec_ext in '' $ac_executable_extensions; do
21723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21724 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
21725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21726 break 2
21727 fi
21728 done
21729 done
21730 IFS=$as_save_IFS
21731
21732 fi
21733 fi
21734 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
21735 if test -n "$PKG_CONFIG"; then
21736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21737 printf "%s\n" "$PKG_CONFIG" >&6; }
21738 else
21739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21740 printf "%s\n" "no" >&6; }
21741 fi
21742
21743
21744 fi
21745 if test -z "$ac_cv_prog_PKG_CONFIG"; then
21746 ac_ct_PKG_CONFIG=$PKG_CONFIG
21747 # Extract the first word of "pkg-config", so it can be a program name with args.
21748 set dummy pkg-config; ac_word=$2
21749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21750 printf %s "checking for $ac_word... " >&6; }
21751 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
21752 then :
21753 printf %s "(cached) " >&6
21754 else $as_nop
21755 if test -n "$ac_ct_PKG_CONFIG"; then
21756 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
21757 else
21758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21759 for as_dir in $PATH
21760 do
21761 IFS=$as_save_IFS
21762 case $as_dir in #(((
21763 '') as_dir=./ ;;
21764 */) ;;
21765 *) as_dir=$as_dir/ ;;
21766 esac
21767 for ac_exec_ext in '' $ac_executable_extensions; do
21768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21769 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
21770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21771 break 2
21772 fi
21773 done
21774 done
21775 IFS=$as_save_IFS
21776
21777 fi
21778 fi
21779 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
21780 if test -n "$ac_ct_PKG_CONFIG"; then
21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
21782 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
21783 else
21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21785 printf "%s\n" "no" >&6; }
21786 fi
21787
21788 if test "x$ac_ct_PKG_CONFIG" = x; then
21789 PKG_CONFIG=""
21790 else
21791 case $cross_compiling:$ac_tool_warned in
21792 yes:)
21793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21795 ac_tool_warned=yes ;;
21796 esac
21797 PKG_CONFIG=$ac_ct_PKG_CONFIG
21798 fi
21799 else
21800 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
21801 fi
21802
21803 if test x"$PKG_CONFIG" != x""; then
21804 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
21805 if test $? = 0; then
21806 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
21807 OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
21808 OPENSSL_VERSION=`$PKG_CONFIG openssl --modversion 2>/dev/null`
21809 found=true
21810 fi
21811 fi
21812
21813 # no such luck; use some default ssldirs
21814 if ! $found; then
21815 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
21816 fi
21817
21818
21819 fi
21820
21821
21822
21823 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
21824 # an 'openssl' subdirectory
21825
21826 if ! $found; then
21827 OPENSSL_CFLAGS=
21828 for ssldir in $ssldirs; do
21829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
21830 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
21831 if test -f "$ssldir/include/openssl/ssl.h"; then
21832 OPENSSL_CFLAGS="-I$ssldir/include"
21833 OPENSSL_LDFLAGS="-L$ssldir/lib"
21834 OPENSSL_LIBS="-lssl -lcrypto"
21835 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_STR^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h`
21836 if test -z "$OPENSSL_VERSION"; then
21837 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_TEXT^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h`
21838 fi
21839 found=true
21840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21841 printf "%s\n" "yes" >&6; }
21842 break
21843 else
21844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 printf "%s\n" "no" >&6; }
21846 fi
21847 done
21848
21849 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
21850 # it will just work!
21851 fi
21852
21853 # try the preprocessor and linker with our new flags,
21854 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
21855
21856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
21857 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
21858 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
21859 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5
21860
21861 save_LIBS="$LIBS"
21862 save_LDFLAGS="$LDFLAGS"
21863 save_CPPFLAGS="$CPPFLAGS"
21864 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
21865 LIBS="$OPENSSL_LIBS $LIBS"
21866 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
21867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21869 #include <openssl/ssl.h>
21870 int
21871 main (void)
21872 {
21873 SSL_new(NULL)
21874 ;
21875 return 0;
21876 }
21877 _ACEOF
21878 if ac_fn_c_try_link "$LINENO"
21879 then :
21880
21881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21882 printf "%s\n" "yes" >&6; }
21883 :
21884
21885 else $as_nop
21886
21887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21888 printf "%s\n" "no" >&6; }
21889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21890 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21891 as_fn_error $? "OpenSSL/LibreSSL not found
21892 See \`config.log' for more details" "$LINENO" 5; }
21893
21894 fi
21895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21896 conftest$ac_exeext conftest.$ac_ext
21897 CPPFLAGS="$save_CPPFLAGS"
21898 LDFLAGS="$save_LDFLAGS"
21899 LIBS="$save_LIBS"
21900
21901
21902
21903
21904
21905
21906 else
21907 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
21908 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
21909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21910 printf "%s\n" "yes" >&6; }
21911
21912 if test -n "$OPENSSL_VERSION"; then
21913 pkg_cv_OPENSSL_VERSION="$OPENSSL_VERSION"
21914 elif test -n "$PKG_CONFIG"; then
21915 if test -n "$PKG_CONFIG" && \
21916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21917 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21918 ac_status=$?
21919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21920 test $ac_status = 0; }; then
21921 pkg_cv_OPENSSL_VERSION=`$PKG_CONFIG --modversion "openssl" 2>/dev/null`
21922 test "x$?" != "x0" && pkg_failed=yes
21923 else
21924 pkg_failed=yes
21925 fi
21926 else
21927 pkg_failed=untried
21928 fi
21929 OPENSSL_VERSION=$pkg_cv_OPENSSL_VERSION
21930
21931 if test "x$OPENSSL_VERSION" = x""
21932 then :
21933
21934 fi
21935 fi
21936
21937
21938
21939 CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
21940
21941
21942
21943 CFLAGS_openssl_ax_save_flags=$CFLAGS
21944
21945
21946
21947 CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
21948
21949
21950
21951 CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
21952
21953
21954
21955 ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
21956
21957
21958
21959 FCFLAGS_openssl_ax_save_flags=$FCFLAGS
21960
21961
21962
21963 FCLIBS_openssl_ax_save_flags=$FCLIBS
21964
21965
21966
21967 FFLAGS_openssl_ax_save_flags=$FFLAGS
21968
21969
21970
21971 FLIBS_openssl_ax_save_flags=$FLIBS
21972
21973
21974
21975 GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
21976
21977
21978
21979 JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
21980
21981
21982
21983 LDFLAGS_openssl_ax_save_flags=$LDFLAGS
21984
21985
21986
21987 LIBS_openssl_ax_save_flags=$LIBS
21988
21989
21990
21991 OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
21992
21993
21994
21995 OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
21996
21997
21998
21999 UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
22000
22001
22002
22003 VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
22004
22005
22006
22007
22008 CFLAGS="$OPENSSL_CFLAGS $CFLAGS"
22009 LIBS="$OPENSSL_LIBS $LIBS"
22010
22011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5
22012 printf %s "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; }
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h. */
22015 #include <openssl/opensslv.h>
22016 int
22017 main (void)
22018 {
22019 #if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\
22020 (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL))
22021 #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required
22022 #endif
22023
22024 ;
22025 return 0;
22026 }
22027 _ACEOF
22028 if ac_fn_c_try_compile "$LINENO"
22029 then :
22030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22031 printf "%s\n" "yes" >&6; }
22032 else $as_nop
22033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22035 as_fn_error $? "not found
22036 See \`config.log' for more details" "$LINENO" 5; }
22037 fi
22038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22039
22040 #
22041 # Check for functions added in OpenSSL or LibreSSL
22042 #
22043
22044 ac_fn_c_check_func "$LINENO" "BIO_read_ex" "ac_cv_func_BIO_read_ex"
22045 if test "x$ac_cv_func_BIO_read_ex" = xyes
22046 then :
22047 printf "%s\n" "#define HAVE_BIO_READ_EX 1" >>confdefs.h
22048
22049 fi
22050 ac_fn_c_check_func "$LINENO" "BIO_write_ex" "ac_cv_func_BIO_write_ex"
22051 if test "x$ac_cv_func_BIO_write_ex" = xyes
22052 then :
22053 printf "%s\n" "#define HAVE_BIO_WRITE_EX 1" >>confdefs.h
22054
22055 fi
22056
22057 ac_fn_c_check_func "$LINENO" "BN_GENCB_new" "ac_cv_func_BN_GENCB_new"
22058 if test "x$ac_cv_func_BN_GENCB_new" = xyes
22059 then :
22060 printf "%s\n" "#define HAVE_BN_GENCB_NEW 1" >>confdefs.h
22061
22062 fi
22063
22064 ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
22065 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes
22066 then :
22067 printf "%s\n" "#define HAVE_CRYPTO_ZALLOC 1" >>confdefs.h
22068
22069 fi
22070
22071 ac_fn_c_check_func "$LINENO" "ERR_get_error_all" "ac_cv_func_ERR_get_error_all"
22072 if test "x$ac_cv_func_ERR_get_error_all" = xyes
22073 then :
22074 printf "%s\n" "#define HAVE_ERR_GET_ERROR_ALL 1" >>confdefs.h
22075
22076 fi
22077
22078 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new"
22079 if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes
22080 then :
22081 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h
22082
22083 fi
22084 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_free" "ac_cv_func_EVP_CIPHER_CTX_free"
22085 if test "x$ac_cv_func_EVP_CIPHER_CTX_free" = xyes
22086 then :
22087 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_FREE 1" >>confdefs.h
22088
22089 fi
22090
22091 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
22092 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
22093 then :
22094 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
22095
22096 fi
22097 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_free" "ac_cv_func_EVP_MD_CTX_free"
22098 if test "x$ac_cv_func_EVP_MD_CTX_free" = xyes
22099 then :
22100 printf "%s\n" "#define HAVE_EVP_MD_CTX_FREE 1" >>confdefs.h
22101
22102 fi
22103 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_reset" "ac_cv_func_EVP_MD_CTX_reset"
22104 if test "x$ac_cv_func_EVP_MD_CTX_reset" = xyes
22105 then :
22106 printf "%s\n" "#define HAVE_EVP_MD_CTX_RESET 1" >>confdefs.h
22107
22108 fi
22109 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_get0_md" "ac_cv_func_EVP_MD_CTX_get0_md"
22110 if test "x$ac_cv_func_EVP_MD_CTX_get0_md" = xyes
22111 then :
22112 printf "%s\n" "#define HAVE_EVP_MD_CTX_GET0_MD 1" >>confdefs.h
22113
22114 fi
22115
22116 ac_fn_c_check_func "$LINENO" "EVP_PKEY_new_raw_private_key" "ac_cv_func_EVP_PKEY_new_raw_private_key"
22117 if test "x$ac_cv_func_EVP_PKEY_new_raw_private_key" = xyes
22118 then :
22119 printf "%s\n" "#define HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY 1" >>confdefs.h
22120
22121 fi
22122 ac_fn_c_check_func "$LINENO" "EVP_PKEY_eq" "ac_cv_func_EVP_PKEY_eq"
22123 if test "x$ac_cv_func_EVP_PKEY_eq" = xyes
22124 then :
22125 printf "%s\n" "#define HAVE_EVP_PKEY_EQ 1" >>confdefs.h
22126
22127 fi
22128
22129 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
22130 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
22131 then :
22132 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
22133
22134 fi
22135 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
22136 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
22137 then :
22138 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
22139
22140 fi
22141 ac_fn_c_check_func "$LINENO" "OPENSSL_cleanup" "ac_cv_func_OPENSSL_cleanup"
22142 if test "x$ac_cv_func_OPENSSL_cleanup" = xyes
22143 then :
22144 printf "%s\n" "#define HAVE_OPENSSL_CLEANUP 1" >>confdefs.h
22145
22146 fi
22147
22148 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_keylog_callback" "ac_cv_func_SSL_CTX_set_keylog_callback"
22149 if test "x$ac_cv_func_SSL_CTX_set_keylog_callback" = xyes
22150 then :
22151 printf "%s\n" "#define HAVE_SSL_CTX_SET_KEYLOG_CALLBACK 1" >>confdefs.h
22152
22153 fi
22154
22155 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version"
22156 if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes
22157 then :
22158 printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h
22159
22160 fi
22161
22162 ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref"
22163 if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes
22164 then :
22165 printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h
22166
22167 fi
22168
22169 ac_fn_c_check_func "$LINENO" "SSL_read_ex" "ac_cv_func_SSL_read_ex"
22170 if test "x$ac_cv_func_SSL_read_ex" = xyes
22171 then :
22172 printf "%s\n" "#define HAVE_SSL_READ_EX 1" >>confdefs.h
22173
22174 fi
22175 ac_fn_c_check_func "$LINENO" "SSL_peek_ex" "ac_cv_func_SSL_peek_ex"
22176 if test "x$ac_cv_func_SSL_peek_ex" = xyes
22177 then :
22178 printf "%s\n" "#define HAVE_SSL_PEEK_EX 1" >>confdefs.h
22179
22180 fi
22181 ac_fn_c_check_func "$LINENO" "SSL_write_ex" "ac_cv_func_SSL_write_ex"
22182 if test "x$ac_cv_func_SSL_write_ex" = xyes
22183 then :
22184 printf "%s\n" "#define HAVE_SSL_WRITE_EX 1" >>confdefs.h
22185
22186 fi
22187
22188 ac_fn_c_check_func "$LINENO" "SSL_CTX_set1_cert_store" "ac_cv_func_SSL_CTX_set1_cert_store"
22189 if test "x$ac_cv_func_SSL_CTX_set1_cert_store" = xyes
22190 then :
22191 printf "%s\n" "#define HAVE_SSL_CTX_SET1_CERT_STORE 1" >>confdefs.h
22192
22193 fi
22194 ac_fn_c_check_func "$LINENO" "X509_STORE_up_ref" "ac_cv_func_X509_STORE_up_ref"
22195 if test "x$ac_cv_func_X509_STORE_up_ref" = xyes
22196 then :
22197 printf "%s\n" "#define HAVE_X509_STORE_UP_REF 1" >>confdefs.h
22198
22199 fi
22200
22201 ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref"
22202 if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes
22203 then :
22204 printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h
22205
22206 fi
22207
22208 ac_fn_c_check_func "$LINENO" "SSL_SESSION_is_resumable" "ac_cv_func_SSL_SESSION_is_resumable"
22209 if test "x$ac_cv_func_SSL_SESSION_is_resumable" = xyes
22210 then :
22211 printf "%s\n" "#define HAVE_SSL_SESSION_IS_RESUMABLE 1" >>confdefs.h
22212
22213 fi
22214
22215 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites"
22216 if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes
22217 then :
22218 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h
22219
22220 fi
22221
22222
22223 #
22224 # Check for algorithm support in OpenSSL
22225 #
22226
22227
22228 for ac_func in EVP_DigestSignInit EVP_DigestVerifyInit
22229 do :
22230 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
22231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22232 if eval test \"x\$"$as_ac_var"\" = x"yes"
22233 then :
22234 cat >>confdefs.h <<_ACEOF
22235 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
22236 _ACEOF
22237 :
22238 else $as_nop
22239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22241 as_fn_error $? "EVP_DigestSignInit/EVP_DigestVerifyInit support in OpenSSL is mandatory.
22242 See \`config.log' for more details" "$LINENO" 5; }
22243 fi
22244
22245 done
22246
22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
22248 printf %s "checking for ECDSA P-256 support... " >&6; }
22249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22251 #include <openssl/evp.h>
22252 int
22253 main (void)
22254 {
22255 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_X9_62_prime256v1, NULL);
22256 ;
22257 return 0;
22258 }
22259 _ACEOF
22260 if ac_fn_c_try_compile "$LINENO"
22261 then :
22262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22263 printf "%s\n" "yes" >&6; }
22264 else $as_nop
22265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22266 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22267 as_fn_error $? "not found. ECDSA P-256 support in OpenSSL is mandatory.
22268 See \`config.log' for more details" "$LINENO" 5; }
22269 fi
22270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22271
22272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
22273 printf %s "checking for ECDSA P-384 support... " >&6; }
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h. */
22276 #include <openssl/evp.h>
22277 int
22278 main (void)
22279 {
22280 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_secp384r1, NULL);
22281 ;
22282 return 0;
22283 }
22284 _ACEOF
22285 if ac_fn_c_try_compile "$LINENO"
22286 then :
22287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22288 printf "%s\n" "yes" >&6; }
22289 else $as_nop
22290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22291 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22292 as_fn_error $? "not found. ECDSA P-384 support in OpenSSL is mandatory.
22293 See \`config.log' for more details" "$LINENO" 5; }
22294 fi
22295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22296
22297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
22298 printf %s "checking for Ed25519 support... " >&6; }
22299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22301 #include <openssl/evp.h>
22302 int
22303 main (void)
22304 {
22305 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL);
22306 ;
22307 return 0;
22308 }
22309 _ACEOF
22310 if ac_fn_c_try_compile "$LINENO"
22311 then :
22312
22313 printf "%s\n" "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
22314
22315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22316 printf "%s\n" "yes" >&6; }
22317 else $as_nop
22318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22319 printf "%s\n" "no" >&6; }
22320 fi
22321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22322
22323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
22324 printf %s "checking for Ed448 support... " >&6; }
22325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22326 /* end confdefs.h. */
22327 #include <openssl/evp.h>
22328 int
22329 main (void)
22330 {
22331 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL);
22332 ;
22333 return 0;
22334 }
22335 _ACEOF
22336 if ac_fn_c_try_compile "$LINENO"
22337 then :
22338
22339 printf "%s\n" "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
22340
22341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22342 printf "%s\n" "yes" >&6; }
22343 else $as_nop
22344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345 printf "%s\n" "no" >&6; }
22346 fi
22347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22348
22349 #
22350 # Check for OpenSSL SHA-1 support
22351 #
22352
22353 for ac_func in EVP_sha1
22354 do :
22355 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
22356 if test "x$ac_cv_func_EVP_sha1" = xyes
22357 then :
22358 printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h
22359 :
22360 else $as_nop
22361 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22362 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22363 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
22364 See \`config.log' for more details" "$LINENO" 5; }
22365 fi
22366
22367 done
22368
22369 #
22370 # Check for OpenSSL SHA-2 support
22371 #
22372
22373 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
22374 do :
22375 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
22376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22377 if eval test \"x\$"$as_ac_var"\" = x"yes"
22378 then :
22379 cat >>confdefs.h <<_ACEOF
22380 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
22381 _ACEOF
22382 :
22383 else $as_nop
22384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22386 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
22387 See \`config.log' for more details" "$LINENO" 5; }
22388 fi
22389
22390 done
22391
22392 #
22393 # Check for OpenSSL 1.1.x/LibreSSL functions
22394 #
22395 ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0"
22396 if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes
22397 then :
22398 printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h
22399
22400 fi
22401 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_EC_KEY" "ac_cv_func_EVP_PKEY_get0_EC_KEY"
22402 if test "x$ac_cv_func_EVP_PKEY_get0_EC_KEY" = xyes
22403 then :
22404 printf "%s\n" "#define HAVE_EVP_PKEY_GET0_EC_KEY 1" >>confdefs.h
22405
22406 fi
22407
22408 ac_fn_c_check_func "$LINENO" "RSA_set0_key" "ac_cv_func_RSA_set0_key"
22409 if test "x$ac_cv_func_RSA_set0_key" = xyes
22410 then :
22411 printf "%s\n" "#define HAVE_RSA_SET0_KEY 1" >>confdefs.h
22412
22413 fi
22414 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_RSA" "ac_cv_func_EVP_PKEY_get0_RSA"
22415 if test "x$ac_cv_func_EVP_PKEY_get0_RSA" = xyes
22416 then :
22417 printf "%s\n" "#define HAVE_EVP_PKEY_GET0_RSA 1" >>confdefs.h
22418
22419 fi
22420
22421
22422 ac_fn_c_check_func "$LINENO" "TLS_server_method" "ac_cv_func_TLS_server_method"
22423 if test "x$ac_cv_func_TLS_server_method" = xyes
22424 then :
22425 printf "%s\n" "#define HAVE_TLS_SERVER_METHOD 1" >>confdefs.h
22426
22427 fi
22428 ac_fn_c_check_func "$LINENO" "TLS_client_method" "ac_cv_func_TLS_client_method"
22429 if test "x$ac_cv_func_TLS_client_method" = xyes
22430 then :
22431 printf "%s\n" "#define HAVE_TLS_CLIENT_METHOD 1" >>confdefs.h
22432
22433 fi
22434
22435
22436 #
22437 # Check whether FIPS mode is available and whether we should enable it
22438 #
22439 # FIPS is not included in pairwise testing as the relevant Docker image
22440 # does not support FIPS mode.
22441 #
22442 ac_fn_c_check_func "$LINENO" "EVP_default_properties_enable_fips" "ac_cv_func_EVP_default_properties_enable_fips"
22443 if test "x$ac_cv_func_EVP_default_properties_enable_fips" = xyes
22444 then :
22445 printf "%s\n" "#define HAVE_EVP_DEFAULT_PROPERTIES_ENABLE_FIPS 1" >>confdefs.h
22446
22447 fi
22448 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
22449 if test "x$ac_cv_func_FIPS_mode" = xyes
22450 then :
22451 printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h
22452
22453 fi
22454
22455
22456 # [pairwise: skip]
22457 # Check whether --enable-fips-mode was given.
22458 if test ${enable_fips_mode+y}
22459 then :
22460 enableval=$enable_fips_mode;
22461 else $as_nop
22462 enable_fips_mode="no"
22463 fi
22464
22465
22466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
22467 printf %s "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
22468 case $enable_fips_mode in #(
22469 yes) :
22470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22471 printf "%s\n" "yes" >&6; }
22472
22473 printf "%s\n" "#define ENABLE_FIPS_MODE 1" >>confdefs.h
22474
22475 if test "x$ac_cv_func_FIPS_mode" != xyes -a "x$ac_cv_func_EVP_default_properties_enable_fips" != xyes
22476 then :
22477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22478 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22479 as_fn_error $? "OpenSSL FIPS mode requested but not available.
22480 See \`config.log' for more details" "$LINENO" 5; }
22481 fi ;; #(
22482 no) :
22483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22484 printf "%s\n" "no" >&6; } ;; #(
22485 *) :
22486 ;;
22487 esac
22488
22489
22490 CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
22491
22492
22493 CFLAGS=$CFLAGS_openssl_ax_save_flags
22494
22495
22496 CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
22497
22498
22499 CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
22500
22501
22502 ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
22503
22504
22505 FCFLAGS=$FCFLAGS_openssl_ax_save_flags
22506
22507
22508 FCLIBS=$FCLIBS_openssl_ax_save_flags
22509
22510
22511 FFLAGS=$FFLAGS_openssl_ax_save_flags
22512
22513
22514 FLIBS=$FLIBS_openssl_ax_save_flags
22515
22516
22517 GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
22518
22519
22520 JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
22521
22522
22523 LDFLAGS=$LDFLAGS_openssl_ax_save_flags
22524
22525
22526 LIBS=$LIBS_openssl_ax_save_flags
22527
22528
22529 OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
22530
22531
22532 OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
22533
22534
22535 UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
22536
22537
22538 VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
22539
22540
22541
22542
22543
22544
22545
22546 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22547 if test "x$ac_cv_func_clock_gettime" = xyes
22548 then :
22549 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22550
22551 fi
22552
22553
22554 # [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi]
22555
22556 # Check whether --with-gssapi was given.
22557 if test ${with_gssapi+y}
22558 then :
22559 withval=$with_gssapi;
22560 else $as_nop
22561 with_gssapi="auto"
22562 fi
22563
22564
22565 KRB5_CONFIG=
22566 case $with_gssapi in #(
22567 no) :
22568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSSAPI support" >&5
22569 printf %s "checking for GSSAPI support... " >&6; }
22570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571 printf "%s\n" "no" >&6; } ;; #(
22572 yes) :
22573 # Extract the first word of "krb5-config", so it can be a program name with args.
22574 set dummy krb5-config; ac_word=$2
22575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22576 printf %s "checking for $ac_word... " >&6; }
22577 if test ${ac_cv_path_KRB5_CONFIG+y}
22578 then :
22579 printf %s "(cached) " >&6
22580 else $as_nop
22581 case $KRB5_CONFIG in
22582 [\\/]* | ?:[\\/]*)
22583 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
22584 ;;
22585 *)
22586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22587 for as_dir in $PATH
22588 do
22589 IFS=$as_save_IFS
22590 case $as_dir in #(((
22591 '') as_dir=./ ;;
22592 */) ;;
22593 *) as_dir=$as_dir/ ;;
22594 esac
22595 for ac_exec_ext in '' $ac_executable_extensions; do
22596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22597 ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
22598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22599 break 2
22600 fi
22601 done
22602 done
22603 IFS=$as_save_IFS
22604
22605 ;;
22606 esac
22607 fi
22608 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
22609 if test -n "$KRB5_CONFIG"; then
22610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
22611 printf "%s\n" "$KRB5_CONFIG" >&6; }
22612 else
22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22614 printf "%s\n" "no" >&6; }
22615 fi
22616
22617
22618 if test -z "$KRB5_CONFIG"
22619 then :
22620 as_fn_error $? "krb5-config required but not found" "$LINENO" 5
22621 fi ;; #(
22622 auto) :
22623 # Extract the first word of "krb5-config", so it can be a program name with args.
22624 set dummy krb5-config; ac_word=$2
22625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22626 printf %s "checking for $ac_word... " >&6; }
22627 if test ${ac_cv_path_KRB5_CONFIG+y}
22628 then :
22629 printf %s "(cached) " >&6
22630 else $as_nop
22631 case $KRB5_CONFIG in
22632 [\\/]* | ?:[\\/]*)
22633 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
22634 ;;
22635 *)
22636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22637 for as_dir in $PATH
22638 do
22639 IFS=$as_save_IFS
22640 case $as_dir in #(((
22641 '') as_dir=./ ;;
22642 */) ;;
22643 *) as_dir=$as_dir/ ;;
22644 esac
22645 for ac_exec_ext in '' $ac_executable_extensions; do
22646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22647 ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
22648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22649 break 2
22650 fi
22651 done
22652 done
22653 IFS=$as_save_IFS
22654
22655 ;;
22656 esac
22657 fi
22658 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
22659 if test -n "$KRB5_CONFIG"; then
22660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
22661 printf "%s\n" "$KRB5_CONFIG" >&6; }
22662 else
22663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22664 printf "%s\n" "no" >&6; }
22665 fi
22666
22667 ;; #(
22668 *krb5-config*) :
22669 KRB5_CONFIG="$with_gssapi" ;; #(
22670 *) :
22671 as_fn_error $? "--with-gssapi requires yes|no|auto|/path/to/krb5-config" "$LINENO" 5 ;;
22672 esac
22673
22674 GSSAPI_CFLAGS=
22675 GSSAPI_LIBS=
22676 KRB5_CFLAGS=
22677 KRB5_LIBS=
22678 if test -n "$KRB5_CONFIG"
22679 then :
22680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gssapi libraries" >&5
22681 printf %s "checking for gssapi libraries... " >&6; }
22682
22683
22684 CCASFLAGS_gssapi_ax_save_flags=$CCASFLAGS
22685
22686
22687
22688 CFLAGS_gssapi_ax_save_flags=$CFLAGS
22689
22690
22691
22692 CPPFLAGS_gssapi_ax_save_flags=$CPPFLAGS
22693
22694
22695
22696 CXXFLAGS_gssapi_ax_save_flags=$CXXFLAGS
22697
22698
22699
22700 ERLCFLAGS_gssapi_ax_save_flags=$ERLCFLAGS
22701
22702
22703
22704 FCFLAGS_gssapi_ax_save_flags=$FCFLAGS
22705
22706
22707
22708 FCLIBS_gssapi_ax_save_flags=$FCLIBS
22709
22710
22711
22712 FFLAGS_gssapi_ax_save_flags=$FFLAGS
22713
22714
22715
22716 FLIBS_gssapi_ax_save_flags=$FLIBS
22717
22718
22719
22720 GCJFLAGS_gssapi_ax_save_flags=$GCJFLAGS
22721
22722
22723
22724 JAVACFLAGS_gssapi_ax_save_flags=$JAVACFLAGS
22725
22726
22727
22728 LDFLAGS_gssapi_ax_save_flags=$LDFLAGS
22729
22730
22731
22732 LIBS_gssapi_ax_save_flags=$LIBS
22733
22734
22735
22736 OBJCFLAGS_gssapi_ax_save_flags=$OBJCFLAGS
22737
22738
22739
22740 OBJCXXFLAGS_gssapi_ax_save_flags=$OBJCXXFLAGS
22741
22742
22743
22744 UPCFLAGS_gssapi_ax_save_flags=$UPCFLAGS
22745
22746
22747
22748 VALAFLAGS_gssapi_ax_save_flags=$VALAFLAGS
22749
22750
22751
22752 GSSAPI_CFLAGS=`"$KRB5_CONFIG" --cflags gssapi`
22753 GSSAPI_LIBS=`"$KRB5_CONFIG" --libs gssapi`
22754 CFLAGS="$CFLAGS $GSSAPI_CFLAGS"
22755 LIBS="$LIBS $GSSAPI_LIBS"
22756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_CFLAGS $GSSAPI_LIBS" >&5
22757 printf "%s\n" "$GSSAPI_CFLAGS $GSSAPI_LIBS" >&6; }
22758 for ac_header in gssapi/gssapi.h
22759 do :
22760 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22761 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
22762 then :
22763 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
22764
22765 else $as_nop
22766 for ac_header in gssapi.h
22767 do :
22768 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22769 if test "x$ac_cv_header_gssapi_h" = xyes
22770 then :
22771 printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h
22772
22773 else $as_nop
22774 as_fn_error $? "neither gssapi/gssapi.h nor gssapi.h found" "$LINENO" 5
22775 fi
22776
22777 done
22778 fi
22779
22780 done
22781 for ac_header in gssapi/gssapi_krb5.h
22782 do :
22783 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
22784 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes
22785 then :
22786 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_KRB5_H 1" >>confdefs.h
22787 for ac_header in gssapi_krb5.h
22788 do :
22789 ac_fn_c_check_header_compile "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
22790 if test "x$ac_cv_header_gssapi_krb5_h" = xyes
22791 then :
22792 printf "%s\n" "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
22793
22794 as_fn_error $? "neither gssapi/gssapi_krb5.h nor gssapi_krb5.h found" "$LINENO" 5
22795 fi
22796
22797 done
22798 fi
22799
22800 done
22801
22802 for ac_func in gss_acquire_cred
22803 do :
22804 ac_fn_c_check_func "$LINENO" "gss_acquire_cred" "ac_cv_func_gss_acquire_cred"
22805 if test "x$ac_cv_func_gss_acquire_cred" = xyes
22806 then :
22807 printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED 1" >>confdefs.h
22808
22809 else $as_nop
22810 as_fn_error $? "linking with $GSSAPI_LIBS does not work" "$LINENO" 5
22811 fi
22812
22813 done
22814
22815 CCASFLAGS=$CCASFLAGS_gssapi_ax_save_flags
22816
22817
22818 CFLAGS=$CFLAGS_gssapi_ax_save_flags
22819
22820
22821 CPPFLAGS=$CPPFLAGS_gssapi_ax_save_flags
22822
22823
22824 CXXFLAGS=$CXXFLAGS_gssapi_ax_save_flags
22825
22826
22827 ERLCFLAGS=$ERLCFLAGS_gssapi_ax_save_flags
22828
22829
22830 FCFLAGS=$FCFLAGS_gssapi_ax_save_flags
22831
22832
22833 FCLIBS=$FCLIBS_gssapi_ax_save_flags
22834
22835
22836 FFLAGS=$FFLAGS_gssapi_ax_save_flags
22837
22838
22839 FLIBS=$FLIBS_gssapi_ax_save_flags
22840
22841
22842 GCJFLAGS=$GCJFLAGS_gssapi_ax_save_flags
22843
22844
22845 JAVACFLAGS=$JAVACFLAGS_gssapi_ax_save_flags
22846
22847
22848 LDFLAGS=$LDFLAGS_gssapi_ax_save_flags
22849
22850
22851 LIBS=$LIBS_gssapi_ax_save_flags
22852
22853
22854 OBJCFLAGS=$OBJCFLAGS_gssapi_ax_save_flags
22855
22856
22857 OBJCXXFLAGS=$OBJCXXFLAGS_gssapi_ax_save_flags
22858
22859
22860 UPCFLAGS=$UPCFLAGS_gssapi_ax_save_flags
22861
22862
22863 VALAFLAGS=$VALAFLAGS_gssapi_ax_save_flags
22864
22865
22866
22867
22868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5 libraries" >&5
22869 printf %s "checking for krb5 libraries... " >&6; }
22870
22871
22872 CCASFLAGS_krb5_ax_save_flags=$CCASFLAGS
22873
22874
22875
22876 CFLAGS_krb5_ax_save_flags=$CFLAGS
22877
22878
22879
22880 CPPFLAGS_krb5_ax_save_flags=$CPPFLAGS
22881
22882
22883
22884 CXXFLAGS_krb5_ax_save_flags=$CXXFLAGS
22885
22886
22887
22888 ERLCFLAGS_krb5_ax_save_flags=$ERLCFLAGS
22889
22890
22891
22892 FCFLAGS_krb5_ax_save_flags=$FCFLAGS
22893
22894
22895
22896 FCLIBS_krb5_ax_save_flags=$FCLIBS
22897
22898
22899
22900 FFLAGS_krb5_ax_save_flags=$FFLAGS
22901
22902
22903
22904 FLIBS_krb5_ax_save_flags=$FLIBS
22905
22906
22907
22908 GCJFLAGS_krb5_ax_save_flags=$GCJFLAGS
22909
22910
22911
22912 JAVACFLAGS_krb5_ax_save_flags=$JAVACFLAGS
22913
22914
22915
22916 LDFLAGS_krb5_ax_save_flags=$LDFLAGS
22917
22918
22919
22920 LIBS_krb5_ax_save_flags=$LIBS
22921
22922
22923
22924 OBJCFLAGS_krb5_ax_save_flags=$OBJCFLAGS
22925
22926
22927
22928 OBJCXXFLAGS_krb5_ax_save_flags=$OBJCXXFLAGS
22929
22930
22931
22932 UPCFLAGS_krb5_ax_save_flags=$UPCFLAGS
22933
22934
22935
22936 VALAFLAGS_krb5_ax_save_flags=$VALAFLAGS
22937
22938
22939
22940 KRB5_CFLAGS=`"$KRB5_CONFIG" --cflags krb5`
22941 KRB5_LIBS=`$KRB5_CONFIG --libs krb5`
22942 CFLAGS="$CFLAGS $KRB5_CFLAGS"
22943 LIBS="$CFLAGS $KRB5_LIBS"
22944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CFLAGS $KRB5_LIBS" >&5
22945 printf "%s\n" "$KRB5_CFLAGS $KRB5_LIBS" >&6; }
22946 for ac_header in krb5/krb5.h
22947 do :
22948 ac_fn_c_check_header_compile "$LINENO" "krb5/krb5.h" "ac_cv_header_krb5_krb5_h" "$ac_includes_default"
22949 if test "x$ac_cv_header_krb5_krb5_h" = xyes
22950 then :
22951 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
22952
22953 else $as_nop
22954 for ac_header in krb5.h
22955 do :
22956 ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22957 if test "x$ac_cv_header_krb5_h" = xyes
22958 then :
22959 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
22960
22961 else $as_nop
22962 as_fn_error $? "neither krb5/krb5.h nor krb5 found" "$LINENO" 5
22963 fi
22964
22965 done
22966 fi
22967
22968 done
22969
22970 for ac_func in krb5_init_context
22971 do :
22972 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
22973 if test "x$ac_cv_func_krb5_init_context" = xyes
22974 then :
22975 printf "%s\n" "#define HAVE_KRB5_INIT_CONTEXT 1" >>confdefs.h
22976
22977 else $as_nop
22978 as_fn_error $? "linking with $KRB5_LIBS failed" "$LINENO" 5
22979 fi
22980
22981 done
22982
22983 CCASFLAGS=$CCASFLAGS_krb5_ax_save_flags
22984
22985
22986 CFLAGS=$CFLAGS_krb5_ax_save_flags
22987
22988
22989 CPPFLAGS=$CPPFLAGS_krb5_ax_save_flags
22990
22991
22992 CXXFLAGS=$CXXFLAGS_krb5_ax_save_flags
22993
22994
22995 ERLCFLAGS=$ERLCFLAGS_krb5_ax_save_flags
22996
22997
22998 FCFLAGS=$FCFLAGS_krb5_ax_save_flags
22999
23000
23001 FCLIBS=$FCLIBS_krb5_ax_save_flags
23002
23003
23004 FFLAGS=$FFLAGS_krb5_ax_save_flags
23005
23006
23007 FLIBS=$FLIBS_krb5_ax_save_flags
23008
23009
23010 GCJFLAGS=$GCJFLAGS_krb5_ax_save_flags
23011
23012
23013 JAVACFLAGS=$JAVACFLAGS_krb5_ax_save_flags
23014
23015
23016 LDFLAGS=$LDFLAGS_krb5_ax_save_flags
23017
23018
23019 LIBS=$LIBS_krb5_ax_save_flags
23020
23021
23022 OBJCFLAGS=$OBJCFLAGS_krb5_ax_save_flags
23023
23024
23025 OBJCXXFLAGS=$OBJCXXFLAGS_krb5_ax_save_flags
23026
23027
23028 UPCFLAGS=$UPCFLAGS_krb5_ax_save_flags
23029
23030
23031 VALAFLAGS=$VALAFLAGS_krb5_ax_save_flags
23032
23033
23034
23035
23036
23037 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
23038
23039 # kludge to silence compiler warnings which recommend use of GSS.framework on macOS
23040 case $host in #(
23041 *-darwin*) :
23042 CFLAGS="$CFLAGS -Wno-deprecated-declarations" ;; #(
23043 *) :
23044 ;;
23045 esac
23046 fi
23047 if test -n "$GSSAPI_LIBS"; then
23048 HAVE_GSSAPI_TRUE=
23049 HAVE_GSSAPI_FALSE='#'
23050 else
23051 HAVE_GSSAPI_TRUE='#'
23052 HAVE_GSSAPI_FALSE=
23053 fi
23054
23055
23056
23057
23058
23059
23060 #
23061 # was --with-lmdb specified?
23062 #
23063
23064 # [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb]
23065
23066 # Check whether --with-lmdb was given.
23067 if test ${with_lmdb+y}
23068 then :
23069 withval=$with_lmdb; :
23070 else $as_nop
23071 with_lmdb="auto"
23072 fi
23073
23074
23075 ac_lib_lmdb_found=no
23076 case $with_lmdb in #(
23077 no) :
23078 ;; #(
23079 auto|yes) :
23080
23081 pkg_failed=no
23082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb" >&5
23083 printf %s "checking for lmdb... " >&6; }
23084
23085 if test -n "$LMDB_CFLAGS"; then
23086 pkg_cv_LMDB_CFLAGS="$LMDB_CFLAGS"
23087 elif test -n "$PKG_CONFIG"; then
23088 if test -n "$PKG_CONFIG" && \
23089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5
23090 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5
23091 ac_status=$?
23092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23093 test $ac_status = 0; }; then
23094 pkg_cv_LMDB_CFLAGS=`$PKG_CONFIG --cflags "lmdb" 2>/dev/null`
23095 test "x$?" != "x0" && pkg_failed=yes
23096 else
23097 pkg_failed=yes
23098 fi
23099 else
23100 pkg_failed=untried
23101 fi
23102 if test -n "$LMDB_LIBS"; then
23103 pkg_cv_LMDB_LIBS="$LMDB_LIBS"
23104 elif test -n "$PKG_CONFIG"; then
23105 if test -n "$PKG_CONFIG" && \
23106 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5
23107 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5
23108 ac_status=$?
23109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110 test $ac_status = 0; }; then
23111 pkg_cv_LMDB_LIBS=`$PKG_CONFIG --libs "lmdb" 2>/dev/null`
23112 test "x$?" != "x0" && pkg_failed=yes
23113 else
23114 pkg_failed=yes
23115 fi
23116 else
23117 pkg_failed=untried
23118 fi
23119
23120
23121
23122 if test $pkg_failed = yes; then
23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23124 printf "%s\n" "no" >&6; }
23125
23126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23127 _pkg_short_errors_supported=yes
23128 else
23129 _pkg_short_errors_supported=no
23130 fi
23131 if test $_pkg_short_errors_supported = yes; then
23132 LMDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lmdb" 2>&1`
23133 else
23134 LMDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lmdb" 2>&1`
23135 fi
23136 # Put the nasty error message in config.log where it belongs
23137 echo "$LMDB_PKG_ERRORS" >&5
23138
23139 for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
23140 if test -z "$ac_lib_lmdb_path"
23141 then :
23142 as_fn_error $? "Path cannot be empty" "$LINENO" 5
23143 fi
23144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5
23145 printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; }
23146 if test -r "$ac_lib_lmdb_path/include/lmdb.h"
23147 then :
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23149 printf "%s\n" "yes" >&6; }
23150 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include"
23151 LMDB_LIBS="-L$ac_lib_lmdb_path/lib"
23152
23153
23154 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
23155
23156
23157
23158 CFLAGS_lmdb_ax_save_flags=$CFLAGS
23159
23160
23161
23162 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
23163
23164
23165
23166 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
23167
23168
23169
23170 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
23171
23172
23173
23174 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
23175
23176
23177
23178 FCLIBS_lmdb_ax_save_flags=$FCLIBS
23179
23180
23181
23182 FFLAGS_lmdb_ax_save_flags=$FFLAGS
23183
23184
23185
23186 FLIBS_lmdb_ax_save_flags=$FLIBS
23187
23188
23189
23190 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
23191
23192
23193
23194 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
23195
23196
23197
23198 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
23199
23200
23201
23202 LIBS_lmdb_ax_save_flags=$LIBS
23203
23204
23205
23206 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
23207
23208
23209
23210 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
23211
23212
23213
23214 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
23215
23216
23217
23218 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
23219
23220
23221
23222 CFLAGS="$CFLAGS $LMDB_CFLAGS"
23223 LIBS="$LIBS $LMDB_LIBS"
23224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
23225 printf %s "checking for library containing mdb_env_create... " >&6; }
23226 if test ${ac_cv_search_mdb_env_create+y}
23227 then :
23228 printf %s "(cached) " >&6
23229 else $as_nop
23230 ac_func_search_save_LIBS=$LIBS
23231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23232 /* end confdefs.h. */
23233
23234 /* Override any GCC internal prototype to avoid an error.
23235 Use char because int might match the return type of a GCC
23236 builtin and then its argument prototype would still apply. */
23237 char mdb_env_create ();
23238 int
23239 main (void)
23240 {
23241 return mdb_env_create ();
23242 ;
23243 return 0;
23244 }
23245 _ACEOF
23246 for ac_lib in '' lmdb
23247 do
23248 if test -z "$ac_lib"; then
23249 ac_res="none required"
23250 else
23251 ac_res=-l$ac_lib
23252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23253 fi
23254 if ac_fn_c_try_link "$LINENO"
23255 then :
23256 ac_cv_search_mdb_env_create=$ac_res
23257 fi
23258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23259 conftest$ac_exeext
23260 if test ${ac_cv_search_mdb_env_create+y}
23261 then :
23262 break
23263 fi
23264 done
23265 if test ${ac_cv_search_mdb_env_create+y}
23266 then :
23267
23268 else $as_nop
23269 ac_cv_search_mdb_env_create=no
23270 fi
23271 rm conftest.$ac_ext
23272 LIBS=$ac_func_search_save_LIBS
23273 fi
23274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
23275 printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; }
23276 ac_res=$ac_cv_search_mdb_env_create
23277 if test "$ac_res" != no
23278 then :
23279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23280 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
23281
23282 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23283
23284
23285 CFLAGS=$CFLAGS_lmdb_ax_save_flags
23286
23287
23288 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23289
23290
23291 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23292
23293
23294 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23295
23296
23297 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23298
23299
23300 FCLIBS=$FCLIBS_lmdb_ax_save_flags
23301
23302
23303 FFLAGS=$FFLAGS_lmdb_ax_save_flags
23304
23305
23306 FLIBS=$FLIBS_lmdb_ax_save_flags
23307
23308
23309 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23310
23311
23312 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23313
23314
23315 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23316
23317
23318 LIBS=$LIBS_lmdb_ax_save_flags
23319
23320
23321 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23322
23323
23324 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23325
23326
23327 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23328
23329
23330 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23331
23332
23333
23334 ac_lib_lmdb_found=yes
23335 break
23336
23337 else $as_nop
23338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23339 printf "%s\n" "no" >&6; }
23340 LMDB_CFLAGS=""
23341 LMDB_LIBS=""
23342
23343 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23344
23345
23346 CFLAGS=$CFLAGS_lmdb_ax_save_flags
23347
23348
23349 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23350
23351
23352 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23353
23354
23355 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23356
23357
23358 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23359
23360
23361 FCLIBS=$FCLIBS_lmdb_ax_save_flags
23362
23363
23364 FFLAGS=$FFLAGS_lmdb_ax_save_flags
23365
23366
23367 FLIBS=$FLIBS_lmdb_ax_save_flags
23368
23369
23370 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23371
23372
23373 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23374
23375
23376 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23377
23378
23379 LIBS=$LIBS_lmdb_ax_save_flags
23380
23381
23382 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23383
23384
23385 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23386
23387
23388 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23389
23390
23391 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23392
23393
23394
23395
23396
23397 fi
23398
23399
23400 else $as_nop
23401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23402 printf "%s\n" "no" >&6; }
23403 fi
23404 done
23405
23406 elif test $pkg_failed = untried; then
23407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23408 printf "%s\n" "no" >&6; }
23409 for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
23410 if test -z "$ac_lib_lmdb_path"
23411 then :
23412 as_fn_error $? "Path cannot be empty" "$LINENO" 5
23413 fi
23414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5
23415 printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; }
23416 if test -r "$ac_lib_lmdb_path/include/lmdb.h"
23417 then :
23418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23419 printf "%s\n" "yes" >&6; }
23420 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include"
23421 LMDB_LIBS="-L$ac_lib_lmdb_path/lib"
23422
23423
23424 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
23425
23426
23427
23428 CFLAGS_lmdb_ax_save_flags=$CFLAGS
23429
23430
23431
23432 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
23433
23434
23435
23436 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
23437
23438
23439
23440 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
23441
23442
23443
23444 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
23445
23446
23447
23448 FCLIBS_lmdb_ax_save_flags=$FCLIBS
23449
23450
23451
23452 FFLAGS_lmdb_ax_save_flags=$FFLAGS
23453
23454
23455
23456 FLIBS_lmdb_ax_save_flags=$FLIBS
23457
23458
23459
23460 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
23461
23462
23463
23464 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
23465
23466
23467
23468 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
23469
23470
23471
23472 LIBS_lmdb_ax_save_flags=$LIBS
23473
23474
23475
23476 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
23477
23478
23479
23480 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
23481
23482
23483
23484 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
23485
23486
23487
23488 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
23489
23490
23491
23492 CFLAGS="$CFLAGS $LMDB_CFLAGS"
23493 LIBS="$LIBS $LMDB_LIBS"
23494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
23495 printf %s "checking for library containing mdb_env_create... " >&6; }
23496 if test ${ac_cv_search_mdb_env_create+y}
23497 then :
23498 printf %s "(cached) " >&6
23499 else $as_nop
23500 ac_func_search_save_LIBS=$LIBS
23501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23502 /* end confdefs.h. */
23503
23504 /* Override any GCC internal prototype to avoid an error.
23505 Use char because int might match the return type of a GCC
23506 builtin and then its argument prototype would still apply. */
23507 char mdb_env_create ();
23508 int
23509 main (void)
23510 {
23511 return mdb_env_create ();
23512 ;
23513 return 0;
23514 }
23515 _ACEOF
23516 for ac_lib in '' lmdb
23517 do
23518 if test -z "$ac_lib"; then
23519 ac_res="none required"
23520 else
23521 ac_res=-l$ac_lib
23522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23523 fi
23524 if ac_fn_c_try_link "$LINENO"
23525 then :
23526 ac_cv_search_mdb_env_create=$ac_res
23527 fi
23528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23529 conftest$ac_exeext
23530 if test ${ac_cv_search_mdb_env_create+y}
23531 then :
23532 break
23533 fi
23534 done
23535 if test ${ac_cv_search_mdb_env_create+y}
23536 then :
23537
23538 else $as_nop
23539 ac_cv_search_mdb_env_create=no
23540 fi
23541 rm conftest.$ac_ext
23542 LIBS=$ac_func_search_save_LIBS
23543 fi
23544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
23545 printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; }
23546 ac_res=$ac_cv_search_mdb_env_create
23547 if test "$ac_res" != no
23548 then :
23549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23550 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
23551
23552 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23553
23554
23555 CFLAGS=$CFLAGS_lmdb_ax_save_flags
23556
23557
23558 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23559
23560
23561 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23562
23563
23564 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23565
23566
23567 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23568
23569
23570 FCLIBS=$FCLIBS_lmdb_ax_save_flags
23571
23572
23573 FFLAGS=$FFLAGS_lmdb_ax_save_flags
23574
23575
23576 FLIBS=$FLIBS_lmdb_ax_save_flags
23577
23578
23579 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23580
23581
23582 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23583
23584
23585 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23586
23587
23588 LIBS=$LIBS_lmdb_ax_save_flags
23589
23590
23591 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23592
23593
23594 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23595
23596
23597 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23598
23599
23600 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23601
23602
23603
23604 ac_lib_lmdb_found=yes
23605 break
23606
23607 else $as_nop
23608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23609 printf "%s\n" "no" >&6; }
23610 LMDB_CFLAGS=""
23611 LMDB_LIBS=""
23612
23613 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23614
23615
23616 CFLAGS=$CFLAGS_lmdb_ax_save_flags
23617
23618
23619 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23620
23621
23622 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23623
23624
23625 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23626
23627
23628 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23629
23630
23631 FCLIBS=$FCLIBS_lmdb_ax_save_flags
23632
23633
23634 FFLAGS=$FFLAGS_lmdb_ax_save_flags
23635
23636
23637 FLIBS=$FLIBS_lmdb_ax_save_flags
23638
23639
23640 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23641
23642
23643 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23644
23645
23646 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23647
23648
23649 LIBS=$LIBS_lmdb_ax_save_flags
23650
23651
23652 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23653
23654
23655 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23656
23657
23658 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23659
23660
23661 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23662
23663
23664
23665
23666
23667 fi
23668
23669
23670 else $as_nop
23671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23672 printf "%s\n" "no" >&6; }
23673 fi
23674 done
23675
23676 else
23677 LMDB_CFLAGS=$pkg_cv_LMDB_CFLAGS
23678 LMDB_LIBS=$pkg_cv_LMDB_LIBS
23679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 printf "%s\n" "yes" >&6; }
23681 ac_lib_lmdb_found=yes
23682 fi ;; #(
23683 *) :
23684 if test -z "$with_lmdb"
23685 then :
23686 as_fn_error $? "Path cannot be empty" "$LINENO" 5
23687 fi
23688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $with_lmdb" >&5
23689 printf %s "checking for lmdb header in $with_lmdb... " >&6; }
23690 if test -r "$with_lmdb/include/lmdb.h"
23691 then :
23692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23693 printf "%s\n" "yes" >&6; }
23694 LMDB_CFLAGS="-I$with_lmdb/include"
23695 LMDB_LIBS="-L$with_lmdb/lib"
23696
23697
23698 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
23699
23700
23701
23702 CFLAGS_lmdb_ax_save_flags=$CFLAGS
23703
23704
23705
23706 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
23707
23708
23709
23710 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
23711
23712
23713
23714 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
23715
23716
23717
23718 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
23719
23720
23721
23722 FCLIBS_lmdb_ax_save_flags=$FCLIBS
23723
23724
23725
23726 FFLAGS_lmdb_ax_save_flags=$FFLAGS
23727
23728
23729
23730 FLIBS_lmdb_ax_save_flags=$FLIBS
23731
23732
23733
23734 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
23735
23736
23737
23738 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
23739
23740
23741
23742 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
23743
23744
23745
23746 LIBS_lmdb_ax_save_flags=$LIBS
23747
23748
23749
23750 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
23751
23752
23753
23754 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
23755
23756
23757
23758 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
23759
23760
23761
23762 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
23763
23764
23765
23766 CFLAGS="$CFLAGS $LMDB_CFLAGS"
23767 LIBS="$LIBS $LMDB_LIBS"
23768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
23769 printf %s "checking for library containing mdb_env_create... " >&6; }
23770 if test ${ac_cv_search_mdb_env_create+y}
23771 then :
23772 printf %s "(cached) " >&6
23773 else $as_nop
23774 ac_func_search_save_LIBS=$LIBS
23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h. */
23777
23778 /* Override any GCC internal prototype to avoid an error.
23779 Use char because int might match the return type of a GCC
23780 builtin and then its argument prototype would still apply. */
23781 char mdb_env_create ();
23782 int
23783 main (void)
23784 {
23785 return mdb_env_create ();
23786 ;
23787 return 0;
23788 }
23789 _ACEOF
23790 for ac_lib in '' lmdb
23791 do
23792 if test -z "$ac_lib"; then
23793 ac_res="none required"
23794 else
23795 ac_res=-l$ac_lib
23796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23797 fi
23798 if ac_fn_c_try_link "$LINENO"
23799 then :
23800 ac_cv_search_mdb_env_create=$ac_res
23801 fi
23802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23803 conftest$ac_exeext
23804 if test ${ac_cv_search_mdb_env_create+y}
23805 then :
23806 break
23807 fi
23808 done
23809 if test ${ac_cv_search_mdb_env_create+y}
23810 then :
23811
23812 else $as_nop
23813 ac_cv_search_mdb_env_create=no
23814 fi
23815 rm conftest.$ac_ext
23816 LIBS=$ac_func_search_save_LIBS
23817 fi
23818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
23819 printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; }
23820 ac_res=$ac_cv_search_mdb_env_create
23821 if test "$ac_res" != no
23822 then :
23823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23824 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
23825
23826 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23827
23828
23829 CFLAGS=$CFLAGS_lmdb_ax_save_flags
23830
23831
23832 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23833
23834
23835 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23836
23837
23838 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23839
23840
23841 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23842
23843
23844 FCLIBS=$FCLIBS_lmdb_ax_save_flags
23845
23846
23847 FFLAGS=$FFLAGS_lmdb_ax_save_flags
23848
23849
23850 FLIBS=$FLIBS_lmdb_ax_save_flags
23851
23852
23853 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23854
23855
23856 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23857
23858
23859 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23860
23861
23862 LIBS=$LIBS_lmdb_ax_save_flags
23863
23864
23865 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23866
23867
23868 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23869
23870
23871 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23872
23873
23874 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23875
23876
23877
23878 ac_lib_lmdb_found=yes
23879
23880 else $as_nop
23881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23882 printf "%s\n" "no" >&6; }
23883 LMDB_CFLAGS=""
23884 LMDB_LIBS=""
23885
23886 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23887
23888
23889 CFLAGS=$CFLAGS_lmdb_ax_save_flags
23890
23891
23892 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23893
23894
23895 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23896
23897
23898 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23899
23900
23901 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23902
23903
23904 FCLIBS=$FCLIBS_lmdb_ax_save_flags
23905
23906
23907 FFLAGS=$FFLAGS_lmdb_ax_save_flags
23908
23909
23910 FLIBS=$FLIBS_lmdb_ax_save_flags
23911
23912
23913 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23914
23915
23916 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23917
23918
23919 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23920
23921
23922 LIBS=$LIBS_lmdb_ax_save_flags
23923
23924
23925 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23926
23927
23928 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23929
23930
23931 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23932
23933
23934 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23935
23936
23937
23938
23939
23940 fi
23941
23942
23943 else $as_nop
23944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23945 printf "%s\n" "no" >&6; }
23946 fi ;;
23947 esac
23948
23949 # don't fail when in automatic mode
23950 if test "$with_lmdb" = "auto" && test "$ac_lib_lmdb_found" = "no"
23951 then :
23952 with_lmdb=no
23953 fi
23954
23955 # hard fail when LMDB requested, but not found
23956 if test "$with_lmdb" != "no" && test "$ac_lib_lmdb_found" != "yes"
23957 then :
23958 as_fn_error $? "LMDB requested, but not found" "$LINENO" 5
23959 fi
23960
23961 if test "$ac_lib_lmdb_found" = "yes"
23962 then :
23963
23964 printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h
23965
23966 fi
23967
23968
23969
23970 if test -n "$LMDB_LIBS"; then
23971 HAVE_LMDB_TRUE=
23972 HAVE_LMDB_FALSE='#'
23973 else
23974 HAVE_LMDB_TRUE='#'
23975 HAVE_LMDB_FALSE=
23976 fi
23977
23978
23979 #
23980 # was --with-libxml2 specified?
23981 #
23982 # [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2]
23983
23984 # Check whether --with-libxml2 was given.
23985 if test ${with_libxml2+y}
23986 then :
23987 withval=$with_libxml2;
23988 else $as_nop
23989 with_libxml2="auto"
23990 fi
23991
23992
23993 case $with_libxml2 in #(
23994 no) :
23995 ;; #(
23996 auto) :
23997
23998 pkg_failed=no
23999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
24000 printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; }
24001
24002 if test -n "$LIBXML2_CFLAGS"; then
24003 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
24004 elif test -n "$PKG_CONFIG"; then
24005 if test -n "$PKG_CONFIG" && \
24006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
24007 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
24008 ac_status=$?
24009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }; then
24011 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
24012 test "x$?" != "x0" && pkg_failed=yes
24013 else
24014 pkg_failed=yes
24015 fi
24016 else
24017 pkg_failed=untried
24018 fi
24019 if test -n "$LIBXML2_LIBS"; then
24020 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
24021 elif test -n "$PKG_CONFIG"; then
24022 if test -n "$PKG_CONFIG" && \
24023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
24024 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
24025 ac_status=$?
24026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24027 test $ac_status = 0; }; then
24028 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
24029 test "x$?" != "x0" && pkg_failed=yes
24030 else
24031 pkg_failed=yes
24032 fi
24033 else
24034 pkg_failed=untried
24035 fi
24036
24037
24038
24039 if test $pkg_failed = yes; then
24040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041 printf "%s\n" "no" >&6; }
24042
24043 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24044 _pkg_short_errors_supported=yes
24045 else
24046 _pkg_short_errors_supported=no
24047 fi
24048 if test $_pkg_short_errors_supported = yes; then
24049 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
24050 else
24051 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
24052 fi
24053 # Put the nasty error message in config.log where it belongs
24054 echo "$LIBXML2_PKG_ERRORS" >&5
24055
24056 :
24057 elif test $pkg_failed = untried; then
24058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24059 printf "%s\n" "no" >&6; }
24060 :
24061 else
24062 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
24063 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
24064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24065 printf "%s\n" "yes" >&6; }
24066
24067 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
24068
24069 fi ;; #(
24070 yes) :
24071
24072 pkg_failed=no
24073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
24074 printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; }
24075
24076 if test -n "$LIBXML2_CFLAGS"; then
24077 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
24078 elif test -n "$PKG_CONFIG"; then
24079 if test -n "$PKG_CONFIG" && \
24080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
24081 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
24082 ac_status=$?
24083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; then
24085 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
24086 test "x$?" != "x0" && pkg_failed=yes
24087 else
24088 pkg_failed=yes
24089 fi
24090 else
24091 pkg_failed=untried
24092 fi
24093 if test -n "$LIBXML2_LIBS"; then
24094 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
24095 elif test -n "$PKG_CONFIG"; then
24096 if test -n "$PKG_CONFIG" && \
24097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
24098 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
24099 ac_status=$?
24100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; then
24102 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
24103 test "x$?" != "x0" && pkg_failed=yes
24104 else
24105 pkg_failed=yes
24106 fi
24107 else
24108 pkg_failed=untried
24109 fi
24110
24111
24112
24113 if test $pkg_failed = yes; then
24114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24115 printf "%s\n" "no" >&6; }
24116
24117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24118 _pkg_short_errors_supported=yes
24119 else
24120 _pkg_short_errors_supported=no
24121 fi
24122 if test $_pkg_short_errors_supported = yes; then
24123 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
24124 else
24125 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
24126 fi
24127 # Put the nasty error message in config.log where it belongs
24128 echo "$LIBXML2_PKG_ERRORS" >&5
24129
24130 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
24131
24132 $LIBXML2_PKG_ERRORS
24133
24134 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24135 installed software in a non-standard prefix.
24136
24137 Alternatively, you may set the environment variables LIBXML2_CFLAGS
24138 and LIBXML2_LIBS to avoid the need to call pkg-config.
24139 See the pkg-config man page for more details." "$LINENO" 5
24140 elif test $pkg_failed = untried; then
24141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24142 printf "%s\n" "no" >&6; }
24143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24145 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24146 is in your PATH or set the PKG_CONFIG environment variable to the full
24147 path to pkg-config.
24148
24149 Alternatively, you may set the environment variables LIBXML2_CFLAGS
24150 and LIBXML2_LIBS to avoid the need to call pkg-config.
24151 See the pkg-config man page for more details.
24152
24153 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24154 See \`config.log' for more details" "$LINENO" 5; }
24155 else
24156 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
24157 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
24158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24159 printf "%s\n" "yes" >&6; }
24160
24161 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
24162
24163 fi ;; #(
24164 *) :
24165 as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
24166 esac
24167
24168 if test -n "$LIBXML2_LIBS"; then
24169 HAVE_LIBXML2_TRUE=
24170 HAVE_LIBXML2_FALSE='#'
24171 else
24172 HAVE_LIBXML2_TRUE='#'
24173 HAVE_LIBXML2_FALSE=
24174 fi
24175
24176
24177 #
24178 # was --with-json-c specified?
24179 #
24180 # [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c]
24181
24182 # Check whether --with-json-c was given.
24183 if test ${with_json_c+y}
24184 then :
24185 withval=$with_json_c;
24186 else $as_nop
24187 with_json_c="detect"
24188 fi
24189
24190
24191 case $with_json_c in #(
24192 no) :
24193 ;; #(
24194 detect) :
24195
24196 pkg_failed=no
24197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
24198 printf %s "checking for json-c >= 0.11... " >&6; }
24199
24200 if test -n "$JSON_C_CFLAGS"; then
24201 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
24202 elif test -n "$PKG_CONFIG"; then
24203 if test -n "$PKG_CONFIG" && \
24204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
24205 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
24206 ac_status=$?
24207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208 test $ac_status = 0; }; then
24209 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
24210 test "x$?" != "x0" && pkg_failed=yes
24211 else
24212 pkg_failed=yes
24213 fi
24214 else
24215 pkg_failed=untried
24216 fi
24217 if test -n "$JSON_C_LIBS"; then
24218 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
24219 elif test -n "$PKG_CONFIG"; then
24220 if test -n "$PKG_CONFIG" && \
24221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
24222 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
24223 ac_status=$?
24224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24225 test $ac_status = 0; }; then
24226 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
24227 test "x$?" != "x0" && pkg_failed=yes
24228 else
24229 pkg_failed=yes
24230 fi
24231 else
24232 pkg_failed=untried
24233 fi
24234
24235
24236
24237 if test $pkg_failed = yes; then
24238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24239 printf "%s\n" "no" >&6; }
24240
24241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24242 _pkg_short_errors_supported=yes
24243 else
24244 _pkg_short_errors_supported=no
24245 fi
24246 if test $_pkg_short_errors_supported = yes; then
24247 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
24248 else
24249 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
24250 fi
24251 # Put the nasty error message in config.log where it belongs
24252 echo "$JSON_C_PKG_ERRORS" >&5
24253
24254 :
24255 elif test $pkg_failed = untried; then
24256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24257 printf "%s\n" "no" >&6; }
24258 :
24259 else
24260 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
24261 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
24262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24263 printf "%s\n" "yes" >&6; }
24264
24265 printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h
24266
24267 fi ;; #(
24268 yes) :
24269
24270 pkg_failed=no
24271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
24272 printf %s "checking for json-c >= 0.11... " >&6; }
24273
24274 if test -n "$JSON_C_CFLAGS"; then
24275 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
24276 elif test -n "$PKG_CONFIG"; then
24277 if test -n "$PKG_CONFIG" && \
24278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
24279 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
24280 ac_status=$?
24281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24282 test $ac_status = 0; }; then
24283 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
24284 test "x$?" != "x0" && pkg_failed=yes
24285 else
24286 pkg_failed=yes
24287 fi
24288 else
24289 pkg_failed=untried
24290 fi
24291 if test -n "$JSON_C_LIBS"; then
24292 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
24293 elif test -n "$PKG_CONFIG"; then
24294 if test -n "$PKG_CONFIG" && \
24295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
24296 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
24297 ac_status=$?
24298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }; then
24300 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
24301 test "x$?" != "x0" && pkg_failed=yes
24302 else
24303 pkg_failed=yes
24304 fi
24305 else
24306 pkg_failed=untried
24307 fi
24308
24309
24310
24311 if test $pkg_failed = yes; then
24312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24313 printf "%s\n" "no" >&6; }
24314
24315 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24316 _pkg_short_errors_supported=yes
24317 else
24318 _pkg_short_errors_supported=no
24319 fi
24320 if test $_pkg_short_errors_supported = yes; then
24321 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
24322 else
24323 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
24324 fi
24325 # Put the nasty error message in config.log where it belongs
24326 echo "$JSON_C_PKG_ERRORS" >&5
24327
24328 as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
24329
24330 $JSON_C_PKG_ERRORS
24331
24332 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24333 installed software in a non-standard prefix.
24334
24335 Alternatively, you may set the environment variables JSON_C_CFLAGS
24336 and JSON_C_LIBS to avoid the need to call pkg-config.
24337 See the pkg-config man page for more details." "$LINENO" 5
24338 elif test $pkg_failed = untried; then
24339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24340 printf "%s\n" "no" >&6; }
24341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24342 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24343 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24344 is in your PATH or set the PKG_CONFIG environment variable to the full
24345 path to pkg-config.
24346
24347 Alternatively, you may set the environment variables JSON_C_CFLAGS
24348 and JSON_C_LIBS to avoid the need to call pkg-config.
24349 See the pkg-config man page for more details.
24350
24351 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24352 See \`config.log' for more details" "$LINENO" 5; }
24353 else
24354 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
24355 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
24356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24357 printf "%s\n" "yes" >&6; }
24358
24359 printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h
24360
24361 fi ;; #(
24362 *) :
24363 as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
24364 ;;
24365 esac
24366
24367 if test -n "$JSON_C_LIBS"; then
24368 HAVE_JSON_C_TRUE=
24369 HAVE_JSON_C_FALSE='#'
24370 else
24371 HAVE_JSON_C_TRUE='#'
24372 HAVE_JSON_C_FALSE=
24373 fi
24374
24375
24376
24377
24378
24379 #
24380 # was --with-zlib specified?
24381 #
24382 # [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib]
24383
24384 # Check whether --with-zlib was given.
24385 if test ${with_zlib+y}
24386 then :
24387 withval=$with_zlib;
24388 else $as_nop
24389 with_zlib="auto"
24390 fi
24391
24392
24393 case $with_zlib in #(
24394 no) :
24395 ;; #(
24396 auto) :
24397
24398 pkg_failed=no
24399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
24400 printf %s "checking for zlib... " >&6; }
24401
24402 if test -n "$ZLIB_CFLAGS"; then
24403 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
24404 elif test -n "$PKG_CONFIG"; then
24405 if test -n "$PKG_CONFIG" && \
24406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
24407 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
24408 ac_status=$?
24409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24410 test $ac_status = 0; }; then
24411 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
24412 test "x$?" != "x0" && pkg_failed=yes
24413 else
24414 pkg_failed=yes
24415 fi
24416 else
24417 pkg_failed=untried
24418 fi
24419 if test -n "$ZLIB_LIBS"; then
24420 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
24421 elif test -n "$PKG_CONFIG"; then
24422 if test -n "$PKG_CONFIG" && \
24423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
24424 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
24425 ac_status=$?
24426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24427 test $ac_status = 0; }; then
24428 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
24429 test "x$?" != "x0" && pkg_failed=yes
24430 else
24431 pkg_failed=yes
24432 fi
24433 else
24434 pkg_failed=untried
24435 fi
24436
24437
24438
24439 if test $pkg_failed = yes; then
24440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 printf "%s\n" "no" >&6; }
24442
24443 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24444 _pkg_short_errors_supported=yes
24445 else
24446 _pkg_short_errors_supported=no
24447 fi
24448 if test $_pkg_short_errors_supported = yes; then
24449 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
24450 else
24451 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
24452 fi
24453 # Put the nasty error message in config.log where it belongs
24454 echo "$ZLIB_PKG_ERRORS" >&5
24455
24456 :
24457 elif test $pkg_failed = untried; then
24458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24459 printf "%s\n" "no" >&6; }
24460 :
24461 else
24462 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
24463 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
24464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24465 printf "%s\n" "yes" >&6; }
24466
24467 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
24468
24469 fi ;; #(
24470 yes) :
24471
24472 pkg_failed=no
24473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
24474 printf %s "checking for zlib... " >&6; }
24475
24476 if test -n "$ZLIB_CFLAGS"; then
24477 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
24478 elif test -n "$PKG_CONFIG"; then
24479 if test -n "$PKG_CONFIG" && \
24480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
24481 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
24482 ac_status=$?
24483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; then
24485 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
24486 test "x$?" != "x0" && pkg_failed=yes
24487 else
24488 pkg_failed=yes
24489 fi
24490 else
24491 pkg_failed=untried
24492 fi
24493 if test -n "$ZLIB_LIBS"; then
24494 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
24495 elif test -n "$PKG_CONFIG"; then
24496 if test -n "$PKG_CONFIG" && \
24497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
24498 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
24499 ac_status=$?
24500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; then
24502 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
24503 test "x$?" != "x0" && pkg_failed=yes
24504 else
24505 pkg_failed=yes
24506 fi
24507 else
24508 pkg_failed=untried
24509 fi
24510
24511
24512
24513 if test $pkg_failed = yes; then
24514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24515 printf "%s\n" "no" >&6; }
24516
24517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24518 _pkg_short_errors_supported=yes
24519 else
24520 _pkg_short_errors_supported=no
24521 fi
24522 if test $_pkg_short_errors_supported = yes; then
24523 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
24524 else
24525 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
24526 fi
24527 # Put the nasty error message in config.log where it belongs
24528 echo "$ZLIB_PKG_ERRORS" >&5
24529
24530 as_fn_error $? "Package requirements (zlib) were not met:
24531
24532 $ZLIB_PKG_ERRORS
24533
24534 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24535 installed software in a non-standard prefix.
24536
24537 Alternatively, you may set the environment variables ZLIB_CFLAGS
24538 and ZLIB_LIBS to avoid the need to call pkg-config.
24539 See the pkg-config man page for more details." "$LINENO" 5
24540 elif test $pkg_failed = untried; then
24541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24542 printf "%s\n" "no" >&6; }
24543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24544 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24545 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24546 is in your PATH or set the PKG_CONFIG environment variable to the full
24547 path to pkg-config.
24548
24549 Alternatively, you may set the environment variables ZLIB_CFLAGS
24550 and ZLIB_LIBS to avoid the need to call pkg-config.
24551 See the pkg-config man page for more details.
24552
24553 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24554 See \`config.log' for more details" "$LINENO" 5; }
24555 else
24556 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
24557 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
24558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24559 printf "%s\n" "yes" >&6; }
24560
24561 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
24562
24563 fi ;; #(
24564 *) :
24565 as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
24566 esac
24567
24568
24569
24570 #
24571 # was --with-libsystemd specified?
24572 #
24573 # [pairwise: --with-libsystemd=auto, --with-libsystemd=yes, --without-libsystemd]
24574
24575 # Check whether --with-libsystemd was given.
24576 if test ${with_libsystemd+y}
24577 then :
24578 withval=$with_libsystemd;
24579 else $as_nop
24580 with_libsystemd=auto
24581 fi
24582
24583
24584 case $with_libsystemd in #(
24585 no) :
24586 ;; #(
24587 auto) :
24588
24589 pkg_failed=no
24590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
24591 printf %s "checking for libsystemd... " >&6; }
24592
24593 if test -n "$LIBSYSTEMD_CFLAGS"; then
24594 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
24595 elif test -n "$PKG_CONFIG"; then
24596 if test -n "$PKG_CONFIG" && \
24597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
24598 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
24599 ac_status=$?
24600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24601 test $ac_status = 0; }; then
24602 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
24603 test "x$?" != "x0" && pkg_failed=yes
24604 else
24605 pkg_failed=yes
24606 fi
24607 else
24608 pkg_failed=untried
24609 fi
24610 if test -n "$LIBSYSTEMD_LIBS"; then
24611 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
24612 elif test -n "$PKG_CONFIG"; then
24613 if test -n "$PKG_CONFIG" && \
24614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
24615 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
24616 ac_status=$?
24617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24618 test $ac_status = 0; }; then
24619 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
24620 test "x$?" != "x0" && pkg_failed=yes
24621 else
24622 pkg_failed=yes
24623 fi
24624 else
24625 pkg_failed=untried
24626 fi
24627
24628
24629
24630 if test $pkg_failed = yes; then
24631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24632 printf "%s\n" "no" >&6; }
24633
24634 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24635 _pkg_short_errors_supported=yes
24636 else
24637 _pkg_short_errors_supported=no
24638 fi
24639 if test $_pkg_short_errors_supported = yes; then
24640 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
24641 else
24642 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
24643 fi
24644 # Put the nasty error message in config.log where it belongs
24645 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
24646
24647 :
24648 elif test $pkg_failed = untried; then
24649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24650 printf "%s\n" "no" >&6; }
24651 :
24652 else
24653 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
24654 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
24655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24656 printf "%s\n" "yes" >&6; }
24657
24658 printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
24659
24660 fi ;; #(
24661 yes) :
24662
24663 pkg_failed=no
24664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
24665 printf %s "checking for libsystemd... " >&6; }
24666
24667 if test -n "$LIBSYSTEMD_CFLAGS"; then
24668 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
24669 elif test -n "$PKG_CONFIG"; then
24670 if test -n "$PKG_CONFIG" && \
24671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
24672 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
24673 ac_status=$?
24674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24675 test $ac_status = 0; }; then
24676 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
24677 test "x$?" != "x0" && pkg_failed=yes
24678 else
24679 pkg_failed=yes
24680 fi
24681 else
24682 pkg_failed=untried
24683 fi
24684 if test -n "$LIBSYSTEMD_LIBS"; then
24685 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
24686 elif test -n "$PKG_CONFIG"; then
24687 if test -n "$PKG_CONFIG" && \
24688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
24689 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
24690 ac_status=$?
24691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; then
24693 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
24694 test "x$?" != "x0" && pkg_failed=yes
24695 else
24696 pkg_failed=yes
24697 fi
24698 else
24699 pkg_failed=untried
24700 fi
24701
24702
24703
24704 if test $pkg_failed = yes; then
24705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24706 printf "%s\n" "no" >&6; }
24707
24708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24709 _pkg_short_errors_supported=yes
24710 else
24711 _pkg_short_errors_supported=no
24712 fi
24713 if test $_pkg_short_errors_supported = yes; then
24714 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
24715 else
24716 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
24717 fi
24718 # Put the nasty error message in config.log where it belongs
24719 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
24720
24721 as_fn_error $? "Package requirements (libsystemd) were not met:
24722
24723 $LIBSYSTEMD_PKG_ERRORS
24724
24725 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24726 installed software in a non-standard prefix.
24727
24728 Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
24729 and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
24730 See the pkg-config man page for more details." "$LINENO" 5
24731 elif test $pkg_failed = untried; then
24732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24733 printf "%s\n" "no" >&6; }
24734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24736 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24737 is in your PATH or set the PKG_CONFIG environment variable to the full
24738 path to pkg-config.
24739
24740 Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
24741 and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
24742 See the pkg-config man page for more details.
24743
24744 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24745 See \`config.log' for more details" "$LINENO" 5; }
24746 else
24747 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
24748 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
24749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24750 printf "%s\n" "yes" >&6; }
24751
24752 printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
24753
24754 fi ;; #(
24755 *) :
24756 as_fn_error $? "Specifying libsystemd installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
24757 esac
24758
24759
24760
24761 #
24762 # Check if the system supports glibc-compatible backtrace() function.
24763 #
24764 for ac_header in execinfo.h
24765 do :
24766 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
24767 if test "x$ac_cv_header_execinfo_h" = xyes
24768 then :
24769 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
24770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
24771 printf %s "checking for library containing backtrace_symbols... " >&6; }
24772 if test ${ac_cv_search_backtrace_symbols+y}
24773 then :
24774 printf %s "(cached) " >&6
24775 else $as_nop
24776 ac_func_search_save_LIBS=$LIBS
24777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24778 /* end confdefs.h. */
24779
24780 /* Override any GCC internal prototype to avoid an error.
24781 Use char because int might match the return type of a GCC
24782 builtin and then its argument prototype would still apply. */
24783 char backtrace_symbols ();
24784 int
24785 main (void)
24786 {
24787 return backtrace_symbols ();
24788 ;
24789 return 0;
24790 }
24791 _ACEOF
24792 for ac_lib in '' execinfo
24793 do
24794 if test -z "$ac_lib"; then
24795 ac_res="none required"
24796 else
24797 ac_res=-l$ac_lib
24798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24799 fi
24800 if ac_fn_c_try_link "$LINENO"
24801 then :
24802 ac_cv_search_backtrace_symbols=$ac_res
24803 fi
24804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24805 conftest$ac_exeext
24806 if test ${ac_cv_search_backtrace_symbols+y}
24807 then :
24808 break
24809 fi
24810 done
24811 if test ${ac_cv_search_backtrace_symbols+y}
24812 then :
24813
24814 else $as_nop
24815 ac_cv_search_backtrace_symbols=no
24816 fi
24817 rm conftest.$ac_ext
24818 LIBS=$ac_func_search_save_LIBS
24819 fi
24820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
24821 printf "%s\n" "$ac_cv_search_backtrace_symbols" >&6; }
24822 ac_res=$ac_cv_search_backtrace_symbols
24823 if test "$ac_res" != no
24824 then :
24825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24826 ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols"
24827 if test "x$ac_cv_func_backtrace_symbols" = xyes
24828 then :
24829 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h
24830
24831 fi
24832
24833 fi
24834
24835 fi
24836
24837 done
24838
24839 #
24840 # We do the IPv6 compilation checking after libtool so that we can put
24841 # the right suffix on the files.
24842 #
24843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
24844 printf %s "checking for IPv6 structures... " >&6; }
24845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24846 /* end confdefs.h. */
24847
24848 #include <sys/types.h>
24849 #include <sys/socket.h>
24850 #include <netinet/in.h>
24851
24852 int
24853 main (void)
24854 {
24855
24856 struct sockaddr_in6 sin6;
24857 struct in6_addr in6;
24858 struct in6_pktinfo in6_pi;
24859 struct sockaddr_storage storage;
24860 in6 = in6addr_any;
24861 in6 = in6addr_loopback;
24862 sin6.sin6_scope_id = 0;
24863 return (0);
24864
24865 ;
24866 return 0;
24867 }
24868 _ACEOF
24869 if ac_fn_c_try_compile "$LINENO"
24870 then :
24871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24872 printf "%s\n" "yes" >&6; }
24873 else $as_nop
24874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24875 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24876 as_fn_error $? "IPv6 support is mandatory
24877 See \`config.log' for more details" "$LINENO" 5; }
24878 fi
24879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24880
24881 #
24882 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
24883 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
24884 # comment in lib/isc/socket.c).
24885 #
24886 # [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen]
24887 # Check whether --enable-tcp_fastopen was given.
24888 if test ${enable_tcp_fastopen+y}
24889 then :
24890 enableval=$enable_tcp_fastopen;
24891 else $as_nop
24892 enable_tcp_fastopen="yes"
24893 fi
24894
24895
24896 if test "$enable_tcp_fastopen" = "yes"
24897 then :
24898
24899 printf "%s\n" "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
24900
24901 fi
24902
24903 #
24904 # Check for some other useful functions that are not ever-present.
24905 #
24906 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
24907 if test "x$ac_cv_func_strlcpy" = xyes
24908 then :
24909 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
24910
24911 fi
24912 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
24913 if test "x$ac_cv_func_strlcat" = xyes
24914 then :
24915 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
24916
24917 fi
24918 ac_fn_c_check_func "$LINENO" "strnstr" "ac_cv_func_strnstr"
24919 if test "x$ac_cv_func_strnstr" = xyes
24920 then :
24921 printf "%s\n" "#define HAVE_STRNSTR 1" >>confdefs.h
24922
24923 fi
24924
24925
24926 #
24927 # Check for readline support
24928 #
24929
24930 # editline is not included in pairwise testing as the library
24931 # is not present in the relevant Docker image.
24932 #
24933 # GNU Readline is not included in pairwise testing as the library
24934 # in the relevant Docker image does not support pkg-config.
24935 #
24936 # [pairwise: --with-readline=auto, --with-readline=yes, --with-readline=libedit, --without-readline]
24937
24938 # Check whether --with-readline was given.
24939 if test ${with_readline+y}
24940 then :
24941 withval=$with_readline;
24942 else $as_nop
24943 with_readline="auto"
24944 fi
24945
24946
24947 case $with_readline in #(
24948 no) :
24949 ;; #(
24950 auto|yes) :
24951
24952 pkg_failed=no
24953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
24954 printf %s "checking for libedit... " >&6; }
24955
24956 if test -n "$READLINE_CFLAGS"; then
24957 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24958 elif test -n "$PKG_CONFIG"; then
24959 if test -n "$PKG_CONFIG" && \
24960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24961 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24962 ac_status=$?
24963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24964 test $ac_status = 0; }; then
24965 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
24966 test "x$?" != "x0" && pkg_failed=yes
24967 else
24968 pkg_failed=yes
24969 fi
24970 else
24971 pkg_failed=untried
24972 fi
24973 if test -n "$READLINE_LIBS"; then
24974 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24975 elif test -n "$PKG_CONFIG"; then
24976 if test -n "$PKG_CONFIG" && \
24977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24978 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24979 ac_status=$?
24980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24981 test $ac_status = 0; }; then
24982 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
24983 test "x$?" != "x0" && pkg_failed=yes
24984 else
24985 pkg_failed=yes
24986 fi
24987 else
24988 pkg_failed=untried
24989 fi
24990
24991
24992
24993 if test $pkg_failed = yes; then
24994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24995 printf "%s\n" "no" >&6; }
24996
24997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24998 _pkg_short_errors_supported=yes
24999 else
25000 _pkg_short_errors_supported=no
25001 fi
25002 if test $_pkg_short_errors_supported = yes; then
25003 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
25004 else
25005 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
25006 fi
25007 # Put the nasty error message in config.log where it belongs
25008 echo "$READLINE_PKG_ERRORS" >&5
25009
25010
25011 pkg_failed=no
25012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5
25013 printf %s "checking for libeditline... " >&6; }
25014
25015 if test -n "$READLINE_CFLAGS"; then
25016 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25017 elif test -n "$PKG_CONFIG"; then
25018 if test -n "$PKG_CONFIG" && \
25019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
25020 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
25021 ac_status=$?
25022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023 test $ac_status = 0; }; then
25024 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null`
25025 test "x$?" != "x0" && pkg_failed=yes
25026 else
25027 pkg_failed=yes
25028 fi
25029 else
25030 pkg_failed=untried
25031 fi
25032 if test -n "$READLINE_LIBS"; then
25033 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25034 elif test -n "$PKG_CONFIG"; then
25035 if test -n "$PKG_CONFIG" && \
25036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
25037 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
25038 ac_status=$?
25039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; then
25041 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null`
25042 test "x$?" != "x0" && pkg_failed=yes
25043 else
25044 pkg_failed=yes
25045 fi
25046 else
25047 pkg_failed=untried
25048 fi
25049
25050
25051
25052 if test $pkg_failed = yes; then
25053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25054 printf "%s\n" "no" >&6; }
25055
25056 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25057 _pkg_short_errors_supported=yes
25058 else
25059 _pkg_short_errors_supported=no
25060 fi
25061 if test $_pkg_short_errors_supported = yes; then
25062 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1`
25063 else
25064 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1`
25065 fi
25066 # Put the nasty error message in config.log where it belongs
25067 echo "$READLINE_PKG_ERRORS" >&5
25068
25069
25070 pkg_failed=no
25071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25072 printf %s "checking for readline... " >&6; }
25073
25074 if test -n "$READLINE_CFLAGS"; then
25075 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25076 elif test -n "$PKG_CONFIG"; then
25077 if test -n "$PKG_CONFIG" && \
25078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25079 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25080 ac_status=$?
25081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; then
25083 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25084 test "x$?" != "x0" && pkg_failed=yes
25085 else
25086 pkg_failed=yes
25087 fi
25088 else
25089 pkg_failed=untried
25090 fi
25091 if test -n "$READLINE_LIBS"; then
25092 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25093 elif test -n "$PKG_CONFIG"; then
25094 if test -n "$PKG_CONFIG" && \
25095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25096 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25097 ac_status=$?
25098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25099 test $ac_status = 0; }; then
25100 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25101 test "x$?" != "x0" && pkg_failed=yes
25102 else
25103 pkg_failed=yes
25104 fi
25105 else
25106 pkg_failed=untried
25107 fi
25108
25109
25110
25111 if test $pkg_failed = yes; then
25112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25113 printf "%s\n" "no" >&6; }
25114
25115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25116 _pkg_short_errors_supported=yes
25117 else
25118 _pkg_short_errors_supported=no
25119 fi
25120 if test $_pkg_short_errors_supported = yes; then
25121 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25122 else
25123 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25124 fi
25125 # Put the nasty error message in config.log where it belongs
25126 echo "$READLINE_PKG_ERRORS" >&5
25127
25128 if test "$with_readline" = "yes"
25129 then :
25130 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25131 fi
25132 elif test $pkg_failed = untried; then
25133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25134 printf "%s\n" "no" >&6; }
25135 if test "$with_readline" = "yes"
25136 then :
25137 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25138 fi
25139 else
25140 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25141 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25143 printf "%s\n" "yes" >&6; }
25144
25145 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
25146
25147 fi
25148 elif test $pkg_failed = untried; then
25149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 printf "%s\n" "no" >&6; }
25151
25152 pkg_failed=no
25153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25154 printf %s "checking for readline... " >&6; }
25155
25156 if test -n "$READLINE_CFLAGS"; then
25157 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25158 elif test -n "$PKG_CONFIG"; then
25159 if test -n "$PKG_CONFIG" && \
25160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25161 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25162 ac_status=$?
25163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25164 test $ac_status = 0; }; then
25165 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25166 test "x$?" != "x0" && pkg_failed=yes
25167 else
25168 pkg_failed=yes
25169 fi
25170 else
25171 pkg_failed=untried
25172 fi
25173 if test -n "$READLINE_LIBS"; then
25174 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25175 elif test -n "$PKG_CONFIG"; then
25176 if test -n "$PKG_CONFIG" && \
25177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25178 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25179 ac_status=$?
25180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25181 test $ac_status = 0; }; then
25182 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25183 test "x$?" != "x0" && pkg_failed=yes
25184 else
25185 pkg_failed=yes
25186 fi
25187 else
25188 pkg_failed=untried
25189 fi
25190
25191
25192
25193 if test $pkg_failed = yes; then
25194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25195 printf "%s\n" "no" >&6; }
25196
25197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25198 _pkg_short_errors_supported=yes
25199 else
25200 _pkg_short_errors_supported=no
25201 fi
25202 if test $_pkg_short_errors_supported = yes; then
25203 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25204 else
25205 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25206 fi
25207 # Put the nasty error message in config.log where it belongs
25208 echo "$READLINE_PKG_ERRORS" >&5
25209
25210 if test "$with_readline" = "yes"
25211 then :
25212 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25213 fi
25214 elif test $pkg_failed = untried; then
25215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25216 printf "%s\n" "no" >&6; }
25217 if test "$with_readline" = "yes"
25218 then :
25219 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25220 fi
25221 else
25222 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25223 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25225 printf "%s\n" "yes" >&6; }
25226
25227 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
25228
25229 fi
25230 else
25231 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25232 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25234 printf "%s\n" "yes" >&6; }
25235
25236 printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h
25237
25238 fi
25239 elif test $pkg_failed = untried; then
25240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25241 printf "%s\n" "no" >&6; }
25242
25243 pkg_failed=no
25244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5
25245 printf %s "checking for libeditline... " >&6; }
25246
25247 if test -n "$READLINE_CFLAGS"; then
25248 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25249 elif test -n "$PKG_CONFIG"; then
25250 if test -n "$PKG_CONFIG" && \
25251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
25252 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
25253 ac_status=$?
25254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; then
25256 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null`
25257 test "x$?" != "x0" && pkg_failed=yes
25258 else
25259 pkg_failed=yes
25260 fi
25261 else
25262 pkg_failed=untried
25263 fi
25264 if test -n "$READLINE_LIBS"; then
25265 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25266 elif test -n "$PKG_CONFIG"; then
25267 if test -n "$PKG_CONFIG" && \
25268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
25269 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
25270 ac_status=$?
25271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25272 test $ac_status = 0; }; then
25273 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null`
25274 test "x$?" != "x0" && pkg_failed=yes
25275 else
25276 pkg_failed=yes
25277 fi
25278 else
25279 pkg_failed=untried
25280 fi
25281
25282
25283
25284 if test $pkg_failed = yes; then
25285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25286 printf "%s\n" "no" >&6; }
25287
25288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25289 _pkg_short_errors_supported=yes
25290 else
25291 _pkg_short_errors_supported=no
25292 fi
25293 if test $_pkg_short_errors_supported = yes; then
25294 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1`
25295 else
25296 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1`
25297 fi
25298 # Put the nasty error message in config.log where it belongs
25299 echo "$READLINE_PKG_ERRORS" >&5
25300
25301
25302 pkg_failed=no
25303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25304 printf %s "checking for readline... " >&6; }
25305
25306 if test -n "$READLINE_CFLAGS"; then
25307 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25308 elif test -n "$PKG_CONFIG"; then
25309 if test -n "$PKG_CONFIG" && \
25310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25311 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25312 ac_status=$?
25313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; then
25315 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25316 test "x$?" != "x0" && pkg_failed=yes
25317 else
25318 pkg_failed=yes
25319 fi
25320 else
25321 pkg_failed=untried
25322 fi
25323 if test -n "$READLINE_LIBS"; then
25324 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25325 elif test -n "$PKG_CONFIG"; then
25326 if test -n "$PKG_CONFIG" && \
25327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25328 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25329 ac_status=$?
25330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; then
25332 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25333 test "x$?" != "x0" && pkg_failed=yes
25334 else
25335 pkg_failed=yes
25336 fi
25337 else
25338 pkg_failed=untried
25339 fi
25340
25341
25342
25343 if test $pkg_failed = yes; then
25344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25345 printf "%s\n" "no" >&6; }
25346
25347 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25348 _pkg_short_errors_supported=yes
25349 else
25350 _pkg_short_errors_supported=no
25351 fi
25352 if test $_pkg_short_errors_supported = yes; then
25353 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25354 else
25355 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25356 fi
25357 # Put the nasty error message in config.log where it belongs
25358 echo "$READLINE_PKG_ERRORS" >&5
25359
25360 if test "$with_readline" = "yes"
25361 then :
25362 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25363 fi
25364 elif test $pkg_failed = untried; then
25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25366 printf "%s\n" "no" >&6; }
25367 if test "$with_readline" = "yes"
25368 then :
25369 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25370 fi
25371 else
25372 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25373 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25375 printf "%s\n" "yes" >&6; }
25376
25377 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
25378
25379 fi
25380 elif test $pkg_failed = untried; then
25381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25382 printf "%s\n" "no" >&6; }
25383
25384 pkg_failed=no
25385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25386 printf %s "checking for readline... " >&6; }
25387
25388 if test -n "$READLINE_CFLAGS"; then
25389 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25390 elif test -n "$PKG_CONFIG"; then
25391 if test -n "$PKG_CONFIG" && \
25392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25393 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25394 ac_status=$?
25395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; then
25397 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25398 test "x$?" != "x0" && pkg_failed=yes
25399 else
25400 pkg_failed=yes
25401 fi
25402 else
25403 pkg_failed=untried
25404 fi
25405 if test -n "$READLINE_LIBS"; then
25406 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25407 elif test -n "$PKG_CONFIG"; then
25408 if test -n "$PKG_CONFIG" && \
25409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25410 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25411 ac_status=$?
25412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; then
25414 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25415 test "x$?" != "x0" && pkg_failed=yes
25416 else
25417 pkg_failed=yes
25418 fi
25419 else
25420 pkg_failed=untried
25421 fi
25422
25423
25424
25425 if test $pkg_failed = yes; then
25426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25427 printf "%s\n" "no" >&6; }
25428
25429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25430 _pkg_short_errors_supported=yes
25431 else
25432 _pkg_short_errors_supported=no
25433 fi
25434 if test $_pkg_short_errors_supported = yes; then
25435 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25436 else
25437 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25438 fi
25439 # Put the nasty error message in config.log where it belongs
25440 echo "$READLINE_PKG_ERRORS" >&5
25441
25442 if test "$with_readline" = "yes"
25443 then :
25444 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25445 fi
25446 elif test $pkg_failed = untried; then
25447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 printf "%s\n" "no" >&6; }
25449 if test "$with_readline" = "yes"
25450 then :
25451 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
25452 fi
25453 else
25454 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25455 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25457 printf "%s\n" "yes" >&6; }
25458
25459 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
25460
25461 fi
25462 else
25463 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25464 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25466 printf "%s\n" "yes" >&6; }
25467
25468 printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h
25469
25470 fi
25471 else
25472 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25473 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25475 printf "%s\n" "yes" >&6; }
25476
25477 printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h
25478
25479 fi ;; #(
25480 libedit) :
25481
25482 pkg_failed=no
25483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
25484 printf %s "checking for libedit... " >&6; }
25485
25486 if test -n "$READLINE_CFLAGS"; then
25487 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25488 elif test -n "$PKG_CONFIG"; then
25489 if test -n "$PKG_CONFIG" && \
25490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
25491 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
25492 ac_status=$?
25493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; then
25495 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
25496 test "x$?" != "x0" && pkg_failed=yes
25497 else
25498 pkg_failed=yes
25499 fi
25500 else
25501 pkg_failed=untried
25502 fi
25503 if test -n "$READLINE_LIBS"; then
25504 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25505 elif test -n "$PKG_CONFIG"; then
25506 if test -n "$PKG_CONFIG" && \
25507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
25508 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
25509 ac_status=$?
25510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; then
25512 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
25513 test "x$?" != "x0" && pkg_failed=yes
25514 else
25515 pkg_failed=yes
25516 fi
25517 else
25518 pkg_failed=untried
25519 fi
25520
25521
25522
25523 if test $pkg_failed = yes; then
25524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25525 printf "%s\n" "no" >&6; }
25526
25527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25528 _pkg_short_errors_supported=yes
25529 else
25530 _pkg_short_errors_supported=no
25531 fi
25532 if test $_pkg_short_errors_supported = yes; then
25533 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
25534 else
25535 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
25536 fi
25537 # Put the nasty error message in config.log where it belongs
25538 echo "$READLINE_PKG_ERRORS" >&5
25539
25540 as_fn_error $? "Package requirements (libedit) were not met:
25541
25542 $READLINE_PKG_ERRORS
25543
25544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
25545 installed software in a non-standard prefix.
25546
25547 Alternatively, you may set the environment variables READLINE_CFLAGS
25548 and READLINE_LIBS to avoid the need to call pkg-config.
25549 See the pkg-config man page for more details." "$LINENO" 5
25550 elif test $pkg_failed = untried; then
25551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25552 printf "%s\n" "no" >&6; }
25553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25555 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
25556 is in your PATH or set the PKG_CONFIG environment variable to the full
25557 path to pkg-config.
25558
25559 Alternatively, you may set the environment variables READLINE_CFLAGS
25560 and READLINE_LIBS to avoid the need to call pkg-config.
25561 See the pkg-config man page for more details.
25562
25563 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25564 See \`config.log' for more details" "$LINENO" 5; }
25565 else
25566 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25567 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25569 printf "%s\n" "yes" >&6; }
25570
25571 printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h
25572
25573 fi ;; #(
25574 editline) :
25575
25576 pkg_failed=no
25577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5
25578 printf %s "checking for libeditline... " >&6; }
25579
25580 if test -n "$READLINE_CFLAGS"; then
25581 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25582 elif test -n "$PKG_CONFIG"; then
25583 if test -n "$PKG_CONFIG" && \
25584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
25585 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
25586 ac_status=$?
25587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25588 test $ac_status = 0; }; then
25589 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null`
25590 test "x$?" != "x0" && pkg_failed=yes
25591 else
25592 pkg_failed=yes
25593 fi
25594 else
25595 pkg_failed=untried
25596 fi
25597 if test -n "$READLINE_LIBS"; then
25598 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25599 elif test -n "$PKG_CONFIG"; then
25600 if test -n "$PKG_CONFIG" && \
25601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
25602 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
25603 ac_status=$?
25604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; then
25606 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null`
25607 test "x$?" != "x0" && pkg_failed=yes
25608 else
25609 pkg_failed=yes
25610 fi
25611 else
25612 pkg_failed=untried
25613 fi
25614
25615
25616
25617 if test $pkg_failed = yes; then
25618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25619 printf "%s\n" "no" >&6; }
25620
25621 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25622 _pkg_short_errors_supported=yes
25623 else
25624 _pkg_short_errors_supported=no
25625 fi
25626 if test $_pkg_short_errors_supported = yes; then
25627 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1`
25628 else
25629 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1`
25630 fi
25631 # Put the nasty error message in config.log where it belongs
25632 echo "$READLINE_PKG_ERRORS" >&5
25633
25634 as_fn_error $? "Package requirements (libeditline) were not met:
25635
25636 $READLINE_PKG_ERRORS
25637
25638 Consider adjusting the PKG_CONFIG_PATH environment variable if you
25639 installed software in a non-standard prefix.
25640
25641 Alternatively, you may set the environment variables READLINE_CFLAGS
25642 and READLINE_LIBS to avoid the need to call pkg-config.
25643 See the pkg-config man page for more details." "$LINENO" 5
25644 elif test $pkg_failed = untried; then
25645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25646 printf "%s\n" "no" >&6; }
25647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25649 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
25650 is in your PATH or set the PKG_CONFIG environment variable to the full
25651 path to pkg-config.
25652
25653 Alternatively, you may set the environment variables READLINE_CFLAGS
25654 and READLINE_LIBS to avoid the need to call pkg-config.
25655 See the pkg-config man page for more details.
25656
25657 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25658 See \`config.log' for more details" "$LINENO" 5; }
25659 else
25660 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25661 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25663 printf "%s\n" "yes" >&6; }
25664
25665 printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h
25666
25667 fi ;; #(
25668 readline) :
25669
25670 pkg_failed=no
25671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25672 printf %s "checking for readline... " >&6; }
25673
25674 if test -n "$READLINE_CFLAGS"; then
25675 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
25676 elif test -n "$PKG_CONFIG"; then
25677 if test -n "$PKG_CONFIG" && \
25678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25679 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25680 ac_status=$?
25681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25682 test $ac_status = 0; }; then
25683 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25684 test "x$?" != "x0" && pkg_failed=yes
25685 else
25686 pkg_failed=yes
25687 fi
25688 else
25689 pkg_failed=untried
25690 fi
25691 if test -n "$READLINE_LIBS"; then
25692 pkg_cv_READLINE_LIBS="$READLINE_LIBS"
25693 elif test -n "$PKG_CONFIG"; then
25694 if test -n "$PKG_CONFIG" && \
25695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25696 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25697 ac_status=$?
25698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25699 test $ac_status = 0; }; then
25700 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25701 test "x$?" != "x0" && pkg_failed=yes
25702 else
25703 pkg_failed=yes
25704 fi
25705 else
25706 pkg_failed=untried
25707 fi
25708
25709
25710
25711 if test $pkg_failed = yes; then
25712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713 printf "%s\n" "no" >&6; }
25714
25715 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25716 _pkg_short_errors_supported=yes
25717 else
25718 _pkg_short_errors_supported=no
25719 fi
25720 if test $_pkg_short_errors_supported = yes; then
25721 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25722 else
25723 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25724 fi
25725 # Put the nasty error message in config.log where it belongs
25726 echo "$READLINE_PKG_ERRORS" >&5
25727
25728 as_fn_error $? "Package requirements (readline) were not met:
25729
25730 $READLINE_PKG_ERRORS
25731
25732 Consider adjusting the PKG_CONFIG_PATH environment variable if you
25733 installed software in a non-standard prefix.
25734
25735 Alternatively, you may set the environment variables READLINE_CFLAGS
25736 and READLINE_LIBS to avoid the need to call pkg-config.
25737 See the pkg-config man page for more details." "$LINENO" 5
25738 elif test $pkg_failed = untried; then
25739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25740 printf "%s\n" "no" >&6; }
25741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25742 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25743 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
25744 is in your PATH or set the PKG_CONFIG environment variable to the full
25745 path to pkg-config.
25746
25747 Alternatively, you may set the environment variables READLINE_CFLAGS
25748 and READLINE_LIBS to avoid the need to call pkg-config.
25749 See the pkg-config man page for more details.
25750
25751 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25752 See \`config.log' for more details" "$LINENO" 5; }
25753 else
25754 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
25755 READLINE_LIBS=$pkg_cv_READLINE_LIBS
25756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25757 printf "%s\n" "yes" >&6; }
25758
25759 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
25760
25761 fi ;; #(
25762 *) :
25763 as_fn_error $? "Unknown readline '$with_readline' library requested." "$LINENO" 5 ;;
25764 esac
25765 if test -n "$READLINE_LIBS"; then
25766 HAVE_READLINE_TRUE=
25767 HAVE_READLINE_FALSE='#'
25768 else
25769 HAVE_READLINE_TRUE='#'
25770 HAVE_READLINE_FALSE=
25771 fi
25772
25773
25774
25775
25776 #
25777 # Security Stuff
25778 #
25779 # Note it is very recommended to *not* disable chroot(),
25780 # this is only because chroot() was made obsolete by Posix.
25781 #
25782 # [pairwise: --enable-chroot, --disable-chroot]
25783 # Check whether --enable-chroot was given.
25784 if test ${enable_chroot+y}
25785 then :
25786 enableval=$enable_chroot;
25787 fi
25788
25789 case "$enable_chroot" in
25790 yes|'')
25791 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
25792 if test "x$ac_cv_func_chroot" = xyes
25793 then :
25794 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
25795
25796 fi
25797
25798 ;;
25799 no)
25800 ;;
25801 esac
25802
25803 case $host in #(
25804 *-linux*) :
25805
25806 pkg_failed=no
25807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcap" >&5
25808 printf %s "checking for libcap... " >&6; }
25809
25810 if test -n "$LIBCAP_CFLAGS"; then
25811 pkg_cv_LIBCAP_CFLAGS="$LIBCAP_CFLAGS"
25812 elif test -n "$PKG_CONFIG"; then
25813 if test -n "$PKG_CONFIG" && \
25814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5
25815 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5
25816 ac_status=$?
25817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; then
25819 pkg_cv_LIBCAP_CFLAGS=`$PKG_CONFIG --cflags "libcap" 2>/dev/null`
25820 test "x$?" != "x0" && pkg_failed=yes
25821 else
25822 pkg_failed=yes
25823 fi
25824 else
25825 pkg_failed=untried
25826 fi
25827 if test -n "$LIBCAP_LIBS"; then
25828 pkg_cv_LIBCAP_LIBS="$LIBCAP_LIBS"
25829 elif test -n "$PKG_CONFIG"; then
25830 if test -n "$PKG_CONFIG" && \
25831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5
25832 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5
25833 ac_status=$?
25834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25835 test $ac_status = 0; }; then
25836 pkg_cv_LIBCAP_LIBS=`$PKG_CONFIG --libs "libcap" 2>/dev/null`
25837 test "x$?" != "x0" && pkg_failed=yes
25838 else
25839 pkg_failed=yes
25840 fi
25841 else
25842 pkg_failed=untried
25843 fi
25844
25845
25846
25847 if test $pkg_failed = yes; then
25848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25849 printf "%s\n" "no" >&6; }
25850
25851 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25852 _pkg_short_errors_supported=yes
25853 else
25854 _pkg_short_errors_supported=no
25855 fi
25856 if test $_pkg_short_errors_supported = yes; then
25857 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap" 2>&1`
25858 else
25859 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap" 2>&1`
25860 fi
25861 # Put the nasty error message in config.log where it belongs
25862 echo "$LIBCAP_PKG_ERRORS" >&5
25863
25864 as_fn_error $? "Package requirements (libcap) were not met:
25865
25866 $LIBCAP_PKG_ERRORS
25867
25868 Consider adjusting the PKG_CONFIG_PATH environment variable if you
25869 installed software in a non-standard prefix.
25870
25871 Alternatively, you may set the environment variables LIBCAP_CFLAGS
25872 and LIBCAP_LIBS to avoid the need to call pkg-config.
25873 See the pkg-config man page for more details." "$LINENO" 5
25874 elif test $pkg_failed = untried; then
25875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25876 printf "%s\n" "no" >&6; }
25877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25878 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25879 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
25880 is in your PATH or set the PKG_CONFIG environment variable to the full
25881 path to pkg-config.
25882
25883 Alternatively, you may set the environment variables LIBCAP_CFLAGS
25884 and LIBCAP_LIBS to avoid the need to call pkg-config.
25885 See the pkg-config man page for more details.
25886
25887 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25888 See \`config.log' for more details" "$LINENO" 5; }
25889 else
25890 LIBCAP_CFLAGS=$pkg_cv_LIBCAP_CFLAGS
25891 LIBCAP_LIBS=$pkg_cv_LIBCAP_LIBS
25892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25893 printf "%s\n" "yes" >&6; }
25894
25895 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
25896
25897 fi ;; #(
25898 *) :
25899 ;;
25900 esac
25901
25902 case "$host" in
25903 *-solaris*)
25904
25905 printf "%s\n" "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
25906
25907 ;;
25908 esac
25909
25910 #
25911 # Time Zone Stuff
25912 #
25913 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
25914 if test "x$ac_cv_func_tzset" = xyes
25915 then :
25916 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
25917
25918 fi
25919
25920
25921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
25922 printf %s "checking for optarg declaration... " >&6; }
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h. */
25925 #include <unistd.h>
25926 int
25927 main (void)
25928 {
25929 optarg = 0;
25930
25931 ;
25932 return 0;
25933 }
25934 _ACEOF
25935 if ac_fn_c_try_compile "$LINENO"
25936 then :
25937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25938 printf "%s\n" "yes" >&6; }
25939 else $as_nop
25940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25941 printf "%s\n" "no" >&6; }
25942 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
25943
25944 printf "%s\n" "#define NEED_OPTARG 1" >>confdefs.h
25945
25946
25947 fi
25948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25949
25950 #
25951 # Check for nanoseconds in file stats
25952 #
25953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
25954 printf %s "checking for st_mtim.tv_nsec... " >&6; }
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h. */
25957 #include <sys/stat.h>
25958 int
25959 main (void)
25960 {
25961 struct stat s;
25962 return(s.st_mtim.tv_nsec);
25963
25964 ;
25965 return 0;
25966 }
25967 _ACEOF
25968 if ac_fn_c_try_compile "$LINENO"
25969 then :
25970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25971 printf "%s\n" "yes" >&6; }
25972
25973 printf "%s\n" "#define HAVE_STAT_NSEC 1" >>confdefs.h
25974
25975 else $as_nop
25976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25977 printf "%s\n" "no" >&6; }
25978 fi
25979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25980
25981 #
25982 # Check for if_nametoindex() for IPv6 scoped addresses support
25983 #
25984 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
25985 if test "x$ac_cv_func_if_nametoindex" = xyes
25986 then :
25987 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
25988
25989 fi
25990
25991
25992 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
25993 if test "x$ac_cv_header_uchar_h" = xyes
25994 then :
25995 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
25996
25997 fi
25998
25999
26000 #
26001 # Check for __builtin_unreachable
26002 #
26003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
26004 printf %s "checking compiler support for __builtin_unreachable()... " >&6; }
26005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h. */
26007
26008 int
26009 main (void)
26010 {
26011 __builtin_unreachable();
26012
26013 ;
26014 return 0;
26015 }
26016 _ACEOF
26017 if ac_fn_c_try_link "$LINENO"
26018 then :
26019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26020 printf "%s\n" "yes" >&6; }
26021
26022 printf "%s\n" "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
26023
26024
26025 else $as_nop
26026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26027 printf "%s\n" "no" >&6; }
26028
26029 fi
26030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26031 conftest$ac_exeext conftest.$ac_ext
26032
26033 #
26034 # Check for __builtin_clz
26035 #
26036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
26037 printf %s "checking compiler support for __builtin_clz... " >&6; }
26038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26039 /* end confdefs.h. */
26040
26041 int
26042 main (void)
26043 {
26044 return (__builtin_clz(0xff) == 24 ? 1 : 0);
26045
26046 ;
26047 return 0;
26048 }
26049 _ACEOF
26050 if ac_fn_c_try_link "$LINENO"
26051 then :
26052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26053 printf "%s\n" "yes" >&6; }
26054
26055 printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
26056
26057
26058 else $as_nop
26059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26060 printf "%s\n" "no" >&6; }
26061
26062 fi
26063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26064 conftest$ac_exeext conftest.$ac_ext
26065
26066 #
26067 # Check for __builtin_*_overflow
26068 #
26069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_add_overflow()" >&5
26070 printf %s "checking compiler support for __builtin_add_overflow()... " >&6; }
26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26073 #include <limits.h>
26074 int
26075 main (void)
26076 {
26077 return (__builtin_add_overflow((unsigned int)UINT_MAX, (unsigned int)UINT_MAX, &(unsigned int){ 0 }));
26078
26079 ;
26080 return 0;
26081 }
26082 _ACEOF
26083 if ac_fn_c_try_link "$LINENO"
26084 then :
26085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26086 printf "%s\n" "yes" >&6; }
26087
26088 printf "%s\n" "#define HAVE_BUILTIN_ADD_OVERFLOW 1" >>confdefs.h
26089
26090
26091 else $as_nop
26092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26093 printf "%s\n" "no" >&6; }
26094
26095 fi
26096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26097 conftest$ac_exeext conftest.$ac_ext
26098
26099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_sub_overflow()" >&5
26100 printf %s "checking compiler support for __builtin_sub_overflow()... " >&6; }
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26103 #include <limits.h>
26104 int
26105 main (void)
26106 {
26107 return (__builtin_sub_overflow((unsigned int)0, (unsigned int)UINT_MAX, &(unsigned int){ 0 }));
26108
26109 ;
26110 return 0;
26111 }
26112 _ACEOF
26113 if ac_fn_c_try_link "$LINENO"
26114 then :
26115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26116 printf "%s\n" "yes" >&6; }
26117
26118 printf "%s\n" "#define HAVE_BUILTIN_SUB_OVERFLOW 1" >>confdefs.h
26119
26120
26121 else $as_nop
26122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26123 printf "%s\n" "no" >&6; }
26124
26125 fi
26126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26127 conftest$ac_exeext conftest.$ac_ext
26128
26129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_mul_overflow()" >&5
26130 printf %s "checking compiler support for __builtin_mul_overflow()... " >&6; }
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26133 #include <limits.h>
26134 #include <stdint.h>
26135
26136 int
26137 main (void)
26138 {
26139 return (__builtin_mul_overflow(UINT64_MAX, UINT64_MAX, &(uint64_t){ 0 }));
26140
26141 ;
26142 return 0;
26143 }
26144 _ACEOF
26145 if ac_fn_c_try_link "$LINENO"
26146 then :
26147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26148 printf "%s\n" "yes" >&6; }
26149
26150 printf "%s\n" "#define HAVE_BUILTIN_MUL_OVERFLOW 1" >>confdefs.h
26151
26152
26153 else $as_nop
26154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26155 printf "%s\n" "no" >&6; }
26156
26157 fi
26158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26159 conftest$ac_exeext conftest.$ac_ext
26160
26161 #
26162 # Activate "rrset-order fixed" or not?
26163 #
26164 # [pairwise: --enable-fixed-rrset, --disable-fixed-rrset]
26165 # Check whether --enable-fixed-rrset was given.
26166 if test ${enable_fixed_rrset+y}
26167 then :
26168 enableval=$enable_fixed_rrset;
26169 else $as_nop
26170 enable_fixed_rrset="no"
26171 fi
26172
26173 if test "$enable_fixed_rrset" = "yes"
26174 then :
26175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fixed rrset ordering is deprecated and will be removed in the future release" >&5
26176 printf "%s\n" "$as_me: WARNING: fixed rrset ordering is deprecated and will be removed in the future release" >&2;}
26177
26178 printf "%s\n" "#define DNS_RDATASET_FIXED 1" >>confdefs.h
26179
26180 fi
26181
26182 #
26183 # Activate dnstap?
26184 #
26185 # [pairwise: --enable-dnstap, --disable-dnstap]
26186 # Check whether --enable-dnstap was given.
26187 if test ${enable_dnstap+y}
26188 then :
26189 enableval=$enable_dnstap;
26190 else $as_nop
26191 enable_dnstap=no
26192 fi
26193
26194
26195 if test "$enable_dnstap" != "no"
26196 then :
26197
26198 pkg_failed=no
26199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfstrm libprotobuf-c" >&5
26200 printf %s "checking for libfstrm libprotobuf-c... " >&6; }
26201
26202 if test -n "$DNSTAP_CFLAGS"; then
26203 pkg_cv_DNSTAP_CFLAGS="$DNSTAP_CFLAGS"
26204 elif test -n "$PKG_CONFIG"; then
26205 if test -n "$PKG_CONFIG" && \
26206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5
26207 ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5
26208 ac_status=$?
26209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210 test $ac_status = 0; }; then
26211 pkg_cv_DNSTAP_CFLAGS=`$PKG_CONFIG --cflags "libfstrm libprotobuf-c" 2>/dev/null`
26212 test "x$?" != "x0" && pkg_failed=yes
26213 else
26214 pkg_failed=yes
26215 fi
26216 else
26217 pkg_failed=untried
26218 fi
26219 if test -n "$DNSTAP_LIBS"; then
26220 pkg_cv_DNSTAP_LIBS="$DNSTAP_LIBS"
26221 elif test -n "$PKG_CONFIG"; then
26222 if test -n "$PKG_CONFIG" && \
26223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5
26224 ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5
26225 ac_status=$?
26226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26227 test $ac_status = 0; }; then
26228 pkg_cv_DNSTAP_LIBS=`$PKG_CONFIG --libs "libfstrm libprotobuf-c" 2>/dev/null`
26229 test "x$?" != "x0" && pkg_failed=yes
26230 else
26231 pkg_failed=yes
26232 fi
26233 else
26234 pkg_failed=untried
26235 fi
26236
26237
26238
26239 if test $pkg_failed = yes; then
26240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26241 printf "%s\n" "no" >&6; }
26242
26243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26244 _pkg_short_errors_supported=yes
26245 else
26246 _pkg_short_errors_supported=no
26247 fi
26248 if test $_pkg_short_errors_supported = yes; then
26249 DNSTAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1`
26250 else
26251 DNSTAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1`
26252 fi
26253 # Put the nasty error message in config.log where it belongs
26254 echo "$DNSTAP_PKG_ERRORS" >&5
26255
26256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26257 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26258 as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them.
26259 See \`config.log' for more details" "$LINENO" 5; }
26260 elif test $pkg_failed = untried; then
26261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26262 printf "%s\n" "no" >&6; }
26263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26264 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26265 as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them.
26266 See \`config.log' for more details" "$LINENO" 5; }
26267 else
26268 DNSTAP_CFLAGS=$pkg_cv_DNSTAP_CFLAGS
26269 DNSTAP_LIBS=$pkg_cv_DNSTAP_LIBS
26270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26271 printf "%s\n" "yes" >&6; }
26272
26273 fi
26274 # Extract the first word of "fstrm_capture", so it can be a program name with args.
26275 set dummy fstrm_capture; ac_word=$2
26276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26277 printf %s "checking for $ac_word... " >&6; }
26278 if test ${ac_cv_path_FSTRM_CAPTURE+y}
26279 then :
26280 printf %s "(cached) " >&6
26281 else $as_nop
26282 case $FSTRM_CAPTURE in
26283 [\\/]* | ?:[\\/]*)
26284 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
26285 ;;
26286 *)
26287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26288 for as_dir in $PATH
26289 do
26290 IFS=$as_save_IFS
26291 case $as_dir in #(((
26292 '') as_dir=./ ;;
26293 */) ;;
26294 *) as_dir=$as_dir/ ;;
26295 esac
26296 for ac_exec_ext in '' $ac_executable_extensions; do
26297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26298 ac_cv_path_FSTRM_CAPTURE="$as_dir$ac_word$ac_exec_ext"
26299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26300 break 2
26301 fi
26302 done
26303 done
26304 IFS=$as_save_IFS
26305
26306 ;;
26307 esac
26308 fi
26309 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
26310 if test -n "$FSTRM_CAPTURE"; then
26311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
26312 printf "%s\n" "$FSTRM_CAPTURE" >&6; }
26313 else
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26315 printf "%s\n" "no" >&6; }
26316 fi
26317
26318
26319 # Extract the first word of "protoc-c", so it can be a program name with args.
26320 set dummy protoc-c; ac_word=$2
26321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26322 printf %s "checking for $ac_word... " >&6; }
26323 if test ${ac_cv_path_PROTOC_C+y}
26324 then :
26325 printf %s "(cached) " >&6
26326 else $as_nop
26327 case $PROTOC_C in
26328 [\\/]* | ?:[\\/]*)
26329 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
26330 ;;
26331 *)
26332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26333 for as_dir in $PATH
26334 do
26335 IFS=$as_save_IFS
26336 case $as_dir in #(((
26337 '') as_dir=./ ;;
26338 */) ;;
26339 *) as_dir=$as_dir/ ;;
26340 esac
26341 for ac_exec_ext in '' $ac_executable_extensions; do
26342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26343 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext"
26344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26345 break 2
26346 fi
26347 done
26348 done
26349 IFS=$as_save_IFS
26350
26351 ;;
26352 esac
26353 fi
26354 PROTOC_C=$ac_cv_path_PROTOC_C
26355 if test -n "$PROTOC_C"; then
26356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
26357 printf "%s\n" "$PROTOC_C" >&6; }
26358 else
26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26360 printf "%s\n" "no" >&6; }
26361 fi
26362
26363
26364 if test -z "$PROTOC_C"
26365 then :
26366 as_fn_error $? "protoc-c compiler not found" "$LINENO" 5
26367 fi
26368
26369 printf "%s\n" "#define HAVE_DNSTAP 1" >>confdefs.h
26370
26371
26372 fi
26373
26374
26375
26376 if test "$enable_dnstap" != "no"; then
26377 HAVE_DNSTAP_TRUE=
26378 HAVE_DNSTAP_FALSE='#'
26379 else
26380 HAVE_DNSTAP_TRUE='#'
26381 HAVE_DNSTAP_FALSE=
26382 fi
26383
26384 #
26385 # The following sections deal with tools used for formatting
26386 # the documentation. They are all optional, unless you are
26387 # a developer editing the documentation source.
26388 #
26389
26390 #
26391 # Look for sphinx-build
26392 #
26393
26394 # Extract the first word of "sphinx-build", so it can be a program name with args.
26395 set dummy sphinx-build; ac_word=$2
26396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26397 printf %s "checking for $ac_word... " >&6; }
26398 if test ${ac_cv_path_SPHINX_BUILD+y}
26399 then :
26400 printf %s "(cached) " >&6
26401 else $as_nop
26402 case $SPHINX_BUILD in
26403 [\\/]* | ?:[\\/]*)
26404 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
26405 ;;
26406 *)
26407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26408 for as_dir in $PATH
26409 do
26410 IFS=$as_save_IFS
26411 case $as_dir in #(((
26412 '') as_dir=./ ;;
26413 */) ;;
26414 *) as_dir=$as_dir/ ;;
26415 esac
26416 for ac_exec_ext in '' $ac_executable_extensions; do
26417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26418 ac_cv_path_SPHINX_BUILD="$as_dir$ac_word$ac_exec_ext"
26419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26420 break 2
26421 fi
26422 done
26423 done
26424 IFS=$as_save_IFS
26425
26426 ;;
26427 esac
26428 fi
26429 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
26430 if test -n "$SPHINX_BUILD"; then
26431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
26432 printf "%s\n" "$SPHINX_BUILD" >&6; }
26433 else
26434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26435 printf "%s\n" "no" >&6; }
26436 fi
26437
26438
26439 if test -n "$SPHINX_BUILD"; then
26440 HAVE_SPHINX_BUILD_TRUE=
26441 HAVE_SPHINX_BUILD_FALSE='#'
26442 else
26443 HAVE_SPHINX_BUILD_TRUE='#'
26444 HAVE_SPHINX_BUILD_FALSE=
26445 fi
26446
26447
26448 #
26449 # Build the man pages only if we have prebuilt manpages or we can build them from RST sources
26450 #
26451 if test -e doc/man/named.conf.5in || test -n "$SPHINX_BUILD"; then
26452 BUILD_MANPAGES_TRUE=
26453 BUILD_MANPAGES_FALSE='#'
26454 else
26455 BUILD_MANPAGES_TRUE='#'
26456 BUILD_MANPAGES_FALSE=
26457 fi
26458
26459
26460 #
26461 # Pull release date from changelog.rst file last modification date
26462 # for reproducible builds
26463 #
26464 release_date=`date -u -r doc/arm/changelog.rst +%Y-%m-%d`
26465 RELEASE_DATE=$release_date
26466
26467
26468 #
26469 # Look for Doxygen
26470 #
26471 for ac_prog in doxygen
26472 do
26473 # Extract the first word of "$ac_prog", so it can be a program name with args.
26474 set dummy $ac_prog; ac_word=$2
26475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26476 printf %s "checking for $ac_word... " >&6; }
26477 if test ${ac_cv_path_DOXYGEN+y}
26478 then :
26479 printf %s "(cached) " >&6
26480 else $as_nop
26481 case $DOXYGEN in
26482 [\\/]* | ?:[\\/]*)
26483 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26484 ;;
26485 *)
26486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26487 for as_dir in $PATH
26488 do
26489 IFS=$as_save_IFS
26490 case $as_dir in #(((
26491 '') as_dir=./ ;;
26492 */) ;;
26493 *) as_dir=$as_dir/ ;;
26494 esac
26495 for ac_exec_ext in '' $ac_executable_extensions; do
26496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26497 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
26498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26499 break 2
26500 fi
26501 done
26502 done
26503 IFS=$as_save_IFS
26504
26505 ;;
26506 esac
26507 fi
26508 DOXYGEN=$ac_cv_path_DOXYGEN
26509 if test -n "$DOXYGEN"; then
26510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
26511 printf "%s\n" "$DOXYGEN" >&6; }
26512 else
26513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26514 printf "%s\n" "no" >&6; }
26515 fi
26516
26517
26518 test -n "$DOXYGEN" && break
26519 done
26520
26521
26522 ac_config_files="$ac_config_files doc/doxygen/doxygen-input-filter"
26523
26524
26525 #
26526 # Look for curl
26527 #
26528
26529 # Extract the first word of "curl", so it can be a program name with args.
26530 set dummy curl; ac_word=$2
26531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26532 printf %s "checking for $ac_word... " >&6; }
26533 if test ${ac_cv_path_CURL+y}
26534 then :
26535 printf %s "(cached) " >&6
26536 else $as_nop
26537 case $CURL in
26538 [\\/]* | ?:[\\/]*)
26539 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
26540 ;;
26541 *)
26542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543 for as_dir in $PATH
26544 do
26545 IFS=$as_save_IFS
26546 case $as_dir in #(((
26547 '') as_dir=./ ;;
26548 */) ;;
26549 *) as_dir=$as_dir/ ;;
26550 esac
26551 for ac_exec_ext in '' $ac_executable_extensions; do
26552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26553 ac_cv_path_CURL="$as_dir$ac_word$ac_exec_ext"
26554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26555 break 2
26556 fi
26557 done
26558 done
26559 IFS=$as_save_IFS
26560
26561 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
26562 ;;
26563 esac
26564 fi
26565 CURL=$ac_cv_path_CURL
26566 if test -n "$CURL"; then
26567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
26568 printf "%s\n" "$CURL" >&6; }
26569 else
26570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26571 printf "%s\n" "no" >&6; }
26572 fi
26573
26574
26575
26576
26577 #
26578 # Look for nc
26579 #
26580
26581 for ac_prog in nc
26582 do
26583 # Extract the first word of "$ac_prog", so it can be a program name with args.
26584 set dummy $ac_prog; ac_word=$2
26585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26586 printf %s "checking for $ac_word... " >&6; }
26587 if test ${ac_cv_path_NC+y}
26588 then :
26589 printf %s "(cached) " >&6
26590 else $as_nop
26591 case $NC in
26592 [\\/]* | ?:[\\/]*)
26593 ac_cv_path_NC="$NC" # Let the user override the test with a path.
26594 ;;
26595 *)
26596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26597 for as_dir in $PATH
26598 do
26599 IFS=$as_save_IFS
26600 case $as_dir in #(((
26601 '') as_dir=./ ;;
26602 */) ;;
26603 *) as_dir=$as_dir/ ;;
26604 esac
26605 for ac_exec_ext in '' $ac_executable_extensions; do
26606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26607 ac_cv_path_NC="$as_dir$ac_word$ac_exec_ext"
26608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26609 break 2
26610 fi
26611 done
26612 done
26613 IFS=$as_save_IFS
26614
26615 ;;
26616 esac
26617 fi
26618 NC=$ac_cv_path_NC
26619 if test -n "$NC"; then
26620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
26621 printf "%s\n" "$NC" >&6; }
26622 else
26623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26624 printf "%s\n" "no" >&6; }
26625 fi
26626
26627
26628 test -n "$NC" && break
26629 done
26630 test -n "$NC" || NC="nc"
26631
26632
26633
26634 #
26635 # IDN support using libidn2
26636 #
26637
26638 LIBIDN2_CFLAGS=
26639 LIBIDN2_LIBS=
26640
26641 # [pairwise: --with-libidn2=yes, --without-libidn2]
26642
26643 # Check whether --with-libidn2 was given.
26644 if test ${with_libidn2+y}
26645 then :
26646 withval=$with_libidn2; with_libidn2="$withval"
26647 else $as_nop
26648 with_libidn2="no"
26649 fi
26650
26651 case $with_libidn2 in #(
26652 yes) :
26653
26654 pkg_failed=no
26655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
26656 printf %s "checking for libidn2... " >&6; }
26657
26658 if test -n "$LIBIDN2_CFLAGS"; then
26659 pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
26660 elif test -n "$PKG_CONFIG"; then
26661 if test -n "$PKG_CONFIG" && \
26662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
26663 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
26664 ac_status=$?
26665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26666 test $ac_status = 0; }; then
26667 pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
26668 test "x$?" != "x0" && pkg_failed=yes
26669 else
26670 pkg_failed=yes
26671 fi
26672 else
26673 pkg_failed=untried
26674 fi
26675 if test -n "$LIBIDN2_LIBS"; then
26676 pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
26677 elif test -n "$PKG_CONFIG"; then
26678 if test -n "$PKG_CONFIG" && \
26679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
26680 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
26681 ac_status=$?
26682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; then
26684 pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
26685 test "x$?" != "x0" && pkg_failed=yes
26686 else
26687 pkg_failed=yes
26688 fi
26689 else
26690 pkg_failed=untried
26691 fi
26692
26693
26694
26695 if test $pkg_failed = yes; then
26696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697 printf "%s\n" "no" >&6; }
26698
26699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26700 _pkg_short_errors_supported=yes
26701 else
26702 _pkg_short_errors_supported=no
26703 fi
26704 if test $_pkg_short_errors_supported = yes; then
26705 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
26706 else
26707 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
26708 fi
26709 # Put the nasty error message in config.log where it belongs
26710 echo "$LIBIDN2_PKG_ERRORS" >&5
26711
26712 as_fn_error $? "Package requirements (libidn2) were not met:
26713
26714 $LIBIDN2_PKG_ERRORS
26715
26716 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26717 installed software in a non-standard prefix.
26718
26719 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
26720 and LIBIDN2_LIBS to avoid the need to call pkg-config.
26721 See the pkg-config man page for more details." "$LINENO" 5
26722 elif test $pkg_failed = untried; then
26723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26724 printf "%s\n" "no" >&6; }
26725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26726 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26727 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
26728 is in your PATH or set the PKG_CONFIG environment variable to the full
26729 path to pkg-config.
26730
26731 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
26732 and LIBIDN2_LIBS to avoid the need to call pkg-config.
26733 See the pkg-config man page for more details.
26734
26735 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26736 See \`config.log' for more details" "$LINENO" 5; }
26737 else
26738 LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
26739 LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
26740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26741 printf "%s\n" "yes" >&6; }
26742
26743 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
26744
26745 fi ;; #(
26746 no) :
26747 ;; #(
26748 *) :
26749
26750
26751 CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
26752
26753
26754
26755 CFLAGS_libidn2_ax_save_flags=$CFLAGS
26756
26757
26758
26759 CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
26760
26761
26762
26763 CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
26764
26765
26766
26767 ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
26768
26769
26770
26771 FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
26772
26773
26774
26775 FCLIBS_libidn2_ax_save_flags=$FCLIBS
26776
26777
26778
26779 FFLAGS_libidn2_ax_save_flags=$FFLAGS
26780
26781
26782
26783 FLIBS_libidn2_ax_save_flags=$FLIBS
26784
26785
26786
26787 GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
26788
26789
26790
26791 JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
26792
26793
26794
26795 LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
26796
26797
26798
26799 LIBS_libidn2_ax_save_flags=$LIBS
26800
26801
26802
26803 OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
26804
26805
26806
26807 OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
26808
26809
26810
26811 UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
26812
26813
26814
26815 VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
26816
26817
26818
26819 LIBIDN2_CFLAGS="-I$with_libidn2/include"
26820 LIBIDN2_LIBS="-L$with_libidn2/lib"
26821 CFLAGS="$CFLAGS $LIBIDN2_CFLAGS"
26822 LIBS="$LIBS $LIBIDN2_LIBS"
26823 for ac_header in idn2.h
26824 do :
26825 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
26826 if test "x$ac_cv_header_idn2_h" = xyes
26827 then :
26828 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
26829
26830 else $as_nop
26831 as_fn_error $? "idn2.h not found" "$LINENO" 5
26832 fi
26833
26834 done
26835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
26836 printf %s "checking for library containing idn2_to_ascii_lz... " >&6; }
26837 if test ${ac_cv_search_idn2_to_ascii_lz+y}
26838 then :
26839 printf %s "(cached) " >&6
26840 else $as_nop
26841 ac_func_search_save_LIBS=$LIBS
26842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26843 /* end confdefs.h. */
26844
26845 /* Override any GCC internal prototype to avoid an error.
26846 Use char because int might match the return type of a GCC
26847 builtin and then its argument prototype would still apply. */
26848 char idn2_to_ascii_lz ();
26849 int
26850 main (void)
26851 {
26852 return idn2_to_ascii_lz ();
26853 ;
26854 return 0;
26855 }
26856 _ACEOF
26857 for ac_lib in '' idn2
26858 do
26859 if test -z "$ac_lib"; then
26860 ac_res="none required"
26861 else
26862 ac_res=-l$ac_lib
26863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26864 fi
26865 if ac_fn_c_try_link "$LINENO"
26866 then :
26867 ac_cv_search_idn2_to_ascii_lz=$ac_res
26868 fi
26869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26870 conftest$ac_exeext
26871 if test ${ac_cv_search_idn2_to_ascii_lz+y}
26872 then :
26873 break
26874 fi
26875 done
26876 if test ${ac_cv_search_idn2_to_ascii_lz+y}
26877 then :
26878
26879 else $as_nop
26880 ac_cv_search_idn2_to_ascii_lz=no
26881 fi
26882 rm conftest.$ac_ext
26883 LIBS=$ac_func_search_save_LIBS
26884 fi
26885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
26886 printf "%s\n" "$ac_cv_search_idn2_to_ascii_lz" >&6; }
26887 ac_res=$ac_cv_search_idn2_to_ascii_lz
26888 if test "$ac_res" != no
26889 then :
26890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26891 LIBIDN2_LIBS="$LIBIDN2_LIBS $ac_cv_search_idn2_to_ascii_lz"
26892
26893 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
26894
26895 else $as_nop
26896 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
26897 fi
26898
26899
26900 CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
26901
26902
26903 CFLAGS=$CFLAGS_libidn2_ax_save_flags
26904
26905
26906 CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
26907
26908
26909 CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
26910
26911
26912 ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
26913
26914
26915 FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
26916
26917
26918 FCLIBS=$FCLIBS_libidn2_ax_save_flags
26919
26920
26921 FFLAGS=$FFLAGS_libidn2_ax_save_flags
26922
26923
26924 FLIBS=$FLIBS_libidn2_ax_save_flags
26925
26926
26927 GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
26928
26929
26930 JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
26931
26932
26933 LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
26934
26935
26936 LIBS=$LIBS_libidn2_ax_save_flags
26937
26938
26939 OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
26940
26941
26942 OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
26943
26944
26945 UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
26946
26947
26948 VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
26949
26950
26951 ;; #(
26952 *) :
26953 ;;
26954 esac
26955
26956
26957
26958 #
26959 # Check whether to build with cmocka unit testing framework
26960 #
26961 # [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka]
26962
26963 # Check whether --with-cmocka was given.
26964 if test ${with_cmocka+y}
26965 then :
26966 withval=$with_cmocka;
26967 else $as_nop
26968 with_cmocka=detect
26969 fi
26970
26971
26972 case $with_cmocka in #(
26973 no) :
26974 ;; #(
26975 detect) :
26976
26977 pkg_failed=no
26978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
26979 printf %s "checking for cmocka >= 1.1.3... " >&6; }
26980
26981 if test -n "$CMOCKA_CFLAGS"; then
26982 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
26983 elif test -n "$PKG_CONFIG"; then
26984 if test -n "$PKG_CONFIG" && \
26985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
26986 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
26987 ac_status=$?
26988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26989 test $ac_status = 0; }; then
26990 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
26991 test "x$?" != "x0" && pkg_failed=yes
26992 else
26993 pkg_failed=yes
26994 fi
26995 else
26996 pkg_failed=untried
26997 fi
26998 if test -n "$CMOCKA_LIBS"; then
26999 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
27000 elif test -n "$PKG_CONFIG"; then
27001 if test -n "$PKG_CONFIG" && \
27002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
27003 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
27004 ac_status=$?
27005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27006 test $ac_status = 0; }; then
27007 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
27008 test "x$?" != "x0" && pkg_failed=yes
27009 else
27010 pkg_failed=yes
27011 fi
27012 else
27013 pkg_failed=untried
27014 fi
27015
27016
27017
27018 if test $pkg_failed = yes; then
27019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27020 printf "%s\n" "no" >&6; }
27021
27022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27023 _pkg_short_errors_supported=yes
27024 else
27025 _pkg_short_errors_supported=no
27026 fi
27027 if test $_pkg_short_errors_supported = yes; then
27028 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
27029 else
27030 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
27031 fi
27032 # Put the nasty error message in config.log where it belongs
27033 echo "$CMOCKA_PKG_ERRORS" >&5
27034
27035 with_cmocka=no
27036 elif test $pkg_failed = untried; then
27037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27038 printf "%s\n" "no" >&6; }
27039 with_cmocka=no
27040 else
27041 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
27042 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
27043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27044 printf "%s\n" "yes" >&6; }
27045
27046 printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h
27047
27048 with_cmocka=yes
27049 fi ;; #(
27050 yes) :
27051
27052 pkg_failed=no
27053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
27054 printf %s "checking for cmocka >= 1.1.3... " >&6; }
27055
27056 if test -n "$CMOCKA_CFLAGS"; then
27057 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
27058 elif test -n "$PKG_CONFIG"; then
27059 if test -n "$PKG_CONFIG" && \
27060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
27061 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
27062 ac_status=$?
27063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; then
27065 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
27066 test "x$?" != "x0" && pkg_failed=yes
27067 else
27068 pkg_failed=yes
27069 fi
27070 else
27071 pkg_failed=untried
27072 fi
27073 if test -n "$CMOCKA_LIBS"; then
27074 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
27075 elif test -n "$PKG_CONFIG"; then
27076 if test -n "$PKG_CONFIG" && \
27077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
27078 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
27079 ac_status=$?
27080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081 test $ac_status = 0; }; then
27082 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
27083 test "x$?" != "x0" && pkg_failed=yes
27084 else
27085 pkg_failed=yes
27086 fi
27087 else
27088 pkg_failed=untried
27089 fi
27090
27091
27092
27093 if test $pkg_failed = yes; then
27094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095 printf "%s\n" "no" >&6; }
27096
27097 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27098 _pkg_short_errors_supported=yes
27099 else
27100 _pkg_short_errors_supported=no
27101 fi
27102 if test $_pkg_short_errors_supported = yes; then
27103 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
27104 else
27105 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
27106 fi
27107 # Put the nasty error message in config.log where it belongs
27108 echo "$CMOCKA_PKG_ERRORS" >&5
27109
27110 as_fn_error $? "Package requirements (cmocka >= 1.1.3) were not met:
27111
27112 $CMOCKA_PKG_ERRORS
27113
27114 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27115 installed software in a non-standard prefix.
27116
27117 Alternatively, you may set the environment variables CMOCKA_CFLAGS
27118 and CMOCKA_LIBS to avoid the need to call pkg-config.
27119 See the pkg-config man page for more details." "$LINENO" 5
27120 elif test $pkg_failed = untried; then
27121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27122 printf "%s\n" "no" >&6; }
27123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27124 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
27125 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27126 is in your PATH or set the PKG_CONFIG environment variable to the full
27127 path to pkg-config.
27128
27129 Alternatively, you may set the environment variables CMOCKA_CFLAGS
27130 and CMOCKA_LIBS to avoid the need to call pkg-config.
27131 See the pkg-config man page for more details.
27132
27133 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27134 See \`config.log' for more details" "$LINENO" 5; }
27135 else
27136 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
27137 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
27138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27139 printf "%s\n" "yes" >&6; }
27140
27141 printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h
27142
27143 fi ;; #(
27144 *) :
27145 as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
27146 ;;
27147 esac
27148
27149
27150
27151 if test "$with_cmocka" = "yes"; then
27152 HAVE_CMOCKA_TRUE=
27153 HAVE_CMOCKA_FALSE='#'
27154 else
27155 HAVE_CMOCKA_TRUE='#'
27156 HAVE_CMOCKA_FALSE=
27157 fi
27158
27159
27160 #
27161 # Compile with jemalloc (either provided as package or wired in the system on FreeBSD)
27162 #
27163 # [pairwise: --with-jemalloc=detect, --with-jemalloc=yes, --without-jemalloc]
27164
27165 # Check whether --with-jemalloc was given.
27166 if test ${with_jemalloc+y}
27167 then :
27168 withval=$with_jemalloc;
27169 else $as_nop
27170 with_jemalloc=detect
27171 fi
27172
27173
27174 case $with_jemalloc in #(
27175 no) :
27176 ;; #(
27177 yes) :
27178
27179 found=false
27180
27181 pkg_failed=no
27182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5
27183 printf %s "checking for jemalloc... " >&6; }
27184
27185 if test -n "$JEMALLOC_CFLAGS"; then
27186 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS"
27187 elif test -n "$PKG_CONFIG"; then
27188 if test -n "$PKG_CONFIG" && \
27189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27190 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27191 ac_status=$?
27192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27193 test $ac_status = 0; }; then
27194 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null`
27195 test "x$?" != "x0" && pkg_failed=yes
27196 else
27197 pkg_failed=yes
27198 fi
27199 else
27200 pkg_failed=untried
27201 fi
27202 if test -n "$JEMALLOC_LIBS"; then
27203 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS"
27204 elif test -n "$PKG_CONFIG"; then
27205 if test -n "$PKG_CONFIG" && \
27206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27207 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27208 ac_status=$?
27209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27210 test $ac_status = 0; }; then
27211 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null`
27212 test "x$?" != "x0" && pkg_failed=yes
27213 else
27214 pkg_failed=yes
27215 fi
27216 else
27217 pkg_failed=untried
27218 fi
27219
27220
27221
27222 if test $pkg_failed = yes; then
27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224 printf "%s\n" "no" >&6; }
27225
27226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27227 _pkg_short_errors_supported=yes
27228 else
27229 _pkg_short_errors_supported=no
27230 fi
27231 if test $_pkg_short_errors_supported = yes; then
27232 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1`
27233 else
27234 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1`
27235 fi
27236 # Put the nasty error message in config.log where it belongs
27237 echo "$JEMALLOC_PKG_ERRORS" >&5
27238
27239
27240 for ac_header in malloc_np.h jemalloc/jemalloc.h
27241 do :
27242 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27244 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27245 then :
27246 cat >>confdefs.h <<_ACEOF
27247 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27248 _ACEOF
27249
27250 save_LIBS="$LIBS"
27251 save_LDFLAGS="$LDFLAGS"
27252 save_CPPFLAGS="$CPPFLAGS"
27253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5
27254 printf %s "checking for library containing sdallocx... " >&6; }
27255 if test ${ac_cv_search_sdallocx+y}
27256 then :
27257 printf %s "(cached) " >&6
27258 else $as_nop
27259 ac_func_search_save_LIBS=$LIBS
27260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h. */
27262
27263 /* Override any GCC internal prototype to avoid an error.
27264 Use char because int might match the return type of a GCC
27265 builtin and then its argument prototype would still apply. */
27266 char sdallocx ();
27267 int
27268 main (void)
27269 {
27270 return sdallocx ();
27271 ;
27272 return 0;
27273 }
27274 _ACEOF
27275 for ac_lib in '' jemalloc
27276 do
27277 if test -z "$ac_lib"; then
27278 ac_res="none required"
27279 else
27280 ac_res=-l$ac_lib
27281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27282 fi
27283 if ac_fn_c_try_link "$LINENO"
27284 then :
27285 ac_cv_search_sdallocx=$ac_res
27286 fi
27287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27288 conftest$ac_exeext
27289 if test ${ac_cv_search_sdallocx+y}
27290 then :
27291 break
27292 fi
27293 done
27294 if test ${ac_cv_search_sdallocx+y}
27295 then :
27296
27297 else $as_nop
27298 ac_cv_search_sdallocx=no
27299 fi
27300 rm conftest.$ac_ext
27301 LIBS=$ac_func_search_save_LIBS
27302 fi
27303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5
27304 printf "%s\n" "$ac_cv_search_sdallocx" >&6; }
27305 ac_res=$ac_cv_search_sdallocx
27306 if test "$ac_res" != no
27307 then :
27308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27309
27310 found=true
27311 JEMALLOC_VERSION=system
27312 if test "$ac_cv_search_mallocx" != "none required"
27313 then :
27314 JEMALLOC_LIBS="$ac_cv_search_mallocx"
27315 fi
27316
27317 fi
27318
27319 CPPFLAGS="$save_CPPFLAGS"
27320 LDFLAGS="$save_LDFLAGS"
27321 LIBS="$save_LIBS"
27322
27323 fi
27324
27325 done
27326
27327 elif test $pkg_failed = untried; then
27328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27329 printf "%s\n" "no" >&6; }
27330
27331 for ac_header in malloc_np.h jemalloc/jemalloc.h
27332 do :
27333 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27334 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27335 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27336 then :
27337 cat >>confdefs.h <<_ACEOF
27338 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27339 _ACEOF
27340
27341 save_LIBS="$LIBS"
27342 save_LDFLAGS="$LDFLAGS"
27343 save_CPPFLAGS="$CPPFLAGS"
27344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5
27345 printf %s "checking for library containing sdallocx... " >&6; }
27346 if test ${ac_cv_search_sdallocx+y}
27347 then :
27348 printf %s "(cached) " >&6
27349 else $as_nop
27350 ac_func_search_save_LIBS=$LIBS
27351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27352 /* end confdefs.h. */
27353
27354 /* Override any GCC internal prototype to avoid an error.
27355 Use char because int might match the return type of a GCC
27356 builtin and then its argument prototype would still apply. */
27357 char sdallocx ();
27358 int
27359 main (void)
27360 {
27361 return sdallocx ();
27362 ;
27363 return 0;
27364 }
27365 _ACEOF
27366 for ac_lib in '' jemalloc
27367 do
27368 if test -z "$ac_lib"; then
27369 ac_res="none required"
27370 else
27371 ac_res=-l$ac_lib
27372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27373 fi
27374 if ac_fn_c_try_link "$LINENO"
27375 then :
27376 ac_cv_search_sdallocx=$ac_res
27377 fi
27378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27379 conftest$ac_exeext
27380 if test ${ac_cv_search_sdallocx+y}
27381 then :
27382 break
27383 fi
27384 done
27385 if test ${ac_cv_search_sdallocx+y}
27386 then :
27387
27388 else $as_nop
27389 ac_cv_search_sdallocx=no
27390 fi
27391 rm conftest.$ac_ext
27392 LIBS=$ac_func_search_save_LIBS
27393 fi
27394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5
27395 printf "%s\n" "$ac_cv_search_sdallocx" >&6; }
27396 ac_res=$ac_cv_search_sdallocx
27397 if test "$ac_res" != no
27398 then :
27399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27400
27401 found=true
27402 JEMALLOC_VERSION=system
27403 if test "$ac_cv_search_mallocx" != "none required"
27404 then :
27405 JEMALLOC_LIBS="$ac_cv_search_mallocx"
27406 fi
27407
27408 fi
27409
27410 CPPFLAGS="$save_CPPFLAGS"
27411 LDFLAGS="$save_LDFLAGS"
27412 LIBS="$save_LIBS"
27413
27414 fi
27415
27416 done
27417
27418 else
27419 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS
27420 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS
27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27422 printf "%s\n" "yes" >&6; }
27423
27424
27425 if test -n "$JEMALLOC_VERSION"; then
27426 pkg_cv_JEMALLOC_VERSION="$JEMALLOC_VERSION"
27427 elif test -n "$PKG_CONFIG"; then
27428 if test -n "$PKG_CONFIG" && \
27429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27430 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27431 ac_status=$?
27432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27433 test $ac_status = 0; }; then
27434 pkg_cv_JEMALLOC_VERSION=`$PKG_CONFIG --modversion "jemalloc" 2>/dev/null`
27435 test "x$?" != "x0" && pkg_failed=yes
27436 else
27437 pkg_failed=yes
27438 fi
27439 else
27440 pkg_failed=untried
27441 fi
27442 JEMALLOC_VERSION=$pkg_cv_JEMALLOC_VERSION
27443
27444 if test "x$JEMALLOC_VERSION" = x""
27445 then :
27446
27447 fi
27448 found=true
27449
27450 fi
27451
27452 if $found
27453 then :
27454
27455 printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h
27456
27457 else $as_nop
27458 as_fn_error $? "jemalloc not found" "$LINENO" 5
27459 fi
27460
27461
27462
27463 ;; #(
27464 *) :
27465
27466 found=false
27467
27468 pkg_failed=no
27469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5
27470 printf %s "checking for jemalloc... " >&6; }
27471
27472 if test -n "$JEMALLOC_CFLAGS"; then
27473 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS"
27474 elif test -n "$PKG_CONFIG"; then
27475 if test -n "$PKG_CONFIG" && \
27476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27477 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27478 ac_status=$?
27479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27480 test $ac_status = 0; }; then
27481 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null`
27482 test "x$?" != "x0" && pkg_failed=yes
27483 else
27484 pkg_failed=yes
27485 fi
27486 else
27487 pkg_failed=untried
27488 fi
27489 if test -n "$JEMALLOC_LIBS"; then
27490 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS"
27491 elif test -n "$PKG_CONFIG"; then
27492 if test -n "$PKG_CONFIG" && \
27493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27494 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27495 ac_status=$?
27496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27497 test $ac_status = 0; }; then
27498 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null`
27499 test "x$?" != "x0" && pkg_failed=yes
27500 else
27501 pkg_failed=yes
27502 fi
27503 else
27504 pkg_failed=untried
27505 fi
27506
27507
27508
27509 if test $pkg_failed = yes; then
27510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27511 printf "%s\n" "no" >&6; }
27512
27513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27514 _pkg_short_errors_supported=yes
27515 else
27516 _pkg_short_errors_supported=no
27517 fi
27518 if test $_pkg_short_errors_supported = yes; then
27519 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1`
27520 else
27521 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1`
27522 fi
27523 # Put the nasty error message in config.log where it belongs
27524 echo "$JEMALLOC_PKG_ERRORS" >&5
27525
27526
27527 for ac_header in malloc_np.h jemalloc/jemalloc.h
27528 do :
27529 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27530 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27531 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27532 then :
27533 cat >>confdefs.h <<_ACEOF
27534 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27535 _ACEOF
27536
27537 save_LIBS="$LIBS"
27538 save_LDFLAGS="$LDFLAGS"
27539 save_CPPFLAGS="$CPPFLAGS"
27540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5
27541 printf %s "checking for library containing sdallocx... " >&6; }
27542 if test ${ac_cv_search_sdallocx+y}
27543 then :
27544 printf %s "(cached) " >&6
27545 else $as_nop
27546 ac_func_search_save_LIBS=$LIBS
27547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27548 /* end confdefs.h. */
27549
27550 /* Override any GCC internal prototype to avoid an error.
27551 Use char because int might match the return type of a GCC
27552 builtin and then its argument prototype would still apply. */
27553 char sdallocx ();
27554 int
27555 main (void)
27556 {
27557 return sdallocx ();
27558 ;
27559 return 0;
27560 }
27561 _ACEOF
27562 for ac_lib in '' jemalloc
27563 do
27564 if test -z "$ac_lib"; then
27565 ac_res="none required"
27566 else
27567 ac_res=-l$ac_lib
27568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27569 fi
27570 if ac_fn_c_try_link "$LINENO"
27571 then :
27572 ac_cv_search_sdallocx=$ac_res
27573 fi
27574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27575 conftest$ac_exeext
27576 if test ${ac_cv_search_sdallocx+y}
27577 then :
27578 break
27579 fi
27580 done
27581 if test ${ac_cv_search_sdallocx+y}
27582 then :
27583
27584 else $as_nop
27585 ac_cv_search_sdallocx=no
27586 fi
27587 rm conftest.$ac_ext
27588 LIBS=$ac_func_search_save_LIBS
27589 fi
27590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5
27591 printf "%s\n" "$ac_cv_search_sdallocx" >&6; }
27592 ac_res=$ac_cv_search_sdallocx
27593 if test "$ac_res" != no
27594 then :
27595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27596
27597 found=true
27598 JEMALLOC_VERSION=system
27599 if test "$ac_cv_search_mallocx" != "none required"
27600 then :
27601 JEMALLOC_LIBS="$ac_cv_search_mallocx"
27602 fi
27603
27604 fi
27605
27606 CPPFLAGS="$save_CPPFLAGS"
27607 LDFLAGS="$save_LDFLAGS"
27608 LIBS="$save_LIBS"
27609
27610 fi
27611
27612 done
27613
27614 elif test $pkg_failed = untried; then
27615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27616 printf "%s\n" "no" >&6; }
27617
27618 for ac_header in malloc_np.h jemalloc/jemalloc.h
27619 do :
27620 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27621 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27622 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27623 then :
27624 cat >>confdefs.h <<_ACEOF
27625 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27626 _ACEOF
27627
27628 save_LIBS="$LIBS"
27629 save_LDFLAGS="$LDFLAGS"
27630 save_CPPFLAGS="$CPPFLAGS"
27631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5
27632 printf %s "checking for library containing sdallocx... " >&6; }
27633 if test ${ac_cv_search_sdallocx+y}
27634 then :
27635 printf %s "(cached) " >&6
27636 else $as_nop
27637 ac_func_search_save_LIBS=$LIBS
27638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27639 /* end confdefs.h. */
27640
27641 /* Override any GCC internal prototype to avoid an error.
27642 Use char because int might match the return type of a GCC
27643 builtin and then its argument prototype would still apply. */
27644 char sdallocx ();
27645 int
27646 main (void)
27647 {
27648 return sdallocx ();
27649 ;
27650 return 0;
27651 }
27652 _ACEOF
27653 for ac_lib in '' jemalloc
27654 do
27655 if test -z "$ac_lib"; then
27656 ac_res="none required"
27657 else
27658 ac_res=-l$ac_lib
27659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27660 fi
27661 if ac_fn_c_try_link "$LINENO"
27662 then :
27663 ac_cv_search_sdallocx=$ac_res
27664 fi
27665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27666 conftest$ac_exeext
27667 if test ${ac_cv_search_sdallocx+y}
27668 then :
27669 break
27670 fi
27671 done
27672 if test ${ac_cv_search_sdallocx+y}
27673 then :
27674
27675 else $as_nop
27676 ac_cv_search_sdallocx=no
27677 fi
27678 rm conftest.$ac_ext
27679 LIBS=$ac_func_search_save_LIBS
27680 fi
27681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5
27682 printf "%s\n" "$ac_cv_search_sdallocx" >&6; }
27683 ac_res=$ac_cv_search_sdallocx
27684 if test "$ac_res" != no
27685 then :
27686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27687
27688 found=true
27689 JEMALLOC_VERSION=system
27690 if test "$ac_cv_search_mallocx" != "none required"
27691 then :
27692 JEMALLOC_LIBS="$ac_cv_search_mallocx"
27693 fi
27694
27695 fi
27696
27697 CPPFLAGS="$save_CPPFLAGS"
27698 LDFLAGS="$save_LDFLAGS"
27699 LIBS="$save_LIBS"
27700
27701 fi
27702
27703 done
27704
27705 else
27706 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS
27707 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS
27708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27709 printf "%s\n" "yes" >&6; }
27710
27711
27712 if test -n "$JEMALLOC_VERSION"; then
27713 pkg_cv_JEMALLOC_VERSION="$JEMALLOC_VERSION"
27714 elif test -n "$PKG_CONFIG"; then
27715 if test -n "$PKG_CONFIG" && \
27716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27717 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27718 ac_status=$?
27719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27720 test $ac_status = 0; }; then
27721 pkg_cv_JEMALLOC_VERSION=`$PKG_CONFIG --modversion "jemalloc" 2>/dev/null`
27722 test "x$?" != "x0" && pkg_failed=yes
27723 else
27724 pkg_failed=yes
27725 fi
27726 else
27727 pkg_failed=untried
27728 fi
27729 JEMALLOC_VERSION=$pkg_cv_JEMALLOC_VERSION
27730
27731 if test "x$JEMALLOC_VERSION" = x""
27732 then :
27733
27734 fi
27735 found=true
27736
27737 fi
27738
27739 if $found
27740 then :
27741
27742 printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h
27743
27744 with_jemalloc=yes
27745 else $as_nop
27746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc not found; performance will be reduced" >&5
27747 printf "%s\n" "$as_me: WARNING: jemalloc not found; performance will be reduced" >&2;}
27748 with_jemalloc=no
27749 fi
27750
27751
27752
27753 ;;
27754 esac
27755
27756 if test "$with_jemalloc" = "no"
27757 then :
27758 case $host in #(
27759 *-freebsd*) :
27760 as_fn_error $? "You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD" "$LINENO" 5 ;; #(
27761 *) :
27762 ;;
27763 esac
27764 fi
27765
27766 if test "$with_jemalloc" = "yes"; then
27767 HAVE_JEMALLOC_TRUE=
27768 HAVE_JEMALLOC_FALSE='#'
27769 else
27770 HAVE_JEMALLOC_TRUE='#'
27771 HAVE_JEMALLOC_FALSE=
27772 fi
27773
27774
27775 #
27776 # Check memory leaks in external libraries
27777 #
27778 # [pairwise: --enable-leak-detection, --disable-leak-detection]
27779 # Check whether --enable-leak-detection was given.
27780 if test ${enable_leak_detection+y}
27781 then :
27782 enableval=$enable_leak_detection;
27783 else $as_nop
27784 enable_leak_detection=no
27785 fi
27786
27787 case $enable_leak_detection in #(
27788 yes) :
27789
27790 printf "%s\n" "#define ENABLE_LEAK_DETECTION 1" >>confdefs.h
27791 ;; #(
27792 *) :
27793 ;;
27794 esac
27795
27796 #
27797 # was --enable-querytrace or --enable-singletrace specified?
27798 #
27799 # [pairwise: --enable-singletrace --enable-querytrace, --disable-singletrace --enable-querytrace, --disable-singletrace --disable-querytrace]
27800 # Check whether --enable-singletrace was given.
27801 if test ${enable_singletrace+y}
27802 then :
27803 enableval=$enable_singletrace; enable_singletrace="$enableval"
27804 else $as_nop
27805 enable_singletrace="no"
27806 fi
27807
27808
27809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable single-query trace logging" >&5
27810 printf %s "checking whether to enable single-query trace logging... " >&6; }
27811 case "$enable_singletrace" in
27812 yes)
27813 enable_querytrace=yes
27814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27815 printf "%s\n" "yes" >&6; }
27816
27817 printf "%s\n" "#define WANT_SINGLETRACE 1" >>confdefs.h
27818
27819 ;;
27820 no)
27821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27822 printf "%s\n" "no" >&6; }
27823 ;;
27824 *)
27825 as_fn_error $? "\"--enable-singletrace requires yes or no\"" "$LINENO" 5
27826 ;;
27827 esac
27828
27829 # [pairwise: skip]
27830 # Check whether --enable-querytrace was given.
27831 if test ${enable_querytrace+y}
27832 then :
27833 enableval=$enable_querytrace; enable_querytrace="$enableval"
27834 else $as_nop
27835 enable_querytrace="$enable_singletrace"
27836 fi
27837
27838
27839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
27840 printf %s "checking whether to enable query trace logging... " >&6; }
27841 case "$enable_querytrace" in
27842 yes)
27843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27844 printf "%s\n" "yes" >&6; }
27845
27846 printf "%s\n" "#define WANT_QUERYTRACE 1" >>confdefs.h
27847
27848 ;;
27849 no)
27850 if test "$enable_singletrace" = "yes"
27851 then :
27852 as_fn_error $? "--enable-singletrace requires --enable-querytrace" "$LINENO" 5
27853 fi
27854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27855 printf "%s\n" "no" >&6; }
27856 ;;
27857 *)
27858 as_fn_error $? "\"--enable-querytrace requires yes or no (not $enable_querytrace)\"" "$LINENO" 5
27859 ;;
27860 esac
27861
27862 #
27863 # Was --disable-auto-validation specified?
27864 #
27865
27866 validation_default=auto
27867
27868 # [pairwise: --enable-auto-validation, --disable-auto-validation]
27869 # Check whether --enable-auto-validation was given.
27870 if test ${enable_auto_validation+y}
27871 then :
27872 enableval=$enable_auto_validation; :
27873 else $as_nop
27874 enable_auto_validation=yes
27875 fi
27876
27877 if test "$enable_auto_validation" = "no"
27878 then :
27879 validation_default=yes
27880 fi
27881
27882 printf "%s\n" "#define VALIDATION_DEFAULT \"$validation_default\"" >>confdefs.h
27883
27884
27885 #
27886 #
27887 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
27888 # interface.
27889 #
27890 # DNSRPS can be compiled into BIND everywhere with a reasonably
27891 # modern C compiler. It is enabled on systems with dlopen() and librpz.so.
27892 #
27893 dnsrps_avail=yes
27894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
27895 printf %s "checking for librpz __attribute__s... " >&6; }
27896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27897 /* end confdefs.h. */
27898
27899 int
27900 main (void)
27901 {
27902
27903 extern void f(char *p __attribute__((unused)), ...)
27904 __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
27905
27906 ;
27907 return 0;
27908 }
27909 _ACEOF
27910 if ac_fn_c_try_compile "$LINENO"
27911 then :
27912
27913 librpz_have_attr=yes
27914
27915 printf "%s\n" "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
27916
27917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27918 printf "%s\n" "yes" >&6; }
27919
27920 else $as_nop
27921
27922 librpz_have_attr=no
27923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27924 printf "%s\n" "no" >&6; }
27925
27926 fi
27927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27928
27929 # [pairwise: --enable-dnsrps --enable-dnsrps-dl, --disable-dnsrps]
27930 # Check whether --enable-dnsrps-dl was given.
27931 if test ${enable_dnsrps_dl+y}
27932 then :
27933 enableval=$enable_dnsrps_dl; enable_dnsrps_dl="$enableval"
27934 else $as_nop
27935 enable_dnsrps_dl="yes"
27936 fi
27937
27938
27939 if test "$enable_dnsrps_dl" = "yes" -a "$with_dlopen" = "no"
27940 then :
27941 as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
27942 fi
27943
27944 # [pairwise: skip]
27945
27946 # Check whether --with-dnsrps-libname was given.
27947 if test ${with_dnsrps_libname+y}
27948 then :
27949 withval=$with_dnsrps_libname; librpz_name="$withval"
27950 else $as_nop
27951 librpz_name="librpz.so"
27952 fi
27953
27954
27955 # [pairwise: skip]
27956
27957 # Check whether --with-dnsrps-dir was given.
27958 if test ${with_dnsrps_dir+y}
27959 then :
27960 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
27961 else $as_nop
27962 librpz_path="$librpz_name"
27963 fi
27964
27965
27966 printf "%s\n" "#define DNSRPS_LIBRPZ_PATH \"$librpz_path\"" >>confdefs.h
27967
27968 if test "$enable_dnsrps_dl" = "yes"
27969 then :
27970
27971 dnsrps_lib_open=2
27972
27973 else $as_nop
27974
27975 dnsrps_lib_open=1
27976 # Add librpz.so to linked libraries if we are not using dlopen()
27977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
27978 printf %s "checking for library containing librpz_client_create... " >&6; }
27979 if test ${ac_cv_search_librpz_client_create+y}
27980 then :
27981 printf %s "(cached) " >&6
27982 else $as_nop
27983 ac_func_search_save_LIBS=$LIBS
27984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27985 /* end confdefs.h. */
27986
27987 /* Override any GCC internal prototype to avoid an error.
27988 Use char because int might match the return type of a GCC
27989 builtin and then its argument prototype would still apply. */
27990 char librpz_client_create ();
27991 int
27992 main (void)
27993 {
27994 return librpz_client_create ();
27995 ;
27996 return 0;
27997 }
27998 _ACEOF
27999 for ac_lib in '' rpz
28000 do
28001 if test -z "$ac_lib"; then
28002 ac_res="none required"
28003 else
28004 ac_res=-l$ac_lib
28005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28006 fi
28007 if ac_fn_c_try_link "$LINENO"
28008 then :
28009 ac_cv_search_librpz_client_create=$ac_res
28010 fi
28011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28012 conftest$ac_exeext
28013 if test ${ac_cv_search_librpz_client_create+y}
28014 then :
28015 break
28016 fi
28017 done
28018 if test ${ac_cv_search_librpz_client_create+y}
28019 then :
28020
28021 else $as_nop
28022 ac_cv_search_librpz_client_create=no
28023 fi
28024 rm conftest.$ac_ext
28025 LIBS=$ac_func_search_save_LIBS
28026 fi
28027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
28028 printf "%s\n" "$ac_cv_search_librpz_client_create" >&6; }
28029 ac_res=$ac_cv_search_librpz_client_create
28030 if test "$ac_res" != no
28031 then :
28032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28033
28034 else $as_nop
28035 dnsrps_lib_open=0
28036 dnsrps_avail=no
28037 fi
28038
28039
28040 fi
28041
28042 printf "%s\n" "#define DNSRPS_LIB_OPEN $dnsrps_lib_open" >>confdefs.h
28043
28044
28045 # [pairwise: skip]
28046 # Check whether --enable-dnsrps was given.
28047 if test ${enable_dnsrps+y}
28048 then :
28049 enableval=$enable_dnsrps; enable_dnsrps=$enableval
28050 else $as_nop
28051 enable_dnsrps=no
28052 fi
28053
28054
28055 if test "$enable_dnsrps" != "no"
28056 then :
28057
28058 if test "$dnsrps_lib_open" = "0"
28059 then :
28060 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
28061 fi
28062
28063 printf "%s\n" "#define USE_DNSRPS 1" >>confdefs.h
28064
28065
28066 fi
28067
28068 if test "$enable_dnsrps" != "no"; then
28069 DNSRPS_TRUE=
28070 DNSRPS_FALSE='#'
28071 else
28072 DNSRPS_TRUE='#'
28073 DNSRPS_FALSE=
28074 fi
28075
28076
28077 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
28078 if test "x$ac_cv_header_glob_h" = xyes
28079 then :
28080 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
28081
28082 fi
28083
28084
28085 #
28086 # Support for constructor and destructor attributes
28087 #
28088
28089
28090
28091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
28092 printf %s "checking for __attribute__((constructor))... " >&6; }
28093 if test ${ax_cv_have_func_attribute_constructor+y}
28094 then :
28095 printf %s "(cached) " >&6
28096 else $as_nop
28097
28098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28099 /* end confdefs.h. */
28100
28101
28102 int foo( void ) __attribute__((constructor));
28103
28104 int
28105 main (void)
28106 {
28107
28108 ;
28109 return 0;
28110 }
28111
28112 _ACEOF
28113 if ac_fn_c_try_link "$LINENO"
28114 then :
28115 if grep -- -Wattributes conftest.err
28116 then :
28117 ax_cv_have_func_attribute_constructor=no
28118 else $as_nop
28119 ax_cv_have_func_attribute_constructor=yes
28120 fi
28121 else $as_nop
28122 ax_cv_have_func_attribute_constructor=no
28123 fi
28124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28125 conftest$ac_exeext conftest.$ac_ext
28126
28127 fi
28128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5
28129 printf "%s\n" "$ax_cv_have_func_attribute_constructor" >&6; }
28130
28131 if test yes = $ax_cv_have_func_attribute_constructor
28132 then :
28133
28134 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1" >>confdefs.h
28135
28136 fi
28137
28138
28139
28140
28141
28142
28143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5
28144 printf %s "checking for __attribute__((destructor))... " >&6; }
28145 if test ${ax_cv_have_func_attribute_destructor+y}
28146 then :
28147 printf %s "(cached) " >&6
28148 else $as_nop
28149
28150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28151 /* end confdefs.h. */
28152
28153
28154 int foo( void ) __attribute__((destructor));
28155
28156 int
28157 main (void)
28158 {
28159
28160 ;
28161 return 0;
28162 }
28163
28164 _ACEOF
28165 if ac_fn_c_try_link "$LINENO"
28166 then :
28167 if grep -- -Wattributes conftest.err
28168 then :
28169 ax_cv_have_func_attribute_destructor=no
28170 else $as_nop
28171 ax_cv_have_func_attribute_destructor=yes
28172 fi
28173 else $as_nop
28174 ax_cv_have_func_attribute_destructor=no
28175 fi
28176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28177 conftest$ac_exeext conftest.$ac_ext
28178
28179 fi
28180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5
28181 printf "%s\n" "$ax_cv_have_func_attribute_destructor" >&6; }
28182
28183 if test yes = $ax_cv_have_func_attribute_destructor
28184 then :
28185
28186 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1" >>confdefs.h
28187
28188 fi
28189
28190
28191
28192
28193 #
28194 # Check whether to enable User Statically Defined Tracing.
28195 #
28196 # This is supported only on Linux now and requires SystemTap libraries.
28197 #
28198 # [pairwise: --enable-tracing=auto, --enable-tracing=yes, --disable-tracing]
28199 # Check whether --enable-tracing was given.
28200 if test ${enable_tracing+y}
28201 then :
28202 enableval=$enable_tracing;
28203 else $as_nop
28204 enable_tracing=auto
28205 fi
28206
28207
28208
28209 for ac_prog in dtrace
28210 do
28211 # Extract the first word of "$ac_prog", so it can be a program name with args.
28212 set dummy $ac_prog; ac_word=$2
28213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28214 printf %s "checking for $ac_word... " >&6; }
28215 if test ${ac_cv_path_DTRACE+y}
28216 then :
28217 printf %s "(cached) " >&6
28218 else $as_nop
28219 case $DTRACE in
28220 [\\/]* | ?:[\\/]*)
28221 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
28222 ;;
28223 *)
28224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28225 for as_dir in $PATH
28226 do
28227 IFS=$as_save_IFS
28228 case $as_dir in #(((
28229 '') as_dir=./ ;;
28230 */) ;;
28231 *) as_dir=$as_dir/ ;;
28232 esac
28233 for ac_exec_ext in '' $ac_executable_extensions; do
28234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28235 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
28236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28237 break 2
28238 fi
28239 done
28240 done
28241 IFS=$as_save_IFS
28242
28243 ;;
28244 esac
28245 fi
28246 DTRACE=$ac_cv_path_DTRACE
28247 if test -n "$DTRACE"; then
28248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
28249 printf "%s\n" "$DTRACE" >&6; }
28250 else
28251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28252 printf "%s\n" "no" >&6; }
28253 fi
28254
28255
28256 test -n "$DTRACE" && break
28257 done
28258
28259 ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
28260 if test "x$ac_cv_header_sys_sdt_h" = xyes
28261 then :
28262 printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28263
28264 fi
28265
28266
28267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable User Statically Defined Tracing support (default is auto)" >&5
28268 printf %s "checking whether to enable User Statically Defined Tracing support (default is auto)... " >&6; }
28269 case $enable_tracing in #(
28270 auto) :
28271 enable_tracing=yes
28272 if test "$ac_cv_header_sys_sdt_h" != "yes"
28273 then :
28274 enable_tracing=no
28275 fi
28276 if test -z "$DTRACE"
28277 then :
28278 enable_tracing=no
28279 fi
28280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28281 /* end confdefs.h. */
28282
28283 int
28284 main (void)
28285 {
28286 #if !defined(__has_feature)
28287 #define __has_feature(x) 0
28288 #endif /* if !defined(__has_feature) */
28289 #if __has_feature(address_sanitizer)
28290 #define __SANITIZE_ADDRESS__ 1
28291 #endif /* if __has_feature(address_sanitizer) */
28292 #if defined(__SANITIZE_ADDRESS__)
28293 #error Address Sanitizer enabled
28294 #endif
28295
28296 ;
28297 return 0;
28298 }
28299 _ACEOF
28300 if ac_fn_c_try_compile "$LINENO"
28301 then :
28302
28303 else $as_nop
28304 enable_tracing=no
28305
28306 fi
28307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
28308 *) :
28309 ;;
28310 esac
28311 case $enable_tracing in #(
28312 yes) :
28313 if test "$ac_cv_header_sys_sdt_h" != "yes"
28314 then :
28315 as_fn_error $? "sys/sdt.h header not found" "$LINENO" 5
28316 fi
28317 if test -z "$DTRACE"
28318 then :
28319 as_fn_error $? "The dtrace command not found" "$LINENO" 5
28320 fi
28321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28322 printf "%s\n" "yes" >&6; } ;; #(
28323 *) :
28324 DTRACE=""
28325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28326 printf "%s\n" "no" >&6; } ;;
28327 esac
28328
28329 case $host in #(
28330 *-linux*) :
28331 have_systemtap=true ;; #(
28332 *) :
28333 ;;
28334 esac
28335
28336 if test -n "$have_systemtap"; then
28337 HAVE_SYSTEMTAP_TRUE=
28338 HAVE_SYSTEMTAP_FALSE='#'
28339 else
28340 HAVE_SYSTEMTAP_TRUE='#'
28341 HAVE_SYSTEMTAP_FALSE=
28342 fi
28343
28344 if test -n "$DTRACE"; then
28345 HAVE_DTRACE_TRUE=
28346 HAVE_DTRACE_FALSE='#'
28347 else
28348 HAVE_DTRACE_TRUE='#'
28349 HAVE_DTRACE_FALSE=
28350 fi
28351
28352
28353 # Use shim script if dtrace is not available
28354 if test -z "$DTRACE"
28355 then :
28356 DTRACE='$(top_srcdir)/util/dtrace.sh'
28357 fi
28358
28359
28360
28361 #
28362 # Which should be the default zone database, RBTDB or QPZONE?
28363 # [pairwise: --with-zonedb=qp, --with-zonedb=rbt]
28364 #
28365
28366 # Check whether --with-zonedb was given.
28367 if test ${with_zonedb+y}
28368 then :
28369 withval=$with_zonedb;
28370 else $as_nop
28371 with_zonedb=qp
28372 fi
28373
28374 zonedb="qpzone"
28375 case $with_zonedb in #(
28376 RBT*|rbt*) :
28377 zonedb="rbt" ;; #(
28378 QP|qp) :
28379 ;; #(
28380 *) :
28381 as_fn_error $? "Unknown zone database type" "$LINENO" 5
28382 ;;
28383 esac
28384
28385 printf "%s\n" "#define ZONEDB_DEFAULT \"$zonedb\"" >>confdefs.h
28386
28387
28388 #
28389 # Which should be the default zone database, RBTDB or QPCACHE?
28390 # [pairwise: --with-cachedb=qp, --with-cachedb=rbt]
28391 #
28392
28393 # Check whether --with-cachedb was given.
28394 if test ${with_cachedb+y}
28395 then :
28396 withval=$with_cachedb;
28397 else $as_nop
28398 with_cachedb=qp
28399 fi
28400
28401 cachedb="qpcache"
28402 case $with_cachedb in #(
28403 RBT*|rbt*) :
28404 cachedb="rbt" ;; #(
28405 QP*|qp*) :
28406 ;; #(
28407 *) :
28408 as_fn_error $? "Unknown cache database type" "$LINENO" 5
28409 ;;
28410 esac
28411
28412 printf "%s\n" "#define CACHEDB_DEFAULT \"$cachedb\"" >>confdefs.h
28413
28414
28415 #
28416 # Files to configure. These are listed here because we used to
28417 # specify them as arguments to AC_OUTPUT.
28418 #
28419
28420 # Top
28421
28422 ac_config_files="$ac_config_files Makefile"
28423
28424
28425 # Binaries
28426
28427 ac_config_files="$ac_config_files bin/Makefile bin/named/Makefile bin/rndc/Makefile bin/dig/Makefile bin/delv/Makefile bin/dnssec/Makefile bin/tools/Makefile bin/nsupdate/Makefile bin/check/Makefile bin/confgen/Makefile bin/plugins/Makefile"
28428
28429
28430 # Libraries
28431
28432 ac_config_files="$ac_config_files lib/Makefile lib/isc/Makefile lib/dns/Makefile lib/ns/Makefile lib/isccfg/Makefile lib/isccc/Makefile"
28433
28434
28435 # Documentation
28436
28437 ac_config_files="$ac_config_files doc/Makefile doc/arm/Makefile doc/man/Makefile doc/misc/Makefile"
28438
28439
28440 # Unit tests and benchmarks
28441
28442 ac_config_files="$ac_config_files tests/Makefile tests/bench/Makefile tests/isc/Makefile tests/dns/Makefile tests/ns/Makefile tests/irs/Makefile tests/isccfg/Makefile tests/libtest/Makefile"
28443
28444
28445 ac_config_files="$ac_config_files tests/unit-test-driver.sh"
28446
28447
28448 # System Tests
28449
28450 ac_config_files="$ac_config_files bin/tests/Makefile bin/tests/system/Makefile bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE bin/tests/system/isctest/vars/.ac_vars/SHELL bin/tests/system/isctest/vars/.ac_vars/PYTHON bin/tests/system/isctest/vars/.ac_vars/PERL bin/tests/system/isctest/vars/.ac_vars/CURL bin/tests/system/isctest/vars/.ac_vars/NC bin/tests/system/isctest/vars/.ac_vars/XSLTPROC bin/tests/system/isctest/vars/.ac_vars/PYTEST bin/tests/system/dyndb/driver/Makefile bin/tests/system/dlzexternal/driver/Makefile bin/tests/system/hooks/driver/Makefile bin/tests/system/rpz/testlib/Makefile"
28451
28452
28453 ac_config_files="$ac_config_files bin/tests/system/ifconfig.sh"
28454
28455 ac_config_files="$ac_config_files bin/tests/system/start.sh"
28456
28457 ac_config_files="$ac_config_files bin/tests/system/stop.sh"
28458
28459
28460 # Fuzz Tests
28461
28462 ac_config_files="$ac_config_files fuzz/Makefile"
28463
28464
28465 # Misc
28466
28467 ac_config_files="$ac_config_files util/check-make-install"
28468
28469
28470 #
28471 # Do it
28472 #
28473
28474 cat >confcache <<\_ACEOF
28475 # This file is a shell script that caches the results of configure
28476 # tests run on this system so they can be shared between configure
28477 # scripts and configure runs, see configure's option --config-cache.
28478 # It is not useful on other systems. If it contains results you don't
28479 # want to keep, you may remove or edit it.
28480 #
28481 # config.status only pays attention to the cache file if you give it
28482 # the --recheck option to rerun configure.
28483 #
28484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28486 # following values.
28487
28488 _ACEOF
28489
28490 # The following way of writing the cache mishandles newlines in values,
28491 # but we know of no workaround that is simple, portable, and efficient.
28492 # So, we kill variables containing newlines.
28493 # Ultrix sh set writes to stderr and can't be redirected directly,
28494 # and sets the high bit in the cache file unless we assign to the vars.
28495 (
28496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28497 eval ac_val=\$$ac_var
28498 case $ac_val in #(
28499 *${as_nl}*)
28500 case $ac_var in #(
28501 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28502 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28503 esac
28504 case $ac_var in #(
28505 _ | IFS | as_nl) ;; #(
28506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28507 *) { eval $ac_var=; unset $ac_var;} ;;
28508 esac ;;
28509 esac
28510 done
28511
28512 (set) 2>&1 |
28513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28514 *${as_nl}ac_space=\ *)
28515 # `set' does not quote correctly, so add quotes: double-quote
28516 # substitution turns \\\\ into \\, and sed turns \\ into \.
28517 sed -n \
28518 "s/'/'\\\\''/g;
28519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28520 ;; #(
28521 *)
28522 # `set' quotes correctly as required by POSIX, so do not add quotes.
28523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28524 ;;
28525 esac |
28526 sort
28527 ) |
28528 sed '
28529 /^ac_cv_env_/b end
28530 t clear
28531 :clear
28532 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
28533 t end
28534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28535 :end' >>confcache
28536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28537 if test -w "$cache_file"; then
28538 if test "x$cache_file" != "x/dev/null"; then
28539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28540 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
28541 if test ! -f "$cache_file" || test -h "$cache_file"; then
28542 cat confcache >"$cache_file"
28543 else
28544 case $cache_file in #(
28545 */* | ?:*)
28546 mv -f confcache "$cache_file"$$ &&
28547 mv -f "$cache_file"$$ "$cache_file" ;; #(
28548 *)
28549 mv -f confcache "$cache_file" ;;
28550 esac
28551 fi
28552 fi
28553 else
28554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28555 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
28556 fi
28557 fi
28558 rm -f confcache
28559
28560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28561 # Let make expand exec_prefix.
28562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28563
28564 DEFS=-DHAVE_CONFIG_H
28565
28566 ac_libobjs=
28567 ac_ltlibobjs=
28568 U=
28569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28570 # 1. Remove the extension, and $U if already installed.
28571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28572 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
28573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28574 # will be set to the directory where LIBOBJS objects are built.
28575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28577 done
28578 LIBOBJS=$ac_libobjs
28579
28580 LTLIBOBJS=$ac_ltlibobjs
28581
28582
28583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28584 printf %s "checking that generated files are newer than configure... " >&6; }
28585 if test -n "$am_sleep_pid"; then
28586 # Hide warnings about reused PIDs.
28587 wait $am_sleep_pid 2>/dev/null
28588 fi
28589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
28590 printf "%s\n" "done" >&6; }
28591 if test -n "$EXEEXT"; then
28592 am__EXEEXT_TRUE=
28593 am__EXEEXT_FALSE='#'
28594 else
28595 am__EXEEXT_TRUE='#'
28596 am__EXEEXT_FALSE=
28597 fi
28598
28599 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28600 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28602 fi
28603 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28604 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28606 fi
28607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28608 as_fn_error $? "conditional \"AMDEP\" was never defined.
28609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28610 fi
28611 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28612 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28614 fi
28615 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28616 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28618 fi
28619 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28620 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28622 fi
28623
28624 if test -z "${HOST_MACOS_TRUE}" && test -z "${HOST_MACOS_FALSE}"; then
28625 as_fn_error $? "conditional \"HOST_MACOS\" was never defined.
28626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28627 fi
28628 if test -z "${HAVE_FUZZ_LOG_COMPILER_TRUE}" && test -z "${HAVE_FUZZ_LOG_COMPILER_FALSE}"; then
28629 as_fn_error $? "conditional \"HAVE_FUZZ_LOG_COMPILER\" was never defined.
28630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28631 fi
28632 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
28633 as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
28634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28635 fi
28636 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
28637 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
28638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28639 fi
28640 if test -z "${HAVE_PYTEST_TRUE}" && test -z "${HAVE_PYTEST_FALSE}"; then
28641 as_fn_error $? "conditional \"HAVE_PYTEST\" was never defined.
28642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28643 fi
28644 if test -z "${HAVE_GEOIP2_TRUE}" && test -z "${HAVE_GEOIP2_FALSE}"; then
28645 as_fn_error $? "conditional \"HAVE_GEOIP2\" was never defined.
28646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28647 fi
28648 if test -z "${HAVE_LIBNGHTTP2_TRUE}" && test -z "${HAVE_LIBNGHTTP2_FALSE}"; then
28649 as_fn_error $? "conditional \"HAVE_LIBNGHTTP2\" was never defined.
28650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28651 fi
28652 if test -z "${USE_ISC_RWLOCK_TRUE}" && test -z "${USE_ISC_RWLOCK_FALSE}"; then
28653 as_fn_error $? "conditional \"USE_ISC_RWLOCK\" was never defined.
28654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28655 fi
28656 if test -z "${HAVE_GSSAPI_TRUE}" && test -z "${HAVE_GSSAPI_FALSE}"; then
28657 as_fn_error $? "conditional \"HAVE_GSSAPI\" was never defined.
28658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28659 fi
28660 if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then
28661 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined.
28662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28663 fi
28664 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
28665 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
28666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28667 fi
28668 if test -z "${HAVE_JSON_C_TRUE}" && test -z "${HAVE_JSON_C_FALSE}"; then
28669 as_fn_error $? "conditional \"HAVE_JSON_C\" was never defined.
28670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28671 fi
28672 if test -z "${HAVE_READLINE_TRUE}" && test -z "${HAVE_READLINE_FALSE}"; then
28673 as_fn_error $? "conditional \"HAVE_READLINE\" was never defined.
28674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28675 fi
28676 if test -z "${HAVE_DNSTAP_TRUE}" && test -z "${HAVE_DNSTAP_FALSE}"; then
28677 as_fn_error $? "conditional \"HAVE_DNSTAP\" was never defined.
28678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28679 fi
28680 if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
28681 as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
28682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28683 fi
28684 if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
28685 as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined.
28686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28687 fi
28688 if test -z "${HAVE_CMOCKA_TRUE}" && test -z "${HAVE_CMOCKA_FALSE}"; then
28689 as_fn_error $? "conditional \"HAVE_CMOCKA\" was never defined.
28690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28691 fi
28692 if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then
28693 as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28695 fi
28696 if test -z "${DNSRPS_TRUE}" && test -z "${DNSRPS_FALSE}"; then
28697 as_fn_error $? "conditional \"DNSRPS\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28699 fi
28700 if test -z "${HAVE_SYSTEMTAP_TRUE}" && test -z "${HAVE_SYSTEMTAP_FALSE}"; then
28701 as_fn_error $? "conditional \"HAVE_SYSTEMTAP\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28703 fi
28704 if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then
28705 as_fn_error $? "conditional \"HAVE_DTRACE\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28707 fi
28708
28709 : "${CONFIG_STATUS=./config.status}"
28710 ac_write_fail=0
28711 ac_clean_files_save=$ac_clean_files
28712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28714 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
28715 as_write_fail=0
28716 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28717 #! $SHELL
28718 # Generated by $as_me.
28719 # Run this file to recreate the current configuration.
28720 # Compiler output produced by configure, useful for debugging
28721 # configure, is in config.log if it exists.
28722
28723 debug=false
28724 ac_cs_recheck=false
28725 ac_cs_silent=false
28726
28727 SHELL=\${CONFIG_SHELL-$SHELL}
28728 export SHELL
28729 _ASEOF
28730 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28731 ## -------------------- ##
28732 ## M4sh Initialization. ##
28733 ## -------------------- ##
28734
28735 # Be more Bourne compatible
28736 DUALCASE=1; export DUALCASE # for MKS sh
28737 as_nop=:
28738 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
28739 then :
28740 emulate sh
28741 NULLCMD=:
28742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28743 # is contrary to our usage. Disable this feature.
28744 alias -g '${1+"$@"}'='"$@"'
28745 setopt NO_GLOB_SUBST
28746 else $as_nop
28747 case `(set -o) 2>/dev/null` in #(
28748 *posix*) :
28749 set -o posix ;; #(
28750 *) :
28751 ;;
28752 esac
28753 fi
28754
28755
28756
28757 # Reset variables that may have inherited troublesome values from
28758 # the environment.
28759
28760 # IFS needs to be set, to space, tab, and newline, in precisely that order.
28761 # (If _AS_PATH_WALK were called with IFS unset, it would have the
28762 # side effect of setting IFS to empty, thus disabling word splitting.)
28763 # Quoting is to prevent editors from complaining about space-tab.
28764 as_nl='
28765 '
28766 export as_nl
28767 IFS=" "" $as_nl"
28768
28769 PS1='$ '
28770 PS2='> '
28771 PS4='+ '
28772
28773 # Ensure predictable behavior from utilities with locale-dependent output.
28774 LC_ALL=C
28775 export LC_ALL
28776 LANGUAGE=C
28777 export LANGUAGE
28778
28779 # We cannot yet rely on "unset" to work, but we need these variables
28780 # to be unset--not just set to an empty or harmless value--now, to
28781 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
28782 # also avoids known problems related to "unset" and subshell syntax
28783 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
28784 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
28785 do eval test \${$as_var+y} \
28786 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28787 done
28788
28789 # Ensure that fds 0, 1, and 2 are open.
28790 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
28791 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
28792 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
28793
28794 # The user is always right.
28795 if ${PATH_SEPARATOR+false} :; then
28796 PATH_SEPARATOR=:
28797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28799 PATH_SEPARATOR=';'
28800 }
28801 fi
28802
28803
28804 # Find who we are. Look in the path if we contain no directory separator.
28805 as_myself=
28806 case $0 in #((
28807 *[\\/]* ) as_myself=$0 ;;
28808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28809 for as_dir in $PATH
28810 do
28811 IFS=$as_save_IFS
28812 case $as_dir in #(((
28813 '') as_dir=./ ;;
28814 */) ;;
28815 *) as_dir=$as_dir/ ;;
28816 esac
28817 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
28818 done
28819 IFS=$as_save_IFS
28820
28821 ;;
28822 esac
28823 # We did not find ourselves, most probably we were run as `sh COMMAND'
28824 # in which case we are not to be found in the path.
28825 if test "x$as_myself" = x; then
28826 as_myself=$0
28827 fi
28828 if test ! -f "$as_myself"; then
28829 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28830 exit 1
28831 fi
28832
28833
28834
28835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28836 # ----------------------------------------
28837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28839 # script with STATUS, using 1 if that was 0.
28840 as_fn_error ()
28841 {
28842 as_status=$1; test $as_status -eq 0 && as_status=1
28843 if test "$4"; then
28844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28846 fi
28847 printf "%s\n" "$as_me: error: $2" >&2
28848 as_fn_exit $as_status
28849 } # as_fn_error
28850
28851
28852
28853 # as_fn_set_status STATUS
28854 # -----------------------
28855 # Set $? to STATUS, without forking.
28856 as_fn_set_status ()
28857 {
28858 return $1
28859 } # as_fn_set_status
28860
28861 # as_fn_exit STATUS
28862 # -----------------
28863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28864 as_fn_exit ()
28865 {
28866 set +e
28867 as_fn_set_status $1
28868 exit $1
28869 } # as_fn_exit
28870
28871 # as_fn_unset VAR
28872 # ---------------
28873 # Portably unset VAR.
28874 as_fn_unset ()
28875 {
28876 { eval $1=; unset $1;}
28877 }
28878 as_unset=as_fn_unset
28879
28880 # as_fn_append VAR VALUE
28881 # ----------------------
28882 # Append the text in VALUE to the end of the definition contained in VAR. Take
28883 # advantage of any shell optimizations that allow amortized linear growth over
28884 # repeated appends, instead of the typical quadratic growth present in naive
28885 # implementations.
28886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
28887 then :
28888 eval 'as_fn_append ()
28889 {
28890 eval $1+=\$2
28891 }'
28892 else $as_nop
28893 as_fn_append ()
28894 {
28895 eval $1=\$$1\$2
28896 }
28897 fi # as_fn_append
28898
28899 # as_fn_arith ARG...
28900 # ------------------
28901 # Perform arithmetic evaluation on the ARGs, and store the result in the
28902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28903 # must be portable across $(()) and expr.
28904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
28905 then :
28906 eval 'as_fn_arith ()
28907 {
28908 as_val=$(( $* ))
28909 }'
28910 else $as_nop
28911 as_fn_arith ()
28912 {
28913 as_val=`expr "$@" || test $? -eq 1`
28914 }
28915 fi # as_fn_arith
28916
28917
28918 if expr a : '\(a\)' >/dev/null 2>&1 &&
28919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28920 as_expr=expr
28921 else
28922 as_expr=false
28923 fi
28924
28925 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28926 as_basename=basename
28927 else
28928 as_basename=false
28929 fi
28930
28931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28932 as_dirname=dirname
28933 else
28934 as_dirname=false
28935 fi
28936
28937 as_me=`$as_basename -- "$0" ||
28938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28939 X"$0" : 'X\(//\)$' \| \
28940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28941 printf "%s\n" X/"$0" |
28942 sed '/^.*\/\([^/][^/]*\)\/*$/{
28943 s//\1/
28944 q
28945 }
28946 /^X\/\(\/\/\)$/{
28947 s//\1/
28948 q
28949 }
28950 /^X\/\(\/\).*/{
28951 s//\1/
28952 q
28953 }
28954 s/.*/./; q'`
28955
28956 # Avoid depending upon Character Ranges.
28957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28960 as_cr_digits='0123456789'
28961 as_cr_alnum=$as_cr_Letters$as_cr_digits
28962
28963
28964 # Determine whether it's possible to make 'echo' print without a newline.
28965 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
28966 # for compatibility with existing Makefiles.
28967 ECHO_C= ECHO_N= ECHO_T=
28968 case `echo -n x` in #(((((
28969 -n*)
28970 case `echo 'xy\c'` in
28971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28972 xy) ECHO_C='\c';;
28973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28974 ECHO_T=' ';;
28975 esac;;
28976 *)
28977 ECHO_N='-n';;
28978 esac
28979
28980 # For backward compatibility with old third-party macros, we provide
28981 # the shell variables $as_echo and $as_echo_n. New code should use
28982 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
28983 as_echo='printf %s\n'
28984 as_echo_n='printf %s'
28985
28986 rm -f conf$$ conf$$.exe conf$$.file
28987 if test -d conf$$.dir; then
28988 rm -f conf$$.dir/conf$$.file
28989 else
28990 rm -f conf$$.dir
28991 mkdir conf$$.dir 2>/dev/null
28992 fi
28993 if (echo >conf$$.file) 2>/dev/null; then
28994 if ln -s conf$$.file conf$$ 2>/dev/null; then
28995 as_ln_s='ln -s'
28996 # ... but there are two gotchas:
28997 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28998 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28999 # In both cases, we have to default to `cp -pR'.
29000 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29001 as_ln_s='cp -pR'
29002 elif ln conf$$.file conf$$ 2>/dev/null; then
29003 as_ln_s=ln
29004 else
29005 as_ln_s='cp -pR'
29006 fi
29007 else
29008 as_ln_s='cp -pR'
29009 fi
29010 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29011 rmdir conf$$.dir 2>/dev/null
29012
29013
29014 # as_fn_mkdir_p
29015 # -------------
29016 # Create "$as_dir" as a directory, including parents if necessary.
29017 as_fn_mkdir_p ()
29018 {
29019
29020 case $as_dir in #(
29021 -*) as_dir=./$as_dir;;
29022 esac
29023 test -d "$as_dir" || eval $as_mkdir_p || {
29024 as_dirs=
29025 while :; do
29026 case $as_dir in #(
29027 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29028 *) as_qdir=$as_dir;;
29029 esac
29030 as_dirs="'$as_qdir' $as_dirs"
29031 as_dir=`$as_dirname -- "$as_dir" ||
29032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29033 X"$as_dir" : 'X\(//\)[^/]' \| \
29034 X"$as_dir" : 'X\(//\)$' \| \
29035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29036 printf "%s\n" X"$as_dir" |
29037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29038 s//\1/
29039 q
29040 }
29041 /^X\(\/\/\)[^/].*/{
29042 s//\1/
29043 q
29044 }
29045 /^X\(\/\/\)$/{
29046 s//\1/
29047 q
29048 }
29049 /^X\(\/\).*/{
29050 s//\1/
29051 q
29052 }
29053 s/.*/./; q'`
29054 test -d "$as_dir" && break
29055 done
29056 test -z "$as_dirs" || eval "mkdir $as_dirs"
29057 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29058
29059
29060 } # as_fn_mkdir_p
29061 if mkdir -p . 2>/dev/null; then
29062 as_mkdir_p='mkdir -p "$as_dir"'
29063 else
29064 test -d ./-p && rmdir ./-p
29065 as_mkdir_p=false
29066 fi
29067
29068
29069 # as_fn_executable_p FILE
29070 # -----------------------
29071 # Test if FILE is an executable regular file.
29072 as_fn_executable_p ()
29073 {
29074 test -f "$1" && test -x "$1"
29075 } # as_fn_executable_p
29076 as_test_x='test -x'
29077 as_executable_p=as_fn_executable_p
29078
29079 # Sed expression to map a string onto a valid CPP name.
29080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29081
29082 # Sed expression to map a string onto a valid variable name.
29083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29084
29085
29086 exec 6>&1
29087 ## ----------------------------------- ##
29088 ## Main body of $CONFIG_STATUS script. ##
29089 ## ----------------------------------- ##
29090 _ASEOF
29091 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29092
29093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29094 # Save the log message, to keep $0 and so on meaningful, and to
29095 # report actual input values of CONFIG_FILES etc. instead of their
29096 # values after options handling.
29097 ac_log="
29098 This file was extended by BIND $as_me 9.20.4, which was
29099 generated by GNU Autoconf 2.71. Invocation command line was
29100
29101 CONFIG_FILES = $CONFIG_FILES
29102 CONFIG_HEADERS = $CONFIG_HEADERS
29103 CONFIG_LINKS = $CONFIG_LINKS
29104 CONFIG_COMMANDS = $CONFIG_COMMANDS
29105 $ $0 $@
29106
29107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29108 "
29109
29110 _ACEOF
29111
29112 case $ac_config_files in *"
29113 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29114 esac
29115
29116 case $ac_config_headers in *"
29117 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29118 esac
29119
29120
29121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29122 # Files that config.status was made for.
29123 config_files="$ac_config_files"
29124 config_headers="$ac_config_headers"
29125 config_commands="$ac_config_commands"
29126
29127 _ACEOF
29128
29129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29130 ac_cs_usage="\
29131 \`$as_me' instantiates files and other configuration actions
29132 from templates according to the current configuration. Unless the files
29133 and actions are specified as TAGs, all are instantiated by default.
29134
29135 Usage: $0 [OPTION]... [TAG]...
29136
29137 -h, --help print this help, then exit
29138 -V, --version print version number and configuration settings, then exit
29139 --config print configuration, then exit
29140 -q, --quiet, --silent
29141 do not print progress messages
29142 -d, --debug don't remove temporary files
29143 --recheck update $as_me by reconfiguring in the same conditions
29144 --file=FILE[:TEMPLATE]
29145 instantiate the configuration file FILE
29146 --header=FILE[:TEMPLATE]
29147 instantiate the configuration header FILE
29148
29149 Configuration files:
29150 $config_files
29151
29152 Configuration headers:
29153 $config_headers
29154
29155 Configuration commands:
29156 $config_commands
29157
29158 Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
29159 BIND home page: <https://www.isc.org/downloads/>."
29160
29161 _ACEOF
29162 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
29163 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
29164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29165 ac_cs_config='$ac_cs_config_escaped'
29166 ac_cs_version="\\
29167 BIND config.status 9.20.4
29168 configured by $0, generated by GNU Autoconf 2.71,
29169 with options \\"\$ac_cs_config\\"
29170
29171 Copyright (C) 2021 Free Software Foundation, Inc.
29172 This config.status script is free software; the Free Software Foundation
29173 gives unlimited permission to copy, distribute and modify it."
29174
29175 ac_pwd='$ac_pwd'
29176 srcdir='$srcdir'
29177 INSTALL='$INSTALL'
29178 MKDIR_P='$MKDIR_P'
29179 AWK='$AWK'
29180 test -n "\$AWK" || AWK=awk
29181 _ACEOF
29182
29183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29184 # The default lists apply if the user does not specify any file.
29185 ac_need_defaults=:
29186 while test $# != 0
29187 do
29188 case $1 in
29189 --*=?*)
29190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29191 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29192 ac_shift=:
29193 ;;
29194 --*=)
29195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29196 ac_optarg=
29197 ac_shift=:
29198 ;;
29199 *)
29200 ac_option=$1
29201 ac_optarg=$2
29202 ac_shift=shift
29203 ;;
29204 esac
29205
29206 case $ac_option in
29207 # Handling of the options.
29208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29209 ac_cs_recheck=: ;;
29210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29211 printf "%s\n" "$ac_cs_version"; exit ;;
29212 --config | --confi | --conf | --con | --co | --c )
29213 printf "%s\n" "$ac_cs_config"; exit ;;
29214 --debug | --debu | --deb | --de | --d | -d )
29215 debug=: ;;
29216 --file | --fil | --fi | --f )
29217 $ac_shift
29218 case $ac_optarg in
29219 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29220 '') as_fn_error $? "missing file argument" ;;
29221 esac
29222 as_fn_append CONFIG_FILES " '$ac_optarg'"
29223 ac_need_defaults=false;;
29224 --header | --heade | --head | --hea )
29225 $ac_shift
29226 case $ac_optarg in
29227 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29228 esac
29229 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29230 ac_need_defaults=false;;
29231 --he | --h)
29232 # Conflict between --help and --header
29233 as_fn_error $? "ambiguous option: \`$1'
29234 Try \`$0 --help' for more information.";;
29235 --help | --hel | -h )
29236 printf "%s\n" "$ac_cs_usage"; exit ;;
29237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29239 ac_cs_silent=: ;;
29240
29241 # This is an error.
29242 -*) as_fn_error $? "unrecognized option: \`$1'
29243 Try \`$0 --help' for more information." ;;
29244
29245 *) as_fn_append ac_config_targets " $1"
29246 ac_need_defaults=false ;;
29247
29248 esac
29249 shift
29250 done
29251
29252 ac_configure_extra_args=
29253
29254 if $ac_cs_silent; then
29255 exec 6>/dev/null
29256 ac_configure_extra_args="$ac_configure_extra_args --silent"
29257 fi
29258
29259 _ACEOF
29260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29261 if \$ac_cs_recheck; then
29262 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29263 shift
29264 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
29265 CONFIG_SHELL='$SHELL'
29266 export CONFIG_SHELL
29267 exec "\$@"
29268 fi
29269
29270 _ACEOF
29271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29272 exec 5>>config.log
29273 {
29274 echo
29275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29276 ## Running $as_me. ##
29277 _ASBOX
29278 printf "%s\n" "$ac_log"
29279 } >&5
29280
29281 _ACEOF
29282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29283 #
29284 # INIT-COMMANDS
29285 #
29286 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
29287
29288
29289 # The HP-UX ksh and POSIX shell print the target directory to stdout
29290 # if CDPATH is set.
29291 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29292
29293 sed_quote_subst='$sed_quote_subst'
29294 double_quote_subst='$double_quote_subst'
29295 delay_variable_subst='$delay_variable_subst'
29296 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29297 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29298 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29300 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29301 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29302 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29303 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29304 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29305 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29306 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29307 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29308 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29309 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29310 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29311 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29312 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29313 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29314 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29315 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29316 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29317 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29318 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29319 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29320 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29321 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29322 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29323 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29324 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29325 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29326 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29327 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29328 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29329 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29330 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
29331 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29332 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29333 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29334 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29335 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29336 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29337 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29338 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29339 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
29340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29341 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29342 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29343 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29344 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29345 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29346 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29347 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29348 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29349 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29350 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29351 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29352 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29353 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29354 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29355 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29356 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"`'
29357 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29358 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29359 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29360 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29361 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29362 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29363 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29364 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29365 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29366 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29367 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29368 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29369 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29370 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29371 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29372 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29373 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29374 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29375 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29376 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29377 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29378 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29379 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29380 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29381 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29382 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29383 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29384 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29385 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29386 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29387 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29388 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29389 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29390 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29391 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29392 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29393 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29394 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29395 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29396 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29397 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29398 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29399 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29400 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29401 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29402 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29403 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29404 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29405 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29406 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29407 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29408 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29409 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29410 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29411 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29412 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29413 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29414 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29415 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29416 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29417 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29418 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29419 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29420 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29421 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29422 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29423 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29424 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29425 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29426 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29427 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29428 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29429 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29430 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29431 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29432 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29433
29434 LTCC='$LTCC'
29435 LTCFLAGS='$LTCFLAGS'
29436 compiler='$compiler_DEFAULT'
29437
29438 # A function that is used when there is no print builtin or printf.
29439 func_fallback_echo ()
29440 {
29441 eval 'cat <<_LTECHO_EOF
29442 \$1
29443 _LTECHO_EOF'
29444 }
29445
29446 # Quote evaled strings.
29447 for var in SHELL \
29448 ECHO \
29449 PATH_SEPARATOR \
29450 SED \
29451 GREP \
29452 EGREP \
29453 FGREP \
29454 LD \
29455 NM \
29456 LN_S \
29457 lt_SP2NL \
29458 lt_NL2SP \
29459 reload_flag \
29460 FILECMD \
29461 OBJDUMP \
29462 deplibs_check_method \
29463 file_magic_cmd \
29464 file_magic_glob \
29465 want_nocaseglob \
29466 DLLTOOL \
29467 sharedlib_from_linklib_cmd \
29468 AR \
29469 archiver_list_spec \
29470 STRIP \
29471 RANLIB \
29472 CC \
29473 CFLAGS \
29474 compiler \
29475 lt_cv_sys_global_symbol_pipe \
29476 lt_cv_sys_global_symbol_to_cdecl \
29477 lt_cv_sys_global_symbol_to_import \
29478 lt_cv_sys_global_symbol_to_c_name_address \
29479 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29480 lt_cv_nm_interface \
29481 nm_file_list_spec \
29482 lt_cv_truncate_bin \
29483 lt_prog_compiler_no_builtin_flag \
29484 lt_prog_compiler_pic \
29485 lt_prog_compiler_wl \
29486 lt_prog_compiler_static \
29487 lt_cv_prog_compiler_c_o \
29488 need_locks \
29489 MANIFEST_TOOL \
29490 DSYMUTIL \
29491 NMEDIT \
29492 LIPO \
29493 OTOOL \
29494 OTOOL64 \
29495 shrext_cmds \
29496 export_dynamic_flag_spec \
29497 whole_archive_flag_spec \
29498 compiler_needs_object \
29499 with_gnu_ld \
29500 allow_undefined_flag \
29501 no_undefined_flag \
29502 hardcode_libdir_flag_spec \
29503 hardcode_libdir_separator \
29504 exclude_expsyms \
29505 include_expsyms \
29506 file_list_spec \
29507 variables_saved_for_relink \
29508 libname_spec \
29509 library_names_spec \
29510 soname_spec \
29511 install_override_mode \
29512 finish_eval \
29513 old_striplib \
29514 striplib; do
29515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29516 *[\\\\\\\`\\"\\\$]*)
29517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29518 ;;
29519 *)
29520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29521 ;;
29522 esac
29523 done
29524
29525 # Double-quote double-evaled strings.
29526 for var in reload_cmds \
29527 old_postinstall_cmds \
29528 old_postuninstall_cmds \
29529 old_archive_cmds \
29530 extract_expsyms_cmds \
29531 old_archive_from_new_cmds \
29532 old_archive_from_expsyms_cmds \
29533 archive_cmds \
29534 archive_expsym_cmds \
29535 module_cmds \
29536 module_expsym_cmds \
29537 export_symbols_cmds \
29538 prelink_cmds \
29539 postlink_cmds \
29540 postinstall_cmds \
29541 postuninstall_cmds \
29542 finish_cmds \
29543 sys_lib_search_path_spec \
29544 configure_time_dlsearch_path \
29545 configure_time_lt_sys_library_path; do
29546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29547 *[\\\\\\\`\\"\\\$]*)
29548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29549 ;;
29550 *)
29551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29552 ;;
29553 esac
29554 done
29555
29556 ac_aux_dir='$ac_aux_dir'
29557
29558 # See if we are running on zsh, and set the options that allow our
29559 # commands through without removal of \ escapes INIT.
29560 if test -n "\${ZSH_VERSION+set}"; then
29561 setopt NO_GLOB_SUBST
29562 fi
29563
29564
29565 PACKAGE='$PACKAGE'
29566 VERSION='$VERSION'
29567 RM='$RM'
29568 ofile='$ofile'
29569
29570
29571
29572
29573 _ACEOF
29574
29575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29576
29577 # Handling of arguments.
29578 for ac_config_target in $ac_config_targets
29579 do
29580 case $ac_config_target in
29581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29584 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
29585 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29586 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
29587 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
29588 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
29589 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
29590 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
29591 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
29592 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
29593 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
29594 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
29595 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
29596 "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
29597 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29598 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
29599 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
29600 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
29601 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
29602 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
29603 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29604 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
29605 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
29606 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
29607 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29608 "tests/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bench/Makefile" ;;
29609 "tests/isc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isc/Makefile" ;;
29610 "tests/dns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dns/Makefile" ;;
29611 "tests/ns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ns/Makefile" ;;
29612 "tests/irs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/irs/Makefile" ;;
29613 "tests/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isccfg/Makefile" ;;
29614 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
29615 "tests/unit-test-driver.sh") CONFIG_FILES="$CONFIG_FILES tests/unit-test-driver.sh" ;;
29616 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
29617 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
29618 "bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR" ;;
29619 "bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR" ;;
29620 "bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE" ;;
29621 "bin/tests/system/isctest/vars/.ac_vars/SHELL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/SHELL" ;;
29622 "bin/tests/system/isctest/vars/.ac_vars/PYTHON") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PYTHON" ;;
29623 "bin/tests/system/isctest/vars/.ac_vars/PERL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PERL" ;;
29624 "bin/tests/system/isctest/vars/.ac_vars/CURL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/CURL" ;;
29625 "bin/tests/system/isctest/vars/.ac_vars/NC") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/NC" ;;
29626 "bin/tests/system/isctest/vars/.ac_vars/XSLTPROC") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/XSLTPROC" ;;
29627 "bin/tests/system/isctest/vars/.ac_vars/PYTEST") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PYTEST" ;;
29628 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
29629 "bin/tests/system/dlzexternal/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/driver/Makefile" ;;
29630 "bin/tests/system/hooks/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/hooks/driver/Makefile" ;;
29631 "bin/tests/system/rpz/testlib/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/testlib/Makefile" ;;
29632 "bin/tests/system/ifconfig.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/ifconfig.sh" ;;
29633 "bin/tests/system/start.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/start.sh" ;;
29634 "bin/tests/system/stop.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/stop.sh" ;;
29635 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
29636 "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
29637
29638 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29639 esac
29640 done
29641
29642
29643 # If the user did not use the arguments to specify the items to instantiate,
29644 # then the envvar interface is used. Set only those that are not.
29645 # We use the long form for the default assignment because of an extremely
29646 # bizarre bug on SunOS 4.1.3.
29647 if $ac_need_defaults; then
29648 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
29649 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
29650 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
29651 fi
29652
29653 # Have a temporary directory for convenience. Make it in the build tree
29654 # simply because there is no reason against having it here, and in addition,
29655 # creating and moving files from /tmp can sometimes cause problems.
29656 # Hook for its removal unless debugging.
29657 # Note that there is a small window in which the directory will not be cleaned:
29658 # after its creation but before its name has been assigned to `$tmp'.
29659 $debug ||
29660 {
29661 tmp= ac_tmp=
29662 trap 'exit_status=$?
29663 : "${ac_tmp:=$tmp}"
29664 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29665 ' 0
29666 trap 'as_fn_exit 1' 1 2 13 15
29667 }
29668 # Create a (secure) tmp directory for tmp files.
29669
29670 {
29671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29672 test -d "$tmp"
29673 } ||
29674 {
29675 tmp=./conf$$-$RANDOM
29676 (umask 077 && mkdir "$tmp")
29677 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29678 ac_tmp=$tmp
29679
29680 # Set up the scripts for CONFIG_FILES section.
29681 # No need to generate them if there are no CONFIG_FILES.
29682 # This happens for instance with `./config.status config.h'.
29683 if test -n "$CONFIG_FILES"; then
29684
29685
29686 ac_cr=`echo X | tr X '\015'`
29687 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29688 # But we know of no other shell where ac_cr would be empty at this
29689 # point, so we can use a bashism as a fallback.
29690 if test "x$ac_cr" = x; then
29691 eval ac_cr=\$\'\\r\'
29692 fi
29693 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29694 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29695 ac_cs_awk_cr='\\r'
29696 else
29697 ac_cs_awk_cr=$ac_cr
29698 fi
29699
29700 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29701 _ACEOF
29702
29703
29704 {
29705 echo "cat >conf$$subs.awk <<_ACEOF" &&
29706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29707 echo "_ACEOF"
29708 } >conf$$subs.sh ||
29709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29710 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29711 ac_delim='%!_!# '
29712 for ac_last_try in false false false false false :; do
29713 . ./conf$$subs.sh ||
29714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29715
29716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29717 if test $ac_delim_n = $ac_delim_num; then
29718 break
29719 elif $ac_last_try; then
29720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29721 else
29722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29723 fi
29724 done
29725 rm -f conf$$subs.sh
29726
29727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29728 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29729 _ACEOF
29730 sed -n '
29731 h
29732 s/^/S["/; s/!.*/"]=/
29733 p
29734 g
29735 s/^[^!]*!//
29736 :repl
29737 t repl
29738 s/'"$ac_delim"'$//
29739 t delim
29740 :nl
29741 h
29742 s/\(.\{148\}\)..*/\1/
29743 t more1
29744 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29745 p
29746 n
29747 b repl
29748 :more1
29749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29750 p
29751 g
29752 s/.\{148\}//
29753 t nl
29754 :delim
29755 h
29756 s/\(.\{148\}\)..*/\1/
29757 t more2
29758 s/["\\]/\\&/g; s/^/"/; s/$/"/
29759 p
29760 b
29761 :more2
29762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29763 p
29764 g
29765 s/.\{148\}//
29766 t delim
29767 ' <conf$$subs.awk | sed '
29768 /^[^""]/{
29769 N
29770 s/\n//
29771 }
29772 ' >>$CONFIG_STATUS || ac_write_fail=1
29773 rm -f conf$$subs.awk
29774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29775 _ACAWK
29776 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29777 for (key in S) S_is_set[key] = 1
29778 FS = ""
29779
29780 }
29781 {
29782 line = $ 0
29783 nfields = split(line, field, "@")
29784 substed = 0
29785 len = length(field[1])
29786 for (i = 2; i < nfields; i++) {
29787 key = field[i]
29788 keylen = length(key)
29789 if (S_is_set[key]) {
29790 value = S[key]
29791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29792 len += length(value) + length(field[++i])
29793 substed = 1
29794 } else
29795 len += 1 + keylen
29796 }
29797
29798 print line
29799 }
29800
29801 _ACAWK
29802 _ACEOF
29803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29804 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29805 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29806 else
29807 cat
29808 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29809 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29810 _ACEOF
29811
29812 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29813 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29814 # trailing colons and then remove the whole line if VPATH becomes empty
29815 # (actually we leave an empty line to preserve line numbers).
29816 if test "x$srcdir" = x.; then
29817 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29818 h
29819 s///
29820 s/^/:/
29821 s/[ ]*$/:/
29822 s/:\$(srcdir):/:/g
29823 s/:\${srcdir}:/:/g
29824 s/:@srcdir@:/:/g
29825 s/^:*//
29826 s/:*$//
29827 x
29828 s/\(=[ ]*\).*/\1/
29829 G
29830 s/\n//
29831 s/^[^=]*=[ ]*$//
29832 }'
29833 fi
29834
29835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29836 fi # test -n "$CONFIG_FILES"
29837
29838 # Set up the scripts for CONFIG_HEADERS section.
29839 # No need to generate them if there are no CONFIG_HEADERS.
29840 # This happens for instance with `./config.status Makefile'.
29841 if test -n "$CONFIG_HEADERS"; then
29842 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29843 BEGIN {
29844 _ACEOF
29845
29846 # Transform confdefs.h into an awk script `defines.awk', embedded as
29847 # here-document in config.status, that substitutes the proper values into
29848 # config.h.in to produce config.h.
29849
29850 # Create a delimiter string that does not exist in confdefs.h, to ease
29851 # handling of long lines.
29852 ac_delim='%!_!# '
29853 for ac_last_try in false false :; do
29854 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29855 if test -z "$ac_tt"; then
29856 break
29857 elif $ac_last_try; then
29858 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29859 else
29860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29861 fi
29862 done
29863
29864 # For the awk script, D is an array of macro values keyed by name,
29865 # likewise P contains macro parameters if any. Preserve backslash
29866 # newline sequences.
29867
29868 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29869 sed -n '
29870 s/.\{148\}/&'"$ac_delim"'/g
29871 t rset
29872 :rset
29873 s/^[ ]*#[ ]*define[ ][ ]*/ /
29874 t def
29875 d
29876 :def
29877 s/\\$//
29878 t bsnl
29879 s/["\\]/\\&/g
29880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29881 D["\1"]=" \3"/p
29882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29883 d
29884 :bsnl
29885 s/["\\]/\\&/g
29886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29887 D["\1"]=" \3\\\\\\n"\\/p
29888 t cont
29889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29890 t cont
29891 d
29892 :cont
29893 n
29894 s/.\{148\}/&'"$ac_delim"'/g
29895 t clear
29896 :clear
29897 s/\\$//
29898 t bsnlc
29899 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29900 d
29901 :bsnlc
29902 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29903 b cont
29904 ' <confdefs.h | sed '
29905 s/'"$ac_delim"'/"\\\
29906 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29907
29908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29909 for (key in D) D_is_set[key] = 1
29910 FS = ""
29911 }
29912 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29913 line = \$ 0
29914 split(line, arg, " ")
29915 if (arg[1] == "#") {
29916 defundef = arg[2]
29917 mac1 = arg[3]
29918 } else {
29919 defundef = substr(arg[1], 2)
29920 mac1 = arg[2]
29921 }
29922 split(mac1, mac2, "(") #)
29923 macro = mac2[1]
29924 prefix = substr(line, 1, index(line, defundef) - 1)
29925 if (D_is_set[macro]) {
29926 # Preserve the white space surrounding the "#".
29927 print prefix "define", macro P[macro] D[macro]
29928 next
29929 } else {
29930 # Replace #undef with comments. This is necessary, for example,
29931 # in the case of _POSIX_SOURCE, which is predefined and required
29932 # on some systems where configure will not decide to define it.
29933 if (defundef == "undef") {
29934 print "/*", prefix defundef, macro, "*/"
29935 next
29936 }
29937 }
29938 }
29939 { print }
29940 _ACAWK
29941 _ACEOF
29942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29943 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29944 fi # test -n "$CONFIG_HEADERS"
29945
29946
29947 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29948 shift
29949 for ac_tag
29950 do
29951 case $ac_tag in
29952 :[FHLC]) ac_mode=$ac_tag; continue;;
29953 esac
29954 case $ac_mode$ac_tag in
29955 :[FHL]*:*);;
29956 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29957 :[FH]-) ac_tag=-:-;;
29958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29959 esac
29960 ac_save_IFS=$IFS
29961 IFS=:
29962 set x $ac_tag
29963 IFS=$ac_save_IFS
29964 shift
29965 ac_file=$1
29966 shift
29967
29968 case $ac_mode in
29969 :L) ac_source=$1;;
29970 :[FH])
29971 ac_file_inputs=
29972 for ac_f
29973 do
29974 case $ac_f in
29975 -) ac_f="$ac_tmp/stdin";;
29976 *) # Look for the file first in the build tree, then in the source tree
29977 # (if the path is not absolute). The absolute path cannot be DOS-style,
29978 # because $ac_f cannot contain `:'.
29979 test -f "$ac_f" ||
29980 case $ac_f in
29981 [\\/$]*) false;;
29982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29983 esac ||
29984 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29985 esac
29986 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29987 as_fn_append ac_file_inputs " '$ac_f'"
29988 done
29989
29990 # Let's still pretend it is `configure' which instantiates (i.e., don't
29991 # use $as_me), people would be surprised to read:
29992 # /* config.h. Generated by config.status. */
29993 configure_input='Generated from '`
29994 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29995 `' by configure.'
29996 if test x"$ac_file" != x-; then
29997 configure_input="$ac_file. $configure_input"
29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29999 printf "%s\n" "$as_me: creating $ac_file" >&6;}
30000 fi
30001 # Neutralize special characters interpreted by sed in replacement strings.
30002 case $configure_input in #(
30003 *\&* | *\|* | *\\* )
30004 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
30005 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30006 *) ac_sed_conf_input=$configure_input;;
30007 esac
30008
30009 case $ac_tag in
30010 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30012 esac
30013 ;;
30014 esac
30015
30016 ac_dir=`$as_dirname -- "$ac_file" ||
30017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30018 X"$ac_file" : 'X\(//\)[^/]' \| \
30019 X"$ac_file" : 'X\(//\)$' \| \
30020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30021 printf "%s\n" X"$ac_file" |
30022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30023 s//\1/
30024 q
30025 }
30026 /^X\(\/\/\)[^/].*/{
30027 s//\1/
30028 q
30029 }
30030 /^X\(\/\/\)$/{
30031 s//\1/
30032 q
30033 }
30034 /^X\(\/\).*/{
30035 s//\1/
30036 q
30037 }
30038 s/.*/./; q'`
30039 as_dir="$ac_dir"; as_fn_mkdir_p
30040 ac_builddir=.
30041
30042 case "$ac_dir" in
30043 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30044 *)
30045 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30046 # A ".." for each directory in $ac_dir_suffix.
30047 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30048 case $ac_top_builddir_sub in
30049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30051 esac ;;
30052 esac
30053 ac_abs_top_builddir=$ac_pwd
30054 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30055 # for backward compatibility:
30056 ac_top_builddir=$ac_top_build_prefix
30057
30058 case $srcdir in
30059 .) # We are building in place.
30060 ac_srcdir=.
30061 ac_top_srcdir=$ac_top_builddir_sub
30062 ac_abs_top_srcdir=$ac_pwd ;;
30063 [\\/]* | ?:[\\/]* ) # Absolute name.
30064 ac_srcdir=$srcdir$ac_dir_suffix;
30065 ac_top_srcdir=$srcdir
30066 ac_abs_top_srcdir=$srcdir ;;
30067 *) # Relative name.
30068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30069 ac_top_srcdir=$ac_top_build_prefix$srcdir
30070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30071 esac
30072 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30073
30074
30075 case $ac_mode in
30076 :F)
30077 #
30078 # CONFIG_FILE
30079 #
30080
30081 case $INSTALL in
30082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30084 esac
30085 ac_MKDIR_P=$MKDIR_P
30086 case $MKDIR_P in
30087 [\\/$]* | ?:[\\/]* ) ;;
30088 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30089 esac
30090 _ACEOF
30091
30092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30093 # If the template does not know about datarootdir, expand it.
30094 # FIXME: This hack should be removed a few years after 2.60.
30095 ac_datarootdir_hack=; ac_datarootdir_seen=
30096 ac_sed_dataroot='
30097 /datarootdir/ {
30098 p
30099 q
30100 }
30101 /@datadir@/p
30102 /@docdir@/p
30103 /@infodir@/p
30104 /@localedir@/p
30105 /@mandir@/p'
30106 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30107 *datarootdir*) ac_datarootdir_seen=yes;;
30108 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30110 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30111 _ACEOF
30112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30113 ac_datarootdir_hack='
30114 s&@datadir@&$datadir&g
30115 s&@docdir@&$docdir&g
30116 s&@infodir@&$infodir&g
30117 s&@localedir@&$localedir&g
30118 s&@mandir@&$mandir&g
30119 s&\\\${datarootdir}&$datarootdir&g' ;;
30120 esac
30121 _ACEOF
30122
30123 # Neutralize VPATH when `$srcdir' = `.'.
30124 # Shell code in configure.ac might set extrasub.
30125 # FIXME: do we really want to maintain this feature?
30126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30127 ac_sed_extra="$ac_vpsub
30128 $extrasub
30129 _ACEOF
30130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30131 :t
30132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30133 s|@configure_input@|$ac_sed_conf_input|;t t
30134 s&@top_builddir@&$ac_top_builddir_sub&;t t
30135 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30136 s&@srcdir@&$ac_srcdir&;t t
30137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30138 s&@top_srcdir@&$ac_top_srcdir&;t t
30139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30140 s&@builddir@&$ac_builddir&;t t
30141 s&@abs_builddir@&$ac_abs_builddir&;t t
30142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30143 s&@INSTALL@&$ac_INSTALL&;t t
30144 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30145 $ac_datarootdir_hack
30146 "
30147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30148 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30149
30150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30151 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30153 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30155 which seems to be undefined. Please make sure it is defined" >&5
30156 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30157 which seems to be undefined. Please make sure it is defined" >&2;}
30158
30159 rm -f "$ac_tmp/stdin"
30160 case $ac_file in
30161 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30162 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30163 esac \
30164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30165 ;;
30166 :H)
30167 #
30168 # CONFIG_HEADER
30169 #
30170 if test x"$ac_file" != x-; then
30171 {
30172 printf "%s\n" "/* $configure_input */" >&1 \
30173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30174 } >"$ac_tmp/config.h" \
30175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30176 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30178 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
30179 else
30180 rm -f "$ac_file"
30181 mv "$ac_tmp/config.h" "$ac_file" \
30182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30183 fi
30184 else
30185 printf "%s\n" "/* $configure_input */" >&1 \
30186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30187 || as_fn_error $? "could not create -" "$LINENO" 5
30188 fi
30189 # Compute "$ac_file"'s index in $config_headers.
30190 _am_arg="$ac_file"
30191 _am_stamp_count=1
30192 for _am_header in $config_headers :; do
30193 case $_am_header in
30194 $_am_arg | $_am_arg:* )
30195 break ;;
30196 * )
30197 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30198 esac
30199 done
30200 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30201 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30202 X"$_am_arg" : 'X\(//\)[^/]' \| \
30203 X"$_am_arg" : 'X\(//\)$' \| \
30204 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30205 printf "%s\n" X"$_am_arg" |
30206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30207 s//\1/
30208 q
30209 }
30210 /^X\(\/\/\)[^/].*/{
30211 s//\1/
30212 q
30213 }
30214 /^X\(\/\/\)$/{
30215 s//\1/
30216 q
30217 }
30218 /^X\(\/\).*/{
30219 s//\1/
30220 q
30221 }
30222 s/.*/./; q'`/stamp-h$_am_stamp_count
30223 ;;
30224
30225 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30226 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
30227 ;;
30228 esac
30229
30230
30231 case $ac_file$ac_mode in
30232 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30233 # Older Autoconf quotes --file arguments for eval, but not when files
30234 # are listed without --file. Let's play safe and only enable the eval
30235 # if we detect the quoting.
30236 # TODO: see whether this extra hack can be removed once we start
30237 # requiring Autoconf 2.70 or later.
30238 case $CONFIG_FILES in #(
30239 *\'*) :
30240 eval set x "$CONFIG_FILES" ;; #(
30241 *) :
30242 set x $CONFIG_FILES ;; #(
30243 *) :
30244 ;;
30245 esac
30246 shift
30247 # Used to flag and report bootstrapping failures.
30248 am_rc=0
30249 for am_mf
30250 do
30251 # Strip MF so we end up with the name of the file.
30252 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
30253 # Check whether this is an Automake generated Makefile which includes
30254 # dependency-tracking related rules and includes.
30255 # Grep'ing the whole file directly is not great: AIX grep has a line
30256 # limit of 2048, but all sed's we know have understand at least 4000.
30257 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
30258 || continue
30259 am_dirpart=`$as_dirname -- "$am_mf" ||
30260 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30261 X"$am_mf" : 'X\(//\)[^/]' \| \
30262 X"$am_mf" : 'X\(//\)$' \| \
30263 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30264 printf "%s\n" X"$am_mf" |
30265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30266 s//\1/
30267 q
30268 }
30269 /^X\(\/\/\)[^/].*/{
30270 s//\1/
30271 q
30272 }
30273 /^X\(\/\/\)$/{
30274 s//\1/
30275 q
30276 }
30277 /^X\(\/\).*/{
30278 s//\1/
30279 q
30280 }
30281 s/.*/./; q'`
30282 am_filepart=`$as_basename -- "$am_mf" ||
30283 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
30284 X"$am_mf" : 'X\(//\)$' \| \
30285 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30286 printf "%s\n" X/"$am_mf" |
30287 sed '/^.*\/\([^/][^/]*\)\/*$/{
30288 s//\1/
30289 q
30290 }
30291 /^X\/\(\/\/\)$/{
30292 s//\1/
30293 q
30294 }
30295 /^X\/\(\/\).*/{
30296 s//\1/
30297 q
30298 }
30299 s/.*/./; q'`
30300 { echo "$as_me:$LINENO: cd "$am_dirpart" \
30301 && sed -e '/# am--include-marker/d' "$am_filepart" \
30302 | $MAKE -f - am--depfiles" >&5
30303 (cd "$am_dirpart" \
30304 && sed -e '/# am--include-marker/d' "$am_filepart" \
30305 | $MAKE -f - am--depfiles) >&5 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } || am_rc=$?
30309 done
30310 if test $am_rc -ne 0; then
30311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30312 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30313 as_fn_error $? "Something went wrong bootstrapping makefile fragments
30314 for automatic dependency tracking. If GNU make was not used, consider
30315 re-running the configure script with MAKE=\"gmake\" (or whatever is
30316 necessary). You can also try re-running configure with the
30317 '--disable-dependency-tracking' option to at least be able to build
30318 the package (albeit without support for automatic dependency tracking).
30319 See \`config.log' for more details" "$LINENO" 5; }
30320 fi
30321 { am_dirpart=; unset am_dirpart;}
30322 { am_filepart=; unset am_filepart;}
30323 { am_mf=; unset am_mf;}
30324 { am_rc=; unset am_rc;}
30325 rm -f conftest-deps.mk
30326 }
30327 ;;
30328 "libtool":C)
30329
30330 # See if we are running on zsh, and set the options that allow our
30331 # commands through without removal of \ escapes.
30332 if test -n "${ZSH_VERSION+set}"; then
30333 setopt NO_GLOB_SUBST
30334 fi
30335
30336 cfgfile=${ofile}T
30337 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30338 $RM "$cfgfile"
30339
30340 cat <<_LT_EOF >> "$cfgfile"
30341 #! $SHELL
30342 # Generated automatically by $as_me ($PACKAGE) $VERSION
30343 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30344
30345 # Provide generalized library-building support services.
30346 # Written by Gordon Matzigkeit, 1996
30347
30348 # Copyright (C) 2014 Free Software Foundation, Inc.
30349 # This is free software; see the source for copying conditions. There is NO
30350 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30351
30352 # GNU Libtool is free software; you can redistribute it and/or modify
30353 # it under the terms of the GNU General Public License as published by
30354 # the Free Software Foundation; either version 2 of of the License, or
30355 # (at your option) any later version.
30356 #
30357 # As a special exception to the GNU General Public License, if you
30358 # distribute this file as part of a program or library that is built
30359 # using GNU Libtool, you may include this file under the same
30360 # distribution terms that you use for the rest of that program.
30361 #
30362 # GNU Libtool is distributed in the hope that it will be useful, but
30363 # WITHOUT ANY WARRANTY; without even the implied warranty of
30364 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30365 # GNU General Public License for more details.
30366 #
30367 # You should have received a copy of the GNU General Public License
30368 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30369
30370
30371 # The names of the tagged configurations supported by this script.
30372 available_tags=''
30373
30374 # Configured defaults for sys_lib_dlsearch_path munging.
30375 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30376
30377 # ### BEGIN LIBTOOL CONFIG
30378
30379 # Which release of libtool.m4 was used?
30380 macro_version=$macro_version
30381 macro_revision=$macro_revision
30382
30383 # Whether or not to build static libraries.
30384 build_old_libs=$enable_static
30385
30386 # What type of objects to build.
30387 pic_mode=$pic_mode
30388
30389 # Whether or not to build shared libraries.
30390 build_libtool_libs=$enable_shared
30391
30392 # Whether or not to optimize for fast installation.
30393 fast_install=$enable_fast_install
30394
30395 # Shared archive member basename,for filename based shared library versioning on AIX.
30396 shared_archive_member_spec=$shared_archive_member_spec
30397
30398 # Shell to use when invoking shell scripts.
30399 SHELL=$lt_SHELL
30400
30401 # An echo program that protects backslashes.
30402 ECHO=$lt_ECHO
30403
30404 # The PATH separator for the build system.
30405 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30406
30407 # The host system.
30408 host_alias=$host_alias
30409 host=$host
30410 host_os=$host_os
30411
30412 # The build system.
30413 build_alias=$build_alias
30414 build=$build
30415 build_os=$build_os
30416
30417 # A sed program that does not truncate output.
30418 SED=$lt_SED
30419
30420 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30421 Xsed="\$SED -e 1s/^X//"
30422
30423 # A grep program that handles long lines.
30424 GREP=$lt_GREP
30425
30426 # An ERE matcher.
30427 EGREP=$lt_EGREP
30428
30429 # A literal string matcher.
30430 FGREP=$lt_FGREP
30431
30432 # A BSD- or MS-compatible name lister.
30433 NM=$lt_NM
30434
30435 # Whether we need soft or hard links.
30436 LN_S=$lt_LN_S
30437
30438 # What is the maximum length of a command?
30439 max_cmd_len=$max_cmd_len
30440
30441 # Object file suffix (normally "o").
30442 objext=$ac_objext
30443
30444 # Executable file suffix (normally "").
30445 exeext=$exeext
30446
30447 # whether the shell understands "unset".
30448 lt_unset=$lt_unset
30449
30450 # turn spaces into newlines.
30451 SP2NL=$lt_lt_SP2NL
30452
30453 # turn newlines into spaces.
30454 NL2SP=$lt_lt_NL2SP
30455
30456 # convert \$build file names to \$host format.
30457 to_host_file_cmd=$lt_cv_to_host_file_cmd
30458
30459 # convert \$build files to toolchain format.
30460 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30461
30462 # A file(cmd) program that detects file types.
30463 FILECMD=$lt_FILECMD
30464
30465 # An object symbol dumper.
30466 OBJDUMP=$lt_OBJDUMP
30467
30468 # Method to check whether dependent libraries are shared objects.
30469 deplibs_check_method=$lt_deplibs_check_method
30470
30471 # Command to use when deplibs_check_method = "file_magic".
30472 file_magic_cmd=$lt_file_magic_cmd
30473
30474 # How to find potential files when deplibs_check_method = "file_magic".
30475 file_magic_glob=$lt_file_magic_glob
30476
30477 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30478 want_nocaseglob=$lt_want_nocaseglob
30479
30480 # DLL creation program.
30481 DLLTOOL=$lt_DLLTOOL
30482
30483 # Command to associate shared and link libraries.
30484 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30485
30486 # The archiver.
30487 AR=$lt_AR
30488
30489 # Flags to create an archive (by configure).
30490 lt_ar_flags=$lt_ar_flags
30491
30492 # Flags to create an archive.
30493 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
30494
30495 # How to feed a file listing to the archiver.
30496 archiver_list_spec=$lt_archiver_list_spec
30497
30498 # A symbol stripping program.
30499 STRIP=$lt_STRIP
30500
30501 # Commands used to install an old-style archive.
30502 RANLIB=$lt_RANLIB
30503 old_postinstall_cmds=$lt_old_postinstall_cmds
30504 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30505
30506 # Whether to use a lock for old archive extraction.
30507 lock_old_archive_extraction=$lock_old_archive_extraction
30508
30509 # A C compiler.
30510 LTCC=$lt_CC
30511
30512 # LTCC compiler flags.
30513 LTCFLAGS=$lt_CFLAGS
30514
30515 # Take the output of nm and produce a listing of raw symbols and C names.
30516 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30517
30518 # Transform the output of nm in a proper C declaration.
30519 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30520
30521 # Transform the output of nm into a list of symbols to manually relocate.
30522 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30523
30524 # Transform the output of nm in a C name address pair.
30525 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30526
30527 # Transform the output of nm in a C name address pair when lib prefix is needed.
30528 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30529
30530 # The name lister interface.
30531 nm_interface=$lt_lt_cv_nm_interface
30532
30533 # Specify filename containing input files for \$NM.
30534 nm_file_list_spec=$lt_nm_file_list_spec
30535
30536 # The root where to search for dependent libraries,and where our libraries should be installed.
30537 lt_sysroot=$lt_sysroot
30538
30539 # Command to truncate a binary pipe.
30540 lt_truncate_bin=$lt_lt_cv_truncate_bin
30541
30542 # The name of the directory that contains temporary libtool files.
30543 objdir=$objdir
30544
30545 # Used to examine libraries when file_magic_cmd begins with "file".
30546 MAGIC_CMD=$MAGIC_CMD
30547
30548 # Must we lock files when doing compilation?
30549 need_locks=$lt_need_locks
30550
30551 # Manifest tool.
30552 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30553
30554 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30555 DSYMUTIL=$lt_DSYMUTIL
30556
30557 # Tool to change global to local symbols on Mac OS X.
30558 NMEDIT=$lt_NMEDIT
30559
30560 # Tool to manipulate fat objects and archives on Mac OS X.
30561 LIPO=$lt_LIPO
30562
30563 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30564 OTOOL=$lt_OTOOL
30565
30566 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30567 OTOOL64=$lt_OTOOL64
30568
30569 # Old archive suffix (normally "a").
30570 libext=$libext
30571
30572 # Shared library suffix (normally ".so").
30573 shrext_cmds=$lt_shrext_cmds
30574
30575 # The commands to extract the exported symbol list from a shared archive.
30576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30577
30578 # Variables whose values should be saved in libtool wrapper scripts and
30579 # restored at link time.
30580 variables_saved_for_relink=$lt_variables_saved_for_relink
30581
30582 # Do we need the "lib" prefix for modules?
30583 need_lib_prefix=$need_lib_prefix
30584
30585 # Do we need a version for libraries?
30586 need_version=$need_version
30587
30588 # Library versioning type.
30589 version_type=$version_type
30590
30591 # Shared library runtime path variable.
30592 runpath_var=$runpath_var
30593
30594 # Shared library path variable.
30595 shlibpath_var=$shlibpath_var
30596
30597 # Is shlibpath searched before the hard-coded library search path?
30598 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30599
30600 # Format of library name prefix.
30601 libname_spec=$lt_libname_spec
30602
30603 # List of archive names. First name is the real one, the rest are links.
30604 # The last name is the one that the linker finds with -lNAME
30605 library_names_spec=$lt_library_names_spec
30606
30607 # The coded name of the library, if different from the real name.
30608 soname_spec=$lt_soname_spec
30609
30610 # Permission mode override for installation of shared libraries.
30611 install_override_mode=$lt_install_override_mode
30612
30613 # Command to use after installation of a shared archive.
30614 postinstall_cmds=$lt_postinstall_cmds
30615
30616 # Command to use after uninstallation of a shared archive.
30617 postuninstall_cmds=$lt_postuninstall_cmds
30618
30619 # Commands used to finish a libtool library installation in a directory.
30620 finish_cmds=$lt_finish_cmds
30621
30622 # As "finish_cmds", except a single script fragment to be evaled but
30623 # not shown.
30624 finish_eval=$lt_finish_eval
30625
30626 # Whether we should hardcode library paths into libraries.
30627 hardcode_into_libs=$hardcode_into_libs
30628
30629 # Compile-time system search path for libraries.
30630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30631
30632 # Detected run-time system search path for libraries.
30633 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30634
30635 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30636 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30637
30638 # Whether dlopen is supported.
30639 dlopen_support=$enable_dlopen
30640
30641 # Whether dlopen of programs is supported.
30642 dlopen_self=$enable_dlopen_self
30643
30644 # Whether dlopen of statically linked programs is supported.
30645 dlopen_self_static=$enable_dlopen_self_static
30646
30647 # Commands to strip libraries.
30648 old_striplib=$lt_old_striplib
30649 striplib=$lt_striplib
30650
30651
30652 # The linker used to build libraries.
30653 LD=$lt_LD
30654
30655 # How to create reloadable object files.
30656 reload_flag=$lt_reload_flag
30657 reload_cmds=$lt_reload_cmds
30658
30659 # Commands used to build an old-style archive.
30660 old_archive_cmds=$lt_old_archive_cmds
30661
30662 # A language specific compiler.
30663 CC=$lt_compiler
30664
30665 # Is the compiler the GNU compiler?
30666 with_gcc=$GCC
30667
30668 # Compiler flag to turn off builtin functions.
30669 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30670
30671 # Additional compiler flags for building library objects.
30672 pic_flag=$lt_lt_prog_compiler_pic
30673
30674 # How to pass a linker flag through the compiler.
30675 wl=$lt_lt_prog_compiler_wl
30676
30677 # Compiler flag to prevent dynamic linking.
30678 link_static_flag=$lt_lt_prog_compiler_static
30679
30680 # Does compiler simultaneously support -c and -o options?
30681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30682
30683 # Whether or not to add -lc for building shared libraries.
30684 build_libtool_need_lc=$archive_cmds_need_lc
30685
30686 # Whether or not to disallow shared libs when runtime libs are static.
30687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30688
30689 # Compiler flag to allow reflexive dlopens.
30690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30691
30692 # Compiler flag to generate shared objects directly from archives.
30693 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30694
30695 # Whether the compiler copes with passing no objects directly.
30696 compiler_needs_object=$lt_compiler_needs_object
30697
30698 # Create an old-style archive from a shared archive.
30699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30700
30701 # Create a temporary old-style archive to link instead of a shared archive.
30702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30703
30704 # Commands used to build a shared archive.
30705 archive_cmds=$lt_archive_cmds
30706 archive_expsym_cmds=$lt_archive_expsym_cmds
30707
30708 # Commands used to build a loadable module if different from building
30709 # a shared archive.
30710 module_cmds=$lt_module_cmds
30711 module_expsym_cmds=$lt_module_expsym_cmds
30712
30713 # Whether we are building with GNU ld or not.
30714 with_gnu_ld=$lt_with_gnu_ld
30715
30716 # Flag that allows shared libraries with undefined symbols to be built.
30717 allow_undefined_flag=$lt_allow_undefined_flag
30718
30719 # Flag that enforces no undefined symbols.
30720 no_undefined_flag=$lt_no_undefined_flag
30721
30722 # Flag to hardcode \$libdir into a binary during linking.
30723 # This must work even if \$libdir does not exist
30724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30725
30726 # Whether we need a single "-rpath" flag with a separated argument.
30727 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30728
30729 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30730 # DIR into the resulting binary.
30731 hardcode_direct=$hardcode_direct
30732
30733 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30734 # DIR into the resulting binary and the resulting library dependency is
30735 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30736 # library is relocated.
30737 hardcode_direct_absolute=$hardcode_direct_absolute
30738
30739 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30740 # into the resulting binary.
30741 hardcode_minus_L=$hardcode_minus_L
30742
30743 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30744 # into the resulting binary.
30745 hardcode_shlibpath_var=$hardcode_shlibpath_var
30746
30747 # Set to "yes" if building a shared library automatically hardcodes DIR
30748 # into the library and all subsequent libraries and executables linked
30749 # against it.
30750 hardcode_automatic=$hardcode_automatic
30751
30752 # Set to yes if linker adds runtime paths of dependent libraries
30753 # to runtime path list.
30754 inherit_rpath=$inherit_rpath
30755
30756 # Whether libtool must link a program against all its dependency libraries.
30757 link_all_deplibs=$link_all_deplibs
30758
30759 # Set to "yes" if exported symbols are required.
30760 always_export_symbols=$always_export_symbols
30761
30762 # The commands to list exported symbols.
30763 export_symbols_cmds=$lt_export_symbols_cmds
30764
30765 # Symbols that should not be listed in the preloaded symbols.
30766 exclude_expsyms=$lt_exclude_expsyms
30767
30768 # Symbols that must always be exported.
30769 include_expsyms=$lt_include_expsyms
30770
30771 # Commands necessary for linking programs (against libraries) with templates.
30772 prelink_cmds=$lt_prelink_cmds
30773
30774 # Commands necessary for finishing linking programs.
30775 postlink_cmds=$lt_postlink_cmds
30776
30777 # Specify filename containing input files.
30778 file_list_spec=$lt_file_list_spec
30779
30780 # How to hardcode a shared library path into an executable.
30781 hardcode_action=$hardcode_action
30782
30783 # ### END LIBTOOL CONFIG
30784
30785 _LT_EOF
30786
30787 cat <<'_LT_EOF' >> "$cfgfile"
30788
30789 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30790
30791 # func_munge_path_list VARIABLE PATH
30792 # -----------------------------------
30793 # VARIABLE is name of variable containing _space_ separated list of
30794 # directories to be munged by the contents of PATH, which is string
30795 # having a format:
30796 # "DIR[:DIR]:"
30797 # string "DIR[ DIR]" will be prepended to VARIABLE
30798 # ":DIR[:DIR]"
30799 # string "DIR[ DIR]" will be appended to VARIABLE
30800 # "DIRP[:DIRP]::[DIRA:]DIRA"
30801 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30802 # "DIRA[ DIRA]" will be appended to VARIABLE
30803 # "DIR[:DIR]"
30804 # VARIABLE will be replaced by "DIR[ DIR]"
30805 func_munge_path_list ()
30806 {
30807 case x$2 in
30808 x)
30809 ;;
30810 *:)
30811 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30812 ;;
30813 x:*)
30814 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30815 ;;
30816 *::*)
30817 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30818 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30819 ;;
30820 *)
30821 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30822 ;;
30823 esac
30824 }
30825
30826
30827 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
30828 func_cc_basename ()
30829 {
30830 for cc_temp in $*""; do
30831 case $cc_temp in
30832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30834 \-*) ;;
30835 *) break;;
30836 esac
30837 done
30838 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30839 }
30840
30841
30842 # ### END FUNCTIONS SHARED WITH CONFIGURE
30843
30844 _LT_EOF
30845
30846 case $host_os in
30847 aix3*)
30848 cat <<\_LT_EOF >> "$cfgfile"
30849 # AIX sometimes has problems with the GCC collect2 program. For some
30850 # reason, if we set the COLLECT_NAMES environment variable, the problems
30851 # vanish in a puff of smoke.
30852 if test set != "${COLLECT_NAMES+set}"; then
30853 COLLECT_NAMES=
30854 export COLLECT_NAMES
30855 fi
30856 _LT_EOF
30857 ;;
30858 esac
30859
30860
30861
30862 ltmain=$ac_aux_dir/ltmain.sh
30863
30864
30865 # We use sed instead of cat because bash on DJGPP gets confused if
30866 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30867 # text mode, it properly converts lines to CR/LF. This bash problem
30868 # is reportedly fixed, but why not run on old versions too?
30869 $SED '$q' "$ltmain" >> "$cfgfile" \
30870 || (rm -f "$cfgfile"; exit 1)
30871
30872 mv -f "$cfgfile" "$ofile" ||
30873 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30874 chmod +x "$ofile"
30875
30876 ;;
30877 "doc/doxygen/doxygen-input-filter":F) chmod +x doc/doxygen/doxygen-input-filter ;;
30878 "tests/unit-test-driver.sh":F) chmod +x tests/unit-test-driver.sh ;;
30879 "bin/tests/system/ifconfig.sh":F) chmod +x bin/tests/system/ifconfig.sh ;;
30880 "bin/tests/system/start.sh":F) chmod +x bin/tests/system/start.sh ;;
30881 "bin/tests/system/stop.sh":F) chmod +x bin/tests/system/stop.sh ;;
30882
30883 esac
30884 done # for ac_tag
30885
30886
30887 as_fn_exit 0
30888 _ACEOF
30889 ac_clean_files=$ac_clean_files_save
30890
30891 test $ac_write_fail = 0 ||
30892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30893
30894
30895 # configure is writing to config.log, and then calls config.status.
30896 # config.status does its own redirection, appending to config.log.
30897 # Unfortunately, on DOS this fails, as config.log is still kept open
30898 # by configure, so config.status won't be able to write to it; its
30899 # output is simply discarded. So we exec the FD to /dev/null,
30900 # effectively closing config.log, so it can be properly (re)opened and
30901 # appended to by config.status. When coming back to configure, we
30902 # need to make the FD available again.
30903 if test "$no_create" != yes; then
30904 ac_cs_success=:
30905 ac_config_status_args=
30906 test "$silent" = yes &&
30907 ac_config_status_args="$ac_config_status_args --quiet"
30908 exec 5>/dev/null
30909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30910 exec 5>>config.log
30911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30912 # would make configure fail if this is the last instruction.
30913 $ac_cs_success || as_fn_exit 1
30914 fi
30915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30917 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30918 fi
30919
30920
30921 # [pairwise: --enable-full-report, --disable-full-report]
30922 # Check whether --enable-full-report was given.
30923 if test ${enable_full_report+y}
30924 then :
30925 enableval=$enable_full_report;
30926 fi
30927
30928
30929 report() {
30930 echo "==============================================================================="
30931 echo "Configuration summary:"
30932 echo "-------------------------------------------------------------------------------"
30933 echo "Optional features enabled:"
30934 if test "yes" = "$with_jemalloc"; then
30935 echo " Memory allocator: jemalloc"
30936 fi
30937 if test "yes" = "$enable_full_report" -o "rbt" = "$zonedb"; then
30938 echo " Default zone database type: $zonedb"
30939 fi
30940 if test "yes" = "$enable_full_report" -o "rbt" = "$zonedb"; then
30941 echo " Default cache database type: $cachedb"
30942 fi
30943 test "no" = "$enable_dnstap" || \
30944 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
30945 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--enable-geoip)"
30946 test -z "$GSSAPI_LIBS" || echo " GSS-API (--with-gssapi)"
30947
30948 # these lines are only printed if run with --enable-full-report
30949 if test "yes" = "$enable_full_report"; then
30950 test -z "$LIBXML2_LIBS" || echo " XML statistics (--with-libxml2)"
30951 test -z "$JSON_C_LIBS" || echo " JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
30952 test -z "$ZLIB_LIBS" || echo " HTTP zlib compression (--with-zlib)"
30953 test -z "$LMDB_LIBS" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
30954 test -z "$LIBIDN2_LIBS" || echo " IDN support (--with-libidn2)"
30955 fi
30956
30957 test "yes" = "$enable_dnsrps" && \
30958 echo " DNS Response Policy Service interface (--enable-dnsrps)"
30959 test "yes" = "$enable_fixed_rrset" && \
30960 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
30961 test "yes" = "$enable_fips_mode" && \
30962 echo " FIPS mode in OpenSSL (--enable-fips-mode)"
30963
30964 test "yes" = "$enable_querytrace" && \
30965 echo " Very verbose query trace logging (--enable-querytrace)"
30966 test "yes" = "$enable_singletrace" && \
30967 echo " Single-query trace logging (--enable-singletrace)"
30968 test -z "$HAVE_CMOCKA" || echo " CMocka Unit Testing Framework (--with-cmocka)"
30969
30970 test "auto" = "$validation_default" && echo " DNSSEC validation active by default (--enable-auto-validation)"
30971
30972 echo "-------------------------------------------------------------------------------"
30973 echo " Library versions:"
30974 echo " OpenSSL: $OPENSSL_VERSION"
30975 echo " libuv: $LIBUV_VERSION"
30976 echo " Userspace-RCU: $RCU_VERSION"
30977 if test "no" != "$with_jemalloc"; then
30978 echo " jemalloc: $JEMALLOC_VERSION"
30979 fi
30980 echo "-------------------------------------------------------------------------------"
30981
30982 echo "Features disabled or unavailable on this platform:"
30983 if test "no" = "$with_jemalloc"; then
30984 echo " Memory allocator: system"
30985 echo
30986 echo " +------------------------------------------+"
30987 echo " | ==== WARNING ==== |"
30988 echo " | |"
30989 echo " | This is NOT a recommended configuration. |"
30990 echo " | Using the system memory allocator causes |"
30991 echo " | reduced performance and increased memory |"
30992 echo " | fragmentation. Installing the jemalloc |"
30993 echo " | memory allocator (version >= 4.0.0) is |"
30994 echo " | strongly recommended. |"
30995 echo " +------------------------------------------+"
30996 echo
30997 fi
30998
30999 test "no" = "$enable_dnstap" && \
31000 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
31001 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--enable-geoip)"
31002 test -z "$GSSAPI_LIBS" && echo " GSS-API (--with-gssapi)"
31003
31004 test "no" = "$enable_dnsrps" && \
31005 echo " DNS Response Policy Service interface (--enable-dnsrps)"
31006
31007 test "yes" = "$enable_fixed_rrset" || \
31008 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
31009
31010 test "yes" = "$validation_default" && echo " DNSSEC validation requires configuration (--enable-auto-validation)"
31011
31012 test "yes" = "$enable_fips_mode" || \
31013 echo " FIPS mode in OpenSSL (--enable-fips-mode)"
31014
31015 test "yes" = "$enable_querytrace" || \
31016 echo " Very verbose query trace logging (--enable-querytrace)"
31017 test "yes" = "$enable_singletrace" || \
31018 echo " Single-query trace logging (--enable-singletrace)"
31019
31020 test "no" = "$with_cmocka" && echo " CMocka Unit Testing Framework (--with-cmocka)"
31021
31022 test -z "$LIBXML2_LIBS" && echo " XML statistics (--with-libxml2)"
31023 test -z "$JSON_C_LIBS" && echo " JSON statistics (--with-json-c)"
31024 test -z "$ZLIB_LIBS" && echo " HTTP zlib compression (--with-zlib)"
31025 test -z "$LMDB_LIBS" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
31026 test -z "$LIBIDN2_LIBS" && echo " IDN support (--with-libidn2)"
31027
31028 echo "-------------------------------------------------------------------------------"
31029 echo "Configured paths:"
31030 echo " prefix: $prefix"
31031 echo " sysconfdir: $sysconfdir"
31032 echo " localstatedir: $localstatedir"
31033 echo "-------------------------------------------------------------------------------"
31034 echo "Compiler: $CC"
31035 if test "$GCC" = "yes"
31036 then :
31037 $CC --version 2>&1 | sed 's/^/ /'
31038 else $as_nop
31039 case $host in #(
31040 *-solaris*) :
31041 $CC -V 2>&1 | sed 's/^/ /' ;; #(
31042 *) :
31043 $CC --version 2>&1 | sed 's/^/ /' ;;
31044 esac
31045 fi
31046 echo "CFLAGS: $STD_CFLAGS $CFLAGS"
31047 echo "CPPFLAGS: $STD_CPPFLAGS $CPPFLAGS"
31048 echo "LDFLAGS: $LDFLAGS"
31049
31050 if test "X$ac_unrecognized_opts" != "X"; then
31051 echo "-------------------------------------------------------------------------------"
31052 echo "Unrecognized options:"
31053 echo " $ac_unrecognized_opts"
31054 fi
31055
31056 if test "yes" != "$enable_full_report"; then
31057 echo "-------------------------------------------------------------------------------"
31058 echo "For more detail, use --enable-full-report."
31059 fi
31060 echo "==============================================================================="
31061 }
31062
31063 if test "yes" != "$silent"; then
31064 report
31065 fi
31066
31067 # Tell Emacs to edit this file in shell mode.
31068 # Local Variables:
31069 # mode: sh
31070 # End:
31071