Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for dnsdist 2.1.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) 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 case e in #(
239 e) 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 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
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
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='dnsdist'
613 PACKAGE_TARNAME='dnsdist'
614 PACKAGE_VERSION='2.1.1'
615 PACKAGE_STRING='dnsdist 2.1.1'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_func_cxx_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 PACKAGEVERSION
657 AM_CPPFLAGS
658 PROGRAM_LDFLAGS
659 HAVE_MANPAGES_FALSE
660 HAVE_MANPAGES_TRUE
661 HAVE_VENV_FALSE
662 HAVE_VENV_TRUE
663 pkgpyexecdir
664 pyexecdir
665 pkgpythondir
666 pythondir
667 PYTHON_EXEC_PREFIX
668 PYTHON_PREFIX
669 PYTHON_PLATFORM
670 PYTHON_VERSION
671 PYTHON
672 WARN_CFLAGS
673 SANITIZER_FLAGS
674 RELRO_LDFLAGS
675 PIE_LDFLAGS
676 PIE_CFLAGS
677 HAVE_CXX17
678 HAVE_IPCRYPT2_FALSE
679 HAVE_IPCRYPT2_TRUE
680 IPCIPHER_FALSE
681 IPCIPHER_TRUE
682 LMDB_LIBS
683 LMDB_CFLAGS
684 CDB_LIBS
685 CDB_CFLAGS
686 CARGO
687 HAVE_YAML_CONFIGURATION_FALSE
688 HAVE_YAML_CONFIGURATION_TRUE
689 NGHTTP2_LIBS
690 NGHTTP2_CFLAGS
691 GNUTLS_LIBS
692 GNUTLS_CFLAGS
693 HAVE_DNS_OVER_HTTP3_FALSE
694 HAVE_DNS_OVER_HTTP3_TRUE
695 HAVE_DNS_OVER_QUIC_FALSE
696 HAVE_DNS_OVER_QUIC_TRUE
697 HAVE_DNS_OVER_HTTPS_FALSE
698 HAVE_DNS_OVER_HTTPS_TRUE
699 HAVE_DNS_OVER_TLS_FALSE
700 HAVE_DNS_OVER_TLS_TRUE
701 LIBSSL_LIBS
702 LIBSSL_CFLAGS
703 HAVE_TLS_PROVIDERS_FALSE
704 HAVE_TLS_PROVIDERS_TRUE
705 HAVE_LIBCRYPTO_FALSE
706 HAVE_LIBCRYPTO_TRUE
707 LIBCRYPTO_LDFLAGS
708 LIBCRYPTO_LIBS
709 LIBCRYPTO_INCLUDES
710 HAVE_NGHTTP2_FALSE
711 HAVE_NGHTTP2_TRUE
712 HAVE_LMDB_FALSE
713 HAVE_LMDB_TRUE
714 HAVE_LIBSSL_FALSE
715 HAVE_LIBSSL_TRUE
716 HAVE_GNUTLS_FALSE
717 HAVE_GNUTLS_TRUE
718 HAVE_CDB_FALSE
719 HAVE_CDB_TRUE
720 HAVE_LUA_HPP_FALSE
721 HAVE_LUA_HPP_TRUE
722 LUA_FALSE
723 LUA_TRUE
724 LUA_LIBS
725 LUA_CFLAGS
726 ARC4RANDOM_LIBS
727 IPCRYPT2_LIBS
728 IPCRYPT2_CFLAGS
729 IPCRYPT_LIBS
730 IPCRYPT_CFLAGS
731 YAHTTP_LIBS
732 YAHTTP_CFLAGS
733 service_group
734 service_user
735 HAVE_SYSTEMD_FALSE
736 HAVE_SYSTEMD_TRUE
737 HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_FALSE
738 HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_TRUE
739 HAVE_SYSTEMD_SYSTEM_CALL_FILTER_FALSE
740 HAVE_SYSTEMD_SYSTEM_CALL_FILTER_TRUE
741 HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_FALSE
742 HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_TRUE
743 HAVE_SYSTEMD_RESTRICT_SUIDSGID_FALSE
744 HAVE_SYSTEMD_RESTRICT_SUIDSGID_TRUE
745 HAVE_SYSTEMD_RESTRICT_REALTIME_FALSE
746 HAVE_SYSTEMD_RESTRICT_REALTIME_TRUE
747 HAVE_SYSTEMD_RESTRICT_NAMESPACES_FALSE
748 HAVE_SYSTEMD_RESTRICT_NAMESPACES_TRUE
749 HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_FALSE
750 HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_TRUE
751 HAVE_SYSTEMD_REMOVE_IPC_FALSE
752 HAVE_SYSTEMD_REMOVE_IPC_TRUE
753 HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_FALSE
754 HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_TRUE
755 HAVE_SYSTEMD_PROTECT_SYSTEM_FALSE
756 HAVE_SYSTEMD_PROTECT_SYSTEM_TRUE
757 HAVE_SYSTEMD_PROTECT_PROC_FALSE
758 HAVE_SYSTEMD_PROTECT_PROC_TRUE
759 HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_FALSE
760 HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_TRUE
761 HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_FALSE
762 HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_TRUE
763 HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_FALSE
764 HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_TRUE
765 HAVE_SYSTEMD_PROTECT_HOSTNAME_FALSE
766 HAVE_SYSTEMD_PROTECT_HOSTNAME_TRUE
767 HAVE_SYSTEMD_PROTECT_HOME_FALSE
768 HAVE_SYSTEMD_PROTECT_HOME_TRUE
769 HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_FALSE
770 HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_TRUE
771 HAVE_SYSTEMD_PROTECT_CLOCK_FALSE
772 HAVE_SYSTEMD_PROTECT_CLOCK_TRUE
773 HAVE_SYSTEMD_PRIVATE_USERS_FALSE
774 HAVE_SYSTEMD_PRIVATE_USERS_TRUE
775 HAVE_SYSTEMD_PRIVATE_TMP_FALSE
776 HAVE_SYSTEMD_PRIVATE_TMP_TRUE
777 HAVE_SYSTEMD_PRIVATE_MOUNTS_FALSE
778 HAVE_SYSTEMD_PRIVATE_MOUNTS_TRUE
779 HAVE_SYSTEMD_PRIVATE_IPC_FALSE
780 HAVE_SYSTEMD_PRIVATE_IPC_TRUE
781 HAVE_SYSTEMD_PRIVATE_DEVICES_FALSE
782 HAVE_SYSTEMD_PRIVATE_DEVICES_TRUE
783 HAVE_SYSTEMD_PERCENT_T_FALSE
784 HAVE_SYSTEMD_PERCENT_T_TRUE
785 HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_FALSE
786 HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_TRUE
787 HAVE_SYSTEMD_LOCK_PERSONALITY_FALSE
788 HAVE_SYSTEMD_LOCK_PERSONALITY_TRUE
789 HAVE_SYSTEMD_DYNAMIC_USER_FALSE
790 HAVE_SYSTEMD_DYNAMIC_USER_TRUE
791 SYSTEMCTL
792 SYSTEMD_LIBS
793 SYSTEMD_CFLAGS
794 SYSTEMD_MODULES_LOAD
795 SYSTEMD_DIR
796 systemd
797 HAVE_LIBCAP_FALSE
798 HAVE_LIBCAP_TRUE
799 LIBCAP_LIBS
800 LIBCAP_CFLAGS
801 HAVE_NET_SNMP_FALSE
802 HAVE_NET_SNMP_TRUE
803 NET_SNMP_LIBS
804 HAVE_XSK_FALSE
805 HAVE_XSK_TRUE
806 BPF_LIBS
807 BPF_CFLAGS
808 XDP_LIBS
809 XDP_CFLAGS
810 HAVE_EBPF_FALSE
811 HAVE_EBPF_TRUE
812 DNSCRYPT_FALSE
813 DNSCRYPT_TRUE
814 HAVE_RE2_FALSE
815 HAVE_RE2_TRUE
816 RE2_LIBS
817 RE2_CFLAGS
818 FUZZ_TARGETS_FALSE
819 FUZZ_TARGETS_TRUE
820 BOOST_UNIT_TEST_FRAMEWORK_LIBS
821 BOOST_LDPATH
822 BOOST_UNIT_TEST_FRAMEWORK_LDPATH
823 BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS
824 UNIT_TESTS_FALSE
825 UNIT_TESTS_TRUE
826 BOOST_CPPFLAGS
827 DISTCHECK_CONFIGURE_FLAGS
828 BOOST_ROOT
829 DYNLINKFLAGS
830 THREADFLAGS
831 HAVE_SOLARIS_FALSE
832 HAVE_SOLARIS_TRUE
833 HAVE_DARWIN_FALSE
834 HAVE_DARWIN_TRUE
835 HAVE_LINUX_FALSE
836 HAVE_LINUX_TRUE
837 HAVE_OPENBSD_FALSE
838 HAVE_OPENBSD_TRUE
839 HAVE_FREEBSD_FALSE
840 HAVE_FREEBSD_TRUE
841 RT_LIBS
842 HAVE_LIBEDIT_FALSE
843 HAVE_LIBEDIT_TRUE
844 LIBEDIT_LIBS
845 LIBEDIT_CFLAGS
846 RAGEL
847 FSTRM_FALSE
848 FSTRM_TRUE
849 FSTRM_LIBS
850 FSTRM_CFLAGS
851 HAVE_QUICHE_FALSE
852 HAVE_QUICHE_TRUE
853 QUICHE_LIBS
854 QUICHE_CFLAGS
855 LIBSODIUM_FALSE
856 LIBSODIUM_TRUE
857 LIBSODIUM_LIBS
858 LIBSODIUM_CFLAGS
859 PKG_CONFIG_LIBDIR
860 PKG_CONFIG_PATH
861 PKG_CONFIG
862 pdns_configure_args
863 LIBDL
864 CXXCPP
865 LT_SYS_LIBRARY_PATH
866 OTOOL64
867 OTOOL
868 LIPO
869 NMEDIT
870 DSYMUTIL
871 MANIFEST_TOOL
872 RANLIB
873 ac_ct_AR
874 AR
875 DLLTOOL
876 OBJDUMP
877 FILECMD
878 LN_S
879 NM
880 ac_ct_DUMPBIN
881 DUMPBIN
882 LD
883 FGREP
884 EGREP
885 GREP
886 SED
887 host_os
888 host_vendor
889 host_cpu
890 host
891 build_os
892 build_vendor
893 build_cpu
894 build
895 LIBTOOL
896 am__fastdepCXX_FALSE
897 am__fastdepCXX_TRUE
898 CXXDEPMODE
899 ac_ct_CXX
900 CXXFLAGS
901 CXX
902 am__fastdepCC_FALSE
903 am__fastdepCC_TRUE
904 CCDEPMODE
905 am__nodep
906 AMDEPBACKSLASH
907 AMDEP_FALSE
908 AMDEP_TRUE
909 am__include
910 DEPDIR
911 OBJEXT
912 EXEEXT
913 ac_ct_CC
914 CPPFLAGS
915 LDFLAGS
916 CFLAGS
917 CC
918 am__xargs_n
919 am__rm_f_notfound
920 AM_BACKSLASH
921 AM_DEFAULT_VERBOSITY
922 AM_DEFAULT_V
923 AM_V
924 CSCOPE
925 ETAGS
926 CTAGS
927 am__untar
928 am__tar
929 AMTAR
930 am__leading_dot
931 SET_MAKE
932 AWK
933 mkdir_p
934 MKDIR_P
935 INSTALL_STRIP_PROGRAM
936 STRIP
937 install_sh
938 MAKEINFO
939 AUTOHEADER
940 AUTOMAKE
941 AUTOCONF
942 ACLOCAL
943 VERSION
944 PACKAGE
945 CYGPATH_W
946 am__isrc
947 INSTALL_DATA
948 INSTALL_SCRIPT
949 INSTALL_PROGRAM
950 target_alias
951 host_alias
952 build_alias
953 LIBS
954 ECHO_T
955 ECHO_N
956 ECHO_C
957 DEFS
958 mandir
959 localedir
960 libdir
961 psdir
962 pdfdir
963 dvidir
964 htmldir
965 infodir
966 docdir
967 oldincludedir
968 includedir
969 runstatedir
970 localstatedir
971 sharedstatedir
972 sysconfdir
973 datadir
974 datarootdir
975 libexecdir
976 sbindir
977 bindir
978 program_transform_name
979 prefix
980 exec_prefix
981 PACKAGE_URL
982 PACKAGE_BUGREPORT
983 PACKAGE_STRING
984 PACKAGE_VERSION
985 PACKAGE_TARNAME
986 PACKAGE_NAME
987 PATH_SEPARATOR
988 SHELL
989 am__quote'
990 ac_subst_files=''
991 ac_user_opts='
992 enable_option_checking
993 enable_silent_rules
994 enable_dependency_tracking
995 enable_static
996 enable_shared
997 with_pic
998 enable_fast_install
999 with_aix_soname
1000 with_gnu_ld
1001 with_sysroot
1002 enable_libtool_lock
1003 with_libsodium
1004 with_quiche
1005 enable_dnstap
1006 with_libedit
1007 with_boost
1008 enable_unit_tests
1009 enable_static_boost
1010 enable_fuzz_targets
1011 with_re2
1012 enable_dnscrypt
1013 with_ebpf
1014 with_xsk
1015 with_net_snmp
1016 with_libcap
1017 enable_systemd
1018 with_systemd
1019 with_service_user
1020 with_service_group
1021 with_lua
1022 with_libcrypto
1023 enable_tls_providers
1024 enable_dns_over_tls
1025 enable_dns_over_https
1026 enable_dns_over_quic
1027 enable_dns_over_http3
1028 with_libssl
1029 with_gnutls
1030 with_nghttp2
1031 enable_yaml
1032 with_cdb
1033 with_lmdb
1034 enable_ipcipher
1035 enable_ipcrypt2
1036 enable_hardening
1037 enable_fortify_source
1038 enable_auto_var_init
1039 enable_asan
1040 enable_msan
1041 enable_tsan
1042 enable_lsan
1043 enable_ubsan
1044 enable_lto
1045 enable_coverage
1046 with_python_sys_prefix
1047 with_python_prefix
1048 with_python_exec_prefix
1049 '
1050 ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1053 CC
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CXX
1059 CXXFLAGS
1060 CCC
1061 LT_SYS_LIBRARY_PATH
1062 CXXCPP
1063 PKG_CONFIG
1064 PKG_CONFIG_PATH
1065 PKG_CONFIG_LIBDIR
1066 LIBSODIUM_CFLAGS
1067 LIBSODIUM_LIBS
1068 QUICHE_CFLAGS
1069 QUICHE_LIBS
1070 FSTRM_CFLAGS
1071 FSTRM_LIBS
1072 LIBEDIT_CFLAGS
1073 LIBEDIT_LIBS
1074 BOOST_ROOT
1075 RE2_CFLAGS
1076 RE2_LIBS
1077 XDP_CFLAGS
1078 XDP_LIBS
1079 BPF_CFLAGS
1080 BPF_LIBS
1081 LIBCAP_CFLAGS
1082 LIBCAP_LIBS
1083 SYSTEMD_CFLAGS
1084 SYSTEMD_LIBS
1085 LUA_CFLAGS
1086 LUA_LIBS
1087 LIBSSL_CFLAGS
1088 LIBSSL_LIBS
1089 GNUTLS_CFLAGS
1090 GNUTLS_LIBS
1091 NGHTTP2_CFLAGS
1092 NGHTTP2_LIBS
1093 CDB_CFLAGS
1094 CDB_LIBS
1095 LMDB_CFLAGS
1096 LMDB_LIBS
1097 PYTHON
1098 PACKAGEVERSION'
1099
1100
1101 # Initialize some variables set by options.
1102 ac_init_help=
1103 ac_init_version=false
1104 ac_unrecognized_opts=
1105 ac_unrecognized_sep=
1106 # The variables have the same names as the options, with
1107 # dashes changed to underlines.
1108 cache_file=/dev/null
1109 exec_prefix=NONE
1110 no_create=
1111 no_recursion=
1112 prefix=NONE
1113 program_prefix=NONE
1114 program_suffix=NONE
1115 program_transform_name=s,x,x,
1116 silent=
1117 site=
1118 srcdir=
1119 verbose=
1120 x_includes=NONE
1121 x_libraries=NONE
1122
1123 # Installation directory options.
1124 # These are left unexpanded so users can "make install exec_prefix=/foo"
1125 # and all the variables that are supposed to be based on exec_prefix
1126 # by default will actually change.
1127 # Use braces instead of parens because sh, perl, etc. also accept them.
1128 # (The list follows the same order as the GNU Coding Standards.)
1129 bindir='${exec_prefix}/bin'
1130 sbindir='${exec_prefix}/sbin'
1131 libexecdir='${exec_prefix}/libexec'
1132 datarootdir='${prefix}/share'
1133 datadir='${datarootdir}'
1134 sysconfdir='${prefix}/etc'
1135 sharedstatedir='${prefix}/com'
1136 localstatedir='${prefix}/var'
1137 runstatedir='${localstatedir}/run'
1138 includedir='${prefix}/include'
1139 oldincludedir='/usr/include'
1140 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1141 infodir='${datarootdir}/info'
1142 htmldir='${docdir}'
1143 dvidir='${docdir}'
1144 pdfdir='${docdir}'
1145 psdir='${docdir}'
1146 libdir='${exec_prefix}/lib'
1147 localedir='${datarootdir}/locale'
1148 mandir='${datarootdir}/man'
1149
1150 ac_prev=
1151 ac_dashdash=
1152 for ac_option
1153 do
1154 # If the previous option needs an argument, assign it.
1155 if test -n "$ac_prev"; then
1156 eval $ac_prev=\$ac_option
1157 ac_prev=
1158 continue
1159 fi
1160
1161 case $ac_option in
1162 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1163 *=) ac_optarg= ;;
1164 *) ac_optarg=yes ;;
1165 esac
1166
1167 case $ac_dashdash$ac_option in
1168 --)
1169 ac_dashdash=yes ;;
1170
1171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1172 ac_prev=bindir ;;
1173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1174 bindir=$ac_optarg ;;
1175
1176 -build | --build | --buil | --bui | --bu)
1177 ac_prev=build_alias ;;
1178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1179 build_alias=$ac_optarg ;;
1180
1181 -cache-file | --cache-file | --cache-fil | --cache-fi \
1182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1183 ac_prev=cache_file ;;
1184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1186 cache_file=$ac_optarg ;;
1187
1188 --config-cache | -C)
1189 cache_file=config.cache ;;
1190
1191 -datadir | --datadir | --datadi | --datad)
1192 ac_prev=datadir ;;
1193 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1194 datadir=$ac_optarg ;;
1195
1196 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1197 | --dataroo | --dataro | --datar)
1198 ac_prev=datarootdir ;;
1199 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1200 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1201 datarootdir=$ac_optarg ;;
1202
1203 -disable-* | --disable-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid feature name: '$ac_useropt'"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "enable_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval enable_$ac_useropt=no ;;
1218
1219 -docdir | --docdir | --docdi | --doc | --do)
1220 ac_prev=docdir ;;
1221 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1222 docdir=$ac_optarg ;;
1223
1224 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1225 ac_prev=dvidir ;;
1226 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1227 dvidir=$ac_optarg ;;
1228
1229 -enable-* | --enable-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid feature name: '$ac_useropt'"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "enable_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval enable_$ac_useropt=\$ac_optarg ;;
1244
1245 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1246 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1247 | --exec | --exe | --ex)
1248 ac_prev=exec_prefix ;;
1249 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1250 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1251 | --exec=* | --exe=* | --ex=*)
1252 exec_prefix=$ac_optarg ;;
1253
1254 -gas | --gas | --ga | --g)
1255 # Obsolete; use --with-gas.
1256 with_gas=yes ;;
1257
1258 -help | --help | --hel | --he | -h)
1259 ac_init_help=long ;;
1260 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1261 ac_init_help=recursive ;;
1262 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1263 ac_init_help=short ;;
1264
1265 -host | --host | --hos | --ho)
1266 ac_prev=host_alias ;;
1267 -host=* | --host=* | --hos=* | --ho=*)
1268 host_alias=$ac_optarg ;;
1269
1270 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1271 ac_prev=htmldir ;;
1272 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1273 | --ht=*)
1274 htmldir=$ac_optarg ;;
1275
1276 -includedir | --includedir | --includedi | --included | --include \
1277 | --includ | --inclu | --incl | --inc)
1278 ac_prev=includedir ;;
1279 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1280 | --includ=* | --inclu=* | --incl=* | --inc=*)
1281 includedir=$ac_optarg ;;
1282
1283 -infodir | --infodir | --infodi | --infod | --info | --inf)
1284 ac_prev=infodir ;;
1285 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1286 infodir=$ac_optarg ;;
1287
1288 -libdir | --libdir | --libdi | --libd)
1289 ac_prev=libdir ;;
1290 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1291 libdir=$ac_optarg ;;
1292
1293 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1294 | --libexe | --libex | --libe)
1295 ac_prev=libexecdir ;;
1296 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1297 | --libexe=* | --libex=* | --libe=*)
1298 libexecdir=$ac_optarg ;;
1299
1300 -localedir | --localedir | --localedi | --localed | --locale)
1301 ac_prev=localedir ;;
1302 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1303 localedir=$ac_optarg ;;
1304
1305 -localstatedir | --localstatedir | --localstatedi | --localstated \
1306 | --localstate | --localstat | --localsta | --localst | --locals)
1307 ac_prev=localstatedir ;;
1308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1309 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1310 localstatedir=$ac_optarg ;;
1311
1312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1313 ac_prev=mandir ;;
1314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1315 mandir=$ac_optarg ;;
1316
1317 -nfp | --nfp | --nf)
1318 # Obsolete; use --without-fp.
1319 with_fp=no ;;
1320
1321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1322 | --no-cr | --no-c | -n)
1323 no_create=yes ;;
1324
1325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1327 no_recursion=yes ;;
1328
1329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1331 | --oldin | --oldi | --old | --ol | --o)
1332 ac_prev=oldincludedir ;;
1333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1336 oldincludedir=$ac_optarg ;;
1337
1338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1339 ac_prev=prefix ;;
1340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1341 prefix=$ac_optarg ;;
1342
1343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1344 | --program-pre | --program-pr | --program-p)
1345 ac_prev=program_prefix ;;
1346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1348 program_prefix=$ac_optarg ;;
1349
1350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1351 | --program-suf | --program-su | --program-s)
1352 ac_prev=program_suffix ;;
1353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1355 program_suffix=$ac_optarg ;;
1356
1357 -program-transform-name | --program-transform-name \
1358 | --program-transform-nam | --program-transform-na \
1359 | --program-transform-n | --program-transform- \
1360 | --program-transform | --program-transfor \
1361 | --program-transfo | --program-transf \
1362 | --program-trans | --program-tran \
1363 | --progr-tra | --program-tr | --program-t)
1364 ac_prev=program_transform_name ;;
1365 -program-transform-name=* | --program-transform-name=* \
1366 | --program-transform-nam=* | --program-transform-na=* \
1367 | --program-transform-n=* | --program-transform-=* \
1368 | --program-transform=* | --program-transfor=* \
1369 | --program-transfo=* | --program-transf=* \
1370 | --program-trans=* | --program-tran=* \
1371 | --progr-tra=* | --program-tr=* | --program-t=*)
1372 program_transform_name=$ac_optarg ;;
1373
1374 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1375 ac_prev=pdfdir ;;
1376 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1377 pdfdir=$ac_optarg ;;
1378
1379 -psdir | --psdir | --psdi | --psd | --ps)
1380 ac_prev=psdir ;;
1381 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1382 psdir=$ac_optarg ;;
1383
1384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1385 | -silent | --silent | --silen | --sile | --sil)
1386 silent=yes ;;
1387
1388 -runstatedir | --runstatedir | --runstatedi | --runstated \
1389 | --runstate | --runstat | --runsta | --runst | --runs \
1390 | --run | --ru | --r)
1391 ac_prev=runstatedir ;;
1392 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1393 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1394 | --run=* | --ru=* | --r=*)
1395 runstatedir=$ac_optarg ;;
1396
1397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1398 ac_prev=sbindir ;;
1399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1400 | --sbi=* | --sb=*)
1401 sbindir=$ac_optarg ;;
1402
1403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1405 | --sharedst | --shareds | --shared | --share | --shar \
1406 | --sha | --sh)
1407 ac_prev=sharedstatedir ;;
1408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1411 | --sha=* | --sh=*)
1412 sharedstatedir=$ac_optarg ;;
1413
1414 -site | --site | --sit)
1415 ac_prev=site ;;
1416 -site=* | --site=* | --sit=*)
1417 site=$ac_optarg ;;
1418
1419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1420 ac_prev=srcdir ;;
1421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1422 srcdir=$ac_optarg ;;
1423
1424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1425 | --syscon | --sysco | --sysc | --sys | --sy)
1426 ac_prev=sysconfdir ;;
1427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1429 sysconfdir=$ac_optarg ;;
1430
1431 -target | --target | --targe | --targ | --tar | --ta | --t)
1432 ac_prev=target_alias ;;
1433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1434 target_alias=$ac_optarg ;;
1435
1436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1437 verbose=yes ;;
1438
1439 -version | --version | --versio | --versi | --vers | -V)
1440 ac_init_version=: ;;
1441
1442 -with-* | --with-*)
1443 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1444 # Reject names that are not valid shell variable names.
1445 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1446 as_fn_error $? "invalid package name: '$ac_useropt'"
1447 ac_useropt_orig=$ac_useropt
1448 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1449 case $ac_user_opts in
1450 *"
1451 "with_$ac_useropt"
1452 "*) ;;
1453 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1454 ac_unrecognized_sep=', ';;
1455 esac
1456 eval with_$ac_useropt=\$ac_optarg ;;
1457
1458 -without-* | --without-*)
1459 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462 as_fn_error $? "invalid package name: '$ac_useropt'"
1463 ac_useropt_orig=$ac_useropt
1464 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1465 case $ac_user_opts in
1466 *"
1467 "with_$ac_useropt"
1468 "*) ;;
1469 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1470 ac_unrecognized_sep=', ';;
1471 esac
1472 eval with_$ac_useropt=no ;;
1473
1474 --x)
1475 # Obsolete; use --with-x.
1476 with_x=yes ;;
1477
1478 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1479 | --x-incl | --x-inc | --x-in | --x-i)
1480 ac_prev=x_includes ;;
1481 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1482 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1483 x_includes=$ac_optarg ;;
1484
1485 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1486 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1487 ac_prev=x_libraries ;;
1488 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1489 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1490 x_libraries=$ac_optarg ;;
1491
1492 -*) as_fn_error $? "unrecognized option: '$ac_option'
1493 Try '$0 --help' for more information"
1494 ;;
1495
1496 *=*)
1497 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1498 # Reject names that are not valid shell variable names.
1499 case $ac_envvar in #(
1500 '' | [0-9]* | *[!_$as_cr_alnum]* )
1501 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1502 esac
1503 eval $ac_envvar=\$ac_optarg
1504 export $ac_envvar ;;
1505
1506 *)
1507 # FIXME: should be removed in autoconf 3.0.
1508 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1509 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1510 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1511 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1512 ;;
1513
1514 esac
1515 done
1516
1517 if test -n "$ac_prev"; then
1518 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1519 as_fn_error $? "missing argument to $ac_option"
1520 fi
1521
1522 if test -n "$ac_unrecognized_opts"; then
1523 case $enable_option_checking in
1524 no) ;;
1525 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1526 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1527 esac
1528 fi
1529
1530 # Check all directory arguments for consistency.
1531 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1532 datadir sysconfdir sharedstatedir localstatedir includedir \
1533 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1534 libdir localedir mandir runstatedir
1535 do
1536 eval ac_val=\$$ac_var
1537 # Remove trailing slashes.
1538 case $ac_val in
1539 */ )
1540 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1541 eval $ac_var=\$ac_val;;
1542 esac
1543 # Be sure to have absolute directory names.
1544 case $ac_val in
1545 [\\/$]* | ?:[\\/]* ) continue;;
1546 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1547 esac
1548 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1549 done
1550
1551 # There might be people who depend on the old broken behavior: '$host'
1552 # used to hold the argument of --host etc.
1553 # FIXME: To remove some day.
1554 build=$build_alias
1555 host=$host_alias
1556 target=$target_alias
1557
1558 # FIXME: To remove some day.
1559 if test "x$host_alias" != x; then
1560 if test "x$build_alias" = x; then
1561 cross_compiling=maybe
1562 elif test "x$build_alias" != "x$host_alias"; then
1563 cross_compiling=yes
1564 fi
1565 fi
1566
1567 ac_tool_prefix=
1568 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1569
1570 test "$silent" = yes && exec 6>/dev/null
1571
1572
1573 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1574 ac_ls_di=`ls -di .` &&
1575 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1576 as_fn_error $? "working directory cannot be determined"
1577 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1578 as_fn_error $? "pwd does not report name of working directory"
1579
1580
1581 # Find the source files, if location was not specified.
1582 if test -z "$srcdir"; then
1583 ac_srcdir_defaulted=yes
1584 # Try the directory containing this script, then the parent directory.
1585 ac_confdir=`$as_dirname -- "$as_myself" ||
1586 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1587 X"$as_myself" : 'X\(//\)[^/]' \| \
1588 X"$as_myself" : 'X\(//\)$' \| \
1589 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1590 printf "%s\n" X"$as_myself" |
1591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1592 s//\1/
1593 q
1594 }
1595 /^X\(\/\/\)[^/].*/{
1596 s//\1/
1597 q
1598 }
1599 /^X\(\/\/\)$/{
1600 s//\1/
1601 q
1602 }
1603 /^X\(\/\).*/{
1604 s//\1/
1605 q
1606 }
1607 s/.*/./; q'`
1608 srcdir=$ac_confdir
1609 if test ! -r "$srcdir/$ac_unique_file"; then
1610 srcdir=..
1611 fi
1612 else
1613 ac_srcdir_defaulted=no
1614 fi
1615 if test ! -r "$srcdir/$ac_unique_file"; then
1616 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1617 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1618 fi
1619 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1620 ac_abs_confdir=`(
1621 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1622 pwd)`
1623 # When building in place, set srcdir=.
1624 if test "$ac_abs_confdir" = "$ac_pwd"; then
1625 srcdir=.
1626 fi
1627 # Remove unnecessary trailing slashes from srcdir.
1628 # Double slashes in file names in object file debugging info
1629 # mess up M-x gdb in Emacs.
1630 case $srcdir in
1631 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1632 esac
1633 for ac_var in $ac_precious_vars; do
1634 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1635 eval ac_env_${ac_var}_value=\$${ac_var}
1636 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1637 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1638 done
1639
1640 #
1641 # Report the --help message.
1642 #
1643 if test "$ac_init_help" = "long"; then
1644 # Omit some internal or obsolete options to make the list less imposing.
1645 # This message is too long to be a string in the A/UX 3.1 sh.
1646 cat <<_ACEOF
1647 'configure' configures dnsdist 2.1.1 to adapt to many kinds of systems.
1648
1649 Usage: $0 [OPTION]... [VAR=VALUE]...
1650
1651 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1652 VAR=VALUE. See below for descriptions of some of the useful variables.
1653
1654 Defaults for the options are specified in brackets.
1655
1656 Configuration:
1657 -h, --help display this help and exit
1658 --help=short display options specific to this package
1659 --help=recursive display the short help of all the included packages
1660 -V, --version display version information and exit
1661 -q, --quiet, --silent do not print 'checking ...' messages
1662 --cache-file=FILE cache test results in FILE [disabled]
1663 -C, --config-cache alias for '--cache-file=config.cache'
1664 -n, --no-create do not create output files
1665 --srcdir=DIR find the sources in DIR [configure dir or '..']
1666
1667 Installation directories:
1668 --prefix=PREFIX install architecture-independent files in PREFIX
1669 [$ac_default_prefix]
1670 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1671 [PREFIX]
1672
1673 By default, 'make install' will install all the files in
1674 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1675 an installation prefix other than '$ac_default_prefix' using '--prefix',
1676 for instance '--prefix=\$HOME'.
1677
1678 For better control, use the options below.
1679
1680 Fine tuning of the installation directories:
1681 --bindir=DIR user executables [EPREFIX/bin]
1682 --sbindir=DIR system admin executables [EPREFIX/sbin]
1683 --libexecdir=DIR program executables [EPREFIX/libexec]
1684 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1685 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1686 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1687 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1688 --libdir=DIR object code libraries [EPREFIX/lib]
1689 --includedir=DIR C header files [PREFIX/include]
1690 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1691 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1692 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1693 --infodir=DIR info documentation [DATAROOTDIR/info]
1694 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1695 --mandir=DIR man documentation [DATAROOTDIR/man]
1696 --docdir=DIR documentation root [DATAROOTDIR/doc/dnsdist]
1697 --htmldir=DIR html documentation [DOCDIR]
1698 --dvidir=DIR dvi documentation [DOCDIR]
1699 --pdfdir=DIR pdf documentation [DOCDIR]
1700 --psdir=DIR ps documentation [DOCDIR]
1701 _ACEOF
1702
1703 cat <<\_ACEOF
1704
1705 Program names:
1706 --program-prefix=PREFIX prepend PREFIX to installed program names
1707 --program-suffix=SUFFIX append SUFFIX to installed program names
1708 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1709
1710 System types:
1711 --build=BUILD configure for building on BUILD [guessed]
1712 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1713 _ACEOF
1714 fi
1715
1716 if test -n "$ac_init_help"; then
1717 case $ac_init_help in
1718 short | recursive ) echo "Configuration of dnsdist 2.1.1:";;
1719 esac
1720 cat <<\_ACEOF
1721
1722 Optional Features:
1723 --disable-option-checking ignore unrecognized --enable/--with options
1724 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1725 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1726 --enable-silent-rules less verbose build output (undo: "make V=1")
1727 --disable-silent-rules verbose build output (undo: "make V=0")
1728 --enable-dependency-tracking
1729 do not reject slow dependency extractors
1730 --disable-dependency-tracking
1731 speeds up one-time build
1732 --enable-static[=PKGS] build static libraries [default=no]
1733 --enable-shared[=PKGS] build shared libraries [default=yes]
1734 --enable-fast-install[=PKGS]
1735 optimize for fast installation [default=yes]
1736 --disable-libtool-lock avoid locking (might break parallel builds)
1737 --enable-dnstap enable dnstap support [default=auto]
1738 --enable-unit-tests enable unit test building [default=no]
1739 --enable-static-boost Prefer the static boost libraries over the shared
1740 ones [no]
1741 --enable-fuzz-targets enable fuzz targets [default=no]
1742 --enable-dnscrypt enable DNSCrypt support (requires libsodium)
1743 [default=no]
1744 --enable-systemd Enable systemd support (default is DISABLED, but
1745 will be enabled when libraries are found)
1746 --enable-tls-providers enable TLS providers (experimental and requires
1747 OpenSSL >= 3.0) [default=no]
1748 --enable-dns-over-tls enable DNS over TLS support (requires GnuTLS or
1749 OpenSSL) [default=no]
1750 --enable-dns-over-https enable incoming DNS over HTTPS (DoH) support
1751 (requires nghttp2) [default=no]
1752 --enable-dns-over-quic enable incoming DNS over QUIC (DoQ) support
1753 (requires quiche) [default=no]
1754 --enable-dns-over-http3 enable incoming DNS over HTTP3 (DoH3) support
1755 (requires quiche) [default=no]
1756 --enable-yaml enable YAML configuration (requires Rust and Cargo)
1757 [default=no]
1758 --enable-ipcipher enable ipcipher support (requires libcrypto)
1759 [default=auto]
1760 --enable-ipcrypt2 enable ipcrypt2 support [default=no]
1761 --disable-hardening disable compiler security checks [default=no]
1762 --enable-fortify-source enable FORTIFY_SOURCE support [default=2]
1763 --enable-auto-var-init enable initialization of automatic variables (zero,
1764 pattern) [default=no]
1765 --enable-asan enable AddressSanitizer [default=no]
1766 --enable-msan enable MemorySanitizer [default=no]
1767 --enable-tsan enable ThreadSanitizer [default=no]
1768 --enable-lsan enable LeakSanitizer [default=no]
1769 --enable-ubsan enable Undefined Behaviour Sanitizer [default=no]
1770 --enable-lto enable Link-Time Optimizations (LTO) support
1771 [default=no]
1772 --enable-coverage enable code coverage [default=no]
1773
1774 Optional Packages:
1775 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1776 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1777 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1778 both]
1779 --with-aix-soname=aix|svr4|both
1780 shared library versioning (aka "SONAME") variant to
1781 provide on AIX, [default=aix].
1782 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1783 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1784 compiler's sysroot if not specified).
1785 --with-libsodium use libsodium [default=auto]
1786 --with-quiche use quiche [default=auto]
1787 --with-libedit enable libedit support [default=yes]
1788 --with-boost=DIR prefix of Boost 1.54 [guess]
1789 --with-re2 with libre2 [default=no]
1790 --with-ebpf enable eBPF support [default=auto]
1791 --with-xsk enable AF_XDP (XDK) support [default=auto]
1792 --with-net-snmp enable net snmp support [default=no]
1793 --with-libcap use libcap [default=auto]
1794 --with-systemd set directory for systemd service files
1795 --with-systemd-modules-load set directory for systemd modules load files
1796 --with-service-user User to use by service when running the service
1797 [default=dnsdist]. Only the setuid setting and User
1798 in the systemd unit file are affected, the user is
1799 not created.
1800 --with-service-group Group to use by service when running the service
1801 [default=dnsdist]. Only the setgid setting and Group
1802 in the systemd unit file are affected, the group is
1803 not created.
1804 --with-lua select Lua implementation [default=auto]
1805
1806 --with-libcrypto=DIR root of the OpenSSL directory
1807 --with-libssl use OpenSSL libssl [default=auto]
1808 --with-gnutls use GnuTLS [default=auto]
1809 --with-nghttp2 use nghttp2 [default=auto]
1810 --with-cdb use CDB [default=auto]
1811 --with-lmdb lmdb library to use [default=auto]
1812 --with-python-sys-prefix
1813 use Python's sys.prefix and sys.exec_prefix values
1814 --with-python_prefix override the default PYTHON_PREFIX
1815 --with-python_exec_prefix
1816 override the default PYTHON_EXEC_PREFIX
1817
1818 Some influential environment variables:
1819 CC C compiler command
1820 CFLAGS C compiler flags
1821 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1822 nonstandard directory <lib dir>
1823 LIBS libraries to pass to the linker, e.g. -l<library>
1824 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1825 you have headers in a nonstandard directory <include dir>
1826 CXX C++ compiler command
1827 CXXFLAGS C++ compiler flags
1828 LT_SYS_LIBRARY_PATH
1829 User-defined run-time library search path.
1830 CXXCPP C++ preprocessor
1831 PKG_CONFIG path to pkg-config utility
1832 PKG_CONFIG_PATH
1833 directories to add to pkg-config's search path
1834 PKG_CONFIG_LIBDIR
1835 path overriding pkg-config's built-in search path
1836 LIBSODIUM_CFLAGS
1837 C compiler flags for LIBSODIUM, overriding pkg-config
1838 LIBSODIUM_LIBS
1839 linker flags for LIBSODIUM, overriding pkg-config
1840 QUICHE_CFLAGS
1841 C compiler flags for QUICHE, overriding pkg-config
1842 QUICHE_LIBS linker flags for QUICHE, overriding pkg-config
1843 FSTRM_CFLAGS
1844 C compiler flags for FSTRM, overriding pkg-config
1845 FSTRM_LIBS linker flags for FSTRM, overriding pkg-config
1846 LIBEDIT_CFLAGS
1847 C compiler flags for LIBEDIT, overriding pkg-config
1848 LIBEDIT_LIBS
1849 linker flags for LIBEDIT, overriding pkg-config
1850 BOOST_ROOT Location of Boost installation
1851 RE2_CFLAGS C compiler flags for RE2, overriding pkg-config
1852 RE2_LIBS linker flags for RE2, overriding pkg-config
1853 XDP_CFLAGS C compiler flags for XDP, overriding pkg-config
1854 XDP_LIBS linker flags for XDP, overriding pkg-config
1855 BPF_CFLAGS C compiler flags for BPF, overriding pkg-config
1856 BPF_LIBS linker flags for BPF, overriding pkg-config
1857 LIBCAP_CFLAGS
1858 C compiler flags for LIBCAP, overriding pkg-config
1859 LIBCAP_LIBS linker flags for LIBCAP, overriding pkg-config
1860 SYSTEMD_CFLAGS
1861 C compiler flags for SYSTEMD, overriding pkg-config
1862 SYSTEMD_LIBS
1863 linker flags for SYSTEMD, overriding pkg-config
1864 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1865 LUA_LIBS linker flags for LUA, overriding pkg-config
1866 LIBSSL_CFLAGS
1867 C compiler flags for LIBSSL, overriding pkg-config
1868 LIBSSL_LIBS linker flags for LIBSSL, overriding pkg-config
1869 GNUTLS_CFLAGS
1870 C compiler flags for GNUTLS, overriding pkg-config
1871 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1872 NGHTTP2_CFLAGS
1873 C compiler flags for NGHTTP2, overriding pkg-config
1874 NGHTTP2_LIBS
1875 linker flags for NGHTTP2, overriding pkg-config
1876 CDB_CFLAGS C compiler flags for CDB, overriding pkg-config
1877 CDB_LIBS linker flags for CDB, overriding pkg-config
1878 LMDB_CFLAGS C compiler flags for LMDB, overriding pkg-config
1879 LMDB_LIBS linker flags for LMDB, overriding pkg-config
1880 PYTHON the Python interpreter
1881 PACKAGEVERSION
1882 The version used in secpoll queries
1883
1884 Use these variables to override the choices made by 'configure' or to help
1885 it to find libraries and programs with nonstandard names/locations.
1886
1887 Report bugs to the package provider.
1888 _ACEOF
1889 ac_status=$?
1890 fi
1891
1892 if test "$ac_init_help" = "recursive"; then
1893 # If there are subdirs, report their specific --help.
1894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1895 test -d "$ac_dir" ||
1896 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1897 continue
1898 ac_builddir=.
1899
1900 case "$ac_dir" in
1901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *)
1903 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1904 # A ".." for each directory in $ac_dir_suffix.
1905 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1906 case $ac_top_builddir_sub in
1907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1909 esac ;;
1910 esac
1911 ac_abs_top_builddir=$ac_pwd
1912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1913 # for backward compatibility:
1914 ac_top_builddir=$ac_top_build_prefix
1915
1916 case $srcdir in
1917 .) # We are building in place.
1918 ac_srcdir=.
1919 ac_top_srcdir=$ac_top_builddir_sub
1920 ac_abs_top_srcdir=$ac_pwd ;;
1921 [\\/]* | ?:[\\/]* ) # Absolute name.
1922 ac_srcdir=$srcdir$ac_dir_suffix;
1923 ac_top_srcdir=$srcdir
1924 ac_abs_top_srcdir=$srcdir ;;
1925 *) # Relative name.
1926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1927 ac_top_srcdir=$ac_top_build_prefix$srcdir
1928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1929 esac
1930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1931
1932 cd "$ac_dir" || { ac_status=$?; continue; }
1933 # Check for configure.gnu first; this name is used for a wrapper for
1934 # Metaconfig's "Configure" on case-insensitive file systems.
1935 if test -f "$ac_srcdir/configure.gnu"; then
1936 echo &&
1937 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1938 elif test -f "$ac_srcdir/configure"; then
1939 echo &&
1940 $SHELL "$ac_srcdir/configure" --help=recursive
1941 else
1942 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1943 fi || ac_status=$?
1944 cd "$ac_pwd" || { ac_status=$?; break; }
1945 done
1946 fi
1947
1948 test -n "$ac_init_help" && exit $ac_status
1949 if $ac_init_version; then
1950 cat <<\_ACEOF
1951 dnsdist configure 2.1.1
1952 generated by GNU Autoconf 2.72
1953
1954 Copyright (C) 2023 Free Software Foundation, Inc.
1955 This configure script is free software; the Free Software Foundation
1956 gives unlimited permission to copy, distribute and modify it.
1957 _ACEOF
1958 exit
1959 fi
1960
1961 ## ------------------------ ##
1962 ## Autoconf initialization. ##
1963 ## ------------------------ ##
1964
1965 # ac_fn_c_try_compile LINENO
1966 # --------------------------
1967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_compile ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext conftest.beam
1972 if { { ac_try="$ac_compile"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 printf "%s\n" "$ac_try_echo"; } >&5
1979 (eval "$ac_compile") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1985 fi
1986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest.$ac_objext
1991 then :
1992 ac_retval=0
1993 else case e in #(
1994 e) printf "%s\n" "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_retval=1 ;;
1998 esac
1999 fi
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 as_fn_set_status $ac_retval
2002
2003 } # ac_fn_c_try_compile
2004
2005 # ac_fn_cxx_try_compile LINENO
2006 # ----------------------------
2007 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2008 ac_fn_cxx_try_compile ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 rm -f conftest.$ac_objext conftest.beam
2012 if { { ac_try="$ac_compile"
2013 case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 printf "%s\n" "$ac_try_echo"; } >&5
2019 (eval "$ac_compile") 2>conftest.err
2020 ac_status=$?
2021 if test -s conftest.err; then
2022 grep -v '^ *+' conftest.err >conftest.er1
2023 cat conftest.er1 >&5
2024 mv -f conftest.er1 conftest.err
2025 fi
2026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && {
2028 test -z "$ac_cxx_werror_flag" ||
2029 test ! -s conftest.err
2030 } && test -s conftest.$ac_objext
2031 then :
2032 ac_retval=0
2033 else case e in #(
2034 e) printf "%s\n" "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1 ;;
2038 esac
2039 fi
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2042
2043 } # ac_fn_cxx_try_compile
2044
2045 # ac_fn_c_try_link LINENO
2046 # -----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_c_try_link ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 printf "%s\n" "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_c_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 test -x conftest$ac_exeext
2073 }
2074 then :
2075 ac_retval=0
2076 else case e in #(
2077 e) printf "%s\n" "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1 ;;
2081 esac
2082 fi
2083 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2084 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2085 # interfere with the next link command; also delete a directory that is
2086 # left behind by Apple's compiler. We do this before executing the actions.
2087 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status $ac_retval
2090
2091 } # ac_fn_c_try_link
2092
2093 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists and can be compiled using the include files in
2096 # INCLUDES, setting the cache variable VAR accordingly.
2097 ac_fn_c_check_header_compile ()
2098 {
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 printf %s "checking for $2... " >&6; }
2102 if eval test \${$3+y}
2103 then :
2104 printf %s "(cached) " >&6
2105 else case e in #(
2106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 #include <$2>
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"
2112 then :
2113 eval "$3=yes"
2114 else case e in #(
2115 e) eval "$3=no" ;;
2116 esac
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2119 esac
2120 fi
2121 eval ac_res=\$$3
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 printf "%s\n" "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126 } # ac_fn_c_check_header_compile
2127
2128 # ac_fn_c_check_func LINENO FUNC VAR
2129 # ----------------------------------
2130 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2131 ac_fn_c_check_func ()
2132 {
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135 printf %s "checking for $2... " >&6; }
2136 if eval test \${$3+y}
2137 then :
2138 printf %s "(cached) " >&6
2139 else case e in #(
2140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2144 #define $2 innocuous_$2
2145
2146 /* System header to define __stub macros and hopefully few prototypes,
2147 which can conflict with char $2 (void); below. */
2148
2149 #include <limits.h>
2150 #undef $2
2151
2152 /* Override any GCC internal prototype to avoid an error.
2153 Use char because int might match the return type of a GCC
2154 builtin and then its argument prototype would still apply. */
2155 #ifdef __cplusplus
2156 extern "C"
2157 #endif
2158 char $2 (void);
2159 /* The GNU C library defines this for functions which it implements
2160 to always fail with ENOSYS. Some functions are actually named
2161 something starting with __ and the normal name is an alias. */
2162 #if defined __stub_$2 || defined __stub___$2
2163 choke me
2164 #endif
2165
2166 int
2167 main (void)
2168 {
2169 return $2 ();
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_link "$LINENO"
2175 then :
2176 eval "$3=yes"
2177 else case e in #(
2178 e) eval "$3=no" ;;
2179 esac
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2182 conftest$ac_exeext conftest.$ac_ext ;;
2183 esac
2184 fi
2185 eval ac_res=\$$3
2186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 printf "%s\n" "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189
2190 } # ac_fn_c_check_func
2191
2192 # ac_fn_cxx_try_cpp LINENO
2193 # ------------------------
2194 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2195 ac_fn_cxx_try_cpp ()
2196 {
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 if { { ac_try="$ac_cpp conftest.$ac_ext"
2199 case "(($ac_try" in
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2202 esac
2203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204 printf "%s\n" "$ac_try_echo"; } >&5
2205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2206 ac_status=$?
2207 if test -s conftest.err; then
2208 grep -v '^ *+' conftest.err >conftest.er1
2209 cat conftest.er1 >&5
2210 mv -f conftest.er1 conftest.err
2211 fi
2212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2213 test $ac_status = 0; } > conftest.i && {
2214 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2215 test ! -s conftest.err
2216 }
2217 then :
2218 ac_retval=0
2219 else case e in #(
2220 e) printf "%s\n" "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 ac_retval=1 ;;
2224 esac
2225 fi
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status $ac_retval
2228
2229 } # ac_fn_cxx_try_cpp
2230
2231 # ac_fn_cxx_try_link LINENO
2232 # -------------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_cxx_try_link ()
2235 {
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2238 if { { ac_try="$ac_link"
2239 case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 printf "%s\n" "$ac_try_echo"; } >&5
2245 (eval "$ac_link") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2251 fi
2252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_cxx_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest$ac_exeext && {
2257 test "$cross_compiling" = yes ||
2258 test -x conftest$ac_exeext
2259 }
2260 then :
2261 ac_retval=0
2262 else case e in #(
2263 e) printf "%s\n" "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2265
2266 ac_retval=1 ;;
2267 esac
2268 fi
2269 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2270 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2271 # interfere with the next link command; also delete a directory that is
2272 # left behind by Apple's compiler. We do this before executing the actions.
2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2276
2277 } # ac_fn_cxx_try_link
2278
2279 # ac_fn_cxx_check_func LINENO FUNC VAR
2280 # ------------------------------------
2281 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2282 ac_fn_cxx_check_func ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 printf %s "checking for $2... " >&6; }
2287 if eval test \${$3+y}
2288 then :
2289 printf %s "(cached) " >&6
2290 else case e in #(
2291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2293 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2295 #define $2 innocuous_$2
2296
2297 /* System header to define __stub macros and hopefully few prototypes,
2298 which can conflict with char $2 (void); below. */
2299
2300 #include <limits.h>
2301 #undef $2
2302
2303 /* Override any GCC internal prototype to avoid an error.
2304 Use char because int might match the return type of a GCC
2305 builtin and then its argument prototype would still apply. */
2306 #ifdef __cplusplus
2307 extern "C"
2308 #endif
2309 char $2 (void);
2310 /* The GNU C library defines this for functions which it implements
2311 to always fail with ENOSYS. Some functions are actually named
2312 something starting with __ and the normal name is an alias. */
2313 #if defined __stub_$2 || defined __stub___$2
2314 choke me
2315 #endif
2316
2317 int
2318 main (void)
2319 {
2320 return $2 ();
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_cxx_try_link "$LINENO"
2326 then :
2327 eval "$3=yes"
2328 else case e in #(
2329 e) eval "$3=no" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2333 conftest$ac_exeext conftest.$ac_ext ;;
2334 esac
2335 fi
2336 eval ac_res=\$$3
2337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 printf "%s\n" "$ac_res" >&6; }
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340
2341 } # ac_fn_cxx_check_func
2342
2343 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2344 # ---------------------------------------------------------
2345 # Tests whether HEADER exists and can be compiled using the include files in
2346 # INCLUDES, setting the cache variable VAR accordingly.
2347 ac_fn_cxx_check_header_compile ()
2348 {
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351 printf %s "checking for $2... " >&6; }
2352 if eval test \${$3+y}
2353 then :
2354 printf %s "(cached) " >&6
2355 else case e in #(
2356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2358 $4
2359 #include <$2>
2360 _ACEOF
2361 if ac_fn_cxx_try_compile "$LINENO"
2362 then :
2363 eval "$3=yes"
2364 else case e in #(
2365 e) eval "$3=no" ;;
2366 esac
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2369 esac
2370 fi
2371 eval ac_res=\$$3
2372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 printf "%s\n" "$ac_res" >&6; }
2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375
2376 } # ac_fn_cxx_check_header_compile
2377
2378 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2379 # ------------------------------------------------------------------
2380 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2381 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2382 ac_fn_check_decl ()
2383 {
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 as_decl_name=`echo $2|sed 's/ *(.*//'`
2386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2387 printf %s "checking whether $as_decl_name is declared... " >&6; }
2388 if eval test \${$3+y}
2389 then :
2390 printf %s "(cached) " >&6
2391 else case e in #(
2392 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2393 eval ac_save_FLAGS=\$$6
2394 as_fn_append $6 " $5"
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 int
2399 main (void)
2400 {
2401 #ifndef $as_decl_name
2402 #ifdef __cplusplus
2403 (void) $as_decl_use;
2404 #else
2405 (void) $as_decl_name;
2406 #endif
2407 #endif
2408
2409 ;
2410 return 0;
2411 }
2412 _ACEOF
2413 if ac_fn_cxx_try_compile "$LINENO"
2414 then :
2415 eval "$3=yes"
2416 else case e in #(
2417 e) eval "$3=no" ;;
2418 esac
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2421 eval $6=\$ac_save_FLAGS
2422 ;;
2423 esac
2424 fi
2425 eval ac_res=\$$3
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 printf "%s\n" "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430 } # ac_fn_check_decl
2431 ac_configure_args_raw=
2432 for ac_arg
2433 do
2434 case $ac_arg in
2435 *\'*)
2436 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 esac
2438 as_fn_append ac_configure_args_raw " '$ac_arg'"
2439 done
2440
2441 case $ac_configure_args_raw in
2442 *$as_nl*)
2443 ac_safe_unquote= ;;
2444 *)
2445 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2446 ac_unsafe_a="$ac_unsafe_z#~"
2447 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2448 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2449 esac
2450
2451 cat >config.log <<_ACEOF
2452 This file contains any messages produced by compilers while
2453 running configure, to aid debugging if configure makes a mistake.
2454
2455 It was created by dnsdist $as_me 2.1.1, which was
2456 generated by GNU Autoconf 2.72. Invocation command line was
2457
2458 $ $0$ac_configure_args_raw
2459
2460 _ACEOF
2461 exec 5>>config.log
2462 {
2463 cat <<_ASUNAME
2464 ## --------- ##
2465 ## Platform. ##
2466 ## --------- ##
2467
2468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2473
2474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2476
2477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2484
2485 _ASUNAME
2486
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 case $as_dir in #(((
2492 '') as_dir=./ ;;
2493 */) ;;
2494 *) as_dir=$as_dir/ ;;
2495 esac
2496 printf "%s\n" "PATH: $as_dir"
2497 done
2498 IFS=$as_save_IFS
2499
2500 } >&5
2501
2502 cat >&5 <<_ACEOF
2503
2504
2505 ## ----------- ##
2506 ## Core tests. ##
2507 ## ----------- ##
2508
2509 _ACEOF
2510
2511
2512 # Keep a trace of the command line.
2513 # Strip out --no-create and --no-recursion so they do not pile up.
2514 # Strip out --silent because we don't want to record it for future runs.
2515 # Also quote any args containing shell meta-characters.
2516 # Make two passes to allow for proper duplicate-argument suppression.
2517 ac_configure_args=
2518 ac_configure_args0=
2519 ac_configure_args1=
2520 ac_must_keep_next=false
2521 for ac_pass in 1 2
2522 do
2523 for ac_arg
2524 do
2525 case $ac_arg in
2526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2528 | -silent | --silent | --silen | --sile | --sil)
2529 continue ;;
2530 *\'*)
2531 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2532 esac
2533 case $ac_pass in
2534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2535 2)
2536 as_fn_append ac_configure_args1 " '$ac_arg'"
2537 if test $ac_must_keep_next = true; then
2538 ac_must_keep_next=false # Got value, back to normal.
2539 else
2540 case $ac_arg in
2541 *=* | --config-cache | -C | -disable-* | --disable-* \
2542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2544 | -with-* | --with-* | -without-* | --without-* | --x)
2545 case "$ac_configure_args0 " in
2546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2547 esac
2548 ;;
2549 -* ) ac_must_keep_next=true ;;
2550 esac
2551 fi
2552 as_fn_append ac_configure_args " '$ac_arg'"
2553 ;;
2554 esac
2555 done
2556 done
2557 { ac_configure_args0=; unset ac_configure_args0;}
2558 { ac_configure_args1=; unset ac_configure_args1;}
2559
2560 # When interrupted or exit'd, cleanup temporary files, and complete
2561 # config.log. We remove comments because anyway the quotes in there
2562 # would cause problems or look ugly.
2563 # WARNING: Use '\'' to represent an apostrophe within the trap.
2564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2565 trap 'exit_status=$?
2566 # Sanitize IFS.
2567 IFS=" "" $as_nl"
2568 # Save into config.log some information that might help in debugging.
2569 {
2570 echo
2571
2572 printf "%s\n" "## ---------------- ##
2573 ## Cache variables. ##
2574 ## ---------------- ##"
2575 echo
2576 # The following way of writing the cache mishandles newlines in values,
2577 (
2578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579 eval ac_val=\$$ac_var
2580 case $ac_val in #(
2581 *${as_nl}*)
2582 case $ac_var in #(
2583 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2585 esac
2586 case $ac_var in #(
2587 _ | IFS | as_nl) ;; #(
2588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589 *) { eval $ac_var=; unset $ac_var;} ;;
2590 esac ;;
2591 esac
2592 done
2593 (set) 2>&1 |
2594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595 *${as_nl}ac_space=\ *)
2596 sed -n \
2597 "s/'\''/'\''\\\\'\'''\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2599 ;; #(
2600 *)
2601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2602 ;;
2603 esac |
2604 sort
2605 )
2606 echo
2607
2608 printf "%s\n" "## ----------------- ##
2609 ## Output variables. ##
2610 ## ----------------- ##"
2611 echo
2612 for ac_var in $ac_subst_vars
2613 do
2614 eval ac_val=\$$ac_var
2615 case $ac_val in
2616 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617 esac
2618 printf "%s\n" "$ac_var='\''$ac_val'\''"
2619 done | sort
2620 echo
2621
2622 if test -n "$ac_subst_files"; then
2623 printf "%s\n" "## ------------------- ##
2624 ## File substitutions. ##
2625 ## ------------------- ##"
2626 echo
2627 for ac_var in $ac_subst_files
2628 do
2629 eval ac_val=\$$ac_var
2630 case $ac_val in
2631 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632 esac
2633 printf "%s\n" "$ac_var='\''$ac_val'\''"
2634 done | sort
2635 echo
2636 fi
2637
2638 if test -s confdefs.h; then
2639 printf "%s\n" "## ----------- ##
2640 ## confdefs.h. ##
2641 ## ----------- ##"
2642 echo
2643 cat confdefs.h
2644 echo
2645 fi
2646 test "$ac_signal" != 0 &&
2647 printf "%s\n" "$as_me: caught signal $ac_signal"
2648 printf "%s\n" "$as_me: exit $exit_status"
2649 } >&5
2650 rm -f core *.core core.conftest.* &&
2651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2652 exit $exit_status
2653 ' 0
2654 for ac_signal in 1 2 13 15; do
2655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656 done
2657 ac_signal=0
2658
2659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2660 rm -f -r conftest* confdefs.h
2661
2662 printf "%s\n" "/* confdefs.h */" > confdefs.h
2663
2664 # Predefined preprocessor variables.
2665
2666 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2667
2668 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2669
2670 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2671
2672 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2673
2674 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2675
2676 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2677
2678
2679 # Let the site file select an alternate cache file if it wants to.
2680 # Prefer an explicitly selected file to automatically selected ones.
2681 if test -n "$CONFIG_SITE"; then
2682 ac_site_files="$CONFIG_SITE"
2683 elif test "x$prefix" != xNONE; then
2684 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2685 else
2686 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2687 fi
2688
2689 for ac_site_file in $ac_site_files
2690 do
2691 case $ac_site_file in #(
2692 */*) :
2693 ;; #(
2694 *) :
2695 ac_site_file=./$ac_site_file ;;
2696 esac
2697 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2699 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2700 sed 's/^/| /' "$ac_site_file" >&5
2701 . "$ac_site_file" \
2702 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2704 as_fn_error $? "failed to load site script $ac_site_file
2705 See 'config.log' for more details" "$LINENO" 5; }
2706 fi
2707 done
2708
2709 if test -r "$cache_file"; then
2710 # Some versions of bash will fail to source /dev/null (special files
2711 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2712 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2715 case $cache_file in
2716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717 *) . "./$cache_file";;
2718 esac
2719 fi
2720 else
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2723 >$cache_file
2724 fi
2725
2726 # Test code for whether the C compiler supports C89 (global declarations)
2727 ac_c_conftest_c89_globals='
2728 /* Does the compiler advertise C89 conformance?
2729 Do not test the value of __STDC__, because some compilers set it to 0
2730 while being otherwise adequately conformant. */
2731 #if !defined __STDC__
2732 # error "Compiler does not advertise C89 conformance"
2733 #endif
2734
2735 #include <stddef.h>
2736 #include <stdarg.h>
2737 struct stat;
2738 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2739 struct buf { int x; };
2740 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (char **p, int i)
2742 {
2743 return p[i];
2744 }
2745 static char *f (char * (*g) (char **, int), char **p, ...)
2746 {
2747 char *s;
2748 va_list v;
2749 va_start (v,p);
2750 s = g (p, va_arg (v,int));
2751 va_end (v);
2752 return s;
2753 }
2754
2755 /* C89 style stringification. */
2756 #define noexpand_stringify(a) #a
2757 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2758
2759 /* C89 style token pasting. Exercises some of the corner cases that
2760 e.g. old MSVC gets wrong, but not very hard. */
2761 #define noexpand_concat(a,b) a##b
2762 #define expand_concat(a,b) noexpand_concat(a,b)
2763 extern int vA;
2764 extern int vbee;
2765 #define aye A
2766 #define bee B
2767 int *pvA = &expand_concat(v,aye);
2768 int *pvbee = &noexpand_concat(v,bee);
2769
2770 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2771 function prototypes and stuff, but not \xHH hex character constants.
2772 These do not provoke an error unfortunately, instead are silently treated
2773 as an "x". The following induces an error, until -std is added to get
2774 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2775 array size at least. It is necessary to write \x00 == 0 to get something
2776 that is true only with -std. */
2777 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2778
2779 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2780 inside strings and character constants. */
2781 #define FOO(x) '\''x'\''
2782 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2783
2784 int test (int i, double x);
2785 struct s1 {int (*f) (int a);};
2786 struct s2 {int (*f) (double a);};
2787 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2788 int, int);'
2789
2790 # Test code for whether the C compiler supports C89 (body of main).
2791 ac_c_conftest_c89_main='
2792 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2793 '
2794
2795 # Test code for whether the C compiler supports C99 (global declarations)
2796 ac_c_conftest_c99_globals='
2797 /* Does the compiler advertise C99 conformance? */
2798 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2799 # error "Compiler does not advertise C99 conformance"
2800 #endif
2801
2802 // See if C++-style comments work.
2803
2804 #include <stdbool.h>
2805 extern int puts (const char *);
2806 extern int printf (const char *, ...);
2807 extern int dprintf (int, const char *, ...);
2808 extern void *malloc (size_t);
2809 extern void free (void *);
2810
2811 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2812 // dprintf is used instead of fprintf to avoid needing to declare
2813 // FILE and stderr.
2814 #define debug(...) dprintf (2, __VA_ARGS__)
2815 #define showlist(...) puts (#__VA_ARGS__)
2816 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2817 static void
2818 test_varargs_macros (void)
2819 {
2820 int x = 1234;
2821 int y = 5678;
2822 debug ("Flag");
2823 debug ("X = %d\n", x);
2824 showlist (The first, second, and third items.);
2825 report (x>y, "x is %d but y is %d", x, y);
2826 }
2827
2828 // Check long long types.
2829 #define BIG64 18446744073709551615ull
2830 #define BIG32 4294967295ul
2831 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2832 #if !BIG_OK
2833 #error "your preprocessor is broken"
2834 #endif
2835 #if BIG_OK
2836 #else
2837 #error "your preprocessor is broken"
2838 #endif
2839 static long long int bignum = -9223372036854775807LL;
2840 static unsigned long long int ubignum = BIG64;
2841
2842 struct incomplete_array
2843 {
2844 int datasize;
2845 double data[];
2846 };
2847
2848 struct named_init {
2849 int number;
2850 const wchar_t *name;
2851 double average;
2852 };
2853
2854 typedef const char *ccp;
2855
2856 static inline int
2857 test_restrict (ccp restrict text)
2858 {
2859 // Iterate through items via the restricted pointer.
2860 // Also check for declarations in for loops.
2861 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2862 continue;
2863 return 0;
2864 }
2865
2866 // Check varargs and va_copy.
2867 static bool
2868 test_varargs (const char *format, ...)
2869 {
2870 va_list args;
2871 va_start (args, format);
2872 va_list args_copy;
2873 va_copy (args_copy, args);
2874
2875 const char *str = "";
2876 int number = 0;
2877 float fnumber = 0;
2878
2879 while (*format)
2880 {
2881 switch (*format++)
2882 {
2883 case '\''s'\'': // string
2884 str = va_arg (args_copy, const char *);
2885 break;
2886 case '\''d'\'': // int
2887 number = va_arg (args_copy, int);
2888 break;
2889 case '\''f'\'': // float
2890 fnumber = va_arg (args_copy, double);
2891 break;
2892 default:
2893 break;
2894 }
2895 }
2896 va_end (args_copy);
2897 va_end (args);
2898
2899 return *str && number && fnumber;
2900 }
2901 '
2902
2903 # Test code for whether the C compiler supports C99 (body of main).
2904 ac_c_conftest_c99_main='
2905 // Check bool.
2906 _Bool success = false;
2907 success |= (argc != 0);
2908
2909 // Check restrict.
2910 if (test_restrict ("String literal") == 0)
2911 success = true;
2912 char *restrict newvar = "Another string";
2913
2914 // Check varargs.
2915 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2916 test_varargs_macros ();
2917
2918 // Check flexible array members.
2919 struct incomplete_array *ia =
2920 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2921 ia->datasize = 10;
2922 for (int i = 0; i < ia->datasize; ++i)
2923 ia->data[i] = i * 1.234;
2924 // Work around memory leak warnings.
2925 free (ia);
2926
2927 // Check named initializers.
2928 struct named_init ni = {
2929 .number = 34,
2930 .name = L"Test wide string",
2931 .average = 543.34343,
2932 };
2933
2934 ni.number = 58;
2935
2936 int dynamic_array[ni.number];
2937 dynamic_array[0] = argv[0][0];
2938 dynamic_array[ni.number - 1] = 543;
2939
2940 // work around unused variable warnings
2941 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2942 || dynamic_array[ni.number - 1] != 543);
2943 '
2944
2945 # Test code for whether the C compiler supports C11 (global declarations)
2946 ac_c_conftest_c11_globals='
2947 /* Does the compiler advertise C11 conformance? */
2948 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2949 # error "Compiler does not advertise C11 conformance"
2950 #endif
2951
2952 // Check _Alignas.
2953 char _Alignas (double) aligned_as_double;
2954 char _Alignas (0) no_special_alignment;
2955 extern char aligned_as_int;
2956 char _Alignas (0) _Alignas (int) aligned_as_int;
2957
2958 // Check _Alignof.
2959 enum
2960 {
2961 int_alignment = _Alignof (int),
2962 int_array_alignment = _Alignof (int[100]),
2963 char_alignment = _Alignof (char)
2964 };
2965 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2966
2967 // Check _Noreturn.
2968 int _Noreturn does_not_return (void) { for (;;) continue; }
2969
2970 // Check _Static_assert.
2971 struct test_static_assert
2972 {
2973 int x;
2974 _Static_assert (sizeof (int) <= sizeof (long int),
2975 "_Static_assert does not work in struct");
2976 long int y;
2977 };
2978
2979 // Check UTF-8 literals.
2980 #define u8 syntax error!
2981 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2982
2983 // Check duplicate typedefs.
2984 typedef long *long_ptr;
2985 typedef long int *long_ptr;
2986 typedef long_ptr long_ptr;
2987
2988 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2989 struct anonymous
2990 {
2991 union {
2992 struct { int i; int j; };
2993 struct { int k; long int l; } w;
2994 };
2995 int m;
2996 } v1;
2997 '
2998
2999 # Test code for whether the C compiler supports C11 (body of main).
3000 ac_c_conftest_c11_main='
3001 _Static_assert ((offsetof (struct anonymous, i)
3002 == offsetof (struct anonymous, w.k)),
3003 "Anonymous union alignment botch");
3004 v1.i = 2;
3005 v1.w.k = 5;
3006 ok |= v1.i != 5;
3007 '
3008
3009 # Test code for whether the C compiler supports C11 (complete).
3010 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3011 ${ac_c_conftest_c99_globals}
3012 ${ac_c_conftest_c11_globals}
3013
3014 int
3015 main (int argc, char **argv)
3016 {
3017 int ok = 0;
3018 ${ac_c_conftest_c89_main}
3019 ${ac_c_conftest_c99_main}
3020 ${ac_c_conftest_c11_main}
3021 return ok;
3022 }
3023 "
3024
3025 # Test code for whether the C compiler supports C99 (complete).
3026 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3027 ${ac_c_conftest_c99_globals}
3028
3029 int
3030 main (int argc, char **argv)
3031 {
3032 int ok = 0;
3033 ${ac_c_conftest_c89_main}
3034 ${ac_c_conftest_c99_main}
3035 return ok;
3036 }
3037 "
3038
3039 # Test code for whether the C compiler supports C89 (complete).
3040 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3041
3042 int
3043 main (int argc, char **argv)
3044 {
3045 int ok = 0;
3046 ${ac_c_conftest_c89_main}
3047 return ok;
3048 }
3049 "
3050
3051 # Test code for whether the C++ compiler supports C++98 (global declarations)
3052 ac_cxx_conftest_cxx98_globals='
3053 // Does the compiler advertise C++98 conformance?
3054 #if !defined __cplusplus || __cplusplus < 199711L
3055 # error "Compiler does not advertise C++98 conformance"
3056 #endif
3057
3058 // These inclusions are to reject old compilers that
3059 // lack the unsuffixed header files.
3060 #include <cstdlib>
3061 #include <exception>
3062
3063 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3064 extern void assert (int);
3065 namespace std {
3066 extern int strcmp (const char *, const char *);
3067 }
3068
3069 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3070 using std::exception;
3071 using std::strcmp;
3072
3073 namespace {
3074
3075 void test_exception_syntax()
3076 {
3077 try {
3078 throw "test";
3079 } catch (const char *s) {
3080 // Extra parentheses suppress a warning when building autoconf itself,
3081 // due to lint rules shared with more typical C programs.
3082 assert (!(strcmp) (s, "test"));
3083 }
3084 }
3085
3086 template <typename T> struct test_template
3087 {
3088 T const val;
3089 explicit test_template(T t) : val(t) {}
3090 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3091 };
3092
3093 } // anonymous namespace
3094 '
3095
3096 # Test code for whether the C++ compiler supports C++98 (body of main)
3097 ac_cxx_conftest_cxx98_main='
3098 assert (argc);
3099 assert (! argv[0]);
3100 {
3101 test_exception_syntax ();
3102 test_template<double> tt (2.0);
3103 assert (tt.add (4) == 6.0);
3104 assert (true && !false);
3105 }
3106 '
3107
3108 # Test code for whether the C++ compiler supports C++11 (global declarations)
3109 ac_cxx_conftest_cxx11_globals='
3110 // Does the compiler advertise C++ 2011 conformance?
3111 #if !defined __cplusplus || __cplusplus < 201103L
3112 # error "Compiler does not advertise C++11 conformance"
3113 #endif
3114
3115 namespace cxx11test
3116 {
3117 constexpr int get_val() { return 20; }
3118
3119 struct testinit
3120 {
3121 int i;
3122 double d;
3123 };
3124
3125 class delegate
3126 {
3127 public:
3128 delegate(int n) : n(n) {}
3129 delegate(): delegate(2354) {}
3130
3131 virtual int getval() { return this->n; };
3132 protected:
3133 int n;
3134 };
3135
3136 class overridden : public delegate
3137 {
3138 public:
3139 overridden(int n): delegate(n) {}
3140 virtual int getval() override final { return this->n * 2; }
3141 };
3142
3143 class nocopy
3144 {
3145 public:
3146 nocopy(int i): i(i) {}
3147 nocopy() = default;
3148 nocopy(const nocopy&) = delete;
3149 nocopy & operator=(const nocopy&) = delete;
3150 private:
3151 int i;
3152 };
3153
3154 // for testing lambda expressions
3155 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3156 {
3157 return f(v);
3158 }
3159
3160 // for testing variadic templates and trailing return types
3161 template <typename V> auto sum(V first) -> V
3162 {
3163 return first;
3164 }
3165 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3166 {
3167 return first + sum(rest...);
3168 }
3169 }
3170 '
3171
3172 # Test code for whether the C++ compiler supports C++11 (body of main)
3173 ac_cxx_conftest_cxx11_main='
3174 {
3175 // Test auto and decltype
3176 auto a1 = 6538;
3177 auto a2 = 48573953.4;
3178 auto a3 = "String literal";
3179
3180 int total = 0;
3181 for (auto i = a3; *i; ++i) { total += *i; }
3182
3183 decltype(a2) a4 = 34895.034;
3184 }
3185 {
3186 // Test constexpr
3187 short sa[cxx11test::get_val()] = { 0 };
3188 }
3189 {
3190 // Test initializer lists
3191 cxx11test::testinit il = { 4323, 435234.23544 };
3192 }
3193 {
3194 // Test range-based for
3195 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3196 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3197 for (auto &x : array) { x += 23; }
3198 }
3199 {
3200 // Test lambda expressions
3201 using cxx11test::eval;
3202 assert (eval ([](int x) { return x*2; }, 21) == 42);
3203 double d = 2.0;
3204 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3205 assert (d == 5.0);
3206 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3207 assert (d == 5.0);
3208 }
3209 {
3210 // Test use of variadic templates
3211 using cxx11test::sum;
3212 auto a = sum(1);
3213 auto b = sum(1, 2);
3214 auto c = sum(1.0, 2.0, 3.0);
3215 }
3216 {
3217 // Test constructor delegation
3218 cxx11test::delegate d1;
3219 cxx11test::delegate d2();
3220 cxx11test::delegate d3(45);
3221 }
3222 {
3223 // Test override and final
3224 cxx11test::overridden o1(55464);
3225 }
3226 {
3227 // Test nullptr
3228 char *c = nullptr;
3229 }
3230 {
3231 // Test template brackets
3232 test_template<::test_template<int>> v(test_template<int>(12));
3233 }
3234 {
3235 // Unicode literals
3236 char const *utf8 = u8"UTF-8 string \u2500";
3237 char16_t const *utf16 = u"UTF-8 string \u2500";
3238 char32_t const *utf32 = U"UTF-32 string \u2500";
3239 }
3240 '
3241
3242 # Test code for whether the C compiler supports C++11 (complete).
3243 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3244 ${ac_cxx_conftest_cxx11_globals}
3245
3246 int
3247 main (int argc, char **argv)
3248 {
3249 int ok = 0;
3250 ${ac_cxx_conftest_cxx98_main}
3251 ${ac_cxx_conftest_cxx11_main}
3252 return ok;
3253 }
3254 "
3255
3256 # Test code for whether the C compiler supports C++98 (complete).
3257 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3258 int
3259 main (int argc, char **argv)
3260 {
3261 int ok = 0;
3262 ${ac_cxx_conftest_cxx98_main}
3263 return ok;
3264 }
3265 "
3266
3267 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3268 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3269 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3270 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3271 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3272 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3273 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3274 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3275 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3276 as_fn_append ac_func_cxx_list " localtime_r HAVE_LOCALTIME_R"
3277 as_fn_append ac_func_cxx_list " gmtime_r HAVE_GMTIME_R"
3278 as_fn_append ac_func_cxx_list " getrandom HAVE_GETRANDOM"
3279 as_fn_append ac_func_cxx_list " getentropy HAVE_GETENTROPY"
3280 as_fn_append ac_func_cxx_list " arc4random HAVE_ARC4RANDOM"
3281 as_fn_append ac_func_cxx_list " arc4random_uniform HAVE_ARC4RANDOM_UNIFORM"
3282 as_fn_append ac_func_cxx_list " arc4random_buf HAVE_ARC4RANDOM_BUF"
3283
3284 # Auxiliary files required by this configure script.
3285 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
3286
3287 # Locations in which to look for auxiliary files.
3288 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3289
3290 # Search for a directory containing all of the required auxiliary files,
3291 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3292 # If we don't find one directory that contains all the files we need,
3293 # we report the set of missing files from the *first* directory in
3294 # $ac_aux_dir_candidates and give up.
3295 ac_missing_aux_files=""
3296 ac_first_candidate=:
3297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 as_found=false
3300 for as_dir in $ac_aux_dir_candidates
3301 do
3302 IFS=$as_save_IFS
3303 case $as_dir in #(((
3304 '') as_dir=./ ;;
3305 */) ;;
3306 *) as_dir=$as_dir/ ;;
3307 esac
3308 as_found=:
3309
3310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3311 ac_aux_dir_found=yes
3312 ac_install_sh=
3313 for ac_aux in $ac_aux_files
3314 do
3315 # As a special case, if "install-sh" is required, that requirement
3316 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3317 # and $ac_install_sh is set appropriately for whichever one is found.
3318 if test x"$ac_aux" = x"install-sh"
3319 then
3320 if test -f "${as_dir}install-sh"; then
3321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3322 ac_install_sh="${as_dir}install-sh -c"
3323 elif test -f "${as_dir}install.sh"; then
3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3325 ac_install_sh="${as_dir}install.sh -c"
3326 elif test -f "${as_dir}shtool"; then
3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3328 ac_install_sh="${as_dir}shtool install -c"
3329 else
3330 ac_aux_dir_found=no
3331 if $ac_first_candidate; then
3332 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3333 else
3334 break
3335 fi
3336 fi
3337 else
3338 if test -f "${as_dir}${ac_aux}"; then
3339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3340 else
3341 ac_aux_dir_found=no
3342 if $ac_first_candidate; then
3343 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3344 else
3345 break
3346 fi
3347 fi
3348 fi
3349 done
3350 if test "$ac_aux_dir_found" = yes; then
3351 ac_aux_dir="$as_dir"
3352 break
3353 fi
3354 ac_first_candidate=false
3355
3356 as_found=false
3357 done
3358 IFS=$as_save_IFS
3359 if $as_found
3360 then :
3361
3362 else case e in #(
3363 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3364 esac
3365 fi
3366
3367
3368 # These three variables are undocumented and unsupported,
3369 # and are intended to be withdrawn in a future Autoconf release.
3370 # They can cause serious problems if a builder's source tree is in a directory
3371 # whose full name contains unusual characters.
3372 if test -f "${ac_aux_dir}config.guess"; then
3373 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3374 fi
3375 if test -f "${ac_aux_dir}config.sub"; then
3376 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3377 fi
3378 if test -f "$ac_aux_dir/configure"; then
3379 ac_configure="$SHELL ${ac_aux_dir}configure"
3380 fi
3381
3382 # Check that the precious variables saved in the cache have kept the same
3383 # value.
3384 ac_cache_corrupted=false
3385 for ac_var in $ac_precious_vars; do
3386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3387 eval ac_new_set=\$ac_env_${ac_var}_set
3388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3389 eval ac_new_val=\$ac_env_${ac_var}_value
3390 case $ac_old_set,$ac_new_set in
3391 set,)
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3393 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3394 ac_cache_corrupted=: ;;
3395 ,set)
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3397 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3398 ac_cache_corrupted=: ;;
3399 ,);;
3400 *)
3401 if test "x$ac_old_val" != "x$ac_new_val"; then
3402 # differences in whitespace do not lead to failure.
3403 ac_old_val_w=`echo x $ac_old_val`
3404 ac_new_val_w=`echo x $ac_new_val`
3405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3407 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3408 ac_cache_corrupted=:
3409 else
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3411 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3412 eval $ac_var=\$ac_old_val
3413 fi
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3415 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3417 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3418 fi;;
3419 esac
3420 # Pass precious variables to config.status.
3421 if test "$ac_new_set" = set; then
3422 case $ac_new_val in
3423 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3424 *) ac_arg=$ac_var=$ac_new_val ;;
3425 esac
3426 case " $ac_configure_args " in
3427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3428 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3429 esac
3430 fi
3431 done
3432 if $ac_cache_corrupted; then
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3434 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3436 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3437 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3438 and start over" "$LINENO" 5
3439 fi
3440 ## -------------------- ##
3441 ## Main body of script. ##
3442 ## -------------------- ##
3443
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449
3450
3451 am__api_version='1.17'
3452
3453
3454
3455 # Find a good install program. We prefer a C program (faster),
3456 # so one script is as good as another. But avoid the broken or
3457 # incompatible versions:
3458 # SysV /etc/install, /usr/sbin/install
3459 # SunOS /usr/etc/install
3460 # IRIX /sbin/install
3461 # AIX /bin/install
3462 # AmigaOS /C/install, which installs bootblocks on floppy discs
3463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3466 # OS/2's system install, which has a completely different semantic
3467 # ./install, which can be erroneously created by make from ./install.sh.
3468 # Reject install programs that cannot install multiple files.
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3470 printf %s "checking for a BSD-compatible install... " >&6; }
3471 if test -z "$INSTALL"; then
3472 if test ${ac_cv_path_install+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else case e in #(
3476 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 case $as_dir in #(((
3481 '') as_dir=./ ;;
3482 */) ;;
3483 *) as_dir=$as_dir/ ;;
3484 esac
3485 # Account for fact that we put trailing slashes in our PATH walk.
3486 case $as_dir in #((
3487 ./ | /[cC]/* | \
3488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3489 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3490 /usr/ucb/* ) ;;
3491 *)
3492 # OSF1 and SCO ODT 3.0 have their own names for install.
3493 # Don't use installbsd from OSF since it installs stuff as root
3494 # by default.
3495 for ac_prog in ginstall scoinst install; do
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3498 if test $ac_prog = install &&
3499 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3500 # AIX install. It has an incompatible calling convention.
3501 :
3502 elif test $ac_prog = install &&
3503 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3504 # program-specific install script used by HP pwplus--don't use.
3505 :
3506 else
3507 rm -rf conftest.one conftest.two conftest.dir
3508 echo one > conftest.one
3509 echo two > conftest.two
3510 mkdir conftest.dir
3511 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3512 test -s conftest.one && test -s conftest.two &&
3513 test -s conftest.dir/conftest.one &&
3514 test -s conftest.dir/conftest.two
3515 then
3516 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3517 break 3
3518 fi
3519 fi
3520 fi
3521 done
3522 done
3523 ;;
3524 esac
3525
3526 done
3527 IFS=$as_save_IFS
3528
3529 rm -rf conftest.one conftest.two conftest.dir
3530 ;;
3531 esac
3532 fi
3533 if test ${ac_cv_path_install+y}; then
3534 INSTALL=$ac_cv_path_install
3535 else
3536 # As a last resort, use the slow shell script. Don't cache a
3537 # value for INSTALL within a source directory, because that will
3538 # break other packages using the cache if that directory is
3539 # removed, or if the value is a relative name.
3540 INSTALL=$ac_install_sh
3541 fi
3542 fi
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3544 printf "%s\n" "$INSTALL" >&6; }
3545
3546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3547 # It thinks the first close brace ends the variable substitution.
3548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3549
3550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3551
3552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3553
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3555 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3556 if test ${am_cv_sleep_fractional_seconds+y}
3557 then :
3558 printf %s "(cached) " >&6
3559 else case e in #(
3560 e) if sleep 0.001 2>/dev/null
3561 then :
3562 am_cv_sleep_fractional_seconds=yes
3563 else case e in #(
3564 e) am_cv_sleep_fractional_seconds=no ;;
3565 esac
3566 fi
3567 ;;
3568 esac
3569 fi
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3571 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3572
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3574 printf %s "checking filesystem timestamp resolution... " >&6; }
3575 if test ${am_cv_filesystem_timestamp_resolution+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else case e in #(
3579 e) # Default to the worst case.
3580 am_cv_filesystem_timestamp_resolution=2
3581
3582 # Only try to go finer than 1 sec if sleep can do it.
3583 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3584 # - 1 sec is not much of a win compared to 2 sec, and
3585 # - it takes 2 seconds to perform the test whether 1 sec works.
3586 #
3587 # Instead, just use the default 2s on platforms that have 1s resolution,
3588 # accept the extra 1s delay when using $sleep in the Automake tests, in
3589 # exchange for not incurring the 2s delay for running the test for all
3590 # packages.
3591 #
3592 am_try_resolutions=
3593 if test "$am_cv_sleep_fractional_seconds" = yes; then
3594 # Even a millisecond often causes a bunch of false positives,
3595 # so just try a hundredth of a second. The time saved between .001 and
3596 # .01 is not terribly consequential.
3597 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3598 fi
3599
3600 # In order to catch current-generation FAT out, we must *modify* files
3601 # that already exist; the *creation* timestamp is finer. Use names
3602 # that make ls -t sort them differently when they have equal
3603 # timestamps than when they have distinct timestamps, keeping
3604 # in mind that ls -t prints the *newest* file first.
3605 rm -f conftest.ts?
3606 : > conftest.ts1
3607 : > conftest.ts2
3608 : > conftest.ts3
3609
3610 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3611 # clobber the current shell's arguments. (Outer-level square brackets
3612 # are removed by m4; they're present so that m4 does not expand
3613 # <dollar><star>; be careful, easy to get confused.)
3614 if (
3615 set X `ls -t conftest.ts[12]` &&
3616 {
3617 test "$*" != "X conftest.ts1 conftest.ts2" ||
3618 test "$*" != "X conftest.ts2 conftest.ts1";
3619 }
3620 ); then :; else
3621 # If neither matched, then we have a broken ls. This can happen
3622 # if, for instance, CONFIG_SHELL is bash and it inherits a
3623 # broken ls alias from the environment. This has actually
3624 # happened. Such a system could not be considered "sane".
3625 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3627 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3628 as_fn_error $? "ls -t produces unexpected output.
3629 Make sure there is not a broken ls alias in your environment.
3630 See 'config.log' for more details" "$LINENO" 5; }
3631 fi
3632
3633 for am_try_res in $am_try_resolutions; do
3634 # Any one fine-grained sleep might happen to cross the boundary
3635 # between two values of a coarser actual resolution, but if we do
3636 # two fine-grained sleeps in a row, at least one of them will fall
3637 # entirely within a coarse interval.
3638 echo alpha > conftest.ts1
3639 sleep $am_try_res
3640 echo beta > conftest.ts2
3641 sleep $am_try_res
3642 echo gamma > conftest.ts3
3643
3644 # We assume that 'ls -t' will make use of high-resolution
3645 # timestamps if the operating system supports them at all.
3646 if (set X `ls -t conftest.ts?` &&
3647 test "$2" = conftest.ts3 &&
3648 test "$3" = conftest.ts2 &&
3649 test "$4" = conftest.ts1); then
3650 #
3651 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3652 # because we don't need to test make.
3653 make_ok=true
3654 if test $am_try_res != 1; then
3655 # But if we've succeeded so far with a subsecond resolution, we
3656 # have one more thing to check: make. It can happen that
3657 # everything else supports the subsecond mtimes, but make doesn't;
3658 # notably on macOS, which ships make 3.81 from 2006 (the last one
3659 # released under GPLv2). https://bugs.gnu.org/68808
3660 #
3661 # We test $MAKE if it is defined in the environment, else "make".
3662 # It might get overridden later, but our hope is that in practice
3663 # it does not matter: it is the system "make" which is (by far)
3664 # the most likely to be broken, whereas if the user overrides it,
3665 # probably they did so with a better, or at least not worse, make.
3666 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3667 #
3668 # Create a Makefile (real tab character here):
3669 rm -f conftest.mk
3670 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3671 echo ' touch conftest.ts2' >>conftest.mk
3672 #
3673 # Now, running
3674 # touch conftest.ts1; touch conftest.ts2; make
3675 # should touch ts1 because ts2 is newer. This could happen by luck,
3676 # but most often, it will fail if make's support is insufficient. So
3677 # test for several consecutive successes.
3678 #
3679 # (We reuse conftest.ts[12] because we still want to modify existing
3680 # files, not create new ones, per above.)
3681 n=0
3682 make=${MAKE-make}
3683 until test $n -eq 3; do
3684 echo one > conftest.ts1
3685 sleep $am_try_res
3686 echo two > conftest.ts2 # ts2 should now be newer than ts1
3687 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3688 make_ok=false
3689 break # out of $n loop
3690 fi
3691 n=`expr $n + 1`
3692 done
3693 fi
3694 #
3695 if $make_ok; then
3696 # Everything we know to check worked out, so call this resolution good.
3697 am_cv_filesystem_timestamp_resolution=$am_try_res
3698 break # out of $am_try_res loop
3699 fi
3700 # Otherwise, we'll go on to check the next resolution.
3701 fi
3702 done
3703 rm -f conftest.ts?
3704 # (end _am_filesystem_timestamp_resolution)
3705 ;;
3706 esac
3707 fi
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3709 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3710
3711 # This check should not be cached, as it may vary across builds of
3712 # different projects.
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3714 printf %s "checking whether build environment is sane... " >&6; }
3715 # Reject unsafe characters in $srcdir or the absolute working directory
3716 # name. Accept space and tab only in the latter.
3717 am_lf='
3718 '
3719 case `pwd` in
3720 *[\\\"\#\$\&\'\`$am_lf]*)
3721 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3722 esac
3723 case $srcdir in
3724 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3725 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3726 esac
3727
3728 # Do 'set' in a subshell so we don't clobber the current shell's
3729 # arguments. Must try -L first in case configure is actually a
3730 # symlink; some systems play weird games with the mod time of symlinks
3731 # (eg FreeBSD returns the mod time of the symlink's containing
3732 # directory).
3733 am_build_env_is_sane=no
3734 am_has_slept=no
3735 rm -f conftest.file
3736 for am_try in 1 2; do
3737 echo "timestamp, slept: $am_has_slept" > conftest.file
3738 if (
3739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3740 if test "$*" = "X"; then
3741 # -L didn't work.
3742 set X `ls -t "$srcdir/configure" conftest.file`
3743 fi
3744 test "$2" = conftest.file
3745 ); then
3746 am_build_env_is_sane=yes
3747 break
3748 fi
3749 # Just in case.
3750 sleep "$am_cv_filesystem_timestamp_resolution"
3751 am_has_slept=yes
3752 done
3753
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3755 printf "%s\n" "$am_build_env_is_sane" >&6; }
3756 if test "$am_build_env_is_sane" = no; then
3757 as_fn_error $? "newly created file is older than distributed files!
3758 Check your system clock" "$LINENO" 5
3759 fi
3760
3761 # If we didn't sleep, we still need to ensure time stamps of config.status and
3762 # generated files are strictly newer.
3763 am_sleep_pid=
3764 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3765 then :
3766
3767 else case e in #(
3768 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3769 am_sleep_pid=$!
3770 ;;
3771 esac
3772 fi
3773
3774 rm -f conftest.file
3775
3776 test "$program_prefix" != NONE &&
3777 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3778 # Use a double $ so make ignores it.
3779 test "$program_suffix" != NONE &&
3780 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3781 # Double any \ or $.
3782 # By default was 's,x,x', remove it if useless.
3783 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3784 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3785
3786
3787 # Expand $ac_aux_dir to an absolute path.
3788 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3789
3790
3791 if test x"${MISSING+set}" != xset; then
3792 MISSING="\${SHELL} '$am_aux_dir/missing'"
3793 fi
3794 # Use eval to expand $SHELL
3795 if eval "$MISSING --is-lightweight"; then
3796 am_missing_run="$MISSING "
3797 else
3798 am_missing_run=
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3800 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3801 fi
3802
3803 if test x"${install_sh+set}" != xset; then
3804 case $am_aux_dir in
3805 *\ * | *\ *)
3806 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3807 *)
3808 install_sh="\${SHELL} $am_aux_dir/install-sh"
3809 esac
3810 fi
3811
3812 # Installed binaries are usually stripped using 'strip' when the user
3813 # run "make install-strip". However 'strip' might not be the right
3814 # tool to use in cross-compilation environments, therefore Automake
3815 # will honor the 'STRIP' environment variable to overrule this program.
3816 if test "$cross_compiling" != no; then
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3819 set dummy ${ac_tool_prefix}strip; ac_word=$2
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 printf %s "checking for $ac_word... " >&6; }
3822 if test ${ac_cv_prog_STRIP+y}
3823 then :
3824 printf %s "(cached) " >&6
3825 else case e in #(
3826 e) if test -n "$STRIP"; then
3827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832 IFS=$as_save_IFS
3833 case $as_dir in #(((
3834 '') as_dir=./ ;;
3835 */) ;;
3836 *) as_dir=$as_dir/ ;;
3837 esac
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844 done
3845 done
3846 IFS=$as_save_IFS
3847
3848 fi ;;
3849 esac
3850 fi
3851 STRIP=$ac_cv_prog_STRIP
3852 if test -n "$STRIP"; then
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3854 printf "%s\n" "$STRIP" >&6; }
3855 else
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 if test -z "$ac_cv_prog_STRIP"; then
3863 ac_ct_STRIP=$STRIP
3864 # Extract the first word of "strip", so it can be a program name with args.
3865 set dummy strip; ac_word=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s "checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_ac_ct_STRIP+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else case e in #(
3872 e) if test -n "$ac_ct_STRIP"; then
3873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 case $as_dir in #(((
3880 '') as_dir=./ ;;
3881 */) ;;
3882 *) as_dir=$as_dir/ ;;
3883 esac
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_ac_ct_STRIP="strip"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3893
3894 fi ;;
3895 esac
3896 fi
3897 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3898 if test -n "$ac_ct_STRIP"; then
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3900 printf "%s\n" "$ac_ct_STRIP" >&6; }
3901 else
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 printf "%s\n" "no" >&6; }
3904 fi
3905
3906 if test "x$ac_ct_STRIP" = x; then
3907 STRIP=":"
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910 yes:)
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913 ac_tool_warned=yes ;;
3914 esac
3915 STRIP=$ac_ct_STRIP
3916 fi
3917 else
3918 STRIP="$ac_cv_prog_STRIP"
3919 fi
3920
3921 fi
3922 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3923
3924
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3926 printf %s "checking for a race-free mkdir -p... " >&6; }
3927 if test -z "$MKDIR_P"; then
3928 if test ${ac_cv_path_mkdir+y}
3929 then :
3930 printf %s "(cached) " >&6
3931 else case e in #(
3932 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3934 do
3935 IFS=$as_save_IFS
3936 case $as_dir in #(((
3937 '') as_dir=./ ;;
3938 */) ;;
3939 *) as_dir=$as_dir/ ;;
3940 esac
3941 for ac_prog in mkdir gmkdir; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3944 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3945 'mkdir ('*'coreutils) '* | \
3946 *'BusyBox '* | \
3947 'mkdir (fileutils) '4.1*)
3948 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3949 break 3;;
3950 esac
3951 done
3952 done
3953 done
3954 IFS=$as_save_IFS
3955 ;;
3956 esac
3957 fi
3958
3959 test -d ./--version && rmdir ./--version
3960 if test ${ac_cv_path_mkdir+y}; then
3961 MKDIR_P="$ac_cv_path_mkdir -p"
3962 else
3963 # As a last resort, use plain mkdir -p,
3964 # in the hope it doesn't have the bugs of ancient mkdir.
3965 MKDIR_P='mkdir -p'
3966 fi
3967 fi
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3969 printf "%s\n" "$MKDIR_P" >&6; }
3970
3971 for ac_prog in gawk mawk nawk awk
3972 do
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974 set dummy $ac_prog; ac_word=$2
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 printf %s "checking for $ac_word... " >&6; }
3977 if test ${ac_cv_prog_AWK+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else case e in #(
3981 e) if test -n "$AWK"; then
3982 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 case $as_dir in #(((
3989 '') as_dir=./ ;;
3990 */) ;;
3991 *) as_dir=$as_dir/ ;;
3992 esac
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_AWK="$ac_prog"
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi ;;
4004 esac
4005 fi
4006 AWK=$ac_cv_prog_AWK
4007 if test -n "$AWK"; then
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4009 printf "%s\n" "$AWK" >&6; }
4010 else
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 printf "%s\n" "no" >&6; }
4013 fi
4014
4015
4016 test -n "$AWK" && break
4017 done
4018
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4020 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4021 set x ${MAKE-make}
4022 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4023 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4024 then :
4025 printf %s "(cached) " >&6
4026 else case e in #(
4027 e) cat >conftest.make <<\_ACEOF
4028 SHELL = /bin/sh
4029 all:
4030 @echo '@@@%%%=$(MAKE)=@@@%%%'
4031 _ACEOF
4032 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4034 *@@@%%%=?*=@@@%%%*)
4035 eval ac_cv_prog_make_${ac_make}_set=yes;;
4036 *)
4037 eval ac_cv_prog_make_${ac_make}_set=no;;
4038 esac
4039 rm -f conftest.make ;;
4040 esac
4041 fi
4042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 printf "%s\n" "yes" >&6; }
4045 SET_MAKE=
4046 else
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 printf "%s\n" "no" >&6; }
4049 SET_MAKE="MAKE=${MAKE-make}"
4050 fi
4051
4052 rm -rf .tst 2>/dev/null
4053 mkdir .tst 2>/dev/null
4054 if test -d .tst; then
4055 am__leading_dot=.
4056 else
4057 am__leading_dot=_
4058 fi
4059 rmdir .tst 2>/dev/null
4060
4061 AM_DEFAULT_VERBOSITY=1
4062 # Check whether --enable-silent-rules was given.
4063 if test ${enable_silent_rules+y}
4064 then :
4065 enableval=$enable_silent_rules;
4066 fi
4067
4068 am_make=${MAKE-make}
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4070 printf %s "checking whether $am_make supports nested variables... " >&6; }
4071 if test ${am_cv_make_support_nested_variables+y}
4072 then :
4073 printf %s "(cached) " >&6
4074 else case e in #(
4075 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4076 BAR0=false
4077 BAR1=true
4078 V=1
4079 am__doit:
4080 @$(TRUE)
4081 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4082 am_cv_make_support_nested_variables=yes
4083 else
4084 am_cv_make_support_nested_variables=no
4085 fi ;;
4086 esac
4087 fi
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4089 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4090 AM_BACKSLASH='\'
4091
4092 am__rm_f_notfound=
4093 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4094 then :
4095
4096 else case e in #(
4097 e) am__rm_f_notfound='""' ;;
4098 esac
4099 fi
4100
4101
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4103 printf %s "checking xargs -n works... " >&6; }
4104 if test ${am_cv_xargs_n_works+y}
4105 then :
4106 printf %s "(cached) " >&6
4107 else case e in #(
4108 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4109 3"
4110 then :
4111 am_cv_xargs_n_works=yes
4112 else case e in #(
4113 e) am_cv_xargs_n_works=no ;;
4114 esac
4115 fi ;;
4116 esac
4117 fi
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4119 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4120 if test "$am_cv_xargs_n_works" = yes
4121 then :
4122 am__xargs_n='xargs -n'
4123 else case e in #(
4124 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4125 ;;
4126 esac
4127 fi
4128
4129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4131 # is not polluted with repeated "-I."
4132 am__isrc=' -I$(srcdir)'
4133 # test to see if srcdir already configured
4134 if test -f $srcdir/config.status; then
4135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4136 fi
4137 fi
4138
4139 # test whether we have cygpath
4140 if test -z "$CYGPATH_W"; then
4141 if (cygpath --version) >/dev/null 2>/dev/null; then
4142 CYGPATH_W='cygpath -w'
4143 else
4144 CYGPATH_W=echo
4145 fi
4146 fi
4147
4148
4149 # Define the identity of the package.
4150 PACKAGE='dnsdist'
4151 VERSION='2.1.1'
4152
4153
4154 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4155
4156
4157 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4158
4159 # Some tools Automake needs.
4160
4161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4162
4163
4164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4165
4166
4167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4168
4169
4170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4171
4172
4173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4174
4175 # For better backward compatibility. To be removed once Automake 1.9.x
4176 # dies out for good. For more background, see:
4177 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4178 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4179 mkdir_p='$(MKDIR_P)'
4180
4181 # We need awk for the "check" target (and possibly the TAP driver). The
4182 # system "awk" is bad on some platforms.
4183 # Always define AMTAR for backward compatibility. Yes, it's still used
4184 # in the wild :-( We should find a proper way to deprecate it ...
4185 AMTAR='$${TAR-tar}'
4186
4187
4188 # We'll loop over all known methods to create a tar archive until one works.
4189 _am_tools='gnutar plaintar pax cpio none'
4190
4191 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4192 # There is notably a 21 bits limit for the UID and the GID. In fact,
4193 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4194 # and bug#13588).
4195 am_max_uid=2097151 # 2^21 - 1
4196 am_max_gid=$am_max_uid
4197 # The $UID and $GID variables are not portable, so we need to resort
4198 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4199 # below are definitely unexpected, so allow the users to see them
4200 # (that is, avoid stderr redirection).
4201 am_uid=`id -u || echo unknown`
4202 am_gid=`id -g || echo unknown`
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4204 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4205 if test x$am_uid = xunknown; then
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4207 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4208 elif test $am_uid -le $am_max_uid; then
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4210 printf "%s\n" "yes" >&6; }
4211 else
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 printf "%s\n" "no" >&6; }
4214 _am_tools=none
4215 fi
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4217 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4218 if test x$gm_gid = xunknown; then
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4220 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4221 elif test $am_gid -le $am_max_gid; then
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4223 printf "%s\n" "yes" >&6; }
4224 else
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 printf "%s\n" "no" >&6; }
4227 _am_tools=none
4228 fi
4229
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4231 printf %s "checking how to create a ustar tar archive... " >&6; }
4232
4233 # Go ahead even if we have the value already cached. We do so because we
4234 # need to set the values for the 'am__tar' and 'am__untar' variables.
4235 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4236
4237 for _am_tool in $_am_tools; do
4238 case $_am_tool in
4239 gnutar)
4240 for _am_tar in tar gnutar gtar; do
4241 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4242 ($_am_tar --version) >&5 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && break
4246 done
4247 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4248 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4249 am__untar="$_am_tar -xf -"
4250 ;;
4251 plaintar)
4252 # Must skip GNU tar: if it does not support --format= it doesn't create
4253 # ustar tarball either.
4254 (tar --version) >/dev/null 2>&1 && continue
4255 am__tar='tar chf - "$$tardir"'
4256 am__tar_='tar chf - "$tardir"'
4257 am__untar='tar xf -'
4258 ;;
4259 pax)
4260 am__tar='pax -L -x ustar -w "$$tardir"'
4261 am__tar_='pax -L -x ustar -w "$tardir"'
4262 am__untar='pax -r'
4263 ;;
4264 cpio)
4265 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4266 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4267 am__untar='cpio -i -H ustar -d'
4268 ;;
4269 none)
4270 am__tar=false
4271 am__tar_=false
4272 am__untar=false
4273 ;;
4274 esac
4275
4276 # If the value was cached, stop now. We just wanted to have am__tar
4277 # and am__untar set.
4278 test -n "${am_cv_prog_tar_ustar}" && break
4279
4280 # tar/untar a dummy directory, and stop if the command works.
4281 rm -rf conftest.dir
4282 mkdir conftest.dir
4283 echo GrepMe > conftest.dir/file
4284 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4285 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }
4289 rm -rf conftest.dir
4290 if test -s conftest.tar; then
4291 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4292 ($am__untar <conftest.tar) >&5 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }
4296 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4297 (cat conftest.dir/file) >&5 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }
4301 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4302 fi
4303 done
4304 rm -rf conftest.dir
4305
4306 if test ${am_cv_prog_tar_ustar+y}
4307 then :
4308 printf %s "(cached) " >&6
4309 else case e in #(
4310 e) am_cv_prog_tar_ustar=$_am_tool ;;
4311 esac
4312 fi
4313
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4315 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4316
4317
4318
4319
4320
4321 # Variables for tags utilities; see am/tags.am
4322 if test -z "$CTAGS"; then
4323 CTAGS=ctags
4324 fi
4325
4326 if test -z "$ETAGS"; then
4327 ETAGS=etags
4328 fi
4329
4330 if test -z "$CSCOPE"; then
4331 CSCOPE=cscope
4332 fi
4333
4334
4335
4336
4337
4338
4339
4340
4341 AM_DEFAULT_VERBOSITY=0
4342
4343 ac_config_headers="$ac_config_headers config.h"
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 ac_ext=c
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 printf %s "checking for $ac_word... " >&6; }
4364 if test ${ac_cv_prog_CC+y}
4365 then :
4366 printf %s "(cached) " >&6
4367 else case e in #(
4368 e) if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4373 do
4374 IFS=$as_save_IFS
4375 case $as_dir in #(((
4376 '') as_dir=./ ;;
4377 */) ;;
4378 *) as_dir=$as_dir/ ;;
4379 esac
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390 fi ;;
4391 esac
4392 fi
4393 CC=$ac_cv_prog_CC
4394 if test -n "$CC"; then
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396 printf "%s\n" "$CC" >&6; }
4397 else
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 printf "%s\n" "no" >&6; }
4400 fi
4401
4402
4403 fi
4404 if test -z "$ac_cv_prog_CC"; then
4405 ac_ct_CC=$CC
4406 # Extract the first word of "gcc", so it can be a program name with args.
4407 set dummy gcc; ac_word=$2
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 printf %s "checking for $ac_word... " >&6; }
4410 if test ${ac_cv_prog_ac_ct_CC+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else case e in #(
4414 e) if test -n "$ac_ct_CC"; then
4415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 case $as_dir in #(((
4422 '') as_dir=./ ;;
4423 */) ;;
4424 *) as_dir=$as_dir/ ;;
4425 esac
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_ac_ct_CC="gcc"
4429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi ;;
4437 esac
4438 fi
4439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4440 if test -n "$ac_ct_CC"; then
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4442 printf "%s\n" "$ac_ct_CC" >&6; }
4443 else
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 printf "%s\n" "no" >&6; }
4446 fi
4447
4448 if test "x$ac_ct_CC" = x; then
4449 CC=""
4450 else
4451 case $cross_compiling:$ac_tool_warned in
4452 yes:)
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455 ac_tool_warned=yes ;;
4456 esac
4457 CC=$ac_ct_CC
4458 fi
4459 else
4460 CC="$ac_cv_prog_CC"
4461 fi
4462
4463 if test -z "$CC"; then
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}cc; ac_word=$2
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 printf %s "checking for $ac_word... " >&6; }
4469 if test ${ac_cv_prog_CC+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else case e in #(
4473 e) if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 case $as_dir in #(((
4481 '') as_dir=./ ;;
4482 */) ;;
4483 *) as_dir=$as_dir/ ;;
4484 esac
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_CC="${ac_tool_prefix}cc"
4488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi ;;
4496 esac
4497 fi
4498 CC=$ac_cv_prog_CC
4499 if test -n "$CC"; then
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4501 printf "%s\n" "$CC" >&6; }
4502 else
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 printf "%s\n" "no" >&6; }
4505 fi
4506
4507
4508 fi
4509 fi
4510 if test -z "$CC"; then
4511 # Extract the first word of "cc", so it can be a program name with args.
4512 set dummy cc; ac_word=$2
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 printf %s "checking for $ac_word... " >&6; }
4515 if test ${ac_cv_prog_CC+y}
4516 then :
4517 printf %s "(cached) " >&6
4518 else case e in #(
4519 e) if test -n "$CC"; then
4520 ac_cv_prog_CC="$CC" # Let the user override the test.
4521 else
4522 ac_prog_rejected=no
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526 IFS=$as_save_IFS
4527 case $as_dir in #(((
4528 '') as_dir=./ ;;
4529 */) ;;
4530 *) as_dir=$as_dir/ ;;
4531 esac
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4534 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4535 ac_prog_rejected=yes
4536 continue
4537 fi
4538 ac_cv_prog_CC="cc"
4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 if test $ac_prog_rejected = yes; then
4547 # We found a bogon in the path, so make sure we never use it.
4548 set dummy $ac_cv_prog_CC
4549 shift
4550 if test $# != 0; then
4551 # We chose a different compiler from the bogus one.
4552 # However, it has the same basename, so the bogon will be chosen
4553 # first if we set CC to just the basename; use the full file name.
4554 shift
4555 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4556 fi
4557 fi
4558 fi ;;
4559 esac
4560 fi
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 printf "%s\n" "$CC" >&6; }
4565 else
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 printf "%s\n" "no" >&6; }
4568 fi
4569
4570
4571 fi
4572 if test -z "$CC"; then
4573 if test -n "$ac_tool_prefix"; then
4574 for ac_prog in cl.exe
4575 do
4576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 printf %s "checking for $ac_word... " >&6; }
4580 if test ${ac_cv_prog_CC+y}
4581 then :
4582 printf %s "(cached) " >&6
4583 else case e in #(
4584 e) if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 case $as_dir in #(((
4592 '') as_dir=./ ;;
4593 */) ;;
4594 *) as_dir=$as_dir/ ;;
4595 esac
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi ;;
4607 esac
4608 fi
4609 CC=$ac_cv_prog_CC
4610 if test -n "$CC"; then
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4612 printf "%s\n" "$CC" >&6; }
4613 else
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 printf "%s\n" "no" >&6; }
4616 fi
4617
4618
4619 test -n "$CC" && break
4620 done
4621 fi
4622 if test -z "$CC"; then
4623 ac_ct_CC=$CC
4624 for ac_prog in cl.exe
4625 do
4626 # Extract the first word of "$ac_prog", so it can be a program name with args.
4627 set dummy $ac_prog; ac_word=$2
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 printf %s "checking for $ac_word... " >&6; }
4630 if test ${ac_cv_prog_ac_ct_CC+y}
4631 then :
4632 printf %s "(cached) " >&6
4633 else case e in #(
4634 e) if test -n "$ac_ct_CC"; then
4635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 case $as_dir in #(((
4642 '') as_dir=./ ;;
4643 */) ;;
4644 *) as_dir=$as_dir/ ;;
4645 esac
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_CC="$ac_prog"
4649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi ;;
4657 esac
4658 fi
4659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4660 if test -n "$ac_ct_CC"; then
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4662 printf "%s\n" "$ac_ct_CC" >&6; }
4663 else
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 printf "%s\n" "no" >&6; }
4666 fi
4667
4668
4669 test -n "$ac_ct_CC" && break
4670 done
4671
4672 if test "x$ac_ct_CC" = x; then
4673 CC=""
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681 CC=$ac_ct_CC
4682 fi
4683 fi
4684
4685 fi
4686 if test -z "$CC"; then
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}clang; ac_word=$2
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 printf %s "checking for $ac_word... " >&6; }
4692 if test ${ac_cv_prog_CC+y}
4693 then :
4694 printf %s "(cached) " >&6
4695 else case e in #(
4696 e) if test -n "$CC"; then
4697 ac_cv_prog_CC="$CC" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 case $as_dir in #(((
4704 '') as_dir=./ ;;
4705 */) ;;
4706 *) as_dir=$as_dir/ ;;
4707 esac
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4710 ac_cv_prog_CC="${ac_tool_prefix}clang"
4711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi ;;
4719 esac
4720 fi
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 printf "%s\n" "$CC" >&6; }
4725 else
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 printf "%s\n" "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$ac_cv_prog_CC"; then
4733 ac_ct_CC=$CC
4734 # Extract the first word of "clang", so it can be a program name with args.
4735 set dummy clang; ac_word=$2
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 printf %s "checking for $ac_word... " >&6; }
4738 if test ${ac_cv_prog_ac_ct_CC+y}
4739 then :
4740 printf %s "(cached) " >&6
4741 else case e in #(
4742 e) if test -n "$ac_ct_CC"; then
4743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 case $as_dir in #(((
4750 '') as_dir=./ ;;
4751 */) ;;
4752 *) as_dir=$as_dir/ ;;
4753 esac
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_CC="clang"
4757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi ;;
4765 esac
4766 fi
4767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4768 if test -n "$ac_ct_CC"; then
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4770 printf "%s\n" "$ac_ct_CC" >&6; }
4771 else
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 printf "%s\n" "no" >&6; }
4774 fi
4775
4776 if test "x$ac_ct_CC" = x; then
4777 CC=""
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785 CC=$ac_ct_CC
4786 fi
4787 else
4788 CC="$ac_cv_prog_CC"
4789 fi
4790
4791 fi
4792
4793
4794 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4795 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4796 as_fn_error $? "no acceptable C compiler found in \$PATH
4797 See 'config.log' for more details" "$LINENO" 5; }
4798
4799 # Provide some information about the compiler.
4800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4801 set X $ac_compile
4802 ac_compiler=$2
4803 for ac_option in --version -v -V -qversion -version; do
4804 { { ac_try="$ac_compiler $ac_option >&5"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4810 printf "%s\n" "$ac_try_echo"; } >&5
4811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4812 ac_status=$?
4813 if test -s conftest.err; then
4814 sed '10a\
4815 ... rest of stderr output deleted ...
4816 10q' conftest.err >conftest.er1
4817 cat conftest.er1 >&5
4818 fi
4819 rm -f conftest.er1 conftest.err
4820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822 done
4823
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826
4827 int
4828 main (void)
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 ac_clean_files_save=$ac_clean_files
4836 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4837 # Try to create an executable without -o first, disregard a.out.
4838 # It will help us diagnose broken compilers, and finding out an intuition
4839 # of exeext.
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4841 printf %s "checking whether the C compiler works... " >&6; }
4842 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4843
4844 # The possible output files:
4845 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4846
4847 ac_rmfiles=
4848 for ac_file in $ac_files
4849 do
4850 case $ac_file in
4851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4853 esac
4854 done
4855 rm -f $ac_rmfiles
4856
4857 if { { ac_try="$ac_link_default"
4858 case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863 printf "%s\n" "$ac_try_echo"; } >&5
4864 (eval "$ac_link_default") 2>&5
4865 ac_status=$?
4866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }
4868 then :
4869 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4870 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4872 # so that the user can short-circuit this test for compilers unknown to
4873 # Autoconf.
4874 for ac_file in $ac_files ''
4875 do
4876 test -f "$ac_file" || continue
4877 case $ac_file in
4878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4879 ;;
4880 [ab].out )
4881 # We found the default executable, but exeext='' is most
4882 # certainly right.
4883 break;;
4884 *.* )
4885 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4886 then :; else
4887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4888 fi
4889 # We set ac_cv_exeext here because the later test for it is not
4890 # safe: cross compilers may not add the suffix if given an '-o'
4891 # argument, so we may need to know it at that point already.
4892 # Even if this section looks crufty: it has the advantage of
4893 # actually working.
4894 break;;
4895 * )
4896 break;;
4897 esac
4898 done
4899 test "$ac_cv_exeext" = no && ac_cv_exeext=
4900
4901 else case e in #(
4902 e) ac_file='' ;;
4903 esac
4904 fi
4905 if test -z "$ac_file"
4906 then :
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 printf "%s\n" "no" >&6; }
4909 printf "%s\n" "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4914 as_fn_error 77 "C compiler cannot create executables
4915 See 'config.log' for more details" "$LINENO" 5; }
4916 else case e in #(
4917 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4918 printf "%s\n" "yes" >&6; } ;;
4919 esac
4920 fi
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4922 printf %s "checking for C compiler default output file name... " >&6; }
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4924 printf "%s\n" "$ac_file" >&6; }
4925 ac_exeext=$ac_cv_exeext
4926
4927 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4928 ac_clean_files=$ac_clean_files_save
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4930 printf %s "checking for suffix of executables... " >&6; }
4931 if { { ac_try="$ac_link"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937 printf "%s\n" "$ac_try_echo"; } >&5
4938 (eval "$ac_link") 2>&5
4939 ac_status=$?
4940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941 test $ac_status = 0; }
4942 then :
4943 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4944 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4945 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4946 # 'rm'.
4947 for ac_file in conftest.exe conftest conftest.*; do
4948 test -f "$ac_file" || continue
4949 case $ac_file in
4950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4952 break;;
4953 * ) break;;
4954 esac
4955 done
4956 else case e in #(
4957 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4958 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4959 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4960 See 'config.log' for more details" "$LINENO" 5; } ;;
4961 esac
4962 fi
4963 rm -f conftest conftest$ac_cv_exeext
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4965 printf "%s\n" "$ac_cv_exeext" >&6; }
4966
4967 rm -f conftest.$ac_ext
4968 EXEEXT=$ac_cv_exeext
4969 ac_exeext=$EXEEXT
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 #include <stdio.h>
4973 int
4974 main (void)
4975 {
4976 FILE *f = fopen ("conftest.out", "w");
4977 if (!f)
4978 return 1;
4979 return ferror (f) || fclose (f) != 0;
4980
4981 ;
4982 return 0;
4983 }
4984 _ACEOF
4985 ac_clean_files="$ac_clean_files conftest.out"
4986 # Check that the compiler produces executables we can run. If not, either
4987 # the compiler is broken, or we cross compile.
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4989 printf %s "checking whether we are cross compiling... " >&6; }
4990 if test "$cross_compiling" != yes; then
4991 { { ac_try="$ac_link"
4992 case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4997 printf "%s\n" "$ac_try_echo"; } >&5
4998 (eval "$ac_link") 2>&5
4999 ac_status=$?
5000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }
5002 if { ac_try='./conftest$ac_cv_exeext'
5003 { { case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 printf "%s\n" "$ac_try_echo"; } >&5
5009 (eval "$ac_try") 2>&5
5010 ac_status=$?
5011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }; }; then
5013 cross_compiling=no
5014 else
5015 if test "$cross_compiling" = maybe; then
5016 cross_compiling=yes
5017 else
5018 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5019 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5020 as_fn_error 77 "cannot run C compiled programs.
5021 If you meant to cross compile, use '--host'.
5022 See 'config.log' for more details" "$LINENO" 5; }
5023 fi
5024 fi
5025 fi
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5027 printf "%s\n" "$cross_compiling" >&6; }
5028
5029 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5030 conftest.o conftest.obj conftest.out
5031 ac_clean_files=$ac_clean_files_save
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5033 printf %s "checking for suffix of object files... " >&6; }
5034 if test ${ac_cv_objext+y}
5035 then :
5036 printf %s "(cached) " >&6
5037 else case e in #(
5038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040
5041 int
5042 main (void)
5043 {
5044
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 rm -f conftest.o conftest.obj
5050 if { { ac_try="$ac_compile"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5056 printf "%s\n" "$ac_try_echo"; } >&5
5057 (eval "$ac_compile") 2>&5
5058 ac_status=$?
5059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5060 test $ac_status = 0; }
5061 then :
5062 for ac_file in conftest.o conftest.obj conftest.*; do
5063 test -f "$ac_file" || continue;
5064 case $ac_file in
5065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5067 break;;
5068 esac
5069 done
5070 else case e in #(
5071 e) printf "%s\n" "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5075 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5076 as_fn_error $? "cannot compute suffix of object files: cannot compile
5077 See 'config.log' for more details" "$LINENO" 5; } ;;
5078 esac
5079 fi
5080 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5081 esac
5082 fi
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5084 printf "%s\n" "$ac_cv_objext" >&6; }
5085 OBJEXT=$ac_cv_objext
5086 ac_objext=$OBJEXT
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5088 printf %s "checking whether the compiler supports GNU C... " >&6; }
5089 if test ${ac_cv_c_compiler_gnu+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else case e in #(
5093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095
5096 int
5097 main (void)
5098 {
5099 #ifndef __GNUC__
5100 choke me
5101 #endif
5102
5103 ;
5104 return 0;
5105 }
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"
5108 then :
5109 ac_compiler_gnu=yes
5110 else case e in #(
5111 e) ac_compiler_gnu=no ;;
5112 esac
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5116 ;;
5117 esac
5118 fi
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5120 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122
5123 if test $ac_compiler_gnu = yes; then
5124 GCC=yes
5125 else
5126 GCC=
5127 fi
5128 ac_test_CFLAGS=${CFLAGS+y}
5129 ac_save_CFLAGS=$CFLAGS
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5131 printf %s "checking whether $CC accepts -g... " >&6; }
5132 if test ${ac_cv_prog_cc_g+y}
5133 then :
5134 printf %s "(cached) " >&6
5135 else case e in #(
5136 e) ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5138 ac_cv_prog_cc_g=no
5139 CFLAGS="-g"
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142
5143 int
5144 main (void)
5145 {
5146
5147 ;
5148 return 0;
5149 }
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"
5152 then :
5153 ac_cv_prog_cc_g=yes
5154 else case e in #(
5155 e) CFLAGS=""
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158
5159 int
5160 main (void)
5161 {
5162
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"
5168 then :
5169
5170 else case e in #(
5171 e) ac_c_werror_flag=$ac_save_c_werror_flag
5172 CFLAGS="-g"
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175
5176 int
5177 main (void)
5178 {
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186 ac_cv_prog_cc_g=yes
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5189 esac
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5192 esac
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5195 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5196 esac
5197 fi
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5199 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5200 if test $ac_test_CFLAGS; then
5201 CFLAGS=$ac_save_CFLAGS
5202 elif test $ac_cv_prog_cc_g = yes; then
5203 if test "$GCC" = yes; then
5204 CFLAGS="-g -O2"
5205 else
5206 CFLAGS="-g"
5207 fi
5208 else
5209 if test "$GCC" = yes; then
5210 CFLAGS="-O2"
5211 else
5212 CFLAGS=
5213 fi
5214 fi
5215 ac_prog_cc_stdc=no
5216 if test x$ac_prog_cc_stdc = xno
5217 then :
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5219 printf %s "checking for $CC option to enable C11 features... " >&6; }
5220 if test ${ac_cv_prog_cc_c11+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else case e in #(
5224 e) ac_cv_prog_cc_c11=no
5225 ac_save_CC=$CC
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 $ac_c_conftest_c11_program
5229 _ACEOF
5230 for ac_arg in '' -std=gnu11
5231 do
5232 CC="$ac_save_CC $ac_arg"
5233 if ac_fn_c_try_compile "$LINENO"
5234 then :
5235 ac_cv_prog_cc_c11=$ac_arg
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.beam
5238 test "x$ac_cv_prog_cc_c11" != "xno" && break
5239 done
5240 rm -f conftest.$ac_ext
5241 CC=$ac_save_CC ;;
5242 esac
5243 fi
5244
5245 if test "x$ac_cv_prog_cc_c11" = xno
5246 then :
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5248 printf "%s\n" "unsupported" >&6; }
5249 else case e in #(
5250 e) if test "x$ac_cv_prog_cc_c11" = x
5251 then :
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5253 printf "%s\n" "none needed" >&6; }
5254 else case e in #(
5255 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5256 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5257 CC="$CC $ac_cv_prog_cc_c11" ;;
5258 esac
5259 fi
5260 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5261 ac_prog_cc_stdc=c11 ;;
5262 esac
5263 fi
5264 fi
5265 if test x$ac_prog_cc_stdc = xno
5266 then :
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5268 printf %s "checking for $CC option to enable C99 features... " >&6; }
5269 if test ${ac_cv_prog_cc_c99+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else case e in #(
5273 e) ac_cv_prog_cc_c99=no
5274 ac_save_CC=$CC
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 $ac_c_conftest_c99_program
5278 _ACEOF
5279 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5280 do
5281 CC="$ac_save_CC $ac_arg"
5282 if ac_fn_c_try_compile "$LINENO"
5283 then :
5284 ac_cv_prog_cc_c99=$ac_arg
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.beam
5287 test "x$ac_cv_prog_cc_c99" != "xno" && break
5288 done
5289 rm -f conftest.$ac_ext
5290 CC=$ac_save_CC ;;
5291 esac
5292 fi
5293
5294 if test "x$ac_cv_prog_cc_c99" = xno
5295 then :
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5297 printf "%s\n" "unsupported" >&6; }
5298 else case e in #(
5299 e) if test "x$ac_cv_prog_cc_c99" = x
5300 then :
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5302 printf "%s\n" "none needed" >&6; }
5303 else case e in #(
5304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5305 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5306 CC="$CC $ac_cv_prog_cc_c99" ;;
5307 esac
5308 fi
5309 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5310 ac_prog_cc_stdc=c99 ;;
5311 esac
5312 fi
5313 fi
5314 if test x$ac_prog_cc_stdc = xno
5315 then :
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5317 printf %s "checking for $CC option to enable C89 features... " >&6; }
5318 if test ${ac_cv_prog_cc_c89+y}
5319 then :
5320 printf %s "(cached) " >&6
5321 else case e in #(
5322 e) ac_cv_prog_cc_c89=no
5323 ac_save_CC=$CC
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 $ac_c_conftest_c89_program
5327 _ACEOF
5328 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5329 do
5330 CC="$ac_save_CC $ac_arg"
5331 if ac_fn_c_try_compile "$LINENO"
5332 then :
5333 ac_cv_prog_cc_c89=$ac_arg
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.beam
5336 test "x$ac_cv_prog_cc_c89" != "xno" && break
5337 done
5338 rm -f conftest.$ac_ext
5339 CC=$ac_save_CC ;;
5340 esac
5341 fi
5342
5343 if test "x$ac_cv_prog_cc_c89" = xno
5344 then :
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5346 printf "%s\n" "unsupported" >&6; }
5347 else case e in #(
5348 e) if test "x$ac_cv_prog_cc_c89" = x
5349 then :
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5351 printf "%s\n" "none needed" >&6; }
5352 else case e in #(
5353 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5354 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5355 CC="$CC $ac_cv_prog_cc_c89" ;;
5356 esac
5357 fi
5358 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5359 ac_prog_cc_stdc=c89 ;;
5360 esac
5361 fi
5362 fi
5363
5364 ac_ext=c
5365 ac_cpp='$CPP $CPPFLAGS'
5366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369
5370
5371 ac_ext=c
5372 ac_cpp='$CPP $CPPFLAGS'
5373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5377 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5378 if test ${am_cv_prog_cc_c_o+y}
5379 then :
5380 printf %s "(cached) " >&6
5381 else case e in #(
5382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384
5385 int
5386 main (void)
5387 {
5388
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 # Make sure it works both with $CC and with simple cc.
5394 # Following AC_PROG_CC_C_O, we do the test twice because some
5395 # compilers refuse to overwrite an existing .o file with -o,
5396 # though they will create one.
5397 am_cv_prog_cc_c_o=yes
5398 for am_i in 1 2; do
5399 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5400 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } \
5404 && test -f conftest2.$ac_objext; then
5405 : OK
5406 else
5407 am_cv_prog_cc_c_o=no
5408 break
5409 fi
5410 done
5411 rm -f core conftest*
5412 unset am_i ;;
5413 esac
5414 fi
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5416 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5417 if test "$am_cv_prog_cc_c_o" != yes; then
5418 # Losing compiler, so override with the script.
5419 # FIXME: It is wrong to rewrite CC.
5420 # But if we don't then we get into trouble of one sort or another.
5421 # A longer-term fix would be to have automake use am__CC in this case,
5422 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5423 CC="$am_aux_dir/compile $CC"
5424 fi
5425 ac_ext=c
5426 ac_cpp='$CPP $CPPFLAGS'
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431 DEPDIR="${am__leading_dot}deps"
5432
5433 ac_config_commands="$ac_config_commands depfiles"
5434
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5436 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5437 cat > confinc.mk << 'END'
5438 am__doit:
5439 @echo this is the am__doit target >confinc.out
5440 .PHONY: am__doit
5441 END
5442 am__include="#"
5443 am__quote=
5444 # BSD make does it like this.
5445 echo '.include "confinc.mk" # ignored' > confmf.BSD
5446 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5447 echo 'include confinc.mk # ignored' > confmf.GNU
5448 _am_result=no
5449 for s in GNU BSD; do
5450 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5451 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }
5455 case $?:`cat confinc.out 2>/dev/null` in #(
5456 '0:this is the am__doit target') :
5457 case $s in #(
5458 BSD) :
5459 am__include='.include' am__quote='"' ;; #(
5460 *) :
5461 am__include='include' am__quote='' ;;
5462 esac ;; #(
5463 *) :
5464 ;;
5465 esac
5466 if test "$am__include" != "#"; then
5467 _am_result="yes ($s style)"
5468 break
5469 fi
5470 done
5471 rm -f confinc.* confmf.*
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5473 printf "%s\n" "${_am_result}" >&6; }
5474
5475 # Check whether --enable-dependency-tracking was given.
5476 if test ${enable_dependency_tracking+y}
5477 then :
5478 enableval=$enable_dependency_tracking;
5479 fi
5480
5481 if test "x$enable_dependency_tracking" != xno; then
5482 am_depcomp="$ac_aux_dir/depcomp"
5483 AMDEPBACKSLASH='\'
5484 am__nodep='_no'
5485 fi
5486 if test "x$enable_dependency_tracking" != xno; then
5487 AMDEP_TRUE=
5488 AMDEP_FALSE='#'
5489 else
5490 AMDEP_TRUE='#'
5491 AMDEP_FALSE=
5492 fi
5493
5494
5495
5496 depcc="$CC" am_compiler_list=
5497
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5499 printf %s "checking dependency style of $depcc... " >&6; }
5500 if test ${am_cv_CC_dependencies_compiler_type+y}
5501 then :
5502 printf %s "(cached) " >&6
5503 else case e in #(
5504 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5505 # We make a subdir and do the tests there. Otherwise we can end up
5506 # making bogus files that we don't know about and never remove. For
5507 # instance it was reported that on HP-UX the gcc test will end up
5508 # making a dummy file named 'D' -- because '-MD' means "put the output
5509 # in D".
5510 rm -rf conftest.dir
5511 mkdir conftest.dir
5512 # Copy depcomp to subdir because otherwise we won't find it if we're
5513 # using a relative directory.
5514 cp "$am_depcomp" conftest.dir
5515 cd conftest.dir
5516 # We will build objects and dependencies in a subdirectory because
5517 # it helps to detect inapplicable dependency modes. For instance
5518 # both Tru64's cc and ICC support -MD to output dependencies as a
5519 # side effect of compilation, but ICC will put the dependencies in
5520 # the current directory while Tru64 will put them in the object
5521 # directory.
5522 mkdir sub
5523
5524 am_cv_CC_dependencies_compiler_type=none
5525 if test "$am_compiler_list" = ""; then
5526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5527 fi
5528 am__universal=false
5529 case " $depcc " in #(
5530 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5531 esac
5532
5533 for depmode in $am_compiler_list; do
5534 # Setup a source with many dependencies, because some compilers
5535 # like to wrap large dependency lists on column 80 (with \), and
5536 # we should not choose a depcomp mode which is confused by this.
5537 #
5538 # We need to recreate these files for each test, as the compiler may
5539 # overwrite some of them when testing with obscure command lines.
5540 # This happens at least with the AIX C compiler.
5541 : > sub/conftest.c
5542 for i in 1 2 3 4 5 6; do
5543 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5544 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5545 # Solaris 10 /bin/sh.
5546 echo '/* dummy */' > sub/conftst$i.h
5547 done
5548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5549
5550 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5551 # mode. It turns out that the SunPro C++ compiler does not properly
5552 # handle '-M -o', and we need to detect this. Also, some Intel
5553 # versions had trouble with output in subdirs.
5554 am__obj=sub/conftest.${OBJEXT-o}
5555 am__minus_obj="-o $am__obj"
5556 case $depmode in
5557 gcc)
5558 # This depmode causes a compiler race in universal mode.
5559 test "$am__universal" = false || continue
5560 ;;
5561 nosideeffect)
5562 # After this tag, mechanisms are not by side-effect, so they'll
5563 # only be used when explicitly requested.
5564 if test "x$enable_dependency_tracking" = xyes; then
5565 continue
5566 else
5567 break
5568 fi
5569 ;;
5570 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5571 # This compiler won't grok '-c -o', but also, the minuso test has
5572 # not run yet. These depmodes are late enough in the game, and
5573 # so weak that their functioning should not be impacted.
5574 am__obj=conftest.${OBJEXT-o}
5575 am__minus_obj=
5576 ;;
5577 none) break ;;
5578 esac
5579 if depmode=$depmode \
5580 source=sub/conftest.c object=$am__obj \
5581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5582 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5583 >/dev/null 2>conftest.err &&
5584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5586 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5588 # icc doesn't choke on unknown options, it will just issue warnings
5589 # or remarks (even with -Werror). So we grep stderr for any message
5590 # that says an option was ignored or not supported.
5591 # When given -MP, icc 7.0 and 7.1 complain thus:
5592 # icc: Command line warning: ignoring option '-M'; no argument required
5593 # The diagnosis changed in icc 8.0:
5594 # icc: Command line remark: option '-MP' not supported
5595 if (grep 'ignoring option' conftest.err ||
5596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5597 am_cv_CC_dependencies_compiler_type=$depmode
5598 break
5599 fi
5600 fi
5601 done
5602
5603 cd ..
5604 rm -rf conftest.dir
5605 else
5606 am_cv_CC_dependencies_compiler_type=none
5607 fi
5608 ;;
5609 esac
5610 fi
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5612 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5613 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5614
5615 if
5616 test "x$enable_dependency_tracking" != xno \
5617 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5618 am__fastdepCC_TRUE=
5619 am__fastdepCC_FALSE='#'
5620 else
5621 am__fastdepCC_TRUE='#'
5622 am__fastdepCC_FALSE=
5623 fi
5624
5625
5626
5627
5628
5629
5630
5631
5632 ac_ext=cpp
5633 ac_cpp='$CXXCPP $CPPFLAGS'
5634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5637 if test -z "$CXX"; then
5638 if test -n "$CCC"; then
5639 CXX=$CCC
5640 else
5641 if test -n "$ac_tool_prefix"; then
5642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5643 do
5644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 printf %s "checking for $ac_word... " >&6; }
5648 if test ${ac_cv_prog_CXX+y}
5649 then :
5650 printf %s "(cached) " >&6
5651 else case e in #(
5652 e) if test -n "$CXX"; then
5653 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658 IFS=$as_save_IFS
5659 case $as_dir in #(((
5660 '') as_dir=./ ;;
5661 */) ;;
5662 *) as_dir=$as_dir/ ;;
5663 esac
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi ;;
5675 esac
5676 fi
5677 CXX=$ac_cv_prog_CXX
5678 if test -n "$CXX"; then
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5680 printf "%s\n" "$CXX" >&6; }
5681 else
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 printf "%s\n" "no" >&6; }
5684 fi
5685
5686
5687 test -n "$CXX" && break
5688 done
5689 fi
5690 if test -z "$CXX"; then
5691 ac_ct_CXX=$CXX
5692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5693 do
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695 set dummy $ac_prog; ac_word=$2
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 printf %s "checking for $ac_word... " >&6; }
5698 if test ${ac_cv_prog_ac_ct_CXX+y}
5699 then :
5700 printf %s "(cached) " >&6
5701 else case e in #(
5702 e) if test -n "$ac_ct_CXX"; then
5703 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 case $as_dir in #(((
5710 '') as_dir=./ ;;
5711 */) ;;
5712 *) as_dir=$as_dir/ ;;
5713 esac
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_ac_ct_CXX="$ac_prog"
5717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi ;;
5725 esac
5726 fi
5727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5728 if test -n "$ac_ct_CXX"; then
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5730 printf "%s\n" "$ac_ct_CXX" >&6; }
5731 else
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 printf "%s\n" "no" >&6; }
5734 fi
5735
5736
5737 test -n "$ac_ct_CXX" && break
5738 done
5739
5740 if test "x$ac_ct_CXX" = x; then
5741 CXX="g++"
5742 else
5743 case $cross_compiling:$ac_tool_warned in
5744 yes:)
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749 CXX=$ac_ct_CXX
5750 fi
5751 fi
5752
5753 fi
5754 fi
5755 # Provide some information about the compiler.
5756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5757 set X $ac_compile
5758 ac_compiler=$2
5759 for ac_option in --version -v -V -qversion; do
5760 { { ac_try="$ac_compiler $ac_option >&5"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5766 printf "%s\n" "$ac_try_echo"; } >&5
5767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5768 ac_status=$?
5769 if test -s conftest.err; then
5770 sed '10a\
5771 ... rest of stderr output deleted ...
5772 10q' conftest.err >conftest.er1
5773 cat conftest.er1 >&5
5774 fi
5775 rm -f conftest.er1 conftest.err
5776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; }
5778 done
5779
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5781 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5782 if test ${ac_cv_cxx_compiler_gnu+y}
5783 then :
5784 printf %s "(cached) " >&6
5785 else case e in #(
5786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788
5789 int
5790 main (void)
5791 {
5792 #ifndef __GNUC__
5793 choke me
5794 #endif
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_cxx_try_compile "$LINENO"
5801 then :
5802 ac_compiler_gnu=yes
5803 else case e in #(
5804 e) ac_compiler_gnu=no ;;
5805 esac
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5808 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5809 ;;
5810 esac
5811 fi
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5813 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5815
5816 if test $ac_compiler_gnu = yes; then
5817 GXX=yes
5818 else
5819 GXX=
5820 fi
5821 ac_test_CXXFLAGS=${CXXFLAGS+y}
5822 ac_save_CXXFLAGS=$CXXFLAGS
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5824 printf %s "checking whether $CXX accepts -g... " >&6; }
5825 if test ${ac_cv_prog_cxx_g+y}
5826 then :
5827 printf %s "(cached) " >&6
5828 else case e in #(
5829 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5830 ac_cxx_werror_flag=yes
5831 ac_cv_prog_cxx_g=no
5832 CXXFLAGS="-g"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835
5836 int
5837 main (void)
5838 {
5839
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 if ac_fn_cxx_try_compile "$LINENO"
5845 then :
5846 ac_cv_prog_cxx_g=yes
5847 else case e in #(
5848 e) CXXFLAGS=""
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851
5852 int
5853 main (void)
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_cxx_try_compile "$LINENO"
5861 then :
5862
5863 else case e in #(
5864 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5865 CXXFLAGS="-g"
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868
5869 int
5870 main (void)
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"
5878 then :
5879 ac_cv_prog_cxx_g=yes
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5882 esac
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5885 esac
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5889 esac
5890 fi
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5892 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5893 if test $ac_test_CXXFLAGS; then
5894 CXXFLAGS=$ac_save_CXXFLAGS
5895 elif test $ac_cv_prog_cxx_g = yes; then
5896 if test "$GXX" = yes; then
5897 CXXFLAGS="-g -O2"
5898 else
5899 CXXFLAGS="-g"
5900 fi
5901 else
5902 if test "$GXX" = yes; then
5903 CXXFLAGS="-O2"
5904 else
5905 CXXFLAGS=
5906 fi
5907 fi
5908 ac_prog_cxx_stdcxx=no
5909 if test x$ac_prog_cxx_stdcxx = xno
5910 then :
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5912 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5913 if test ${ac_cv_prog_cxx_cxx11+y}
5914 then :
5915 printf %s "(cached) " >&6
5916 else case e in #(
5917 e) ac_cv_prog_cxx_cxx11=no
5918 ac_save_CXX=$CXX
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 $ac_cxx_conftest_cxx11_program
5922 _ACEOF
5923 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5924 do
5925 CXX="$ac_save_CXX $ac_arg"
5926 if ac_fn_cxx_try_compile "$LINENO"
5927 then :
5928 ac_cv_prog_cxx_cxx11=$ac_arg
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.beam
5931 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5932 done
5933 rm -f conftest.$ac_ext
5934 CXX=$ac_save_CXX ;;
5935 esac
5936 fi
5937
5938 if test "x$ac_cv_prog_cxx_cxx11" = xno
5939 then :
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5941 printf "%s\n" "unsupported" >&6; }
5942 else case e in #(
5943 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5944 then :
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5946 printf "%s\n" "none needed" >&6; }
5947 else case e in #(
5948 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5949 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5950 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5951 esac
5952 fi
5953 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5954 ac_prog_cxx_stdcxx=cxx11 ;;
5955 esac
5956 fi
5957 fi
5958 if test x$ac_prog_cxx_stdcxx = xno
5959 then :
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5961 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5962 if test ${ac_cv_prog_cxx_cxx98+y}
5963 then :
5964 printf %s "(cached) " >&6
5965 else case e in #(
5966 e) ac_cv_prog_cxx_cxx98=no
5967 ac_save_CXX=$CXX
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 $ac_cxx_conftest_cxx98_program
5971 _ACEOF
5972 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5973 do
5974 CXX="$ac_save_CXX $ac_arg"
5975 if ac_fn_cxx_try_compile "$LINENO"
5976 then :
5977 ac_cv_prog_cxx_cxx98=$ac_arg
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext conftest.beam
5980 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5981 done
5982 rm -f conftest.$ac_ext
5983 CXX=$ac_save_CXX ;;
5984 esac
5985 fi
5986
5987 if test "x$ac_cv_prog_cxx_cxx98" = xno
5988 then :
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5990 printf "%s\n" "unsupported" >&6; }
5991 else case e in #(
5992 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5993 then :
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5995 printf "%s\n" "none needed" >&6; }
5996 else case e in #(
5997 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5998 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5999 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6000 esac
6001 fi
6002 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6003 ac_prog_cxx_stdcxx=cxx98 ;;
6004 esac
6005 fi
6006 fi
6007
6008 ac_ext=c
6009 ac_cpp='$CPP $CPPFLAGS'
6010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013
6014 depcc="$CXX" am_compiler_list=
6015
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6017 printf %s "checking dependency style of $depcc... " >&6; }
6018 if test ${am_cv_CXX_dependencies_compiler_type+y}
6019 then :
6020 printf %s "(cached) " >&6
6021 else case e in #(
6022 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6023 # We make a subdir and do the tests there. Otherwise we can end up
6024 # making bogus files that we don't know about and never remove. For
6025 # instance it was reported that on HP-UX the gcc test will end up
6026 # making a dummy file named 'D' -- because '-MD' means "put the output
6027 # in D".
6028 rm -rf conftest.dir
6029 mkdir conftest.dir
6030 # Copy depcomp to subdir because otherwise we won't find it if we're
6031 # using a relative directory.
6032 cp "$am_depcomp" conftest.dir
6033 cd conftest.dir
6034 # We will build objects and dependencies in a subdirectory because
6035 # it helps to detect inapplicable dependency modes. For instance
6036 # both Tru64's cc and ICC support -MD to output dependencies as a
6037 # side effect of compilation, but ICC will put the dependencies in
6038 # the current directory while Tru64 will put them in the object
6039 # directory.
6040 mkdir sub
6041
6042 am_cv_CXX_dependencies_compiler_type=none
6043 if test "$am_compiler_list" = ""; then
6044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6045 fi
6046 am__universal=false
6047 case " $depcc " in #(
6048 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6049 esac
6050
6051 for depmode in $am_compiler_list; do
6052 # Setup a source with many dependencies, because some compilers
6053 # like to wrap large dependency lists on column 80 (with \), and
6054 # we should not choose a depcomp mode which is confused by this.
6055 #
6056 # We need to recreate these files for each test, as the compiler may
6057 # overwrite some of them when testing with obscure command lines.
6058 # This happens at least with the AIX C compiler.
6059 : > sub/conftest.c
6060 for i in 1 2 3 4 5 6; do
6061 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6062 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6063 # Solaris 10 /bin/sh.
6064 echo '/* dummy */' > sub/conftst$i.h
6065 done
6066 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6067
6068 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6069 # mode. It turns out that the SunPro C++ compiler does not properly
6070 # handle '-M -o', and we need to detect this. Also, some Intel
6071 # versions had trouble with output in subdirs.
6072 am__obj=sub/conftest.${OBJEXT-o}
6073 am__minus_obj="-o $am__obj"
6074 case $depmode in
6075 gcc)
6076 # This depmode causes a compiler race in universal mode.
6077 test "$am__universal" = false || continue
6078 ;;
6079 nosideeffect)
6080 # After this tag, mechanisms are not by side-effect, so they'll
6081 # only be used when explicitly requested.
6082 if test "x$enable_dependency_tracking" = xyes; then
6083 continue
6084 else
6085 break
6086 fi
6087 ;;
6088 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6089 # This compiler won't grok '-c -o', but also, the minuso test has
6090 # not run yet. These depmodes are late enough in the game, and
6091 # so weak that their functioning should not be impacted.
6092 am__obj=conftest.${OBJEXT-o}
6093 am__minus_obj=
6094 ;;
6095 none) break ;;
6096 esac
6097 if depmode=$depmode \
6098 source=sub/conftest.c object=$am__obj \
6099 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6100 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6101 >/dev/null 2>conftest.err &&
6102 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6103 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6104 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6105 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6106 # icc doesn't choke on unknown options, it will just issue warnings
6107 # or remarks (even with -Werror). So we grep stderr for any message
6108 # that says an option was ignored or not supported.
6109 # When given -MP, icc 7.0 and 7.1 complain thus:
6110 # icc: Command line warning: ignoring option '-M'; no argument required
6111 # The diagnosis changed in icc 8.0:
6112 # icc: Command line remark: option '-MP' not supported
6113 if (grep 'ignoring option' conftest.err ||
6114 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6115 am_cv_CXX_dependencies_compiler_type=$depmode
6116 break
6117 fi
6118 fi
6119 done
6120
6121 cd ..
6122 rm -rf conftest.dir
6123 else
6124 am_cv_CXX_dependencies_compiler_type=none
6125 fi
6126 ;;
6127 esac
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6130 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6131 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6132
6133 if
6134 test "x$enable_dependency_tracking" != xno \
6135 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6136 am__fastdepCXX_TRUE=
6137 am__fastdepCXX_FALSE='#'
6138 else
6139 am__fastdepCXX_TRUE='#'
6140 am__fastdepCXX_FALSE=
6141 fi
6142
6143
6144 ac_ext=cpp
6145 ac_cpp='$CXXCPP $CPPFLAGS'
6146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6149
6150
6151 CPPFLAGS="-DDNSDIST $CPPFLAGS"
6152
6153 # Warn when pkg.m4 is missing
6154
6155
6156
6157 # Rust runtime uses dlopen from its static lib
6158 case `pwd` in
6159 *\ * | *\ *)
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6161 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6162 esac
6163
6164
6165
6166 macro_version='2.4.7'
6167 macro_revision='2.4.7'
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 ltmain=$ac_aux_dir/ltmain.sh
6183
6184
6185
6186 # Make sure we can run config.sub.
6187 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6188 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6189
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6191 printf %s "checking build system type... " >&6; }
6192 if test ${ac_cv_build+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else case e in #(
6196 e) ac_build_alias=$build_alias
6197 test "x$ac_build_alias" = x &&
6198 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6199 test "x$ac_build_alias" = x &&
6200 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6201 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6202 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6203 ;;
6204 esac
6205 fi
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6207 printf "%s\n" "$ac_cv_build" >&6; }
6208 case $ac_cv_build in
6209 *-*-*) ;;
6210 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6211 esac
6212 build=$ac_cv_build
6213 ac_save_IFS=$IFS; IFS='-'
6214 set x $ac_cv_build
6215 shift
6216 build_cpu=$1
6217 build_vendor=$2
6218 shift; shift
6219 # Remember, the first character of IFS is used to create $*,
6220 # except with old shells:
6221 build_os=$*
6222 IFS=$ac_save_IFS
6223 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6224
6225
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6227 printf %s "checking host system type... " >&6; }
6228 if test ${ac_cv_host+y}
6229 then :
6230 printf %s "(cached) " >&6
6231 else case e in #(
6232 e) if test "x$host_alias" = x; then
6233 ac_cv_host=$ac_cv_build
6234 else
6235 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6236 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6237 fi
6238 ;;
6239 esac
6240 fi
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6242 printf "%s\n" "$ac_cv_host" >&6; }
6243 case $ac_cv_host in
6244 *-*-*) ;;
6245 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6246 esac
6247 host=$ac_cv_host
6248 ac_save_IFS=$IFS; IFS='-'
6249 set x $ac_cv_host
6250 shift
6251 host_cpu=$1
6252 host_vendor=$2
6253 shift; shift
6254 # Remember, the first character of IFS is used to create $*,
6255 # except with old shells:
6256 host_os=$*
6257 IFS=$ac_save_IFS
6258 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6259
6260
6261 # Backslashify metacharacters that are still active within
6262 # double-quoted strings.
6263 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6264
6265 # Same as above, but do not quote variable references.
6266 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6267
6268 # Sed substitution to delay expansion of an escaped shell variable in a
6269 # double_quote_subst'ed string.
6270 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6271
6272 # Sed substitution to delay expansion of an escaped single quote.
6273 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6274
6275 # Sed substitution to avoid accidental globbing in evaled expressions
6276 no_glob_subst='s/\*/\\\*/g'
6277
6278 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6279 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6281
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6283 printf %s "checking how to print strings... " >&6; }
6284 # Test print first, because it will be a builtin if present.
6285 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6286 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6287 ECHO='print -r --'
6288 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6289 ECHO='printf %s\n'
6290 else
6291 # Use this function as a fallback that always works.
6292 func_fallback_echo ()
6293 {
6294 eval 'cat <<_LTECHO_EOF
6295 $1
6296 _LTECHO_EOF'
6297 }
6298 ECHO='func_fallback_echo'
6299 fi
6300
6301 # func_echo_all arg...
6302 # Invoke $ECHO with all args, space-separated.
6303 func_echo_all ()
6304 {
6305 $ECHO ""
6306 }
6307
6308 case $ECHO in
6309 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6310 printf "%s\n" "printf" >&6; } ;;
6311 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6312 printf "%s\n" "print -r" >&6; } ;;
6313 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6314 printf "%s\n" "cat" >&6; } ;;
6315 esac
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6331 printf %s "checking for a sed that does not truncate output... " >&6; }
6332 if test ${ac_cv_path_SED+y}
6333 then :
6334 printf %s "(cached) " >&6
6335 else case e in #(
6336 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6337 for ac_i in 1 2 3 4 5 6 7; do
6338 ac_script="$ac_script$as_nl$ac_script"
6339 done
6340 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6341 { ac_script=; unset ac_script;}
6342 if test -z "$SED"; then
6343 ac_path_SED_found=false
6344 # Loop through the user's path and test for each of PROGNAME-LIST
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 case $as_dir in #(((
6350 '') as_dir=./ ;;
6351 */) ;;
6352 *) as_dir=$as_dir/ ;;
6353 esac
6354 for ac_prog in sed gsed
6355 do
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6358 as_fn_executable_p "$ac_path_SED" || continue
6359 # Check for GNU ac_path_SED and select it if it is found.
6360 # Check for GNU $ac_path_SED
6361 case `"$ac_path_SED" --version 2>&1` in #(
6362 *GNU*)
6363 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6364 #(
6365 *)
6366 ac_count=0
6367 printf %s 0123456789 >"conftest.in"
6368 while :
6369 do
6370 cat "conftest.in" "conftest.in" >"conftest.tmp"
6371 mv "conftest.tmp" "conftest.in"
6372 cp "conftest.in" "conftest.nl"
6373 printf "%s\n" '' >> "conftest.nl"
6374 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6376 as_fn_arith $ac_count + 1 && ac_count=$as_val
6377 if test $ac_count -gt ${ac_path_SED_max-0}; then
6378 # Best one so far, save it but keep looking for a better one
6379 ac_cv_path_SED="$ac_path_SED"
6380 ac_path_SED_max=$ac_count
6381 fi
6382 # 10*(2^10) chars as input seems more than enough
6383 test $ac_count -gt 10 && break
6384 done
6385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6386 esac
6387
6388 $ac_path_SED_found && break 3
6389 done
6390 done
6391 done
6392 IFS=$as_save_IFS
6393 if test -z "$ac_cv_path_SED"; then
6394 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6395 fi
6396 else
6397 ac_cv_path_SED=$SED
6398 fi
6399 ;;
6400 esac
6401 fi
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6403 printf "%s\n" "$ac_cv_path_SED" >&6; }
6404 SED="$ac_cv_path_SED"
6405 rm -f conftest.sed
6406
6407 test -z "$SED" && SED=sed
6408 Xsed="$SED -e 1s/^X//"
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6421 printf %s "checking for grep that handles long lines and -e... " >&6; }
6422 if test ${ac_cv_path_GREP+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else case e in #(
6426 e) if test -z "$GREP"; then
6427 ac_path_GREP_found=false
6428 # Loop through the user's path and test for each of PROGNAME-LIST
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6431 do
6432 IFS=$as_save_IFS
6433 case $as_dir in #(((
6434 '') as_dir=./ ;;
6435 */) ;;
6436 *) as_dir=$as_dir/ ;;
6437 esac
6438 for ac_prog in grep ggrep
6439 do
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6442 as_fn_executable_p "$ac_path_GREP" || continue
6443 # Check for GNU ac_path_GREP and select it if it is found.
6444 # Check for GNU $ac_path_GREP
6445 case `"$ac_path_GREP" --version 2>&1` in #(
6446 *GNU*)
6447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6448 #(
6449 *)
6450 ac_count=0
6451 printf %s 0123456789 >"conftest.in"
6452 while :
6453 do
6454 cat "conftest.in" "conftest.in" >"conftest.tmp"
6455 mv "conftest.tmp" "conftest.in"
6456 cp "conftest.in" "conftest.nl"
6457 printf "%s\n" 'GREP' >> "conftest.nl"
6458 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6460 as_fn_arith $ac_count + 1 && ac_count=$as_val
6461 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6462 # Best one so far, save it but keep looking for a better one
6463 ac_cv_path_GREP="$ac_path_GREP"
6464 ac_path_GREP_max=$ac_count
6465 fi
6466 # 10*(2^10) chars as input seems more than enough
6467 test $ac_count -gt 10 && break
6468 done
6469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6470 esac
6471
6472 $ac_path_GREP_found && break 3
6473 done
6474 done
6475 done
6476 IFS=$as_save_IFS
6477 if test -z "$ac_cv_path_GREP"; then
6478 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6479 fi
6480 else
6481 ac_cv_path_GREP=$GREP
6482 fi
6483 ;;
6484 esac
6485 fi
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6487 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6488 GREP="$ac_cv_path_GREP"
6489
6490
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6492 printf %s "checking for egrep... " >&6; }
6493 if test ${ac_cv_path_EGREP+y}
6494 then :
6495 printf %s "(cached) " >&6
6496 else case e in #(
6497 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6498 then ac_cv_path_EGREP="$GREP -E"
6499 else
6500 if test -z "$EGREP"; then
6501 ac_path_EGREP_found=false
6502 # Loop through the user's path and test for each of PROGNAME-LIST
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6505 do
6506 IFS=$as_save_IFS
6507 case $as_dir in #(((
6508 '') as_dir=./ ;;
6509 */) ;;
6510 *) as_dir=$as_dir/ ;;
6511 esac
6512 for ac_prog in egrep
6513 do
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6516 as_fn_executable_p "$ac_path_EGREP" || continue
6517 # Check for GNU ac_path_EGREP and select it if it is found.
6518 # Check for GNU $ac_path_EGREP
6519 case `"$ac_path_EGREP" --version 2>&1` in #(
6520 *GNU*)
6521 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6522 #(
6523 *)
6524 ac_count=0
6525 printf %s 0123456789 >"conftest.in"
6526 while :
6527 do
6528 cat "conftest.in" "conftest.in" >"conftest.tmp"
6529 mv "conftest.tmp" "conftest.in"
6530 cp "conftest.in" "conftest.nl"
6531 printf "%s\n" 'EGREP' >> "conftest.nl"
6532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6534 as_fn_arith $ac_count + 1 && ac_count=$as_val
6535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6536 # Best one so far, save it but keep looking for a better one
6537 ac_cv_path_EGREP="$ac_path_EGREP"
6538 ac_path_EGREP_max=$ac_count
6539 fi
6540 # 10*(2^10) chars as input seems more than enough
6541 test $ac_count -gt 10 && break
6542 done
6543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6544 esac
6545
6546 $ac_path_EGREP_found && break 3
6547 done
6548 done
6549 done
6550 IFS=$as_save_IFS
6551 if test -z "$ac_cv_path_EGREP"; then
6552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6553 fi
6554 else
6555 ac_cv_path_EGREP=$EGREP
6556 fi
6557
6558 fi ;;
6559 esac
6560 fi
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6562 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6563 EGREP="$ac_cv_path_EGREP"
6564
6565 EGREP_TRADITIONAL=$EGREP
6566 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6567
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6569 printf %s "checking for fgrep... " >&6; }
6570 if test ${ac_cv_path_FGREP+y}
6571 then :
6572 printf %s "(cached) " >&6
6573 else case e in #(
6574 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6575 then ac_cv_path_FGREP="$GREP -F"
6576 else
6577 if test -z "$FGREP"; then
6578 ac_path_FGREP_found=false
6579 # Loop through the user's path and test for each of PROGNAME-LIST
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6582 do
6583 IFS=$as_save_IFS
6584 case $as_dir in #(((
6585 '') as_dir=./ ;;
6586 */) ;;
6587 *) as_dir=$as_dir/ ;;
6588 esac
6589 for ac_prog in fgrep
6590 do
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6593 as_fn_executable_p "$ac_path_FGREP" || continue
6594 # Check for GNU ac_path_FGREP and select it if it is found.
6595 # Check for GNU $ac_path_FGREP
6596 case `"$ac_path_FGREP" --version 2>&1` in #(
6597 *GNU*)
6598 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6599 #(
6600 *)
6601 ac_count=0
6602 printf %s 0123456789 >"conftest.in"
6603 while :
6604 do
6605 cat "conftest.in" "conftest.in" >"conftest.tmp"
6606 mv "conftest.tmp" "conftest.in"
6607 cp "conftest.in" "conftest.nl"
6608 printf "%s\n" 'FGREP' >> "conftest.nl"
6609 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6611 as_fn_arith $ac_count + 1 && ac_count=$as_val
6612 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6613 # Best one so far, save it but keep looking for a better one
6614 ac_cv_path_FGREP="$ac_path_FGREP"
6615 ac_path_FGREP_max=$ac_count
6616 fi
6617 # 10*(2^10) chars as input seems more than enough
6618 test $ac_count -gt 10 && break
6619 done
6620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6621 esac
6622
6623 $ac_path_FGREP_found && break 3
6624 done
6625 done
6626 done
6627 IFS=$as_save_IFS
6628 if test -z "$ac_cv_path_FGREP"; then
6629 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6630 fi
6631 else
6632 ac_cv_path_FGREP=$FGREP
6633 fi
6634
6635 fi ;;
6636 esac
6637 fi
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6639 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6640 FGREP="$ac_cv_path_FGREP"
6641
6642
6643 test -z "$GREP" && GREP=grep
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663 # Check whether --with-gnu-ld was given.
6664 if test ${with_gnu_ld+y}
6665 then :
6666 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6667 else case e in #(
6668 e) with_gnu_ld=no ;;
6669 esac
6670 fi
6671
6672 ac_prog=ld
6673 if test yes = "$GCC"; then
6674 # Check if gcc -print-prog-name=ld gives a path.
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6676 printf %s "checking for ld used by $CC... " >&6; }
6677 case $host in
6678 *-*-mingw*)
6679 # gcc leaves a trailing carriage return, which upsets mingw
6680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6681 *)
6682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6683 esac
6684 case $ac_prog in
6685 # Accept absolute paths.
6686 [\\/]* | ?:[\\/]*)
6687 re_direlt='/[^/][^/]*/\.\./'
6688 # Canonicalize the pathname of ld
6689 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6690 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6691 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6692 done
6693 test -z "$LD" && LD=$ac_prog
6694 ;;
6695 "")
6696 # If it fails, then pretend we aren't using GCC.
6697 ac_prog=ld
6698 ;;
6699 *)
6700 # If it is relative, then search for the first ld in PATH.
6701 with_gnu_ld=unknown
6702 ;;
6703 esac
6704 elif test yes = "$with_gnu_ld"; then
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6706 printf %s "checking for GNU ld... " >&6; }
6707 else
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6709 printf %s "checking for non-GNU ld... " >&6; }
6710 fi
6711 if test ${lt_cv_path_LD+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else case e in #(
6715 e) if test -z "$LD"; then
6716 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6717 for ac_dir in $PATH; do
6718 IFS=$lt_save_ifs
6719 test -z "$ac_dir" && ac_dir=.
6720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6721 lt_cv_path_LD=$ac_dir/$ac_prog
6722 # Check to see if the program is GNU ld. I'd rather use --version,
6723 # but apparently some variants of GNU ld only accept -v.
6724 # Break only if it was the GNU/non-GNU ld that we prefer.
6725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6726 *GNU* | *'with BFD'*)
6727 test no != "$with_gnu_ld" && break
6728 ;;
6729 *)
6730 test yes != "$with_gnu_ld" && break
6731 ;;
6732 esac
6733 fi
6734 done
6735 IFS=$lt_save_ifs
6736 else
6737 lt_cv_path_LD=$LD # Let the user override the test with a path.
6738 fi ;;
6739 esac
6740 fi
6741
6742 LD=$lt_cv_path_LD
6743 if test -n "$LD"; then
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6745 printf "%s\n" "$LD" >&6; }
6746 else
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 printf "%s\n" "no" >&6; }
6749 fi
6750 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6752 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6753 if test ${lt_cv_prog_gnu_ld+y}
6754 then :
6755 printf %s "(cached) " >&6
6756 else case e in #(
6757 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6758 case `$LD -v 2>&1 </dev/null` in
6759 *GNU* | *'with BFD'*)
6760 lt_cv_prog_gnu_ld=yes
6761 ;;
6762 *)
6763 lt_cv_prog_gnu_ld=no
6764 ;;
6765 esac ;;
6766 esac
6767 fi
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6769 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6770 with_gnu_ld=$lt_cv_prog_gnu_ld
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6781 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6782 if test ${lt_cv_path_NM+y}
6783 then :
6784 printf %s "(cached) " >&6
6785 else case e in #(
6786 e) if test -n "$NM"; then
6787 # Let the user override the test.
6788 lt_cv_path_NM=$NM
6789 else
6790 lt_nm_to_check=${ac_tool_prefix}nm
6791 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6792 lt_nm_to_check="$lt_nm_to_check nm"
6793 fi
6794 for lt_tmp_nm in $lt_nm_to_check; do
6795 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6796 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6797 IFS=$lt_save_ifs
6798 test -z "$ac_dir" && ac_dir=.
6799 tmp_nm=$ac_dir/$lt_tmp_nm
6800 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6801 # Check to see if the nm accepts a BSD-compat flag.
6802 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6803 # nm: unknown option "B" ignored
6804 # Tru64's nm complains that /dev/null is an invalid object file
6805 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6806 case $build_os in
6807 mingw*) lt_bad_file=conftest.nm/nofile ;;
6808 *) lt_bad_file=/dev/null ;;
6809 esac
6810 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6811 *$lt_bad_file* | *'Invalid file or object type'*)
6812 lt_cv_path_NM="$tmp_nm -B"
6813 break 2
6814 ;;
6815 *)
6816 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6817 */dev/null*)
6818 lt_cv_path_NM="$tmp_nm -p"
6819 break 2
6820 ;;
6821 *)
6822 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6823 continue # so that we can try to find one that supports BSD flags
6824 ;;
6825 esac
6826 ;;
6827 esac
6828 fi
6829 done
6830 IFS=$lt_save_ifs
6831 done
6832 : ${lt_cv_path_NM=no}
6833 fi ;;
6834 esac
6835 fi
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6837 printf "%s\n" "$lt_cv_path_NM" >&6; }
6838 if test no != "$lt_cv_path_NM"; then
6839 NM=$lt_cv_path_NM
6840 else
6841 # Didn't find any BSD compatible name lister, look for dumpbin.
6842 if test -n "$DUMPBIN"; then :
6843 # Let the user override the test.
6844 else
6845 if test -n "$ac_tool_prefix"; then
6846 for ac_prog in dumpbin "link -dump"
6847 do
6848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 printf %s "checking for $ac_word... " >&6; }
6852 if test ${ac_cv_prog_DUMPBIN+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) if test -n "$DUMPBIN"; then
6857 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 case $as_dir in #(((
6864 '') as_dir=./ ;;
6865 */) ;;
6866 *) as_dir=$as_dir/ ;;
6867 esac
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi ;;
6879 esac
6880 fi
6881 DUMPBIN=$ac_cv_prog_DUMPBIN
6882 if test -n "$DUMPBIN"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6884 printf "%s\n" "$DUMPBIN" >&6; }
6885 else
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 printf "%s\n" "no" >&6; }
6888 fi
6889
6890
6891 test -n "$DUMPBIN" && break
6892 done
6893 fi
6894 if test -z "$DUMPBIN"; then
6895 ac_ct_DUMPBIN=$DUMPBIN
6896 for ac_prog in dumpbin "link -dump"
6897 do
6898 # Extract the first word of "$ac_prog", so it can be a program name with args.
6899 set dummy $ac_prog; ac_word=$2
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 printf %s "checking for $ac_word... " >&6; }
6902 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6903 then :
6904 printf %s "(cached) " >&6
6905 else case e in #(
6906 e) if test -n "$ac_ct_DUMPBIN"; then
6907 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 case $as_dir in #(((
6914 '') as_dir=./ ;;
6915 */) ;;
6916 *) as_dir=$as_dir/ ;;
6917 esac
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi ;;
6929 esac
6930 fi
6931 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6932 if test -n "$ac_ct_DUMPBIN"; then
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6934 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6935 else
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 printf "%s\n" "no" >&6; }
6938 fi
6939
6940
6941 test -n "$ac_ct_DUMPBIN" && break
6942 done
6943
6944 if test "x$ac_ct_DUMPBIN" = x; then
6945 DUMPBIN=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 DUMPBIN=$ac_ct_DUMPBIN
6954 fi
6955 fi
6956
6957 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6958 *COFF*)
6959 DUMPBIN="$DUMPBIN -symbols -headers"
6960 ;;
6961 *)
6962 DUMPBIN=:
6963 ;;
6964 esac
6965 fi
6966
6967 if test : != "$DUMPBIN"; then
6968 NM=$DUMPBIN
6969 fi
6970 fi
6971 test -z "$NM" && NM=nm
6972
6973
6974
6975
6976
6977
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6979 printf %s "checking the name lister ($NM) interface... " >&6; }
6980 if test ${lt_cv_nm_interface+y}
6981 then :
6982 printf %s "(cached) " >&6
6983 else case e in #(
6984 e) lt_cv_nm_interface="BSD nm"
6985 echo "int some_variable = 0;" > conftest.$ac_ext
6986 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6987 (eval "$ac_compile" 2>conftest.err)
6988 cat conftest.err >&5
6989 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6990 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6991 cat conftest.err >&5
6992 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6993 cat conftest.out >&5
6994 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6995 lt_cv_nm_interface="MS dumpbin"
6996 fi
6997 rm -f conftest* ;;
6998 esac
6999 fi
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7001 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7002
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7004 printf %s "checking whether ln -s works... " >&6; }
7005 LN_S=$as_ln_s
7006 if test "$LN_S" = "ln -s"; then
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7008 printf "%s\n" "yes" >&6; }
7009 else
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7011 printf "%s\n" "no, using $LN_S" >&6; }
7012 fi
7013
7014 # find the maximum length of command line arguments
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7016 printf %s "checking the maximum length of command line arguments... " >&6; }
7017 if test ${lt_cv_sys_max_cmd_len+y}
7018 then :
7019 printf %s "(cached) " >&6
7020 else case e in #(
7021 e) i=0
7022 teststring=ABCD
7023
7024 case $build_os in
7025 msdosdjgpp*)
7026 # On DJGPP, this test can blow up pretty badly due to problems in libc
7027 # (any single argument exceeding 2000 bytes causes a buffer overrun
7028 # during glob expansion). Even if it were fixed, the result of this
7029 # check would be larger than it should be.
7030 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7031 ;;
7032
7033 gnu*)
7034 # Under GNU Hurd, this test is not required because there is
7035 # no limit to the length of command line arguments.
7036 # Libtool will interpret -1 as no limit whatsoever
7037 lt_cv_sys_max_cmd_len=-1;
7038 ;;
7039
7040 cygwin* | mingw* | cegcc*)
7041 # On Win9x/ME, this test blows up -- it succeeds, but takes
7042 # about 5 minutes as the teststring grows exponentially.
7043 # Worse, since 9x/ME are not pre-emptively multitasking,
7044 # you end up with a "frozen" computer, even though with patience
7045 # the test eventually succeeds (with a max line length of 256k).
7046 # Instead, let's just punt: use the minimum linelength reported by
7047 # all of the supported platforms: 8192 (on NT/2K/XP).
7048 lt_cv_sys_max_cmd_len=8192;
7049 ;;
7050
7051 mint*)
7052 # On MiNT this can take a long time and run out of memory.
7053 lt_cv_sys_max_cmd_len=8192;
7054 ;;
7055
7056 amigaos*)
7057 # On AmigaOS with pdksh, this test takes hours, literally.
7058 # So we just punt and use a minimum line length of 8192.
7059 lt_cv_sys_max_cmd_len=8192;
7060 ;;
7061
7062 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7063 # This has been around since 386BSD, at least. Likely further.
7064 if test -x /sbin/sysctl; then
7065 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7066 elif test -x /usr/sbin/sysctl; then
7067 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7068 else
7069 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7070 fi
7071 # And add a safety zone
7072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7074 ;;
7075
7076 interix*)
7077 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7078 lt_cv_sys_max_cmd_len=196608
7079 ;;
7080
7081 os2*)
7082 # The test takes a long time on OS/2.
7083 lt_cv_sys_max_cmd_len=8192
7084 ;;
7085
7086 osf*)
7087 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7088 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7089 # nice to cause kernel panics so lets avoid the loop below.
7090 # First set a reasonable default.
7091 lt_cv_sys_max_cmd_len=16384
7092 #
7093 if test -x /sbin/sysconfig; then
7094 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7095 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7096 esac
7097 fi
7098 ;;
7099 sco3.2v5*)
7100 lt_cv_sys_max_cmd_len=102400
7101 ;;
7102 sysv5* | sco5v6* | sysv4.2uw2*)
7103 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7104 if test -n "$kargmax"; then
7105 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7106 else
7107 lt_cv_sys_max_cmd_len=32768
7108 fi
7109 ;;
7110 *)
7111 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7112 if test -n "$lt_cv_sys_max_cmd_len" && \
7113 test undefined != "$lt_cv_sys_max_cmd_len"; then
7114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7116 else
7117 # Make teststring a little bigger before we do anything with it.
7118 # a 1K string should be a reasonable start.
7119 for i in 1 2 3 4 5 6 7 8; do
7120 teststring=$teststring$teststring
7121 done
7122 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7123 # If test is not a shell built-in, we'll probably end up computing a
7124 # maximum length that is only half of the actual maximum length, but
7125 # we can't tell.
7126 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7127 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7128 test 17 != "$i" # 1/2 MB should be enough
7129 do
7130 i=`expr $i + 1`
7131 teststring=$teststring$teststring
7132 done
7133 # Only check the string length outside the loop.
7134 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7135 teststring=
7136 # Add a significant safety factor because C++ compilers can tack on
7137 # massive amounts of additional arguments before passing them to the
7138 # linker. It appears as though 1/2 is a usable value.
7139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7140 fi
7141 ;;
7142 esac
7143 ;;
7144 esac
7145 fi
7146
7147 if test -n "$lt_cv_sys_max_cmd_len"; then
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7149 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7150 else
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7152 printf "%s\n" "none" >&6; }
7153 fi
7154 max_cmd_len=$lt_cv_sys_max_cmd_len
7155
7156
7157
7158
7159
7160
7161 : ${CP="cp -f"}
7162 : ${MV="mv -f"}
7163 : ${RM="rm -f"}
7164
7165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7166 lt_unset=unset
7167 else
7168 lt_unset=false
7169 fi
7170
7171
7172
7173
7174
7175 # test EBCDIC or ASCII
7176 case `echo X|tr X '\101'` in
7177 A) # ASCII based system
7178 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7179 lt_SP2NL='tr \040 \012'
7180 lt_NL2SP='tr \015\012 \040\040'
7181 ;;
7182 *) # EBCDIC based system
7183 lt_SP2NL='tr \100 \n'
7184 lt_NL2SP='tr \r\n \100\100'
7185 ;;
7186 esac
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7197 printf %s "checking how to convert $build file names to $host format... " >&6; }
7198 if test ${lt_cv_to_host_file_cmd+y}
7199 then :
7200 printf %s "(cached) " >&6
7201 else case e in #(
7202 e) case $host in
7203 *-*-mingw* )
7204 case $build in
7205 *-*-mingw* ) # actually msys
7206 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7207 ;;
7208 *-*-cygwin* )
7209 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7210 ;;
7211 * ) # otherwise, assume *nix
7212 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7213 ;;
7214 esac
7215 ;;
7216 *-*-cygwin* )
7217 case $build in
7218 *-*-mingw* ) # actually msys
7219 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7220 ;;
7221 *-*-cygwin* )
7222 lt_cv_to_host_file_cmd=func_convert_file_noop
7223 ;;
7224 * ) # otherwise, assume *nix
7225 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7226 ;;
7227 esac
7228 ;;
7229 * ) # unhandled hosts (and "normal" native builds)
7230 lt_cv_to_host_file_cmd=func_convert_file_noop
7231 ;;
7232 esac
7233 ;;
7234 esac
7235 fi
7236
7237 to_host_file_cmd=$lt_cv_to_host_file_cmd
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7239 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7240
7241
7242
7243
7244
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7246 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7247 if test ${lt_cv_to_tool_file_cmd+y}
7248 then :
7249 printf %s "(cached) " >&6
7250 else case e in #(
7251 e) #assume ordinary cross tools, or native build.
7252 lt_cv_to_tool_file_cmd=func_convert_file_noop
7253 case $host in
7254 *-*-mingw* )
7255 case $build in
7256 *-*-mingw* ) # actually msys
7257 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7258 ;;
7259 esac
7260 ;;
7261 esac
7262 ;;
7263 esac
7264 fi
7265
7266 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7268 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7269
7270
7271
7272
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7275 printf %s "checking for $LD option to reload object files... " >&6; }
7276 if test ${lt_cv_ld_reload_flag+y}
7277 then :
7278 printf %s "(cached) " >&6
7279 else case e in #(
7280 e) lt_cv_ld_reload_flag='-r' ;;
7281 esac
7282 fi
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7284 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7285 reload_flag=$lt_cv_ld_reload_flag
7286 case $reload_flag in
7287 "" | " "*) ;;
7288 *) reload_flag=" $reload_flag" ;;
7289 esac
7290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7291 case $host_os in
7292 cygwin* | mingw* | pw32* | cegcc*)
7293 if test yes != "$GCC"; then
7294 reload_cmds=false
7295 fi
7296 ;;
7297 darwin*)
7298 if test yes = "$GCC"; then
7299 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7300 else
7301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7302 fi
7303 ;;
7304 esac
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}file; ac_word=$2
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 printf %s "checking for $ac_word... " >&6; }
7319 if test ${ac_cv_prog_FILECMD+y}
7320 then :
7321 printf %s "(cached) " >&6
7322 else case e in #(
7323 e) if test -n "$FILECMD"; then
7324 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329 IFS=$as_save_IFS
7330 case $as_dir in #(((
7331 '') as_dir=./ ;;
7332 */) ;;
7333 *) as_dir=$as_dir/ ;;
7334 esac
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi ;;
7346 esac
7347 fi
7348 FILECMD=$ac_cv_prog_FILECMD
7349 if test -n "$FILECMD"; then
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7351 printf "%s\n" "$FILECMD" >&6; }
7352 else
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 printf "%s\n" "no" >&6; }
7355 fi
7356
7357
7358 fi
7359 if test -z "$ac_cv_prog_FILECMD"; then
7360 ac_ct_FILECMD=$FILECMD
7361 # Extract the first word of "file", so it can be a program name with args.
7362 set dummy file; ac_word=$2
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 printf %s "checking for $ac_word... " >&6; }
7365 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7366 then :
7367 printf %s "(cached) " >&6
7368 else case e in #(
7369 e) if test -n "$ac_ct_FILECMD"; then
7370 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375 IFS=$as_save_IFS
7376 case $as_dir in #(((
7377 '') as_dir=./ ;;
7378 */) ;;
7379 *) as_dir=$as_dir/ ;;
7380 esac
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_ac_ct_FILECMD="file"
7384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7385 break 2
7386 fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391 fi ;;
7392 esac
7393 fi
7394 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7395 if test -n "$ac_ct_FILECMD"; then
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7397 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7398 else
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 printf "%s\n" "no" >&6; }
7401 fi
7402
7403 if test "x$ac_ct_FILECMD" = x; then
7404 FILECMD=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7411 esac
7412 FILECMD=$ac_ct_FILECMD
7413 fi
7414 else
7415 FILECMD="$ac_cv_prog_FILECMD"
7416 fi
7417
7418
7419
7420
7421
7422
7423
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 printf %s "checking for $ac_word... " >&6; }
7429 if test ${ac_cv_prog_OBJDUMP+y}
7430 then :
7431 printf %s "(cached) " >&6
7432 else case e in #(
7433 e) if test -n "$OBJDUMP"; then
7434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 case $as_dir in #(((
7441 '') as_dir=./ ;;
7442 */) ;;
7443 *) as_dir=$as_dir/ ;;
7444 esac
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi ;;
7456 esac
7457 fi
7458 OBJDUMP=$ac_cv_prog_OBJDUMP
7459 if test -n "$OBJDUMP"; then
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7461 printf "%s\n" "$OBJDUMP" >&6; }
7462 else
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 printf "%s\n" "no" >&6; }
7465 fi
7466
7467
7468 fi
7469 if test -z "$ac_cv_prog_OBJDUMP"; then
7470 ac_ct_OBJDUMP=$OBJDUMP
7471 # Extract the first word of "objdump", so it can be a program name with args.
7472 set dummy objdump; ac_word=$2
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 printf %s "checking for $ac_word... " >&6; }
7475 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7476 then :
7477 printf %s "(cached) " >&6
7478 else case e in #(
7479 e) if test -n "$ac_ct_OBJDUMP"; then
7480 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485 IFS=$as_save_IFS
7486 case $as_dir in #(((
7487 '') as_dir=./ ;;
7488 */) ;;
7489 *) as_dir=$as_dir/ ;;
7490 esac
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501 fi ;;
7502 esac
7503 fi
7504 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7505 if test -n "$ac_ct_OBJDUMP"; then
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7507 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7508 else
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 printf "%s\n" "no" >&6; }
7511 fi
7512
7513 if test "x$ac_ct_OBJDUMP" = x; then
7514 OBJDUMP="false"
7515 else
7516 case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522 OBJDUMP=$ac_ct_OBJDUMP
7523 fi
7524 else
7525 OBJDUMP="$ac_cv_prog_OBJDUMP"
7526 fi
7527
7528 test -z "$OBJDUMP" && OBJDUMP=objdump
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7539 printf %s "checking how to recognize dependent libraries... " >&6; }
7540 if test ${lt_cv_deplibs_check_method+y}
7541 then :
7542 printf %s "(cached) " >&6
7543 else case e in #(
7544 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7545 lt_cv_file_magic_test_file=
7546 lt_cv_deplibs_check_method='unknown'
7547 # Need to set the preceding variable on all platforms that support
7548 # interlibrary dependencies.
7549 # 'none' -- dependencies not supported.
7550 # 'unknown' -- same as none, but documents that we really don't know.
7551 # 'pass_all' -- all dependencies passed with no checks.
7552 # 'test_compile' -- check by making test program.
7553 # 'file_magic [[regex]]' -- check by looking for files in library path
7554 # that responds to the $file_magic_cmd with a given extended regex.
7555 # If you have 'file' or equivalent on your system and you're not sure
7556 # whether 'pass_all' will *always* work, you probably want this one.
7557
7558 case $host_os in
7559 aix[4-9]*)
7560 lt_cv_deplibs_check_method=pass_all
7561 ;;
7562
7563 beos*)
7564 lt_cv_deplibs_check_method=pass_all
7565 ;;
7566
7567 bsdi[45]*)
7568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7569 lt_cv_file_magic_cmd='$FILECMD -L'
7570 lt_cv_file_magic_test_file=/shlib/libc.so
7571 ;;
7572
7573 cygwin*)
7574 # func_win32_libid is a shell function defined in ltmain.sh
7575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7576 lt_cv_file_magic_cmd='func_win32_libid'
7577 ;;
7578
7579 mingw* | pw32*)
7580 # Base MSYS/MinGW do not provide the 'file' command needed by
7581 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7582 # unless we find 'file', for example because we are cross-compiling.
7583 if ( file / ) >/dev/null 2>&1; then
7584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7585 lt_cv_file_magic_cmd='func_win32_libid'
7586 else
7587 # Keep this pattern in sync with the one in func_win32_libid.
7588 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7589 lt_cv_file_magic_cmd='$OBJDUMP -f'
7590 fi
7591 ;;
7592
7593 cegcc*)
7594 # use the weaker test based on 'objdump'. See mingw*.
7595 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7596 lt_cv_file_magic_cmd='$OBJDUMP -f'
7597 ;;
7598
7599 darwin* | rhapsody*)
7600 lt_cv_deplibs_check_method=pass_all
7601 ;;
7602
7603 freebsd* | dragonfly* | midnightbsd*)
7604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7605 case $host_cpu in
7606 i*86 )
7607 # Not sure whether the presence of OpenBSD here was a mistake.
7608 # Let's accept both of them until this is cleared up.
7609 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7610 lt_cv_file_magic_cmd=$FILECMD
7611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7612 ;;
7613 esac
7614 else
7615 lt_cv_deplibs_check_method=pass_all
7616 fi
7617 ;;
7618
7619 haiku*)
7620 lt_cv_deplibs_check_method=pass_all
7621 ;;
7622
7623 hpux10.20* | hpux11*)
7624 lt_cv_file_magic_cmd=$FILECMD
7625 case $host_cpu in
7626 ia64*)
7627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7628 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7629 ;;
7630 hppa*64*)
7631 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]'
7632 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7633 ;;
7634 *)
7635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7637 ;;
7638 esac
7639 ;;
7640
7641 interix[3-9]*)
7642 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7644 ;;
7645
7646 irix5* | irix6* | nonstopux*)
7647 case $LD in
7648 *-32|*"-32 ") libmagic=32-bit;;
7649 *-n32|*"-n32 ") libmagic=N32;;
7650 *-64|*"-64 ") libmagic=64-bit;;
7651 *) libmagic=never-match;;
7652 esac
7653 lt_cv_deplibs_check_method=pass_all
7654 ;;
7655
7656 # This must be glibc/ELF.
7657 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7658 lt_cv_deplibs_check_method=pass_all
7659 ;;
7660
7661 netbsd*)
7662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7664 else
7665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7666 fi
7667 ;;
7668
7669 newos6*)
7670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7671 lt_cv_file_magic_cmd=$FILECMD
7672 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7673 ;;
7674
7675 *nto* | *qnx*)
7676 lt_cv_deplibs_check_method=pass_all
7677 ;;
7678
7679 openbsd* | bitrig*)
7680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7682 else
7683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7684 fi
7685 ;;
7686
7687 osf3* | osf4* | osf5*)
7688 lt_cv_deplibs_check_method=pass_all
7689 ;;
7690
7691 rdos*)
7692 lt_cv_deplibs_check_method=pass_all
7693 ;;
7694
7695 solaris*)
7696 lt_cv_deplibs_check_method=pass_all
7697 ;;
7698
7699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7700 lt_cv_deplibs_check_method=pass_all
7701 ;;
7702
7703 sysv4 | sysv4.3*)
7704 case $host_vendor in
7705 motorola)
7706 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]'
7707 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7708 ;;
7709 ncr)
7710 lt_cv_deplibs_check_method=pass_all
7711 ;;
7712 sequent)
7713 lt_cv_file_magic_cmd='/bin/file'
7714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7715 ;;
7716 sni)
7717 lt_cv_file_magic_cmd='/bin/file'
7718 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7719 lt_cv_file_magic_test_file=/lib/libc.so
7720 ;;
7721 siemens)
7722 lt_cv_deplibs_check_method=pass_all
7723 ;;
7724 pc)
7725 lt_cv_deplibs_check_method=pass_all
7726 ;;
7727 esac
7728 ;;
7729
7730 tpf*)
7731 lt_cv_deplibs_check_method=pass_all
7732 ;;
7733 os2*)
7734 lt_cv_deplibs_check_method=pass_all
7735 ;;
7736 esac
7737 ;;
7738 esac
7739 fi
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7741 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7742
7743 file_magic_glob=
7744 want_nocaseglob=no
7745 if test "$build" = "$host"; then
7746 case $host_os in
7747 mingw* | pw32*)
7748 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7749 want_nocaseglob=yes
7750 else
7751 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7752 fi
7753 ;;
7754 esac
7755 fi
7756
7757 file_magic_cmd=$lt_cv_file_magic_cmd
7758 deplibs_check_method=$lt_cv_deplibs_check_method
7759 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782 if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 printf %s "checking for $ac_word... " >&6; }
7787 if test ${ac_cv_prog_DLLTOOL+y}
7788 then :
7789 printf %s "(cached) " >&6
7790 else case e in #(
7791 e) if test -n "$DLLTOOL"; then
7792 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797 IFS=$as_save_IFS
7798 case $as_dir in #(((
7799 '') as_dir=./ ;;
7800 */) ;;
7801 *) as_dir=$as_dir/ ;;
7802 esac
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi ;;
7814 esac
7815 fi
7816 DLLTOOL=$ac_cv_prog_DLLTOOL
7817 if test -n "$DLLTOOL"; then
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7819 printf "%s\n" "$DLLTOOL" >&6; }
7820 else
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 printf "%s\n" "no" >&6; }
7823 fi
7824
7825
7826 fi
7827 if test -z "$ac_cv_prog_DLLTOOL"; then
7828 ac_ct_DLLTOOL=$DLLTOOL
7829 # Extract the first word of "dlltool", so it can be a program name with args.
7830 set dummy dlltool; ac_word=$2
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 printf %s "checking for $ac_word... " >&6; }
7833 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else case e in #(
7837 e) if test -n "$ac_ct_DLLTOOL"; then
7838 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 case $as_dir in #(((
7845 '') as_dir=./ ;;
7846 */) ;;
7847 *) as_dir=$as_dir/ ;;
7848 esac
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859 fi ;;
7860 esac
7861 fi
7862 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7863 if test -n "$ac_ct_DLLTOOL"; then
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7865 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7866 else
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 printf "%s\n" "no" >&6; }
7869 fi
7870
7871 if test "x$ac_ct_DLLTOOL" = x; then
7872 DLLTOOL="false"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7879 esac
7880 DLLTOOL=$ac_ct_DLLTOOL
7881 fi
7882 else
7883 DLLTOOL="$ac_cv_prog_DLLTOOL"
7884 fi
7885
7886 test -z "$DLLTOOL" && DLLTOOL=dlltool
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7898 printf %s "checking how to associate runtime and link libraries... " >&6; }
7899 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else case e in #(
7903 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7904
7905 case $host_os in
7906 cygwin* | mingw* | pw32* | cegcc*)
7907 # two different shell functions defined in ltmain.sh;
7908 # decide which one to use based on capabilities of $DLLTOOL
7909 case `$DLLTOOL --help 2>&1` in
7910 *--identify-strict*)
7911 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7912 ;;
7913 *)
7914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7915 ;;
7916 esac
7917 ;;
7918 *)
7919 # fallback: assume linklib IS sharedlib
7920 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7921 ;;
7922 esac
7923 ;;
7924 esac
7925 fi
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7927 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7928 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7929 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7930
7931
7932
7933
7934
7935
7936
7937
7938 if test -n "$ac_tool_prefix"; then
7939 for ac_prog in ar
7940 do
7941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 printf %s "checking for $ac_word... " >&6; }
7945 if test ${ac_cv_prog_AR+y}
7946 then :
7947 printf %s "(cached) " >&6
7948 else case e in #(
7949 e) if test -n "$AR"; then
7950 ac_cv_prog_AR="$AR" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 case $as_dir in #(((
7957 '') as_dir=./ ;;
7958 */) ;;
7959 *) as_dir=$as_dir/ ;;
7960 esac
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967 done
7968 done
7969 IFS=$as_save_IFS
7970
7971 fi ;;
7972 esac
7973 fi
7974 AR=$ac_cv_prog_AR
7975 if test -n "$AR"; then
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7977 printf "%s\n" "$AR" >&6; }
7978 else
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 printf "%s\n" "no" >&6; }
7981 fi
7982
7983
7984 test -n "$AR" && break
7985 done
7986 fi
7987 if test -z "$AR"; then
7988 ac_ct_AR=$AR
7989 for ac_prog in ar
7990 do
7991 # Extract the first word of "$ac_prog", so it can be a program name with args.
7992 set dummy $ac_prog; ac_word=$2
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 printf %s "checking for $ac_word... " >&6; }
7995 if test ${ac_cv_prog_ac_ct_AR+y}
7996 then :
7997 printf %s "(cached) " >&6
7998 else case e in #(
7999 e) if test -n "$ac_ct_AR"; then
8000 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 case $as_dir in #(((
8007 '') as_dir=./ ;;
8008 */) ;;
8009 *) as_dir=$as_dir/ ;;
8010 esac
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_ac_ct_AR="$ac_prog"
8014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021 fi ;;
8022 esac
8023 fi
8024 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8025 if test -n "$ac_ct_AR"; then
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8027 printf "%s\n" "$ac_ct_AR" >&6; }
8028 else
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 printf "%s\n" "no" >&6; }
8031 fi
8032
8033
8034 test -n "$ac_ct_AR" && break
8035 done
8036
8037 if test "x$ac_ct_AR" = x; then
8038 AR="false"
8039 else
8040 case $cross_compiling:$ac_tool_warned in
8041 yes:)
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044 ac_tool_warned=yes ;;
8045 esac
8046 AR=$ac_ct_AR
8047 fi
8048 fi
8049
8050 : ${AR=ar}
8051
8052
8053
8054
8055
8056
8057 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8058 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8059 # higher priority because thats what people were doing historically (setting
8060 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8061 # variable obsoleted/removed.
8062
8063 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8064 lt_ar_flags=$AR_FLAGS
8065
8066
8067
8068
8069
8070
8071 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8072 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8073
8074
8075
8076
8077
8078
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8080 printf %s "checking for archiver @FILE support... " >&6; }
8081 if test ${lt_cv_ar_at_file+y}
8082 then :
8083 printf %s "(cached) " >&6
8084 else case e in #(
8085 e) lt_cv_ar_at_file=no
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088
8089 int
8090 main (void)
8091 {
8092
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 if ac_fn_cxx_try_compile "$LINENO"
8098 then :
8099 echo conftest.$ac_objext > conftest.lst
8100 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8102 (eval $lt_ar_try) 2>&5
8103 ac_status=$?
8104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8105 test $ac_status = 0; }
8106 if test 0 -eq "$ac_status"; then
8107 # Ensure the archiver fails upon bogus file names.
8108 rm -f conftest.$ac_objext libconftest.a
8109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8110 (eval $lt_ar_try) 2>&5
8111 ac_status=$?
8112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8113 test $ac_status = 0; }
8114 if test 0 -ne "$ac_status"; then
8115 lt_cv_ar_at_file=@
8116 fi
8117 fi
8118 rm -f conftest.* libconftest.a
8119
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8122 ;;
8123 esac
8124 fi
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8126 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8127
8128 if test no = "$lt_cv_ar_at_file"; then
8129 archiver_list_spec=
8130 else
8131 archiver_list_spec=$lt_cv_ar_at_file
8132 fi
8133
8134
8135
8136
8137
8138
8139
8140 if test -n "$ac_tool_prefix"; then
8141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8142 set dummy ${ac_tool_prefix}strip; ac_word=$2
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 printf %s "checking for $ac_word... " >&6; }
8145 if test ${ac_cv_prog_STRIP+y}
8146 then :
8147 printf %s "(cached) " >&6
8148 else case e in #(
8149 e) if test -n "$STRIP"; then
8150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155 IFS=$as_save_IFS
8156 case $as_dir in #(((
8157 '') as_dir=./ ;;
8158 */) ;;
8159 *) as_dir=$as_dir/ ;;
8160 esac
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171 fi ;;
8172 esac
8173 fi
8174 STRIP=$ac_cv_prog_STRIP
8175 if test -n "$STRIP"; then
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8177 printf "%s\n" "$STRIP" >&6; }
8178 else
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 printf "%s\n" "no" >&6; }
8181 fi
8182
8183
8184 fi
8185 if test -z "$ac_cv_prog_STRIP"; then
8186 ac_ct_STRIP=$STRIP
8187 # Extract the first word of "strip", so it can be a program name with args.
8188 set dummy strip; ac_word=$2
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 printf %s "checking for $ac_word... " >&6; }
8191 if test ${ac_cv_prog_ac_ct_STRIP+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else case e in #(
8195 e) if test -n "$ac_ct_STRIP"; then
8196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 case $as_dir in #(((
8203 '') as_dir=./ ;;
8204 */) ;;
8205 *) as_dir=$as_dir/ ;;
8206 esac
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_ac_ct_STRIP="strip"
8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217 fi ;;
8218 esac
8219 fi
8220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8221 if test -n "$ac_ct_STRIP"; then
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8223 printf "%s\n" "$ac_ct_STRIP" >&6; }
8224 else
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 printf "%s\n" "no" >&6; }
8227 fi
8228
8229 if test "x$ac_ct_STRIP" = x; then
8230 STRIP=":"
8231 else
8232 case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238 STRIP=$ac_ct_STRIP
8239 fi
8240 else
8241 STRIP="$ac_cv_prog_STRIP"
8242 fi
8243
8244 test -z "$STRIP" && STRIP=:
8245
8246
8247
8248
8249
8250
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 printf %s "checking for $ac_word... " >&6; }
8256 if test ${ac_cv_prog_RANLIB+y}
8257 then :
8258 printf %s "(cached) " >&6
8259 else case e in #(
8260 e) if test -n "$RANLIB"; then
8261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266 IFS=$as_save_IFS
8267 case $as_dir in #(((
8268 '') as_dir=./ ;;
8269 */) ;;
8270 *) as_dir=$as_dir/ ;;
8271 esac
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282 fi ;;
8283 esac
8284 fi
8285 RANLIB=$ac_cv_prog_RANLIB
8286 if test -n "$RANLIB"; then
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8288 printf "%s\n" "$RANLIB" >&6; }
8289 else
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 printf "%s\n" "no" >&6; }
8292 fi
8293
8294
8295 fi
8296 if test -z "$ac_cv_prog_RANLIB"; then
8297 ac_ct_RANLIB=$RANLIB
8298 # Extract the first word of "ranlib", so it can be a program name with args.
8299 set dummy ranlib; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8303 then :
8304 printf %s "(cached) " >&6
8305 else case e in #(
8306 e) if test -n "$ac_ct_RANLIB"; then
8307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 case $as_dir in #(((
8314 '') as_dir=./ ;;
8315 */) ;;
8316 *) as_dir=$as_dir/ ;;
8317 esac
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_ac_ct_RANLIB="ranlib"
8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi ;;
8329 esac
8330 fi
8331 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8332 if test -n "$ac_ct_RANLIB"; then
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8334 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8335 else
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 printf "%s\n" "no" >&6; }
8338 fi
8339
8340 if test "x$ac_ct_RANLIB" = x; then
8341 RANLIB=":"
8342 else
8343 case $cross_compiling:$ac_tool_warned in
8344 yes:)
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349 RANLIB=$ac_ct_RANLIB
8350 fi
8351 else
8352 RANLIB="$ac_cv_prog_RANLIB"
8353 fi
8354
8355 test -z "$RANLIB" && RANLIB=:
8356
8357
8358
8359
8360
8361
8362 # Determine commands to create old-style static archives.
8363 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8364 old_postinstall_cmds='chmod 644 $oldlib'
8365 old_postuninstall_cmds=
8366
8367 if test -n "$RANLIB"; then
8368 case $host_os in
8369 bitrig* | openbsd*)
8370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8371 ;;
8372 *)
8373 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8374 ;;
8375 esac
8376 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8377 fi
8378
8379 case $host_os in
8380 darwin*)
8381 lock_old_archive_extraction=yes ;;
8382 *)
8383 lock_old_archive_extraction=no ;;
8384 esac
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 # If no C compiler was specified, use CC.
8425 LTCC=${LTCC-"$CC"}
8426
8427 # If no C compiler flags were specified, use CFLAGS.
8428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8429
8430 # Allow CC to be a program name with arguments.
8431 compiler=$CC
8432
8433
8434 # Check for command to grab the raw symbol name followed by C symbol from nm.
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8436 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8437 if test ${lt_cv_sys_global_symbol_pipe+y}
8438 then :
8439 printf %s "(cached) " >&6
8440 else case e in #(
8441 e)
8442 # These are sane defaults that work on at least a few old systems.
8443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8444
8445 # Character class describing NM global symbol codes.
8446 symcode='[BCDEGRST]'
8447
8448 # Regexp to match symbols that can be accessed directly from C.
8449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8450
8451 # Define system-specific variables.
8452 case $host_os in
8453 aix*)
8454 symcode='[BCDT]'
8455 ;;
8456 cygwin* | mingw* | pw32* | cegcc*)
8457 symcode='[ABCDGISTW]'
8458 ;;
8459 hpux*)
8460 if test ia64 = "$host_cpu"; then
8461 symcode='[ABCDEGRST]'
8462 fi
8463 ;;
8464 irix* | nonstopux*)
8465 symcode='[BCDEGRST]'
8466 ;;
8467 osf*)
8468 symcode='[BCDEGQRST]'
8469 ;;
8470 solaris*)
8471 symcode='[BDRT]'
8472 ;;
8473 sco3.2v5*)
8474 symcode='[DT]'
8475 ;;
8476 sysv4.2uw2*)
8477 symcode='[DT]'
8478 ;;
8479 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8480 symcode='[ABDT]'
8481 ;;
8482 sysv4)
8483 symcode='[DFNSTU]'
8484 ;;
8485 esac
8486
8487 # If we're using GNU nm, then use its standard symbol codes.
8488 case `$NM -V 2>&1` in
8489 *GNU* | *'with BFD'*)
8490 symcode='[ABCDGIRSTW]' ;;
8491 esac
8492
8493 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8494 # Gets list of data symbols to import.
8495 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8496 # Adjust the below global symbol transforms to fixup imported variables.
8497 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8498 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8499 lt_c_name_lib_hook="\
8500 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8501 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8502 else
8503 # Disable hooks by default.
8504 lt_cv_sys_global_symbol_to_import=
8505 lt_cdecl_hook=
8506 lt_c_name_hook=
8507 lt_c_name_lib_hook=
8508 fi
8509
8510 # Transform an extracted symbol line into a proper C declaration.
8511 # Some systems (esp. on ia64) link data and code symbols differently,
8512 # so use this general approach.
8513 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8514 $lt_cdecl_hook\
8515 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8516 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8517
8518 # Transform an extracted symbol line into symbol name and symbol address
8519 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8520 $lt_c_name_hook\
8521 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8522 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8523
8524 # Transform an extracted symbol line into symbol name with lib prefix and
8525 # symbol address.
8526 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8527 $lt_c_name_lib_hook\
8528 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8529 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8530 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8531
8532 # Handle CRLF in mingw tool chain
8533 opt_cr=
8534 case $build_os in
8535 mingw*)
8536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8537 ;;
8538 esac
8539
8540 # Try without a prefix underscore, then with it.
8541 for ac_symprfx in "" "_"; do
8542
8543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8544 symxfrm="\\1 $ac_symprfx\\2 \\2"
8545
8546 # Write the raw and C identifiers.
8547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8548 # Fake it for dumpbin and say T for any non-static function,
8549 # D for any global variable and I for any imported variable.
8550 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8551 # which start with @ or ?.
8552 lt_cv_sys_global_symbol_pipe="$AWK '"\
8553 " {last_section=section; section=\$ 3};"\
8554 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8555 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8556 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8557 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8558 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8559 " \$ 0!~/External *\|/{next};"\
8560 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8561 " {if(hide[section]) next};"\
8562 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8563 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8564 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8565 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8566 " ' prfx=^$ac_symprfx"
8567 else
8568 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8569 fi
8570 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8571
8572 # Check to see that the pipe works correctly.
8573 pipe_works=no
8574
8575 rm -f conftest*
8576 cat > conftest.$ac_ext <<_LT_EOF
8577 #ifdef __cplusplus
8578 extern "C" {
8579 #endif
8580 char nm_test_var;
8581 void nm_test_func(void);
8582 void nm_test_func(void){}
8583 #ifdef __cplusplus
8584 }
8585 #endif
8586 int main(){nm_test_var='a';nm_test_func();return(0);}
8587 _LT_EOF
8588
8589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8590 (eval $ac_compile) 2>&5
8591 ac_status=$?
8592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8593 test $ac_status = 0; }; then
8594 # Now try to grab the symbols.
8595 nlist=conftest.nm
8596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8597 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8598 ac_status=$?
8599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8600 test $ac_status = 0; } && test -s "$nlist"; then
8601 # Try sorting and uniquifying the output.
8602 if sort "$nlist" | uniq > "$nlist"T; then
8603 mv -f "$nlist"T "$nlist"
8604 else
8605 rm -f "$nlist"T
8606 fi
8607
8608 # Make sure that we snagged all the symbols we need.
8609 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8610 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8611 cat <<_LT_EOF > conftest.$ac_ext
8612 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8613 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8614 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8615 relocations are performed -- see ld's documentation on pseudo-relocs. */
8616 # define LT_DLSYM_CONST
8617 #elif defined __osf__
8618 /* This system does not cope well with relocations in const data. */
8619 # define LT_DLSYM_CONST
8620 #else
8621 # define LT_DLSYM_CONST const
8622 #endif
8623
8624 #ifdef __cplusplus
8625 extern "C" {
8626 #endif
8627
8628 _LT_EOF
8629 # Now generate the symbol file.
8630 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8631
8632 cat <<_LT_EOF >> conftest.$ac_ext
8633
8634 /* The mapping between symbol names and symbols. */
8635 LT_DLSYM_CONST struct {
8636 const char *name;
8637 void *address;
8638 }
8639 lt__PROGRAM__LTX_preloaded_symbols[] =
8640 {
8641 { "@PROGRAM@", (void *) 0 },
8642 _LT_EOF
8643 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8644 cat <<\_LT_EOF >> conftest.$ac_ext
8645 {0, (void *) 0}
8646 };
8647
8648 /* This works around a problem in FreeBSD linker */
8649 #ifdef FREEBSD_WORKAROUND
8650 static const void *lt_preloaded_setup() {
8651 return lt__PROGRAM__LTX_preloaded_symbols;
8652 }
8653 #endif
8654
8655 #ifdef __cplusplus
8656 }
8657 #endif
8658 _LT_EOF
8659 # Now try linking the two files.
8660 mv conftest.$ac_objext conftstm.$ac_objext
8661 lt_globsym_save_LIBS=$LIBS
8662 lt_globsym_save_CFLAGS=$CFLAGS
8663 LIBS=conftstm.$ac_objext
8664 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8666 (eval $ac_link) 2>&5
8667 ac_status=$?
8668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8669 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8670 pipe_works=yes
8671 fi
8672 LIBS=$lt_globsym_save_LIBS
8673 CFLAGS=$lt_globsym_save_CFLAGS
8674 else
8675 echo "cannot find nm_test_func in $nlist" >&5
8676 fi
8677 else
8678 echo "cannot find nm_test_var in $nlist" >&5
8679 fi
8680 else
8681 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8682 fi
8683 else
8684 echo "$progname: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 fi
8687 rm -rf conftest* conftst*
8688
8689 # Do not use the global_symbol_pipe unless it works.
8690 if test yes = "$pipe_works"; then
8691 break
8692 else
8693 lt_cv_sys_global_symbol_pipe=
8694 fi
8695 done
8696 ;;
8697 esac
8698 fi
8699
8700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8701 lt_cv_sys_global_symbol_to_cdecl=
8702 fi
8703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8705 printf "%s\n" "failed" >&6; }
8706 else
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8708 printf "%s\n" "ok" >&6; }
8709 fi
8710
8711 # Response file support.
8712 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8713 nm_file_list_spec='@'
8714 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8715 nm_file_list_spec='@'
8716 fi
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
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 sysroot" >&5
8755 printf %s "checking for sysroot... " >&6; }
8756
8757 # Check whether --with-sysroot was given.
8758 if test ${with_sysroot+y}
8759 then :
8760 withval=$with_sysroot;
8761 else case e in #(
8762 e) with_sysroot=no ;;
8763 esac
8764 fi
8765
8766
8767 lt_sysroot=
8768 case $with_sysroot in #(
8769 yes)
8770 if test yes = "$GCC"; then
8771 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8772 fi
8773 ;; #(
8774 /*)
8775 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8776 ;; #(
8777 no|'')
8778 ;; #(
8779 *)
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8781 printf "%s\n" "$with_sysroot" >&6; }
8782 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8783 ;;
8784 esac
8785
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8787 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8788
8789
8790
8791
8792
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8794 printf %s "checking for a working dd... " >&6; }
8795 if test ${ac_cv_path_lt_DD+y}
8796 then :
8797 printf %s "(cached) " >&6
8798 else case e in #(
8799 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8800 cat conftest.i conftest.i >conftest2.i
8801 : ${lt_DD:=$DD}
8802 if test -z "$lt_DD"; then
8803 ac_path_lt_DD_found=false
8804 # Loop through the user's path and test for each of PROGNAME-LIST
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808 IFS=$as_save_IFS
8809 case $as_dir in #(((
8810 '') as_dir=./ ;;
8811 */) ;;
8812 *) as_dir=$as_dir/ ;;
8813 esac
8814 for ac_prog in dd
8815 do
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8818 as_fn_executable_p "$ac_path_lt_DD" || continue
8819 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8820 cmp -s conftest.i conftest.out \
8821 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8822 fi
8823 $ac_path_lt_DD_found && break 3
8824 done
8825 done
8826 done
8827 IFS=$as_save_IFS
8828 if test -z "$ac_cv_path_lt_DD"; then
8829 :
8830 fi
8831 else
8832 ac_cv_path_lt_DD=$lt_DD
8833 fi
8834
8835 rm -f conftest.i conftest2.i conftest.out ;;
8836 esac
8837 fi
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8839 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8840
8841
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8843 printf %s "checking how to truncate binary pipes... " >&6; }
8844 if test ${lt_cv_truncate_bin+y}
8845 then :
8846 printf %s "(cached) " >&6
8847 else case e in #(
8848 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8849 cat conftest.i conftest.i >conftest2.i
8850 lt_cv_truncate_bin=
8851 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8852 cmp -s conftest.i conftest.out \
8853 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8854 fi
8855 rm -f conftest.i conftest2.i conftest.out
8856 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8857 esac
8858 fi
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8860 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8861
8862
8863
8864
8865
8866
8867
8868 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8869 func_cc_basename ()
8870 {
8871 for cc_temp in $*""; do
8872 case $cc_temp in
8873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8875 \-*) ;;
8876 *) break;;
8877 esac
8878 done
8879 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8880 }
8881
8882
8883 # Check whether --enable-libtool-lock was given.
8884 if test ${enable_libtool_lock+y}
8885 then :
8886 enableval=$enable_libtool_lock;
8887 fi
8888
8889 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8890
8891 # Some flags need to be propagated to the compiler or linker for good
8892 # libtool support.
8893 case $host in
8894 ia64-*-hpux*)
8895 # Find out what ABI is being produced by ac_compile, and set mode
8896 # options accordingly.
8897 echo 'int i;' > conftest.$ac_ext
8898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8899 (eval $ac_compile) 2>&5
8900 ac_status=$?
8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8902 test $ac_status = 0; }; then
8903 case `$FILECMD conftest.$ac_objext` in
8904 *ELF-32*)
8905 HPUX_IA64_MODE=32
8906 ;;
8907 *ELF-64*)
8908 HPUX_IA64_MODE=64
8909 ;;
8910 esac
8911 fi
8912 rm -rf conftest*
8913 ;;
8914 *-*-irix6*)
8915 # Find out what ABI is being produced by ac_compile, and set linker
8916 # options accordingly.
8917 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8919 (eval $ac_compile) 2>&5
8920 ac_status=$?
8921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8922 test $ac_status = 0; }; then
8923 if test yes = "$lt_cv_prog_gnu_ld"; then
8924 case `$FILECMD conftest.$ac_objext` in
8925 *32-bit*)
8926 LD="${LD-ld} -melf32bsmip"
8927 ;;
8928 *N32*)
8929 LD="${LD-ld} -melf32bmipn32"
8930 ;;
8931 *64-bit*)
8932 LD="${LD-ld} -melf64bmip"
8933 ;;
8934 esac
8935 else
8936 case `$FILECMD conftest.$ac_objext` in
8937 *32-bit*)
8938 LD="${LD-ld} -32"
8939 ;;
8940 *N32*)
8941 LD="${LD-ld} -n32"
8942 ;;
8943 *64-bit*)
8944 LD="${LD-ld} -64"
8945 ;;
8946 esac
8947 fi
8948 fi
8949 rm -rf conftest*
8950 ;;
8951
8952 mips64*-*linux*)
8953 # Find out what ABI is being produced by ac_compile, and set linker
8954 # options accordingly.
8955 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8957 (eval $ac_compile) 2>&5
8958 ac_status=$?
8959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960 test $ac_status = 0; }; then
8961 emul=elf
8962 case `$FILECMD conftest.$ac_objext` in
8963 *32-bit*)
8964 emul="${emul}32"
8965 ;;
8966 *64-bit*)
8967 emul="${emul}64"
8968 ;;
8969 esac
8970 case `$FILECMD conftest.$ac_objext` in
8971 *MSB*)
8972 emul="${emul}btsmip"
8973 ;;
8974 *LSB*)
8975 emul="${emul}ltsmip"
8976 ;;
8977 esac
8978 case `$FILECMD conftest.$ac_objext` in
8979 *N32*)
8980 emul="${emul}n32"
8981 ;;
8982 esac
8983 LD="${LD-ld} -m $emul"
8984 fi
8985 rm -rf conftest*
8986 ;;
8987
8988 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8989 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8990 # Find out what ABI is being produced by ac_compile, and set linker
8991 # options accordingly. Note that the listed cases only cover the
8992 # situations where additional linker options are needed (such as when
8993 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8994 # vice versa); the common cases where no linker options are needed do
8995 # not appear in the list.
8996 echo 'int i;' > conftest.$ac_ext
8997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8998 (eval $ac_compile) 2>&5
8999 ac_status=$?
9000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9001 test $ac_status = 0; }; then
9002 case `$FILECMD conftest.o` in
9003 *32-bit*)
9004 case $host in
9005 x86_64-*kfreebsd*-gnu)
9006 LD="${LD-ld} -m elf_i386_fbsd"
9007 ;;
9008 x86_64-*linux*)
9009 case `$FILECMD conftest.o` in
9010 *x86-64*)
9011 LD="${LD-ld} -m elf32_x86_64"
9012 ;;
9013 *)
9014 LD="${LD-ld} -m elf_i386"
9015 ;;
9016 esac
9017 ;;
9018 powerpc64le-*linux*)
9019 LD="${LD-ld} -m elf32lppclinux"
9020 ;;
9021 powerpc64-*linux*)
9022 LD="${LD-ld} -m elf32ppclinux"
9023 ;;
9024 s390x-*linux*)
9025 LD="${LD-ld} -m elf_s390"
9026 ;;
9027 sparc64-*linux*)
9028 LD="${LD-ld} -m elf32_sparc"
9029 ;;
9030 esac
9031 ;;
9032 *64-bit*)
9033 case $host in
9034 x86_64-*kfreebsd*-gnu)
9035 LD="${LD-ld} -m elf_x86_64_fbsd"
9036 ;;
9037 x86_64-*linux*)
9038 LD="${LD-ld} -m elf_x86_64"
9039 ;;
9040 powerpcle-*linux*)
9041 LD="${LD-ld} -m elf64lppc"
9042 ;;
9043 powerpc-*linux*)
9044 LD="${LD-ld} -m elf64ppc"
9045 ;;
9046 s390*-*linux*|s390*-*tpf*)
9047 LD="${LD-ld} -m elf64_s390"
9048 ;;
9049 sparc*-*linux*)
9050 LD="${LD-ld} -m elf64_sparc"
9051 ;;
9052 esac
9053 ;;
9054 esac
9055 fi
9056 rm -rf conftest*
9057 ;;
9058
9059 *-*-sco3.2v5*)
9060 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9061 SAVE_CFLAGS=$CFLAGS
9062 CFLAGS="$CFLAGS -belf"
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9064 printf %s "checking whether the C compiler needs -belf... " >&6; }
9065 if test ${lt_cv_cc_needs_belf+y}
9066 then :
9067 printf %s "(cached) " >&6
9068 else case e in #(
9069 e) ac_ext=c
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077
9078 int
9079 main (void)
9080 {
9081
9082 ;
9083 return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_link "$LINENO"
9087 then :
9088 lt_cv_cc_needs_belf=yes
9089 else case e in #(
9090 e) lt_cv_cc_needs_belf=no ;;
9091 esac
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9094 conftest$ac_exeext conftest.$ac_ext
9095 ac_ext=c
9096 ac_cpp='$CPP $CPPFLAGS'
9097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9100 ;;
9101 esac
9102 fi
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9104 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9105 if test yes != "$lt_cv_cc_needs_belf"; then
9106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9107 CFLAGS=$SAVE_CFLAGS
9108 fi
9109 ;;
9110 *-*solaris*)
9111 # Find out what ABI is being produced by ac_compile, and set linker
9112 # options accordingly.
9113 echo 'int i;' > conftest.$ac_ext
9114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9115 (eval $ac_compile) 2>&5
9116 ac_status=$?
9117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9118 test $ac_status = 0; }; then
9119 case `$FILECMD conftest.o` in
9120 *64-bit*)
9121 case $lt_cv_prog_gnu_ld in
9122 yes*)
9123 case $host in
9124 i?86-*-solaris*|x86_64-*-solaris*)
9125 LD="${LD-ld} -m elf_x86_64"
9126 ;;
9127 sparc*-*-solaris*)
9128 LD="${LD-ld} -m elf64_sparc"
9129 ;;
9130 esac
9131 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9132 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9133 LD=${LD-ld}_sol2
9134 fi
9135 ;;
9136 *)
9137 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9138 LD="${LD-ld} -64"
9139 fi
9140 ;;
9141 esac
9142 ;;
9143 esac
9144 fi
9145 rm -rf conftest*
9146 ;;
9147 esac
9148
9149 need_locks=$enable_libtool_lock
9150
9151 if test -n "$ac_tool_prefix"; then
9152 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9153 set dummy ${ac_tool_prefix}mt; ac_word=$2
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 printf %s "checking for $ac_word... " >&6; }
9156 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9157 then :
9158 printf %s "(cached) " >&6
9159 else case e in #(
9160 e) if test -n "$MANIFEST_TOOL"; then
9161 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9162 else
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 for as_dir in $PATH
9165 do
9166 IFS=$as_save_IFS
9167 case $as_dir in #(((
9168 '') as_dir=./ ;;
9169 */) ;;
9170 *) as_dir=$as_dir/ ;;
9171 esac
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9174 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178 done
9179 done
9180 IFS=$as_save_IFS
9181
9182 fi ;;
9183 esac
9184 fi
9185 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9186 if test -n "$MANIFEST_TOOL"; then
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9188 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9189 else
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 printf "%s\n" "no" >&6; }
9192 fi
9193
9194
9195 fi
9196 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9197 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9198 # Extract the first word of "mt", so it can be a program name with args.
9199 set dummy mt; ac_word=$2
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 printf %s "checking for $ac_word... " >&6; }
9202 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else case e in #(
9206 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9207 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212 IFS=$as_save_IFS
9213 case $as_dir in #(((
9214 '') as_dir=./ ;;
9215 */) ;;
9216 *) as_dir=$as_dir/ ;;
9217 esac
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9220 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9222 break 2
9223 fi
9224 done
9225 done
9226 IFS=$as_save_IFS
9227
9228 fi ;;
9229 esac
9230 fi
9231 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9232 if test -n "$ac_ct_MANIFEST_TOOL"; then
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9234 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9235 else
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 printf "%s\n" "no" >&6; }
9238 fi
9239
9240 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9241 MANIFEST_TOOL=":"
9242 else
9243 case $cross_compiling:$ac_tool_warned in
9244 yes:)
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9246 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9247 ac_tool_warned=yes ;;
9248 esac
9249 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9250 fi
9251 else
9252 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9253 fi
9254
9255 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9257 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9258 if test ${lt_cv_path_mainfest_tool+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else case e in #(
9262 e) lt_cv_path_mainfest_tool=no
9263 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9264 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9265 cat conftest.err >&5
9266 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9267 lt_cv_path_mainfest_tool=yes
9268 fi
9269 rm -f conftest* ;;
9270 esac
9271 fi
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9273 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9274 if test yes != "$lt_cv_path_mainfest_tool"; then
9275 MANIFEST_TOOL=:
9276 fi
9277
9278
9279
9280
9281
9282
9283 case $host_os in
9284 rhapsody* | darwin*)
9285 if test -n "$ac_tool_prefix"; then
9286 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9287 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 printf %s "checking for $ac_word... " >&6; }
9290 if test ${ac_cv_prog_DSYMUTIL+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else case e in #(
9294 e) if test -n "$DSYMUTIL"; then
9295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300 IFS=$as_save_IFS
9301 case $as_dir in #(((
9302 '') as_dir=./ ;;
9303 */) ;;
9304 *) as_dir=$as_dir/ ;;
9305 esac
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312 done
9313 done
9314 IFS=$as_save_IFS
9315
9316 fi ;;
9317 esac
9318 fi
9319 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9320 if test -n "$DSYMUTIL"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9322 printf "%s\n" "$DSYMUTIL" >&6; }
9323 else
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9326 fi
9327
9328
9329 fi
9330 if test -z "$ac_cv_prog_DSYMUTIL"; then
9331 ac_ct_DSYMUTIL=$DSYMUTIL
9332 # Extract the first word of "dsymutil", so it can be a program name with args.
9333 set dummy dsymutil; ac_word=$2
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 printf %s "checking for $ac_word... " >&6; }
9336 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9337 then :
9338 printf %s "(cached) " >&6
9339 else case e in #(
9340 e) if test -n "$ac_ct_DSYMUTIL"; then
9341 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346 IFS=$as_save_IFS
9347 case $as_dir in #(((
9348 '') as_dir=./ ;;
9349 */) ;;
9350 *) as_dir=$as_dir/ ;;
9351 esac
9352 for ac_exec_ext in '' $ac_executable_extensions; do
9353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9354 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9356 break 2
9357 fi
9358 done
9359 done
9360 IFS=$as_save_IFS
9361
9362 fi ;;
9363 esac
9364 fi
9365 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9366 if test -n "$ac_ct_DSYMUTIL"; then
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9368 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9369 else
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 printf "%s\n" "no" >&6; }
9372 fi
9373
9374 if test "x$ac_ct_DSYMUTIL" = x; then
9375 DSYMUTIL=":"
9376 else
9377 case $cross_compiling:$ac_tool_warned in
9378 yes:)
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9381 ac_tool_warned=yes ;;
9382 esac
9383 DSYMUTIL=$ac_ct_DSYMUTIL
9384 fi
9385 else
9386 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9387 fi
9388
9389 if test -n "$ac_tool_prefix"; then
9390 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9391 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 printf %s "checking for $ac_word... " >&6; }
9394 if test ${ac_cv_prog_NMEDIT+y}
9395 then :
9396 printf %s "(cached) " >&6
9397 else case e in #(
9398 e) if test -n "$NMEDIT"; then
9399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9400 else
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9403 do
9404 IFS=$as_save_IFS
9405 case $as_dir in #(((
9406 '') as_dir=./ ;;
9407 */) ;;
9408 *) as_dir=$as_dir/ ;;
9409 esac
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9412 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416 done
9417 done
9418 IFS=$as_save_IFS
9419
9420 fi ;;
9421 esac
9422 fi
9423 NMEDIT=$ac_cv_prog_NMEDIT
9424 if test -n "$NMEDIT"; then
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9426 printf "%s\n" "$NMEDIT" >&6; }
9427 else
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 printf "%s\n" "no" >&6; }
9430 fi
9431
9432
9433 fi
9434 if test -z "$ac_cv_prog_NMEDIT"; then
9435 ac_ct_NMEDIT=$NMEDIT
9436 # Extract the first word of "nmedit", so it can be a program name with args.
9437 set dummy nmedit; ac_word=$2
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9439 printf %s "checking for $ac_word... " >&6; }
9440 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9441 then :
9442 printf %s "(cached) " >&6
9443 else case e in #(
9444 e) if test -n "$ac_ct_NMEDIT"; then
9445 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9446 else
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in $PATH
9449 do
9450 IFS=$as_save_IFS
9451 case $as_dir in #(((
9452 '') as_dir=./ ;;
9453 */) ;;
9454 *) as_dir=$as_dir/ ;;
9455 esac
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9458 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9460 break 2
9461 fi
9462 done
9463 done
9464 IFS=$as_save_IFS
9465
9466 fi ;;
9467 esac
9468 fi
9469 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9470 if test -n "$ac_ct_NMEDIT"; then
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9472 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9473 else
9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 printf "%s\n" "no" >&6; }
9476 fi
9477
9478 if test "x$ac_ct_NMEDIT" = x; then
9479 NMEDIT=":"
9480 else
9481 case $cross_compiling:$ac_tool_warned in
9482 yes:)
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9484 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9485 ac_tool_warned=yes ;;
9486 esac
9487 NMEDIT=$ac_ct_NMEDIT
9488 fi
9489 else
9490 NMEDIT="$ac_cv_prog_NMEDIT"
9491 fi
9492
9493 if test -n "$ac_tool_prefix"; then
9494 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9495 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497 printf %s "checking for $ac_word... " >&6; }
9498 if test ${ac_cv_prog_LIPO+y}
9499 then :
9500 printf %s "(cached) " >&6
9501 else case e in #(
9502 e) if test -n "$LIPO"; then
9503 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9504 else
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9507 do
9508 IFS=$as_save_IFS
9509 case $as_dir in #(((
9510 '') as_dir=./ ;;
9511 */) ;;
9512 *) as_dir=$as_dir/ ;;
9513 esac
9514 for ac_exec_ext in '' $ac_executable_extensions; do
9515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9516 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9518 break 2
9519 fi
9520 done
9521 done
9522 IFS=$as_save_IFS
9523
9524 fi ;;
9525 esac
9526 fi
9527 LIPO=$ac_cv_prog_LIPO
9528 if test -n "$LIPO"; then
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9530 printf "%s\n" "$LIPO" >&6; }
9531 else
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 printf "%s\n" "no" >&6; }
9534 fi
9535
9536
9537 fi
9538 if test -z "$ac_cv_prog_LIPO"; then
9539 ac_ct_LIPO=$LIPO
9540 # Extract the first word of "lipo", so it can be a program name with args.
9541 set dummy lipo; ac_word=$2
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 printf %s "checking for $ac_word... " >&6; }
9544 if test ${ac_cv_prog_ac_ct_LIPO+y}
9545 then :
9546 printf %s "(cached) " >&6
9547 else case e in #(
9548 e) if test -n "$ac_ct_LIPO"; then
9549 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9550 else
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9553 do
9554 IFS=$as_save_IFS
9555 case $as_dir in #(((
9556 '') as_dir=./ ;;
9557 */) ;;
9558 *) as_dir=$as_dir/ ;;
9559 esac
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9562 ac_cv_prog_ac_ct_LIPO="lipo"
9563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9564 break 2
9565 fi
9566 done
9567 done
9568 IFS=$as_save_IFS
9569
9570 fi ;;
9571 esac
9572 fi
9573 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9574 if test -n "$ac_ct_LIPO"; then
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9576 printf "%s\n" "$ac_ct_LIPO" >&6; }
9577 else
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 printf "%s\n" "no" >&6; }
9580 fi
9581
9582 if test "x$ac_ct_LIPO" = x; then
9583 LIPO=":"
9584 else
9585 case $cross_compiling:$ac_tool_warned in
9586 yes:)
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9589 ac_tool_warned=yes ;;
9590 esac
9591 LIPO=$ac_ct_LIPO
9592 fi
9593 else
9594 LIPO="$ac_cv_prog_LIPO"
9595 fi
9596
9597 if test -n "$ac_tool_prefix"; then
9598 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9599 set dummy ${ac_tool_prefix}otool; ac_word=$2
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 printf %s "checking for $ac_word... " >&6; }
9602 if test ${ac_cv_prog_OTOOL+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) if test -n "$OTOOL"; then
9607 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9611 do
9612 IFS=$as_save_IFS
9613 case $as_dir in #(((
9614 '') as_dir=./ ;;
9615 */) ;;
9616 *) as_dir=$as_dir/ ;;
9617 esac
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9622 break 2
9623 fi
9624 done
9625 done
9626 IFS=$as_save_IFS
9627
9628 fi ;;
9629 esac
9630 fi
9631 OTOOL=$ac_cv_prog_OTOOL
9632 if test -n "$OTOOL"; then
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9634 printf "%s\n" "$OTOOL" >&6; }
9635 else
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 printf "%s\n" "no" >&6; }
9638 fi
9639
9640
9641 fi
9642 if test -z "$ac_cv_prog_OTOOL"; then
9643 ac_ct_OTOOL=$OTOOL
9644 # Extract the first word of "otool", so it can be a program name with args.
9645 set dummy otool; ac_word=$2
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 printf %s "checking for $ac_word... " >&6; }
9648 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9649 then :
9650 printf %s "(cached) " >&6
9651 else case e in #(
9652 e) if test -n "$ac_ct_OTOOL"; then
9653 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9654 else
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9657 do
9658 IFS=$as_save_IFS
9659 case $as_dir in #(((
9660 '') as_dir=./ ;;
9661 */) ;;
9662 *) as_dir=$as_dir/ ;;
9663 esac
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9666 ac_cv_prog_ac_ct_OTOOL="otool"
9667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670 done
9671 done
9672 IFS=$as_save_IFS
9673
9674 fi ;;
9675 esac
9676 fi
9677 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9678 if test -n "$ac_ct_OTOOL"; then
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9680 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9681 else
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 printf "%s\n" "no" >&6; }
9684 fi
9685
9686 if test "x$ac_ct_OTOOL" = x; then
9687 OTOOL=":"
9688 else
9689 case $cross_compiling:$ac_tool_warned in
9690 yes:)
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9693 ac_tool_warned=yes ;;
9694 esac
9695 OTOOL=$ac_ct_OTOOL
9696 fi
9697 else
9698 OTOOL="$ac_cv_prog_OTOOL"
9699 fi
9700
9701 if test -n "$ac_tool_prefix"; then
9702 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9703 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 printf %s "checking for $ac_word... " >&6; }
9706 if test ${ac_cv_prog_OTOOL64+y}
9707 then :
9708 printf %s "(cached) " >&6
9709 else case e in #(
9710 e) if test -n "$OTOOL64"; then
9711 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9715 do
9716 IFS=$as_save_IFS
9717 case $as_dir in #(((
9718 '') as_dir=./ ;;
9719 */) ;;
9720 *) as_dir=$as_dir/ ;;
9721 esac
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9724 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9726 break 2
9727 fi
9728 done
9729 done
9730 IFS=$as_save_IFS
9731
9732 fi ;;
9733 esac
9734 fi
9735 OTOOL64=$ac_cv_prog_OTOOL64
9736 if test -n "$OTOOL64"; then
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9738 printf "%s\n" "$OTOOL64" >&6; }
9739 else
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 printf "%s\n" "no" >&6; }
9742 fi
9743
9744
9745 fi
9746 if test -z "$ac_cv_prog_OTOOL64"; then
9747 ac_ct_OTOOL64=$OTOOL64
9748 # Extract the first word of "otool64", so it can be a program name with args.
9749 set dummy otool64; ac_word=$2
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 printf %s "checking for $ac_word... " >&6; }
9752 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9753 then :
9754 printf %s "(cached) " >&6
9755 else case e in #(
9756 e) if test -n "$ac_ct_OTOOL64"; then
9757 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9761 do
9762 IFS=$as_save_IFS
9763 case $as_dir in #(((
9764 '') as_dir=./ ;;
9765 */) ;;
9766 *) as_dir=$as_dir/ ;;
9767 esac
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9770 ac_cv_prog_ac_ct_OTOOL64="otool64"
9771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9772 break 2
9773 fi
9774 done
9775 done
9776 IFS=$as_save_IFS
9777
9778 fi ;;
9779 esac
9780 fi
9781 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9782 if test -n "$ac_ct_OTOOL64"; then
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9784 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9785 else
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 printf "%s\n" "no" >&6; }
9788 fi
9789
9790 if test "x$ac_ct_OTOOL64" = x; then
9791 OTOOL64=":"
9792 else
9793 case $cross_compiling:$ac_tool_warned in
9794 yes:)
9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9797 ac_tool_warned=yes ;;
9798 esac
9799 OTOOL64=$ac_ct_OTOOL64
9800 fi
9801 else
9802 OTOOL64="$ac_cv_prog_OTOOL64"
9803 fi
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9832 printf %s "checking for -single_module linker flag... " >&6; }
9833 if test ${lt_cv_apple_cc_single_mod+y}
9834 then :
9835 printf %s "(cached) " >&6
9836 else case e in #(
9837 e) lt_cv_apple_cc_single_mod=no
9838 if test -z "$LT_MULTI_MODULE"; then
9839 # By default we will add the -single_module flag. You can override
9840 # by either setting the environment variable LT_MULTI_MODULE
9841 # non-empty at configure time, or by adding -multi_module to the
9842 # link flags.
9843 rm -rf libconftest.dylib*
9844 echo "int foo(void){return 1;}" > conftest.c
9845 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9846 -dynamiclib -Wl,-single_module conftest.c" >&5
9847 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9848 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9849 _lt_result=$?
9850 # If there is a non-empty error log, and "single_module"
9851 # appears in it, assume the flag caused a linker warning
9852 if test -s conftest.err && $GREP single_module conftest.err; then
9853 cat conftest.err >&5
9854 # Otherwise, if the output was created with a 0 exit code from
9855 # the compiler, it worked.
9856 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9857 lt_cv_apple_cc_single_mod=yes
9858 else
9859 cat conftest.err >&5
9860 fi
9861 rm -rf libconftest.dylib*
9862 rm -f conftest.*
9863 fi ;;
9864 esac
9865 fi
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9867 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9868
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9870 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9871 if test ${lt_cv_ld_exported_symbols_list+y}
9872 then :
9873 printf %s "(cached) " >&6
9874 else case e in #(
9875 e) lt_cv_ld_exported_symbols_list=no
9876 save_LDFLAGS=$LDFLAGS
9877 echo "_main" > conftest.sym
9878 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881
9882 int
9883 main (void)
9884 {
9885
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"
9891 then :
9892 lt_cv_ld_exported_symbols_list=yes
9893 else case e in #(
9894 e) lt_cv_ld_exported_symbols_list=no ;;
9895 esac
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LDFLAGS=$save_LDFLAGS
9900 ;;
9901 esac
9902 fi
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9904 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9905
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9907 printf %s "checking for -force_load linker flag... " >&6; }
9908 if test ${lt_cv_ld_force_load+y}
9909 then :
9910 printf %s "(cached) " >&6
9911 else case e in #(
9912 e) lt_cv_ld_force_load=no
9913 cat > conftest.c << _LT_EOF
9914 int forced_loaded() { return 2;}
9915 _LT_EOF
9916 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9917 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9918 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9919 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9920 echo "$RANLIB libconftest.a" >&5
9921 $RANLIB libconftest.a 2>&5
9922 cat > conftest.c << _LT_EOF
9923 int main() { return 0;}
9924 _LT_EOF
9925 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9926 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9927 _lt_result=$?
9928 if test -s conftest.err && $GREP force_load conftest.err; then
9929 cat conftest.err >&5
9930 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9931 lt_cv_ld_force_load=yes
9932 else
9933 cat conftest.err >&5
9934 fi
9935 rm -f conftest.err libconftest.a conftest conftest.c
9936 rm -rf conftest.dSYM
9937 ;;
9938 esac
9939 fi
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9941 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9942 case $host_os in
9943 rhapsody* | darwin1.[012])
9944 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9945 darwin1.*)
9946 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9947 darwin*)
9948 case $MACOSX_DEPLOYMENT_TARGET,$host in
9949 10.[012],*|,*powerpc*-darwin[5-8]*)
9950 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9951 *)
9952 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9953 esac
9954 ;;
9955 esac
9956 if test yes = "$lt_cv_apple_cc_single_mod"; then
9957 _lt_dar_single_mod='$single_module'
9958 fi
9959 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9960 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9961 else
9962 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9963 fi
9964 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9965 _lt_dsymutil='~$DSYMUTIL $lib || :'
9966 else
9967 _lt_dsymutil=
9968 fi
9969 ;;
9970 esac
9971
9972 # func_munge_path_list VARIABLE PATH
9973 # -----------------------------------
9974 # VARIABLE is name of variable containing _space_ separated list of
9975 # directories to be munged by the contents of PATH, which is string
9976 # having a format:
9977 # "DIR[:DIR]:"
9978 # string "DIR[ DIR]" will be prepended to VARIABLE
9979 # ":DIR[:DIR]"
9980 # string "DIR[ DIR]" will be appended to VARIABLE
9981 # "DIRP[:DIRP]::[DIRA:]DIRA"
9982 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9983 # "DIRA[ DIRA]" will be appended to VARIABLE
9984 # "DIR[:DIR]"
9985 # VARIABLE will be replaced by "DIR[ DIR]"
9986 func_munge_path_list ()
9987 {
9988 case x$2 in
9989 x)
9990 ;;
9991 *:)
9992 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9993 ;;
9994 x:*)
9995 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9996 ;;
9997 *::*)
9998 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9999 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10000 ;;
10001 *)
10002 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10003 ;;
10004 esac
10005 }
10006
10007 ac_header= ac_cache=
10008 for ac_item in $ac_header_c_list
10009 do
10010 if test $ac_cache; then
10011 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10012 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10013 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10014 fi
10015 ac_header= ac_cache=
10016 elif test $ac_header; then
10017 ac_cache=$ac_item
10018 else
10019 ac_header=$ac_item
10020 fi
10021 done
10022
10023
10024
10025
10026
10027
10028
10029
10030 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10031 then :
10032
10033 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10034
10035 fi
10036 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10037 "
10038 if test "x$ac_cv_header_dlfcn_h" = xyes
10039 then :
10040 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10041
10042 fi
10043
10044
10045
10046 func_stripname_cnf ()
10047 {
10048 case $2 in
10049 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10050 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10051 esac
10052 } # func_stripname_cnf
10053
10054
10055
10056
10057
10058 # Set options
10059 # Check whether --enable-static was given.
10060 if test ${enable_static+y}
10061 then :
10062 enableval=$enable_static; p=${PACKAGE-default}
10063 case $enableval in
10064 yes) enable_static=yes ;;
10065 no) enable_static=no ;;
10066 *)
10067 enable_static=no
10068 # Look at the argument we got. We use all the common list separators.
10069 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10070 for pkg in $enableval; do
10071 IFS=$lt_save_ifs
10072 if test "X$pkg" = "X$p"; then
10073 enable_static=yes
10074 fi
10075 done
10076 IFS=$lt_save_ifs
10077 ;;
10078 esac
10079 else case e in #(
10080 e) enable_static=no ;;
10081 esac
10082 fi
10083
10084
10085
10086
10087
10088
10089
10090 enable_dlopen=yes
10091
10092
10093
10094
10095 enable_win32_dll=no
10096
10097
10098 # Check whether --enable-shared was given.
10099 if test ${enable_shared+y}
10100 then :
10101 enableval=$enable_shared; p=${PACKAGE-default}
10102 case $enableval in
10103 yes) enable_shared=yes ;;
10104 no) enable_shared=no ;;
10105 *)
10106 enable_shared=no
10107 # Look at the argument we got. We use all the common list separators.
10108 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10109 for pkg in $enableval; do
10110 IFS=$lt_save_ifs
10111 if test "X$pkg" = "X$p"; then
10112 enable_shared=yes
10113 fi
10114 done
10115 IFS=$lt_save_ifs
10116 ;;
10117 esac
10118 else case e in #(
10119 e) enable_shared=yes ;;
10120 esac
10121 fi
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 # Check whether --with-pic was given.
10134 if test ${with_pic+y}
10135 then :
10136 withval=$with_pic; lt_p=${PACKAGE-default}
10137 case $withval in
10138 yes|no) pic_mode=$withval ;;
10139 *)
10140 pic_mode=default
10141 # Look at the argument we got. We use all the common list separators.
10142 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10143 for lt_pkg in $withval; do
10144 IFS=$lt_save_ifs
10145 if test "X$lt_pkg" = "X$lt_p"; then
10146 pic_mode=yes
10147 fi
10148 done
10149 IFS=$lt_save_ifs
10150 ;;
10151 esac
10152 else case e in #(
10153 e) pic_mode=default ;;
10154 esac
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164 # Check whether --enable-fast-install was given.
10165 if test ${enable_fast_install+y}
10166 then :
10167 enableval=$enable_fast_install; p=${PACKAGE-default}
10168 case $enableval in
10169 yes) enable_fast_install=yes ;;
10170 no) enable_fast_install=no ;;
10171 *)
10172 enable_fast_install=no
10173 # Look at the argument we got. We use all the common list separators.
10174 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10175 for pkg in $enableval; do
10176 IFS=$lt_save_ifs
10177 if test "X$pkg" = "X$p"; then
10178 enable_fast_install=yes
10179 fi
10180 done
10181 IFS=$lt_save_ifs
10182 ;;
10183 esac
10184 else case e in #(
10185 e) enable_fast_install=yes ;;
10186 esac
10187 fi
10188
10189
10190
10191
10192
10193
10194
10195
10196 shared_archive_member_spec=
10197 case $host,$enable_shared in
10198 power*-*-aix[5-9]*,yes)
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10200 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10201
10202 # Check whether --with-aix-soname was given.
10203 if test ${with_aix_soname+y}
10204 then :
10205 withval=$with_aix_soname; case $withval in
10206 aix|svr4|both)
10207 ;;
10208 *)
10209 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10210 ;;
10211 esac
10212 lt_cv_with_aix_soname=$with_aix_soname
10213 else case e in #(
10214 e) if test ${lt_cv_with_aix_soname+y}
10215 then :
10216 printf %s "(cached) " >&6
10217 else case e in #(
10218 e) lt_cv_with_aix_soname=aix ;;
10219 esac
10220 fi
10221
10222 with_aix_soname=$lt_cv_with_aix_soname ;;
10223 esac
10224 fi
10225
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10227 printf "%s\n" "$with_aix_soname" >&6; }
10228 if test aix != "$with_aix_soname"; then
10229 # For the AIX way of multilib, we name the shared archive member
10230 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10231 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10232 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10233 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10234 if test 64 = "${OBJECT_MODE-32}"; then
10235 shared_archive_member_spec=shr_64
10236 else
10237 shared_archive_member_spec=shr
10238 fi
10239 fi
10240 ;;
10241 *)
10242 with_aix_soname=aix
10243 ;;
10244 esac
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255 # This can be used to rebuild libtool when needed
10256 LIBTOOL_DEPS=$ltmain
10257
10258 # Always use our own libtool.
10259 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290 test -z "$LN_S" && LN_S="ln -s"
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 if test -n "${ZSH_VERSION+set}"; then
10306 setopt NO_GLOB_SUBST
10307 fi
10308
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10310 printf %s "checking for objdir... " >&6; }
10311 if test ${lt_cv_objdir+y}
10312 then :
10313 printf %s "(cached) " >&6
10314 else case e in #(
10315 e) rm -f .libs 2>/dev/null
10316 mkdir .libs 2>/dev/null
10317 if test -d .libs; then
10318 lt_cv_objdir=.libs
10319 else
10320 # MS-DOS does not allow filenames that begin with a dot.
10321 lt_cv_objdir=_libs
10322 fi
10323 rmdir .libs 2>/dev/null ;;
10324 esac
10325 fi
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10327 printf "%s\n" "$lt_cv_objdir" >&6; }
10328 objdir=$lt_cv_objdir
10329
10330
10331
10332
10333
10334 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10335
10336
10337
10338
10339 case $host_os in
10340 aix3*)
10341 # AIX sometimes has problems with the GCC collect2 program. For some
10342 # reason, if we set the COLLECT_NAMES environment variable, the problems
10343 # vanish in a puff of smoke.
10344 if test set != "${COLLECT_NAMES+set}"; then
10345 COLLECT_NAMES=
10346 export COLLECT_NAMES
10347 fi
10348 ;;
10349 esac
10350
10351 # Global variables:
10352 ofile=libtool
10353 can_build_shared=yes
10354
10355 # All known linkers require a '.a' archive for static linking (except MSVC and
10356 # ICC, which need '.lib').
10357 libext=a
10358
10359 with_gnu_ld=$lt_cv_prog_gnu_ld
10360
10361 old_CC=$CC
10362 old_CFLAGS=$CFLAGS
10363
10364 # Set sane defaults for various variables
10365 test -z "$CC" && CC=cc
10366 test -z "$LTCC" && LTCC=$CC
10367 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10368 test -z "$LD" && LD=ld
10369 test -z "$ac_objext" && ac_objext=o
10370
10371 func_cc_basename $compiler
10372 cc_basename=$func_cc_basename_result
10373
10374
10375 # Only perform the check for file, if the check method requires it
10376 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10377 case $deplibs_check_method in
10378 file_magic*)
10379 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10381 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10382 if test ${lt_cv_path_MAGIC_CMD+y}
10383 then :
10384 printf %s "(cached) " >&6
10385 else case e in #(
10386 e) case $MAGIC_CMD in
10387 [\\/*] | ?:[\\/]*)
10388 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10389 ;;
10390 *)
10391 lt_save_MAGIC_CMD=$MAGIC_CMD
10392 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10394 for ac_dir in $ac_dummy; do
10395 IFS=$lt_save_ifs
10396 test -z "$ac_dir" && ac_dir=.
10397 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10398 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10399 if test -n "$file_magic_test_file"; then
10400 case $deplibs_check_method in
10401 "file_magic "*)
10402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10403 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10405 $EGREP "$file_magic_regex" > /dev/null; then
10406 :
10407 else
10408 cat <<_LT_EOF 1>&2
10409
10410 *** Warning: the command libtool uses to detect shared libraries,
10411 *** $file_magic_cmd, produces output that libtool cannot recognize.
10412 *** The result is that libtool may fail to recognize shared libraries
10413 *** as such. This will affect the creation of libtool libraries that
10414 *** depend on shared libraries, but programs linked with such libtool
10415 *** libraries will work regardless of this problem. Nevertheless, you
10416 *** may want to report the problem to your system manager and/or to
10417 *** [email protected]
10418
10419 _LT_EOF
10420 fi ;;
10421 esac
10422 fi
10423 break
10424 fi
10425 done
10426 IFS=$lt_save_ifs
10427 MAGIC_CMD=$lt_save_MAGIC_CMD
10428 ;;
10429 esac ;;
10430 esac
10431 fi
10432
10433 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10434 if test -n "$MAGIC_CMD"; then
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10436 printf "%s\n" "$MAGIC_CMD" >&6; }
10437 else
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 printf "%s\n" "no" >&6; }
10440 fi
10441
10442
10443
10444
10445
10446 if test -z "$lt_cv_path_MAGIC_CMD"; then
10447 if test -n "$ac_tool_prefix"; then
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10449 printf %s "checking for file... " >&6; }
10450 if test ${lt_cv_path_MAGIC_CMD+y}
10451 then :
10452 printf %s "(cached) " >&6
10453 else case e in #(
10454 e) case $MAGIC_CMD in
10455 [\\/*] | ?:[\\/]*)
10456 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10457 ;;
10458 *)
10459 lt_save_MAGIC_CMD=$MAGIC_CMD
10460 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10461 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10462 for ac_dir in $ac_dummy; do
10463 IFS=$lt_save_ifs
10464 test -z "$ac_dir" && ac_dir=.
10465 if test -f "$ac_dir/file"; then
10466 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10467 if test -n "$file_magic_test_file"; then
10468 case $deplibs_check_method in
10469 "file_magic "*)
10470 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10471 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10472 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10473 $EGREP "$file_magic_regex" > /dev/null; then
10474 :
10475 else
10476 cat <<_LT_EOF 1>&2
10477
10478 *** Warning: the command libtool uses to detect shared libraries,
10479 *** $file_magic_cmd, produces output that libtool cannot recognize.
10480 *** The result is that libtool may fail to recognize shared libraries
10481 *** as such. This will affect the creation of libtool libraries that
10482 *** depend on shared libraries, but programs linked with such libtool
10483 *** libraries will work regardless of this problem. Nevertheless, you
10484 *** may want to report the problem to your system manager and/or to
10485 *** [email protected]
10486
10487 _LT_EOF
10488 fi ;;
10489 esac
10490 fi
10491 break
10492 fi
10493 done
10494 IFS=$lt_save_ifs
10495 MAGIC_CMD=$lt_save_MAGIC_CMD
10496 ;;
10497 esac ;;
10498 esac
10499 fi
10500
10501 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10502 if test -n "$MAGIC_CMD"; then
10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10504 printf "%s\n" "$MAGIC_CMD" >&6; }
10505 else
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 printf "%s\n" "no" >&6; }
10508 fi
10509
10510
10511 else
10512 MAGIC_CMD=:
10513 fi
10514 fi
10515
10516 fi
10517 ;;
10518 esac
10519
10520 # Use C for the default configuration in the libtool script
10521
10522 lt_save_CC=$CC
10523 ac_ext=c
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528
10529
10530 # Source file extension for C test sources.
10531 ac_ext=c
10532
10533 # Object file extension for compiled C test sources.
10534 objext=o
10535 objext=$objext
10536
10537 # Code to be used in simple compile tests
10538 lt_simple_compile_test_code="int some_variable = 0;"
10539
10540 # Code to be used in simple link tests
10541 lt_simple_link_test_code='int main(){return(0);}'
10542
10543
10544
10545
10546
10547
10548
10549 # If no C compiler was specified, use CC.
10550 LTCC=${LTCC-"$CC"}
10551
10552 # If no C compiler flags were specified, use CFLAGS.
10553 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10554
10555 # Allow CC to be a program name with arguments.
10556 compiler=$CC
10557
10558 # Save the default compiler, since it gets overwritten when the other
10559 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10560 compiler_DEFAULT=$CC
10561
10562 # save warnings/boilerplate of simple test code
10563 ac_outfile=conftest.$ac_objext
10564 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10565 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10566 _lt_compiler_boilerplate=`cat conftest.err`
10567 $RM conftest*
10568
10569 ac_outfile=conftest.$ac_objext
10570 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10571 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10572 _lt_linker_boilerplate=`cat conftest.err`
10573 $RM -r conftest*
10574
10575
10576 ## CAVEAT EMPTOR:
10577 ## There is no encapsulation within the following macros, do not change
10578 ## the running order or otherwise move them around unless you know exactly
10579 ## what you are doing...
10580 if test -n "$compiler"; then
10581
10582 lt_prog_compiler_no_builtin_flag=
10583
10584 if test yes = "$GCC"; then
10585 case $cc_basename in
10586 nvcc*)
10587 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10588 *)
10589 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10590 esac
10591
10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10593 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10594 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10595 then :
10596 printf %s "(cached) " >&6
10597 else case e in #(
10598 e) lt_cv_prog_compiler_rtti_exceptions=no
10599 ac_outfile=conftest.$ac_objext
10600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10601 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10602 # Insert the option either (1) after the last *FLAGS variable, or
10603 # (2) before a word containing "conftest.", or (3) at the end.
10604 # Note that $ac_compile itself does not contain backslashes and begins
10605 # with a dollar sign (not a hyphen), so the echo should work correctly.
10606 # The option is referenced via a variable to avoid confusing sed.
10607 lt_compile=`echo "$ac_compile" | $SED \
10608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10610 -e 's:$: $lt_compiler_flag:'`
10611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10612 (eval "$lt_compile" 2>conftest.err)
10613 ac_status=$?
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 if (exit $ac_status) && test -s "$ac_outfile"; then
10617 # The compiler can only warn and ignore the option if not recognized
10618 # So say no if there are warnings other than the usual output.
10619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10622 lt_cv_prog_compiler_rtti_exceptions=yes
10623 fi
10624 fi
10625 $RM conftest*
10626 ;;
10627 esac
10628 fi
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10630 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10631
10632 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10633 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10634 else
10635 :
10636 fi
10637
10638 fi
10639
10640
10641
10642
10643
10644
10645 lt_prog_compiler_wl=
10646 lt_prog_compiler_pic=
10647 lt_prog_compiler_static=
10648
10649
10650 if test yes = "$GCC"; then
10651 lt_prog_compiler_wl='-Wl,'
10652 lt_prog_compiler_static='-static'
10653
10654 case $host_os in
10655 aix*)
10656 # All AIX code is PIC.
10657 if test ia64 = "$host_cpu"; then
10658 # AIX 5 now supports IA64 processor
10659 lt_prog_compiler_static='-Bstatic'
10660 fi
10661 lt_prog_compiler_pic='-fPIC'
10662 ;;
10663
10664 amigaos*)
10665 case $host_cpu in
10666 powerpc)
10667 # see comment about AmigaOS4 .so support
10668 lt_prog_compiler_pic='-fPIC'
10669 ;;
10670 m68k)
10671 # FIXME: we need at least 68020 code to build shared libraries, but
10672 # adding the '-m68020' flag to GCC prevents building anything better,
10673 # like '-m68040'.
10674 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10675 ;;
10676 esac
10677 ;;
10678
10679 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10680 # PIC is the default for these OSes.
10681 ;;
10682
10683 mingw* | cygwin* | pw32* | os2* | cegcc*)
10684 # This hack is so that the source file can tell whether it is being
10685 # built for inclusion in a dll (and should export symbols for example).
10686 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10687 # (--disable-auto-import) libraries
10688 lt_prog_compiler_pic='-DDLL_EXPORT'
10689 case $host_os in
10690 os2*)
10691 lt_prog_compiler_static='$wl-static'
10692 ;;
10693 esac
10694 ;;
10695
10696 darwin* | rhapsody*)
10697 # PIC is the default on this platform
10698 # Common symbols not allowed in MH_DYLIB files
10699 lt_prog_compiler_pic='-fno-common'
10700 ;;
10701
10702 haiku*)
10703 # PIC is the default for Haiku.
10704 # The "-static" flag exists, but is broken.
10705 lt_prog_compiler_static=
10706 ;;
10707
10708 hpux*)
10709 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10710 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10711 # sets the default TLS model and affects inlining.
10712 case $host_cpu in
10713 hppa*64*)
10714 # +Z the default
10715 ;;
10716 *)
10717 lt_prog_compiler_pic='-fPIC'
10718 ;;
10719 esac
10720 ;;
10721
10722 interix[3-9]*)
10723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10724 # Instead, we relocate shared libraries at runtime.
10725 ;;
10726
10727 msdosdjgpp*)
10728 # Just because we use GCC doesn't mean we suddenly get shared libraries
10729 # on systems that don't support them.
10730 lt_prog_compiler_can_build_shared=no
10731 enable_shared=no
10732 ;;
10733
10734 *nto* | *qnx*)
10735 # QNX uses GNU C++, but need to define -shared option too, otherwise
10736 # it will coredump.
10737 lt_prog_compiler_pic='-fPIC -shared'
10738 ;;
10739
10740 sysv4*MP*)
10741 if test -d /usr/nec; then
10742 lt_prog_compiler_pic=-Kconform_pic
10743 fi
10744 ;;
10745
10746 *)
10747 lt_prog_compiler_pic='-fPIC'
10748 ;;
10749 esac
10750
10751 case $cc_basename in
10752 nvcc*) # Cuda Compiler Driver 2.2
10753 lt_prog_compiler_wl='-Xlinker '
10754 if test -n "$lt_prog_compiler_pic"; then
10755 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10756 fi
10757 ;;
10758 esac
10759 else
10760 # PORTME Check for flag to pass linker flags through the system compiler.
10761 case $host_os in
10762 aix*)
10763 lt_prog_compiler_wl='-Wl,'
10764 if test ia64 = "$host_cpu"; then
10765 # AIX 5 now supports IA64 processor
10766 lt_prog_compiler_static='-Bstatic'
10767 else
10768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10769 fi
10770 ;;
10771
10772 darwin* | rhapsody*)
10773 # PIC is the default on this platform
10774 # Common symbols not allowed in MH_DYLIB files
10775 lt_prog_compiler_pic='-fno-common'
10776 case $cc_basename in
10777 nagfor*)
10778 # NAG Fortran compiler
10779 lt_prog_compiler_wl='-Wl,-Wl,,'
10780 lt_prog_compiler_pic='-PIC'
10781 lt_prog_compiler_static='-Bstatic'
10782 ;;
10783 esac
10784 ;;
10785
10786 mingw* | cygwin* | pw32* | os2* | cegcc*)
10787 # This hack is so that the source file can tell whether it is being
10788 # built for inclusion in a dll (and should export symbols for example).
10789 lt_prog_compiler_pic='-DDLL_EXPORT'
10790 case $host_os in
10791 os2*)
10792 lt_prog_compiler_static='$wl-static'
10793 ;;
10794 esac
10795 ;;
10796
10797 hpux9* | hpux10* | hpux11*)
10798 lt_prog_compiler_wl='-Wl,'
10799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10800 # not for PA HP-UX.
10801 case $host_cpu in
10802 hppa*64*|ia64*)
10803 # +Z the default
10804 ;;
10805 *)
10806 lt_prog_compiler_pic='+Z'
10807 ;;
10808 esac
10809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10810 lt_prog_compiler_static='$wl-a ${wl}archive'
10811 ;;
10812
10813 irix5* | irix6* | nonstopux*)
10814 lt_prog_compiler_wl='-Wl,'
10815 # PIC (with -KPIC) is the default.
10816 lt_prog_compiler_static='-non_shared'
10817 ;;
10818
10819 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10820 case $cc_basename in
10821 # old Intel for x86_64, which still supported -KPIC.
10822 ecc*)
10823 lt_prog_compiler_wl='-Wl,'
10824 lt_prog_compiler_pic='-KPIC'
10825 lt_prog_compiler_static='-static'
10826 ;;
10827 # icc used to be incompatible with GCC.
10828 # ICC 10 doesn't accept -KPIC any more.
10829 icc* | ifort*)
10830 lt_prog_compiler_wl='-Wl,'
10831 lt_prog_compiler_pic='-fPIC'
10832 lt_prog_compiler_static='-static'
10833 ;;
10834 # Lahey Fortran 8.1.
10835 lf95*)
10836 lt_prog_compiler_wl='-Wl,'
10837 lt_prog_compiler_pic='--shared'
10838 lt_prog_compiler_static='--static'
10839 ;;
10840 nagfor*)
10841 # NAG Fortran compiler
10842 lt_prog_compiler_wl='-Wl,-Wl,,'
10843 lt_prog_compiler_pic='-PIC'
10844 lt_prog_compiler_static='-Bstatic'
10845 ;;
10846 tcc*)
10847 # Fabrice Bellard et al's Tiny C Compiler
10848 lt_prog_compiler_wl='-Wl,'
10849 lt_prog_compiler_pic='-fPIC'
10850 lt_prog_compiler_static='-static'
10851 ;;
10852 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10853 # Portland Group compilers (*not* the Pentium gcc compiler,
10854 # which looks to be a dead project)
10855 lt_prog_compiler_wl='-Wl,'
10856 lt_prog_compiler_pic='-fpic'
10857 lt_prog_compiler_static='-Bstatic'
10858 ;;
10859 ccc*)
10860 lt_prog_compiler_wl='-Wl,'
10861 # All Alpha code is PIC.
10862 lt_prog_compiler_static='-non_shared'
10863 ;;
10864 xl* | bgxl* | bgf* | mpixl*)
10865 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10866 lt_prog_compiler_wl='-Wl,'
10867 lt_prog_compiler_pic='-qpic'
10868 lt_prog_compiler_static='-qstaticlink'
10869 ;;
10870 *)
10871 case `$CC -V 2>&1 | $SED 5q` in
10872 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10873 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10874 lt_prog_compiler_pic='-KPIC'
10875 lt_prog_compiler_static='-Bstatic'
10876 lt_prog_compiler_wl=''
10877 ;;
10878 *Sun\ F* | *Sun*Fortran*)
10879 lt_prog_compiler_pic='-KPIC'
10880 lt_prog_compiler_static='-Bstatic'
10881 lt_prog_compiler_wl='-Qoption ld '
10882 ;;
10883 *Sun\ C*)
10884 # Sun C 5.9
10885 lt_prog_compiler_pic='-KPIC'
10886 lt_prog_compiler_static='-Bstatic'
10887 lt_prog_compiler_wl='-Wl,'
10888 ;;
10889 *Intel*\ [CF]*Compiler*)
10890 lt_prog_compiler_wl='-Wl,'
10891 lt_prog_compiler_pic='-fPIC'
10892 lt_prog_compiler_static='-static'
10893 ;;
10894 *Portland\ Group*)
10895 lt_prog_compiler_wl='-Wl,'
10896 lt_prog_compiler_pic='-fpic'
10897 lt_prog_compiler_static='-Bstatic'
10898 ;;
10899 esac
10900 ;;
10901 esac
10902 ;;
10903
10904 newsos6)
10905 lt_prog_compiler_pic='-KPIC'
10906 lt_prog_compiler_static='-Bstatic'
10907 ;;
10908
10909 *nto* | *qnx*)
10910 # QNX uses GNU C++, but need to define -shared option too, otherwise
10911 # it will coredump.
10912 lt_prog_compiler_pic='-fPIC -shared'
10913 ;;
10914
10915 osf3* | osf4* | osf5*)
10916 lt_prog_compiler_wl='-Wl,'
10917 # All OSF/1 code is PIC.
10918 lt_prog_compiler_static='-non_shared'
10919 ;;
10920
10921 rdos*)
10922 lt_prog_compiler_static='-non_shared'
10923 ;;
10924
10925 solaris*)
10926 lt_prog_compiler_pic='-KPIC'
10927 lt_prog_compiler_static='-Bstatic'
10928 case $cc_basename in
10929 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10930 lt_prog_compiler_wl='-Qoption ld ';;
10931 *)
10932 lt_prog_compiler_wl='-Wl,';;
10933 esac
10934 ;;
10935
10936 sunos4*)
10937 lt_prog_compiler_wl='-Qoption ld '
10938 lt_prog_compiler_pic='-PIC'
10939 lt_prog_compiler_static='-Bstatic'
10940 ;;
10941
10942 sysv4 | sysv4.2uw2* | sysv4.3*)
10943 lt_prog_compiler_wl='-Wl,'
10944 lt_prog_compiler_pic='-KPIC'
10945 lt_prog_compiler_static='-Bstatic'
10946 ;;
10947
10948 sysv4*MP*)
10949 if test -d /usr/nec; then
10950 lt_prog_compiler_pic='-Kconform_pic'
10951 lt_prog_compiler_static='-Bstatic'
10952 fi
10953 ;;
10954
10955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10956 lt_prog_compiler_wl='-Wl,'
10957 lt_prog_compiler_pic='-KPIC'
10958 lt_prog_compiler_static='-Bstatic'
10959 ;;
10960
10961 unicos*)
10962 lt_prog_compiler_wl='-Wl,'
10963 lt_prog_compiler_can_build_shared=no
10964 ;;
10965
10966 uts4*)
10967 lt_prog_compiler_pic='-pic'
10968 lt_prog_compiler_static='-Bstatic'
10969 ;;
10970
10971 *)
10972 lt_prog_compiler_can_build_shared=no
10973 ;;
10974 esac
10975 fi
10976
10977 case $host_os in
10978 # For platforms that do not support PIC, -DPIC is meaningless:
10979 *djgpp*)
10980 lt_prog_compiler_pic=
10981 ;;
10982 *)
10983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10984 ;;
10985 esac
10986
10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10988 printf %s "checking for $compiler option to produce PIC... " >&6; }
10989 if test ${lt_cv_prog_compiler_pic+y}
10990 then :
10991 printf %s "(cached) " >&6
10992 else case e in #(
10993 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10994 esac
10995 fi
10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10997 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10998 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10999
11000 #
11001 # Check to make sure the PIC flag actually works.
11002 #
11003 if test -n "$lt_prog_compiler_pic"; then
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11005 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11006 if test ${lt_cv_prog_compiler_pic_works+y}
11007 then :
11008 printf %s "(cached) " >&6
11009 else case e in #(
11010 e) lt_cv_prog_compiler_pic_works=no
11011 ac_outfile=conftest.$ac_objext
11012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11014 # Insert the option either (1) after the last *FLAGS variable, or
11015 # (2) before a word containing "conftest.", or (3) at the end.
11016 # Note that $ac_compile itself does not contain backslashes and begins
11017 # with a dollar sign (not a hyphen), so the echo should work correctly.
11018 # The option is referenced via a variable to avoid confusing sed.
11019 lt_compile=`echo "$ac_compile" | $SED \
11020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11022 -e 's:$: $lt_compiler_flag:'`
11023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11024 (eval "$lt_compile" 2>conftest.err)
11025 ac_status=$?
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 if (exit $ac_status) && test -s "$ac_outfile"; then
11029 # The compiler can only warn and ignore the option if not recognized
11030 # So say no if there are warnings other than the usual output.
11031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11034 lt_cv_prog_compiler_pic_works=yes
11035 fi
11036 fi
11037 $RM conftest*
11038 ;;
11039 esac
11040 fi
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11042 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11043
11044 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11045 case $lt_prog_compiler_pic in
11046 "" | " "*) ;;
11047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11048 esac
11049 else
11050 lt_prog_compiler_pic=
11051 lt_prog_compiler_can_build_shared=no
11052 fi
11053
11054 fi
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066 #
11067 # Check to make sure the static flag actually works.
11068 #
11069 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11071 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11072 if test ${lt_cv_prog_compiler_static_works+y}
11073 then :
11074 printf %s "(cached) " >&6
11075 else case e in #(
11076 e) lt_cv_prog_compiler_static_works=no
11077 save_LDFLAGS=$LDFLAGS
11078 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11079 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11080 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11081 # The linker can only warn and ignore the option if not recognized
11082 # So say no if there are warnings
11083 if test -s conftest.err; then
11084 # Append any errors to the config.log.
11085 cat conftest.err 1>&5
11086 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11088 if diff conftest.exp conftest.er2 >/dev/null; then
11089 lt_cv_prog_compiler_static_works=yes
11090 fi
11091 else
11092 lt_cv_prog_compiler_static_works=yes
11093 fi
11094 fi
11095 $RM -r conftest*
11096 LDFLAGS=$save_LDFLAGS
11097 ;;
11098 esac
11099 fi
11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11101 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11102
11103 if test yes = "$lt_cv_prog_compiler_static_works"; then
11104 :
11105 else
11106 lt_prog_compiler_static=
11107 fi
11108
11109
11110
11111
11112
11113
11114
11115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11116 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11117 if test ${lt_cv_prog_compiler_c_o+y}
11118 then :
11119 printf %s "(cached) " >&6
11120 else case e in #(
11121 e) lt_cv_prog_compiler_c_o=no
11122 $RM -r conftest 2>/dev/null
11123 mkdir conftest
11124 cd conftest
11125 mkdir out
11126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11127
11128 lt_compiler_flag="-o out/conftest2.$ac_objext"
11129 # Insert the option either (1) after the last *FLAGS variable, or
11130 # (2) before a word containing "conftest.", or (3) at the end.
11131 # Note that $ac_compile itself does not contain backslashes and begins
11132 # with a dollar sign (not a hyphen), so the echo should work correctly.
11133 lt_compile=`echo "$ac_compile" | $SED \
11134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11136 -e 's:$: $lt_compiler_flag:'`
11137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11138 (eval "$lt_compile" 2>out/conftest.err)
11139 ac_status=$?
11140 cat out/conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11143 then
11144 # The compiler can only warn and ignore the option if not recognized
11145 # So say no if there are warnings
11146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11149 lt_cv_prog_compiler_c_o=yes
11150 fi
11151 fi
11152 chmod u+w . 2>&5
11153 $RM conftest*
11154 # SGI C++ compiler will create directory out/ii_files/ for
11155 # template instantiation
11156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11157 $RM out/* && rmdir out
11158 cd ..
11159 $RM -r conftest
11160 $RM conftest*
11161 ;;
11162 esac
11163 fi
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11165 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11166
11167
11168
11169
11170
11171
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11173 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11174 if test ${lt_cv_prog_compiler_c_o+y}
11175 then :
11176 printf %s "(cached) " >&6
11177 else case e in #(
11178 e) lt_cv_prog_compiler_c_o=no
11179 $RM -r conftest 2>/dev/null
11180 mkdir conftest
11181 cd conftest
11182 mkdir out
11183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11184
11185 lt_compiler_flag="-o out/conftest2.$ac_objext"
11186 # Insert the option either (1) after the last *FLAGS variable, or
11187 # (2) before a word containing "conftest.", or (3) at the end.
11188 # Note that $ac_compile itself does not contain backslashes and begins
11189 # with a dollar sign (not a hyphen), so the echo should work correctly.
11190 lt_compile=`echo "$ac_compile" | $SED \
11191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11193 -e 's:$: $lt_compiler_flag:'`
11194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11195 (eval "$lt_compile" 2>out/conftest.err)
11196 ac_status=$?
11197 cat out/conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11200 then
11201 # The compiler can only warn and ignore the option if not recognized
11202 # So say no if there are warnings
11203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11206 lt_cv_prog_compiler_c_o=yes
11207 fi
11208 fi
11209 chmod u+w . 2>&5
11210 $RM conftest*
11211 # SGI C++ compiler will create directory out/ii_files/ for
11212 # template instantiation
11213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11214 $RM out/* && rmdir out
11215 cd ..
11216 $RM -r conftest
11217 $RM conftest*
11218 ;;
11219 esac
11220 fi
11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11222 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11223
11224
11225
11226
11227 hard_links=nottested
11228 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11229 # do not overwrite the value of need_locks provided by the user
11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11231 printf %s "checking if we can lock with hard links... " >&6; }
11232 hard_links=yes
11233 $RM conftest*
11234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11235 touch conftest.a
11236 ln conftest.a conftest.b 2>&5 || hard_links=no
11237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11239 printf "%s\n" "$hard_links" >&6; }
11240 if test no = "$hard_links"; then
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11242 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11243 need_locks=warn
11244 fi
11245 else
11246 need_locks=no
11247 fi
11248
11249
11250
11251
11252
11253
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11255 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11256
11257 runpath_var=
11258 allow_undefined_flag=
11259 always_export_symbols=no
11260 archive_cmds=
11261 archive_expsym_cmds=
11262 compiler_needs_object=no
11263 enable_shared_with_static_runtimes=no
11264 export_dynamic_flag_spec=
11265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11266 hardcode_automatic=no
11267 hardcode_direct=no
11268 hardcode_direct_absolute=no
11269 hardcode_libdir_flag_spec=
11270 hardcode_libdir_separator=
11271 hardcode_minus_L=no
11272 hardcode_shlibpath_var=unsupported
11273 inherit_rpath=no
11274 link_all_deplibs=unknown
11275 module_cmds=
11276 module_expsym_cmds=
11277 old_archive_from_new_cmds=
11278 old_archive_from_expsyms_cmds=
11279 thread_safe_flag_spec=
11280 whole_archive_flag_spec=
11281 # include_expsyms should be a list of space-separated symbols to be *always*
11282 # included in the symbol list
11283 include_expsyms=
11284 # exclude_expsyms can be an extended regexp of symbols to exclude
11285 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11286 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11287 # as well as any symbol that contains 'd'.
11288 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11290 # platforms (ab)use it in PIC code, but their linkers get confused if
11291 # the symbol is explicitly referenced. Since portable code cannot
11292 # rely on this symbol name, it's probably fine to never include it in
11293 # preloaded symbol tables.
11294 # Exclude shared library initialization/finalization symbols.
11295 extract_expsyms_cmds=
11296
11297 case $host_os in
11298 cygwin* | mingw* | pw32* | cegcc*)
11299 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11300 # When not using gcc, we currently assume that we are using
11301 # Microsoft Visual C++ or Intel C++ Compiler.
11302 if test yes != "$GCC"; then
11303 with_gnu_ld=no
11304 fi
11305 ;;
11306 interix*)
11307 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11308 with_gnu_ld=yes
11309 ;;
11310 openbsd* | bitrig*)
11311 with_gnu_ld=no
11312 ;;
11313 esac
11314
11315 ld_shlibs=yes
11316
11317 # On some targets, GNU ld is compatible enough with the native linker
11318 # that we're better off using the native interface for both.
11319 lt_use_gnu_ld_interface=no
11320 if test yes = "$with_gnu_ld"; then
11321 case $host_os in
11322 aix*)
11323 # The AIX port of GNU ld has always aspired to compatibility
11324 # with the native linker. However, as the warning in the GNU ld
11325 # block says, versions before 2.19.5* couldn't really create working
11326 # shared libraries, regardless of the interface used.
11327 case `$LD -v 2>&1` in
11328 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11329 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11330 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11331 *)
11332 lt_use_gnu_ld_interface=yes
11333 ;;
11334 esac
11335 ;;
11336 *)
11337 lt_use_gnu_ld_interface=yes
11338 ;;
11339 esac
11340 fi
11341
11342 if test yes = "$lt_use_gnu_ld_interface"; then
11343 # If archive_cmds runs LD, not CC, wlarc should be empty
11344 wlarc='$wl'
11345
11346 # Set some defaults for GNU ld with shared library support. These
11347 # are reset later if shared libraries are not supported. Putting them
11348 # here allows them to be overridden if necessary.
11349 runpath_var=LD_RUN_PATH
11350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11351 export_dynamic_flag_spec='$wl--export-dynamic'
11352 # ancient GNU ld didn't support --whole-archive et. al.
11353 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11354 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11355 else
11356 whole_archive_flag_spec=
11357 fi
11358 supports_anon_versioning=no
11359 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11360 *GNU\ gold*) supports_anon_versioning=yes ;;
11361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11364 *\ 2.11.*) ;; # other 2.11 versions
11365 *) supports_anon_versioning=yes ;;
11366 esac
11367
11368 # See if GNU ld supports shared libraries.
11369 case $host_os in
11370 aix[3-9]*)
11371 # On AIX/PPC, the GNU linker is very broken
11372 if test ia64 != "$host_cpu"; then
11373 ld_shlibs=no
11374 cat <<_LT_EOF 1>&2
11375
11376 *** Warning: the GNU linker, at least up to release 2.19, is reported
11377 *** to be unable to reliably create shared libraries on AIX.
11378 *** Therefore, libtool is disabling shared libraries support. If you
11379 *** really care for shared libraries, you may want to install binutils
11380 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11381 *** You will then need to restart the configuration process.
11382
11383 _LT_EOF
11384 fi
11385 ;;
11386
11387 amigaos*)
11388 case $host_cpu in
11389 powerpc)
11390 # see comment about AmigaOS4 .so support
11391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11392 archive_expsym_cmds=''
11393 ;;
11394 m68k)
11395 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)'
11396 hardcode_libdir_flag_spec='-L$libdir'
11397 hardcode_minus_L=yes
11398 ;;
11399 esac
11400 ;;
11401
11402 beos*)
11403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11404 allow_undefined_flag=unsupported
11405 # Joseph Beckenbach <[email protected]> says some releases of gcc
11406 # support --undefined. This deserves some investigation. FIXME
11407 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11408 else
11409 ld_shlibs=no
11410 fi
11411 ;;
11412
11413 cygwin* | mingw* | pw32* | cegcc*)
11414 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11415 # as there is no search path for DLLs.
11416 hardcode_libdir_flag_spec='-L$libdir'
11417 export_dynamic_flag_spec='$wl--export-all-symbols'
11418 allow_undefined_flag=unsupported
11419 always_export_symbols=no
11420 enable_shared_with_static_runtimes=yes
11421 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'
11422 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11423
11424 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11426 # If the export-symbols file already is a .def file, use it as
11427 # is; otherwise, prepend EXPORTS...
11428 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11429 cp $export_symbols $output_objdir/$soname.def;
11430 else
11431 echo EXPORTS > $output_objdir/$soname.def;
11432 cat $export_symbols >> $output_objdir/$soname.def;
11433 fi~
11434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11435 else
11436 ld_shlibs=no
11437 fi
11438 ;;
11439
11440 haiku*)
11441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11442 link_all_deplibs=yes
11443 ;;
11444
11445 os2*)
11446 hardcode_libdir_flag_spec='-L$libdir'
11447 hardcode_minus_L=yes
11448 allow_undefined_flag=unsupported
11449 shrext_cmds=.dll
11450 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11451 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11452 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11453 $ECHO EXPORTS >> $output_objdir/$libname.def~
11454 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11455 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11456 emximp -o $lib $output_objdir/$libname.def'
11457 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11458 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11459 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11460 $ECHO EXPORTS >> $output_objdir/$libname.def~
11461 prefix_cmds="$SED"~
11462 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11463 prefix_cmds="$prefix_cmds -e 1d";
11464 fi~
11465 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11466 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11467 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11468 emximp -o $lib $output_objdir/$libname.def'
11469 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11470 enable_shared_with_static_runtimes=yes
11471 file_list_spec='@'
11472 ;;
11473
11474 interix[3-9]*)
11475 hardcode_direct=no
11476 hardcode_shlibpath_var=no
11477 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11478 export_dynamic_flag_spec='$wl-E'
11479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11480 # Instead, shared libraries are loaded at an image base (0x10000000 by
11481 # default) and relocated if they conflict, which is a slow very memory
11482 # consuming and fragmenting process. To avoid this, we pick a random,
11483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11486 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'
11487 ;;
11488
11489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11490 tmp_diet=no
11491 if test linux-dietlibc = "$host_os"; then
11492 case $cc_basename in
11493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11494 esac
11495 fi
11496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11497 && test no = "$tmp_diet"
11498 then
11499 tmp_addflag=' $pic_flag'
11500 tmp_sharedflag='-shared'
11501 case $cc_basename,$host_cpu in
11502 pgcc*) # Portland Group C compiler
11503 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'
11504 tmp_addflag=' $pic_flag'
11505 ;;
11506 pgf77* | pgf90* | pgf95* | pgfortran*)
11507 # Portland Group f77 and f90 compilers
11508 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'
11509 tmp_addflag=' $pic_flag -Mnomain' ;;
11510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11511 tmp_addflag=' -i_dynamic' ;;
11512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11513 tmp_addflag=' -i_dynamic -nofor_main' ;;
11514 ifc* | ifort*) # Intel Fortran compiler
11515 tmp_addflag=' -nofor_main' ;;
11516 lf95*) # Lahey Fortran 8.1
11517 whole_archive_flag_spec=
11518 tmp_sharedflag='--shared' ;;
11519 nagfor*) # NAGFOR 5.3
11520 tmp_sharedflag='-Wl,-shared' ;;
11521 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11522 tmp_sharedflag='-qmkshrobj'
11523 tmp_addflag= ;;
11524 nvcc*) # Cuda Compiler Driver 2.2
11525 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'
11526 compiler_needs_object=yes
11527 ;;
11528 esac
11529 case `$CC -V 2>&1 | $SED 5q` in
11530 *Sun\ C*) # Sun C 5.9
11531 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'
11532 compiler_needs_object=yes
11533 tmp_sharedflag='-G' ;;
11534 *Sun\ F*) # Sun Fortran 8.3
11535 tmp_sharedflag='-G' ;;
11536 esac
11537 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11538
11539 if test yes = "$supports_anon_versioning"; then
11540 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11541 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11542 echo "local: *; };" >> $output_objdir/$libname.ver~
11543 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11544 fi
11545
11546 case $cc_basename in
11547 tcc*)
11548 export_dynamic_flag_spec='-rdynamic'
11549 ;;
11550 xlf* | bgf* | bgxlf* | mpixlf*)
11551 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11552 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11553 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11554 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11555 if test yes = "$supports_anon_versioning"; then
11556 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11557 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11558 echo "local: *; };" >> $output_objdir/$libname.ver~
11559 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11560 fi
11561 ;;
11562 esac
11563 else
11564 ld_shlibs=no
11565 fi
11566 ;;
11567
11568 netbsd*)
11569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11570 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11571 wlarc=
11572 else
11573 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11574 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11575 fi
11576 ;;
11577
11578 solaris*)
11579 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11580 ld_shlibs=no
11581 cat <<_LT_EOF 1>&2
11582
11583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11584 *** create shared libraries on Solaris systems. Therefore, libtool
11585 *** is disabling shared libraries support. We urge you to upgrade GNU
11586 *** binutils to release 2.9.1 or newer. Another option is to modify
11587 *** your PATH or compiler configuration so that the native linker is
11588 *** used, and then restart.
11589
11590 _LT_EOF
11591 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11592 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11593 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11594 else
11595 ld_shlibs=no
11596 fi
11597 ;;
11598
11599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11600 case `$LD -v 2>&1` in
11601 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11602 ld_shlibs=no
11603 cat <<_LT_EOF 1>&2
11604
11605 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11606 *** reliably create shared libraries on SCO systems. Therefore, libtool
11607 *** is disabling shared libraries support. We urge you to upgrade GNU
11608 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11609 *** your PATH or compiler configuration so that the native linker is
11610 *** used, and then restart.
11611
11612 _LT_EOF
11613 ;;
11614 *)
11615 # For security reasons, it is highly recommended that you always
11616 # use absolute paths for naming shared libraries, and exclude the
11617 # DT_RUNPATH tag from executables and libraries. But doing so
11618 # requires that you compile everything twice, which is a pain.
11619 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11623 else
11624 ld_shlibs=no
11625 fi
11626 ;;
11627 esac
11628 ;;
11629
11630 sunos4*)
11631 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11632 wlarc=
11633 hardcode_direct=yes
11634 hardcode_shlibpath_var=no
11635 ;;
11636
11637 *)
11638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11640 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11641 else
11642 ld_shlibs=no
11643 fi
11644 ;;
11645 esac
11646
11647 if test no = "$ld_shlibs"; then
11648 runpath_var=
11649 hardcode_libdir_flag_spec=
11650 export_dynamic_flag_spec=
11651 whole_archive_flag_spec=
11652 fi
11653 else
11654 # PORTME fill in a description of your system's linker (not GNU ld)
11655 case $host_os in
11656 aix3*)
11657 allow_undefined_flag=unsupported
11658 always_export_symbols=yes
11659 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'
11660 # Note: this linker hardcodes the directories in LIBPATH if there
11661 # are no directories specified by -L.
11662 hardcode_minus_L=yes
11663 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11664 # Neither direct hardcoding nor static linking is supported with a
11665 # broken collect2.
11666 hardcode_direct=unsupported
11667 fi
11668 ;;
11669
11670 aix[4-9]*)
11671 if test ia64 = "$host_cpu"; then
11672 # On IA64, the linker does run time linking by default, so we don't
11673 # have to do anything special.
11674 aix_use_runtimelinking=no
11675 exp_sym_flag='-Bexport'
11676 no_entry_flag=
11677 else
11678 # If we're using GNU nm, then we don't want the "-C" option.
11679 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11680 # Without the "-l" option, or with the "-B" option, AIX nm treats
11681 # weak defined symbols like other global defined symbols, whereas
11682 # GNU nm marks them as "W".
11683 # While the 'weak' keyword is ignored in the Export File, we need
11684 # it in the Import File for the 'aix-soname' feature, so we have
11685 # to replace the "-B" option with "-P" for AIX nm.
11686 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11687 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'
11688 else
11689 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'
11690 fi
11691 aix_use_runtimelinking=no
11692
11693 # Test if we are trying to use run time linking or normal
11694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11695 # have runtime linking enabled, and use it for executables.
11696 # For shared libraries, we enable/disable runtime linking
11697 # depending on the kind of the shared library created -
11698 # when "with_aix_soname,aix_use_runtimelinking" is:
11699 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11700 # "aix,yes" lib.so shared, rtl:yes, for executables
11701 # lib.a static archive
11702 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11703 # lib.a(lib.so.V) shared, rtl:no, for executables
11704 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11705 # lib.a(lib.so.V) shared, rtl:no
11706 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11707 # lib.a static archive
11708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11709 for ld_flag in $LDFLAGS; do
11710 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11711 aix_use_runtimelinking=yes
11712 break
11713 fi
11714 done
11715 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11716 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11717 # so we don't have lib.a shared libs to link our executables.
11718 # We have to force runtime linking in this case.
11719 aix_use_runtimelinking=yes
11720 LDFLAGS="$LDFLAGS -Wl,-brtl"
11721 fi
11722 ;;
11723 esac
11724
11725 exp_sym_flag='-bexport'
11726 no_entry_flag='-bnoentry'
11727 fi
11728
11729 # When large executables or shared objects are built, AIX ld can
11730 # have problems creating the table of contents. If linking a library
11731 # or program results in "error TOC overflow" add -mminimal-toc to
11732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11734
11735 archive_cmds=''
11736 hardcode_direct=yes
11737 hardcode_direct_absolute=yes
11738 hardcode_libdir_separator=':'
11739 link_all_deplibs=yes
11740 file_list_spec='$wl-f,'
11741 case $with_aix_soname,$aix_use_runtimelinking in
11742 aix,*) ;; # traditional, no import file
11743 svr4,* | *,yes) # use import file
11744 # The Import File defines what to hardcode.
11745 hardcode_direct=no
11746 hardcode_direct_absolute=no
11747 ;;
11748 esac
11749
11750 if test yes = "$GCC"; then
11751 case $host_os in aix4.[012]|aix4.[012].*)
11752 # We only want to do this on AIX 4.2 and lower, the check
11753 # below for broken collect2 doesn't work under 4.3+
11754 collect2name=`$CC -print-prog-name=collect2`
11755 if test -f "$collect2name" &&
11756 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11757 then
11758 # We have reworked collect2
11759 :
11760 else
11761 # We have old collect2
11762 hardcode_direct=unsupported
11763 # It fails to find uninstalled libraries when the uninstalled
11764 # path is not listed in the libpath. Setting hardcode_minus_L
11765 # to unsupported forces relinking
11766 hardcode_minus_L=yes
11767 hardcode_libdir_flag_spec='-L$libdir'
11768 hardcode_libdir_separator=
11769 fi
11770 ;;
11771 esac
11772 shared_flag='-shared'
11773 if test yes = "$aix_use_runtimelinking"; then
11774 shared_flag="$shared_flag "'$wl-G'
11775 fi
11776 # Need to ensure runtime linking is disabled for the traditional
11777 # shared library, or the linker may eventually find shared libraries
11778 # /with/ Import File - we do not want to mix them.
11779 shared_flag_aix='-shared'
11780 shared_flag_svr4='-shared $wl-G'
11781 else
11782 # not using gcc
11783 if test ia64 = "$host_cpu"; then
11784 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11785 # chokes on -Wl,-G. The following line is correct:
11786 shared_flag='-G'
11787 else
11788 if test yes = "$aix_use_runtimelinking"; then
11789 shared_flag='$wl-G'
11790 else
11791 shared_flag='$wl-bM:SRE'
11792 fi
11793 shared_flag_aix='$wl-bM:SRE'
11794 shared_flag_svr4='$wl-G'
11795 fi
11796 fi
11797
11798 export_dynamic_flag_spec='$wl-bexpall'
11799 # It seems that -bexpall does not export symbols beginning with
11800 # underscore (_), so it is better to generate a list of symbols to export.
11801 always_export_symbols=yes
11802 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11803 # Warning - without using the other runtime loading flags (-brtl),
11804 # -berok will link without error, but may produce a broken library.
11805 allow_undefined_flag='-berok'
11806 # Determine the default libpath from the value encoded in an
11807 # empty executable.
11808 if test set = "${lt_cv_aix_libpath+set}"; then
11809 aix_libpath=$lt_cv_aix_libpath
11810 else
11811 if test ${lt_cv_aix_libpath_+y}
11812 then :
11813 printf %s "(cached) " >&6
11814 else case e in #(
11815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817
11818 int
11819 main (void)
11820 {
11821
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"
11827 then :
11828
11829 lt_aix_libpath_sed='
11830 /Import File Strings/,/^$/ {
11831 /^0/ {
11832 s/^0 *\([^ ]*\) *$/\1/
11833 p
11834 }
11835 }'
11836 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11837 # Check for a 64-bit object if we didn't find anything.
11838 if test -z "$lt_cv_aix_libpath_"; then
11839 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11840 fi
11841 fi
11842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11843 conftest$ac_exeext conftest.$ac_ext
11844 if test -z "$lt_cv_aix_libpath_"; then
11845 lt_cv_aix_libpath_=/usr/lib:/lib
11846 fi
11847 ;;
11848 esac
11849 fi
11850
11851 aix_libpath=$lt_cv_aix_libpath_
11852 fi
11853
11854 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11855 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
11856 else
11857 if test ia64 = "$host_cpu"; then
11858 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11859 allow_undefined_flag="-z nodefs"
11860 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"
11861 else
11862 # Determine the default libpath from the value encoded in an
11863 # empty executable.
11864 if test set = "${lt_cv_aix_libpath+set}"; then
11865 aix_libpath=$lt_cv_aix_libpath
11866 else
11867 if test ${lt_cv_aix_libpath_+y}
11868 then :
11869 printf %s "(cached) " >&6
11870 else case e in #(
11871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 int
11875 main (void)
11876 {
11877
11878 ;
11879 return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_link "$LINENO"
11883 then :
11884
11885 lt_aix_libpath_sed='
11886 /Import File Strings/,/^$/ {
11887 /^0/ {
11888 s/^0 *\([^ ]*\) *$/\1/
11889 p
11890 }
11891 }'
11892 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11893 # Check for a 64-bit object if we didn't find anything.
11894 if test -z "$lt_cv_aix_libpath_"; then
11895 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11896 fi
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11899 conftest$ac_exeext conftest.$ac_ext
11900 if test -z "$lt_cv_aix_libpath_"; then
11901 lt_cv_aix_libpath_=/usr/lib:/lib
11902 fi
11903 ;;
11904 esac
11905 fi
11906
11907 aix_libpath=$lt_cv_aix_libpath_
11908 fi
11909
11910 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11911 # Warning - without using the other run time loading flags,
11912 # -berok will link without error, but may produce a broken library.
11913 no_undefined_flag=' $wl-bernotok'
11914 allow_undefined_flag=' $wl-berok'
11915 if test yes = "$with_gnu_ld"; then
11916 # We only use this code for GNU lds that support --whole-archive.
11917 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11918 else
11919 # Exported symbols can be pulled into shared objects from archives
11920 whole_archive_flag_spec='$convenience'
11921 fi
11922 archive_cmds_need_lc=yes
11923 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11924 # -brtl affects multiple linker settings, -berok does not and is overridden later
11925 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11926 if test svr4 != "$with_aix_soname"; then
11927 # This is similar to how AIX traditionally builds its shared libraries.
11928 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'
11929 fi
11930 if test aix != "$with_aix_soname"; then
11931 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'
11932 else
11933 # used by -dlpreopen to get the symbols
11934 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11935 fi
11936 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11937 fi
11938 fi
11939 ;;
11940
11941 amigaos*)
11942 case $host_cpu in
11943 powerpc)
11944 # see comment about AmigaOS4 .so support
11945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11946 archive_expsym_cmds=''
11947 ;;
11948 m68k)
11949 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)'
11950 hardcode_libdir_flag_spec='-L$libdir'
11951 hardcode_minus_L=yes
11952 ;;
11953 esac
11954 ;;
11955
11956 bsdi[45]*)
11957 export_dynamic_flag_spec=-rdynamic
11958 ;;
11959
11960 cygwin* | mingw* | pw32* | cegcc*)
11961 # When not using gcc, we currently assume that we are using
11962 # Microsoft Visual C++ or Intel C++ Compiler.
11963 # hardcode_libdir_flag_spec is actually meaningless, as there is
11964 # no search path for DLLs.
11965 case $cc_basename in
11966 cl* | icl*)
11967 # Native MSVC or ICC
11968 hardcode_libdir_flag_spec=' '
11969 allow_undefined_flag=unsupported
11970 always_export_symbols=yes
11971 file_list_spec='@'
11972 # Tell ltmain to make .lib files, not .a files.
11973 libext=lib
11974 # Tell ltmain to make .dll files, not .so files.
11975 shrext_cmds=.dll
11976 # FIXME: Setting linknames here is a bad hack.
11977 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11978 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11979 cp "$export_symbols" "$output_objdir/$soname.def";
11980 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11981 else
11982 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11983 fi~
11984 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11985 linknames='
11986 # The linker will not automatically build a static lib if we build a DLL.
11987 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11988 enable_shared_with_static_runtimes=yes
11989 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11991 # Don't use ranlib
11992 old_postinstall_cmds='chmod 644 $oldlib'
11993 postlink_cmds='lt_outputfile="@OUTPUT@"~
11994 lt_tool_outputfile="@TOOL_OUTPUT@"~
11995 case $lt_outputfile in
11996 *.exe|*.EXE) ;;
11997 *)
11998 lt_outputfile=$lt_outputfile.exe
11999 lt_tool_outputfile=$lt_tool_outputfile.exe
12000 ;;
12001 esac~
12002 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12003 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12004 $RM "$lt_outputfile.manifest";
12005 fi'
12006 ;;
12007 *)
12008 # Assume MSVC and ICC wrapper
12009 hardcode_libdir_flag_spec=' '
12010 allow_undefined_flag=unsupported
12011 # Tell ltmain to make .lib files, not .a files.
12012 libext=lib
12013 # Tell ltmain to make .dll files, not .so files.
12014 shrext_cmds=.dll
12015 # FIXME: Setting linknames here is a bad hack.
12016 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12017 # The linker will automatically build a .lib file if we build a DLL.
12018 old_archive_from_new_cmds='true'
12019 # FIXME: Should let the user specify the lib program.
12020 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12021 enable_shared_with_static_runtimes=yes
12022 ;;
12023 esac
12024 ;;
12025
12026 darwin* | rhapsody*)
12027
12028
12029 archive_cmds_need_lc=no
12030 hardcode_direct=no
12031 hardcode_automatic=yes
12032 hardcode_shlibpath_var=unsupported
12033 if test yes = "$lt_cv_ld_force_load"; then
12034 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\"`'
12035
12036 else
12037 whole_archive_flag_spec=''
12038 fi
12039 link_all_deplibs=yes
12040 allow_undefined_flag=$_lt_dar_allow_undefined
12041 case $cc_basename in
12042 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12043 *) _lt_dar_can_shared=$GCC ;;
12044 esac
12045 if test yes = "$_lt_dar_can_shared"; then
12046 output_verbose_link_cmd=func_echo_all
12047 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12048 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12049 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"
12050 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"
12051
12052 else
12053 ld_shlibs=no
12054 fi
12055
12056 ;;
12057
12058 dgux*)
12059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12060 hardcode_libdir_flag_spec='-L$libdir'
12061 hardcode_shlibpath_var=no
12062 ;;
12063
12064 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12065 # support. Future versions do this automatically, but an explicit c++rt0.o
12066 # does not break anything, and helps significantly (at the cost of a little
12067 # extra space).
12068 freebsd2.2*)
12069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12070 hardcode_libdir_flag_spec='-R$libdir'
12071 hardcode_direct=yes
12072 hardcode_shlibpath_var=no
12073 ;;
12074
12075 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12076 freebsd2.*)
12077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12078 hardcode_direct=yes
12079 hardcode_minus_L=yes
12080 hardcode_shlibpath_var=no
12081 ;;
12082
12083 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12084 freebsd* | dragonfly* | midnightbsd*)
12085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12086 hardcode_libdir_flag_spec='-R$libdir'
12087 hardcode_direct=yes
12088 hardcode_shlibpath_var=no
12089 ;;
12090
12091 hpux9*)
12092 if test yes = "$GCC"; then
12093 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'
12094 else
12095 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'
12096 fi
12097 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12098 hardcode_libdir_separator=:
12099 hardcode_direct=yes
12100
12101 # hardcode_minus_L: Not really in the search PATH,
12102 # but as the default location of the library.
12103 hardcode_minus_L=yes
12104 export_dynamic_flag_spec='$wl-E'
12105 ;;
12106
12107 hpux10*)
12108 if test yes,no = "$GCC,$with_gnu_ld"; then
12109 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12110 else
12111 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12112 fi
12113 if test no = "$with_gnu_ld"; then
12114 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12115 hardcode_libdir_separator=:
12116 hardcode_direct=yes
12117 hardcode_direct_absolute=yes
12118 export_dynamic_flag_spec='$wl-E'
12119 # hardcode_minus_L: Not really in the search PATH,
12120 # but as the default location of the library.
12121 hardcode_minus_L=yes
12122 fi
12123 ;;
12124
12125 hpux11*)
12126 if test yes,no = "$GCC,$with_gnu_ld"; then
12127 case $host_cpu in
12128 hppa*64*)
12129 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12130 ;;
12131 ia64*)
12132 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12133 ;;
12134 *)
12135 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12136 ;;
12137 esac
12138 else
12139 case $host_cpu in
12140 hppa*64*)
12141 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 ;;
12143 ia64*)
12144 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12145 ;;
12146 *)
12147
12148 # Older versions of the 11.00 compiler do not understand -b yet
12149 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12151 printf %s "checking if $CC understands -b... " >&6; }
12152 if test ${lt_cv_prog_compiler__b+y}
12153 then :
12154 printf %s "(cached) " >&6
12155 else case e in #(
12156 e) lt_cv_prog_compiler__b=no
12157 save_LDFLAGS=$LDFLAGS
12158 LDFLAGS="$LDFLAGS -b"
12159 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12161 # The linker can only warn and ignore the option if not recognized
12162 # So say no if there are warnings
12163 if test -s conftest.err; then
12164 # Append any errors to the config.log.
12165 cat conftest.err 1>&5
12166 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12168 if diff conftest.exp conftest.er2 >/dev/null; then
12169 lt_cv_prog_compiler__b=yes
12170 fi
12171 else
12172 lt_cv_prog_compiler__b=yes
12173 fi
12174 fi
12175 $RM -r conftest*
12176 LDFLAGS=$save_LDFLAGS
12177 ;;
12178 esac
12179 fi
12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12181 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12182
12183 if test yes = "$lt_cv_prog_compiler__b"; then
12184 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12185 else
12186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12187 fi
12188
12189 ;;
12190 esac
12191 fi
12192 if test no = "$with_gnu_ld"; then
12193 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12194 hardcode_libdir_separator=:
12195
12196 case $host_cpu in
12197 hppa*64*|ia64*)
12198 hardcode_direct=no
12199 hardcode_shlibpath_var=no
12200 ;;
12201 *)
12202 hardcode_direct=yes
12203 hardcode_direct_absolute=yes
12204 export_dynamic_flag_spec='$wl-E'
12205
12206 # hardcode_minus_L: Not really in the search PATH,
12207 # but as the default location of the library.
12208 hardcode_minus_L=yes
12209 ;;
12210 esac
12211 fi
12212 ;;
12213
12214 irix5* | irix6* | nonstopux*)
12215 if test yes = "$GCC"; then
12216 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'
12217 # Try to use the -exported_symbol ld option, if it does not
12218 # work, assume that -exports_file does not work either and
12219 # implicitly export all symbols.
12220 # This should be the same for all languages, so no per-tag cache variable.
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12222 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12223 if test ${lt_cv_irix_exported_symbol+y}
12224 then :
12225 printf %s "(cached) " >&6
12226 else case e in #(
12227 e) save_LDFLAGS=$LDFLAGS
12228 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 int foo (void) { return 0; }
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"
12234 then :
12235 lt_cv_irix_exported_symbol=yes
12236 else case e in #(
12237 e) lt_cv_irix_exported_symbol=no ;;
12238 esac
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LDFLAGS=$save_LDFLAGS ;;
12243 esac
12244 fi
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12246 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12247 if test yes = "$lt_cv_irix_exported_symbol"; then
12248 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'
12249 fi
12250 else
12251 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'
12252 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'
12253 fi
12254 archive_cmds_need_lc='no'
12255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12256 hardcode_libdir_separator=:
12257 inherit_rpath=yes
12258 link_all_deplibs=yes
12259 ;;
12260
12261 linux*)
12262 case $cc_basename in
12263 tcc*)
12264 # Fabrice Bellard et al's Tiny C Compiler
12265 ld_shlibs=yes
12266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12267 ;;
12268 esac
12269 ;;
12270
12271 netbsd*)
12272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12274 else
12275 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12276 fi
12277 hardcode_libdir_flag_spec='-R$libdir'
12278 hardcode_direct=yes
12279 hardcode_shlibpath_var=no
12280 ;;
12281
12282 newsos6)
12283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12284 hardcode_direct=yes
12285 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12286 hardcode_libdir_separator=:
12287 hardcode_shlibpath_var=no
12288 ;;
12289
12290 *nto* | *qnx*)
12291 ;;
12292
12293 openbsd* | bitrig*)
12294 if test -f /usr/libexec/ld.so; then
12295 hardcode_direct=yes
12296 hardcode_shlibpath_var=no
12297 hardcode_direct_absolute=yes
12298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12300 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12301 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12302 export_dynamic_flag_spec='$wl-E'
12303 else
12304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12305 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12306 fi
12307 else
12308 ld_shlibs=no
12309 fi
12310 ;;
12311
12312 os2*)
12313 hardcode_libdir_flag_spec='-L$libdir'
12314 hardcode_minus_L=yes
12315 allow_undefined_flag=unsupported
12316 shrext_cmds=.dll
12317 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12318 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12319 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12320 $ECHO EXPORTS >> $output_objdir/$libname.def~
12321 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12322 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12323 emximp -o $lib $output_objdir/$libname.def'
12324 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12325 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12326 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12327 $ECHO EXPORTS >> $output_objdir/$libname.def~
12328 prefix_cmds="$SED"~
12329 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12330 prefix_cmds="$prefix_cmds -e 1d";
12331 fi~
12332 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12333 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12334 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12335 emximp -o $lib $output_objdir/$libname.def'
12336 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12337 enable_shared_with_static_runtimes=yes
12338 file_list_spec='@'
12339 ;;
12340
12341 osf3*)
12342 if test yes = "$GCC"; then
12343 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12344 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'
12345 else
12346 allow_undefined_flag=' -expect_unresolved \*'
12347 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'
12348 fi
12349 archive_cmds_need_lc='no'
12350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12351 hardcode_libdir_separator=:
12352 ;;
12353
12354 osf4* | osf5*) # as osf3* with the addition of -msym flag
12355 if test yes = "$GCC"; then
12356 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12357 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'
12358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12359 else
12360 allow_undefined_flag=' -expect_unresolved \*'
12361 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'
12362 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~
12363 $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'
12364
12365 # Both c and cxx compiler support -rpath directly
12366 hardcode_libdir_flag_spec='-rpath $libdir'
12367 fi
12368 archive_cmds_need_lc='no'
12369 hardcode_libdir_separator=:
12370 ;;
12371
12372 solaris*)
12373 no_undefined_flag=' -z defs'
12374 if test yes = "$GCC"; then
12375 wlarc='$wl'
12376 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12378 $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'
12379 else
12380 case `$CC -V 2>&1` in
12381 *"Compilers 5.0"*)
12382 wlarc=''
12383 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12385 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12386 ;;
12387 *)
12388 wlarc='$wl'
12389 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12391 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12392 ;;
12393 esac
12394 fi
12395 hardcode_libdir_flag_spec='-R$libdir'
12396 hardcode_shlibpath_var=no
12397 case $host_os in
12398 solaris2.[0-5] | solaris2.[0-5].*) ;;
12399 *)
12400 # The compiler driver will combine and reorder linker options,
12401 # but understands '-z linker_flag'. GCC discards it without '$wl',
12402 # but is careful enough not to reorder.
12403 # Supported since Solaris 2.6 (maybe 2.5.1?)
12404 if test yes = "$GCC"; then
12405 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12406 else
12407 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12408 fi
12409 ;;
12410 esac
12411 link_all_deplibs=yes
12412 ;;
12413
12414 sunos4*)
12415 if test sequent = "$host_vendor"; then
12416 # Use $CC to link under sequent, because it throws in some extra .o
12417 # files that make .init and .fini sections work.
12418 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12419 else
12420 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12421 fi
12422 hardcode_libdir_flag_spec='-L$libdir'
12423 hardcode_direct=yes
12424 hardcode_minus_L=yes
12425 hardcode_shlibpath_var=no
12426 ;;
12427
12428 sysv4)
12429 case $host_vendor in
12430 sni)
12431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12432 hardcode_direct=yes # is this really true???
12433 ;;
12434 siemens)
12435 ## LD is ld it makes a PLAMLIB
12436 ## CC just makes a GrossModule.
12437 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12438 reload_cmds='$CC -r -o $output$reload_objs'
12439 hardcode_direct=no
12440 ;;
12441 motorola)
12442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12443 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12444 ;;
12445 esac
12446 runpath_var='LD_RUN_PATH'
12447 hardcode_shlibpath_var=no
12448 ;;
12449
12450 sysv4.3*)
12451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12452 hardcode_shlibpath_var=no
12453 export_dynamic_flag_spec='-Bexport'
12454 ;;
12455
12456 sysv4*MP*)
12457 if test -d /usr/nec; then
12458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12459 hardcode_shlibpath_var=no
12460 runpath_var=LD_RUN_PATH
12461 hardcode_runpath_var=yes
12462 ld_shlibs=yes
12463 fi
12464 ;;
12465
12466 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12467 no_undefined_flag='$wl-z,text'
12468 archive_cmds_need_lc=no
12469 hardcode_shlibpath_var=no
12470 runpath_var='LD_RUN_PATH'
12471
12472 if test yes = "$GCC"; then
12473 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12474 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12475 else
12476 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12477 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12478 fi
12479 ;;
12480
12481 sysv5* | sco3.2v5* | sco5v6*)
12482 # Note: We CANNOT use -z defs as we might desire, because we do not
12483 # link with -lc, and that would cause any symbols used from libc to
12484 # always be unresolved, which means just about no library would
12485 # ever link correctly. If we're not using GNU ld we use -z text
12486 # though, which does catch some bad symbols but isn't as heavy-handed
12487 # as -z defs.
12488 no_undefined_flag='$wl-z,text'
12489 allow_undefined_flag='$wl-z,nodefs'
12490 archive_cmds_need_lc=no
12491 hardcode_shlibpath_var=no
12492 hardcode_libdir_flag_spec='$wl-R,$libdir'
12493 hardcode_libdir_separator=':'
12494 link_all_deplibs=yes
12495 export_dynamic_flag_spec='$wl-Bexport'
12496 runpath_var='LD_RUN_PATH'
12497
12498 if test yes = "$GCC"; then
12499 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12500 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12501 else
12502 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12504 fi
12505 ;;
12506
12507 uts4*)
12508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12509 hardcode_libdir_flag_spec='-L$libdir'
12510 hardcode_shlibpath_var=no
12511 ;;
12512
12513 *)
12514 ld_shlibs=no
12515 ;;
12516 esac
12517
12518 if test sni = "$host_vendor"; then
12519 case $host in
12520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12521 export_dynamic_flag_spec='$wl-Blargedynsym'
12522 ;;
12523 esac
12524 fi
12525 fi
12526
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12528 printf "%s\n" "$ld_shlibs" >&6; }
12529 test no = "$ld_shlibs" && can_build_shared=no
12530
12531 with_gnu_ld=$with_gnu_ld
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547 #
12548 # Do we need to explicitly link libc?
12549 #
12550 case "x$archive_cmds_need_lc" in
12551 x|xyes)
12552 # Assume -lc should be added
12553 archive_cmds_need_lc=yes
12554
12555 if test yes,yes = "$GCC,$enable_shared"; then
12556 case $archive_cmds in
12557 *'~'*)
12558 # FIXME: we may have to deal with multi-command sequences.
12559 ;;
12560 '$CC '*)
12561 # Test whether the compiler implicitly links with -lc since on some
12562 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12563 # to ld, don't add -lc before -lgcc.
12564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12565 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12566 if test ${lt_cv_archive_cmds_need_lc+y}
12567 then :
12568 printf %s "(cached) " >&6
12569 else case e in #(
12570 e) $RM conftest*
12571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12572
12573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12574 (eval $ac_compile) 2>&5
12575 ac_status=$?
12576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577 test $ac_status = 0; } 2>conftest.err; then
12578 soname=conftest
12579 lib=conftest
12580 libobjs=conftest.$ac_objext
12581 deplibs=
12582 wl=$lt_prog_compiler_wl
12583 pic_flag=$lt_prog_compiler_pic
12584 compiler_flags=-v
12585 linker_flags=-v
12586 verstring=
12587 output_objdir=.
12588 libname=conftest
12589 lt_save_allow_undefined_flag=$allow_undefined_flag
12590 allow_undefined_flag=
12591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12592 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12593 ac_status=$?
12594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595 test $ac_status = 0; }
12596 then
12597 lt_cv_archive_cmds_need_lc=no
12598 else
12599 lt_cv_archive_cmds_need_lc=yes
12600 fi
12601 allow_undefined_flag=$lt_save_allow_undefined_flag
12602 else
12603 cat conftest.err 1>&5
12604 fi
12605 $RM conftest*
12606 ;;
12607 esac
12608 fi
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12610 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12611 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12612 ;;
12613 esac
12614 fi
12615 ;;
12616 esac
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12770 printf %s "checking dynamic linker characteristics... " >&6; }
12771
12772 if test yes = "$GCC"; then
12773 case $host_os in
12774 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12775 *) lt_awk_arg='/^libraries:/' ;;
12776 esac
12777 case $host_os in
12778 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12779 *) lt_sed_strip_eq='s|=/|/|g' ;;
12780 esac
12781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12782 case $lt_search_path_spec in
12783 *\;*)
12784 # if the path contains ";" then we assume it to be the separator
12785 # otherwise default to the standard path separator (i.e. ":") - it is
12786 # assumed that no part of a normal pathname contains ";" but that should
12787 # okay in the real world where ";" in dirpaths is itself problematic.
12788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12789 ;;
12790 *)
12791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12792 ;;
12793 esac
12794 # Ok, now we have the path, separated by spaces, we can step through it
12795 # and add multilib dir if necessary...
12796 lt_tmp_lt_search_path_spec=
12797 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12798 # ...but if some path component already ends with the multilib dir we assume
12799 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12800 case "$lt_multi_os_dir; $lt_search_path_spec " in
12801 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12802 lt_multi_os_dir=
12803 ;;
12804 esac
12805 for lt_sys_path in $lt_search_path_spec; do
12806 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12808 elif test -n "$lt_multi_os_dir"; then
12809 test -d "$lt_sys_path" && \
12810 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12811 fi
12812 done
12813 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12814 BEGIN {RS = " "; FS = "/|\n";} {
12815 lt_foo = "";
12816 lt_count = 0;
12817 for (lt_i = NF; lt_i > 0; lt_i--) {
12818 if ($lt_i != "" && $lt_i != ".") {
12819 if ($lt_i == "..") {
12820 lt_count++;
12821 } else {
12822 if (lt_count == 0) {
12823 lt_foo = "/" $lt_i lt_foo;
12824 } else {
12825 lt_count--;
12826 }
12827 }
12828 }
12829 }
12830 if (lt_foo != "") { lt_freq[lt_foo]++; }
12831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12832 }'`
12833 # AWK program above erroneously prepends '/' to C:/dos/paths
12834 # for these hosts.
12835 case $host_os in
12836 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12837 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12838 esac
12839 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12840 else
12841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12842 fi
12843 library_names_spec=
12844 libname_spec='lib$name'
12845 soname_spec=
12846 shrext_cmds=.so
12847 postinstall_cmds=
12848 postuninstall_cmds=
12849 finish_cmds=
12850 finish_eval=
12851 shlibpath_var=
12852 shlibpath_overrides_runpath=unknown
12853 version_type=none
12854 dynamic_linker="$host_os ld.so"
12855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12856 need_lib_prefix=unknown
12857 hardcode_into_libs=no
12858
12859 # when you set need_version to no, make sure it does not cause -set_version
12860 # flags to be left without arguments
12861 need_version=unknown
12862
12863
12864
12865 case $host_os in
12866 aix3*)
12867 version_type=linux # correct to gnu/linux during the next big refactor
12868 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12869 shlibpath_var=LIBPATH
12870
12871 # AIX 3 has no versioning support, so we append a major version to the name.
12872 soname_spec='$libname$release$shared_ext$major'
12873 ;;
12874
12875 aix[4-9]*)
12876 version_type=linux # correct to gnu/linux during the next big refactor
12877 need_lib_prefix=no
12878 need_version=no
12879 hardcode_into_libs=yes
12880 if test ia64 = "$host_cpu"; then
12881 # AIX 5 supports IA64
12882 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 else
12885 # With GCC up to 2.95.x, collect2 would create an import file
12886 # for dependence libraries. The import file would start with
12887 # the line '#! .'. This would cause the generated library to
12888 # depend on '.', always an invalid library. This was fixed in
12889 # development snapshots of GCC prior to 3.0.
12890 case $host_os in
12891 aix4 | aix4.[01] | aix4.[01].*)
12892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12893 echo ' yes '
12894 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12895 :
12896 else
12897 can_build_shared=no
12898 fi
12899 ;;
12900 esac
12901 # Using Import Files as archive members, it is possible to support
12902 # filename-based versioning of shared library archives on AIX. While
12903 # this would work for both with and without runtime linking, it will
12904 # prevent static linking of such archives. So we do filename-based
12905 # shared library versioning with .so extension only, which is used
12906 # when both runtime linking and shared linking is enabled.
12907 # Unfortunately, runtime linking may impact performance, so we do
12908 # not want this to be the default eventually. Also, we use the
12909 # versioned .so libs for executables only if there is the -brtl
12910 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12911 # To allow for filename-based versioning support, we need to create
12912 # libNAME.so.V as an archive file, containing:
12913 # *) an Import File, referring to the versioned filename of the
12914 # archive as well as the shared archive member, telling the
12915 # bitwidth (32 or 64) of that shared object, and providing the
12916 # list of exported symbols of that shared object, eventually
12917 # decorated with the 'weak' keyword
12918 # *) the shared object with the F_LOADONLY flag set, to really avoid
12919 # it being seen by the linker.
12920 # At run time we better use the real file rather than another symlink,
12921 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12922
12923 case $with_aix_soname,$aix_use_runtimelinking in
12924 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12925 # soname into executable. Probably we can add versioning support to
12926 # collect2, so additional links can be useful in future.
12927 aix,yes) # traditional libtool
12928 dynamic_linker='AIX unversionable lib.so'
12929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12930 # instead of lib<name>.a to let people know that these are not
12931 # typical AIX shared libraries.
12932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12933 ;;
12934 aix,no) # traditional AIX only
12935 dynamic_linker='AIX lib.a(lib.so.V)'
12936 # We preserve .a as extension for shared libraries through AIX4.2
12937 # and later when we are not doing run time linking.
12938 library_names_spec='$libname$release.a $libname.a'
12939 soname_spec='$libname$release$shared_ext$major'
12940 ;;
12941 svr4,*) # full svr4 only
12942 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12943 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12944 # We do not specify a path in Import Files, so LIBPATH fires.
12945 shlibpath_overrides_runpath=yes
12946 ;;
12947 *,yes) # both, prefer svr4
12948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12950 # unpreferred sharedlib libNAME.a needs extra handling
12951 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"'
12952 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"'
12953 # We do not specify a path in Import Files, so LIBPATH fires.
12954 shlibpath_overrides_runpath=yes
12955 ;;
12956 *,no) # both, prefer aix
12957 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12958 library_names_spec='$libname$release.a $libname.a'
12959 soname_spec='$libname$release$shared_ext$major'
12960 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12961 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)'
12962 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"'
12963 ;;
12964 esac
12965 shlibpath_var=LIBPATH
12966 fi
12967 ;;
12968
12969 amigaos*)
12970 case $host_cpu in
12971 powerpc)
12972 # Since July 2007 AmigaOS4 officially supports .so libraries.
12973 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12975 ;;
12976 m68k)
12977 library_names_spec='$libname.ixlibrary $libname.a'
12978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12979 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'
12980 ;;
12981 esac
12982 ;;
12983
12984 beos*)
12985 library_names_spec='$libname$shared_ext'
12986 dynamic_linker="$host_os ld.so"
12987 shlibpath_var=LIBRARY_PATH
12988 ;;
12989
12990 bsdi[45]*)
12991 version_type=linux # correct to gnu/linux during the next big refactor
12992 need_version=no
12993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12994 soname_spec='$libname$release$shared_ext$major'
12995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12999 # the default ld.so.conf also contains /usr/contrib/lib and
13000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13001 # libtool to hard-code these into programs
13002 ;;
13003
13004 cygwin* | mingw* | pw32* | cegcc*)
13005 version_type=windows
13006 shrext_cmds=.dll
13007 need_version=no
13008 need_lib_prefix=no
13009
13010 case $GCC,$cc_basename in
13011 yes,*)
13012 # gcc
13013 library_names_spec='$libname.dll.a'
13014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13015 postinstall_cmds='base_file=`basename \$file`~
13016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13017 dldir=$destdir/`dirname \$dlpath`~
13018 test -d \$dldir || mkdir -p \$dldir~
13019 $install_prog $dir/$dlname \$dldir/$dlname~
13020 chmod a+x \$dldir/$dlname~
13021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13023 fi'
13024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13025 dlpath=$dir/\$dldll~
13026 $RM \$dlpath'
13027 shlibpath_overrides_runpath=yes
13028
13029 case $host_os in
13030 cygwin*)
13031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13032 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13033
13034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13035 ;;
13036 mingw* | cegcc*)
13037 # MinGW DLLs use traditional 'lib' prefix
13038 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13039 ;;
13040 pw32*)
13041 # pw32 DLLs use 'pw' prefix rather than 'lib'
13042 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13043 ;;
13044 esac
13045 dynamic_linker='Win32 ld.exe'
13046 ;;
13047
13048 *,cl* | *,icl*)
13049 # Native MSVC or ICC
13050 libname_spec='$name'
13051 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13052 library_names_spec='$libname.dll.lib'
13053
13054 case $build_os in
13055 mingw*)
13056 sys_lib_search_path_spec=
13057 lt_save_ifs=$IFS
13058 IFS=';'
13059 for lt_path in $LIB
13060 do
13061 IFS=$lt_save_ifs
13062 # Let DOS variable expansion print the short 8.3 style file name.
13063 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13064 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13065 done
13066 IFS=$lt_save_ifs
13067 # Convert to MSYS style.
13068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13069 ;;
13070 cygwin*)
13071 # Convert to unix form, then to dos form, then back to unix form
13072 # but this time dos style (no spaces!) so that the unix form looks
13073 # like /cygdrive/c/PROGRA~1:/cygdr...
13074 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13075 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13076 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13077 ;;
13078 *)
13079 sys_lib_search_path_spec=$LIB
13080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13081 # It is most probably a Windows format PATH.
13082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13083 else
13084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13085 fi
13086 # FIXME: find the short name or the path components, as spaces are
13087 # common. (e.g. "Program Files" -> "PROGRA~1")
13088 ;;
13089 esac
13090
13091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13092 postinstall_cmds='base_file=`basename \$file`~
13093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13094 dldir=$destdir/`dirname \$dlpath`~
13095 test -d \$dldir || mkdir -p \$dldir~
13096 $install_prog $dir/$dlname \$dldir/$dlname'
13097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13098 dlpath=$dir/\$dldll~
13099 $RM \$dlpath'
13100 shlibpath_overrides_runpath=yes
13101 dynamic_linker='Win32 link.exe'
13102 ;;
13103
13104 *)
13105 # Assume MSVC and ICC wrapper
13106 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13107 dynamic_linker='Win32 ld.exe'
13108 ;;
13109 esac
13110 # FIXME: first we should search . and the directory the executable is in
13111 shlibpath_var=PATH
13112 ;;
13113
13114 darwin* | rhapsody*)
13115 dynamic_linker="$host_os dyld"
13116 version_type=darwin
13117 need_lib_prefix=no
13118 need_version=no
13119 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13120 soname_spec='$libname$release$major$shared_ext'
13121 shlibpath_overrides_runpath=yes
13122 shlibpath_var=DYLD_LIBRARY_PATH
13123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13124
13125 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13127 ;;
13128
13129 dgux*)
13130 version_type=linux # correct to gnu/linux during the next big refactor
13131 need_lib_prefix=no
13132 need_version=no
13133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134 soname_spec='$libname$release$shared_ext$major'
13135 shlibpath_var=LD_LIBRARY_PATH
13136 ;;
13137
13138 freebsd* | dragonfly* | midnightbsd*)
13139 # DragonFly does not have aout. When/if they implement a new
13140 # versioning mechanism, adjust this.
13141 if test -x /usr/bin/objformat; then
13142 objformat=`/usr/bin/objformat`
13143 else
13144 case $host_os in
13145 freebsd[23].*) objformat=aout ;;
13146 *) objformat=elf ;;
13147 esac
13148 fi
13149 version_type=freebsd-$objformat
13150 case $version_type in
13151 freebsd-elf*)
13152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13153 soname_spec='$libname$release$shared_ext$major'
13154 need_version=no
13155 need_lib_prefix=no
13156 ;;
13157 freebsd-*)
13158 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13159 need_version=yes
13160 ;;
13161 esac
13162 shlibpath_var=LD_LIBRARY_PATH
13163 case $host_os in
13164 freebsd2.*)
13165 shlibpath_overrides_runpath=yes
13166 ;;
13167 freebsd3.[01]* | freebsdelf3.[01]*)
13168 shlibpath_overrides_runpath=yes
13169 hardcode_into_libs=yes
13170 ;;
13171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13173 shlibpath_overrides_runpath=no
13174 hardcode_into_libs=yes
13175 ;;
13176 *) # from 4.6 on, and DragonFly
13177 shlibpath_overrides_runpath=yes
13178 hardcode_into_libs=yes
13179 ;;
13180 esac
13181 ;;
13182
13183 haiku*)
13184 version_type=linux # correct to gnu/linux during the next big refactor
13185 need_lib_prefix=no
13186 need_version=no
13187 dynamic_linker="$host_os runtime_loader"
13188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13189 soname_spec='$libname$release$shared_ext$major'
13190 shlibpath_var=LIBRARY_PATH
13191 shlibpath_overrides_runpath=no
13192 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13193 hardcode_into_libs=yes
13194 ;;
13195
13196 hpux9* | hpux10* | hpux11*)
13197 # Give a soname corresponding to the major version so that dld.sl refuses to
13198 # link against other versions.
13199 version_type=sunos
13200 need_lib_prefix=no
13201 need_version=no
13202 case $host_cpu in
13203 ia64*)
13204 shrext_cmds='.so'
13205 hardcode_into_libs=yes
13206 dynamic_linker="$host_os dld.so"
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13210 soname_spec='$libname$release$shared_ext$major'
13211 if test 32 = "$HPUX_IA64_MODE"; then
13212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13213 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13214 else
13215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13216 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13217 fi
13218 ;;
13219 hppa*64*)
13220 shrext_cmds='.sl'
13221 hardcode_into_libs=yes
13222 dynamic_linker="$host_os dld.sl"
13223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13226 soname_spec='$libname$release$shared_ext$major'
13227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13229 ;;
13230 *)
13231 shrext_cmds='.sl'
13232 dynamic_linker="$host_os dld.sl"
13233 shlibpath_var=SHLIB_PATH
13234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13236 soname_spec='$libname$release$shared_ext$major'
13237 ;;
13238 esac
13239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13240 postinstall_cmds='chmod 555 $lib'
13241 # or fails outright, so override atomically:
13242 install_override_mode=555
13243 ;;
13244
13245 interix[3-9]*)
13246 version_type=linux # correct to gnu/linux during the next big refactor
13247 need_lib_prefix=no
13248 need_version=no
13249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13250 soname_spec='$libname$release$shared_ext$major'
13251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 hardcode_into_libs=yes
13255 ;;
13256
13257 irix5* | irix6* | nonstopux*)
13258 case $host_os in
13259 nonstopux*) version_type=nonstopux ;;
13260 *)
13261 if test yes = "$lt_cv_prog_gnu_ld"; then
13262 version_type=linux # correct to gnu/linux during the next big refactor
13263 else
13264 version_type=irix
13265 fi ;;
13266 esac
13267 need_lib_prefix=no
13268 need_version=no
13269 soname_spec='$libname$release$shared_ext$major'
13270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13271 case $host_os in
13272 irix5* | nonstopux*)
13273 libsuff= shlibsuff=
13274 ;;
13275 *)
13276 case $LD in # libtool.m4 will add one of these switches to LD
13277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13278 libsuff= shlibsuff= libmagic=32-bit;;
13279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13280 libsuff=32 shlibsuff=N32 libmagic=N32;;
13281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13283 *) libsuff= shlibsuff= libmagic=never-match;;
13284 esac
13285 ;;
13286 esac
13287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13288 shlibpath_overrides_runpath=no
13289 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13290 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13291 hardcode_into_libs=yes
13292 ;;
13293
13294 # No shared lib support for Linux oldld, aout, or coff.
13295 linux*oldld* | linux*aout* | linux*coff*)
13296 dynamic_linker=no
13297 ;;
13298
13299 linux*android*)
13300 version_type=none # Android doesn't support versioned libraries.
13301 need_lib_prefix=no
13302 need_version=no
13303 library_names_spec='$libname$release$shared_ext'
13304 soname_spec='$libname$release$shared_ext'
13305 finish_cmds=
13306 shlibpath_var=LD_LIBRARY_PATH
13307 shlibpath_overrides_runpath=yes
13308
13309 # This implies no fast_install, which is unacceptable.
13310 # Some rework will be needed to allow for fast_install
13311 # before this can be enabled.
13312 hardcode_into_libs=yes
13313
13314 dynamic_linker='Android linker'
13315 # Don't embed -rpath directories since the linker doesn't support them.
13316 hardcode_libdir_flag_spec='-L$libdir'
13317 ;;
13318
13319 # This must be glibc/ELF.
13320 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13321 version_type=linux # correct to gnu/linux during the next big refactor
13322 need_lib_prefix=no
13323 need_version=no
13324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13325 soname_spec='$libname$release$shared_ext$major'
13326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13327 shlibpath_var=LD_LIBRARY_PATH
13328 shlibpath_overrides_runpath=no
13329
13330 # Some binutils ld are patched to set DT_RUNPATH
13331 if test ${lt_cv_shlibpath_overrides_runpath+y}
13332 then :
13333 printf %s "(cached) " >&6
13334 else case e in #(
13335 e) lt_cv_shlibpath_overrides_runpath=no
13336 save_LDFLAGS=$LDFLAGS
13337 save_libdir=$libdir
13338 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13339 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342
13343 int
13344 main (void)
13345 {
13346
13347 ;
13348 return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"
13352 then :
13353 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13354 then :
13355 lt_cv_shlibpath_overrides_runpath=yes
13356 fi
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13359 conftest$ac_exeext conftest.$ac_ext
13360 LDFLAGS=$save_LDFLAGS
13361 libdir=$save_libdir
13362 ;;
13363 esac
13364 fi
13365
13366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13367
13368 # This implies no fast_install, which is unacceptable.
13369 # Some rework will be needed to allow for fast_install
13370 # before this can be enabled.
13371 hardcode_into_libs=yes
13372
13373 # Ideally, we could use ldconfig to report *all* directores which are
13374 # searched for libraries, however this is still not possible. Aside from not
13375 # being certain /sbin/ldconfig is available, command
13376 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13377 # even though it is searched at run-time. Try to do the best guess by
13378 # appending ld.so.conf contents (and includes) to the search path.
13379 if test -f /etc/ld.so.conf; then
13380 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' ' '`
13381 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13382 fi
13383
13384 # We used to test for /lib/ld.so.1 and disable shared libraries on
13385 # powerpc, because MkLinux only supported shared libraries with the
13386 # GNU dynamic linker. Since this was broken with cross compilers,
13387 # most powerpc-linux boxes support dynamic linking these days and
13388 # people can always --disable-shared, the test was removed, and we
13389 # assume the GNU/Linux dynamic linker is in use.
13390 dynamic_linker='GNU/Linux ld.so'
13391 ;;
13392
13393 netbsd*)
13394 version_type=sunos
13395 need_lib_prefix=no
13396 need_version=no
13397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13400 dynamic_linker='NetBSD (a.out) ld.so'
13401 else
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403 soname_spec='$libname$release$shared_ext$major'
13404 dynamic_linker='NetBSD ld.elf_so'
13405 fi
13406 shlibpath_var=LD_LIBRARY_PATH
13407 shlibpath_overrides_runpath=yes
13408 hardcode_into_libs=yes
13409 ;;
13410
13411 newsos6)
13412 version_type=linux # correct to gnu/linux during the next big refactor
13413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=yes
13416 ;;
13417
13418 *nto* | *qnx*)
13419 version_type=qnx
13420 need_lib_prefix=no
13421 need_version=no
13422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13423 soname_spec='$libname$release$shared_ext$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 shlibpath_overrides_runpath=no
13426 hardcode_into_libs=yes
13427 dynamic_linker='ldqnx.so'
13428 ;;
13429
13430 openbsd* | bitrig*)
13431 version_type=sunos
13432 sys_lib_dlsearch_path_spec=/usr/lib
13433 need_lib_prefix=no
13434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13435 need_version=no
13436 else
13437 need_version=yes
13438 fi
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=yes
13443 ;;
13444
13445 os2*)
13446 libname_spec='$name'
13447 version_type=windows
13448 shrext_cmds=.dll
13449 need_version=no
13450 need_lib_prefix=no
13451 # OS/2 can only load a DLL with a base name of 8 characters or less.
13452 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13453 v=$($ECHO $release$versuffix | tr -d .-);
13454 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13455 $ECHO $n$v`$shared_ext'
13456 library_names_spec='${libname}_dll.$libext'
13457 dynamic_linker='OS/2 ld.exe'
13458 shlibpath_var=BEGINLIBPATH
13459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13461 postinstall_cmds='base_file=`basename \$file`~
13462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13463 dldir=$destdir/`dirname \$dlpath`~
13464 test -d \$dldir || mkdir -p \$dldir~
13465 $install_prog $dir/$dlname \$dldir/$dlname~
13466 chmod a+x \$dldir/$dlname~
13467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13469 fi'
13470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13471 dlpath=$dir/\$dldll~
13472 $RM \$dlpath'
13473 ;;
13474
13475 osf3* | osf4* | osf5*)
13476 version_type=osf
13477 need_lib_prefix=no
13478 need_version=no
13479 soname_spec='$libname$release$shared_ext$major'
13480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13484 ;;
13485
13486 rdos*)
13487 dynamic_linker=no
13488 ;;
13489
13490 solaris*)
13491 version_type=linux # correct to gnu/linux during the next big refactor
13492 need_lib_prefix=no
13493 need_version=no
13494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13495 soname_spec='$libname$release$shared_ext$major'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=yes
13498 hardcode_into_libs=yes
13499 # ldd complains unless libraries are executable
13500 postinstall_cmds='chmod +x $lib'
13501 ;;
13502
13503 sunos4*)
13504 version_type=sunos
13505 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 shlibpath_overrides_runpath=yes
13509 if test yes = "$with_gnu_ld"; then
13510 need_lib_prefix=no
13511 fi
13512 need_version=yes
13513 ;;
13514
13515 sysv4 | sysv4.3*)
13516 version_type=linux # correct to gnu/linux during the next big refactor
13517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13518 soname_spec='$libname$release$shared_ext$major'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 case $host_vendor in
13521 sni)
13522 shlibpath_overrides_runpath=no
13523 need_lib_prefix=no
13524 runpath_var=LD_RUN_PATH
13525 ;;
13526 siemens)
13527 need_lib_prefix=no
13528 ;;
13529 motorola)
13530 need_lib_prefix=no
13531 need_version=no
13532 shlibpath_overrides_runpath=no
13533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13534 ;;
13535 esac
13536 ;;
13537
13538 sysv4*MP*)
13539 if test -d /usr/nec; then
13540 version_type=linux # correct to gnu/linux during the next big refactor
13541 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13542 soname_spec='$libname$shared_ext.$major'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 fi
13545 ;;
13546
13547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13548 version_type=sco
13549 need_lib_prefix=no
13550 need_version=no
13551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13552 soname_spec='$libname$release$shared_ext$major'
13553 shlibpath_var=LD_LIBRARY_PATH
13554 shlibpath_overrides_runpath=yes
13555 hardcode_into_libs=yes
13556 if test yes = "$with_gnu_ld"; then
13557 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13558 else
13559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13560 case $host_os in
13561 sco3.2v5*)
13562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13563 ;;
13564 esac
13565 fi
13566 sys_lib_dlsearch_path_spec='/usr/lib'
13567 ;;
13568
13569 tpf*)
13570 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13571 version_type=linux # correct to gnu/linux during the next big refactor
13572 need_lib_prefix=no
13573 need_version=no
13574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13575 shlibpath_var=LD_LIBRARY_PATH
13576 shlibpath_overrides_runpath=no
13577 hardcode_into_libs=yes
13578 ;;
13579
13580 uts4*)
13581 version_type=linux # correct to gnu/linux during the next big refactor
13582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13583 soname_spec='$libname$release$shared_ext$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 ;;
13586
13587 *)
13588 dynamic_linker=no
13589 ;;
13590 esac
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13592 printf "%s\n" "$dynamic_linker" >&6; }
13593 test no = "$dynamic_linker" && can_build_shared=no
13594
13595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13596 if test yes = "$GCC"; then
13597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13598 fi
13599
13600 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13601 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13602 fi
13603
13604 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13605 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13606 fi
13607
13608 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13609 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13610
13611 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13612 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13613
13614 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13615 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13714 printf %s "checking how to hardcode library paths into programs... " >&6; }
13715 hardcode_action=
13716 if test -n "$hardcode_libdir_flag_spec" ||
13717 test -n "$runpath_var" ||
13718 test yes = "$hardcode_automatic"; then
13719
13720 # We can hardcode non-existent directories.
13721 if test no != "$hardcode_direct" &&
13722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13723 # have to relink, otherwise we might link with an installed library
13724 # when we should be linking with a yet-to-be-installed one
13725 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13726 test no != "$hardcode_minus_L"; then
13727 # Linking always hardcodes the temporary library directory.
13728 hardcode_action=relink
13729 else
13730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13731 hardcode_action=immediate
13732 fi
13733 else
13734 # We cannot hardcode anything, or else we can only hardcode existing
13735 # directories.
13736 hardcode_action=unsupported
13737 fi
13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13739 printf "%s\n" "$hardcode_action" >&6; }
13740
13741 if test relink = "$hardcode_action" ||
13742 test yes = "$inherit_rpath"; then
13743 # Fast installation is not supported
13744 enable_fast_install=no
13745 elif test yes = "$shlibpath_overrides_runpath" ||
13746 test no = "$enable_shared"; then
13747 # Fast installation is not necessary
13748 enable_fast_install=needless
13749 fi
13750
13751
13752
13753
13754
13755
13756 if test yes != "$enable_dlopen"; then
13757 enable_dlopen=unknown
13758 enable_dlopen_self=unknown
13759 enable_dlopen_self_static=unknown
13760 else
13761 lt_cv_dlopen=no
13762 lt_cv_dlopen_libs=
13763
13764 case $host_os in
13765 beos*)
13766 lt_cv_dlopen=load_add_on
13767 lt_cv_dlopen_libs=
13768 lt_cv_dlopen_self=yes
13769 ;;
13770
13771 mingw* | pw32* | cegcc*)
13772 lt_cv_dlopen=LoadLibrary
13773 lt_cv_dlopen_libs=
13774 ;;
13775
13776 cygwin*)
13777 lt_cv_dlopen=dlopen
13778 lt_cv_dlopen_libs=
13779 ;;
13780
13781 darwin*)
13782 # if libdl is installed we need to link against it
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13784 printf %s "checking for dlopen in -ldl... " >&6; }
13785 if test ${ac_cv_lib_dl_dlopen+y}
13786 then :
13787 printf %s "(cached) " >&6
13788 else case e in #(
13789 e) ac_check_lib_save_LIBS=$LIBS
13790 LIBS="-ldl $LIBS"
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply.
13797 The 'extern "C"' is for builds by C++ compilers;
13798 although this is not generally supported in C code supporting it here
13799 has little cost and some practical benefit (sr 110532). */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 char dlopen (void);
13804 int
13805 main (void)
13806 {
13807 return dlopen ();
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"
13813 then :
13814 ac_cv_lib_dl_dlopen=yes
13815 else case e in #(
13816 e) ac_cv_lib_dl_dlopen=no ;;
13817 esac
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13820 conftest$ac_exeext conftest.$ac_ext
13821 LIBS=$ac_check_lib_save_LIBS ;;
13822 esac
13823 fi
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13825 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13826 if test "x$ac_cv_lib_dl_dlopen" = xyes
13827 then :
13828 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13829 else case e in #(
13830 e)
13831 lt_cv_dlopen=dyld
13832 lt_cv_dlopen_libs=
13833 lt_cv_dlopen_self=yes
13834 ;;
13835 esac
13836 fi
13837
13838 ;;
13839
13840 tpf*)
13841 # Don't try to run any link tests for TPF. We know it's impossible
13842 # because TPF is a cross-compiler, and we know how we open DSOs.
13843 lt_cv_dlopen=dlopen
13844 lt_cv_dlopen_libs=
13845 lt_cv_dlopen_self=no
13846 ;;
13847
13848 *)
13849 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13850 if test "x$ac_cv_func_shl_load" = xyes
13851 then :
13852 lt_cv_dlopen=shl_load
13853 else case e in #(
13854 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13855 printf %s "checking for shl_load in -ldld... " >&6; }
13856 if test ${ac_cv_lib_dld_shl_load+y}
13857 then :
13858 printf %s "(cached) " >&6
13859 else case e in #(
13860 e) ac_check_lib_save_LIBS=$LIBS
13861 LIBS="-ldld $LIBS"
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864
13865 /* Override any GCC internal prototype to avoid an error.
13866 Use char because int might match the return type of a GCC
13867 builtin and then its argument prototype would still apply.
13868 The 'extern "C"' is for builds by C++ compilers;
13869 although this is not generally supported in C code supporting it here
13870 has little cost and some practical benefit (sr 110532). */
13871 #ifdef __cplusplus
13872 extern "C"
13873 #endif
13874 char shl_load (void);
13875 int
13876 main (void)
13877 {
13878 return shl_load ();
13879 ;
13880 return 0;
13881 }
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"
13884 then :
13885 ac_cv_lib_dld_shl_load=yes
13886 else case e in #(
13887 e) ac_cv_lib_dld_shl_load=no ;;
13888 esac
13889 fi
13890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS ;;
13893 esac
13894 fi
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13896 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13897 if test "x$ac_cv_lib_dld_shl_load" = xyes
13898 then :
13899 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13900 else case e in #(
13901 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13902 if test "x$ac_cv_func_dlopen" = xyes
13903 then :
13904 lt_cv_dlopen=dlopen
13905 else case e in #(
13906 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13907 printf %s "checking for dlopen in -ldl... " >&6; }
13908 if test ${ac_cv_lib_dl_dlopen+y}
13909 then :
13910 printf %s "(cached) " >&6
13911 else case e in #(
13912 e) ac_check_lib_save_LIBS=$LIBS
13913 LIBS="-ldl $LIBS"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply.
13920 The 'extern "C"' is for builds by C++ compilers;
13921 although this is not generally supported in C code supporting it here
13922 has little cost and some practical benefit (sr 110532). */
13923 #ifdef __cplusplus
13924 extern "C"
13925 #endif
13926 char dlopen (void);
13927 int
13928 main (void)
13929 {
13930 return dlopen ();
13931 ;
13932 return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_link "$LINENO"
13936 then :
13937 ac_cv_lib_dl_dlopen=yes
13938 else case e in #(
13939 e) ac_cv_lib_dl_dlopen=no ;;
13940 esac
13941 fi
13942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13943 conftest$ac_exeext conftest.$ac_ext
13944 LIBS=$ac_check_lib_save_LIBS ;;
13945 esac
13946 fi
13947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13948 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13949 if test "x$ac_cv_lib_dl_dlopen" = xyes
13950 then :
13951 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13952 else case e in #(
13953 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13954 printf %s "checking for dlopen in -lsvld... " >&6; }
13955 if test ${ac_cv_lib_svld_dlopen+y}
13956 then :
13957 printf %s "(cached) " >&6
13958 else case e in #(
13959 e) ac_check_lib_save_LIBS=$LIBS
13960 LIBS="-lsvld $LIBS"
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963
13964 /* Override any GCC internal prototype to avoid an error.
13965 Use char because int might match the return type of a GCC
13966 builtin and then its argument prototype would still apply.
13967 The 'extern "C"' is for builds by C++ compilers;
13968 although this is not generally supported in C code supporting it here
13969 has little cost and some practical benefit (sr 110532). */
13970 #ifdef __cplusplus
13971 extern "C"
13972 #endif
13973 char dlopen (void);
13974 int
13975 main (void)
13976 {
13977 return dlopen ();
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"
13983 then :
13984 ac_cv_lib_svld_dlopen=yes
13985 else case e in #(
13986 e) ac_cv_lib_svld_dlopen=no ;;
13987 esac
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS ;;
13992 esac
13993 fi
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13995 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13996 if test "x$ac_cv_lib_svld_dlopen" = xyes
13997 then :
13998 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13999 else case e in #(
14000 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14001 printf %s "checking for dld_link in -ldld... " >&6; }
14002 if test ${ac_cv_lib_dld_dld_link+y}
14003 then :
14004 printf %s "(cached) " >&6
14005 else case e in #(
14006 e) ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-ldld $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply.
14014 The 'extern "C"' is for builds by C++ compilers;
14015 although this is not generally supported in C code supporting it here
14016 has little cost and some practical benefit (sr 110532). */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char dld_link (void);
14021 int
14022 main (void)
14023 {
14024 return dld_link ();
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 if ac_fn_c_try_link "$LINENO"
14030 then :
14031 ac_cv_lib_dld_dld_link=yes
14032 else case e in #(
14033 e) ac_cv_lib_dld_dld_link=no ;;
14034 esac
14035 fi
14036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14037 conftest$ac_exeext conftest.$ac_ext
14038 LIBS=$ac_check_lib_save_LIBS ;;
14039 esac
14040 fi
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14042 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14043 if test "x$ac_cv_lib_dld_dld_link" = xyes
14044 then :
14045 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14046 fi
14047
14048 ;;
14049 esac
14050 fi
14051
14052 ;;
14053 esac
14054 fi
14055
14056 ;;
14057 esac
14058 fi
14059
14060 ;;
14061 esac
14062 fi
14063
14064 ;;
14065 esac
14066 fi
14067
14068 ;;
14069 esac
14070
14071 if test no = "$lt_cv_dlopen"; then
14072 enable_dlopen=no
14073 else
14074 enable_dlopen=yes
14075 fi
14076
14077 case $lt_cv_dlopen in
14078 dlopen)
14079 save_CPPFLAGS=$CPPFLAGS
14080 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14081
14082 save_LDFLAGS=$LDFLAGS
14083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14084
14085 save_LIBS=$LIBS
14086 LIBS="$lt_cv_dlopen_libs $LIBS"
14087
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14089 printf %s "checking whether a program can dlopen itself... " >&6; }
14090 if test ${lt_cv_dlopen_self+y}
14091 then :
14092 printf %s "(cached) " >&6
14093 else case e in #(
14094 e) if test yes = "$cross_compiling"; then :
14095 lt_cv_dlopen_self=cross
14096 else
14097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14098 lt_status=$lt_dlunknown
14099 cat > conftest.$ac_ext <<_LT_EOF
14100 #line $LINENO "configure"
14101 #include "confdefs.h"
14102
14103 #if HAVE_DLFCN_H
14104 #include <dlfcn.h>
14105 #endif
14106
14107 #include <stdio.h>
14108
14109 #ifdef RTLD_GLOBAL
14110 # define LT_DLGLOBAL RTLD_GLOBAL
14111 #else
14112 # ifdef DL_GLOBAL
14113 # define LT_DLGLOBAL DL_GLOBAL
14114 # else
14115 # define LT_DLGLOBAL 0
14116 # endif
14117 #endif
14118
14119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14120 find out it does not work in some platform. */
14121 #ifndef LT_DLLAZY_OR_NOW
14122 # ifdef RTLD_LAZY
14123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14124 # else
14125 # ifdef DL_LAZY
14126 # define LT_DLLAZY_OR_NOW DL_LAZY
14127 # else
14128 # ifdef RTLD_NOW
14129 # define LT_DLLAZY_OR_NOW RTLD_NOW
14130 # else
14131 # ifdef DL_NOW
14132 # define LT_DLLAZY_OR_NOW DL_NOW
14133 # else
14134 # define LT_DLLAZY_OR_NOW 0
14135 # endif
14136 # endif
14137 # endif
14138 # endif
14139 #endif
14140
14141 /* When -fvisibility=hidden is used, assume the code has been annotated
14142 correspondingly for the symbols needed. */
14143 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14144 int fnord () __attribute__((visibility("default")));
14145 #endif
14146
14147 int fnord () { return 42; }
14148 int main ()
14149 {
14150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14151 int status = $lt_dlunknown;
14152
14153 if (self)
14154 {
14155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14156 else
14157 {
14158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14159 else puts (dlerror ());
14160 }
14161 /* dlclose (self); */
14162 }
14163 else
14164 puts (dlerror ());
14165
14166 return status;
14167 }
14168 _LT_EOF
14169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14170 (eval $ac_link) 2>&5
14171 ac_status=$?
14172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14174 (./conftest; exit; ) >&5 2>/dev/null
14175 lt_status=$?
14176 case x$lt_status in
14177 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14178 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14179 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14180 esac
14181 else :
14182 # compilation failed
14183 lt_cv_dlopen_self=no
14184 fi
14185 fi
14186 rm -fr conftest*
14187
14188 ;;
14189 esac
14190 fi
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14192 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14193
14194 if test yes = "$lt_cv_dlopen_self"; then
14195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14197 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14198 if test ${lt_cv_dlopen_self_static+y}
14199 then :
14200 printf %s "(cached) " >&6
14201 else case e in #(
14202 e) if test yes = "$cross_compiling"; then :
14203 lt_cv_dlopen_self_static=cross
14204 else
14205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14206 lt_status=$lt_dlunknown
14207 cat > conftest.$ac_ext <<_LT_EOF
14208 #line $LINENO "configure"
14209 #include "confdefs.h"
14210
14211 #if HAVE_DLFCN_H
14212 #include <dlfcn.h>
14213 #endif
14214
14215 #include <stdio.h>
14216
14217 #ifdef RTLD_GLOBAL
14218 # define LT_DLGLOBAL RTLD_GLOBAL
14219 #else
14220 # ifdef DL_GLOBAL
14221 # define LT_DLGLOBAL DL_GLOBAL
14222 # else
14223 # define LT_DLGLOBAL 0
14224 # endif
14225 #endif
14226
14227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14228 find out it does not work in some platform. */
14229 #ifndef LT_DLLAZY_OR_NOW
14230 # ifdef RTLD_LAZY
14231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14232 # else
14233 # ifdef DL_LAZY
14234 # define LT_DLLAZY_OR_NOW DL_LAZY
14235 # else
14236 # ifdef RTLD_NOW
14237 # define LT_DLLAZY_OR_NOW RTLD_NOW
14238 # else
14239 # ifdef DL_NOW
14240 # define LT_DLLAZY_OR_NOW DL_NOW
14241 # else
14242 # define LT_DLLAZY_OR_NOW 0
14243 # endif
14244 # endif
14245 # endif
14246 # endif
14247 #endif
14248
14249 /* When -fvisibility=hidden is used, assume the code has been annotated
14250 correspondingly for the symbols needed. */
14251 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14252 int fnord () __attribute__((visibility("default")));
14253 #endif
14254
14255 int fnord () { return 42; }
14256 int main ()
14257 {
14258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14259 int status = $lt_dlunknown;
14260
14261 if (self)
14262 {
14263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14264 else
14265 {
14266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14267 else puts (dlerror ());
14268 }
14269 /* dlclose (self); */
14270 }
14271 else
14272 puts (dlerror ());
14273
14274 return status;
14275 }
14276 _LT_EOF
14277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14278 (eval $ac_link) 2>&5
14279 ac_status=$?
14280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14282 (./conftest; exit; ) >&5 2>/dev/null
14283 lt_status=$?
14284 case x$lt_status in
14285 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14286 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14287 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14288 esac
14289 else :
14290 # compilation failed
14291 lt_cv_dlopen_self_static=no
14292 fi
14293 fi
14294 rm -fr conftest*
14295
14296 ;;
14297 esac
14298 fi
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14300 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14301 fi
14302
14303 CPPFLAGS=$save_CPPFLAGS
14304 LDFLAGS=$save_LDFLAGS
14305 LIBS=$save_LIBS
14306 ;;
14307 esac
14308
14309 case $lt_cv_dlopen_self in
14310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14311 *) enable_dlopen_self=unknown ;;
14312 esac
14313
14314 case $lt_cv_dlopen_self_static in
14315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14316 *) enable_dlopen_self_static=unknown ;;
14317 esac
14318 fi
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336 striplib=
14337 old_striplib=
14338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14339 printf %s "checking whether stripping libraries is possible... " >&6; }
14340 if test -z "$STRIP"; then
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 printf "%s\n" "no" >&6; }
14343 else
14344 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14345 old_striplib="$STRIP --strip-debug"
14346 striplib="$STRIP --strip-unneeded"
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 printf "%s\n" "yes" >&6; }
14349 else
14350 case $host_os in
14351 darwin*)
14352 # FIXME - insert some real tests, host_os isn't really good enough
14353 striplib="$STRIP -x"
14354 old_striplib="$STRIP -S"
14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14356 printf "%s\n" "yes" >&6; }
14357 ;;
14358 freebsd*)
14359 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14360 old_striplib="$STRIP --strip-debug"
14361 striplib="$STRIP --strip-unneeded"
14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363 printf "%s\n" "yes" >&6; }
14364 else
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 printf "%s\n" "no" >&6; }
14367 fi
14368 ;;
14369 *)
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 printf "%s\n" "no" >&6; }
14372 ;;
14373 esac
14374 fi
14375 fi
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388 # Report what library types will actually be built
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14390 printf %s "checking if libtool supports shared libraries... " >&6; }
14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14392 printf "%s\n" "$can_build_shared" >&6; }
14393
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14395 printf %s "checking whether to build shared libraries... " >&6; }
14396 test no = "$can_build_shared" && enable_shared=no
14397
14398 # On AIX, shared libraries and static libraries use the same namespace, and
14399 # are all built from PIC.
14400 case $host_os in
14401 aix3*)
14402 test yes = "$enable_shared" && enable_static=no
14403 if test -n "$RANLIB"; then
14404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14405 postinstall_cmds='$RANLIB $lib'
14406 fi
14407 ;;
14408
14409 aix[4-9]*)
14410 if test ia64 != "$host_cpu"; then
14411 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14412 yes,aix,yes) ;; # shared object as lib.so file only
14413 yes,svr4,*) ;; # shared object as lib.so archive member only
14414 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14415 esac
14416 fi
14417 ;;
14418 esac
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14420 printf "%s\n" "$enable_shared" >&6; }
14421
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14423 printf %s "checking whether to build static libraries... " >&6; }
14424 # Make sure either enable_shared or enable_static is yes.
14425 test yes = "$enable_shared" || enable_static=yes
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14427 printf "%s\n" "$enable_static" >&6; }
14428
14429
14430
14431
14432 fi
14433 ac_ext=cpp
14434 ac_cpp='$CXXCPP $CPPFLAGS'
14435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14438
14439 CC=$lt_save_CC
14440
14441 if test -n "$CXX" && ( test no != "$CXX" &&
14442 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14443 (test g++ != "$CXX"))); then
14444 ac_ext=cpp
14445 ac_cpp='$CXXCPP $CPPFLAGS'
14446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14450 printf %s "checking how to run the C++ preprocessor... " >&6; }
14451 if test -z "$CXXCPP"; then
14452 if test ${ac_cv_prog_CXXCPP+y}
14453 then :
14454 printf %s "(cached) " >&6
14455 else case e in #(
14456 e) # Double quotes because $CXX needs to be expanded
14457 for CXXCPP in "$CXX -E" cpp /lib/cpp
14458 do
14459 ac_preproc_ok=false
14460 for ac_cxx_preproc_warn_flag in '' yes
14461 do
14462 # Use a header file that comes with gcc, so configuring glibc
14463 # with a fresh cross-compiler works.
14464 # On the NeXT, cc -E runs the code through the compiler's parser,
14465 # not just through cpp. "Syntax error" is here to catch this case.
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 #include <limits.h>
14469 Syntax error
14470 _ACEOF
14471 if ac_fn_cxx_try_cpp "$LINENO"
14472 then :
14473
14474 else case e in #(
14475 e) # Broken: fails on valid input.
14476 continue ;;
14477 esac
14478 fi
14479 rm -f conftest.err conftest.i conftest.$ac_ext
14480
14481 # OK, works on sane cases. Now check whether nonexistent headers
14482 # can be detected and how.
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <ac_nonexistent.h>
14486 _ACEOF
14487 if ac_fn_cxx_try_cpp "$LINENO"
14488 then :
14489 # Broken: success on invalid input.
14490 continue
14491 else case e in #(
14492 e) # Passes both tests.
14493 ac_preproc_ok=:
14494 break ;;
14495 esac
14496 fi
14497 rm -f conftest.err conftest.i conftest.$ac_ext
14498
14499 done
14500 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14501 rm -f conftest.i conftest.err conftest.$ac_ext
14502 if $ac_preproc_ok
14503 then :
14504 break
14505 fi
14506
14507 done
14508 ac_cv_prog_CXXCPP=$CXXCPP
14509 ;;
14510 esac
14511 fi
14512 CXXCPP=$ac_cv_prog_CXXCPP
14513 else
14514 ac_cv_prog_CXXCPP=$CXXCPP
14515 fi
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14517 printf "%s\n" "$CXXCPP" >&6; }
14518 ac_preproc_ok=false
14519 for ac_cxx_preproc_warn_flag in '' yes
14520 do
14521 # Use a header file that comes with gcc, so configuring glibc
14522 # with a fresh cross-compiler works.
14523 # On the NeXT, cc -E runs the code through the compiler's parser,
14524 # not just through cpp. "Syntax error" is here to catch this case.
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 #include <limits.h>
14528 Syntax error
14529 _ACEOF
14530 if ac_fn_cxx_try_cpp "$LINENO"
14531 then :
14532
14533 else case e in #(
14534 e) # Broken: fails on valid input.
14535 continue ;;
14536 esac
14537 fi
14538 rm -f conftest.err conftest.i conftest.$ac_ext
14539
14540 # OK, works on sane cases. Now check whether nonexistent headers
14541 # can be detected and how.
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <ac_nonexistent.h>
14545 _ACEOF
14546 if ac_fn_cxx_try_cpp "$LINENO"
14547 then :
14548 # Broken: success on invalid input.
14549 continue
14550 else case e in #(
14551 e) # Passes both tests.
14552 ac_preproc_ok=:
14553 break ;;
14554 esac
14555 fi
14556 rm -f conftest.err conftest.i conftest.$ac_ext
14557
14558 done
14559 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14560 rm -f conftest.i conftest.err conftest.$ac_ext
14561 if $ac_preproc_ok
14562 then :
14563
14564 else case e in #(
14565 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14566 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14567 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14568 See 'config.log' for more details" "$LINENO" 5; } ;;
14569 esac
14570 fi
14571
14572 ac_ext=cpp
14573 ac_cpp='$CXXCPP $CPPFLAGS'
14574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14577
14578 else
14579 _lt_caught_CXX_error=yes
14580 fi
14581
14582 ac_ext=cpp
14583 ac_cpp='$CXXCPP $CPPFLAGS'
14584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14587
14588 archive_cmds_need_lc_CXX=no
14589 allow_undefined_flag_CXX=
14590 always_export_symbols_CXX=no
14591 archive_expsym_cmds_CXX=
14592 compiler_needs_object_CXX=no
14593 export_dynamic_flag_spec_CXX=
14594 hardcode_direct_CXX=no
14595 hardcode_direct_absolute_CXX=no
14596 hardcode_libdir_flag_spec_CXX=
14597 hardcode_libdir_separator_CXX=
14598 hardcode_minus_L_CXX=no
14599 hardcode_shlibpath_var_CXX=unsupported
14600 hardcode_automatic_CXX=no
14601 inherit_rpath_CXX=no
14602 module_cmds_CXX=
14603 module_expsym_cmds_CXX=
14604 link_all_deplibs_CXX=unknown
14605 old_archive_cmds_CXX=$old_archive_cmds
14606 reload_flag_CXX=$reload_flag
14607 reload_cmds_CXX=$reload_cmds
14608 no_undefined_flag_CXX=
14609 whole_archive_flag_spec_CXX=
14610 enable_shared_with_static_runtimes_CXX=no
14611
14612 # Source file extension for C++ test sources.
14613 ac_ext=cpp
14614
14615 # Object file extension for compiled C++ test sources.
14616 objext=o
14617 objext_CXX=$objext
14618
14619 # No sense in running all these tests if we already determined that
14620 # the CXX compiler isn't working. Some variables (like enable_shared)
14621 # are currently assumed to apply to all compilers on this platform,
14622 # and will be corrupted by setting them based on a non-working compiler.
14623 if test yes != "$_lt_caught_CXX_error"; then
14624 # Code to be used in simple compile tests
14625 lt_simple_compile_test_code="int some_variable = 0;"
14626
14627 # Code to be used in simple link tests
14628 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14629
14630 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14631
14632
14633
14634
14635
14636
14637 # If no C compiler was specified, use CC.
14638 LTCC=${LTCC-"$CC"}
14639
14640 # If no C compiler flags were specified, use CFLAGS.
14641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14642
14643 # Allow CC to be a program name with arguments.
14644 compiler=$CC
14645
14646
14647 # save warnings/boilerplate of simple test code
14648 ac_outfile=conftest.$ac_objext
14649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14651 _lt_compiler_boilerplate=`cat conftest.err`
14652 $RM conftest*
14653
14654 ac_outfile=conftest.$ac_objext
14655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14657 _lt_linker_boilerplate=`cat conftest.err`
14658 $RM -r conftest*
14659
14660
14661 # Allow CC to be a program name with arguments.
14662 lt_save_CC=$CC
14663 lt_save_CFLAGS=$CFLAGS
14664 lt_save_LD=$LD
14665 lt_save_GCC=$GCC
14666 GCC=$GXX
14667 lt_save_with_gnu_ld=$with_gnu_ld
14668 lt_save_path_LD=$lt_cv_path_LD
14669 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14670 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14671 else
14672 $as_unset lt_cv_prog_gnu_ld
14673 fi
14674 if test -n "${lt_cv_path_LDCXX+set}"; then
14675 lt_cv_path_LD=$lt_cv_path_LDCXX
14676 else
14677 $as_unset lt_cv_path_LD
14678 fi
14679 test -z "${LDCXX+set}" || LD=$LDCXX
14680 CC=${CXX-"c++"}
14681 CFLAGS=$CXXFLAGS
14682 compiler=$CC
14683 compiler_CXX=$CC
14684 func_cc_basename $compiler
14685 cc_basename=$func_cc_basename_result
14686
14687
14688 if test -n "$compiler"; then
14689 # We don't want -fno-exception when compiling C++ code, so set the
14690 # no_builtin_flag separately
14691 if test yes = "$GXX"; then
14692 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14693 else
14694 lt_prog_compiler_no_builtin_flag_CXX=
14695 fi
14696
14697 if test yes = "$GXX"; then
14698 # Set up default GNU C++ configuration
14699
14700
14701
14702 # Check whether --with-gnu-ld was given.
14703 if test ${with_gnu_ld+y}
14704 then :
14705 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14706 else case e in #(
14707 e) with_gnu_ld=no ;;
14708 esac
14709 fi
14710
14711 ac_prog=ld
14712 if test yes = "$GCC"; then
14713 # Check if gcc -print-prog-name=ld gives a path.
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14715 printf %s "checking for ld used by $CC... " >&6; }
14716 case $host in
14717 *-*-mingw*)
14718 # gcc leaves a trailing carriage return, which upsets mingw
14719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14720 *)
14721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14722 esac
14723 case $ac_prog in
14724 # Accept absolute paths.
14725 [\\/]* | ?:[\\/]*)
14726 re_direlt='/[^/][^/]*/\.\./'
14727 # Canonicalize the pathname of ld
14728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14731 done
14732 test -z "$LD" && LD=$ac_prog
14733 ;;
14734 "")
14735 # If it fails, then pretend we aren't using GCC.
14736 ac_prog=ld
14737 ;;
14738 *)
14739 # If it is relative, then search for the first ld in PATH.
14740 with_gnu_ld=unknown
14741 ;;
14742 esac
14743 elif test yes = "$with_gnu_ld"; then
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14745 printf %s "checking for GNU ld... " >&6; }
14746 else
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14748 printf %s "checking for non-GNU ld... " >&6; }
14749 fi
14750 if test ${lt_cv_path_LD+y}
14751 then :
14752 printf %s "(cached) " >&6
14753 else case e in #(
14754 e) if test -z "$LD"; then
14755 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14756 for ac_dir in $PATH; do
14757 IFS=$lt_save_ifs
14758 test -z "$ac_dir" && ac_dir=.
14759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14760 lt_cv_path_LD=$ac_dir/$ac_prog
14761 # Check to see if the program is GNU ld. I'd rather use --version,
14762 # but apparently some variants of GNU ld only accept -v.
14763 # Break only if it was the GNU/non-GNU ld that we prefer.
14764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14765 *GNU* | *'with BFD'*)
14766 test no != "$with_gnu_ld" && break
14767 ;;
14768 *)
14769 test yes != "$with_gnu_ld" && break
14770 ;;
14771 esac
14772 fi
14773 done
14774 IFS=$lt_save_ifs
14775 else
14776 lt_cv_path_LD=$LD # Let the user override the test with a path.
14777 fi ;;
14778 esac
14779 fi
14780
14781 LD=$lt_cv_path_LD
14782 if test -n "$LD"; then
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14784 printf "%s\n" "$LD" >&6; }
14785 else
14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 printf "%s\n" "no" >&6; }
14788 fi
14789 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14791 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14792 if test ${lt_cv_prog_gnu_ld+y}
14793 then :
14794 printf %s "(cached) " >&6
14795 else case e in #(
14796 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14797 case `$LD -v 2>&1 </dev/null` in
14798 *GNU* | *'with BFD'*)
14799 lt_cv_prog_gnu_ld=yes
14800 ;;
14801 *)
14802 lt_cv_prog_gnu_ld=no
14803 ;;
14804 esac ;;
14805 esac
14806 fi
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14808 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14809 with_gnu_ld=$lt_cv_prog_gnu_ld
14810
14811
14812
14813
14814
14815
14816
14817 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14818 # archiving commands below assume that GNU ld is being used.
14819 if test yes = "$with_gnu_ld"; then
14820 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14821 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14822
14823 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14824 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14825
14826 # If archive_cmds runs LD, not CC, wlarc should be empty
14827 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14828 # investigate it a little bit more. (MM)
14829 wlarc='$wl'
14830
14831 # ancient GNU ld didn't support --whole-archive et. al.
14832 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14833 $GREP 'no-whole-archive' > /dev/null; then
14834 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14835 else
14836 whole_archive_flag_spec_CXX=
14837 fi
14838 else
14839 with_gnu_ld=no
14840 wlarc=
14841
14842 # A generic and very simple default shared library creation
14843 # command for GNU C++ for the case where it uses the native
14844 # linker, instead of GNU ld. If possible, this setting should
14845 # overridden to take advantage of the native linker features on
14846 # the platform it is being used on.
14847 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14848 fi
14849
14850 # Commands to make compiler produce verbose output that lists
14851 # what "hidden" libraries, object files and flags are used when
14852 # linking a shared library.
14853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14854
14855 else
14856 GXX=no
14857 with_gnu_ld=no
14858 wlarc=
14859 fi
14860
14861 # PORTME: fill in a description of your system's C++ link characteristics
14862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14863 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14864 ld_shlibs_CXX=yes
14865 case $host_os in
14866 aix3*)
14867 # FIXME: insert proper C++ library support
14868 ld_shlibs_CXX=no
14869 ;;
14870 aix[4-9]*)
14871 if test ia64 = "$host_cpu"; then
14872 # On IA64, the linker does run time linking by default, so we don't
14873 # have to do anything special.
14874 aix_use_runtimelinking=no
14875 exp_sym_flag='-Bexport'
14876 no_entry_flag=
14877 else
14878 aix_use_runtimelinking=no
14879
14880 # Test if we are trying to use run time linking or normal
14881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14882 # have runtime linking enabled, and use it for executables.
14883 # For shared libraries, we enable/disable runtime linking
14884 # depending on the kind of the shared library created -
14885 # when "with_aix_soname,aix_use_runtimelinking" is:
14886 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14887 # "aix,yes" lib.so shared, rtl:yes, for executables
14888 # lib.a static archive
14889 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14890 # lib.a(lib.so.V) shared, rtl:no, for executables
14891 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14892 # lib.a(lib.so.V) shared, rtl:no
14893 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14894 # lib.a static archive
14895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14896 for ld_flag in $LDFLAGS; do
14897 case $ld_flag in
14898 *-brtl*)
14899 aix_use_runtimelinking=yes
14900 break
14901 ;;
14902 esac
14903 done
14904 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14905 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14906 # so we don't have lib.a shared libs to link our executables.
14907 # We have to force runtime linking in this case.
14908 aix_use_runtimelinking=yes
14909 LDFLAGS="$LDFLAGS -Wl,-brtl"
14910 fi
14911 ;;
14912 esac
14913
14914 exp_sym_flag='-bexport'
14915 no_entry_flag='-bnoentry'
14916 fi
14917
14918 # When large executables or shared objects are built, AIX ld can
14919 # have problems creating the table of contents. If linking a library
14920 # or program results in "error TOC overflow" add -mminimal-toc to
14921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14923
14924 archive_cmds_CXX=''
14925 hardcode_direct_CXX=yes
14926 hardcode_direct_absolute_CXX=yes
14927 hardcode_libdir_separator_CXX=':'
14928 link_all_deplibs_CXX=yes
14929 file_list_spec_CXX='$wl-f,'
14930 case $with_aix_soname,$aix_use_runtimelinking in
14931 aix,*) ;; # no import file
14932 svr4,* | *,yes) # use import file
14933 # The Import File defines what to hardcode.
14934 hardcode_direct_CXX=no
14935 hardcode_direct_absolute_CXX=no
14936 ;;
14937 esac
14938
14939 if test yes = "$GXX"; then
14940 case $host_os in aix4.[012]|aix4.[012].*)
14941 # We only want to do this on AIX 4.2 and lower, the check
14942 # below for broken collect2 doesn't work under 4.3+
14943 collect2name=`$CC -print-prog-name=collect2`
14944 if test -f "$collect2name" &&
14945 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14946 then
14947 # We have reworked collect2
14948 :
14949 else
14950 # We have old collect2
14951 hardcode_direct_CXX=unsupported
14952 # It fails to find uninstalled libraries when the uninstalled
14953 # path is not listed in the libpath. Setting hardcode_minus_L
14954 # to unsupported forces relinking
14955 hardcode_minus_L_CXX=yes
14956 hardcode_libdir_flag_spec_CXX='-L$libdir'
14957 hardcode_libdir_separator_CXX=
14958 fi
14959 esac
14960 shared_flag='-shared'
14961 if test yes = "$aix_use_runtimelinking"; then
14962 shared_flag=$shared_flag' $wl-G'
14963 fi
14964 # Need to ensure runtime linking is disabled for the traditional
14965 # shared library, or the linker may eventually find shared libraries
14966 # /with/ Import File - we do not want to mix them.
14967 shared_flag_aix='-shared'
14968 shared_flag_svr4='-shared $wl-G'
14969 else
14970 # not using gcc
14971 if test ia64 = "$host_cpu"; then
14972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14973 # chokes on -Wl,-G. The following line is correct:
14974 shared_flag='-G'
14975 else
14976 if test yes = "$aix_use_runtimelinking"; then
14977 shared_flag='$wl-G'
14978 else
14979 shared_flag='$wl-bM:SRE'
14980 fi
14981 shared_flag_aix='$wl-bM:SRE'
14982 shared_flag_svr4='$wl-G'
14983 fi
14984 fi
14985
14986 export_dynamic_flag_spec_CXX='$wl-bexpall'
14987 # It seems that -bexpall does not export symbols beginning with
14988 # underscore (_), so it is better to generate a list of symbols to
14989 # export.
14990 always_export_symbols_CXX=yes
14991 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14992 # Warning - without using the other runtime loading flags (-brtl),
14993 # -berok will link without error, but may produce a broken library.
14994 # The "-G" linker flag allows undefined symbols.
14995 no_undefined_flag_CXX='-bernotok'
14996 # Determine the default libpath from the value encoded in an empty
14997 # executable.
14998 if test set = "${lt_cv_aix_libpath+set}"; then
14999 aix_libpath=$lt_cv_aix_libpath
15000 else
15001 if test ${lt_cv_aix_libpath__CXX+y}
15002 then :
15003 printf %s "(cached) " >&6
15004 else case e in #(
15005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007
15008 int
15009 main (void)
15010 {
15011
15012 ;
15013 return 0;
15014 }
15015 _ACEOF
15016 if ac_fn_cxx_try_link "$LINENO"
15017 then :
15018
15019 lt_aix_libpath_sed='
15020 /Import File Strings/,/^$/ {
15021 /^0/ {
15022 s/^0 *\([^ ]*\) *$/\1/
15023 p
15024 }
15025 }'
15026 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15027 # Check for a 64-bit object if we didn't find anything.
15028 if test -z "$lt_cv_aix_libpath__CXX"; then
15029 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15030 fi
15031 fi
15032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15033 conftest$ac_exeext conftest.$ac_ext
15034 if test -z "$lt_cv_aix_libpath__CXX"; then
15035 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15036 fi
15037 ;;
15038 esac
15039 fi
15040
15041 aix_libpath=$lt_cv_aix_libpath__CXX
15042 fi
15043
15044 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15045
15046 archive_expsym_cmds_CXX='$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
15047 else
15048 if test ia64 = "$host_cpu"; then
15049 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15050 allow_undefined_flag_CXX="-z nodefs"
15051 archive_expsym_cmds_CXX="\$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"
15052 else
15053 # Determine the default libpath from the value encoded in an
15054 # empty executable.
15055 if test set = "${lt_cv_aix_libpath+set}"; then
15056 aix_libpath=$lt_cv_aix_libpath
15057 else
15058 if test ${lt_cv_aix_libpath__CXX+y}
15059 then :
15060 printf %s "(cached) " >&6
15061 else case e in #(
15062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064
15065 int
15066 main (void)
15067 {
15068
15069 ;
15070 return 0;
15071 }
15072 _ACEOF
15073 if ac_fn_cxx_try_link "$LINENO"
15074 then :
15075
15076 lt_aix_libpath_sed='
15077 /Import File Strings/,/^$/ {
15078 /^0/ {
15079 s/^0 *\([^ ]*\) *$/\1/
15080 p
15081 }
15082 }'
15083 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15084 # Check for a 64-bit object if we didn't find anything.
15085 if test -z "$lt_cv_aix_libpath__CXX"; then
15086 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15087 fi
15088 fi
15089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15090 conftest$ac_exeext conftest.$ac_ext
15091 if test -z "$lt_cv_aix_libpath__CXX"; then
15092 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15093 fi
15094 ;;
15095 esac
15096 fi
15097
15098 aix_libpath=$lt_cv_aix_libpath__CXX
15099 fi
15100
15101 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15102 # Warning - without using the other run time loading flags,
15103 # -berok will link without error, but may produce a broken library.
15104 no_undefined_flag_CXX=' $wl-bernotok'
15105 allow_undefined_flag_CXX=' $wl-berok'
15106 if test yes = "$with_gnu_ld"; then
15107 # We only use this code for GNU lds that support --whole-archive.
15108 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15109 else
15110 # Exported symbols can be pulled into shared objects from archives
15111 whole_archive_flag_spec_CXX='$convenience'
15112 fi
15113 archive_cmds_need_lc_CXX=yes
15114 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15115 # -brtl affects multiple linker settings, -berok does not and is overridden later
15116 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15117 if test svr4 != "$with_aix_soname"; then
15118 # This is similar to how AIX traditionally builds its shared
15119 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15120 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
15121 fi
15122 if test aix != "$with_aix_soname"; then
15123 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
15124 else
15125 # used by -dlpreopen to get the symbols
15126 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15127 fi
15128 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15129 fi
15130 fi
15131 ;;
15132
15133 beos*)
15134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15135 allow_undefined_flag_CXX=unsupported
15136 # Joseph Beckenbach <[email protected]> says some releases of gcc
15137 # support --undefined. This deserves some investigation. FIXME
15138 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15139 else
15140 ld_shlibs_CXX=no
15141 fi
15142 ;;
15143
15144 chorus*)
15145 case $cc_basename in
15146 *)
15147 # FIXME: insert proper C++ library support
15148 ld_shlibs_CXX=no
15149 ;;
15150 esac
15151 ;;
15152
15153 cygwin* | mingw* | pw32* | cegcc*)
15154 case $GXX,$cc_basename in
15155 ,cl* | no,cl* | ,icl* | no,icl*)
15156 # Native MSVC or ICC
15157 # hardcode_libdir_flag_spec is actually meaningless, as there is
15158 # no search path for DLLs.
15159 hardcode_libdir_flag_spec_CXX=' '
15160 allow_undefined_flag_CXX=unsupported
15161 always_export_symbols_CXX=yes
15162 file_list_spec_CXX='@'
15163 # Tell ltmain to make .lib files, not .a files.
15164 libext=lib
15165 # Tell ltmain to make .dll files, not .so files.
15166 shrext_cmds=.dll
15167 # FIXME: Setting linknames here is a bad hack.
15168 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15169 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15170 cp "$export_symbols" "$output_objdir/$soname.def";
15171 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15172 else
15173 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15174 fi~
15175 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15176 linknames='
15177 # The linker will not automatically build a static lib if we build a DLL.
15178 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15179 enable_shared_with_static_runtimes_CXX=yes
15180 # Don't use ranlib
15181 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15182 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15183 lt_tool_outputfile="@TOOL_OUTPUT@"~
15184 case $lt_outputfile in
15185 *.exe|*.EXE) ;;
15186 *)
15187 lt_outputfile=$lt_outputfile.exe
15188 lt_tool_outputfile=$lt_tool_outputfile.exe
15189 ;;
15190 esac~
15191 func_to_tool_file "$lt_outputfile"~
15192 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15193 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15194 $RM "$lt_outputfile.manifest";
15195 fi'
15196 ;;
15197 *)
15198 # g++
15199 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15200 # as there is no search path for DLLs.
15201 hardcode_libdir_flag_spec_CXX='-L$libdir'
15202 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15203 allow_undefined_flag_CXX=unsupported
15204 always_export_symbols_CXX=no
15205 enable_shared_with_static_runtimes_CXX=yes
15206
15207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15209 # If the export-symbols file already is a .def file, use it as
15210 # is; otherwise, prepend EXPORTS...
15211 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15212 cp $export_symbols $output_objdir/$soname.def;
15213 else
15214 echo EXPORTS > $output_objdir/$soname.def;
15215 cat $export_symbols >> $output_objdir/$soname.def;
15216 fi~
15217 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15218 else
15219 ld_shlibs_CXX=no
15220 fi
15221 ;;
15222 esac
15223 ;;
15224 darwin* | rhapsody*)
15225
15226
15227 archive_cmds_need_lc_CXX=no
15228 hardcode_direct_CXX=no
15229 hardcode_automatic_CXX=yes
15230 hardcode_shlibpath_var_CXX=unsupported
15231 if test yes = "$lt_cv_ld_force_load"; then
15232 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15233
15234 else
15235 whole_archive_flag_spec_CXX=''
15236 fi
15237 link_all_deplibs_CXX=yes
15238 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15239 case $cc_basename in
15240 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15241 *) _lt_dar_can_shared=$GCC ;;
15242 esac
15243 if test yes = "$_lt_dar_can_shared"; then
15244 output_verbose_link_cmd=func_echo_all
15245 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15246 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15247 archive_expsym_cmds_CXX="$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"
15248 module_expsym_cmds_CXX="$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"
15249 if test yes != "$lt_cv_apple_cc_single_mod"; then
15250 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15251 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15252 fi
15253
15254 else
15255 ld_shlibs_CXX=no
15256 fi
15257
15258 ;;
15259
15260 os2*)
15261 hardcode_libdir_flag_spec_CXX='-L$libdir'
15262 hardcode_minus_L_CXX=yes
15263 allow_undefined_flag_CXX=unsupported
15264 shrext_cmds=.dll
15265 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15268 $ECHO EXPORTS >> $output_objdir/$libname.def~
15269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15271 emximp -o $lib $output_objdir/$libname.def'
15272 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15275 $ECHO EXPORTS >> $output_objdir/$libname.def~
15276 prefix_cmds="$SED"~
15277 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15278 prefix_cmds="$prefix_cmds -e 1d";
15279 fi~
15280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15283 emximp -o $lib $output_objdir/$libname.def'
15284 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15285 enable_shared_with_static_runtimes_CXX=yes
15286 file_list_spec_CXX='@'
15287 ;;
15288
15289 dgux*)
15290 case $cc_basename in
15291 ec++*)
15292 # FIXME: insert proper C++ library support
15293 ld_shlibs_CXX=no
15294 ;;
15295 ghcx*)
15296 # Green Hills C++ Compiler
15297 # FIXME: insert proper C++ library support
15298 ld_shlibs_CXX=no
15299 ;;
15300 *)
15301 # FIXME: insert proper C++ library support
15302 ld_shlibs_CXX=no
15303 ;;
15304 esac
15305 ;;
15306
15307 freebsd2.*)
15308 # C++ shared libraries reported to be fairly broken before
15309 # switch to ELF
15310 ld_shlibs_CXX=no
15311 ;;
15312
15313 freebsd-elf*)
15314 archive_cmds_need_lc_CXX=no
15315 ;;
15316
15317 freebsd* | dragonfly* | midnightbsd*)
15318 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15319 # conventions
15320 ld_shlibs_CXX=yes
15321 ;;
15322
15323 haiku*)
15324 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15325 link_all_deplibs_CXX=yes
15326 ;;
15327
15328 hpux9*)
15329 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15330 hardcode_libdir_separator_CXX=:
15331 export_dynamic_flag_spec_CXX='$wl-E'
15332 hardcode_direct_CXX=yes
15333 hardcode_minus_L_CXX=yes # Not in the search PATH,
15334 # but as the default
15335 # location of the library.
15336
15337 case $cc_basename in
15338 CC*)
15339 # FIXME: insert proper C++ library support
15340 ld_shlibs_CXX=no
15341 ;;
15342 aCC*)
15343 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15344 # Commands to make compiler produce verbose output that lists
15345 # what "hidden" libraries, object files and flags are used when
15346 # linking a shared library.
15347 #
15348 # There doesn't appear to be a way to prevent this compiler from
15349 # explicitly linking system object files so we need to strip them
15350 # from the output so that they don't get included in the library
15351 # dependencies.
15352 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15353 ;;
15354 *)
15355 if test yes = "$GXX"; then
15356 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15357 else
15358 # FIXME: insert proper C++ library support
15359 ld_shlibs_CXX=no
15360 fi
15361 ;;
15362 esac
15363 ;;
15364
15365 hpux10*|hpux11*)
15366 if test no = "$with_gnu_ld"; then
15367 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15368 hardcode_libdir_separator_CXX=:
15369
15370 case $host_cpu in
15371 hppa*64*|ia64*)
15372 ;;
15373 *)
15374 export_dynamic_flag_spec_CXX='$wl-E'
15375 ;;
15376 esac
15377 fi
15378 case $host_cpu in
15379 hppa*64*|ia64*)
15380 hardcode_direct_CXX=no
15381 hardcode_shlibpath_var_CXX=no
15382 ;;
15383 *)
15384 hardcode_direct_CXX=yes
15385 hardcode_direct_absolute_CXX=yes
15386 hardcode_minus_L_CXX=yes # Not in the search PATH,
15387 # but as the default
15388 # location of the library.
15389 ;;
15390 esac
15391
15392 case $cc_basename in
15393 CC*)
15394 # FIXME: insert proper C++ library support
15395 ld_shlibs_CXX=no
15396 ;;
15397 aCC*)
15398 case $host_cpu in
15399 hppa*64*)
15400 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15401 ;;
15402 ia64*)
15403 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15404 ;;
15405 *)
15406 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15407 ;;
15408 esac
15409 # Commands to make compiler produce verbose output that lists
15410 # what "hidden" libraries, object files and flags are used when
15411 # linking a shared library.
15412 #
15413 # There doesn't appear to be a way to prevent this compiler from
15414 # explicitly linking system object files so we need to strip them
15415 # from the output so that they don't get included in the library
15416 # dependencies.
15417 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15418 ;;
15419 *)
15420 if test yes = "$GXX"; then
15421 if test no = "$with_gnu_ld"; then
15422 case $host_cpu in
15423 hppa*64*)
15424 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15425 ;;
15426 ia64*)
15427 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15428 ;;
15429 *)
15430 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15431 ;;
15432 esac
15433 fi
15434 else
15435 # FIXME: insert proper C++ library support
15436 ld_shlibs_CXX=no
15437 fi
15438 ;;
15439 esac
15440 ;;
15441
15442 interix[3-9]*)
15443 hardcode_direct_CXX=no
15444 hardcode_shlibpath_var_CXX=no
15445 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15446 export_dynamic_flag_spec_CXX='$wl-E'
15447 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15448 # Instead, shared libraries are loaded at an image base (0x10000000 by
15449 # default) and relocated if they conflict, which is a slow very memory
15450 # consuming and fragmenting process. To avoid this, we pick a random,
15451 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15452 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15453 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15454 archive_expsym_cmds_CXX='$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'
15455 ;;
15456 irix5* | irix6*)
15457 case $cc_basename in
15458 CC*)
15459 # SGI C++
15460 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15461
15462 # Archives containing C++ object files must be created using
15463 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15464 # necessary to make sure instantiated templates are included
15465 # in the archive.
15466 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15467 ;;
15468 *)
15469 if test yes = "$GXX"; then
15470 if test no = "$with_gnu_ld"; then
15471 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15472 else
15473 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15474 fi
15475 fi
15476 link_all_deplibs_CXX=yes
15477 ;;
15478 esac
15479 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15480 hardcode_libdir_separator_CXX=:
15481 inherit_rpath_CXX=yes
15482 ;;
15483
15484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15485 case $cc_basename in
15486 KCC*)
15487 # Kuck and Associates, Inc. (KAI) C++ Compiler
15488
15489 # KCC will only create a shared library if the output file
15490 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15491 # to its proper name (with version) after linking.
15492 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15493 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15494 # Commands to make compiler produce verbose output that lists
15495 # what "hidden" libraries, object files and flags are used when
15496 # linking a shared library.
15497 #
15498 # There doesn't appear to be a way to prevent this compiler from
15499 # explicitly linking system object files so we need to strip them
15500 # from the output so that they don't get included in the library
15501 # dependencies.
15502 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15503
15504 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15505 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15506
15507 # Archives containing C++ object files must be created using
15508 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15509 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15510 ;;
15511 icpc* | ecpc* )
15512 # Intel C++
15513 with_gnu_ld=yes
15514 # version 8.0 and above of icpc choke on multiply defined symbols
15515 # if we add $predep_objects and $postdep_objects, however 7.1 and
15516 # earlier do not add the objects themselves.
15517 case `$CC -V 2>&1` in
15518 *"Version 7."*)
15519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15520 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15521 ;;
15522 *) # Version 8.0 or newer
15523 tmp_idyn=
15524 case $host_cpu in
15525 ia64*) tmp_idyn=' -i_dynamic';;
15526 esac
15527 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15528 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15529 ;;
15530 esac
15531 archive_cmds_need_lc_CXX=no
15532 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15533 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15534 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15535 ;;
15536 pgCC* | pgcpp*)
15537 # Portland Group C++ compiler
15538 case `$CC -V` in
15539 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15540 prelink_cmds_CXX='tpldir=Template.dir~
15541 rm -rf $tpldir~
15542 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15543 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15544 old_archive_cmds_CXX='tpldir=Template.dir~
15545 rm -rf $tpldir~
15546 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15547 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15548 $RANLIB $oldlib'
15549 archive_cmds_CXX='tpldir=Template.dir~
15550 rm -rf $tpldir~
15551 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15552 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15553 archive_expsym_cmds_CXX='tpldir=Template.dir~
15554 rm -rf $tpldir~
15555 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15556 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15557 ;;
15558 *) # Version 6 and above use weak symbols
15559 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15560 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15561 ;;
15562 esac
15563
15564 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15565 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15566 whole_archive_flag_spec_CXX='$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'
15567 ;;
15568 cxx*)
15569 # Compaq C++
15570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15571 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15572
15573 runpath_var=LD_RUN_PATH
15574 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15575 hardcode_libdir_separator_CXX=:
15576
15577 # Commands to make compiler produce verbose output that lists
15578 # what "hidden" libraries, object files and flags are used when
15579 # linking a shared library.
15580 #
15581 # There doesn't appear to be a way to prevent this compiler from
15582 # explicitly linking system object files so we need to strip them
15583 # from the output so that they don't get included in the library
15584 # dependencies.
15585 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15586 ;;
15587 xl* | mpixl* | bgxl*)
15588 # IBM XL 8.0 on PPC, with GNU ld
15589 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15590 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15591 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15592 if test yes = "$supports_anon_versioning"; then
15593 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15594 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15595 echo "local: *; };" >> $output_objdir/$libname.ver~
15596 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15597 fi
15598 ;;
15599 *)
15600 case `$CC -V 2>&1 | $SED 5q` in
15601 *Sun\ C*)
15602 # Sun C++ 5.9
15603 no_undefined_flag_CXX=' -zdefs'
15604 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15605 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15606 hardcode_libdir_flag_spec_CXX='-R$libdir'
15607 whole_archive_flag_spec_CXX='$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'
15608 compiler_needs_object_CXX=yes
15609
15610 # Not sure whether something based on
15611 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15612 # would be better.
15613 output_verbose_link_cmd='func_echo_all'
15614
15615 # Archives containing C++ object files must be created using
15616 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15617 # necessary to make sure instantiated templates are included
15618 # in the archive.
15619 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15620 ;;
15621 esac
15622 ;;
15623 esac
15624 ;;
15625
15626 lynxos*)
15627 # FIXME: insert proper C++ library support
15628 ld_shlibs_CXX=no
15629 ;;
15630
15631 m88k*)
15632 # FIXME: insert proper C++ library support
15633 ld_shlibs_CXX=no
15634 ;;
15635
15636 mvs*)
15637 case $cc_basename in
15638 cxx*)
15639 # FIXME: insert proper C++ library support
15640 ld_shlibs_CXX=no
15641 ;;
15642 *)
15643 # FIXME: insert proper C++ library support
15644 ld_shlibs_CXX=no
15645 ;;
15646 esac
15647 ;;
15648
15649 netbsd*)
15650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15651 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15652 wlarc=
15653 hardcode_libdir_flag_spec_CXX='-R$libdir'
15654 hardcode_direct_CXX=yes
15655 hardcode_shlibpath_var_CXX=no
15656 fi
15657 # Workaround some broken pre-1.5 toolchains
15658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15659 ;;
15660
15661 *nto* | *qnx*)
15662 ld_shlibs_CXX=yes
15663 ;;
15664
15665 openbsd* | bitrig*)
15666 if test -f /usr/libexec/ld.so; then
15667 hardcode_direct_CXX=yes
15668 hardcode_shlibpath_var_CXX=no
15669 hardcode_direct_absolute_CXX=yes
15670 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15671 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15673 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15674 export_dynamic_flag_spec_CXX='$wl-E'
15675 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15676 fi
15677 output_verbose_link_cmd=func_echo_all
15678 else
15679 ld_shlibs_CXX=no
15680 fi
15681 ;;
15682
15683 osf3* | osf4* | osf5*)
15684 case $cc_basename in
15685 KCC*)
15686 # Kuck and Associates, Inc. (KAI) C++ Compiler
15687
15688 # KCC will only create a shared library if the output file
15689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15690 # to its proper name (with version) after linking.
15691 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15692
15693 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15694 hardcode_libdir_separator_CXX=:
15695
15696 # Archives containing C++ object files must be created using
15697 # the KAI C++ compiler.
15698 case $host in
15699 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15700 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15701 esac
15702 ;;
15703 RCC*)
15704 # Rational C++ 2.4.1
15705 # FIXME: insert proper C++ library support
15706 ld_shlibs_CXX=no
15707 ;;
15708 cxx*)
15709 case $host in
15710 osf3*)
15711 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15712 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15713 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15714 ;;
15715 *)
15716 allow_undefined_flag_CXX=' -expect_unresolved \*'
15717 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15718 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15719 echo "-hidden">> $lib.exp~
15720 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15721 $RM $lib.exp'
15722 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15723 ;;
15724 esac
15725
15726 hardcode_libdir_separator_CXX=:
15727
15728 # Commands to make compiler produce verbose output that lists
15729 # what "hidden" libraries, object files and flags are used when
15730 # linking a shared library.
15731 #
15732 # There doesn't appear to be a way to prevent this compiler from
15733 # explicitly linking system object files so we need to strip them
15734 # from the output so that they don't get included in the library
15735 # dependencies.
15736 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15737 ;;
15738 *)
15739 if test yes,no = "$GXX,$with_gnu_ld"; then
15740 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15741 case $host in
15742 osf3*)
15743 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15744 ;;
15745 *)
15746 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15747 ;;
15748 esac
15749
15750 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15751 hardcode_libdir_separator_CXX=:
15752
15753 # Commands to make compiler produce verbose output that lists
15754 # what "hidden" libraries, object files and flags are used when
15755 # linking a shared library.
15756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15757
15758 else
15759 # FIXME: insert proper C++ library support
15760 ld_shlibs_CXX=no
15761 fi
15762 ;;
15763 esac
15764 ;;
15765
15766 psos*)
15767 # FIXME: insert proper C++ library support
15768 ld_shlibs_CXX=no
15769 ;;
15770
15771 sunos4*)
15772 case $cc_basename in
15773 CC*)
15774 # Sun C++ 4.x
15775 # FIXME: insert proper C++ library support
15776 ld_shlibs_CXX=no
15777 ;;
15778 lcc*)
15779 # Lucid
15780 # FIXME: insert proper C++ library support
15781 ld_shlibs_CXX=no
15782 ;;
15783 *)
15784 # FIXME: insert proper C++ library support
15785 ld_shlibs_CXX=no
15786 ;;
15787 esac
15788 ;;
15789
15790 solaris*)
15791 case $cc_basename in
15792 CC* | sunCC*)
15793 # Sun C++ 4.2, 5.x and Centerline C++
15794 archive_cmds_need_lc_CXX=yes
15795 no_undefined_flag_CXX=' -zdefs'
15796 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15797 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15798 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15799
15800 hardcode_libdir_flag_spec_CXX='-R$libdir'
15801 hardcode_shlibpath_var_CXX=no
15802 case $host_os in
15803 solaris2.[0-5] | solaris2.[0-5].*) ;;
15804 *)
15805 # The compiler driver will combine and reorder linker options,
15806 # but understands '-z linker_flag'.
15807 # Supported since Solaris 2.6 (maybe 2.5.1?)
15808 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15809 ;;
15810 esac
15811 link_all_deplibs_CXX=yes
15812
15813 output_verbose_link_cmd='func_echo_all'
15814
15815 # Archives containing C++ object files must be created using
15816 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15817 # necessary to make sure instantiated templates are included
15818 # in the archive.
15819 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15820 ;;
15821 gcx*)
15822 # Green Hills C++ Compiler
15823 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15824
15825 # The C++ compiler must be used to create the archive.
15826 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15827 ;;
15828 *)
15829 # GNU C++ compiler with Solaris linker
15830 if test yes,no = "$GXX,$with_gnu_ld"; then
15831 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15832 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15833 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15834 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15835 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15836
15837 # Commands to make compiler produce verbose output that lists
15838 # what "hidden" libraries, object files and flags are used when
15839 # linking a shared library.
15840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15841 else
15842 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15843 # platform.
15844 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15845 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15846 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15847
15848 # Commands to make compiler produce verbose output that lists
15849 # what "hidden" libraries, object files and flags are used when
15850 # linking a shared library.
15851 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15852 fi
15853
15854 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15855 case $host_os in
15856 solaris2.[0-5] | solaris2.[0-5].*) ;;
15857 *)
15858 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15859 ;;
15860 esac
15861 fi
15862 ;;
15863 esac
15864 ;;
15865
15866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15867 no_undefined_flag_CXX='$wl-z,text'
15868 archive_cmds_need_lc_CXX=no
15869 hardcode_shlibpath_var_CXX=no
15870 runpath_var='LD_RUN_PATH'
15871
15872 case $cc_basename in
15873 CC*)
15874 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15875 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15876 ;;
15877 *)
15878 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 ;;
15881 esac
15882 ;;
15883
15884 sysv5* | sco3.2v5* | sco5v6*)
15885 # Note: We CANNOT use -z defs as we might desire, because we do not
15886 # link with -lc, and that would cause any symbols used from libc to
15887 # always be unresolved, which means just about no library would
15888 # ever link correctly. If we're not using GNU ld we use -z text
15889 # though, which does catch some bad symbols but isn't as heavy-handed
15890 # as -z defs.
15891 no_undefined_flag_CXX='$wl-z,text'
15892 allow_undefined_flag_CXX='$wl-z,nodefs'
15893 archive_cmds_need_lc_CXX=no
15894 hardcode_shlibpath_var_CXX=no
15895 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15896 hardcode_libdir_separator_CXX=':'
15897 link_all_deplibs_CXX=yes
15898 export_dynamic_flag_spec_CXX='$wl-Bexport'
15899 runpath_var='LD_RUN_PATH'
15900
15901 case $cc_basename in
15902 CC*)
15903 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15906 '"$old_archive_cmds_CXX"
15907 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15908 '"$reload_cmds_CXX"
15909 ;;
15910 *)
15911 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 ;;
15914 esac
15915 ;;
15916
15917 tandem*)
15918 case $cc_basename in
15919 NCC*)
15920 # NonStop-UX NCC 3.20
15921 # FIXME: insert proper C++ library support
15922 ld_shlibs_CXX=no
15923 ;;
15924 *)
15925 # FIXME: insert proper C++ library support
15926 ld_shlibs_CXX=no
15927 ;;
15928 esac
15929 ;;
15930
15931 vxworks*)
15932 # FIXME: insert proper C++ library support
15933 ld_shlibs_CXX=no
15934 ;;
15935
15936 *)
15937 # FIXME: insert proper C++ library support
15938 ld_shlibs_CXX=no
15939 ;;
15940 esac
15941
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15943 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15944 test no = "$ld_shlibs_CXX" && can_build_shared=no
15945
15946 GCC_CXX=$GXX
15947 LD_CXX=$LD
15948
15949 ## CAVEAT EMPTOR:
15950 ## There is no encapsulation within the following macros, do not change
15951 ## the running order or otherwise move them around unless you know exactly
15952 ## what you are doing...
15953 # Dependencies to place before and after the object being linked:
15954 predep_objects_CXX=
15955 postdep_objects_CXX=
15956 predeps_CXX=
15957 postdeps_CXX=
15958 compiler_lib_search_path_CXX=
15959
15960 cat > conftest.$ac_ext <<_LT_EOF
15961 class Foo
15962 {
15963 public:
15964 Foo (void) { a = 0; }
15965 private:
15966 int a;
15967 };
15968 _LT_EOF
15969
15970
15971 _lt_libdeps_save_CFLAGS=$CFLAGS
15972 case "$CC $CFLAGS " in #(
15973 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15974 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15975 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15976 esac
15977
15978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15979 (eval $ac_compile) 2>&5
15980 ac_status=$?
15981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982 test $ac_status = 0; }; then
15983 # Parse the compiler output and extract the necessary
15984 # objects, libraries and library flags.
15985
15986 # Sentinel used to keep track of whether or not we are before
15987 # the conftest object file.
15988 pre_test_object_deps_done=no
15989
15990 for p in `eval "$output_verbose_link_cmd"`; do
15991 case $prev$p in
15992
15993 -L* | -R* | -l*)
15994 # Some compilers place space between "-{L,R}" and the path.
15995 # Remove the space.
15996 if test x-L = "$p" ||
15997 test x-R = "$p"; then
15998 prev=$p
15999 continue
16000 fi
16001
16002 # Expand the sysroot to ease extracting the directories later.
16003 if test -z "$prev"; then
16004 case $p in
16005 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16006 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16007 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16008 esac
16009 fi
16010 case $p in
16011 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16012 esac
16013 if test no = "$pre_test_object_deps_done"; then
16014 case $prev in
16015 -L | -R)
16016 # Internal compiler library paths should come after those
16017 # provided the user. The postdeps already come after the
16018 # user supplied libs so there is no need to process them.
16019 if test -z "$compiler_lib_search_path_CXX"; then
16020 compiler_lib_search_path_CXX=$prev$p
16021 else
16022 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16023 fi
16024 ;;
16025 # The "-l" case would never come before the object being
16026 # linked, so don't bother handling this case.
16027 esac
16028 else
16029 if test -z "$postdeps_CXX"; then
16030 postdeps_CXX=$prev$p
16031 else
16032 postdeps_CXX="${postdeps_CXX} $prev$p"
16033 fi
16034 fi
16035 prev=
16036 ;;
16037
16038 *.lto.$objext) ;; # Ignore GCC LTO objects
16039 *.$objext)
16040 # This assumes that the test object file only shows up
16041 # once in the compiler output.
16042 if test "$p" = "conftest.$objext"; then
16043 pre_test_object_deps_done=yes
16044 continue
16045 fi
16046
16047 if test no = "$pre_test_object_deps_done"; then
16048 if test -z "$predep_objects_CXX"; then
16049 predep_objects_CXX=$p
16050 else
16051 predep_objects_CXX="$predep_objects_CXX $p"
16052 fi
16053 else
16054 if test -z "$postdep_objects_CXX"; then
16055 postdep_objects_CXX=$p
16056 else
16057 postdep_objects_CXX="$postdep_objects_CXX $p"
16058 fi
16059 fi
16060 ;;
16061
16062 *) ;; # Ignore the rest.
16063
16064 esac
16065 done
16066
16067 # Clean up.
16068 rm -f a.out a.exe
16069 else
16070 echo "libtool.m4: error: problem compiling CXX test program"
16071 fi
16072
16073 $RM -f confest.$objext
16074 CFLAGS=$_lt_libdeps_save_CFLAGS
16075
16076 # PORTME: override above test on systems where it is broken
16077 case $host_os in
16078 interix[3-9]*)
16079 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16080 # hack all around it, let's just trust "g++" to DTRT.
16081 predep_objects_CXX=
16082 postdep_objects_CXX=
16083 postdeps_CXX=
16084 ;;
16085 esac
16086
16087
16088 case " $postdeps_CXX " in
16089 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16090 esac
16091 compiler_lib_search_dirs_CXX=
16092 if test -n "${compiler_lib_search_path_CXX}"; then
16093 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16094 fi
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126 lt_prog_compiler_wl_CXX=
16127 lt_prog_compiler_pic_CXX=
16128 lt_prog_compiler_static_CXX=
16129
16130
16131 # C++ specific cases for pic, static, wl, etc.
16132 if test yes = "$GXX"; then
16133 lt_prog_compiler_wl_CXX='-Wl,'
16134 lt_prog_compiler_static_CXX='-static'
16135
16136 case $host_os in
16137 aix*)
16138 # All AIX code is PIC.
16139 if test ia64 = "$host_cpu"; then
16140 # AIX 5 now supports IA64 processor
16141 lt_prog_compiler_static_CXX='-Bstatic'
16142 fi
16143 lt_prog_compiler_pic_CXX='-fPIC'
16144 ;;
16145
16146 amigaos*)
16147 case $host_cpu in
16148 powerpc)
16149 # see comment about AmigaOS4 .so support
16150 lt_prog_compiler_pic_CXX='-fPIC'
16151 ;;
16152 m68k)
16153 # FIXME: we need at least 68020 code to build shared libraries, but
16154 # adding the '-m68020' flag to GCC prevents building anything better,
16155 # like '-m68040'.
16156 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16157 ;;
16158 esac
16159 ;;
16160
16161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16162 # PIC is the default for these OSes.
16163 ;;
16164 mingw* | cygwin* | os2* | pw32* | cegcc*)
16165 # This hack is so that the source file can tell whether it is being
16166 # built for inclusion in a dll (and should export symbols for example).
16167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16168 # (--disable-auto-import) libraries
16169 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16170 case $host_os in
16171 os2*)
16172 lt_prog_compiler_static_CXX='$wl-static'
16173 ;;
16174 esac
16175 ;;
16176 darwin* | rhapsody*)
16177 # PIC is the default on this platform
16178 # Common symbols not allowed in MH_DYLIB files
16179 lt_prog_compiler_pic_CXX='-fno-common'
16180 ;;
16181 *djgpp*)
16182 # DJGPP does not support shared libraries at all
16183 lt_prog_compiler_pic_CXX=
16184 ;;
16185 haiku*)
16186 # PIC is the default for Haiku.
16187 # The "-static" flag exists, but is broken.
16188 lt_prog_compiler_static_CXX=
16189 ;;
16190 interix[3-9]*)
16191 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16192 # Instead, we relocate shared libraries at runtime.
16193 ;;
16194 sysv4*MP*)
16195 if test -d /usr/nec; then
16196 lt_prog_compiler_pic_CXX=-Kconform_pic
16197 fi
16198 ;;
16199 hpux*)
16200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16202 # sets the default TLS model and affects inlining.
16203 case $host_cpu in
16204 hppa*64*)
16205 ;;
16206 *)
16207 lt_prog_compiler_pic_CXX='-fPIC'
16208 ;;
16209 esac
16210 ;;
16211 *qnx* | *nto*)
16212 # QNX uses GNU C++, but need to define -shared option too, otherwise
16213 # it will coredump.
16214 lt_prog_compiler_pic_CXX='-fPIC -shared'
16215 ;;
16216 *)
16217 lt_prog_compiler_pic_CXX='-fPIC'
16218 ;;
16219 esac
16220 else
16221 case $host_os in
16222 aix[4-9]*)
16223 # All AIX code is PIC.
16224 if test ia64 = "$host_cpu"; then
16225 # AIX 5 now supports IA64 processor
16226 lt_prog_compiler_static_CXX='-Bstatic'
16227 else
16228 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16229 fi
16230 ;;
16231 chorus*)
16232 case $cc_basename in
16233 cxch68*)
16234 # Green Hills C++ Compiler
16235 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16236 ;;
16237 esac
16238 ;;
16239 mingw* | cygwin* | os2* | pw32* | cegcc*)
16240 # This hack is so that the source file can tell whether it is being
16241 # built for inclusion in a dll (and should export symbols for example).
16242 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16243 ;;
16244 dgux*)
16245 case $cc_basename in
16246 ec++*)
16247 lt_prog_compiler_pic_CXX='-KPIC'
16248 ;;
16249 ghcx*)
16250 # Green Hills C++ Compiler
16251 lt_prog_compiler_pic_CXX='-pic'
16252 ;;
16253 *)
16254 ;;
16255 esac
16256 ;;
16257 freebsd* | dragonfly* | midnightbsd*)
16258 # FreeBSD uses GNU C++
16259 ;;
16260 hpux9* | hpux10* | hpux11*)
16261 case $cc_basename in
16262 CC*)
16263 lt_prog_compiler_wl_CXX='-Wl,'
16264 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16265 if test ia64 != "$host_cpu"; then
16266 lt_prog_compiler_pic_CXX='+Z'
16267 fi
16268 ;;
16269 aCC*)
16270 lt_prog_compiler_wl_CXX='-Wl,'
16271 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16272 case $host_cpu in
16273 hppa*64*|ia64*)
16274 # +Z the default
16275 ;;
16276 *)
16277 lt_prog_compiler_pic_CXX='+Z'
16278 ;;
16279 esac
16280 ;;
16281 *)
16282 ;;
16283 esac
16284 ;;
16285 interix*)
16286 # This is c89, which is MS Visual C++ (no shared libs)
16287 # Anyone wants to do a port?
16288 ;;
16289 irix5* | irix6* | nonstopux*)
16290 case $cc_basename in
16291 CC*)
16292 lt_prog_compiler_wl_CXX='-Wl,'
16293 lt_prog_compiler_static_CXX='-non_shared'
16294 # CC pic flag -KPIC is the default.
16295 ;;
16296 *)
16297 ;;
16298 esac
16299 ;;
16300 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16301 case $cc_basename in
16302 KCC*)
16303 # KAI C++ Compiler
16304 lt_prog_compiler_wl_CXX='--backend -Wl,'
16305 lt_prog_compiler_pic_CXX='-fPIC'
16306 ;;
16307 ecpc* )
16308 # old Intel C++ for x86_64, which still supported -KPIC.
16309 lt_prog_compiler_wl_CXX='-Wl,'
16310 lt_prog_compiler_pic_CXX='-KPIC'
16311 lt_prog_compiler_static_CXX='-static'
16312 ;;
16313 icpc* )
16314 # Intel C++, used to be incompatible with GCC.
16315 # ICC 10 doesn't accept -KPIC any more.
16316 lt_prog_compiler_wl_CXX='-Wl,'
16317 lt_prog_compiler_pic_CXX='-fPIC'
16318 lt_prog_compiler_static_CXX='-static'
16319 ;;
16320 pgCC* | pgcpp*)
16321 # Portland Group C++ compiler
16322 lt_prog_compiler_wl_CXX='-Wl,'
16323 lt_prog_compiler_pic_CXX='-fpic'
16324 lt_prog_compiler_static_CXX='-Bstatic'
16325 ;;
16326 cxx*)
16327 # Compaq C++
16328 # Make sure the PIC flag is empty. It appears that all Alpha
16329 # Linux and Compaq Tru64 Unix objects are PIC.
16330 lt_prog_compiler_pic_CXX=
16331 lt_prog_compiler_static_CXX='-non_shared'
16332 ;;
16333 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16334 # IBM XL 8.0, 9.0 on PPC and BlueGene
16335 lt_prog_compiler_wl_CXX='-Wl,'
16336 lt_prog_compiler_pic_CXX='-qpic'
16337 lt_prog_compiler_static_CXX='-qstaticlink'
16338 ;;
16339 *)
16340 case `$CC -V 2>&1 | $SED 5q` in
16341 *Sun\ C*)
16342 # Sun C++ 5.9
16343 lt_prog_compiler_pic_CXX='-KPIC'
16344 lt_prog_compiler_static_CXX='-Bstatic'
16345 lt_prog_compiler_wl_CXX='-Qoption ld '
16346 ;;
16347 esac
16348 ;;
16349 esac
16350 ;;
16351 lynxos*)
16352 ;;
16353 m88k*)
16354 ;;
16355 mvs*)
16356 case $cc_basename in
16357 cxx*)
16358 lt_prog_compiler_pic_CXX='-W c,exportall'
16359 ;;
16360 *)
16361 ;;
16362 esac
16363 ;;
16364 netbsd*)
16365 ;;
16366 *qnx* | *nto*)
16367 # QNX uses GNU C++, but need to define -shared option too, otherwise
16368 # it will coredump.
16369 lt_prog_compiler_pic_CXX='-fPIC -shared'
16370 ;;
16371 osf3* | osf4* | osf5*)
16372 case $cc_basename in
16373 KCC*)
16374 lt_prog_compiler_wl_CXX='--backend -Wl,'
16375 ;;
16376 RCC*)
16377 # Rational C++ 2.4.1
16378 lt_prog_compiler_pic_CXX='-pic'
16379 ;;
16380 cxx*)
16381 # Digital/Compaq C++
16382 lt_prog_compiler_wl_CXX='-Wl,'
16383 # Make sure the PIC flag is empty. It appears that all Alpha
16384 # Linux and Compaq Tru64 Unix objects are PIC.
16385 lt_prog_compiler_pic_CXX=
16386 lt_prog_compiler_static_CXX='-non_shared'
16387 ;;
16388 *)
16389 ;;
16390 esac
16391 ;;
16392 psos*)
16393 ;;
16394 solaris*)
16395 case $cc_basename in
16396 CC* | sunCC*)
16397 # Sun C++ 4.2, 5.x and Centerline C++
16398 lt_prog_compiler_pic_CXX='-KPIC'
16399 lt_prog_compiler_static_CXX='-Bstatic'
16400 lt_prog_compiler_wl_CXX='-Qoption ld '
16401 ;;
16402 gcx*)
16403 # Green Hills C++ Compiler
16404 lt_prog_compiler_pic_CXX='-PIC'
16405 ;;
16406 *)
16407 ;;
16408 esac
16409 ;;
16410 sunos4*)
16411 case $cc_basename in
16412 CC*)
16413 # Sun C++ 4.x
16414 lt_prog_compiler_pic_CXX='-pic'
16415 lt_prog_compiler_static_CXX='-Bstatic'
16416 ;;
16417 lcc*)
16418 # Lucid
16419 lt_prog_compiler_pic_CXX='-pic'
16420 ;;
16421 *)
16422 ;;
16423 esac
16424 ;;
16425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16426 case $cc_basename in
16427 CC*)
16428 lt_prog_compiler_wl_CXX='-Wl,'
16429 lt_prog_compiler_pic_CXX='-KPIC'
16430 lt_prog_compiler_static_CXX='-Bstatic'
16431 ;;
16432 esac
16433 ;;
16434 tandem*)
16435 case $cc_basename in
16436 NCC*)
16437 # NonStop-UX NCC 3.20
16438 lt_prog_compiler_pic_CXX='-KPIC'
16439 ;;
16440 *)
16441 ;;
16442 esac
16443 ;;
16444 vxworks*)
16445 ;;
16446 *)
16447 lt_prog_compiler_can_build_shared_CXX=no
16448 ;;
16449 esac
16450 fi
16451
16452 case $host_os in
16453 # For platforms that do not support PIC, -DPIC is meaningless:
16454 *djgpp*)
16455 lt_prog_compiler_pic_CXX=
16456 ;;
16457 *)
16458 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16459 ;;
16460 esac
16461
16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16463 printf %s "checking for $compiler option to produce PIC... " >&6; }
16464 if test ${lt_cv_prog_compiler_pic_CXX+y}
16465 then :
16466 printf %s "(cached) " >&6
16467 else case e in #(
16468 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
16469 esac
16470 fi
16471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16472 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16473 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16474
16475 #
16476 # Check to make sure the PIC flag actually works.
16477 #
16478 if test -n "$lt_prog_compiler_pic_CXX"; then
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16480 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16481 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16482 then :
16483 printf %s "(cached) " >&6
16484 else case e in #(
16485 e) lt_cv_prog_compiler_pic_works_CXX=no
16486 ac_outfile=conftest.$ac_objext
16487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16488 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16489 # Insert the option either (1) after the last *FLAGS variable, or
16490 # (2) before a word containing "conftest.", or (3) at the end.
16491 # Note that $ac_compile itself does not contain backslashes and begins
16492 # with a dollar sign (not a hyphen), so the echo should work correctly.
16493 # The option is referenced via a variable to avoid confusing sed.
16494 lt_compile=`echo "$ac_compile" | $SED \
16495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16497 -e 's:$: $lt_compiler_flag:'`
16498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16499 (eval "$lt_compile" 2>conftest.err)
16500 ac_status=$?
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 if (exit $ac_status) && test -s "$ac_outfile"; then
16504 # The compiler can only warn and ignore the option if not recognized
16505 # So say no if there are warnings other than the usual output.
16506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16509 lt_cv_prog_compiler_pic_works_CXX=yes
16510 fi
16511 fi
16512 $RM conftest*
16513 ;;
16514 esac
16515 fi
16516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16517 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16518
16519 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16520 case $lt_prog_compiler_pic_CXX in
16521 "" | " "*) ;;
16522 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16523 esac
16524 else
16525 lt_prog_compiler_pic_CXX=
16526 lt_prog_compiler_can_build_shared_CXX=no
16527 fi
16528
16529 fi
16530
16531
16532
16533
16534
16535 #
16536 # Check to make sure the static flag actually works.
16537 #
16538 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16540 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16541 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16542 then :
16543 printf %s "(cached) " >&6
16544 else case e in #(
16545 e) lt_cv_prog_compiler_static_works_CXX=no
16546 save_LDFLAGS=$LDFLAGS
16547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16550 # The linker can only warn and ignore the option if not recognized
16551 # So say no if there are warnings
16552 if test -s conftest.err; then
16553 # Append any errors to the config.log.
16554 cat conftest.err 1>&5
16555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16557 if diff conftest.exp conftest.er2 >/dev/null; then
16558 lt_cv_prog_compiler_static_works_CXX=yes
16559 fi
16560 else
16561 lt_cv_prog_compiler_static_works_CXX=yes
16562 fi
16563 fi
16564 $RM -r conftest*
16565 LDFLAGS=$save_LDFLAGS
16566 ;;
16567 esac
16568 fi
16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16570 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16571
16572 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16573 :
16574 else
16575 lt_prog_compiler_static_CXX=
16576 fi
16577
16578
16579
16580
16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16582 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16583 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16584 then :
16585 printf %s "(cached) " >&6
16586 else case e in #(
16587 e) lt_cv_prog_compiler_c_o_CXX=no
16588 $RM -r conftest 2>/dev/null
16589 mkdir conftest
16590 cd conftest
16591 mkdir out
16592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16593
16594 lt_compiler_flag="-o out/conftest2.$ac_objext"
16595 # Insert the option either (1) after the last *FLAGS variable, or
16596 # (2) before a word containing "conftest.", or (3) at the end.
16597 # Note that $ac_compile itself does not contain backslashes and begins
16598 # with a dollar sign (not a hyphen), so the echo should work correctly.
16599 lt_compile=`echo "$ac_compile" | $SED \
16600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16602 -e 's:$: $lt_compiler_flag:'`
16603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16604 (eval "$lt_compile" 2>out/conftest.err)
16605 ac_status=$?
16606 cat out/conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16609 then
16610 # The compiler can only warn and ignore the option if not recognized
16611 # So say no if there are warnings
16612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16615 lt_cv_prog_compiler_c_o_CXX=yes
16616 fi
16617 fi
16618 chmod u+w . 2>&5
16619 $RM conftest*
16620 # SGI C++ compiler will create directory out/ii_files/ for
16621 # template instantiation
16622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16623 $RM out/* && rmdir out
16624 cd ..
16625 $RM -r conftest
16626 $RM conftest*
16627 ;;
16628 esac
16629 fi
16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16631 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16632
16633
16634
16635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16636 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16637 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16638 then :
16639 printf %s "(cached) " >&6
16640 else case e in #(
16641 e) lt_cv_prog_compiler_c_o_CXX=no
16642 $RM -r conftest 2>/dev/null
16643 mkdir conftest
16644 cd conftest
16645 mkdir out
16646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16647
16648 lt_compiler_flag="-o out/conftest2.$ac_objext"
16649 # Insert the option either (1) after the last *FLAGS variable, or
16650 # (2) before a word containing "conftest.", or (3) at the end.
16651 # Note that $ac_compile itself does not contain backslashes and begins
16652 # with a dollar sign (not a hyphen), so the echo should work correctly.
16653 lt_compile=`echo "$ac_compile" | $SED \
16654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16656 -e 's:$: $lt_compiler_flag:'`
16657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16658 (eval "$lt_compile" 2>out/conftest.err)
16659 ac_status=$?
16660 cat out/conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16663 then
16664 # The compiler can only warn and ignore the option if not recognized
16665 # So say no if there are warnings
16666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16669 lt_cv_prog_compiler_c_o_CXX=yes
16670 fi
16671 fi
16672 chmod u+w . 2>&5
16673 $RM conftest*
16674 # SGI C++ compiler will create directory out/ii_files/ for
16675 # template instantiation
16676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16677 $RM out/* && rmdir out
16678 cd ..
16679 $RM -r conftest
16680 $RM conftest*
16681 ;;
16682 esac
16683 fi
16684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16685 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16686
16687
16688
16689
16690 hard_links=nottested
16691 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16692 # do not overwrite the value of need_locks provided by the user
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16694 printf %s "checking if we can lock with hard links... " >&6; }
16695 hard_links=yes
16696 $RM conftest*
16697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16698 touch conftest.a
16699 ln conftest.a conftest.b 2>&5 || hard_links=no
16700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16702 printf "%s\n" "$hard_links" >&6; }
16703 if test no = "$hard_links"; then
16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16705 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16706 need_locks=warn
16707 fi
16708 else
16709 need_locks=no
16710 fi
16711
16712
16713
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16715 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16716
16717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16718 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16719 case $host_os in
16720 aix[4-9]*)
16721 # If we're using GNU nm, then we don't want the "-C" option.
16722 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16723 # Without the "-l" option, or with the "-B" option, AIX nm treats
16724 # weak defined symbols like other global defined symbols, whereas
16725 # GNU nm marks them as "W".
16726 # While the 'weak' keyword is ignored in the Export File, we need
16727 # it in the Import File for the 'aix-soname' feature, so we have
16728 # to replace the "-B" option with "-P" for AIX nm.
16729 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16730 export_symbols_cmds_CXX='$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'
16731 else
16732 export_symbols_cmds_CXX='`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'
16733 fi
16734 ;;
16735 pw32*)
16736 export_symbols_cmds_CXX=$ltdll_cmds
16737 ;;
16738 cygwin* | mingw* | cegcc*)
16739 case $cc_basename in
16740 cl* | icl*)
16741 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16742 ;;
16743 *)
16744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16745 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16746 ;;
16747 esac
16748 ;;
16749 *)
16750 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16751 ;;
16752 esac
16753
16754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16755 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16756 test no = "$ld_shlibs_CXX" && can_build_shared=no
16757
16758 with_gnu_ld_CXX=$with_gnu_ld
16759
16760
16761
16762
16763
16764
16765 #
16766 # Do we need to explicitly link libc?
16767 #
16768 case "x$archive_cmds_need_lc_CXX" in
16769 x|xyes)
16770 # Assume -lc should be added
16771 archive_cmds_need_lc_CXX=yes
16772
16773 if test yes,yes = "$GCC,$enable_shared"; then
16774 case $archive_cmds_CXX in
16775 *'~'*)
16776 # FIXME: we may have to deal with multi-command sequences.
16777 ;;
16778 '$CC '*)
16779 # Test whether the compiler implicitly links with -lc since on some
16780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16781 # to ld, don't add -lc before -lgcc.
16782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16783 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16784 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16785 then :
16786 printf %s "(cached) " >&6
16787 else case e in #(
16788 e) $RM conftest*
16789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16790
16791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16792 (eval $ac_compile) 2>&5
16793 ac_status=$?
16794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16795 test $ac_status = 0; } 2>conftest.err; then
16796 soname=conftest
16797 lib=conftest
16798 libobjs=conftest.$ac_objext
16799 deplibs=
16800 wl=$lt_prog_compiler_wl_CXX
16801 pic_flag=$lt_prog_compiler_pic_CXX
16802 compiler_flags=-v
16803 linker_flags=-v
16804 verstring=
16805 output_objdir=.
16806 libname=conftest
16807 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16808 allow_undefined_flag_CXX=
16809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16810 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16811 ac_status=$?
16812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16813 test $ac_status = 0; }
16814 then
16815 lt_cv_archive_cmds_need_lc_CXX=no
16816 else
16817 lt_cv_archive_cmds_need_lc_CXX=yes
16818 fi
16819 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16820 else
16821 cat conftest.err 1>&5
16822 fi
16823 $RM conftest*
16824 ;;
16825 esac
16826 fi
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16828 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16829 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16830 ;;
16831 esac
16832 fi
16833 ;;
16834 esac
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16898 printf %s "checking dynamic linker characteristics... " >&6; }
16899
16900 library_names_spec=
16901 libname_spec='lib$name'
16902 soname_spec=
16903 shrext_cmds=.so
16904 postinstall_cmds=
16905 postuninstall_cmds=
16906 finish_cmds=
16907 finish_eval=
16908 shlibpath_var=
16909 shlibpath_overrides_runpath=unknown
16910 version_type=none
16911 dynamic_linker="$host_os ld.so"
16912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913 need_lib_prefix=unknown
16914 hardcode_into_libs=no
16915
16916 # when you set need_version to no, make sure it does not cause -set_version
16917 # flags to be left without arguments
16918 need_version=unknown
16919
16920
16921
16922 case $host_os in
16923 aix3*)
16924 version_type=linux # correct to gnu/linux during the next big refactor
16925 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16926 shlibpath_var=LIBPATH
16927
16928 # AIX 3 has no versioning support, so we append a major version to the name.
16929 soname_spec='$libname$release$shared_ext$major'
16930 ;;
16931
16932 aix[4-9]*)
16933 version_type=linux # correct to gnu/linux during the next big refactor
16934 need_lib_prefix=no
16935 need_version=no
16936 hardcode_into_libs=yes
16937 if test ia64 = "$host_cpu"; then
16938 # AIX 5 supports IA64
16939 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 else
16942 # With GCC up to 2.95.x, collect2 would create an import file
16943 # for dependence libraries. The import file would start with
16944 # the line '#! .'. This would cause the generated library to
16945 # depend on '.', always an invalid library. This was fixed in
16946 # development snapshots of GCC prior to 3.0.
16947 case $host_os in
16948 aix4 | aix4.[01] | aix4.[01].*)
16949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16950 echo ' yes '
16951 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16952 :
16953 else
16954 can_build_shared=no
16955 fi
16956 ;;
16957 esac
16958 # Using Import Files as archive members, it is possible to support
16959 # filename-based versioning of shared library archives on AIX. While
16960 # this would work for both with and without runtime linking, it will
16961 # prevent static linking of such archives. So we do filename-based
16962 # shared library versioning with .so extension only, which is used
16963 # when both runtime linking and shared linking is enabled.
16964 # Unfortunately, runtime linking may impact performance, so we do
16965 # not want this to be the default eventually. Also, we use the
16966 # versioned .so libs for executables only if there is the -brtl
16967 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16968 # To allow for filename-based versioning support, we need to create
16969 # libNAME.so.V as an archive file, containing:
16970 # *) an Import File, referring to the versioned filename of the
16971 # archive as well as the shared archive member, telling the
16972 # bitwidth (32 or 64) of that shared object, and providing the
16973 # list of exported symbols of that shared object, eventually
16974 # decorated with the 'weak' keyword
16975 # *) the shared object with the F_LOADONLY flag set, to really avoid
16976 # it being seen by the linker.
16977 # At run time we better use the real file rather than another symlink,
16978 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16979
16980 case $with_aix_soname,$aix_use_runtimelinking in
16981 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16982 # soname into executable. Probably we can add versioning support to
16983 # collect2, so additional links can be useful in future.
16984 aix,yes) # traditional libtool
16985 dynamic_linker='AIX unversionable lib.so'
16986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16987 # instead of lib<name>.a to let people know that these are not
16988 # typical AIX shared libraries.
16989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16990 ;;
16991 aix,no) # traditional AIX only
16992 dynamic_linker='AIX lib.a(lib.so.V)'
16993 # We preserve .a as extension for shared libraries through AIX4.2
16994 # and later when we are not doing run time linking.
16995 library_names_spec='$libname$release.a $libname.a'
16996 soname_spec='$libname$release$shared_ext$major'
16997 ;;
16998 svr4,*) # full svr4 only
16999 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17000 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17001 # We do not specify a path in Import Files, so LIBPATH fires.
17002 shlibpath_overrides_runpath=yes
17003 ;;
17004 *,yes) # both, prefer svr4
17005 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17006 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17007 # unpreferred sharedlib libNAME.a needs extra handling
17008 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"'
17009 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"'
17010 # We do not specify a path in Import Files, so LIBPATH fires.
17011 shlibpath_overrides_runpath=yes
17012 ;;
17013 *,no) # both, prefer aix
17014 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17015 library_names_spec='$libname$release.a $libname.a'
17016 soname_spec='$libname$release$shared_ext$major'
17017 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17018 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)'
17019 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"'
17020 ;;
17021 esac
17022 shlibpath_var=LIBPATH
17023 fi
17024 ;;
17025
17026 amigaos*)
17027 case $host_cpu in
17028 powerpc)
17029 # Since July 2007 AmigaOS4 officially supports .so libraries.
17030 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17032 ;;
17033 m68k)
17034 library_names_spec='$libname.ixlibrary $libname.a'
17035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17036 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'
17037 ;;
17038 esac
17039 ;;
17040
17041 beos*)
17042 library_names_spec='$libname$shared_ext'
17043 dynamic_linker="$host_os ld.so"
17044 shlibpath_var=LIBRARY_PATH
17045 ;;
17046
17047 bsdi[45]*)
17048 version_type=linux # correct to gnu/linux during the next big refactor
17049 need_version=no
17050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17051 soname_spec='$libname$release$shared_ext$major'
17052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17056 # the default ld.so.conf also contains /usr/contrib/lib and
17057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17058 # libtool to hard-code these into programs
17059 ;;
17060
17061 cygwin* | mingw* | pw32* | cegcc*)
17062 version_type=windows
17063 shrext_cmds=.dll
17064 need_version=no
17065 need_lib_prefix=no
17066
17067 case $GCC,$cc_basename in
17068 yes,*)
17069 # gcc
17070 library_names_spec='$libname.dll.a'
17071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17072 postinstall_cmds='base_file=`basename \$file`~
17073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17074 dldir=$destdir/`dirname \$dlpath`~
17075 test -d \$dldir || mkdir -p \$dldir~
17076 $install_prog $dir/$dlname \$dldir/$dlname~
17077 chmod a+x \$dldir/$dlname~
17078 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17079 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17080 fi'
17081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17082 dlpath=$dir/\$dldll~
17083 $RM \$dlpath'
17084 shlibpath_overrides_runpath=yes
17085
17086 case $host_os in
17087 cygwin*)
17088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17089 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17090
17091 ;;
17092 mingw* | cegcc*)
17093 # MinGW DLLs use traditional 'lib' prefix
17094 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17095 ;;
17096 pw32*)
17097 # pw32 DLLs use 'pw' prefix rather than 'lib'
17098 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17099 ;;
17100 esac
17101 dynamic_linker='Win32 ld.exe'
17102 ;;
17103
17104 *,cl* | *,icl*)
17105 # Native MSVC or ICC
17106 libname_spec='$name'
17107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17108 library_names_spec='$libname.dll.lib'
17109
17110 case $build_os in
17111 mingw*)
17112 sys_lib_search_path_spec=
17113 lt_save_ifs=$IFS
17114 IFS=';'
17115 for lt_path in $LIB
17116 do
17117 IFS=$lt_save_ifs
17118 # Let DOS variable expansion print the short 8.3 style file name.
17119 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17120 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17121 done
17122 IFS=$lt_save_ifs
17123 # Convert to MSYS style.
17124 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17125 ;;
17126 cygwin*)
17127 # Convert to unix form, then to dos form, then back to unix form
17128 # but this time dos style (no spaces!) so that the unix form looks
17129 # like /cygdrive/c/PROGRA~1:/cygdr...
17130 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17131 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17132 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17133 ;;
17134 *)
17135 sys_lib_search_path_spec=$LIB
17136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17137 # It is most probably a Windows format PATH.
17138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17139 else
17140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17141 fi
17142 # FIXME: find the short name or the path components, as spaces are
17143 # common. (e.g. "Program Files" -> "PROGRA~1")
17144 ;;
17145 esac
17146
17147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17148 postinstall_cmds='base_file=`basename \$file`~
17149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17150 dldir=$destdir/`dirname \$dlpath`~
17151 test -d \$dldir || mkdir -p \$dldir~
17152 $install_prog $dir/$dlname \$dldir/$dlname'
17153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17154 dlpath=$dir/\$dldll~
17155 $RM \$dlpath'
17156 shlibpath_overrides_runpath=yes
17157 dynamic_linker='Win32 link.exe'
17158 ;;
17159
17160 *)
17161 # Assume MSVC and ICC wrapper
17162 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17163 dynamic_linker='Win32 ld.exe'
17164 ;;
17165 esac
17166 # FIXME: first we should search . and the directory the executable is in
17167 shlibpath_var=PATH
17168 ;;
17169
17170 darwin* | rhapsody*)
17171 dynamic_linker="$host_os dyld"
17172 version_type=darwin
17173 need_lib_prefix=no
17174 need_version=no
17175 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17176 soname_spec='$libname$release$major$shared_ext'
17177 shlibpath_overrides_runpath=yes
17178 shlibpath_var=DYLD_LIBRARY_PATH
17179 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17180
17181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17182 ;;
17183
17184 dgux*)
17185 version_type=linux # correct to gnu/linux during the next big refactor
17186 need_lib_prefix=no
17187 need_version=no
17188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17189 soname_spec='$libname$release$shared_ext$major'
17190 shlibpath_var=LD_LIBRARY_PATH
17191 ;;
17192
17193 freebsd* | dragonfly* | midnightbsd*)
17194 # DragonFly does not have aout. When/if they implement a new
17195 # versioning mechanism, adjust this.
17196 if test -x /usr/bin/objformat; then
17197 objformat=`/usr/bin/objformat`
17198 else
17199 case $host_os in
17200 freebsd[23].*) objformat=aout ;;
17201 *) objformat=elf ;;
17202 esac
17203 fi
17204 version_type=freebsd-$objformat
17205 case $version_type in
17206 freebsd-elf*)
17207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17208 soname_spec='$libname$release$shared_ext$major'
17209 need_version=no
17210 need_lib_prefix=no
17211 ;;
17212 freebsd-*)
17213 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17214 need_version=yes
17215 ;;
17216 esac
17217 shlibpath_var=LD_LIBRARY_PATH
17218 case $host_os in
17219 freebsd2.*)
17220 shlibpath_overrides_runpath=yes
17221 ;;
17222 freebsd3.[01]* | freebsdelf3.[01]*)
17223 shlibpath_overrides_runpath=yes
17224 hardcode_into_libs=yes
17225 ;;
17226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17228 shlibpath_overrides_runpath=no
17229 hardcode_into_libs=yes
17230 ;;
17231 *) # from 4.6 on, and DragonFly
17232 shlibpath_overrides_runpath=yes
17233 hardcode_into_libs=yes
17234 ;;
17235 esac
17236 ;;
17237
17238 haiku*)
17239 version_type=linux # correct to gnu/linux during the next big refactor
17240 need_lib_prefix=no
17241 need_version=no
17242 dynamic_linker="$host_os runtime_loader"
17243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17244 soname_spec='$libname$release$shared_ext$major'
17245 shlibpath_var=LIBRARY_PATH
17246 shlibpath_overrides_runpath=no
17247 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17248 hardcode_into_libs=yes
17249 ;;
17250
17251 hpux9* | hpux10* | hpux11*)
17252 # Give a soname corresponding to the major version so that dld.sl refuses to
17253 # link against other versions.
17254 version_type=sunos
17255 need_lib_prefix=no
17256 need_version=no
17257 case $host_cpu in
17258 ia64*)
17259 shrext_cmds='.so'
17260 hardcode_into_libs=yes
17261 dynamic_linker="$host_os dld.so"
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17265 soname_spec='$libname$release$shared_ext$major'
17266 if test 32 = "$HPUX_IA64_MODE"; then
17267 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17268 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17269 else
17270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17271 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17272 fi
17273 ;;
17274 hppa*64*)
17275 shrext_cmds='.sl'
17276 hardcode_into_libs=yes
17277 dynamic_linker="$host_os dld.sl"
17278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17281 soname_spec='$libname$release$shared_ext$major'
17282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17284 ;;
17285 *)
17286 shrext_cmds='.sl'
17287 dynamic_linker="$host_os dld.sl"
17288 shlibpath_var=SHLIB_PATH
17289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17291 soname_spec='$libname$release$shared_ext$major'
17292 ;;
17293 esac
17294 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17295 postinstall_cmds='chmod 555 $lib'
17296 # or fails outright, so override atomically:
17297 install_override_mode=555
17298 ;;
17299
17300 interix[3-9]*)
17301 version_type=linux # correct to gnu/linux during the next big refactor
17302 need_lib_prefix=no
17303 need_version=no
17304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17305 soname_spec='$libname$release$shared_ext$major'
17306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath=no
17309 hardcode_into_libs=yes
17310 ;;
17311
17312 irix5* | irix6* | nonstopux*)
17313 case $host_os in
17314 nonstopux*) version_type=nonstopux ;;
17315 *)
17316 if test yes = "$lt_cv_prog_gnu_ld"; then
17317 version_type=linux # correct to gnu/linux during the next big refactor
17318 else
17319 version_type=irix
17320 fi ;;
17321 esac
17322 need_lib_prefix=no
17323 need_version=no
17324 soname_spec='$libname$release$shared_ext$major'
17325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17326 case $host_os in
17327 irix5* | nonstopux*)
17328 libsuff= shlibsuff=
17329 ;;
17330 *)
17331 case $LD in # libtool.m4 will add one of these switches to LD
17332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17333 libsuff= shlibsuff= libmagic=32-bit;;
17334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17335 libsuff=32 shlibsuff=N32 libmagic=N32;;
17336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17338 *) libsuff= shlibsuff= libmagic=never-match;;
17339 esac
17340 ;;
17341 esac
17342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17343 shlibpath_overrides_runpath=no
17344 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17345 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17346 hardcode_into_libs=yes
17347 ;;
17348
17349 # No shared lib support for Linux oldld, aout, or coff.
17350 linux*oldld* | linux*aout* | linux*coff*)
17351 dynamic_linker=no
17352 ;;
17353
17354 linux*android*)
17355 version_type=none # Android doesn't support versioned libraries.
17356 need_lib_prefix=no
17357 need_version=no
17358 library_names_spec='$libname$release$shared_ext'
17359 soname_spec='$libname$release$shared_ext'
17360 finish_cmds=
17361 shlibpath_var=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath=yes
17363
17364 # This implies no fast_install, which is unacceptable.
17365 # Some rework will be needed to allow for fast_install
17366 # before this can be enabled.
17367 hardcode_into_libs=yes
17368
17369 dynamic_linker='Android linker'
17370 # Don't embed -rpath directories since the linker doesn't support them.
17371 hardcode_libdir_flag_spec_CXX='-L$libdir'
17372 ;;
17373
17374 # This must be glibc/ELF.
17375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17376 version_type=linux # correct to gnu/linux during the next big refactor
17377 need_lib_prefix=no
17378 need_version=no
17379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17380 soname_spec='$libname$release$shared_ext$major'
17381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=no
17384
17385 # Some binutils ld are patched to set DT_RUNPATH
17386 if test ${lt_cv_shlibpath_overrides_runpath+y}
17387 then :
17388 printf %s "(cached) " >&6
17389 else case e in #(
17390 e) lt_cv_shlibpath_overrides_runpath=no
17391 save_LDFLAGS=$LDFLAGS
17392 save_libdir=$libdir
17393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397
17398 int
17399 main (void)
17400 {
17401
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_cxx_try_link "$LINENO"
17407 then :
17408 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17409 then :
17410 lt_cv_shlibpath_overrides_runpath=yes
17411 fi
17412 fi
17413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17414 conftest$ac_exeext conftest.$ac_ext
17415 LDFLAGS=$save_LDFLAGS
17416 libdir=$save_libdir
17417 ;;
17418 esac
17419 fi
17420
17421 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17422
17423 # This implies no fast_install, which is unacceptable.
17424 # Some rework will be needed to allow for fast_install
17425 # before this can be enabled.
17426 hardcode_into_libs=yes
17427
17428 # Ideally, we could use ldconfig to report *all* directores which are
17429 # searched for libraries, however this is still not possible. Aside from not
17430 # being certain /sbin/ldconfig is available, command
17431 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17432 # even though it is searched at run-time. Try to do the best guess by
17433 # appending ld.so.conf contents (and includes) to the search path.
17434 if test -f /etc/ld.so.conf; then
17435 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' ' '`
17436 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17437 fi
17438
17439 # We used to test for /lib/ld.so.1 and disable shared libraries on
17440 # powerpc, because MkLinux only supported shared libraries with the
17441 # GNU dynamic linker. Since this was broken with cross compilers,
17442 # most powerpc-linux boxes support dynamic linking these days and
17443 # people can always --disable-shared, the test was removed, and we
17444 # assume the GNU/Linux dynamic linker is in use.
17445 dynamic_linker='GNU/Linux ld.so'
17446 ;;
17447
17448 netbsd*)
17449 version_type=sunos
17450 need_lib_prefix=no
17451 need_version=no
17452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17455 dynamic_linker='NetBSD (a.out) ld.so'
17456 else
17457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17458 soname_spec='$libname$release$shared_ext$major'
17459 dynamic_linker='NetBSD ld.elf_so'
17460 fi
17461 shlibpath_var=LD_LIBRARY_PATH
17462 shlibpath_overrides_runpath=yes
17463 hardcode_into_libs=yes
17464 ;;
17465
17466 newsos6)
17467 version_type=linux # correct to gnu/linux during the next big refactor
17468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469 shlibpath_var=LD_LIBRARY_PATH
17470 shlibpath_overrides_runpath=yes
17471 ;;
17472
17473 *nto* | *qnx*)
17474 version_type=qnx
17475 need_lib_prefix=no
17476 need_version=no
17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17478 soname_spec='$libname$release$shared_ext$major'
17479 shlibpath_var=LD_LIBRARY_PATH
17480 shlibpath_overrides_runpath=no
17481 hardcode_into_libs=yes
17482 dynamic_linker='ldqnx.so'
17483 ;;
17484
17485 openbsd* | bitrig*)
17486 version_type=sunos
17487 sys_lib_dlsearch_path_spec=/usr/lib
17488 need_lib_prefix=no
17489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17490 need_version=no
17491 else
17492 need_version=yes
17493 fi
17494 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 shlibpath_overrides_runpath=yes
17498 ;;
17499
17500 os2*)
17501 libname_spec='$name'
17502 version_type=windows
17503 shrext_cmds=.dll
17504 need_version=no
17505 need_lib_prefix=no
17506 # OS/2 can only load a DLL with a base name of 8 characters or less.
17507 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17508 v=$($ECHO $release$versuffix | tr -d .-);
17509 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17510 $ECHO $n$v`$shared_ext'
17511 library_names_spec='${libname}_dll.$libext'
17512 dynamic_linker='OS/2 ld.exe'
17513 shlibpath_var=BEGINLIBPATH
17514 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17516 postinstall_cmds='base_file=`basename \$file`~
17517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17518 dldir=$destdir/`dirname \$dlpath`~
17519 test -d \$dldir || mkdir -p \$dldir~
17520 $install_prog $dir/$dlname \$dldir/$dlname~
17521 chmod a+x \$dldir/$dlname~
17522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17524 fi'
17525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17526 dlpath=$dir/\$dldll~
17527 $RM \$dlpath'
17528 ;;
17529
17530 osf3* | osf4* | osf5*)
17531 version_type=osf
17532 need_lib_prefix=no
17533 need_version=no
17534 soname_spec='$libname$release$shared_ext$major'
17535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17539 ;;
17540
17541 rdos*)
17542 dynamic_linker=no
17543 ;;
17544
17545 solaris*)
17546 version_type=linux # correct to gnu/linux during the next big refactor
17547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17550 soname_spec='$libname$release$shared_ext$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=yes
17553 hardcode_into_libs=yes
17554 # ldd complains unless libraries are executable
17555 postinstall_cmds='chmod +x $lib'
17556 ;;
17557
17558 sunos4*)
17559 version_type=sunos
17560 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes
17564 if test yes = "$with_gnu_ld"; then
17565 need_lib_prefix=no
17566 fi
17567 need_version=yes
17568 ;;
17569
17570 sysv4 | sysv4.3*)
17571 version_type=linux # correct to gnu/linux during the next big refactor
17572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17573 soname_spec='$libname$release$shared_ext$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 case $host_vendor in
17576 sni)
17577 shlibpath_overrides_runpath=no
17578 need_lib_prefix=no
17579 runpath_var=LD_RUN_PATH
17580 ;;
17581 siemens)
17582 need_lib_prefix=no
17583 ;;
17584 motorola)
17585 need_lib_prefix=no
17586 need_version=no
17587 shlibpath_overrides_runpath=no
17588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17589 ;;
17590 esac
17591 ;;
17592
17593 sysv4*MP*)
17594 if test -d /usr/nec; then
17595 version_type=linux # correct to gnu/linux during the next big refactor
17596 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17597 soname_spec='$libname$shared_ext.$major'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 fi
17600 ;;
17601
17602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17603 version_type=sco
17604 need_lib_prefix=no
17605 need_version=no
17606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17607 soname_spec='$libname$release$shared_ext$major'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=yes
17610 hardcode_into_libs=yes
17611 if test yes = "$with_gnu_ld"; then
17612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17613 else
17614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17615 case $host_os in
17616 sco3.2v5*)
17617 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17618 ;;
17619 esac
17620 fi
17621 sys_lib_dlsearch_path_spec='/usr/lib'
17622 ;;
17623
17624 tpf*)
17625 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17626 version_type=linux # correct to gnu/linux during the next big refactor
17627 need_lib_prefix=no
17628 need_version=no
17629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17630 shlibpath_var=LD_LIBRARY_PATH
17631 shlibpath_overrides_runpath=no
17632 hardcode_into_libs=yes
17633 ;;
17634
17635 uts4*)
17636 version_type=linux # correct to gnu/linux during the next big refactor
17637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17638 soname_spec='$libname$release$shared_ext$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 ;;
17641
17642 *)
17643 dynamic_linker=no
17644 ;;
17645 esac
17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17647 printf "%s\n" "$dynamic_linker" >&6; }
17648 test no = "$dynamic_linker" && can_build_shared=no
17649
17650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17651 if test yes = "$GCC"; then
17652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17653 fi
17654
17655 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17656 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17657 fi
17658
17659 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17660 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17661 fi
17662
17663 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17664 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17665
17666 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17667 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17668
17669 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17670 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17712 printf %s "checking how to hardcode library paths into programs... " >&6; }
17713 hardcode_action_CXX=
17714 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17715 test -n "$runpath_var_CXX" ||
17716 test yes = "$hardcode_automatic_CXX"; then
17717
17718 # We can hardcode non-existent directories.
17719 if test no != "$hardcode_direct_CXX" &&
17720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17721 # have to relink, otherwise we might link with an installed library
17722 # when we should be linking with a yet-to-be-installed one
17723 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17724 test no != "$hardcode_minus_L_CXX"; then
17725 # Linking always hardcodes the temporary library directory.
17726 hardcode_action_CXX=relink
17727 else
17728 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17729 hardcode_action_CXX=immediate
17730 fi
17731 else
17732 # We cannot hardcode anything, or else we can only hardcode existing
17733 # directories.
17734 hardcode_action_CXX=unsupported
17735 fi
17736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17737 printf "%s\n" "$hardcode_action_CXX" >&6; }
17738
17739 if test relink = "$hardcode_action_CXX" ||
17740 test yes = "$inherit_rpath_CXX"; then
17741 # Fast installation is not supported
17742 enable_fast_install=no
17743 elif test yes = "$shlibpath_overrides_runpath" ||
17744 test no = "$enable_shared"; then
17745 # Fast installation is not necessary
17746 enable_fast_install=needless
17747 fi
17748
17749
17750
17751
17752
17753
17754
17755 fi # test -n "$compiler"
17756
17757 CC=$lt_save_CC
17758 CFLAGS=$lt_save_CFLAGS
17759 LDCXX=$LD
17760 LD=$lt_save_LD
17761 GCC=$lt_save_GCC
17762 with_gnu_ld=$lt_save_with_gnu_ld
17763 lt_cv_path_LDCXX=$lt_cv_path_LD
17764 lt_cv_path_LD=$lt_save_path_LD
17765 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17766 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17767 fi # test yes != "$_lt_caught_CXX_error"
17768
17769 ac_ext=cpp
17770 ac_cpp='$CXXCPP $CPPFLAGS'
17771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789 ac_config_commands="$ac_config_commands libtool"
17790
17791
17792
17793
17794 # Only expand once:
17795
17796
17797 LIBDL=$lt_cv_dlopen_libs
17798
17799
17800 CFLAGS="-g -O3 -Wall -Wextra -Wshadow -fvisibility=hidden $CFLAGS"
17801 CXXFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wmissing-declarations -Wredundant-decls -fvisibility=hidden $CXXFLAGS"
17802
17803 pdns_configure_args="$ac_configure_args"
17804
17805
17806 printf "%s\n" "#define DNSDIST_CONFIG_ARGS \"$pdns_configure_args\"" >>confdefs.h
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17817 if test -n "$ac_tool_prefix"; then
17818 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17819 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17821 printf %s "checking for $ac_word... " >&6; }
17822 if test ${ac_cv_path_PKG_CONFIG+y}
17823 then :
17824 printf %s "(cached) " >&6
17825 else case e in #(
17826 e) case $PKG_CONFIG in
17827 [\\/]* | ?:[\\/]*)
17828 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17829 ;;
17830 *)
17831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17832 for as_dir in $PATH
17833 do
17834 IFS=$as_save_IFS
17835 case $as_dir in #(((
17836 '') as_dir=./ ;;
17837 */) ;;
17838 *) as_dir=$as_dir/ ;;
17839 esac
17840 for ac_exec_ext in '' $ac_executable_extensions; do
17841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17842 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17844 break 2
17845 fi
17846 done
17847 done
17848 IFS=$as_save_IFS
17849
17850 ;;
17851 esac ;;
17852 esac
17853 fi
17854 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17855 if test -n "$PKG_CONFIG"; then
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17857 printf "%s\n" "$PKG_CONFIG" >&6; }
17858 else
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860 printf "%s\n" "no" >&6; }
17861 fi
17862
17863
17864 fi
17865 if test -z "$ac_cv_path_PKG_CONFIG"; then
17866 ac_pt_PKG_CONFIG=$PKG_CONFIG
17867 # Extract the first word of "pkg-config", so it can be a program name with args.
17868 set dummy pkg-config; ac_word=$2
17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17870 printf %s "checking for $ac_word... " >&6; }
17871 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17872 then :
17873 printf %s "(cached) " >&6
17874 else case e in #(
17875 e) case $ac_pt_PKG_CONFIG in
17876 [\\/]* | ?:[\\/]*)
17877 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17878 ;;
17879 *)
17880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17881 for as_dir in $PATH
17882 do
17883 IFS=$as_save_IFS
17884 case $as_dir in #(((
17885 '') as_dir=./ ;;
17886 */) ;;
17887 *) as_dir=$as_dir/ ;;
17888 esac
17889 for ac_exec_ext in '' $ac_executable_extensions; do
17890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17891 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17893 break 2
17894 fi
17895 done
17896 done
17897 IFS=$as_save_IFS
17898
17899 ;;
17900 esac ;;
17901 esac
17902 fi
17903 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17904 if test -n "$ac_pt_PKG_CONFIG"; then
17905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17906 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17907 else
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909 printf "%s\n" "no" >&6; }
17910 fi
17911
17912 if test "x$ac_pt_PKG_CONFIG" = x; then
17913 PKG_CONFIG=""
17914 else
17915 case $cross_compiling:$ac_tool_warned in
17916 yes:)
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17918 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17919 ac_tool_warned=yes ;;
17920 esac
17921 PKG_CONFIG=$ac_pt_PKG_CONFIG
17922 fi
17923 else
17924 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17925 fi
17926
17927 fi
17928 if test -n "$PKG_CONFIG"; then
17929 _pkg_min_version=0.9.0
17930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17931 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17932 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17934 printf "%s\n" "yes" >&6; }
17935 else
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17937 printf "%s\n" "no" >&6; }
17938 PKG_CONFIG=""
17939 fi
17940 fi
17941 if test -z "$PKG_CONFIG"; then
17942 as_fn_error $? "pkg-config not found" "$LINENO" 5
17943 fi
17944
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in libsodium" >&5
17946 printf %s "checking whether we will be linking in libsodium... " >&6; }
17947
17948 # Check whether --with-libsodium was given.
17949 if test ${with_libsodium+y}
17950 then :
17951 withval=$with_libsodium; with_libsodium=$withval
17952 else case e in #(
17953 e) with_libsodium=auto ;;
17954 esac
17955 fi
17956
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libsodium" >&5
17958 printf "%s\n" "$with_libsodium" >&6; }
17959
17960 if test "x$with_libsodium" != "xno"
17961 then :
17962
17963 if test "x$with_libsodium" = "xyes" -o "x$with_libsodium" = "xauto"
17964 then :
17965
17966
17967 pkg_failed=no
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsodium" >&5
17969 printf %s "checking for libsodium... " >&6; }
17970
17971 if test -n "$LIBSODIUM_CFLAGS"; then
17972 pkg_cv_LIBSODIUM_CFLAGS="$LIBSODIUM_CFLAGS"
17973 elif test -n "$PKG_CONFIG"; then
17974 if test -n "$PKG_CONFIG" && \
17975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium\""; } >&5
17976 ($PKG_CONFIG --exists --print-errors "libsodium") 2>&5
17977 ac_status=$?
17978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17979 test $ac_status = 0; }; then
17980 pkg_cv_LIBSODIUM_CFLAGS=`$PKG_CONFIG --cflags "libsodium" 2>/dev/null`
17981 test "x$?" != "x0" && pkg_failed=yes
17982 else
17983 pkg_failed=yes
17984 fi
17985 else
17986 pkg_failed=untried
17987 fi
17988 if test -n "$LIBSODIUM_LIBS"; then
17989 pkg_cv_LIBSODIUM_LIBS="$LIBSODIUM_LIBS"
17990 elif test -n "$PKG_CONFIG"; then
17991 if test -n "$PKG_CONFIG" && \
17992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium\""; } >&5
17993 ($PKG_CONFIG --exists --print-errors "libsodium") 2>&5
17994 ac_status=$?
17995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17996 test $ac_status = 0; }; then
17997 pkg_cv_LIBSODIUM_LIBS=`$PKG_CONFIG --libs "libsodium" 2>/dev/null`
17998 test "x$?" != "x0" && pkg_failed=yes
17999 else
18000 pkg_failed=yes
18001 fi
18002 else
18003 pkg_failed=untried
18004 fi
18005
18006
18007
18008 if test $pkg_failed = yes; then
18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18010 printf "%s\n" "no" >&6; }
18011
18012 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18013 _pkg_short_errors_supported=yes
18014 else
18015 _pkg_short_errors_supported=no
18016 fi
18017 if test $_pkg_short_errors_supported = yes; then
18018 LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsodium" 2>&1`
18019 else
18020 LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsodium" 2>&1`
18021 fi
18022 # Put the nasty error message in config.log where it belongs
18023 echo "$LIBSODIUM_PKG_ERRORS" >&5
18024
18025 :
18026 elif test $pkg_failed = untried; then
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18028 printf "%s\n" "no" >&6; }
18029 :
18030 else
18031 LIBSODIUM_CFLAGS=$pkg_cv_LIBSODIUM_CFLAGS
18032 LIBSODIUM_LIBS=$pkg_cv_LIBSODIUM_LIBS
18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18034 printf "%s\n" "yes" >&6; }
18035
18036
18037 printf "%s\n" "#define HAVE_LIBSODIUM 1" >>confdefs.h
18038
18039 save_CFLAGS=$CFLAGS
18040 save_LIBS=$LIBS
18041 CFLAGS="$LIBSODIUM_CFLAGS $CFLAGS"
18042 LIBS="$LIBSODIUM_LIBS $LIBS"
18043 ac_fn_cxx_check_func "$LINENO" "crypto_box_easy_afternm" "ac_cv_func_crypto_box_easy_afternm"
18044 if test "x$ac_cv_func_crypto_box_easy_afternm" = xyes
18045 then :
18046 printf "%s\n" "#define HAVE_CRYPTO_BOX_EASY_AFTERNM 1" >>confdefs.h
18047
18048 fi
18049 ac_fn_cxx_check_func "$LINENO" "crypto_box_curve25519xchacha20poly1305_easy" "ac_cv_func_crypto_box_curve25519xchacha20poly1305_easy"
18050 if test "x$ac_cv_func_crypto_box_curve25519xchacha20poly1305_easy" = xyes
18051 then :
18052 printf "%s\n" "#define HAVE_CRYPTO_BOX_CURVE25519XCHACHA20POLY1305_EASY 1" >>confdefs.h
18053
18054 fi
18055 ac_fn_cxx_check_func "$LINENO" "randombytes_stir" "ac_cv_func_randombytes_stir"
18056 if test "x$ac_cv_func_randombytes_stir" = xyes
18057 then :
18058 printf "%s\n" "#define HAVE_RANDOMBYTES_STIR 1" >>confdefs.h
18059
18060 fi
18061 ac_fn_cxx_check_func "$LINENO" "sodium_memcmp" "ac_cv_func_sodium_memcmp"
18062 if test "x$ac_cv_func_sodium_memcmp" = xyes
18063 then :
18064 printf "%s\n" "#define HAVE_SODIUM_MEMCMP 1" >>confdefs.h
18065
18066 fi
18067 ac_fn_cxx_check_func "$LINENO" "crypto_shorthash" "ac_cv_func_crypto_shorthash"
18068 if test "x$ac_cv_func_crypto_shorthash" = xyes
18069 then :
18070 printf "%s\n" "#define HAVE_CRYPTO_SHORTHASH 1" >>confdefs.h
18071
18072 fi
18073
18074 CFLAGS=$save_CFLAGS
18075 LIBS=$save_LIBS
18076
18077 fi
18078
18079 fi
18080
18081 fi
18082 if test "x$LIBSODIUM_LIBS" != "x"; then
18083 LIBSODIUM_TRUE=
18084 LIBSODIUM_FALSE='#'
18085 else
18086 LIBSODIUM_TRUE='#'
18087 LIBSODIUM_FALSE=
18088 fi
18089
18090 if test "x$with_libsodium" = "xyes"
18091 then :
18092
18093 if test x"$LIBSODIUM_LIBS" = "x"
18094 then :
18095
18096 as_fn_error $? "libsodium requested but libraries were not found" "$LINENO" 5
18097
18098 fi
18099
18100 fi
18101
18102
18103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in quiche" >&5
18104 printf %s "checking whether we will be linking in quiche... " >&6; }
18105 HAVE_QUICHE=0
18106
18107 # Check whether --with-quiche was given.
18108 if test ${with_quiche+y}
18109 then :
18110 withval=$with_quiche; with_quiche=$withval
18111 else case e in #(
18112 e) with_quiche=auto ;;
18113 esac
18114 fi
18115
18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_quiche" >&5
18117 printf "%s\n" "$with_quiche" >&6; }
18118
18119 if test "x$with_quiche" != "xno"
18120 then :
18121
18122 if test "x$with_quiche" = "xyes" -o "x$with_quiche" = "xauto"
18123 then :
18124
18125
18126 pkg_failed=no
18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.23.0" >&5
18128 printf %s "checking for quiche >= 0.23.0... " >&6; }
18129
18130 if test -n "$QUICHE_CFLAGS"; then
18131 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18132 elif test -n "$PKG_CONFIG"; then
18133 if test -n "$PKG_CONFIG" && \
18134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.23.0\""; } >&5
18135 ($PKG_CONFIG --exists --print-errors "quiche >= 0.23.0") 2>&5
18136 ac_status=$?
18137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18138 test $ac_status = 0; }; then
18139 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.23.0" 2>/dev/null`
18140 test "x$?" != "x0" && pkg_failed=yes
18141 else
18142 pkg_failed=yes
18143 fi
18144 else
18145 pkg_failed=untried
18146 fi
18147 if test -n "$QUICHE_LIBS"; then
18148 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18149 elif test -n "$PKG_CONFIG"; then
18150 if test -n "$PKG_CONFIG" && \
18151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.23.0\""; } >&5
18152 ($PKG_CONFIG --exists --print-errors "quiche >= 0.23.0") 2>&5
18153 ac_status=$?
18154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155 test $ac_status = 0; }; then
18156 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.23.0" 2>/dev/null`
18157 test "x$?" != "x0" && pkg_failed=yes
18158 else
18159 pkg_failed=yes
18160 fi
18161 else
18162 pkg_failed=untried
18163 fi
18164
18165
18166
18167 if test $pkg_failed = yes; then
18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169 printf "%s\n" "no" >&6; }
18170
18171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18172 _pkg_short_errors_supported=yes
18173 else
18174 _pkg_short_errors_supported=no
18175 fi
18176 if test $_pkg_short_errors_supported = yes; then
18177 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.23.0" 2>&1`
18178 else
18179 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.23.0" 2>&1`
18180 fi
18181 # Put the nasty error message in config.log where it belongs
18182 echo "$QUICHE_PKG_ERRORS" >&5
18183
18184
18185
18186 pkg_failed=no
18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.22.0" >&5
18188 printf %s "checking for quiche >= 0.22.0... " >&6; }
18189
18190 if test -n "$QUICHE_CFLAGS"; then
18191 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18192 elif test -n "$PKG_CONFIG"; then
18193 if test -n "$PKG_CONFIG" && \
18194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.22.0\""; } >&5
18195 ($PKG_CONFIG --exists --print-errors "quiche >= 0.22.0") 2>&5
18196 ac_status=$?
18197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18198 test $ac_status = 0; }; then
18199 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.22.0" 2>/dev/null`
18200 test "x$?" != "x0" && pkg_failed=yes
18201 else
18202 pkg_failed=yes
18203 fi
18204 else
18205 pkg_failed=untried
18206 fi
18207 if test -n "$QUICHE_LIBS"; then
18208 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18209 elif test -n "$PKG_CONFIG"; then
18210 if test -n "$PKG_CONFIG" && \
18211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.22.0\""; } >&5
18212 ($PKG_CONFIG --exists --print-errors "quiche >= 0.22.0") 2>&5
18213 ac_status=$?
18214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18215 test $ac_status = 0; }; then
18216 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.22.0" 2>/dev/null`
18217 test "x$?" != "x0" && pkg_failed=yes
18218 else
18219 pkg_failed=yes
18220 fi
18221 else
18222 pkg_failed=untried
18223 fi
18224
18225
18226
18227 if test $pkg_failed = yes; then
18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229 printf "%s\n" "no" >&6; }
18230
18231 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18232 _pkg_short_errors_supported=yes
18233 else
18234 _pkg_short_errors_supported=no
18235 fi
18236 if test $_pkg_short_errors_supported = yes; then
18237 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.22.0" 2>&1`
18238 else
18239 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.22.0" 2>&1`
18240 fi
18241 # Put the nasty error message in config.log where it belongs
18242 echo "$QUICHE_PKG_ERRORS" >&5
18243
18244
18245 # Quiche is older than 0.22.0, or no Quiche at all
18246
18247 pkg_failed=no
18248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.15.0" >&5
18249 printf %s "checking for quiche >= 0.15.0... " >&6; }
18250
18251 if test -n "$QUICHE_CFLAGS"; then
18252 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18253 elif test -n "$PKG_CONFIG"; then
18254 if test -n "$PKG_CONFIG" && \
18255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18256 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18257 ac_status=$?
18258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18259 test $ac_status = 0; }; then
18260 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.15.0" 2>/dev/null`
18261 test "x$?" != "x0" && pkg_failed=yes
18262 else
18263 pkg_failed=yes
18264 fi
18265 else
18266 pkg_failed=untried
18267 fi
18268 if test -n "$QUICHE_LIBS"; then
18269 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18270 elif test -n "$PKG_CONFIG"; then
18271 if test -n "$PKG_CONFIG" && \
18272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18273 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18274 ac_status=$?
18275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; }; then
18277 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.15.0" 2>/dev/null`
18278 test "x$?" != "x0" && pkg_failed=yes
18279 else
18280 pkg_failed=yes
18281 fi
18282 else
18283 pkg_failed=untried
18284 fi
18285
18286
18287
18288 if test $pkg_failed = yes; then
18289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290 printf "%s\n" "no" >&6; }
18291
18292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18293 _pkg_short_errors_supported=yes
18294 else
18295 _pkg_short_errors_supported=no
18296 fi
18297 if test $_pkg_short_errors_supported = yes; then
18298 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18299 else
18300 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18301 fi
18302 # Put the nasty error message in config.log where it belongs
18303 echo "$QUICHE_PKG_ERRORS" >&5
18304
18305 :
18306 elif test $pkg_failed = untried; then
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 printf "%s\n" "no" >&6; }
18309 :
18310 else
18311 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18312 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18314 printf "%s\n" "yes" >&6; }
18315
18316 HAVE_QUICHE=1
18317
18318 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18319
18320
18321 fi
18322
18323 elif test $pkg_failed = untried; then
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18325 printf "%s\n" "no" >&6; }
18326
18327 # Quiche is older than 0.22.0, or no Quiche at all
18328
18329 pkg_failed=no
18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.15.0" >&5
18331 printf %s "checking for quiche >= 0.15.0... " >&6; }
18332
18333 if test -n "$QUICHE_CFLAGS"; then
18334 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18335 elif test -n "$PKG_CONFIG"; then
18336 if test -n "$PKG_CONFIG" && \
18337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18338 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18339 ac_status=$?
18340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18341 test $ac_status = 0; }; then
18342 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.15.0" 2>/dev/null`
18343 test "x$?" != "x0" && pkg_failed=yes
18344 else
18345 pkg_failed=yes
18346 fi
18347 else
18348 pkg_failed=untried
18349 fi
18350 if test -n "$QUICHE_LIBS"; then
18351 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18352 elif test -n "$PKG_CONFIG"; then
18353 if test -n "$PKG_CONFIG" && \
18354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18355 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18356 ac_status=$?
18357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18358 test $ac_status = 0; }; then
18359 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.15.0" 2>/dev/null`
18360 test "x$?" != "x0" && pkg_failed=yes
18361 else
18362 pkg_failed=yes
18363 fi
18364 else
18365 pkg_failed=untried
18366 fi
18367
18368
18369
18370 if test $pkg_failed = yes; then
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 printf "%s\n" "no" >&6; }
18373
18374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18375 _pkg_short_errors_supported=yes
18376 else
18377 _pkg_short_errors_supported=no
18378 fi
18379 if test $_pkg_short_errors_supported = yes; then
18380 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18381 else
18382 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18383 fi
18384 # Put the nasty error message in config.log where it belongs
18385 echo "$QUICHE_PKG_ERRORS" >&5
18386
18387 :
18388 elif test $pkg_failed = untried; then
18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 printf "%s\n" "no" >&6; }
18391 :
18392 else
18393 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18394 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396 printf "%s\n" "yes" >&6; }
18397
18398 HAVE_QUICHE=1
18399
18400 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18401
18402
18403 fi
18404
18405 else
18406 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18407 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18409 printf "%s\n" "yes" >&6; }
18410
18411 HAVE_QUICHE=1
18412
18413 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18414
18415
18416 printf "%s\n" "#define HAVE_QUICHE_STREAM_ERROR_CODES 1" >>confdefs.h
18417
18418
18419 fi
18420
18421 elif test $pkg_failed = untried; then
18422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 printf "%s\n" "no" >&6; }
18424
18425
18426 pkg_failed=no
18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.22.0" >&5
18428 printf %s "checking for quiche >= 0.22.0... " >&6; }
18429
18430 if test -n "$QUICHE_CFLAGS"; then
18431 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18432 elif test -n "$PKG_CONFIG"; then
18433 if test -n "$PKG_CONFIG" && \
18434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.22.0\""; } >&5
18435 ($PKG_CONFIG --exists --print-errors "quiche >= 0.22.0") 2>&5
18436 ac_status=$?
18437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18438 test $ac_status = 0; }; then
18439 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.22.0" 2>/dev/null`
18440 test "x$?" != "x0" && pkg_failed=yes
18441 else
18442 pkg_failed=yes
18443 fi
18444 else
18445 pkg_failed=untried
18446 fi
18447 if test -n "$QUICHE_LIBS"; then
18448 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18449 elif test -n "$PKG_CONFIG"; then
18450 if test -n "$PKG_CONFIG" && \
18451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.22.0\""; } >&5
18452 ($PKG_CONFIG --exists --print-errors "quiche >= 0.22.0") 2>&5
18453 ac_status=$?
18454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18455 test $ac_status = 0; }; then
18456 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.22.0" 2>/dev/null`
18457 test "x$?" != "x0" && pkg_failed=yes
18458 else
18459 pkg_failed=yes
18460 fi
18461 else
18462 pkg_failed=untried
18463 fi
18464
18465
18466
18467 if test $pkg_failed = yes; then
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18469 printf "%s\n" "no" >&6; }
18470
18471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18472 _pkg_short_errors_supported=yes
18473 else
18474 _pkg_short_errors_supported=no
18475 fi
18476 if test $_pkg_short_errors_supported = yes; then
18477 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.22.0" 2>&1`
18478 else
18479 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.22.0" 2>&1`
18480 fi
18481 # Put the nasty error message in config.log where it belongs
18482 echo "$QUICHE_PKG_ERRORS" >&5
18483
18484
18485 # Quiche is older than 0.22.0, or no Quiche at all
18486
18487 pkg_failed=no
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.15.0" >&5
18489 printf %s "checking for quiche >= 0.15.0... " >&6; }
18490
18491 if test -n "$QUICHE_CFLAGS"; then
18492 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18493 elif test -n "$PKG_CONFIG"; then
18494 if test -n "$PKG_CONFIG" && \
18495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18496 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18497 ac_status=$?
18498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18499 test $ac_status = 0; }; then
18500 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.15.0" 2>/dev/null`
18501 test "x$?" != "x0" && pkg_failed=yes
18502 else
18503 pkg_failed=yes
18504 fi
18505 else
18506 pkg_failed=untried
18507 fi
18508 if test -n "$QUICHE_LIBS"; then
18509 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18510 elif test -n "$PKG_CONFIG"; then
18511 if test -n "$PKG_CONFIG" && \
18512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18513 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18514 ac_status=$?
18515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18516 test $ac_status = 0; }; then
18517 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.15.0" 2>/dev/null`
18518 test "x$?" != "x0" && pkg_failed=yes
18519 else
18520 pkg_failed=yes
18521 fi
18522 else
18523 pkg_failed=untried
18524 fi
18525
18526
18527
18528 if test $pkg_failed = yes; then
18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18530 printf "%s\n" "no" >&6; }
18531
18532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18533 _pkg_short_errors_supported=yes
18534 else
18535 _pkg_short_errors_supported=no
18536 fi
18537 if test $_pkg_short_errors_supported = yes; then
18538 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18539 else
18540 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18541 fi
18542 # Put the nasty error message in config.log where it belongs
18543 echo "$QUICHE_PKG_ERRORS" >&5
18544
18545 :
18546 elif test $pkg_failed = untried; then
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18548 printf "%s\n" "no" >&6; }
18549 :
18550 else
18551 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18552 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 printf "%s\n" "yes" >&6; }
18555
18556 HAVE_QUICHE=1
18557
18558 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18559
18560
18561 fi
18562
18563 elif test $pkg_failed = untried; then
18564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 printf "%s\n" "no" >&6; }
18566
18567 # Quiche is older than 0.22.0, or no Quiche at all
18568
18569 pkg_failed=no
18570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche >= 0.15.0" >&5
18571 printf %s "checking for quiche >= 0.15.0... " >&6; }
18572
18573 if test -n "$QUICHE_CFLAGS"; then
18574 pkg_cv_QUICHE_CFLAGS="$QUICHE_CFLAGS"
18575 elif test -n "$PKG_CONFIG"; then
18576 if test -n "$PKG_CONFIG" && \
18577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18578 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18579 ac_status=$?
18580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18581 test $ac_status = 0; }; then
18582 pkg_cv_QUICHE_CFLAGS=`$PKG_CONFIG --cflags "quiche >= 0.15.0" 2>/dev/null`
18583 test "x$?" != "x0" && pkg_failed=yes
18584 else
18585 pkg_failed=yes
18586 fi
18587 else
18588 pkg_failed=untried
18589 fi
18590 if test -n "$QUICHE_LIBS"; then
18591 pkg_cv_QUICHE_LIBS="$QUICHE_LIBS"
18592 elif test -n "$PKG_CONFIG"; then
18593 if test -n "$PKG_CONFIG" && \
18594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quiche >= 0.15.0\""; } >&5
18595 ($PKG_CONFIG --exists --print-errors "quiche >= 0.15.0") 2>&5
18596 ac_status=$?
18597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18598 test $ac_status = 0; }; then
18599 pkg_cv_QUICHE_LIBS=`$PKG_CONFIG --libs "quiche >= 0.15.0" 2>/dev/null`
18600 test "x$?" != "x0" && pkg_failed=yes
18601 else
18602 pkg_failed=yes
18603 fi
18604 else
18605 pkg_failed=untried
18606 fi
18607
18608
18609
18610 if test $pkg_failed = yes; then
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612 printf "%s\n" "no" >&6; }
18613
18614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18615 _pkg_short_errors_supported=yes
18616 else
18617 _pkg_short_errors_supported=no
18618 fi
18619 if test $_pkg_short_errors_supported = yes; then
18620 QUICHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18621 else
18622 QUICHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "quiche >= 0.15.0" 2>&1`
18623 fi
18624 # Put the nasty error message in config.log where it belongs
18625 echo "$QUICHE_PKG_ERRORS" >&5
18626
18627 :
18628 elif test $pkg_failed = untried; then
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18630 printf "%s\n" "no" >&6; }
18631 :
18632 else
18633 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18634 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18636 printf "%s\n" "yes" >&6; }
18637
18638 HAVE_QUICHE=1
18639
18640 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18641
18642
18643 fi
18644
18645 else
18646 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18647 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18649 printf "%s\n" "yes" >&6; }
18650
18651 HAVE_QUICHE=1
18652
18653 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18654
18655
18656 printf "%s\n" "#define HAVE_QUICHE_STREAM_ERROR_CODES 1" >>confdefs.h
18657
18658
18659 fi
18660
18661 else
18662 QUICHE_CFLAGS=$pkg_cv_QUICHE_CFLAGS
18663 QUICHE_LIBS=$pkg_cv_QUICHE_LIBS
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18665 printf "%s\n" "yes" >&6; }
18666
18667 HAVE_QUICHE=1
18668
18669 printf "%s\n" "#define HAVE_QUICHE 1" >>confdefs.h
18670
18671
18672 printf "%s\n" "#define HAVE_QUICHE_H3_EVENT_HEADERS_HAS_MORE_FRAMES 1" >>confdefs.h
18673
18674
18675 printf "%s\n" "#define HAVE_QUICHE_STREAM_ERROR_CODES 1" >>confdefs.h
18676
18677
18678 fi
18679 if test "x$HAVE_QUICHE" = "x1"
18680 then :
18681
18682 save_CFLAGS=$CFLAGS
18683 save_LIBS=$LIBS
18684 CFLAGS="$QUICHE_CFLAGS $CFLAGS"
18685 LIBS="$QUICHE_LIBS $LIBS"
18686 ac_fn_cxx_check_func "$LINENO" "quiche_conn_server_name" "ac_cv_func_quiche_conn_server_name"
18687 if test "x$ac_cv_func_quiche_conn_server_name" = xyes
18688 then :
18689 printf "%s\n" "#define HAVE_QUICHE_CONN_SERVER_NAME 1" >>confdefs.h
18690
18691 fi
18692
18693 CFLAGS=$save_CFLAGS
18694 LIBS=$save_LIBS
18695
18696
18697 fi
18698
18699 fi
18700
18701 fi
18702 if test "x$QUICHE_LIBS" != "x"; then
18703 HAVE_QUICHE_TRUE=
18704 HAVE_QUICHE_FALSE='#'
18705 else
18706 HAVE_QUICHE_TRUE='#'
18707 HAVE_QUICHE_FALSE=
18708 fi
18709
18710 if test "x$with_quiche" = "xyes"
18711 then :
18712
18713 if test x"$QUICHE_LIBS" = "x"
18714 then :
18715
18716 as_fn_error $? "quiche requested but libraries were not found" "$LINENO" 5
18717
18718 fi
18719
18720 fi
18721
18722
18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will have dnstap" >&5
18724 printf %s "checking whether we will have dnstap... " >&6; }
18725 # Check whether --enable-dnstap was given.
18726 if test ${enable_dnstap+y}
18727 then :
18728 enableval=$enable_dnstap; enable_dnstap=$enableval
18729 else case e in #(
18730 e) enable_dnstap=auto ;;
18731 esac
18732 fi
18733
18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dnstap" >&5
18735 printf "%s\n" "$enable_dnstap" >&6; }
18736
18737 if test "x$enable_dnstap" != "xno"
18738 then :
18739
18740 if test "x$enable_dnstap" = "xyes" -o "x$enable_dnstap" = "xauto"
18741 then :
18742
18743
18744 pkg_failed=no
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfstrm" >&5
18746 printf %s "checking for libfstrm... " >&6; }
18747
18748 if test -n "$FSTRM_CFLAGS"; then
18749 pkg_cv_FSTRM_CFLAGS="$FSTRM_CFLAGS"
18750 elif test -n "$PKG_CONFIG"; then
18751 if test -n "$PKG_CONFIG" && \
18752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm\""; } >&5
18753 ($PKG_CONFIG --exists --print-errors "libfstrm") 2>&5
18754 ac_status=$?
18755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756 test $ac_status = 0; }; then
18757 pkg_cv_FSTRM_CFLAGS=`$PKG_CONFIG --cflags "libfstrm" 2>/dev/null`
18758 test "x$?" != "x0" && pkg_failed=yes
18759 else
18760 pkg_failed=yes
18761 fi
18762 else
18763 pkg_failed=untried
18764 fi
18765 if test -n "$FSTRM_LIBS"; then
18766 pkg_cv_FSTRM_LIBS="$FSTRM_LIBS"
18767 elif test -n "$PKG_CONFIG"; then
18768 if test -n "$PKG_CONFIG" && \
18769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm\""; } >&5
18770 ($PKG_CONFIG --exists --print-errors "libfstrm") 2>&5
18771 ac_status=$?
18772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; }; then
18774 pkg_cv_FSTRM_LIBS=`$PKG_CONFIG --libs "libfstrm" 2>/dev/null`
18775 test "x$?" != "x0" && pkg_failed=yes
18776 else
18777 pkg_failed=yes
18778 fi
18779 else
18780 pkg_failed=untried
18781 fi
18782
18783
18784
18785 if test $pkg_failed = yes; then
18786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18787 printf "%s\n" "no" >&6; }
18788
18789 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18790 _pkg_short_errors_supported=yes
18791 else
18792 _pkg_short_errors_supported=no
18793 fi
18794 if test $_pkg_short_errors_supported = yes; then
18795 FSTRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfstrm" 2>&1`
18796 else
18797 FSTRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfstrm" 2>&1`
18798 fi
18799 # Put the nasty error message in config.log where it belongs
18800 echo "$FSTRM_PKG_ERRORS" >&5
18801
18802 :
18803 elif test $pkg_failed = untried; then
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18805 printf "%s\n" "no" >&6; }
18806 :
18807 else
18808 FSTRM_CFLAGS=$pkg_cv_FSTRM_CFLAGS
18809 FSTRM_LIBS=$pkg_cv_FSTRM_LIBS
18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18811 printf "%s\n" "yes" >&6; }
18812
18813
18814 printf "%s\n" "#define HAVE_FSTRM 1" >>confdefs.h
18815
18816 save_CFLAGS=$CFLAGS
18817 save_LIBS=$LIBS
18818 CFLAGS="$FSTRM_CFLAGS $CFLAGS"
18819 LIBS="$FSTRM_LIBS $LIBS"
18820 ac_fn_cxx_check_func "$LINENO" "fstrm_tcp_writer_init" "ac_cv_func_fstrm_tcp_writer_init"
18821 if test "x$ac_cv_func_fstrm_tcp_writer_init" = xyes
18822 then :
18823 printf "%s\n" "#define HAVE_FSTRM_TCP_WRITER_INIT 1" >>confdefs.h
18824
18825 fi
18826
18827 CFLAGS=$save_CFLAGS
18828 LIBS=$save_LIBS
18829
18830 fi
18831
18832 fi
18833
18834 fi
18835
18836 if test "x$FSTRM_LIBS" != "x"; then
18837 FSTRM_TRUE=
18838 FSTRM_FALSE='#'
18839 else
18840 FSTRM_TRUE='#'
18841 FSTRM_FALSE=
18842 fi
18843
18844 if test "x$enable_dnstap" = "xyes"
18845 then :
18846
18847 if test x"$FSTRM_LIBS" = "x"
18848 then :
18849
18850 as_fn_error $? "dnstap requested but libfstrm was not found" "$LINENO" 5
18851
18852 fi
18853
18854 fi
18855
18856
18857 # Extract the first word of "ragel", so it can be a program name with args.
18858 set dummy ragel; ac_word=$2
18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18860 printf %s "checking for $ac_word... " >&6; }
18861 if test ${ac_cv_prog_RAGEL+y}
18862 then :
18863 printf %s "(cached) " >&6
18864 else case e in #(
18865 e) if test -n "$RAGEL"; then
18866 ac_cv_prog_RAGEL="$RAGEL" # Let the user override the test.
18867 else
18868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18869 for as_dir in $PATH
18870 do
18871 IFS=$as_save_IFS
18872 case $as_dir in #(((
18873 '') as_dir=./ ;;
18874 */) ;;
18875 *) as_dir=$as_dir/ ;;
18876 esac
18877 for ac_exec_ext in '' $ac_executable_extensions; do
18878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18879 ac_cv_prog_RAGEL="ragel"
18880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18881 break 2
18882 fi
18883 done
18884 done
18885 IFS=$as_save_IFS
18886
18887 fi ;;
18888 esac
18889 fi
18890 RAGEL=$ac_cv_prog_RAGEL
18891 if test -n "$RAGEL"; then
18892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAGEL" >&5
18893 printf "%s\n" "$RAGEL" >&6; }
18894 else
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18896 printf "%s\n" "no" >&6; }
18897 fi
18898
18899
18900 if test "x$RAGEL" = "x"; then
18901 if test ! -f "${srcdir}/dnslabeltext.cc"; then
18902 as_fn_error $? "ragel is missing and you don't have ${srcdir}/dnslabeltext.cc. Install ragel or download sources from www.dnsdist.org" "$LINENO" 5
18903 fi
18904 fi
18905
18906
18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link in libedit" >&5
18908 printf %s "checking whether to link in libedit... " >&6; }
18909
18910 # Check whether --with-libedit was given.
18911 if test ${with_libedit+y}
18912 then :
18913 withval=$with_libedit; with_libedit=$enableval
18914 else case e in #(
18915 e) with_libedit=yes
18916 ;;
18917 esac
18918 fi
18919
18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libedit" >&5
18921 printf "%s\n" "$with_libedit" >&6; }
18922
18923 if test "x$with_libedit" != "xno"
18924 then :
18925
18926 if test "x$with_libedit" = "xyes" -o "x$with_libedit" = "xauto"
18927 then :
18928
18929
18930 pkg_failed=no
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
18932 printf %s "checking for libedit... " >&6; }
18933
18934 if test -n "$LIBEDIT_CFLAGS"; then
18935 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
18936 elif test -n "$PKG_CONFIG"; then
18937 if test -n "$PKG_CONFIG" && \
18938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
18939 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
18940 ac_status=$?
18941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18942 test $ac_status = 0; }; then
18943 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
18944 test "x$?" != "x0" && pkg_failed=yes
18945 else
18946 pkg_failed=yes
18947 fi
18948 else
18949 pkg_failed=untried
18950 fi
18951 if test -n "$LIBEDIT_LIBS"; then
18952 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
18953 elif test -n "$PKG_CONFIG"; then
18954 if test -n "$PKG_CONFIG" && \
18955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
18956 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
18957 ac_status=$?
18958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18959 test $ac_status = 0; }; then
18960 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
18961 test "x$?" != "x0" && pkg_failed=yes
18962 else
18963 pkg_failed=yes
18964 fi
18965 else
18966 pkg_failed=untried
18967 fi
18968
18969
18970
18971 if test $pkg_failed = yes; then
18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 printf "%s\n" "no" >&6; }
18974
18975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18976 _pkg_short_errors_supported=yes
18977 else
18978 _pkg_short_errors_supported=no
18979 fi
18980 if test $_pkg_short_errors_supported = yes; then
18981 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
18982 else
18983 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
18984 fi
18985 # Put the nasty error message in config.log where it belongs
18986 echo "$LIBEDIT_PKG_ERRORS" >&5
18987
18988 :
18989 elif test $pkg_failed = untried; then
18990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18991 printf "%s\n" "no" >&6; }
18992 :
18993 else
18994 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
18995 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18997 printf "%s\n" "yes" >&6; }
18998
18999 HAVE_LIBEDIT=1
19000
19001 printf "%s\n" "#define HAVE_LIBEDIT 1" >>confdefs.h
19002
19003
19004 fi
19005
19006 fi
19007
19008 fi
19009 if test "x$LIBEDIT_LIBS" != "x"; then
19010 HAVE_LIBEDIT_TRUE=
19011 HAVE_LIBEDIT_FALSE='#'
19012 else
19013 HAVE_LIBEDIT_TRUE='#'
19014 HAVE_LIBEDIT_FALSE=
19015 fi
19016
19017 if test "x$with_libedit" = "xyes"
19018 then :
19019
19020 if test x"$LIBEDIT_LIBS" = "x"
19021 then :
19022
19023 as_fn_error $? "libedit support requested but library not found" "$LINENO" 5
19024
19025 fi
19026
19027 fi
19028
19029
19030 OLD_LIBS="$LIBS"; LIBS=""
19031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19032 printf %s "checking for library containing clock_gettime... " >&6; }
19033 if test ${ac_cv_search_clock_gettime+y}
19034 then :
19035 printf %s "(cached) " >&6
19036 else case e in #(
19037 e) ac_func_search_save_LIBS=$LIBS
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19040
19041 namespace conftest {
19042 extern "C" int clock_gettime ();
19043 }
19044 int
19045 main (void)
19046 {
19047 return conftest::clock_gettime ();
19048 ;
19049 return 0;
19050 }
19051 _ACEOF
19052 for ac_lib in '' rt
19053 do
19054 if test -z "$ac_lib"; then
19055 ac_res="none required"
19056 else
19057 ac_res=-l$ac_lib
19058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19059 fi
19060 if ac_fn_cxx_try_link "$LINENO"
19061 then :
19062 ac_cv_search_clock_gettime=$ac_res
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19065 conftest$ac_exeext
19066 if test ${ac_cv_search_clock_gettime+y}
19067 then :
19068 break
19069 fi
19070 done
19071 if test ${ac_cv_search_clock_gettime+y}
19072 then :
19073
19074 else case e in #(
19075 e) ac_cv_search_clock_gettime=no ;;
19076 esac
19077 fi
19078 rm conftest.$ac_ext
19079 LIBS=$ac_func_search_save_LIBS ;;
19080 esac
19081 fi
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19083 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
19084 ac_res=$ac_cv_search_clock_gettime
19085 if test "$ac_res" != no
19086 then :
19087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19088
19089 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19090
19091 fi
19092
19093 RT_LIBS=$LIBS
19094
19095 LIBS="$OLD_LIBS"
19096
19097
19098
19099 THREADFLAGS=""
19100
19101 case "$host_os" in
19102 solaris2.1*)
19103 LIBS="-lposix4 -lpthread $LIBS"
19104 CXXFLAGS="-D_REENTRANT $CXXFLAGS"
19105 have_solaris="yes"
19106 ;;
19107 solaris2.8 | solaris2.9 )
19108
19109 printf "%s\n" "#define NEED_POSIX_TYPEDEF /**/" >>confdefs.h
19110
19111
19112 printf "%s\n" "#define NEED_INET_NTOP_PROTO /**/" >>confdefs.h
19113
19114 LIBS="-lposix4 -lpthread $LIBS"
19115 CXXFLAGS="-D_REENTRANT $CXXFLAGS"
19116 have_solaris="yes"
19117 ;;
19118 linux*)
19119 THREADFLAGS="-pthread"
19120 have_linux="yes"
19121 ;;
19122 darwin*)
19123 CXXFLAGS="-D__APPLE_USE_RFC_3542 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $CXXFLAGS"
19124 have_darwin="yes"
19125 ;;
19126 freebsd*)
19127 THREADFLAGS="-pthread"
19128 have_freebsd="yes"
19129 ;;
19130 openbsd*)
19131 THREADFLAGS="-pthread"
19132 have_openbsd="yes"
19133 ;;
19134 *)
19135 LDFLAGS="-pthread $LDFLAGS"
19136 CXXFLAGS="-pthread $CXXFLAGS"
19137 ;;
19138 esac
19139
19140 if test "x$have_freebsd" = "xyes"; then
19141 HAVE_FREEBSD_TRUE=
19142 HAVE_FREEBSD_FALSE='#'
19143 else
19144 HAVE_FREEBSD_TRUE='#'
19145 HAVE_FREEBSD_FALSE=
19146 fi
19147
19148 if test "x$have_openbsd" = "xyes"; then
19149 HAVE_OPENBSD_TRUE=
19150 HAVE_OPENBSD_FALSE='#'
19151 else
19152 HAVE_OPENBSD_TRUE='#'
19153 HAVE_OPENBSD_FALSE=
19154 fi
19155
19156 if test "x$have_linux" = "xyes"; then
19157 HAVE_LINUX_TRUE=
19158 HAVE_LINUX_FALSE='#'
19159 else
19160 HAVE_LINUX_TRUE='#'
19161 HAVE_LINUX_FALSE=
19162 fi
19163
19164 if test "x$have_darwin" = "xyes"; then
19165 HAVE_DARWIN_TRUE=
19166 HAVE_DARWIN_FALSE='#'
19167 else
19168 HAVE_DARWIN_TRUE='#'
19169 HAVE_DARWIN_FALSE=
19170 fi
19171
19172 if test "x$have_solaris" = "xyes"; then
19173 HAVE_SOLARIS_TRUE=
19174 HAVE_SOLARIS_FALSE='#'
19175 else
19176 HAVE_SOLARIS_TRUE='#'
19177 HAVE_SOLARIS_FALSE=
19178 fi
19179
19180
19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for __atomic builtins" >&5
19182 printf %s "checking whether -latomic is needed for __atomic builtins... " >&6; }
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185 #include <stdint.h>
19186 int
19187 main (void)
19188 {
19189 uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);
19190
19191 ;
19192 return 0;
19193 }
19194 _ACEOF
19195 if ac_fn_cxx_try_link "$LINENO"
19196 then :
19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 printf "%s\n" "no" >&6; }
19199 else case e in #(
19200 e) LIBS="$LIBS -latomic"
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19203 #include <stdint.h>
19204 int
19205 main (void)
19206 {
19207 uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);
19208
19209 ;
19210 return 0;
19211 }
19212 _ACEOF
19213 if ac_fn_cxx_try_link "$LINENO"
19214 then :
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19216 printf "%s\n" "yes" >&6; }
19217 else case e in #(
19218 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19219 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19220 as_fn_error $? "libatomic needed, but linking with -latomic failed, cannot continue
19221 See 'config.log' for more details" "$LINENO" 5; }
19222 ;;
19223 esac
19224 fi
19225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19226 conftest$ac_exeext conftest.$ac_ext
19227 ;;
19228 esac
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19231 conftest$ac_exeext conftest.$ac_ext
19232
19233
19234 DYNLINKFLAGS=-export-dynamic
19235
19236
19237
19238 stored_LIBS="$LIBS"
19239 LIBS="-lpthread"
19240 # pthread setname (4 non-portable variants...)
19241 ac_fn_cxx_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
19242 "
19243 if test "x$ac_cv_header_pthread_np_h" = xyes
19244 then :
19245 printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
19246
19247 fi
19248
19249
19250 # 2-arg setname (e.g. Linux/glibc, QNX, IBM)
19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 2-arg pthread_setname_np" >&5
19252 printf %s "checking for 2-arg pthread_setname_np... " >&6; }
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19255
19256 #include <pthread.h>
19257 #if HAVE_PTHREAD_NP_H
19258 # include <pthread_np.h>
19259 #endif
19260
19261 int
19262 main (void)
19263 {
19264
19265 pthread_setname_np(pthread_self(), "foo")
19266
19267 ;
19268 return 0;
19269 }
19270 _ACEOF
19271 if ac_fn_cxx_try_link "$LINENO"
19272 then :
19273
19274
19275 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_2 1" >>confdefs.h
19276
19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19278 printf "%s\n" "yes" >&6; }
19279
19280 else case e in #(
19281 e)
19282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283 printf "%s\n" "no" >&6; }
19284
19285 # 2-arg set_name (e.g. FreeBSD, OpenBSD)
19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 2-arg pthread_set_name_np" >&5
19287 printf %s "checking for 2-arg pthread_set_name_np... " >&6; }
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290
19291 #include <pthread.h>
19292 #if HAVE_PTHREAD_NP_H
19293 # include <pthread_np.h>
19294 #endif
19295
19296 int
19297 main (void)
19298 {
19299
19300 return pthread_set_name_np(pthread_self(), "foo");
19301
19302 ;
19303 return 0;
19304 }
19305 _ACEOF
19306 if ac_fn_cxx_try_link "$LINENO"
19307 then :
19308
19309
19310 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP_2 1" >>confdefs.h
19311
19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 printf "%s\n" "yes" >&6; }
19314
19315 else case e in #(
19316 e)
19317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 printf "%s\n" "no" >&6; }
19319
19320 # 2-arg void set_name (e.g. FreeBSD, OpenBSD)
19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 2-arg void pthread_set_name_np" >&5
19322 printf %s "checking for 2-arg void pthread_set_name_np... " >&6; }
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19325
19326 #include <pthread.h>
19327 #if HAVE_PTHREAD_NP_H
19328 # include <pthread_np.h>
19329 #endif
19330
19331 int
19332 main (void)
19333 {
19334
19335 pthread_set_name_np(pthread_self(), "foo");
19336
19337 ;
19338 return 0;
19339 }
19340 _ACEOF
19341 if ac_fn_cxx_try_link "$LINENO"
19342 then :
19343
19344
19345 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP_2_VOID 1" >>confdefs.h
19346
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19348 printf "%s\n" "yes" >&6; }
19349
19350 else case e in #(
19351 e)
19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353 printf "%s\n" "no" >&6; }
19354
19355 # 1-arg setname (e.g. Darwin)
19356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 1-arg pthread_setname_np" >&5
19357 printf %s "checking for 1-arg pthread_setname_np... " >&6; }
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19360
19361 #include <pthread.h>
19362 #if HAVE_PTHREAD_NP_H
19363 # include <pthread_np.h>
19364 #endif
19365
19366 int
19367 main (void)
19368 {
19369
19370 return pthread_setname_np("foo");
19371
19372 ;
19373 return 0;
19374 }
19375 _ACEOF
19376 if ac_fn_cxx_try_link "$LINENO"
19377 then :
19378
19379
19380 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_1 1" >>confdefs.h
19381
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19383 printf "%s\n" "yes" >&6; }
19384
19385 else case e in #(
19386 e)
19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19388 printf "%s\n" "no" >&6; }
19389
19390 # 3-arg setname (e.g. NetBSD)
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 3-arg pthread_setname_np" >&5
19392 printf %s "checking for 3-arg pthread_setname_np... " >&6; }
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395
19396 #include <pthread.h>
19397 #if HAVE_PTHREAD_NP_H
19398 # include <pthread_np.h>
19399 #endif
19400
19401 int
19402 main (void)
19403 {
19404
19405 return pthread_setname_np(pthread_self(), "foo", NULL);
19406
19407 ;
19408 return 0;
19409 }
19410 _ACEOF
19411 if ac_fn_cxx_try_link "$LINENO"
19412 then :
19413
19414
19415 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_3 1" >>confdefs.h
19416
19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19418 printf "%s\n" "yes" >&6; }
19419
19420 else case e in #(
19421 e)
19422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423 printf "%s\n" "no" >&6; }
19424 ;;
19425 esac
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19428 conftest$ac_exeext conftest.$ac_ext
19429 ;;
19430 esac
19431 fi
19432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19433 conftest$ac_exeext conftest.$ac_ext
19434 ;;
19435 esac
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19438 conftest$ac_exeext conftest.$ac_ext
19439 ;;
19440 esac
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19443 conftest$ac_exeext conftest.$ac_ext
19444 ;;
19445 esac
19446 fi
19447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19448 conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$stored_LIBS
19450
19451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
19452 printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
19453 if test ${ac_cv_cxx_undeclared_builtin_options+y}
19454 then :
19455 printf %s "(cached) " >&6
19456 else case e in #(
19457 e) ac_save_CFLAGS=$CFLAGS
19458 ac_cv_cxx_undeclared_builtin_options='cannot detect'
19459 for ac_arg in '' -fno-builtin; do
19460 CFLAGS="$ac_save_CFLAGS $ac_arg"
19461 # This test program should *not* compile successfully.
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464
19465 int
19466 main (void)
19467 {
19468 (void) strchr;
19469 ;
19470 return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_cxx_try_compile "$LINENO"
19474 then :
19475
19476 else case e in #(
19477 e) # This test program should compile successfully.
19478 # No library function is consistently available on
19479 # freestanding implementations, so test against a dummy
19480 # declaration. Include always-available headers on the
19481 # off chance that they somehow elicit warnings.
19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19483 /* end confdefs.h. */
19484 #include <float.h>
19485 #include <limits.h>
19486 #include <stdarg.h>
19487 #include <stddef.h>
19488 extern void ac_decl (int, char *);
19489
19490 int
19491 main (void)
19492 {
19493 (void) ac_decl (0, (char *) 0);
19494 (void) ac_decl;
19495
19496 ;
19497 return 0;
19498 }
19499 _ACEOF
19500 if ac_fn_cxx_try_compile "$LINENO"
19501 then :
19502 if test x"$ac_arg" = x
19503 then :
19504 ac_cv_cxx_undeclared_builtin_options='none needed'
19505 else case e in #(
19506 e) ac_cv_cxx_undeclared_builtin_options=$ac_arg ;;
19507 esac
19508 fi
19509 break
19510 fi
19511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19512 esac
19513 fi
19514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19515 done
19516 CFLAGS=$ac_save_CFLAGS
19517 ;;
19518 esac
19519 fi
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
19521 printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
19522 case $ac_cv_cxx_undeclared_builtin_options in #(
19523 'cannot detect') :
19524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19525 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19526 as_fn_error $? "cannot make $CXX report undeclared builtins
19527 See 'config.log' for more details" "$LINENO" 5; } ;; #(
19528 'none needed') :
19529 ac_cxx_undeclared_builtin_options='' ;; #(
19530 *) :
19531 ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
19532 esac
19533
19534
19535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
19536 printf %s "checking for library containing inet_aton... " >&6; }
19537 if test ${ac_cv_search_inet_aton+y}
19538 then :
19539 printf %s "(cached) " >&6
19540 else case e in #(
19541 e) ac_func_search_save_LIBS=$LIBS
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19544
19545 namespace conftest {
19546 extern "C" int inet_aton ();
19547 }
19548 int
19549 main (void)
19550 {
19551 return conftest::inet_aton ();
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 for ac_lib in '' resolv
19557 do
19558 if test -z "$ac_lib"; then
19559 ac_res="none required"
19560 else
19561 ac_res=-l$ac_lib
19562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19563 fi
19564 if ac_fn_cxx_try_link "$LINENO"
19565 then :
19566 ac_cv_search_inet_aton=$ac_res
19567 fi
19568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19569 conftest$ac_exeext
19570 if test ${ac_cv_search_inet_aton+y}
19571 then :
19572 break
19573 fi
19574 done
19575 if test ${ac_cv_search_inet_aton+y}
19576 then :
19577
19578 else case e in #(
19579 e) ac_cv_search_inet_aton=no ;;
19580 esac
19581 fi
19582 rm conftest.$ac_ext
19583 LIBS=$ac_func_search_save_LIBS ;;
19584 esac
19585 fi
19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
19587 printf "%s\n" "$ac_cv_search_inet_aton" >&6; }
19588 ac_res=$ac_cv_search_inet_aton
19589 if test "$ac_res" != no
19590 then :
19591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19592
19593 fi
19594
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19596 printf %s "checking for library containing gethostbyname... " >&6; }
19597 if test ${ac_cv_search_gethostbyname+y}
19598 then :
19599 printf %s "(cached) " >&6
19600 else case e in #(
19601 e) ac_func_search_save_LIBS=$LIBS
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h. */
19604
19605 namespace conftest {
19606 extern "C" int gethostbyname ();
19607 }
19608 int
19609 main (void)
19610 {
19611 return conftest::gethostbyname ();
19612 ;
19613 return 0;
19614 }
19615 _ACEOF
19616 for ac_lib in '' nsl
19617 do
19618 if test -z "$ac_lib"; then
19619 ac_res="none required"
19620 else
19621 ac_res=-l$ac_lib
19622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19623 fi
19624 if ac_fn_cxx_try_link "$LINENO"
19625 then :
19626 ac_cv_search_gethostbyname=$ac_res
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19629 conftest$ac_exeext
19630 if test ${ac_cv_search_gethostbyname+y}
19631 then :
19632 break
19633 fi
19634 done
19635 if test ${ac_cv_search_gethostbyname+y}
19636 then :
19637
19638 else case e in #(
19639 e) ac_cv_search_gethostbyname=no ;;
19640 esac
19641 fi
19642 rm conftest.$ac_ext
19643 LIBS=$ac_func_search_save_LIBS ;;
19644 esac
19645 fi
19646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19647 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
19648 ac_res=$ac_cv_search_gethostbyname
19649 if test "$ac_res" != no
19650 then :
19651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19652
19653 fi
19654
19655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19656 printf %s "checking for library containing socket... " >&6; }
19657 if test ${ac_cv_search_socket+y}
19658 then :
19659 printf %s "(cached) " >&6
19660 else case e in #(
19661 e) ac_func_search_save_LIBS=$LIBS
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19664
19665 namespace conftest {
19666 extern "C" int socket ();
19667 }
19668 int
19669 main (void)
19670 {
19671 return conftest::socket ();
19672 ;
19673 return 0;
19674 }
19675 _ACEOF
19676 for ac_lib in '' socket
19677 do
19678 if test -z "$ac_lib"; then
19679 ac_res="none required"
19680 else
19681 ac_res=-l$ac_lib
19682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19683 fi
19684 if ac_fn_cxx_try_link "$LINENO"
19685 then :
19686 ac_cv_search_socket=$ac_res
19687 fi
19688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19689 conftest$ac_exeext
19690 if test ${ac_cv_search_socket+y}
19691 then :
19692 break
19693 fi
19694 done
19695 if test ${ac_cv_search_socket+y}
19696 then :
19697
19698 else case e in #(
19699 e) ac_cv_search_socket=no ;;
19700 esac
19701 fi
19702 rm conftest.$ac_ext
19703 LIBS=$ac_func_search_save_LIBS ;;
19704 esac
19705 fi
19706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19707 printf "%s\n" "$ac_cv_search_socket" >&6; }
19708 ac_res=$ac_cv_search_socket
19709 if test "$ac_res" != no
19710 then :
19711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19712
19713 fi
19714
19715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
19716 printf %s "checking for library containing gethostent... " >&6; }
19717 if test ${ac_cv_search_gethostent+y}
19718 then :
19719 printf %s "(cached) " >&6
19720 else case e in #(
19721 e) ac_func_search_save_LIBS=$LIBS
19722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19724
19725 namespace conftest {
19726 extern "C" int gethostent ();
19727 }
19728 int
19729 main (void)
19730 {
19731 return conftest::gethostent ();
19732 ;
19733 return 0;
19734 }
19735 _ACEOF
19736 for ac_lib in '' nsl
19737 do
19738 if test -z "$ac_lib"; then
19739 ac_res="none required"
19740 else
19741 ac_res=-l$ac_lib
19742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19743 fi
19744 if ac_fn_cxx_try_link "$LINENO"
19745 then :
19746 ac_cv_search_gethostent=$ac_res
19747 fi
19748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19749 conftest$ac_exeext
19750 if test ${ac_cv_search_gethostent+y}
19751 then :
19752 break
19753 fi
19754 done
19755 if test ${ac_cv_search_gethostent+y}
19756 then :
19757
19758 else case e in #(
19759 e) ac_cv_search_gethostent=no ;;
19760 esac
19761 fi
19762 rm conftest.$ac_ext
19763 LIBS=$ac_func_search_save_LIBS ;;
19764 esac
19765 fi
19766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
19767 printf "%s\n" "$ac_cv_search_gethostent" >&6; }
19768 ac_res=$ac_cv_search_gethostent
19769 if test "$ac_res" != no
19770 then :
19771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19772
19773 fi
19774
19775 ac_fn_cxx_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg"
19776 if test "x$ac_cv_func_recvmmsg" = xyes
19777 then :
19778 printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h
19779
19780 fi
19781 ac_fn_cxx_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg"
19782 if test "x$ac_cv_func_sendmmsg" = xyes
19783 then :
19784 printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h
19785
19786 fi
19787 ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
19788 if test "x$ac_cv_func_accept4" = xyes
19789 then :
19790 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
19791
19792 fi
19793
19794 ac_fn_check_decl "$LINENO" "getifaddrs" "ac_cv_have_decl_getifaddrs" "#include <ifaddrs.h>
19795 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
19796 if test "x$ac_cv_have_decl_getifaddrs" = xyes
19797 then :
19798
19799 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
19800
19801 fi
19802
19803
19804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_setaffinity_np" >&5
19805 printf %s "checking for library containing pthread_setaffinity_np... " >&6; }
19806 if test ${ac_cv_search_pthread_setaffinity_np+y}
19807 then :
19808 printf %s "(cached) " >&6
19809 else case e in #(
19810 e) ac_func_search_save_LIBS=$LIBS
19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19812 /* end confdefs.h. */
19813
19814 namespace conftest {
19815 extern "C" int pthread_setaffinity_np ();
19816 }
19817 int
19818 main (void)
19819 {
19820 return conftest::pthread_setaffinity_np ();
19821 ;
19822 return 0;
19823 }
19824 _ACEOF
19825 for ac_lib in '' pthread
19826 do
19827 if test -z "$ac_lib"; then
19828 ac_res="none required"
19829 else
19830 ac_res=-l$ac_lib
19831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19832 fi
19833 if ac_fn_cxx_try_link "$LINENO"
19834 then :
19835 ac_cv_search_pthread_setaffinity_np=$ac_res
19836 fi
19837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19838 conftest$ac_exeext
19839 if test ${ac_cv_search_pthread_setaffinity_np+y}
19840 then :
19841 break
19842 fi
19843 done
19844 if test ${ac_cv_search_pthread_setaffinity_np+y}
19845 then :
19846
19847 else case e in #(
19848 e) ac_cv_search_pthread_setaffinity_np=no ;;
19849 esac
19850 fi
19851 rm conftest.$ac_ext
19852 LIBS=$ac_func_search_save_LIBS ;;
19853 esac
19854 fi
19855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setaffinity_np" >&5
19856 printf "%s\n" "$ac_cv_search_pthread_setaffinity_np" >&6; }
19857 ac_res=$ac_cv_search_pthread_setaffinity_np
19858 if test "$ac_res" != no
19859 then :
19860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19861
19862 printf "%s\n" "#define HAVE_PTHREAD_SETAFFINITY_NP 1" >>confdefs.h
19863
19864 fi
19865
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getattr_np" >&5
19867 printf %s "checking for library containing pthread_getattr_np... " >&6; }
19868 if test ${ac_cv_search_pthread_getattr_np+y}
19869 then :
19870 printf %s "(cached) " >&6
19871 else case e in #(
19872 e) ac_func_search_save_LIBS=$LIBS
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19875
19876 namespace conftest {
19877 extern "C" int pthread_getattr_np ();
19878 }
19879 int
19880 main (void)
19881 {
19882 return conftest::pthread_getattr_np ();
19883 ;
19884 return 0;
19885 }
19886 _ACEOF
19887 for ac_lib in '' pthread
19888 do
19889 if test -z "$ac_lib"; then
19890 ac_res="none required"
19891 else
19892 ac_res=-l$ac_lib
19893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19894 fi
19895 if ac_fn_cxx_try_link "$LINENO"
19896 then :
19897 ac_cv_search_pthread_getattr_np=$ac_res
19898 fi
19899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19900 conftest$ac_exeext
19901 if test ${ac_cv_search_pthread_getattr_np+y}
19902 then :
19903 break
19904 fi
19905 done
19906 if test ${ac_cv_search_pthread_getattr_np+y}
19907 then :
19908
19909 else case e in #(
19910 e) ac_cv_search_pthread_getattr_np=no ;;
19911 esac
19912 fi
19913 rm conftest.$ac_ext
19914 LIBS=$ac_func_search_save_LIBS ;;
19915 esac
19916 fi
19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getattr_np" >&5
19918 printf "%s\n" "$ac_cv_search_pthread_getattr_np" >&6; }
19919 ac_res=$ac_cv_search_pthread_getattr_np
19920 if test "$ac_res" != no
19921 then :
19922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19923
19924 printf "%s\n" "#define HAVE_PTHREAD_GETATTR_NP 1" >>confdefs.h
19925
19926 fi
19927
19928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_get_stackaddr_np" >&5
19929 printf %s "checking for library containing pthread_get_stackaddr_np... " >&6; }
19930 if test ${ac_cv_search_pthread_get_stackaddr_np+y}
19931 then :
19932 printf %s "(cached) " >&6
19933 else case e in #(
19934 e) ac_func_search_save_LIBS=$LIBS
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19937
19938 namespace conftest {
19939 extern "C" int pthread_get_stackaddr_np ();
19940 }
19941 int
19942 main (void)
19943 {
19944 return conftest::pthread_get_stackaddr_np ();
19945 ;
19946 return 0;
19947 }
19948 _ACEOF
19949 for ac_lib in '' pthread
19950 do
19951 if test -z "$ac_lib"; then
19952 ac_res="none required"
19953 else
19954 ac_res=-l$ac_lib
19955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19956 fi
19957 if ac_fn_cxx_try_link "$LINENO"
19958 then :
19959 ac_cv_search_pthread_get_stackaddr_np=$ac_res
19960 fi
19961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19962 conftest$ac_exeext
19963 if test ${ac_cv_search_pthread_get_stackaddr_np+y}
19964 then :
19965 break
19966 fi
19967 done
19968 if test ${ac_cv_search_pthread_get_stackaddr_np+y}
19969 then :
19970
19971 else case e in #(
19972 e) ac_cv_search_pthread_get_stackaddr_np=no ;;
19973 esac
19974 fi
19975 rm conftest.$ac_ext
19976 LIBS=$ac_func_search_save_LIBS ;;
19977 esac
19978 fi
19979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_get_stackaddr_np" >&5
19980 printf "%s\n" "$ac_cv_search_pthread_get_stackaddr_np" >&6; }
19981 ac_res=$ac_cv_search_pthread_get_stackaddr_np
19982 if test "$ac_res" != no
19983 then :
19984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19985
19986 printf "%s\n" "#define HAVE_PTHREAD_GET_STACKADDR_NP 1" >>confdefs.h
19987
19988 fi
19989
19990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_get_stacksize_np" >&5
19991 printf %s "checking for library containing pthread_get_stacksize_np... " >&6; }
19992 if test ${ac_cv_search_pthread_get_stacksize_np+y}
19993 then :
19994 printf %s "(cached) " >&6
19995 else case e in #(
19996 e) ac_func_search_save_LIBS=$LIBS
19997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19998 /* end confdefs.h. */
19999
20000 namespace conftest {
20001 extern "C" int pthread_get_stacksize_np ();
20002 }
20003 int
20004 main (void)
20005 {
20006 return conftest::pthread_get_stacksize_np ();
20007 ;
20008 return 0;
20009 }
20010 _ACEOF
20011 for ac_lib in '' pthread
20012 do
20013 if test -z "$ac_lib"; then
20014 ac_res="none required"
20015 else
20016 ac_res=-l$ac_lib
20017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20018 fi
20019 if ac_fn_cxx_try_link "$LINENO"
20020 then :
20021 ac_cv_search_pthread_get_stacksize_np=$ac_res
20022 fi
20023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20024 conftest$ac_exeext
20025 if test ${ac_cv_search_pthread_get_stacksize_np+y}
20026 then :
20027 break
20028 fi
20029 done
20030 if test ${ac_cv_search_pthread_get_stacksize_np+y}
20031 then :
20032
20033 else case e in #(
20034 e) ac_cv_search_pthread_get_stacksize_np=no ;;
20035 esac
20036 fi
20037 rm conftest.$ac_ext
20038 LIBS=$ac_func_search_save_LIBS ;;
20039 esac
20040 fi
20041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_get_stacksize_np" >&5
20042 printf "%s\n" "$ac_cv_search_pthread_get_stacksize_np" >&6; }
20043 ac_res=$ac_cv_search_pthread_get_stacksize_np
20044 if test "$ac_res" != no
20045 then :
20046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20047
20048 printf "%s\n" "#define HAVE_PTHREAD_GET_STACKSIZE_NP 1" >>confdefs.h
20049
20050 fi
20051
20052
20053
20054 ac_fn_cxx_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20055 if test "x$ac_cv_func_explicit_bzero" = xyes
20056 then :
20057 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20058
20059 fi
20060 ac_fn_cxx_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
20061 if test "x$ac_cv_func_explicit_memset" = xyes
20062 then :
20063 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
20064
20065 fi
20066 ac_fn_cxx_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
20067 if test "x$ac_cv_func_memset_s" = xyes
20068 then :
20069 printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h
20070
20071 fi
20072
20073
20074 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
20075 if test "x$ac_cv_have_decl_strerror_r" = xyes
20076 then :
20077 ac_have_decl=1
20078 else case e in #(
20079 e) ac_have_decl=0 ;;
20080 esac
20081 fi
20082 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
20083
20084
20085 if test $ac_cv_have_decl_strerror_r = yes; then
20086 # For backward compatibility's sake, define HAVE_STRERROR_R.
20087 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
20088 # as AC_CHECK_DECLS_ONCE.)
20089
20090 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
20091
20092 fi
20093
20094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20095 printf %s "checking whether strerror_r returns char *... " >&6; }
20096 if test ${ac_cv_func_strerror_r_char_p+y}
20097 then :
20098 printf %s "(cached) " >&6
20099 else case e in #(
20100 e)
20101 ac_cv_func_strerror_r_char_p=no
20102 if test $ac_cv_have_decl_strerror_r = yes; then
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20105 #include <string.h>
20106 int
20107 main (void)
20108 {
20109
20110 char buf[100];
20111 char x = *strerror_r (0, buf, sizeof buf);
20112 char *p = strerror_r (0, buf, sizeof buf);
20113 return !p || x;
20114
20115 ;
20116 return 0;
20117 }
20118 _ACEOF
20119 if ac_fn_cxx_try_compile "$LINENO"
20120 then :
20121 ac_cv_func_strerror_r_char_p=yes
20122 fi
20123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20124
20125 fi
20126 ;;
20127 esac
20128 fi
20129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20130 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
20131 if test $ac_cv_func_strerror_r_char_p = yes; then
20132
20133 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20134
20135 fi
20136
20137
20138
20139 echo "$as_me: this is boost.m4 serial 39" >&5
20140 boost_save_IFS=$IFS
20141 boost_version_req=1.54
20142 IFS=.
20143 set x $boost_version_req 0 0 0
20144 IFS=$boost_save_IFS
20145 shift
20146 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
20147 boost_version_req_string=$1.$2.$3
20148
20149 # Check whether --with-boost was given.
20150 if test ${with_boost+y}
20151 then :
20152 withval=$with_boost;
20153 fi
20154 # If BOOST_ROOT is set and the user has not provided a value to
20155 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
20156 if test x"$BOOST_ROOT" != x; then
20157 if test x"$with_boost" = x; then
20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
20159 printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
20160 with_boost=$BOOST_ROOT
20161 else
20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
20163 printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
20164 fi
20165 fi
20166 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
20167 boost_save_CPPFLAGS=$CPPFLAGS
20168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
20169 printf %s "checking for Boost headers version >= $boost_version_req_string... " >&6; }
20170 if test ${boost_cv_inc_path+y}
20171 then :
20172 printf %s "(cached) " >&6
20173 else case e in #(
20174 e) boost_cv_inc_path=no
20175 ac_ext=cpp
20176 ac_cpp='$CXXCPP $CPPFLAGS'
20177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h. */
20182 #include <boost/version.hpp>
20183 #if !defined BOOST_VERSION
20184 # error BOOST_VERSION is not defined
20185 #elif BOOST_VERSION < $boost_version_req
20186 # error Boost headers version < $boost_version_req
20187 #endif
20188
20189 int
20190 main (void)
20191 {
20192
20193 ;
20194 return 0;
20195 }
20196 _ACEOF
20197 # If the user provided a value to --with-boost, use it and only it.
20198 case $with_boost in #(
20199 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
20200 /usr/include C:/Boost/include;; #(
20201 *) set x "$with_boost/include" "$with_boost";;
20202 esac
20203 shift
20204 for boost_dir
20205 do
20206 # Without --layout=system, Boost (or at least some versions) installs
20207 # itself in <prefix>/include/boost-<version>. This inner loop helps to
20208 # find headers in such directories.
20209 #
20210 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
20211 # order followed by ${boost_dir}. The final '.' is a sentinel for
20212 # searching $boost_dir" itself. Entries are whitespace separated.
20213 #
20214 # I didn't indent this loop on purpose (to avoid over-indented code)
20215 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
20216 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
20217 && echo .`
20218 for boost_inc in $boost_layout_system_search_list
20219 do
20220 if test x"$boost_inc" != x.; then
20221 boost_inc="$boost_dir/$boost_inc"
20222 else
20223 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
20224 fi
20225 if test x"$boost_inc" != x; then
20226 # We are going to check whether the version of Boost installed
20227 # in $boost_inc is usable by running a compilation that
20228 # #includes it. But if we pass a -I/some/path in which Boost
20229 # is not installed, the compiler will just skip this -I and
20230 # use other locations (either from CPPFLAGS, or from its list
20231 # of system include directories). As a result we would use
20232 # header installed on the machine instead of the /some/path
20233 # specified by the user. So in that precise case (trying
20234 # $boost_inc), make sure the version.hpp exists.
20235 #
20236 # Use test -e as there can be symlinks.
20237 test -e "$boost_inc/boost/version.hpp" || continue
20238 CPPFLAGS="$CPPFLAGS -I$boost_inc"
20239 fi
20240 if ac_fn_cxx_try_compile "$LINENO"
20241 then :
20242 boost_cv_inc_path=yes
20243 else case e in #(
20244 e) boost_cv_version=no ;;
20245 esac
20246 fi
20247 rm -f core conftest.err conftest.$ac_objext conftest.beam
20248 if test x"$boost_cv_inc_path" = xyes; then
20249 if test x"$boost_inc" != x; then
20250 boost_cv_inc_path=$boost_inc
20251 fi
20252 break 2
20253 fi
20254 done
20255 done
20256 ac_ext=cpp
20257 ac_cpp='$CXXCPP $CPPFLAGS'
20258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20261 ;;
20262 esac
20263 fi
20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
20265 printf "%s\n" "$boost_cv_inc_path" >&6; }
20266 case $boost_cv_inc_path in #(
20267 no)
20268 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
20269 as_fn_error $? "$boost_errmsg" "$LINENO" 5
20270
20271 ;;#(
20272 yes)
20273 BOOST_CPPFLAGS=
20274 ;;#(
20275 *)
20276 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
20277 ;;
20278 esac
20279 if test x"$boost_cv_inc_path" != xno; then
20280
20281 printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h
20282
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
20284 printf %s "checking for Boost's header version... " >&6; }
20285 if test ${boost_cv_lib_version+y}
20286 then :
20287 printf %s "(cached) " >&6
20288 else case e in #(
20289 e) ac_ext=cpp
20290 ac_cpp='$CXXCPP $CPPFLAGS'
20291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296 #include <boost/version.hpp>
20297 boost-lib-version = BOOST_LIB_VERSION
20298 _ACEOF
20299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20300 grep -v '#' |
20301 grep -v '^[[:space:]]*$' |
20302 tr -d '\r' |
20303 tr -s '\n' ' ' |
20304 $SED -n -e "/^.*boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1
20305 then :
20306 boost_cv_lib_version=`cat conftest.i`
20307 fi
20308 rm -rf conftest*
20309 ac_ext=cpp
20310 ac_cpp='$CXXCPP $CPPFLAGS'
20311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20314 ;;
20315 esac
20316 fi
20317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
20318 printf "%s\n" "$boost_cv_lib_version" >&6; }
20319 # e.g. "134" for 1_34_1 or "135" for 1_35
20320 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
20321 case $boost_major_version in #(
20322 '' | *[!0-9]*)
20323 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
20324 ;;
20325 esac
20326 fi
20327 CPPFLAGS=$boost_save_CPPFLAGS
20328
20329
20330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
20331 printf %s "checking for the toolset name used by Boost for $CXX... " >&6; }
20332 if test ${boost_cv_lib_tag+y}
20333 then :
20334 printf %s "(cached) " >&6
20335 else case e in #(
20336 e) boost_cv_lib_tag=unknown
20337 if test x$boost_cv_inc_path != xno; then
20338 ac_ext=cpp
20339 ac_cpp='$CXXCPP $CPPFLAGS'
20340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20343 # The following tests are mostly inspired by boost/config/auto_link.hpp
20344 # The list is sorted to most recent/common to oldest compiler (in order
20345 # to increase the likelihood of finding the right compiler with the
20346 # least number of compilation attempt).
20347 # Beware that some tests are sensible to the order (for instance, we must
20348 # look for MinGW before looking for GCC3).
20349 # I used one compilation test per compiler with a #error to recognize
20350 # each compiler so that it works even when cross-compiling (let me know
20351 # if you know a better approach).
20352 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
20353 # como, edg, kcc, bck, mp, sw, tru, xlc
20354 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
20355 # the same defines as GCC's).
20356 for i in \
20357 "defined __clang__ && __clang_major__ == 18 && __clang_minor__ == 1 @ clang181" \
20358 "defined __clang__ && __clang_major__ == 17 && __clang_minor__ == 0 @ clang170" \
20359 "defined __clang__ && __clang_major__ == 16 && __clang_minor__ == 0 @ clang160" \
20360 "defined __clang__ && __clang_major__ == 15 && __clang_minor__ == 0 @ clang150" \
20361 "defined __clang__ && __clang_major__ == 14 && __clang_minor__ == 0 @ clang140" \
20362 "defined __clang__ && __clang_major__ == 13 && __clang_minor__ == 0 @ clang130" \
20363 "defined __clang__ && __clang_major__ == 12 && __clang_minor__ == 0 @ clang120" \
20364 "defined __clang__ && __clang_major__ == 11 && __clang_minor__ == 1 @ clang111" \
20365 "defined __clang__ && __clang_major__ == 11 && __clang_minor__ == 0 @ clang110" \
20366 "defined __clang__ && __clang_major__ == 10 && __clang_minor__ == 0 @ clang100" \
20367 "defined __clang__ && __clang_major__ == 9 && __clang_minor__ == 0 @ clang90" \
20368 "defined __clang__ && __clang_major__ == 8 && __clang_minor__ == 0 @ clang80" \
20369 "defined __clang__ && __clang_major__ == 7 && __clang_minor__ == 0 @ clang70" \
20370 "defined __clang__ && __clang_major__ == 6 && __clang_minor__ == 0 @ clang60" \
20371 "defined __clang__ && __clang_major__ == 5 && __clang_minor__ == 0 @ clang50" \
20372 "defined __clang__ && __clang_major__ == 4 && __clang_minor__ == 0 @ clang40" \
20373 "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 9 @ clang39" \
20374 "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 8 @ clang38" \
20375 "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 7 @ clang37" \
20376 "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20377 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20378 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw132" \
20379 "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc132" \
20380 "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20381 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20382 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw131" \
20383 "defined __GNUC__ && __GNUC__ == 13 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc131" \
20384 "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20385 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20386 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw123" \
20387 "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc123" \
20388 "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20389 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20390 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw122" \
20391 "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc122" \
20392 "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20393 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20394 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw121" \
20395 "defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc121" \
20396 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20397 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20398 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw114" \
20399 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc114" \
20400 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20401 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20402 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw113" \
20403 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc113" \
20404 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20405 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20406 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw112" \
20407 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc112" \
20408 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20409 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20410 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw111" \
20411 "defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc111" \
20412 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 5 && !defined __ICC && \
20413 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20414 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw105" \
20415 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc105" \
20416 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20417 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20418 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw104" \
20419 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc104" \
20420 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20421 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20422 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw103" \
20423 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc103" \
20424 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20425 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20426 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw102" \
20427 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc102" \
20428 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20429 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20430 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw101" \
20431 "defined __GNUC__ && __GNUC__ == 10 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc101" \
20432 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 5 && !defined __ICC && \
20433 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20434 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw95" \
20435 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc95" \
20436 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20437 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20438 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw94" \
20439 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc94" \
20440 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20441 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20442 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw93" \
20443 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc93" \
20444 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20445 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20446 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw92" \
20447 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc92" \
20448 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20449 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20450 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw91" \
20451 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc91" \
20452 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 0 && !defined __ICC && \
20453 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20454 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw90" \
20455 "defined __GNUC__ && __GNUC__ == 9 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc90" \
20456 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 5 && !defined __ICC && \
20457 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20458 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw85" \
20459 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc85" \
20460 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20461 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20462 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw84" \
20463 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc84" \
20464 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20465 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20466 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw83" \
20467 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc83" \
20468 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20469 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20470 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw82" \
20471 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc82" \
20472 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20473 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20474 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw81" \
20475 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc81" \
20476 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 0 && !defined __ICC && \
20477 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20478 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw80" \
20479 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc80" \
20480 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20481 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20482 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw74" \
20483 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc74" \
20484 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20485 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20486 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw73" \
20487 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc73" \
20488 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20489 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20490 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw72" \
20491 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc72" \
20492 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20493 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20494 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw71" \
20495 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc71" \
20496 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 0 && !defined __ICC && \
20497 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20498 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw70" \
20499 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc70" \
20500 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 5 && !defined __ICC && \
20501 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20502 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw65" \
20503 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc65" \
20504 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20505 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20506 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw64" \
20507 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc64" \
20508 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20509 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20510 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw63" \
20511 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc63" \
20512 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20513 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20514 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw62" \
20515 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc62" \
20516 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20517 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20518 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw61" \
20519 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc61" \
20520 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC && \
20521 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20522 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw60" \
20523 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc60" \
20524 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 5 && !defined __ICC && \
20525 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20526 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw55" \
20527 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc55" \
20528 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20529 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20530 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw54" \
20531 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc54" \
20532 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20533 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20534 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
20535 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
20536 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20537 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20538 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
20539 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
20540 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20541 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20542 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
20543 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
20544 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
20545 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20546 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
20547 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
20548 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
20549 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20550 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
20551 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
20552 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
20553 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20554 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
20555 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
20556 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
20557 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20558 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
20559 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
20560 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
20561 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20562 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
20563 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
20564 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
20565 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20566 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
20567 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
20568 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
20569 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20570 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
20571 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
20572 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
20573 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20574 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
20575 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
20576 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
20577 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20578 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
20579 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
20580 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
20581 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20582 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
20583 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
20584 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
20585 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20586 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
20587 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
20588 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
20589 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20590 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
20591 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
20592 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
20593 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
20594 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
20595 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
20596 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
20597 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
20598 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
20599 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
20600 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
20601 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
20602 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
20603 "defined __BORLANDC__ @ bcb" \
20604 "defined __ICC && (defined __unix || defined ) @ il" \
20605 "defined __ICL @ iw" \
20606 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
20607 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
20608 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
20609 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
20610 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
20611 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
20612 do
20613 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
20614 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20617
20618 #if $boost_tag_test
20619 /* OK */
20620 #else
20621 # error $boost_tag_test
20622 #endif
20623
20624 int
20625 main (void)
20626 {
20627
20628 ;
20629 return 0;
20630 }
20631 _ACEOF
20632 if ac_fn_cxx_try_compile "$LINENO"
20633 then :
20634 boost_cv_lib_tag=$boost_tag; break
20635 fi
20636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20637 done
20638 ac_ext=cpp
20639 ac_cpp='$CXXCPP $CPPFLAGS'
20640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20643 case $boost_cv_lib_tag in #(
20644 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
20645 # to "gcc41" for instance.
20646 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
20647 gcc*)
20648 boost_tag_x=
20649 case $host_os in #(
20650 darwin*)
20651 if test $boost_major_version -ge 136; then
20652 # The `x' added in r46793 of Boost.
20653 boost_tag_x=x
20654 fi;;
20655 esac
20656 # We can specify multiple tags in this variable because it's used by
20657 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
20658 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
20659 ;; #(
20660 unknown)
20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
20662 printf "%s\n" "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
20663 boost_cv_lib_tag=
20664 ;;
20665 esac
20666 fi ;;
20667 esac
20668 fi
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
20670 printf "%s\n" "$boost_cv_lib_tag" >&6; }
20671 # Check whether --enable-static-boost was given.
20672 if test ${enable_static_boost+y}
20673 then :
20674 enableval=$enable_static_boost; enable_static_boost=yes
20675 else case e in #(
20676 e) enable_static_boost=no ;;
20677 esac
20678 fi
20679
20680 # Check whether we do better use `mt' even though we weren't ask to.
20681 ac_ext=cpp
20682 ac_cpp='$CXXCPP $CPPFLAGS'
20683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20687 /* end confdefs.h. */
20688
20689 #if defined _REENTRANT || defined _MT || defined __MT__
20690 /* use -mt */
20691 #else
20692 # error MT not needed
20693 #endif
20694
20695 int
20696 main (void)
20697 {
20698
20699 ;
20700 return 0;
20701 }
20702 _ACEOF
20703 if ac_fn_cxx_try_compile "$LINENO"
20704 then :
20705 boost_guess_use_mt=:
20706 else case e in #(
20707 e) boost_guess_use_mt=false ;;
20708 esac
20709 fi
20710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20711 ac_ext=cpp
20712 ac_cpp='$CXXCPP $CPPFLAGS'
20713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20716
20717
20718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable unit test building" >&5
20719 printf %s "checking whether to enable unit test building... " >&6; }
20720 # Check whether --enable-unit-tests was given.
20721 if test ${enable_unit_tests+y}
20722 then :
20723 enableval=$enable_unit_tests; enable_unit_tests=$enableval
20724 else case e in #(
20725 e) enable_unit_tests=no
20726 ;;
20727 esac
20728 fi
20729
20730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
20731 printf "%s\n" "$enable_unit_tests" >&6; }
20732 if test "x$enable_unit_tests" != "xno"; then
20733 UNIT_TESTS_TRUE=
20734 UNIT_TESTS_FALSE='#'
20735 else
20736 UNIT_TESTS_TRUE='#'
20737 UNIT_TESTS_FALSE=
20738 fi
20739
20740
20741 if test "x$enable_unit_tests" != "xno"
20742 then :
20743
20744 if test x"$boost_cv_inc_path" = xno; then
20745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost unit_test_framework library" >&5
20746 printf "%s\n" "$as_me: Boost not available, not searching for the Boost unit_test_framework library" >&6;}
20747 else
20748 ac_ext=cpp
20749 ac_cpp='$CXXCPP $CPPFLAGS'
20750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20753 if test x"" = "xno"
20754 then :
20755 not_found_header='true'
20756 fi
20757 if test x"$boost_cv_inc_path" = xno; then
20758 $not_found_header
20759 else
20760 ac_ext=cpp
20761 ac_cpp='$CXXCPP $CPPFLAGS'
20762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20765 boost_save_CPPFLAGS=$CPPFLAGS
20766 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20767 ac_fn_cxx_check_header_compile "$LINENO" "boost/test/unit_test.hpp" "ac_cv_header_boost_test_unit_test_hpp" "$ac_includes_default"
20768 if test "x$ac_cv_header_boost_test_unit_test_hpp" = xyes
20769 then :
20770
20771 printf "%s\n" "#define HAVE_BOOST_TEST_UNIT_TEST_HPP 1" >>confdefs.h
20772
20773 else case e in #(
20774 e) $not_found_header ;;
20775 esac
20776 fi
20777
20778 CPPFLAGS=$boost_save_CPPFLAGS
20779 ac_ext=cpp
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20784 fi
20785
20786 boost_save_CPPFLAGS=$CPPFLAGS
20787 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost unit_test_framework library" >&5
20789 printf %s "checking for the Boost unit_test_framework library... " >&6; }
20790 if test ${boost_cv_lib_unit_test_framework+y}
20791 then :
20792 printf %s "(cached) " >&6
20793 else case e in #(
20794 e) boost_cv_lib_unit_test_framework=no
20795 case "mt" in #(
20796 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
20797 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
20798 (*) boost_mt=; boost_rtopt=mt;;
20799 esac
20800 if test $enable_static_boost = yes; then
20801 boost_rtopt="s$boost_rtopt"
20802 fi
20803 # Find the proper debug variant depending on what we've been asked to find.
20804 case $boost_rtopt in #(
20805 (*d*) boost_rt_d=$boost_rtopt;; #(
20806 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
20807 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
20808 (*) boost_rt_d='-d';;
20809 esac
20810 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
20811 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
20812 $boost_guess_use_mt && boost_mt=-mt
20813 # Look for the abs path the static archive.
20814 # $libext is computed by Libtool but let's make sure it's non empty.
20815 test -z "$libext" &&
20816 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
20817 boost_save_ac_objext=$ac_objext
20818 # Generate the test file.
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20821
20822 #include <boost/test/unit_test.hpp>
20823 using boost::unit_test::test_suite;
20824 test_suite* init_unit_test_suite(int argc, char ** argv)
20825 { return NULL; }
20826 int
20827 main (void)
20828 {
20829 BOOST_CHECK(2 == 2);
20830 ;
20831 return 0;
20832 }
20833 _ACEOF
20834 if ac_fn_cxx_try_compile "$LINENO"
20835 then :
20836 ac_objext=do_not_rm_me_plz
20837 else case e in #(
20838 e) if test x"" != x"no"
20839 then :
20840
20841 as_fn_error $? "cannot compile a test that uses Boost unit_test_framework" "$LINENO" 5
20842
20843 fi
20844 ;;
20845 esac
20846 fi
20847 rm -f core conftest.err conftest.$ac_objext conftest.beam
20848 ac_objext=$boost_save_ac_objext
20849 boost_failed_libs=
20850 # Don't bother to ident the following nested for loops, only the 2
20851 # innermost ones matter.
20852 for boost_lib_ in unit_test_framework; do
20853 for boost_tag_ in -$boost_cv_lib_tag ''; do
20854 for boost_ver_ in -$boost_cv_lib_version ''; do
20855 for boost_mt_ in $boost_mt -mt ''; do
20856 for boost_rtopt_ in $boost_rtopt '' -d; do
20857 for boost_full_suffix in \
20858 $boost_last_suffix \
20859 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
20860 x$boost_tag_$boost_rtopt_$boost_ver_ \
20861 x$boost_tag_$boost_mt_$boost_ver_ \
20862 x$boost_tag_$boost_ver_
20863 do
20864 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'`
20865 boost_lib="boost_$boost_lib_$boost_real_suffix"
20866 # Avoid testing twice the same lib
20867 case $boost_failed_libs in #(
20868 (*@$boost_lib@*) continue;;
20869 esac
20870 # If with_boost is empty, we'll search in /lib first, which is not quite
20871 # right so instead we'll try to a location based on where the headers are.
20872 boost_tmp_lib=$with_boost
20873 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
20874 for boost_ldpath in "$boost_tmp_lib/lib" '' \
20875 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
20876 "$with_boost" C:/Boost/lib /lib*
20877 do
20878 # Don't waste time with directories that don't exist.
20879 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
20880 continue
20881 fi
20882 boost_save_LDFLAGS=$LDFLAGS
20883 # Are we looking for a static library?
20884 case $boost_ldpath:$boost_rtopt_ in #(
20885 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
20886 boost_cv_lib_unit_test_framework_LIBS="$boost_ldpath/lib$boost_lib.$libext"
20887 test -e "$boost_cv_lib_unit_test_framework_LIBS" || continue;; #(
20888 (*) # No: use -lboost_foo to find the shared library.
20889 boost_cv_lib_unit_test_framework_LIBS="-l$boost_lib";;
20890 esac
20891 boost_save_LIBS=$LIBS
20892 LIBS="$boost_cv_lib_unit_test_framework_LIBS $LIBS"
20893 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
20894 rm -f conftest$ac_exeext
20895 boost_save_ac_ext=$ac_ext
20896 boost_use_source=:
20897 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
20898 # tries to link the existing object file instead of compiling from source.
20899 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20901 if { { ac_try="$ac_link"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905 esac
20906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20907 printf "%s\n" "$ac_try_echo"; } >&5
20908 (eval "$ac_link") 2>conftest.err
20909 ac_status=$?
20910 if test -s conftest.err; then
20911 grep -v '^ *+' conftest.err >conftest.er1
20912 cat conftest.er1 >&5
20913 mv -f conftest.er1 conftest.err
20914 fi
20915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20916 test $ac_status = 0; } && {
20917 test -z "$ac_cxx_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest$ac_exeext && {
20920 test "$cross_compiling" = yes ||
20921 $as_executable_p conftest$ac_exeext
20922 }
20923 then :
20924 boost_cv_lib_unit_test_framework=yes
20925 else case e in #(
20926 e) if $boost_use_source; then
20927 printf "%s\n" "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 fi
20931 boost_cv_lib_unit_test_framework=no ;;
20932 esac
20933 fi
20934 ac_objext=$boost_save_ac_objext
20935 ac_ext=$boost_save_ac_ext
20936 rm -f core conftest.err conftest_ipa8_conftest.oo \
20937 conftest$ac_exeext
20938 ac_objext=$boost_save_ac_objext
20939 LDFLAGS=$boost_save_LDFLAGS
20940 LIBS=$boost_save_LIBS
20941 if test x"$boost_cv_lib_unit_test_framework" = xyes; then
20942 # Check or used cached result of whether or not using -R or
20943 # -rpath makes sense. Some implementations of ld, such as for
20944 # Mac OSX, require -rpath but -R is the flag known to work on
20945 # other systems. https://github.com/tsuna/boost.m4/issues/19
20946 if test ${boost_cv_rpath_link_ldflag+y}
20947 then :
20948 printf %s "(cached) " >&6
20949 else case e in #(
20950 e) case $boost_ldpath in
20951 '') # Nothing to do.
20952 boost_cv_rpath_link_ldflag=
20953 boost_rpath_link_ldflag_found=yes;;
20954 *)
20955 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
20956 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20957 LIBS="$boost_cv_lib_unit_test_framework_LIBS $boost_save_LIBS"
20958 rm -f conftest$ac_exeext
20959 boost_save_ac_ext=$ac_ext
20960 boost_use_source=:
20961 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
20962 # tries to link the existing object file instead of compiling from source.
20963 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20965 if { { ac_try="$ac_link"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20971 printf "%s\n" "$ac_try_echo"; } >&5
20972 (eval "$ac_link") 2>conftest.err
20973 ac_status=$?
20974 if test -s conftest.err; then
20975 grep -v '^ *+' conftest.err >conftest.er1
20976 cat conftest.er1 >&5
20977 mv -f conftest.er1 conftest.err
20978 fi
20979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; } && {
20981 test -z "$ac_cxx_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest$ac_exeext && {
20984 test "$cross_compiling" = yes ||
20985 $as_executable_p conftest$ac_exeext
20986 }
20987 then :
20988 boost_rpath_link_ldflag_found=yes
20989 break
20990 else case e in #(
20991 e) if $boost_use_source; then
20992 printf "%s\n" "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 fi
20996 boost_rpath_link_ldflag_found=no ;;
20997 esac
20998 fi
20999 ac_objext=$boost_save_ac_objext
21000 ac_ext=$boost_save_ac_ext
21001 rm -f core conftest.err conftest_ipa8_conftest.oo \
21002 conftest$ac_exeext
21003 done
21004 ;;
21005 esac
21006 if test "x$boost_rpath_link_ldflag_found" != "xyes"
21007 then :
21008 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
21009 fi
21010 LDFLAGS=$boost_save_LDFLAGS
21011 LIBS=$boost_save_LIBS
21012 ;;
21013 esac
21014 fi
21015
21016 test x"$boost_ldpath" != x &&
21017 boost_cv_lib_unit_test_framework_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
21018 boost_cv_lib_unit_test_framework_LDPATH="$boost_ldpath"
21019 boost_last_suffix="$boost_full_suffix"
21020 break 7
21021 else
21022 boost_failed_libs="$boost_failed_libs@$boost_lib@"
21023 fi
21024 done
21025 done
21026 done
21027 done
21028 done
21029 done
21030 done # boost_lib_
21031 rm -f conftest.$ac_objext
21032 ;;
21033 esac
21034 fi
21035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_unit_test_framework" >&5
21036 printf "%s\n" "$boost_cv_lib_unit_test_framework" >&6; }
21037 case $boost_cv_lib_unit_test_framework in #(
21038 (yes) printf "%s\n" "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041
21042 printf "%s\n" "#define HAVE_BOOST_UNIT_TEST_FRAMEWORK 1" >>confdefs.h
21043 BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS=$boost_cv_lib_unit_test_framework_LDFLAGS
21044 BOOST_UNIT_TEST_FRAMEWORK_LDPATH=$boost_cv_lib_unit_test_framework_LDPATH
21045 BOOST_LDPATH=$boost_cv_lib_unit_test_framework_LDPATH
21046 BOOST_UNIT_TEST_FRAMEWORK_LIBS=$boost_cv_lib_unit_test_framework_LIBS
21047 ;;
21048 (no) printf "%s\n" "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051 if test x"" != "xno"
21052 then :
21053
21054 as_fn_error $? "cannot find flags to link with the Boost unit_test_framework library (libboost-unit_test_framework)" "$LINENO" 5
21055
21056 fi
21057 ;;
21058 esac
21059 CPPFLAGS=$boost_save_CPPFLAGS
21060 ac_ext=cpp
21061 ac_cpp='$CXXCPP $CPPFLAGS'
21062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21065 fi
21066
21067
21068
21069 if test "$boost_cv_lib_unit_test_framework" = "no"
21070 then :
21071
21072 as_fn_error $? "Boost Unit Test library not found" "$LINENO" 5
21073
21074 fi
21075
21076 fi
21077
21078
21079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing targets" >&5
21080 printf %s "checking whether to enable fuzzing targets... " >&6; }
21081 # Check whether --enable-fuzz_targets was given.
21082 if test ${enable_fuzz_targets+y}
21083 then :
21084 enableval=$enable_fuzz_targets; enable_fuzz_targets=$enableval
21085 else case e in #(
21086 e) enable_fuzz_targets=no
21087 ;;
21088 esac
21089 fi
21090
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fuzz_targets" >&5
21092 printf "%s\n" "$enable_fuzz_targets" >&6; }
21093 if test "x$enable_fuzz_targets" != "xno"; then
21094 FUZZ_TARGETS_TRUE=
21095 FUZZ_TARGETS_FALSE='#'
21096 else
21097 FUZZ_TARGETS_TRUE='#'
21098 FUZZ_TARGETS_FALSE=
21099 fi
21100
21101
21102
21103 HAVE_RE2=0
21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should compile in libre2 for dnsdist" >&5
21105 printf %s "checking if we should compile in libre2 for dnsdist... " >&6; }
21106
21107 # Check whether --with-re2 was given.
21108 if test ${with_re2+y}
21109 then :
21110 withval=$with_re2; with_re2=$withval
21111 else case e in #(
21112 e) with_re2=no
21113 ;;
21114 esac
21115 fi
21116
21117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_re2" >&5
21118 printf "%s\n" "$with_re2" >&6; }
21119 if test "x$with_re2" = "xyes"
21120 then :
21121
21122
21123 pkg_failed=no
21124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for re2" >&5
21125 printf %s "checking for re2... " >&6; }
21126
21127 if test -n "$RE2_CFLAGS"; then
21128 pkg_cv_RE2_CFLAGS="$RE2_CFLAGS"
21129 elif test -n "$PKG_CONFIG"; then
21130 if test -n "$PKG_CONFIG" && \
21131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"re2\""; } >&5
21132 ($PKG_CONFIG --exists --print-errors "re2") 2>&5
21133 ac_status=$?
21134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21135 test $ac_status = 0; }; then
21136 pkg_cv_RE2_CFLAGS=`$PKG_CONFIG --cflags "re2" 2>/dev/null`
21137 test "x$?" != "x0" && pkg_failed=yes
21138 else
21139 pkg_failed=yes
21140 fi
21141 else
21142 pkg_failed=untried
21143 fi
21144 if test -n "$RE2_LIBS"; then
21145 pkg_cv_RE2_LIBS="$RE2_LIBS"
21146 elif test -n "$PKG_CONFIG"; then
21147 if test -n "$PKG_CONFIG" && \
21148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"re2\""; } >&5
21149 ($PKG_CONFIG --exists --print-errors "re2") 2>&5
21150 ac_status=$?
21151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21152 test $ac_status = 0; }; then
21153 pkg_cv_RE2_LIBS=`$PKG_CONFIG --libs "re2" 2>/dev/null`
21154 test "x$?" != "x0" && pkg_failed=yes
21155 else
21156 pkg_failed=yes
21157 fi
21158 else
21159 pkg_failed=untried
21160 fi
21161
21162
21163
21164 if test $pkg_failed = yes; then
21165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21166 printf "%s\n" "no" >&6; }
21167
21168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21169 _pkg_short_errors_supported=yes
21170 else
21171 _pkg_short_errors_supported=no
21172 fi
21173 if test $_pkg_short_errors_supported = yes; then
21174 RE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "re2" 2>&1`
21175 else
21176 RE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "re2" 2>&1`
21177 fi
21178 # Put the nasty error message in config.log where it belongs
21179 echo "$RE2_PKG_ERRORS" >&5
21180
21181
21182 ac_fn_cxx_check_header_compile "$LINENO" "re2/re2.h" "ac_cv_header_re2_re2_h" "$ac_includes_default"
21183 if test "x$ac_cv_header_re2_re2_h" = xyes
21184 then :
21185
21186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lre2" >&5
21187 printf %s "checking for main in -lre2... " >&6; }
21188 if test ${ac_cv_lib_re2_main+y}
21189 then :
21190 printf %s "(cached) " >&6
21191 else case e in #(
21192 e) ac_check_lib_save_LIBS=$LIBS
21193 LIBS="-lre2 $LIBS"
21194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195 /* end confdefs.h. */
21196
21197 namespace conftest {
21198 extern "C" int main ();
21199 }
21200 int
21201 main (void)
21202 {
21203 return conftest::main ();
21204 ;
21205 return 0;
21206 }
21207 _ACEOF
21208 if ac_fn_cxx_try_link "$LINENO"
21209 then :
21210 ac_cv_lib_re2_main=yes
21211 else case e in #(
21212 e) ac_cv_lib_re2_main=no ;;
21213 esac
21214 fi
21215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21216 conftest$ac_exeext conftest.$ac_ext
21217 LIBS=$ac_check_lib_save_LIBS ;;
21218 esac
21219 fi
21220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_re2_main" >&5
21221 printf "%s\n" "$ac_cv_lib_re2_main" >&6; }
21222 if test "x$ac_cv_lib_re2_main" = xyes
21223 then :
21224
21225 HAVE_RE2=1
21226 RE2_LIBS="-lre2"
21227 else case e in #(
21228 e) : ;;
21229 esac
21230 fi
21231
21232
21233 fi
21234
21235
21236 elif test $pkg_failed = untried; then
21237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21238 printf "%s\n" "no" >&6; }
21239
21240 ac_fn_cxx_check_header_compile "$LINENO" "re2/re2.h" "ac_cv_header_re2_re2_h" "$ac_includes_default"
21241 if test "x$ac_cv_header_re2_re2_h" = xyes
21242 then :
21243
21244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lre2" >&5
21245 printf %s "checking for main in -lre2... " >&6; }
21246 if test ${ac_cv_lib_re2_main+y}
21247 then :
21248 printf %s "(cached) " >&6
21249 else case e in #(
21250 e) ac_check_lib_save_LIBS=$LIBS
21251 LIBS="-lre2 $LIBS"
21252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21254
21255 namespace conftest {
21256 extern "C" int main ();
21257 }
21258 int
21259 main (void)
21260 {
21261 return conftest::main ();
21262 ;
21263 return 0;
21264 }
21265 _ACEOF
21266 if ac_fn_cxx_try_link "$LINENO"
21267 then :
21268 ac_cv_lib_re2_main=yes
21269 else case e in #(
21270 e) ac_cv_lib_re2_main=no ;;
21271 esac
21272 fi
21273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21274 conftest$ac_exeext conftest.$ac_ext
21275 LIBS=$ac_check_lib_save_LIBS ;;
21276 esac
21277 fi
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_re2_main" >&5
21279 printf "%s\n" "$ac_cv_lib_re2_main" >&6; }
21280 if test "x$ac_cv_lib_re2_main" = xyes
21281 then :
21282
21283 HAVE_RE2=1
21284 RE2_LIBS="-lre2"
21285 else case e in #(
21286 e) : ;;
21287 esac
21288 fi
21289
21290
21291 fi
21292
21293
21294 else
21295 RE2_CFLAGS=$pkg_cv_RE2_CFLAGS
21296 RE2_LIBS=$pkg_cv_RE2_LIBS
21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21298 printf "%s\n" "yes" >&6; }
21299
21300 HAVE_RE2=1
21301 fi
21302 if test "$HAVE_RE2" -ne 1
21303 then :
21304 as_fn_error $? "Could not find libre2" "$LINENO" 5
21305 fi
21306
21307 fi
21308 if test "$HAVE_RE2" -eq 1; then
21309 HAVE_RE2_TRUE=
21310 HAVE_RE2_FALSE='#'
21311 else
21312 HAVE_RE2_TRUE='#'
21313 HAVE_RE2_FALSE=
21314 fi
21315
21316 if test "$HAVE_RE2" -eq 1
21317 then :
21318
21319 printf "%s\n" "#define HAVE_RE2 1" >>confdefs.h
21320
21321 fi
21322
21323
21324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable DNSCrypt support" >&5
21325 printf %s "checking whether to enable DNSCrypt support... " >&6; }
21326 # Check whether --enable-dnscrypt was given.
21327 if test ${enable_dnscrypt+y}
21328 then :
21329 enableval=$enable_dnscrypt; enable_dnscrypt=$enableval
21330 else case e in #(
21331 e) enable_dnscrypt=no
21332 ;;
21333 esac
21334 fi
21335
21336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dnscrypt" >&5
21337 printf "%s\n" "$enable_dnscrypt" >&6; }
21338 if test "x$enable_dnscrypt" != "xno"; then
21339 DNSCRYPT_TRUE=
21340 DNSCRYPT_FALSE='#'
21341 else
21342 DNSCRYPT_TRUE='#'
21343 DNSCRYPT_FALSE=
21344 fi
21345
21346
21347 if test -z "$DNSCRYPT_TRUE"; then :
21348
21349 if test -z "$LIBSODIUM_TRUE"; then :
21350
21351
21352 printf "%s\n" "#define HAVE_DNSCRYPT 1" >>confdefs.h
21353
21354
21355 else
21356
21357 as_fn_error $? "dnscrypt support requested but libsodium is not available" "$LINENO" 5
21358
21359 fi
21360
21361 fi
21362
21363
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have eBPF support" >&5
21365 printf %s "checking if we have eBPF support... " >&6; }
21366
21367 # Check whether --with-ebpf was given.
21368 if test ${with_ebpf+y}
21369 then :
21370 withval=$with_ebpf; with_ebpf=$withval
21371 else case e in #(
21372 e) with_ebpf=auto ;;
21373 esac
21374 fi
21375
21376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ebpf" >&5
21377 printf "%s\n" "$with_ebpf" >&6; }
21378
21379 if test "x$with_ebpf" != "xno"
21380 then :
21381
21382 if test "x$with_ebpf" = "xyes" -o "x$with_ebpf" = "xauto"
21383 then :
21384
21385 for ac_header in linux/bpf.h
21386 do :
21387 ac_fn_cxx_check_header_compile "$LINENO" "linux/bpf.h" "ac_cv_header_linux_bpf_h" "$ac_includes_default"
21388 if test "x$ac_cv_header_linux_bpf_h" = xyes
21389 then :
21390 printf "%s\n" "#define HAVE_LINUX_BPF_H 1" >>confdefs.h
21391 bpf_headers=yes
21392 else case e in #(
21393 e) bpf_headers=no ;;
21394 esac
21395 fi
21396
21397 done
21398
21399 fi
21400
21401 fi
21402 if test "x$with_ebpf" = "xyes"
21403 then :
21404
21405 if test x"$bpf_headers" = "no"
21406 then :
21407
21408 as_fn_error $? "EBPF support requested but required eBPF headers were not found" "$LINENO" 5
21409
21410 fi
21411
21412 fi
21413 if test x"$bpf_headers" = "xyes" ; then
21414 HAVE_EBPF_TRUE=
21415 HAVE_EBPF_FALSE='#'
21416 else
21417 HAVE_EBPF_TRUE='#'
21418 HAVE_EBPF_FALSE=
21419 fi
21420
21421 if test x"$bpf_headers" = "xyes"
21422 then :
21423 ac_fn_check_decl "$LINENO" "BPF_FUNC_tail_call" "ac_cv_have_decl_BPF_FUNC_tail_call" "#include <linux/bpf.h>
21424
21425
21426 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
21427 if test "x$ac_cv_have_decl_BPF_FUNC_tail_call" = xyes
21428 then :
21429 ac_fn_check_decl "$LINENO" "SO_ATTACH_BPF" "ac_cv_have_decl_SO_ATTACH_BPF" "#include <sys/socket.h>
21430
21431
21432 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
21433 if test "x$ac_cv_have_decl_SO_ATTACH_BPF" = xyes
21434 then :
21435
21436 printf "%s\n" "#define HAVE_EBPF 1" >>confdefs.h
21437
21438 else case e in #(
21439 e) if test "x$with_ebpf" = "xyes"
21440 then :
21441
21442 as_fn_error $? "EBPF support requested but SO_ATTACH_BPF not found" "$LINENO" 5
21443
21444 fi ;;
21445 esac
21446 fi
21447 else case e in #(
21448 e) if test "x$with_ebpf" = "xyes"
21449 then :
21450
21451 as_fn_error $? "EBPF support requested but BPF_FUNC_tail_call not found in the eBPF headers" "$LINENO" 5
21452
21453 fi ;;
21454 esac
21455 fi
21456
21457 fi
21458
21459
21460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have AF_XDP (XSK) support" >&5
21461 printf %s "checking if we have AF_XDP (XSK) support... " >&6; }
21462
21463 # Check whether --with-xsk was given.
21464 if test ${with_xsk+y}
21465 then :
21466 withval=$with_xsk; with_xsk=$withval
21467 else case e in #(
21468 e) with_xsk=auto ;;
21469 esac
21470 fi
21471
21472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_xsk" >&5
21473 printf "%s\n" "$with_xsk" >&6; }
21474
21475 if test "x$with_xsk" != "xno"
21476 then :
21477
21478 if test "x$with_xsk" = "xyes" -o "x$with_xsk" = "xauto"
21479 then :
21480
21481
21482 pkg_failed=no
21483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxdp" >&5
21484 printf %s "checking for libxdp... " >&6; }
21485
21486 if test -n "$XDP_CFLAGS"; then
21487 pkg_cv_XDP_CFLAGS="$XDP_CFLAGS"
21488 elif test -n "$PKG_CONFIG"; then
21489 if test -n "$PKG_CONFIG" && \
21490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxdp\""; } >&5
21491 ($PKG_CONFIG --exists --print-errors "libxdp") 2>&5
21492 ac_status=$?
21493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21494 test $ac_status = 0; }; then
21495 pkg_cv_XDP_CFLAGS=`$PKG_CONFIG --cflags "libxdp" 2>/dev/null`
21496 test "x$?" != "x0" && pkg_failed=yes
21497 else
21498 pkg_failed=yes
21499 fi
21500 else
21501 pkg_failed=untried
21502 fi
21503 if test -n "$XDP_LIBS"; then
21504 pkg_cv_XDP_LIBS="$XDP_LIBS"
21505 elif test -n "$PKG_CONFIG"; then
21506 if test -n "$PKG_CONFIG" && \
21507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxdp\""; } >&5
21508 ($PKG_CONFIG --exists --print-errors "libxdp") 2>&5
21509 ac_status=$?
21510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21511 test $ac_status = 0; }; then
21512 pkg_cv_XDP_LIBS=`$PKG_CONFIG --libs "libxdp" 2>/dev/null`
21513 test "x$?" != "x0" && pkg_failed=yes
21514 else
21515 pkg_failed=yes
21516 fi
21517 else
21518 pkg_failed=untried
21519 fi
21520
21521
21522
21523 if test $pkg_failed = yes; then
21524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21525 printf "%s\n" "no" >&6; }
21526
21527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21528 _pkg_short_errors_supported=yes
21529 else
21530 _pkg_short_errors_supported=no
21531 fi
21532 if test $_pkg_short_errors_supported = yes; then
21533 XDP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxdp" 2>&1`
21534 else
21535 XDP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxdp" 2>&1`
21536 fi
21537 # Put the nasty error message in config.log where it belongs
21538 echo "$XDP_PKG_ERRORS" >&5
21539
21540 :
21541 elif test $pkg_failed = untried; then
21542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543 printf "%s\n" "no" >&6; }
21544 :
21545 else
21546 XDP_CFLAGS=$pkg_cv_XDP_CFLAGS
21547 XDP_LIBS=$pkg_cv_XDP_LIBS
21548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21549 printf "%s\n" "yes" >&6; }
21550
21551
21552 printf "%s\n" "#define HAVE_XDP 1" >>confdefs.h
21553
21554
21555 fi
21556
21557 pkg_failed=no
21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbpf" >&5
21559 printf %s "checking for libbpf... " >&6; }
21560
21561 if test -n "$BPF_CFLAGS"; then
21562 pkg_cv_BPF_CFLAGS="$BPF_CFLAGS"
21563 elif test -n "$PKG_CONFIG"; then
21564 if test -n "$PKG_CONFIG" && \
21565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf\""; } >&5
21566 ($PKG_CONFIG --exists --print-errors "libbpf") 2>&5
21567 ac_status=$?
21568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21569 test $ac_status = 0; }; then
21570 pkg_cv_BPF_CFLAGS=`$PKG_CONFIG --cflags "libbpf" 2>/dev/null`
21571 test "x$?" != "x0" && pkg_failed=yes
21572 else
21573 pkg_failed=yes
21574 fi
21575 else
21576 pkg_failed=untried
21577 fi
21578 if test -n "$BPF_LIBS"; then
21579 pkg_cv_BPF_LIBS="$BPF_LIBS"
21580 elif test -n "$PKG_CONFIG"; then
21581 if test -n "$PKG_CONFIG" && \
21582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf\""; } >&5
21583 ($PKG_CONFIG --exists --print-errors "libbpf") 2>&5
21584 ac_status=$?
21585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586 test $ac_status = 0; }; then
21587 pkg_cv_BPF_LIBS=`$PKG_CONFIG --libs "libbpf" 2>/dev/null`
21588 test "x$?" != "x0" && pkg_failed=yes
21589 else
21590 pkg_failed=yes
21591 fi
21592 else
21593 pkg_failed=untried
21594 fi
21595
21596
21597
21598 if test $pkg_failed = yes; then
21599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21600 printf "%s\n" "no" >&6; }
21601
21602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21603 _pkg_short_errors_supported=yes
21604 else
21605 _pkg_short_errors_supported=no
21606 fi
21607 if test $_pkg_short_errors_supported = yes; then
21608 BPF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbpf" 2>&1`
21609 else
21610 BPF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbpf" 2>&1`
21611 fi
21612 # Put the nasty error message in config.log where it belongs
21613 echo "$BPF_PKG_ERRORS" >&5
21614
21615 :
21616 elif test $pkg_failed = untried; then
21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 printf "%s\n" "no" >&6; }
21619 :
21620 else
21621 BPF_CFLAGS=$pkg_cv_BPF_CFLAGS
21622 BPF_LIBS=$pkg_cv_BPF_LIBS
21623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21624 printf "%s\n" "yes" >&6; }
21625
21626
21627 printf "%s\n" "#define HAVE_BPF 1" >>confdefs.h
21628
21629 save_CFLAGS=$CFLAGS
21630 save_LIBS=$LIBS
21631 CFLAGS="$BPF_CFLAGS $CFLAGS"
21632 LIBS="$BPF_LIBS $LIBS"
21633 ac_fn_cxx_check_func "$LINENO" "bpf_xdp_query" "ac_cv_func_bpf_xdp_query"
21634 if test "x$ac_cv_func_bpf_xdp_query" = xyes
21635 then :
21636 printf "%s\n" "#define HAVE_BPF_XDP_QUERY 1" >>confdefs.h
21637
21638 fi
21639
21640 CFLAGS=$save_CFLAGS
21641 LIBS=$save_LIBS
21642
21643 fi
21644
21645 fi
21646
21647 fi
21648
21649 if test x"$BPF_LIBS" != "x" -a x"$XDP_LIBS" != "x"; then
21650 HAVE_XSK_TRUE=
21651 HAVE_XSK_FALSE='#'
21652 else
21653 HAVE_XSK_TRUE='#'
21654 HAVE_XSK_FALSE=
21655 fi
21656
21657 if test -z "$HAVE_XSK_TRUE"; then :
21658
21659
21660 printf "%s\n" "#define HAVE_XSK 1" >>confdefs.h
21661
21662
21663 fi
21664
21665 if test "x$with_xsk" = "xyes"
21666 then :
21667
21668 if test x"$BPF_LIBS" = "x" -o x"$XDP_LIBS" = "x"
21669 then :
21670
21671 as_fn_error $? "AF_XDP (XSK) support requested but required libbpf and/or libxdp were not found" "$LINENO" 5
21672
21673 fi
21674
21675 fi
21676
21677
21678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to link in Net SNMP" >&5
21679 printf %s "checking if we need to link in Net SNMP... " >&6; }
21680
21681 # Check whether --with-net-snmp was given.
21682 if test ${with_net_snmp+y}
21683 then :
21684 withval=$with_net_snmp; with_net_snmp=$withval
21685 else case e in #(
21686 e) with_net_snmp=no ;;
21687 esac
21688 fi
21689
21690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_net_snmp" >&5
21691 printf "%s\n" "$with_net_snmp" >&6; }
21692
21693 if test "x$with_net_snmp" != "xno"
21694 then :
21695
21696 if test "x$with_net_snmp" = "xyes" -o "x$with_net_snmp" = "xauto"
21697 then :
21698
21699 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21700 set dummy net-snmp-config; ac_word=$2
21701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 printf %s "checking for $ac_word... " >&6; }
21703 if test ${ac_cv_prog_NET_SNMP_LIBS+y}
21704 then :
21705 printf %s "(cached) " >&6
21706 else case e in #(
21707 e) if test -n "$NET_SNMP_LIBS"; then
21708 ac_cv_prog_NET_SNMP_LIBS="$NET_SNMP_LIBS" # Let the user override the test.
21709 else
21710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21712 do
21713 IFS=$as_save_IFS
21714 case $as_dir in #(((
21715 '') as_dir=./ ;;
21716 */) ;;
21717 *) as_dir=$as_dir/ ;;
21718 esac
21719 for ac_exec_ext in '' $ac_executable_extensions; do
21720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21721 ac_cv_prog_NET_SNMP_LIBS="`net-snmp-config --netsnmp-agent-libs`"
21722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21723 break 2
21724 fi
21725 done
21726 done
21727 IFS=$as_save_IFS
21728
21729 fi ;;
21730 esac
21731 fi
21732 NET_SNMP_LIBS=$ac_cv_prog_NET_SNMP_LIBS
21733 if test -n "$NET_SNMP_LIBS"; then
21734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NET_SNMP_LIBS" >&5
21735 printf "%s\n" "$NET_SNMP_LIBS" >&6; }
21736 else
21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 printf "%s\n" "no" >&6; }
21739 fi
21740
21741
21742 ac_fn_check_decl "$LINENO" "snmp_select_info2" "ac_cv_have_decl_snmp_select_info2" "$ac_includes_default
21743 #include <net-snmp/net-snmp-config.h>
21744 #include <net-snmp/definitions.h>
21745 #include <net-snmp/types.h>
21746 #include <net-snmp/utilities.h>
21747 #include <net-snmp/config_api.h>
21748 #include <net-snmp/session_api.h>
21749
21750 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
21751 if test "x$ac_cv_have_decl_snmp_select_info2" = xyes
21752 then :
21753 ac_have_decl=1
21754 else case e in #(
21755 e) ac_have_decl=0 ;;
21756 esac
21757 fi
21758 printf "%s\n" "#define HAVE_DECL_SNMP_SELECT_INFO2 $ac_have_decl" >>confdefs.h
21759 if test $ac_have_decl = 1
21760 then :
21761
21762
21763 printf "%s\n" "#define HAVE_SNMP_SELECT_INFO2 1" >>confdefs.h
21764
21765
21766 else case e in #(
21767 e) : ;;
21768 esac
21769 fi
21770
21771
21772 fi
21773
21774 fi
21775 if test "x$with_net_snmp" = "xyes"
21776 then :
21777
21778 if test x"$NET_SNMP_LIBS" = "x"
21779 then :
21780
21781 as_fn_error $? "Net SNMP requested but libraries were not found" "$LINENO" 5
21782
21783 fi
21784
21785 fi
21786 if test x"$NET_SNMP_LIBS" != "x"; then
21787 HAVE_NET_SNMP_TRUE=
21788 HAVE_NET_SNMP_FALSE='#'
21789 else
21790 HAVE_NET_SNMP_TRUE='#'
21791 HAVE_NET_SNMP_FALSE=
21792 fi
21793
21794 if test x"$NET_SNMP_LIBS" != "x"
21795 then :
21796
21797 printf "%s\n" "#define HAVE_NET_SNMP 1" >>confdefs.h
21798
21799 fi
21800
21801
21802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in libcap" >&5
21803 printf %s "checking whether we will be linking in libcap... " >&6; }
21804 HAVE_LIBCAPS=0
21805
21806 # Check whether --with-libcap was given.
21807 if test ${with_libcap+y}
21808 then :
21809 withval=$with_libcap; with_libcap=$withval
21810 else case e in #(
21811 e) with_libcap=auto ;;
21812 esac
21813 fi
21814
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libcap" >&5
21816 printf "%s\n" "$with_libcap" >&6; }
21817
21818 if test "x$with_libcap" != "xno"
21819 then :
21820
21821 if test "x$with_libcap" = "xyes" -o "x$with_libcap" = "xauto"
21822 then :
21823
21824
21825 pkg_failed=no
21826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcap " >&5
21827 printf %s "checking for libcap ... " >&6; }
21828
21829 if test -n "$LIBCAP_CFLAGS"; then
21830 pkg_cv_LIBCAP_CFLAGS="$LIBCAP_CFLAGS"
21831 elif test -n "$PKG_CONFIG"; then
21832 if test -n "$PKG_CONFIG" && \
21833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap \""; } >&5
21834 ($PKG_CONFIG --exists --print-errors "libcap ") 2>&5
21835 ac_status=$?
21836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21837 test $ac_status = 0; }; then
21838 pkg_cv_LIBCAP_CFLAGS=`$PKG_CONFIG --cflags "libcap " 2>/dev/null`
21839 test "x$?" != "x0" && pkg_failed=yes
21840 else
21841 pkg_failed=yes
21842 fi
21843 else
21844 pkg_failed=untried
21845 fi
21846 if test -n "$LIBCAP_LIBS"; then
21847 pkg_cv_LIBCAP_LIBS="$LIBCAP_LIBS"
21848 elif test -n "$PKG_CONFIG"; then
21849 if test -n "$PKG_CONFIG" && \
21850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap \""; } >&5
21851 ($PKG_CONFIG --exists --print-errors "libcap ") 2>&5
21852 ac_status=$?
21853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854 test $ac_status = 0; }; then
21855 pkg_cv_LIBCAP_LIBS=`$PKG_CONFIG --libs "libcap " 2>/dev/null`
21856 test "x$?" != "x0" && pkg_failed=yes
21857 else
21858 pkg_failed=yes
21859 fi
21860 else
21861 pkg_failed=untried
21862 fi
21863
21864
21865
21866 if test $pkg_failed = yes; then
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21868 printf "%s\n" "no" >&6; }
21869
21870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21871 _pkg_short_errors_supported=yes
21872 else
21873 _pkg_short_errors_supported=no
21874 fi
21875 if test $_pkg_short_errors_supported = yes; then
21876 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap " 2>&1`
21877 else
21878 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap " 2>&1`
21879 fi
21880 # Put the nasty error message in config.log where it belongs
21881 echo "$LIBCAP_PKG_ERRORS" >&5
21882
21883 :
21884 elif test $pkg_failed = untried; then
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 printf "%s\n" "no" >&6; }
21887 :
21888 else
21889 LIBCAP_CFLAGS=$pkg_cv_LIBCAP_CFLAGS
21890 LIBCAP_LIBS=$pkg_cv_LIBCAP_LIBS
21891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21892 printf "%s\n" "yes" >&6; }
21893
21894 HAVE_LIBCAP=1
21895
21896 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
21897
21898
21899 fi
21900
21901 fi
21902
21903 fi
21904 if test "x$LIBCAP_LIBS" != "x"; then
21905 HAVE_LIBCAP_TRUE=
21906 HAVE_LIBCAP_FALSE='#'
21907 else
21908 HAVE_LIBCAP_TRUE='#'
21909 HAVE_LIBCAP_FALSE=
21910 fi
21911
21912 if test "x$with_libcap" = "xyes"
21913 then :
21914
21915 if test x"$LIBCAP_LIBS" = "x"
21916 then :
21917
21918 as_fn_error $? "libcap requested but libraries were not found" "$LINENO" 5
21919
21920 fi
21921
21922 fi
21923
21924
21925
21926
21927
21928 # Check whether --enable-systemd was given.
21929 if test ${enable_systemd+y}
21930 then :
21931 enableval=$enable_systemd;
21932 fi
21933
21934
21935 if test "x$enable_systemd" = "xno"
21936 then :
21937
21938 ax_cv_systemd="n"
21939
21940 elif test "x$enable_systemd" = "xyes"
21941 then :
21942
21943 ax_cv_systemd="y"
21944
21945 elif test -z $ax_cv_systemd
21946 then :
21947
21948 ax_cv_systemd="n"
21949
21950 fi
21951 systemd=$ax_cv_systemd
21952
21953
21954
21955
21956 # Check whether --with-systemd was given.
21957 if test ${with_systemd+y}
21958 then :
21959 withval=$with_systemd; SYSTEMD_DIR="$withval"
21960 else case e in #(
21961 e) SYSTEMD_DIR="" ;;
21962 esac
21963 fi
21964
21965
21966
21967
21968 # Check whether --with-systemd was given.
21969 if test ${with_systemd+y}
21970 then :
21971 withval=$with_systemd; SYSTEMD_MODULES_LOAD="$withval"
21972 else case e in #(
21973 e) SYSTEMD_MODULES_LOAD="" ;;
21974 esac
21975 fi
21976
21977
21978
21979
21980
21981 ac_fn_cxx_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
21982 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
21983 then :
21984
21985 for libname in systemd-daemon systemd; do
21986 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libname""_sd_listen_fds" | sed "$as_sed_sh"`
21987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sd_listen_fds in -l$libname" >&5
21988 printf %s "checking for sd_listen_fds in -l$libname... " >&6; }
21989 if eval test \${$as_ac_Lib+y}
21990 then :
21991 printf %s "(cached) " >&6
21992 else case e in #(
21993 e) ac_check_lib_save_LIBS=$LIBS
21994 LIBS="-l$libname $LIBS"
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21997
21998 namespace conftest {
21999 extern "C" int sd_listen_fds ();
22000 }
22001 int
22002 main (void)
22003 {
22004 return conftest::sd_listen_fds ();
22005 ;
22006 return 0;
22007 }
22008 _ACEOF
22009 if ac_fn_cxx_try_link "$LINENO"
22010 then :
22011 eval "$as_ac_Lib=yes"
22012 else case e in #(
22013 e) eval "$as_ac_Lib=no" ;;
22014 esac
22015 fi
22016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22017 conftest$ac_exeext conftest.$ac_ext
22018 LIBS=$ac_check_lib_save_LIBS ;;
22019 esac
22020 fi
22021 eval ac_res=\$$as_ac_Lib
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22023 printf "%s\n" "$ac_res" >&6; }
22024 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22025 then :
22026
22027 libsystemd_daemon="lib$libname"
22028 systemd=y
22029 libsystemd=y
22030
22031 fi
22032
22033 done
22034
22035 fi
22036
22037
22038
22039 if test "x$enable_systemd" != "xno"
22040 then :
22041
22042 if test "x$systemd" = "xy"
22043 then :
22044
22045
22046 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
22047
22048 systemd=y
22049
22050
22051 if test "x$libsystemd" = x
22052 then :
22053
22054 as_fn_error $? "Unable to find a suitable libsystemd library" "$LINENO" 5
22055
22056 fi
22057
22058
22059 pkg_failed=no
22060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $libsystemd_daemon" >&5
22061 printf %s "checking for $libsystemd_daemon... " >&6; }
22062
22063 if test -n "$SYSTEMD_CFLAGS"; then
22064 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
22065 elif test -n "$PKG_CONFIG"; then
22066 if test -n "$PKG_CONFIG" && \
22067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libsystemd_daemon\""; } >&5
22068 ($PKG_CONFIG --exists --print-errors "$libsystemd_daemon") 2>&5
22069 ac_status=$?
22070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22071 test $ac_status = 0; }; then
22072 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "$libsystemd_daemon" 2>/dev/null`
22073 test "x$?" != "x0" && pkg_failed=yes
22074 else
22075 pkg_failed=yes
22076 fi
22077 else
22078 pkg_failed=untried
22079 fi
22080 if test -n "$SYSTEMD_LIBS"; then
22081 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
22082 elif test -n "$PKG_CONFIG"; then
22083 if test -n "$PKG_CONFIG" && \
22084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libsystemd_daemon\""; } >&5
22085 ($PKG_CONFIG --exists --print-errors "$libsystemd_daemon") 2>&5
22086 ac_status=$?
22087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22088 test $ac_status = 0; }; then
22089 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "$libsystemd_daemon" 2>/dev/null`
22090 test "x$?" != "x0" && pkg_failed=yes
22091 else
22092 pkg_failed=yes
22093 fi
22094 else
22095 pkg_failed=untried
22096 fi
22097
22098
22099
22100 if test $pkg_failed = yes; then
22101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22102 printf "%s\n" "no" >&6; }
22103
22104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22105 _pkg_short_errors_supported=yes
22106 else
22107 _pkg_short_errors_supported=no
22108 fi
22109 if test $_pkg_short_errors_supported = yes; then
22110 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libsystemd_daemon" 2>&1`
22111 else
22112 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libsystemd_daemon" 2>&1`
22113 fi
22114 # Put the nasty error message in config.log where it belongs
22115 echo "$SYSTEMD_PKG_ERRORS" >&5
22116
22117 as_fn_error $? "Package requirements ($libsystemd_daemon) were not met:
22118
22119 $SYSTEMD_PKG_ERRORS
22120
22121 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22122 installed software in a non-standard prefix.
22123
22124 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
22125 and SYSTEMD_LIBS to avoid the need to call pkg-config.
22126 See the pkg-config man page for more details." "$LINENO" 5
22127 elif test $pkg_failed = untried; then
22128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22129 printf "%s\n" "no" >&6; }
22130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22131 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22132 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22133 is in your PATH or set the PKG_CONFIG environment variable to the full
22134 path to pkg-config.
22135
22136 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
22137 and SYSTEMD_LIBS to avoid the need to call pkg-config.
22138 See the pkg-config man page for more details.
22139
22140 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22141 See 'config.log' for more details" "$LINENO" 5; }
22142 else
22143 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
22144 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
22145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22146 printf "%s\n" "yes" >&6; }
22147
22148 fi
22149
22150
22151
22152 if test "x$SYSTEMD_DIR" = x
22153 then :
22154
22155 SYSTEMD_DIR="\$(prefix)/lib/systemd/system/"
22156
22157 fi
22158
22159 if test "x$SYSTEMD_DIR" = x
22160 then :
22161
22162 as_fn_error $? "SYSTEMD_DIR is unset" "$LINENO" 5
22163
22164 fi
22165
22166 if test "x$SYSTEMD_MODULES_LOAD" = x
22167 then :
22168
22169 SYSTEMD_MODULES_LOAD="\$(prefix)/lib/modules-load.d/"
22170
22171 fi
22172
22173 if test "x$SYSTEMD_MODULES_LOAD" = x
22174 then :
22175
22176 as_fn_error $? "SYSTEMD_MODULES_LOAD is unset" "$LINENO" 5
22177
22178 fi
22179
22180
22181 else case e in #(
22182 e) systemd=n ;;
22183 esac
22184 fi
22185
22186 else case e in #(
22187 e) systemd=n ;;
22188 esac
22189 fi
22190
22191
22192
22193 if test x"$systemd" = "xy"
22194 then :
22195
22196 # Extract the first word of "systemctl", so it can be a program name with args.
22197 set dummy systemctl; ac_word=$2
22198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22199 printf %s "checking for $ac_word... " >&6; }
22200 if test ${ac_cv_path_SYSTEMCTL+y}
22201 then :
22202 printf %s "(cached) " >&6
22203 else case e in #(
22204 e) case $SYSTEMCTL in
22205 [\\/]* | ?:[\\/]*)
22206 ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
22207 ;;
22208 *)
22209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22210 for as_dir in $PATH
22211 do
22212 IFS=$as_save_IFS
22213 case $as_dir in #(((
22214 '') as_dir=./ ;;
22215 */) ;;
22216 *) as_dir=$as_dir/ ;;
22217 esac
22218 for ac_exec_ext in '' $ac_executable_extensions; do
22219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22220 ac_cv_path_SYSTEMCTL="$as_dir$ac_word$ac_exec_ext"
22221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22222 break 2
22223 fi
22224 done
22225 done
22226 IFS=$as_save_IFS
22227
22228 test -z "$ac_cv_path_SYSTEMCTL" && ac_cv_path_SYSTEMCTL="no"
22229 ;;
22230 esac ;;
22231 esac
22232 fi
22233 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
22234 if test -n "$SYSTEMCTL"; then
22235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
22236 printf "%s\n" "$SYSTEMCTL" >&6; }
22237 else
22238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22239 printf "%s\n" "no" >&6; }
22240 fi
22241
22242
22243 if test "$SYSTEMCTL" = "no"
22244 then :
22245 as_fn_error $? "systemctl not found" "$LINENO" 5
22246 else case e in #(
22247 e)
22248 _systemd_version=`${SYSTEMCTL} --version|head -1 | tr ".~" " " | cut -d" " -f 2`
22249 if test $_systemd_version -ge 183; then
22250 systemd_private_tmp=y
22251 fi
22252 if test $_systemd_version -ge 209; then
22253 systemd_system_call_architectures=y
22254 systemd_private_devices=y
22255 fi
22256 if test $_systemd_version -ge 211; then
22257 systemd_restrict_address_families=y
22258 fi
22259 if test $_systemd_version -ge 214; then
22260 systemd_protect_system=y
22261 systemd_protect_home=y
22262 fi
22263 if test $_systemd_version -ge 231; then
22264 systemd_restrict_realtime=y
22265 systemd_memory_deny_write_execute=y
22266 fi
22267 if test $_systemd_version -ge 232; then
22268 systemd_protect_control_groups=y
22269 systemd_protect_kernel_modules=y
22270 systemd_protect_kernel_tunables=y
22271 systemd_remove_ipc=y
22272 systemd_dynamic_user=y
22273 systemd_private_users=y
22274 systemd_protect_system_strict=y
22275 fi
22276 if test $_systemd_version -ge 233; then
22277 systemd_restrict_namespaces=y
22278 fi
22279 if test $_systemd_version -ge 235; then
22280 systemd_lock_personality=y
22281 # while SystemCallFilter is technically available starting with 187,
22282 # we use the pre-defined call filter sets that have been introduced later.
22283 # Initial support for these landed in 231
22284 # @filesystem @reboot @swap in 233
22285 # @aio, @sync, @chown, @setuid, @memlock, @signal and @timer in 235
22286 systemd_system_call_filter=y
22287 fi
22288 if test $_systemd_version -ge 236; then
22289 systemd_percent_t=y
22290 fi
22291 if test $_systemd_version -ge 239; then
22292 systemd_private_mounts=y
22293 fi
22294 if test $_systemd_version -ge 240; then
22295 systemd_with_runtime_dir_env=y
22296 fi
22297 if test $_systemd_version -ge 242; then
22298 systemd_protect_hostname=y
22299 systemd_restrict_suidsgid=y
22300 fi
22301 if test $_systemd_version -ge 244; then
22302 systemd_protect_kernel_logs=y
22303 fi
22304 if test $_systemd_version -ge 245; then
22305 systemd_protect_clock=y
22306 fi
22307 if test $_systemd_version -ge 247; then
22308 systemd_protect_proc=y
22309 fi
22310 if test $_systemd_version -ge 248; then
22311 systemd_private_ipc=y
22312 fi
22313 ;;
22314 esac
22315 fi
22316
22317 fi
22318 if test x"$systemd_dynamic_user" = "xy" ; then
22319 HAVE_SYSTEMD_DYNAMIC_USER_TRUE=
22320 HAVE_SYSTEMD_DYNAMIC_USER_FALSE='#'
22321 else
22322 HAVE_SYSTEMD_DYNAMIC_USER_TRUE='#'
22323 HAVE_SYSTEMD_DYNAMIC_USER_FALSE=
22324 fi
22325
22326 if test x"$systemd_lock_personality" = "xy" ; then
22327 HAVE_SYSTEMD_LOCK_PERSONALITY_TRUE=
22328 HAVE_SYSTEMD_LOCK_PERSONALITY_FALSE='#'
22329 else
22330 HAVE_SYSTEMD_LOCK_PERSONALITY_TRUE='#'
22331 HAVE_SYSTEMD_LOCK_PERSONALITY_FALSE=
22332 fi
22333
22334 if test x"$systemd_memory_deny_write_execute" = "xy" ; then
22335 HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_TRUE=
22336 HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_FALSE='#'
22337 else
22338 HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_TRUE='#'
22339 HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_FALSE=
22340 fi
22341
22342 if test x"$systemd_percent_t" = "xy" ; then
22343 HAVE_SYSTEMD_PERCENT_T_TRUE=
22344 HAVE_SYSTEMD_PERCENT_T_FALSE='#'
22345 else
22346 HAVE_SYSTEMD_PERCENT_T_TRUE='#'
22347 HAVE_SYSTEMD_PERCENT_T_FALSE=
22348 fi
22349
22350 if test x"$systemd_private_devices" = "xy" ; then
22351 HAVE_SYSTEMD_PRIVATE_DEVICES_TRUE=
22352 HAVE_SYSTEMD_PRIVATE_DEVICES_FALSE='#'
22353 else
22354 HAVE_SYSTEMD_PRIVATE_DEVICES_TRUE='#'
22355 HAVE_SYSTEMD_PRIVATE_DEVICES_FALSE=
22356 fi
22357
22358 if test x"$systemd_private_ipc" = "xy" ; then
22359 HAVE_SYSTEMD_PRIVATE_IPC_TRUE=
22360 HAVE_SYSTEMD_PRIVATE_IPC_FALSE='#'
22361 else
22362 HAVE_SYSTEMD_PRIVATE_IPC_TRUE='#'
22363 HAVE_SYSTEMD_PRIVATE_IPC_FALSE=
22364 fi
22365
22366 if test x"$systemd_private_mounts" = "xy" ; then
22367 HAVE_SYSTEMD_PRIVATE_MOUNTS_TRUE=
22368 HAVE_SYSTEMD_PRIVATE_MOUNTS_FALSE='#'
22369 else
22370 HAVE_SYSTEMD_PRIVATE_MOUNTS_TRUE='#'
22371 HAVE_SYSTEMD_PRIVATE_MOUNTS_FALSE=
22372 fi
22373
22374 if test x"$systemd_private_tmp" = "xy" ; then
22375 HAVE_SYSTEMD_PRIVATE_TMP_TRUE=
22376 HAVE_SYSTEMD_PRIVATE_TMP_FALSE='#'
22377 else
22378 HAVE_SYSTEMD_PRIVATE_TMP_TRUE='#'
22379 HAVE_SYSTEMD_PRIVATE_TMP_FALSE=
22380 fi
22381
22382 if test x"$systemd_private_users" = "xy" ; then
22383 HAVE_SYSTEMD_PRIVATE_USERS_TRUE=
22384 HAVE_SYSTEMD_PRIVATE_USERS_FALSE='#'
22385 else
22386 HAVE_SYSTEMD_PRIVATE_USERS_TRUE='#'
22387 HAVE_SYSTEMD_PRIVATE_USERS_FALSE=
22388 fi
22389
22390 if test x"$systemd_protect_clock" = "xy" ; then
22391 HAVE_SYSTEMD_PROTECT_CLOCK_TRUE=
22392 HAVE_SYSTEMD_PROTECT_CLOCK_FALSE='#'
22393 else
22394 HAVE_SYSTEMD_PROTECT_CLOCK_TRUE='#'
22395 HAVE_SYSTEMD_PROTECT_CLOCK_FALSE=
22396 fi
22397
22398 if test x"$systemd_protect_control_groups" = "xy" ; then
22399 HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_TRUE=
22400 HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_FALSE='#'
22401 else
22402 HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_TRUE='#'
22403 HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_FALSE=
22404 fi
22405
22406 if test x"$systemd_protect_home" = "xy" ; then
22407 HAVE_SYSTEMD_PROTECT_HOME_TRUE=
22408 HAVE_SYSTEMD_PROTECT_HOME_FALSE='#'
22409 else
22410 HAVE_SYSTEMD_PROTECT_HOME_TRUE='#'
22411 HAVE_SYSTEMD_PROTECT_HOME_FALSE=
22412 fi
22413
22414 if test x"$systemd_protect_hostname" = "xy" ; then
22415 HAVE_SYSTEMD_PROTECT_HOSTNAME_TRUE=
22416 HAVE_SYSTEMD_PROTECT_HOSTNAME_FALSE='#'
22417 else
22418 HAVE_SYSTEMD_PROTECT_HOSTNAME_TRUE='#'
22419 HAVE_SYSTEMD_PROTECT_HOSTNAME_FALSE=
22420 fi
22421
22422 if test x"$systemd_protect_kernel_logs" = "xy" ; then
22423 HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_TRUE=
22424 HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_FALSE='#'
22425 else
22426 HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_TRUE='#'
22427 HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_FALSE=
22428 fi
22429
22430 if test x"$systemd_protect_kernel_modules" = "xy" ; then
22431 HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_TRUE=
22432 HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_FALSE='#'
22433 else
22434 HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_TRUE='#'
22435 HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_FALSE=
22436 fi
22437
22438 if test x"$systemd_protect_kernel_tunables" = "xy" ; then
22439 HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_TRUE=
22440 HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_FALSE='#'
22441 else
22442 HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_TRUE='#'
22443 HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_FALSE=
22444 fi
22445
22446 if test x"$systemd_protect_proc" = "xy" ; then
22447 HAVE_SYSTEMD_PROTECT_PROC_TRUE=
22448 HAVE_SYSTEMD_PROTECT_PROC_FALSE='#'
22449 else
22450 HAVE_SYSTEMD_PROTECT_PROC_TRUE='#'
22451 HAVE_SYSTEMD_PROTECT_PROC_FALSE=
22452 fi
22453
22454 if test x"$systemd_protect_system" = "xy" ; then
22455 HAVE_SYSTEMD_PROTECT_SYSTEM_TRUE=
22456 HAVE_SYSTEMD_PROTECT_SYSTEM_FALSE='#'
22457 else
22458 HAVE_SYSTEMD_PROTECT_SYSTEM_TRUE='#'
22459 HAVE_SYSTEMD_PROTECT_SYSTEM_FALSE=
22460 fi
22461
22462 if test x"$systemd_protect_system_strict" = "xy" ; then
22463 HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_TRUE=
22464 HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_FALSE='#'
22465 else
22466 HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_TRUE='#'
22467 HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_FALSE=
22468 fi
22469
22470 if test x"$systemd_remove_ipc" = "xy" ; then
22471 HAVE_SYSTEMD_REMOVE_IPC_TRUE=
22472 HAVE_SYSTEMD_REMOVE_IPC_FALSE='#'
22473 else
22474 HAVE_SYSTEMD_REMOVE_IPC_TRUE='#'
22475 HAVE_SYSTEMD_REMOVE_IPC_FALSE=
22476 fi
22477
22478 if test x"$systemd_restrict_address_families" = "xy" ; then
22479 HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_TRUE=
22480 HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_FALSE='#'
22481 else
22482 HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_TRUE='#'
22483 HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_FALSE=
22484 fi
22485
22486 if test x"$systemd_restrict_namespaces" = "xy" ; then
22487 HAVE_SYSTEMD_RESTRICT_NAMESPACES_TRUE=
22488 HAVE_SYSTEMD_RESTRICT_NAMESPACES_FALSE='#'
22489 else
22490 HAVE_SYSTEMD_RESTRICT_NAMESPACES_TRUE='#'
22491 HAVE_SYSTEMD_RESTRICT_NAMESPACES_FALSE=
22492 fi
22493
22494 if test x"$systemd_restrict_realtime" = "xy" ; then
22495 HAVE_SYSTEMD_RESTRICT_REALTIME_TRUE=
22496 HAVE_SYSTEMD_RESTRICT_REALTIME_FALSE='#'
22497 else
22498 HAVE_SYSTEMD_RESTRICT_REALTIME_TRUE='#'
22499 HAVE_SYSTEMD_RESTRICT_REALTIME_FALSE=
22500 fi
22501
22502 if test x"$systemd_restrict_suidsgid" = "xy" ; then
22503 HAVE_SYSTEMD_RESTRICT_SUIDSGID_TRUE=
22504 HAVE_SYSTEMD_RESTRICT_SUIDSGID_FALSE='#'
22505 else
22506 HAVE_SYSTEMD_RESTRICT_SUIDSGID_TRUE='#'
22507 HAVE_SYSTEMD_RESTRICT_SUIDSGID_FALSE=
22508 fi
22509
22510 if test x"$systemd_system_call_architectures" = "xy" ; then
22511 HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_TRUE=
22512 HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_FALSE='#'
22513 else
22514 HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_TRUE='#'
22515 HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_FALSE=
22516 fi
22517
22518 if test x"$systemd_system_call_filter" = "xy" ; then
22519 HAVE_SYSTEMD_SYSTEM_CALL_FILTER_TRUE=
22520 HAVE_SYSTEMD_SYSTEM_CALL_FILTER_FALSE='#'
22521 else
22522 HAVE_SYSTEMD_SYSTEM_CALL_FILTER_TRUE='#'
22523 HAVE_SYSTEMD_SYSTEM_CALL_FILTER_FALSE=
22524 fi
22525
22526 if test x"$systemd_with_runtime_dir_env" = "xy" ; then
22527 HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_TRUE=
22528 HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_FALSE='#'
22529 else
22530 HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_TRUE='#'
22531 HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_FALSE=
22532 fi
22533
22534
22535 if test x"$systemd" = "xy" ; then
22536 HAVE_SYSTEMD_TRUE=
22537 HAVE_SYSTEMD_FALSE='#'
22538 else
22539 HAVE_SYSTEMD_TRUE='#'
22540 HAVE_SYSTEMD_FALSE=
22541 fi
22542
22543
22544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking What user and group will be used by service" >&5
22545 printf %s "checking What user and group will be used by service... " >&6; }
22546
22547 # Check whether --with-service-user was given.
22548 if test ${with_service_user+y}
22549 then :
22550 withval=$with_service_user; service_user=$withval
22551
22552 else case e in #(
22553 e) service_user=dnsdist
22554
22555 ;;
22556 esac
22557 fi
22558
22559
22560
22561 # Check whether --with-service-group was given.
22562 if test ${with_service_group+y}
22563 then :
22564 withval=$with_service_group; service_group=$withval
22565
22566 else case e in #(
22567 e) service_group=dnsdist
22568
22569 ;;
22570 esac
22571 fi
22572
22573
22574 if test -z "$service_user"
22575 then :
22576 as_fn_error $? "No service user has been defined!" "$LINENO" 5
22577 else case e in #(
22578 e) : ;;
22579 esac
22580 fi
22581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $service_user" >&5
22582 printf "%s\n" "$service_user" >&6; }
22583
22584
22585 ac_func=
22586 for ac_item in $ac_func_cxx_list
22587 do
22588 if test $ac_func; then
22589 ac_fn_cxx_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22590 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22591 echo "#define $ac_item 1" >> confdefs.h
22592 fi
22593 ac_func=
22594 else
22595 ac_func=$ac_item
22596 fi
22597 done
22598
22599
22600
22601
22602
22603
22604
22605
22606 YAHTTP_CFLAGS='-I$(top_srcdir)/ext/yahttp'
22607
22608 YAHTTP_LIBS='$(top_builddir)/ext/yahttp/yahttp/libyahttp.la'
22609
22610 IPCRYPT_CFLAGS='-I$(top_srcdir)/ext/ipcrypt'
22611
22612 IPCRYPT_LIBS='$(top_builddir)/ext/ipcrypt/libipcrypt.la'
22613
22614 IPCRYPT2_CFLAGS='-I$(top_srcdir)/ext/ipcrypt2/include'
22615
22616 IPCRYPT2_LIBS='$(top_builddir)/ext/ipcrypt2/libipcrypt2.la'
22617
22618 ARC4RANDOM_LIBS='$(top_builddir)/ext/arc4random/libarc4random.la'
22619
22620
22621 ac_fn_cxx_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
22622 if test "x$ac_cv_header_sys_random_h" = xyes
22623 then :
22624 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
22625
22626 fi
22627
22628
22629
22630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
22631 printf %s "checking for grep that handles long lines and -e... " >&6; }
22632 if test ${ac_cv_path_GREP+y}
22633 then :
22634 printf %s "(cached) " >&6
22635 else case e in #(
22636 e) if test -z "$GREP"; then
22637 ac_path_GREP_found=false
22638 # Loop through the user's path and test for each of PROGNAME-LIST
22639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22641 do
22642 IFS=$as_save_IFS
22643 case $as_dir in #(((
22644 '') as_dir=./ ;;
22645 */) ;;
22646 *) as_dir=$as_dir/ ;;
22647 esac
22648 for ac_prog in grep ggrep
22649 do
22650 for ac_exec_ext in '' $ac_executable_extensions; do
22651 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
22652 as_fn_executable_p "$ac_path_GREP" || continue
22653 # Check for GNU ac_path_GREP and select it if it is found.
22654 # Check for GNU $ac_path_GREP
22655 case `"$ac_path_GREP" --version 2>&1` in #(
22656 *GNU*)
22657 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
22658 #(
22659 *)
22660 ac_count=0
22661 printf %s 0123456789 >"conftest.in"
22662 while :
22663 do
22664 cat "conftest.in" "conftest.in" >"conftest.tmp"
22665 mv "conftest.tmp" "conftest.in"
22666 cp "conftest.in" "conftest.nl"
22667 printf "%s\n" 'GREP' >> "conftest.nl"
22668 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
22669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22670 as_fn_arith $ac_count + 1 && ac_count=$as_val
22671 if test $ac_count -gt ${ac_path_GREP_max-0}; then
22672 # Best one so far, save it but keep looking for a better one
22673 ac_cv_path_GREP="$ac_path_GREP"
22674 ac_path_GREP_max=$ac_count
22675 fi
22676 # 10*(2^10) chars as input seems more than enough
22677 test $ac_count -gt 10 && break
22678 done
22679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22680 esac
22681
22682 $ac_path_GREP_found && break 3
22683 done
22684 done
22685 done
22686 IFS=$as_save_IFS
22687 if test -z "$ac_cv_path_GREP"; then
22688 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
22689 fi
22690 else
22691 ac_cv_path_GREP=$GREP
22692 fi
22693 ;;
22694 esac
22695 fi
22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
22697 printf "%s\n" "$ac_cv_path_GREP" >&6; }
22698 GREP="$ac_cv_path_GREP"
22699
22700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which Lua implementation to use" >&5
22701 printf %s "checking which Lua implementation to use... " >&6; }
22702
22703 # Check whether --with-lua was given.
22704 if test ${with_lua+y}
22705 then :
22706 withval=$with_lua;
22707 with_lua=$withval
22708
22709 else case e in #(
22710 e)
22711 with_lua=auto
22712 ;;
22713 esac
22714 fi
22715
22716
22717 if test "x$with_lua" = "xyes"
22718 then :
22719
22720 with_lua=auto
22721
22722 fi
22723
22724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_lua" >&5
22725 printf "%s\n" "$with_lua" >&6; }
22726
22727 if test "x$with_lua" = "xno"
22728 then :
22729
22730 as_fn_error $? "--without-lua specified, but Lua is not optional" "$LINENO" 5
22731
22732 fi
22733
22734 LUAPC=""
22735 luajit_min_version='2.0.2'
22736 lua_min_version='5.1'
22737
22738 if test "x$with_lua" != "xauto"
22739 then :
22740
22741 with_lua_version=${lua_min_version}
22742 if echo "x$with_lua" | ${GREP} 'jit' >/dev/null 2>&1
22743 then :
22744 with_lua_version=${luajit_min_version}
22745 fi
22746
22747 pkg_failed=no
22748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_lua >= $with_lua_version" >&5
22749 printf %s "checking for $with_lua >= $with_lua_version... " >&6; }
22750
22751 if test -n "$LUA_CFLAGS"; then
22752 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
22753 elif test -n "$PKG_CONFIG"; then
22754 if test -n "$PKG_CONFIG" && \
22755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_lua >= \$with_lua_version\""; } >&5
22756 ($PKG_CONFIG --exists --print-errors "$with_lua >= $with_lua_version") 2>&5
22757 ac_status=$?
22758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; then
22760 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$with_lua >= $with_lua_version" 2>/dev/null`
22761 test "x$?" != "x0" && pkg_failed=yes
22762 else
22763 pkg_failed=yes
22764 fi
22765 else
22766 pkg_failed=untried
22767 fi
22768 if test -n "$LUA_LIBS"; then
22769 pkg_cv_LUA_LIBS="$LUA_LIBS"
22770 elif test -n "$PKG_CONFIG"; then
22771 if test -n "$PKG_CONFIG" && \
22772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_lua >= \$with_lua_version\""; } >&5
22773 ($PKG_CONFIG --exists --print-errors "$with_lua >= $with_lua_version") 2>&5
22774 ac_status=$?
22775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22776 test $ac_status = 0; }; then
22777 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$with_lua >= $with_lua_version" 2>/dev/null`
22778 test "x$?" != "x0" && pkg_failed=yes
22779 else
22780 pkg_failed=yes
22781 fi
22782 else
22783 pkg_failed=untried
22784 fi
22785
22786
22787
22788 if test $pkg_failed = yes; then
22789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790 printf "%s\n" "no" >&6; }
22791
22792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22793 _pkg_short_errors_supported=yes
22794 else
22795 _pkg_short_errors_supported=no
22796 fi
22797 if test $_pkg_short_errors_supported = yes; then
22798 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$with_lua >= $with_lua_version" 2>&1`
22799 else
22800 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$with_lua >= $with_lua_version" 2>&1`
22801 fi
22802 # Put the nasty error message in config.log where it belongs
22803 echo "$LUA_PKG_ERRORS" >&5
22804
22805
22806 as_fn_error $? "Selected Lua ($with_lua) not found" "$LINENO" 5
22807
22808 elif test $pkg_failed = untried; then
22809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22810 printf "%s\n" "no" >&6; }
22811
22812 as_fn_error $? "Selected Lua ($with_lua) not found" "$LINENO" 5
22813
22814 else
22815 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
22816 LUA_LIBS=$pkg_cv_LUA_LIBS
22817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22818 printf "%s\n" "yes" >&6; }
22819
22820
22821 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
22822
22823 LUAPC=$with_lua
22824
22825 fi
22826
22827 else case e in #(
22828 e)
22829
22830 pkg_failed=no
22831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luajit >= ${luajit_min_version}" >&5
22832 printf %s "checking for luajit >= ${luajit_min_version}... " >&6; }
22833
22834 if test -n "$LUA_CFLAGS"; then
22835 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
22836 elif test -n "$PKG_CONFIG"; then
22837 if test -n "$PKG_CONFIG" && \
22838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"luajit >= \${luajit_min_version}\""; } >&5
22839 ($PKG_CONFIG --exists --print-errors "luajit >= ${luajit_min_version}") 2>&5
22840 ac_status=$?
22841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; then
22843 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "luajit >= ${luajit_min_version}" 2>/dev/null`
22844 test "x$?" != "x0" && pkg_failed=yes
22845 else
22846 pkg_failed=yes
22847 fi
22848 else
22849 pkg_failed=untried
22850 fi
22851 if test -n "$LUA_LIBS"; then
22852 pkg_cv_LUA_LIBS="$LUA_LIBS"
22853 elif test -n "$PKG_CONFIG"; then
22854 if test -n "$PKG_CONFIG" && \
22855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"luajit >= \${luajit_min_version}\""; } >&5
22856 ($PKG_CONFIG --exists --print-errors "luajit >= ${luajit_min_version}") 2>&5
22857 ac_status=$?
22858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; then
22860 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "luajit >= ${luajit_min_version}" 2>/dev/null`
22861 test "x$?" != "x0" && pkg_failed=yes
22862 else
22863 pkg_failed=yes
22864 fi
22865 else
22866 pkg_failed=untried
22867 fi
22868
22869
22870
22871 if test $pkg_failed = yes; then
22872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22873 printf "%s\n" "no" >&6; }
22874
22875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22876 _pkg_short_errors_supported=yes
22877 else
22878 _pkg_short_errors_supported=no
22879 fi
22880 if test $_pkg_short_errors_supported = yes; then
22881 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "luajit >= ${luajit_min_version}" 2>&1`
22882 else
22883 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "luajit >= ${luajit_min_version}" 2>&1`
22884 fi
22885 # Put the nasty error message in config.log where it belongs
22886 echo "$LUA_PKG_ERRORS" >&5
22887
22888 :
22889 elif test $pkg_failed = untried; then
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22891 printf "%s\n" "no" >&6; }
22892 :
22893 else
22894 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
22895 LUA_LIBS=$pkg_cv_LUA_LIBS
22896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22897 printf "%s\n" "yes" >&6; }
22898
22899 LUAPC=luajit
22900
22901 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
22902
22903
22904 fi
22905 if test -z "$LUAPC"
22906 then :
22907
22908 found_lua=n
22909
22910 if test "$found_lua" != "y"
22911 then :
22912
22913
22914 pkg_failed=no
22915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua5.3 >= ${lua_min_version}" >&5
22916 printf %s "checking for lua5.3 >= ${lua_min_version}... " >&6; }
22917
22918 if test -n "$LUA_CFLAGS"; then
22919 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
22920 elif test -n "$PKG_CONFIG"; then
22921 if test -n "$PKG_CONFIG" && \
22922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3 >= \${lua_min_version}\""; } >&5
22923 ($PKG_CONFIG --exists --print-errors "lua5.3 >= ${lua_min_version}") 2>&5
22924 ac_status=$?
22925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; then
22927 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.3 >= ${lua_min_version}" 2>/dev/null`
22928 test "x$?" != "x0" && pkg_failed=yes
22929 else
22930 pkg_failed=yes
22931 fi
22932 else
22933 pkg_failed=untried
22934 fi
22935 if test -n "$LUA_LIBS"; then
22936 pkg_cv_LUA_LIBS="$LUA_LIBS"
22937 elif test -n "$PKG_CONFIG"; then
22938 if test -n "$PKG_CONFIG" && \
22939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3 >= \${lua_min_version}\""; } >&5
22940 ($PKG_CONFIG --exists --print-errors "lua5.3 >= ${lua_min_version}") 2>&5
22941 ac_status=$?
22942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; then
22944 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.3 >= ${lua_min_version}" 2>/dev/null`
22945 test "x$?" != "x0" && pkg_failed=yes
22946 else
22947 pkg_failed=yes
22948 fi
22949 else
22950 pkg_failed=untried
22951 fi
22952
22953
22954
22955 if test $pkg_failed = yes; then
22956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957 printf "%s\n" "no" >&6; }
22958
22959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22960 _pkg_short_errors_supported=yes
22961 else
22962 _pkg_short_errors_supported=no
22963 fi
22964 if test $_pkg_short_errors_supported = yes; then
22965 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.3 >= ${lua_min_version}" 2>&1`
22966 else
22967 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.3 >= ${lua_min_version}" 2>&1`
22968 fi
22969 # Put the nasty error message in config.log where it belongs
22970 echo "$LUA_PKG_ERRORS" >&5
22971
22972 :
22973 elif test $pkg_failed = untried; then
22974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22975 printf "%s\n" "no" >&6; }
22976 :
22977 else
22978 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
22979 LUA_LIBS=$pkg_cv_LUA_LIBS
22980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22981 printf "%s\n" "yes" >&6; }
22982
22983
22984 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
22985
22986 found_lua=y
22987 LUAPC=lua5.3
22988
22989 fi
22990
22991 fi
22992
22993 if test "$found_lua" != "y"
22994 then :
22995
22996
22997 pkg_failed=no
22998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua-5.3 >= ${lua_min_version}" >&5
22999 printf %s "checking for lua-5.3 >= ${lua_min_version}... " >&6; }
23000
23001 if test -n "$LUA_CFLAGS"; then
23002 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23003 elif test -n "$PKG_CONFIG"; then
23004 if test -n "$PKG_CONFIG" && \
23005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3 >= \${lua_min_version}\""; } >&5
23006 ($PKG_CONFIG --exists --print-errors "lua-5.3 >= ${lua_min_version}") 2>&5
23007 ac_status=$?
23008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23009 test $ac_status = 0; }; then
23010 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3 >= ${lua_min_version}" 2>/dev/null`
23011 test "x$?" != "x0" && pkg_failed=yes
23012 else
23013 pkg_failed=yes
23014 fi
23015 else
23016 pkg_failed=untried
23017 fi
23018 if test -n "$LUA_LIBS"; then
23019 pkg_cv_LUA_LIBS="$LUA_LIBS"
23020 elif test -n "$PKG_CONFIG"; then
23021 if test -n "$PKG_CONFIG" && \
23022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3 >= \${lua_min_version}\""; } >&5
23023 ($PKG_CONFIG --exists --print-errors "lua-5.3 >= ${lua_min_version}") 2>&5
23024 ac_status=$?
23025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23026 test $ac_status = 0; }; then
23027 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3 >= ${lua_min_version}" 2>/dev/null`
23028 test "x$?" != "x0" && pkg_failed=yes
23029 else
23030 pkg_failed=yes
23031 fi
23032 else
23033 pkg_failed=untried
23034 fi
23035
23036
23037
23038 if test $pkg_failed = yes; then
23039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23040 printf "%s\n" "no" >&6; }
23041
23042 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23043 _pkg_short_errors_supported=yes
23044 else
23045 _pkg_short_errors_supported=no
23046 fi
23047 if test $_pkg_short_errors_supported = yes; then
23048 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.3 >= ${lua_min_version}" 2>&1`
23049 else
23050 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.3 >= ${lua_min_version}" 2>&1`
23051 fi
23052 # Put the nasty error message in config.log where it belongs
23053 echo "$LUA_PKG_ERRORS" >&5
23054
23055 :
23056 elif test $pkg_failed = untried; then
23057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23058 printf "%s\n" "no" >&6; }
23059 :
23060 else
23061 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23062 LUA_LIBS=$pkg_cv_LUA_LIBS
23063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23064 printf "%s\n" "yes" >&6; }
23065
23066
23067 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23068
23069 found_lua=y
23070 LUAPC=lua-5.3
23071
23072 fi
23073
23074 fi
23075
23076 if test "$found_lua" != "y"
23077 then :
23078
23079
23080 pkg_failed=no
23081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua53 >= ${lua_min_version}" >&5
23082 printf %s "checking for lua53 >= ${lua_min_version}... " >&6; }
23083
23084 if test -n "$LUA_CFLAGS"; then
23085 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23086 elif test -n "$PKG_CONFIG"; then
23087 if test -n "$PKG_CONFIG" && \
23088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53 >= \${lua_min_version}\""; } >&5
23089 ($PKG_CONFIG --exists --print-errors "lua53 >= ${lua_min_version}") 2>&5
23090 ac_status=$?
23091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; then
23093 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53 >= ${lua_min_version}" 2>/dev/null`
23094 test "x$?" != "x0" && pkg_failed=yes
23095 else
23096 pkg_failed=yes
23097 fi
23098 else
23099 pkg_failed=untried
23100 fi
23101 if test -n "$LUA_LIBS"; then
23102 pkg_cv_LUA_LIBS="$LUA_LIBS"
23103 elif test -n "$PKG_CONFIG"; then
23104 if test -n "$PKG_CONFIG" && \
23105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53 >= \${lua_min_version}\""; } >&5
23106 ($PKG_CONFIG --exists --print-errors "lua53 >= ${lua_min_version}") 2>&5
23107 ac_status=$?
23108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23109 test $ac_status = 0; }; then
23110 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53 >= ${lua_min_version}" 2>/dev/null`
23111 test "x$?" != "x0" && pkg_failed=yes
23112 else
23113 pkg_failed=yes
23114 fi
23115 else
23116 pkg_failed=untried
23117 fi
23118
23119
23120
23121 if test $pkg_failed = yes; then
23122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23123 printf "%s\n" "no" >&6; }
23124
23125 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23126 _pkg_short_errors_supported=yes
23127 else
23128 _pkg_short_errors_supported=no
23129 fi
23130 if test $_pkg_short_errors_supported = yes; then
23131 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53 >= ${lua_min_version}" 2>&1`
23132 else
23133 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53 >= ${lua_min_version}" 2>&1`
23134 fi
23135 # Put the nasty error message in config.log where it belongs
23136 echo "$LUA_PKG_ERRORS" >&5
23137
23138 :
23139 elif test $pkg_failed = untried; then
23140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141 printf "%s\n" "no" >&6; }
23142 :
23143 else
23144 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23145 LUA_LIBS=$pkg_cv_LUA_LIBS
23146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23147 printf "%s\n" "yes" >&6; }
23148
23149
23150 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23151
23152 found_lua=y
23153 LUAPC=lua53
23154
23155 fi
23156
23157 fi
23158
23159 if test "$found_lua" != "y"
23160 then :
23161
23162
23163 pkg_failed=no
23164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua5.2 >= ${lua_min_version}" >&5
23165 printf %s "checking for lua5.2 >= ${lua_min_version}... " >&6; }
23166
23167 if test -n "$LUA_CFLAGS"; then
23168 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23169 elif test -n "$PKG_CONFIG"; then
23170 if test -n "$PKG_CONFIG" && \
23171 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2 >= \${lua_min_version}\""; } >&5
23172 ($PKG_CONFIG --exists --print-errors "lua5.2 >= ${lua_min_version}") 2>&5
23173 ac_status=$?
23174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23175 test $ac_status = 0; }; then
23176 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2 >= ${lua_min_version}" 2>/dev/null`
23177 test "x$?" != "x0" && pkg_failed=yes
23178 else
23179 pkg_failed=yes
23180 fi
23181 else
23182 pkg_failed=untried
23183 fi
23184 if test -n "$LUA_LIBS"; then
23185 pkg_cv_LUA_LIBS="$LUA_LIBS"
23186 elif test -n "$PKG_CONFIG"; then
23187 if test -n "$PKG_CONFIG" && \
23188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2 >= \${lua_min_version}\""; } >&5
23189 ($PKG_CONFIG --exists --print-errors "lua5.2 >= ${lua_min_version}") 2>&5
23190 ac_status=$?
23191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; then
23193 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2 >= ${lua_min_version}" 2>/dev/null`
23194 test "x$?" != "x0" && pkg_failed=yes
23195 else
23196 pkg_failed=yes
23197 fi
23198 else
23199 pkg_failed=untried
23200 fi
23201
23202
23203
23204 if test $pkg_failed = yes; then
23205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 printf "%s\n" "no" >&6; }
23207
23208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23209 _pkg_short_errors_supported=yes
23210 else
23211 _pkg_short_errors_supported=no
23212 fi
23213 if test $_pkg_short_errors_supported = yes; then
23214 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2 >= ${lua_min_version}" 2>&1`
23215 else
23216 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2 >= ${lua_min_version}" 2>&1`
23217 fi
23218 # Put the nasty error message in config.log where it belongs
23219 echo "$LUA_PKG_ERRORS" >&5
23220
23221 :
23222 elif test $pkg_failed = untried; then
23223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23224 printf "%s\n" "no" >&6; }
23225 :
23226 else
23227 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23228 LUA_LIBS=$pkg_cv_LUA_LIBS
23229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23230 printf "%s\n" "yes" >&6; }
23231
23232
23233 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23234
23235 found_lua=y
23236 LUAPC=lua5.2
23237
23238 fi
23239
23240 fi
23241
23242 if test "$found_lua" != "y"
23243 then :
23244
23245
23246 pkg_failed=no
23247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua-5.2 >= ${lua_min_version}" >&5
23248 printf %s "checking for lua-5.2 >= ${lua_min_version}... " >&6; }
23249
23250 if test -n "$LUA_CFLAGS"; then
23251 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23252 elif test -n "$PKG_CONFIG"; then
23253 if test -n "$PKG_CONFIG" && \
23254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2 >= \${lua_min_version}\""; } >&5
23255 ($PKG_CONFIG --exists --print-errors "lua-5.2 >= ${lua_min_version}") 2>&5
23256 ac_status=$?
23257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23258 test $ac_status = 0; }; then
23259 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2 >= ${lua_min_version}" 2>/dev/null`
23260 test "x$?" != "x0" && pkg_failed=yes
23261 else
23262 pkg_failed=yes
23263 fi
23264 else
23265 pkg_failed=untried
23266 fi
23267 if test -n "$LUA_LIBS"; then
23268 pkg_cv_LUA_LIBS="$LUA_LIBS"
23269 elif test -n "$PKG_CONFIG"; then
23270 if test -n "$PKG_CONFIG" && \
23271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2 >= \${lua_min_version}\""; } >&5
23272 ($PKG_CONFIG --exists --print-errors "lua-5.2 >= ${lua_min_version}") 2>&5
23273 ac_status=$?
23274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275 test $ac_status = 0; }; then
23276 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2 >= ${lua_min_version}" 2>/dev/null`
23277 test "x$?" != "x0" && pkg_failed=yes
23278 else
23279 pkg_failed=yes
23280 fi
23281 else
23282 pkg_failed=untried
23283 fi
23284
23285
23286
23287 if test $pkg_failed = yes; then
23288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23289 printf "%s\n" "no" >&6; }
23290
23291 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23292 _pkg_short_errors_supported=yes
23293 else
23294 _pkg_short_errors_supported=no
23295 fi
23296 if test $_pkg_short_errors_supported = yes; then
23297 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2 >= ${lua_min_version}" 2>&1`
23298 else
23299 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2 >= ${lua_min_version}" 2>&1`
23300 fi
23301 # Put the nasty error message in config.log where it belongs
23302 echo "$LUA_PKG_ERRORS" >&5
23303
23304 :
23305 elif test $pkg_failed = untried; then
23306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23307 printf "%s\n" "no" >&6; }
23308 :
23309 else
23310 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23311 LUA_LIBS=$pkg_cv_LUA_LIBS
23312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23313 printf "%s\n" "yes" >&6; }
23314
23315
23316 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23317
23318 found_lua=y
23319 LUAPC=lua-5.2
23320
23321 fi
23322
23323 fi
23324
23325 if test "$found_lua" != "y"
23326 then :
23327
23328
23329 pkg_failed=no
23330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua52 >= ${lua_min_version}" >&5
23331 printf %s "checking for lua52 >= ${lua_min_version}... " >&6; }
23332
23333 if test -n "$LUA_CFLAGS"; then
23334 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23335 elif test -n "$PKG_CONFIG"; then
23336 if test -n "$PKG_CONFIG" && \
23337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52 >= \${lua_min_version}\""; } >&5
23338 ($PKG_CONFIG --exists --print-errors "lua52 >= ${lua_min_version}") 2>&5
23339 ac_status=$?
23340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23341 test $ac_status = 0; }; then
23342 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52 >= ${lua_min_version}" 2>/dev/null`
23343 test "x$?" != "x0" && pkg_failed=yes
23344 else
23345 pkg_failed=yes
23346 fi
23347 else
23348 pkg_failed=untried
23349 fi
23350 if test -n "$LUA_LIBS"; then
23351 pkg_cv_LUA_LIBS="$LUA_LIBS"
23352 elif test -n "$PKG_CONFIG"; then
23353 if test -n "$PKG_CONFIG" && \
23354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52 >= \${lua_min_version}\""; } >&5
23355 ($PKG_CONFIG --exists --print-errors "lua52 >= ${lua_min_version}") 2>&5
23356 ac_status=$?
23357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23358 test $ac_status = 0; }; then
23359 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52 >= ${lua_min_version}" 2>/dev/null`
23360 test "x$?" != "x0" && pkg_failed=yes
23361 else
23362 pkg_failed=yes
23363 fi
23364 else
23365 pkg_failed=untried
23366 fi
23367
23368
23369
23370 if test $pkg_failed = yes; then
23371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23372 printf "%s\n" "no" >&6; }
23373
23374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23375 _pkg_short_errors_supported=yes
23376 else
23377 _pkg_short_errors_supported=no
23378 fi
23379 if test $_pkg_short_errors_supported = yes; then
23380 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52 >= ${lua_min_version}" 2>&1`
23381 else
23382 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52 >= ${lua_min_version}" 2>&1`
23383 fi
23384 # Put the nasty error message in config.log where it belongs
23385 echo "$LUA_PKG_ERRORS" >&5
23386
23387 :
23388 elif test $pkg_failed = untried; then
23389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23390 printf "%s\n" "no" >&6; }
23391 :
23392 else
23393 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23394 LUA_LIBS=$pkg_cv_LUA_LIBS
23395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23396 printf "%s\n" "yes" >&6; }
23397
23398
23399 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23400
23401 found_lua=y
23402 LUAPC=lua52
23403
23404 fi
23405
23406 fi
23407
23408 if test "$found_lua" != "y"
23409 then :
23410
23411
23412 pkg_failed=no
23413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua5.1 >= ${lua_min_version}" >&5
23414 printf %s "checking for lua5.1 >= ${lua_min_version}... " >&6; }
23415
23416 if test -n "$LUA_CFLAGS"; then
23417 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23418 elif test -n "$PKG_CONFIG"; then
23419 if test -n "$PKG_CONFIG" && \
23420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= \${lua_min_version}\""; } >&5
23421 ($PKG_CONFIG --exists --print-errors "lua5.1 >= ${lua_min_version}") 2>&5
23422 ac_status=$?
23423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; then
23425 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= ${lua_min_version}" 2>/dev/null`
23426 test "x$?" != "x0" && pkg_failed=yes
23427 else
23428 pkg_failed=yes
23429 fi
23430 else
23431 pkg_failed=untried
23432 fi
23433 if test -n "$LUA_LIBS"; then
23434 pkg_cv_LUA_LIBS="$LUA_LIBS"
23435 elif test -n "$PKG_CONFIG"; then
23436 if test -n "$PKG_CONFIG" && \
23437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= \${lua_min_version}\""; } >&5
23438 ($PKG_CONFIG --exists --print-errors "lua5.1 >= ${lua_min_version}") 2>&5
23439 ac_status=$?
23440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23441 test $ac_status = 0; }; then
23442 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= ${lua_min_version}" 2>/dev/null`
23443 test "x$?" != "x0" && pkg_failed=yes
23444 else
23445 pkg_failed=yes
23446 fi
23447 else
23448 pkg_failed=untried
23449 fi
23450
23451
23452
23453 if test $pkg_failed = yes; then
23454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23455 printf "%s\n" "no" >&6; }
23456
23457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23458 _pkg_short_errors_supported=yes
23459 else
23460 _pkg_short_errors_supported=no
23461 fi
23462 if test $_pkg_short_errors_supported = yes; then
23463 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= ${lua_min_version}" 2>&1`
23464 else
23465 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= ${lua_min_version}" 2>&1`
23466 fi
23467 # Put the nasty error message in config.log where it belongs
23468 echo "$LUA_PKG_ERRORS" >&5
23469
23470 :
23471 elif test $pkg_failed = untried; then
23472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23473 printf "%s\n" "no" >&6; }
23474 :
23475 else
23476 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23477 LUA_LIBS=$pkg_cv_LUA_LIBS
23478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23479 printf "%s\n" "yes" >&6; }
23480
23481
23482 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23483
23484 found_lua=y
23485 LUAPC=lua5.1
23486
23487 fi
23488
23489 fi
23490
23491 if test "$found_lua" != "y"
23492 then :
23493
23494
23495 pkg_failed=no
23496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua-5.1 >= ${lua_min_version}" >&5
23497 printf %s "checking for lua-5.1 >= ${lua_min_version}... " >&6; }
23498
23499 if test -n "$LUA_CFLAGS"; then
23500 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23501 elif test -n "$PKG_CONFIG"; then
23502 if test -n "$PKG_CONFIG" && \
23503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= \${lua_min_version}\""; } >&5
23504 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= ${lua_min_version}") 2>&5
23505 ac_status=$?
23506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23507 test $ac_status = 0; }; then
23508 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= ${lua_min_version}" 2>/dev/null`
23509 test "x$?" != "x0" && pkg_failed=yes
23510 else
23511 pkg_failed=yes
23512 fi
23513 else
23514 pkg_failed=untried
23515 fi
23516 if test -n "$LUA_LIBS"; then
23517 pkg_cv_LUA_LIBS="$LUA_LIBS"
23518 elif test -n "$PKG_CONFIG"; then
23519 if test -n "$PKG_CONFIG" && \
23520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= \${lua_min_version}\""; } >&5
23521 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= ${lua_min_version}") 2>&5
23522 ac_status=$?
23523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; then
23525 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= ${lua_min_version}" 2>/dev/null`
23526 test "x$?" != "x0" && pkg_failed=yes
23527 else
23528 pkg_failed=yes
23529 fi
23530 else
23531 pkg_failed=untried
23532 fi
23533
23534
23535
23536 if test $pkg_failed = yes; then
23537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23538 printf "%s\n" "no" >&6; }
23539
23540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23541 _pkg_short_errors_supported=yes
23542 else
23543 _pkg_short_errors_supported=no
23544 fi
23545 if test $_pkg_short_errors_supported = yes; then
23546 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= ${lua_min_version}" 2>&1`
23547 else
23548 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= ${lua_min_version}" 2>&1`
23549 fi
23550 # Put the nasty error message in config.log where it belongs
23551 echo "$LUA_PKG_ERRORS" >&5
23552
23553 :
23554 elif test $pkg_failed = untried; then
23555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23556 printf "%s\n" "no" >&6; }
23557 :
23558 else
23559 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23560 LUA_LIBS=$pkg_cv_LUA_LIBS
23561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23562 printf "%s\n" "yes" >&6; }
23563
23564
23565 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23566
23567 found_lua=y
23568 LUAPC=lua-5.1
23569
23570 fi
23571
23572 fi
23573
23574 if test "$found_lua" != "y"
23575 then :
23576
23577
23578 pkg_failed=no
23579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua51 >= ${lua_min_version}" >&5
23580 printf %s "checking for lua51 >= ${lua_min_version}... " >&6; }
23581
23582 if test -n "$LUA_CFLAGS"; then
23583 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23584 elif test -n "$PKG_CONFIG"; then
23585 if test -n "$PKG_CONFIG" && \
23586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= \${lua_min_version}\""; } >&5
23587 ($PKG_CONFIG --exists --print-errors "lua51 >= ${lua_min_version}") 2>&5
23588 ac_status=$?
23589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; then
23591 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= ${lua_min_version}" 2>/dev/null`
23592 test "x$?" != "x0" && pkg_failed=yes
23593 else
23594 pkg_failed=yes
23595 fi
23596 else
23597 pkg_failed=untried
23598 fi
23599 if test -n "$LUA_LIBS"; then
23600 pkg_cv_LUA_LIBS="$LUA_LIBS"
23601 elif test -n "$PKG_CONFIG"; then
23602 if test -n "$PKG_CONFIG" && \
23603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= \${lua_min_version}\""; } >&5
23604 ($PKG_CONFIG --exists --print-errors "lua51 >= ${lua_min_version}") 2>&5
23605 ac_status=$?
23606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23607 test $ac_status = 0; }; then
23608 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= ${lua_min_version}" 2>/dev/null`
23609 test "x$?" != "x0" && pkg_failed=yes
23610 else
23611 pkg_failed=yes
23612 fi
23613 else
23614 pkg_failed=untried
23615 fi
23616
23617
23618
23619 if test $pkg_failed = yes; then
23620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23621 printf "%s\n" "no" >&6; }
23622
23623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23624 _pkg_short_errors_supported=yes
23625 else
23626 _pkg_short_errors_supported=no
23627 fi
23628 if test $_pkg_short_errors_supported = yes; then
23629 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= ${lua_min_version}" 2>&1`
23630 else
23631 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= ${lua_min_version}" 2>&1`
23632 fi
23633 # Put the nasty error message in config.log where it belongs
23634 echo "$LUA_PKG_ERRORS" >&5
23635
23636 :
23637 elif test $pkg_failed = untried; then
23638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23639 printf "%s\n" "no" >&6; }
23640 :
23641 else
23642 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23643 LUA_LIBS=$pkg_cv_LUA_LIBS
23644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23645 printf "%s\n" "yes" >&6; }
23646
23647
23648 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23649
23650 found_lua=y
23651 LUAPC=lua51
23652
23653 fi
23654
23655 fi
23656
23657 if test "$found_lua" != "y"
23658 then :
23659
23660
23661 pkg_failed=no
23662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua >= ${lua_min_version}" >&5
23663 printf %s "checking for lua >= ${lua_min_version}... " >&6; }
23664
23665 if test -n "$LUA_CFLAGS"; then
23666 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23667 elif test -n "$PKG_CONFIG"; then
23668 if test -n "$PKG_CONFIG" && \
23669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_min_version}\""; } >&5
23670 ($PKG_CONFIG --exists --print-errors "lua >= ${lua_min_version}") 2>&5
23671 ac_status=$?
23672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673 test $ac_status = 0; }; then
23674 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= ${lua_min_version}" 2>/dev/null`
23675 test "x$?" != "x0" && pkg_failed=yes
23676 else
23677 pkg_failed=yes
23678 fi
23679 else
23680 pkg_failed=untried
23681 fi
23682 if test -n "$LUA_LIBS"; then
23683 pkg_cv_LUA_LIBS="$LUA_LIBS"
23684 elif test -n "$PKG_CONFIG"; then
23685 if test -n "$PKG_CONFIG" && \
23686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= \${lua_min_version}\""; } >&5
23687 ($PKG_CONFIG --exists --print-errors "lua >= ${lua_min_version}") 2>&5
23688 ac_status=$?
23689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23690 test $ac_status = 0; }; then
23691 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= ${lua_min_version}" 2>/dev/null`
23692 test "x$?" != "x0" && pkg_failed=yes
23693 else
23694 pkg_failed=yes
23695 fi
23696 else
23697 pkg_failed=untried
23698 fi
23699
23700
23701
23702 if test $pkg_failed = yes; then
23703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23704 printf "%s\n" "no" >&6; }
23705
23706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23707 _pkg_short_errors_supported=yes
23708 else
23709 _pkg_short_errors_supported=no
23710 fi
23711 if test $_pkg_short_errors_supported = yes; then
23712 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= ${lua_min_version}" 2>&1`
23713 else
23714 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= ${lua_min_version}" 2>&1`
23715 fi
23716 # Put the nasty error message in config.log where it belongs
23717 echo "$LUA_PKG_ERRORS" >&5
23718
23719 :
23720 elif test $pkg_failed = untried; then
23721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23722 printf "%s\n" "no" >&6; }
23723 :
23724 else
23725 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23726 LUA_LIBS=$pkg_cv_LUA_LIBS
23727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23728 printf "%s\n" "yes" >&6; }
23729
23730
23731 printf "%s\n" "#define HAVE_LUA 1" >>confdefs.h
23732
23733 found_lua=y
23734 LUAPC=lua
23735
23736 fi
23737
23738 fi
23739
23740
23741 fi
23742 ;;
23743 esac
23744 fi
23745
23746 if test -z "$LUAPC"
23747 then :
23748
23749 as_fn_error $? "No Lua not found, but is mandatory" "$LINENO" 5
23750
23751 fi
23752
23753 if test -n "x$LUAPC"; then
23754 LUA_TRUE=
23755 LUA_FALSE='#'
23756 else
23757 LUA_TRUE='#'
23758 LUA_FALSE=
23759 fi
23760
23761
23762 if test "x$LUAPC" = "xluajit"
23763 then :
23764
23765 # export all symbols with default visibility, to be able to use the Lua FFI interface
23766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding -rdynamic to export all symbols for the Lua FFI interface" >&5
23767 printf "%s\n" "$as_me: Adding -rdynamic to export all symbols for the Lua FFI interface" >&6;}
23768 LDFLAGS="$LDFLAGS -rdynamic"
23769
23770 fi
23771
23772
23773 if test "x$LUAPC" != "x"
23774 then :
23775
23776 OLD_CPPFLAGS="$CPPFLAGS"
23777 CPPFLAGS="$CPPFLAGS $LUA_CFLAGS"
23778 ac_fn_cxx_check_header_compile "$LINENO" "lua.hpp" "ac_cv_header_lua_hpp" "$ac_includes_default"
23779 if test "x$ac_cv_header_lua_hpp" = xyes
23780 then :
23781 have_lua_hpp=y
23782 fi
23783
23784 CPPFLAGS="$OLD_CPPFLAGS"
23785
23786 fi
23787 if test x"$have_lua_hpp" = "xy" ; then
23788 HAVE_LUA_HPP_TRUE=
23789 HAVE_LUA_HPP_FALSE='#'
23790 else
23791 HAVE_LUA_HPP_TRUE='#'
23792 HAVE_LUA_HPP_FALSE=
23793 fi
23794
23795
23796
23797 if false; then
23798 HAVE_CDB_TRUE=
23799 HAVE_CDB_FALSE='#'
23800 else
23801 HAVE_CDB_TRUE='#'
23802 HAVE_CDB_FALSE=
23803 fi
23804
23805 if false; then
23806 HAVE_GNUTLS_TRUE=
23807 HAVE_GNUTLS_FALSE='#'
23808 else
23809 HAVE_GNUTLS_TRUE='#'
23810 HAVE_GNUTLS_FALSE=
23811 fi
23812
23813 if false; then
23814 HAVE_LIBSSL_TRUE=
23815 HAVE_LIBSSL_FALSE='#'
23816 else
23817 HAVE_LIBSSL_TRUE='#'
23818 HAVE_LIBSSL_FALSE=
23819 fi
23820
23821 if false; then
23822 HAVE_LMDB_TRUE=
23823 HAVE_LMDB_FALSE='#'
23824 else
23825 HAVE_LMDB_TRUE='#'
23826 HAVE_LMDB_FALSE=
23827 fi
23828
23829 if false; then
23830 HAVE_NGHTTP2_TRUE=
23831 HAVE_NGHTTP2_FALSE='#'
23832 else
23833 HAVE_NGHTTP2_TRUE='#'
23834 HAVE_NGHTTP2_FALSE=
23835 fi
23836
23837
23838
23839 found=false
23840
23841 # Check whether --with-libcrypto was given.
23842 if test ${with_libcrypto+y}
23843 then :
23844 withval=$with_libcrypto;
23845 case "$withval" in
23846 "" | y | ye | yes | n | no)
23847 as_fn_error $? "Invalid --with-libcrypto value" "$LINENO" 5
23848 ;;
23849 *) ssldirs="$withval"
23850 ;;
23851 esac
23852
23853 else case e in #(
23854 e)
23855 # if pkg-config is installed and openssl has installed a .pc file,
23856 # then use that information and don't search ssldirs
23857 if test -n "$ac_tool_prefix"; then
23858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23861 printf %s "checking for $ac_word... " >&6; }
23862 if test ${ac_cv_prog_PKG_CONFIG+y}
23863 then :
23864 printf %s "(cached) " >&6
23865 else case e in #(
23866 e) if test -n "$PKG_CONFIG"; then
23867 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
23868 else
23869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23870 for as_dir in $PATH
23871 do
23872 IFS=$as_save_IFS
23873 case $as_dir in #(((
23874 '') as_dir=./ ;;
23875 */) ;;
23876 *) as_dir=$as_dir/ ;;
23877 esac
23878 for ac_exec_ext in '' $ac_executable_extensions; do
23879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23880 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
23881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23882 break 2
23883 fi
23884 done
23885 done
23886 IFS=$as_save_IFS
23887
23888 fi ;;
23889 esac
23890 fi
23891 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
23892 if test -n "$PKG_CONFIG"; then
23893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23894 printf "%s\n" "$PKG_CONFIG" >&6; }
23895 else
23896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 printf "%s\n" "no" >&6; }
23898 fi
23899
23900
23901 fi
23902 if test -z "$ac_cv_prog_PKG_CONFIG"; then
23903 ac_ct_PKG_CONFIG=$PKG_CONFIG
23904 # Extract the first word of "pkg-config", so it can be a program name with args.
23905 set dummy pkg-config; ac_word=$2
23906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23907 printf %s "checking for $ac_word... " >&6; }
23908 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
23909 then :
23910 printf %s "(cached) " >&6
23911 else case e in #(
23912 e) if test -n "$ac_ct_PKG_CONFIG"; then
23913 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
23914 else
23915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23916 for as_dir in $PATH
23917 do
23918 IFS=$as_save_IFS
23919 case $as_dir in #(((
23920 '') as_dir=./ ;;
23921 */) ;;
23922 *) as_dir=$as_dir/ ;;
23923 esac
23924 for ac_exec_ext in '' $ac_executable_extensions; do
23925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23926 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
23927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23928 break 2
23929 fi
23930 done
23931 done
23932 IFS=$as_save_IFS
23933
23934 fi ;;
23935 esac
23936 fi
23937 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
23938 if test -n "$ac_ct_PKG_CONFIG"; then
23939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
23940 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
23941 else
23942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23943 printf "%s\n" "no" >&6; }
23944 fi
23945
23946 if test "x$ac_ct_PKG_CONFIG" = x; then
23947 PKG_CONFIG=""
23948 else
23949 case $cross_compiling:$ac_tool_warned in
23950 yes:)
23951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23953 ac_tool_warned=yes ;;
23954 esac
23955 PKG_CONFIG=$ac_ct_PKG_CONFIG
23956 fi
23957 else
23958 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
23959 fi
23960
23961 if test x"$PKG_CONFIG" != x""; then
23962 LIBCRYPTO_LDFLAGS=`$PKG_CONFIG libcrypto --libs-only-L 2>/dev/null`
23963 if test $? = 0; then
23964 LIBCRYPTO_LIBS=`$PKG_CONFIG libcrypto --libs-only-l 2>/dev/null`
23965 LIBCRYPTO_INCLUDES=`$PKG_CONFIG libcrypto --cflags-only-I 2>/dev/null`
23966 ssldir=`$PKG_CONFIG libcrypto --variable=prefix 2>/dev/null`
23967 sslincdir=`$PKG_CONFIG libcrypto --variable=includedir 2>/dev/null`
23968 found=true
23969 fi
23970 fi
23971
23972 # no such luck; use some default ssldirs
23973 if ! $found; then
23974 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
23975 fi
23976
23977 ;;
23978 esac
23979 fi
23980
23981
23982
23983 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
23984 # an 'openssl' subdirectory
23985
23986 if ! $found; then
23987 LIBCRYPTO_INCLUDES=
23988 for ssldir in $ssldirs; do
23989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/crypto.h in $ssldir" >&5
23990 printf %s "checking for openssl/crypto.h in $ssldir... " >&6; }
23991 if test -f "$ssldir/include/openssl/crypto.h"; then
23992 LIBCRYPTO_INCLUDES="-I$ssldir/include"
23993 LIBCRYPTO_LDFLAGS="-L$ssldir/lib"
23994 LIBCRYPTO_LIBS="-lcrypto"
23995 sslincdir="$ssldir/include"
23996 found=true
23997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23998 printf "%s\n" "yes" >&6; }
23999 break
24000 else
24001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24002 printf "%s\n" "no" >&6; }
24003 fi
24004 done
24005
24006 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
24007 # it will just work!
24008 fi
24009
24010 if $found; then
24011
24012 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
24013
24014 fi
24015
24016 # try the preprocessor and linker with our new flags,
24017 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
24018
24019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL's libcrypto works" >&5
24020 printf %s "checking whether compiling and linking against OpenSSL's libcrypto works... " >&6; }
24021 echo "Trying link with LIBCRYPTO_LDFLAGS=$LIBCRYPTO_LDFLAGS;" \
24022 "LIBCRYPTO_LIBS=$LIBCRYPTO_LIBS; LIBCRYPTO_INCLUDES=$LIBCRYPTO_INCLUDES" >&5
24023
24024 save_LIBS="$LIBS"
24025 save_LDFLAGS="$LDFLAGS"
24026 save_CPPFLAGS="$CPPFLAGS"
24027 LDFLAGS="$LDFLAGS $LIBCRYPTO_LDFLAGS"
24028 LIBS="$LIBCRYPTO_LIBS $LIBS"
24029 CPPFLAGS="$LIBCRYPTO_INCLUDES $CPPFLAGS"
24030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h. */
24032 #include <openssl/bn.h>
24033 int
24034 main (void)
24035 {
24036 BN_new()
24037 ;
24038 return 0;
24039 }
24040 _ACEOF
24041 if ac_fn_cxx_try_link "$LINENO"
24042 then :
24043
24044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24045 printf "%s\n" "yes" >&6; }
24046 ac_fn_cxx_check_func "$LINENO" "RAND_bytes" "ac_cv_func_RAND_bytes"
24047 if test "x$ac_cv_func_RAND_bytes" = xyes
24048 then :
24049 printf "%s\n" "#define HAVE_RAND_BYTES 1" >>confdefs.h
24050
24051 fi
24052 ac_fn_cxx_check_func "$LINENO" "RAND_pseudo_bytes" "ac_cv_func_RAND_pseudo_bytes"
24053 if test "x$ac_cv_func_RAND_pseudo_bytes" = xyes
24054 then :
24055 printf "%s\n" "#define HAVE_RAND_PSEUDO_BYTES 1" >>confdefs.h
24056
24057 fi
24058 ac_fn_cxx_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp"
24059 if test "x$ac_cv_func_CRYPTO_memcmp" = xyes
24060 then :
24061 printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h
24062
24063 fi
24064 ac_fn_cxx_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
24065 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
24066 then :
24067 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
24068
24069 fi
24070 ac_fn_cxx_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
24071 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
24072 then :
24073 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
24074
24075 fi
24076 ac_fn_cxx_check_func "$LINENO" "EVP_MD_CTX_free" "ac_cv_func_EVP_MD_CTX_free"
24077 if test "x$ac_cv_func_EVP_MD_CTX_free" = xyes
24078 then :
24079 printf "%s\n" "#define HAVE_EVP_MD_CTX_FREE 1" >>confdefs.h
24080
24081 fi
24082 ac_fn_cxx_check_func "$LINENO" "RSA_get0_key" "ac_cv_func_RSA_get0_key"
24083 if test "x$ac_cv_func_RSA_get0_key" = xyes
24084 then :
24085 printf "%s\n" "#define HAVE_RSA_GET0_KEY 1" >>confdefs.h
24086
24087 fi
24088
24089 # you might be wondering why the stdarg.h and stddef.h includes,
24090 # in which case please have a look at https://github.com/PowerDNS/pdns/issues/12926
24091 # and weep, yelling at Red Hat
24092 ac_fn_check_decl "$LINENO" "EVP_PKEY_CTX_set1_scrypt_salt" "ac_cv_have_decl_EVP_PKEY_CTX_set1_scrypt_salt" "#include <stdarg.h>
24093 #include <stddef.h>
24094 #include <openssl/kdf.h>
24095 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
24096 if test "x$ac_cv_have_decl_EVP_PKEY_CTX_set1_scrypt_salt" = xyes
24097 then :
24098
24099 printf "%s\n" "#define HAVE_EVP_PKEY_CTX_SET1_SCRYPT_SALT 1" >>confdefs.h
24100
24101 fi
24102
24103
24104 else case e in #(
24105 e)
24106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107 printf "%s\n" "no" >&6; }
24108
24109 ;;
24110 esac
24111 fi
24112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24113 conftest$ac_exeext conftest.$ac_ext
24114 CPPFLAGS="$save_CPPFLAGS"
24115 LDFLAGS="$save_LDFLAGS"
24116 LIBS="$save_LIBS"
24117
24118
24119
24120
24121 if test "x$LIBCRYPTO_LIBS" != "x"; then
24122 HAVE_LIBCRYPTO_TRUE=
24123 HAVE_LIBCRYPTO_FALSE='#'
24124 else
24125 HAVE_LIBCRYPTO_TRUE='#'
24126 HAVE_LIBCRYPTO_FALSE=
24127 fi
24128
24129
24130
24131
24132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenSSL >= 3.0 TLS providers (experimental)" >&5
24133 printf %s "checking whether to enable OpenSSL >= 3.0 TLS providers (experimental)... " >&6; }
24134 # Check whether --enable-tls-providers was given.
24135 if test ${enable_tls_providers+y}
24136 then :
24137 enableval=$enable_tls_providers; enable_tls_providers=$enableval
24138 else case e in #(
24139 e) enable_tls_providers=no
24140 ;;
24141 esac
24142 fi
24143
24144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tls_providers" >&5
24145 printf "%s\n" "$enable_tls_providers" >&6; }
24146 if test "x$enable_tls_providers" != "xno"; then
24147 HAVE_TLS_PROVIDERS_TRUE=
24148 HAVE_TLS_PROVIDERS_FALSE='#'
24149 else
24150 HAVE_TLS_PROVIDERS_TRUE='#'
24151 HAVE_TLS_PROVIDERS_FALSE=
24152 fi
24153
24154
24155
24156 pkg_failed=no
24157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl >= 3.0" >&5
24158 printf %s "checking for libssl >= 3.0... " >&6; }
24159
24160 if test -n "$LIBSSL_CFLAGS"; then
24161 pkg_cv_LIBSSL_CFLAGS="$LIBSSL_CFLAGS"
24162 elif test -n "$PKG_CONFIG"; then
24163 if test -n "$PKG_CONFIG" && \
24164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 3.0\""; } >&5
24165 ($PKG_CONFIG --exists --print-errors "libssl >= 3.0") 2>&5
24166 ac_status=$?
24167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168 test $ac_status = 0; }; then
24169 pkg_cv_LIBSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 3.0" 2>/dev/null`
24170 test "x$?" != "x0" && pkg_failed=yes
24171 else
24172 pkg_failed=yes
24173 fi
24174 else
24175 pkg_failed=untried
24176 fi
24177 if test -n "$LIBSSL_LIBS"; then
24178 pkg_cv_LIBSSL_LIBS="$LIBSSL_LIBS"
24179 elif test -n "$PKG_CONFIG"; then
24180 if test -n "$PKG_CONFIG" && \
24181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 3.0\""; } >&5
24182 ($PKG_CONFIG --exists --print-errors "libssl >= 3.0") 2>&5
24183 ac_status=$?
24184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24185 test $ac_status = 0; }; then
24186 pkg_cv_LIBSSL_LIBS=`$PKG_CONFIG --libs "libssl >= 3.0" 2>/dev/null`
24187 test "x$?" != "x0" && pkg_failed=yes
24188 else
24189 pkg_failed=yes
24190 fi
24191 else
24192 pkg_failed=untried
24193 fi
24194
24195
24196
24197 if test $pkg_failed = yes; then
24198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24199 printf "%s\n" "no" >&6; }
24200
24201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24202 _pkg_short_errors_supported=yes
24203 else
24204 _pkg_short_errors_supported=no
24205 fi
24206 if test $_pkg_short_errors_supported = yes; then
24207 LIBSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 3.0" 2>&1`
24208 else
24209 LIBSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 3.0" 2>&1`
24210 fi
24211 # Put the nasty error message in config.log where it belongs
24212 echo "$LIBSSL_PKG_ERRORS" >&5
24213
24214 :
24215 elif test $pkg_failed = untried; then
24216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24217 printf "%s\n" "no" >&6; }
24218 :
24219 else
24220 LIBSSL_CFLAGS=$pkg_cv_LIBSSL_CFLAGS
24221 LIBSSL_LIBS=$pkg_cv_LIBSSL_LIBS
24222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24223 printf "%s\n" "yes" >&6; }
24224
24225 HAVE_LIBSSL_3_PLUS=1
24226
24227 printf "%s\n" "#define HAVE_LIBSSL_3_PLUS 1" >>confdefs.h
24228
24229
24230 fi
24231
24232 if test -z "$HAVE_TLS_PROVIDERS_TRUE"; then :
24233
24234
24235 printf "%s\n" "#define HAVE_TLS_PROVIDERS 1" >>confdefs.h
24236
24237 if test "x$HAVE_LIBSSL_3_PLUS" != "x1"
24238 then :
24239
24240 as_fn_error $? "TLS providers support requires OpenSSL >= 3.0" "$LINENO" 5
24241
24242 fi
24243
24244 fi
24245
24246
24247
24248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable DNS over TLS support" >&5
24249 printf %s "checking whether to enable DNS over TLS support... " >&6; }
24250 # Check whether --enable-dns-over-tls was given.
24251 if test ${enable_dns_over_tls+y}
24252 then :
24253 enableval=$enable_dns_over_tls; enable_dns_over_tls=$enableval
24254 else case e in #(
24255 e) enable_dns_over_tls=no
24256 ;;
24257 esac
24258 fi
24259
24260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_tls" >&5
24261 printf "%s\n" "$enable_dns_over_tls" >&6; }
24262 if test "x$enable_dns_over_tls" != "xno"; then
24263 HAVE_DNS_OVER_TLS_TRUE=
24264 HAVE_DNS_OVER_TLS_FALSE='#'
24265 else
24266 HAVE_DNS_OVER_TLS_TRUE='#'
24267 HAVE_DNS_OVER_TLS_FALSE=
24268 fi
24269
24270
24271 if test -z "$HAVE_DNS_OVER_TLS_TRUE"; then :
24272
24273
24274 printf "%s\n" "#define HAVE_DNS_OVER_TLS 1" >>confdefs.h
24275
24276
24277 fi
24278
24279
24280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable incoming DNS over HTTPS (DoH) support" >&5
24281 printf %s "checking whether to enable incoming DNS over HTTPS (DoH) support... " >&6; }
24282 # Check whether --enable-dns-over-https was given.
24283 if test ${enable_dns_over_https+y}
24284 then :
24285 enableval=$enable_dns_over_https; enable_dns_over_https=$enableval
24286 else case e in #(
24287 e) enable_dns_over_https=no
24288 ;;
24289 esac
24290 fi
24291
24292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_https" >&5
24293 printf "%s\n" "$enable_dns_over_https" >&6; }
24294 if test "x$enable_dns_over_https" != "xno"; then
24295 HAVE_DNS_OVER_HTTPS_TRUE=
24296 HAVE_DNS_OVER_HTTPS_FALSE='#'
24297 else
24298 HAVE_DNS_OVER_HTTPS_TRUE='#'
24299 HAVE_DNS_OVER_HTTPS_FALSE=
24300 fi
24301
24302
24303 if test -z "$HAVE_DNS_OVER_HTTPS_TRUE"; then :
24304
24305
24306 printf "%s\n" "#define HAVE_DNS_OVER_HTTPS 1" >>confdefs.h
24307
24308
24309 fi
24310
24311
24312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable incoming DNS over QUIC (DoQ) support" >&5
24313 printf %s "checking whether to enable incoming DNS over QUIC (DoQ) support... " >&6; }
24314 # Check whether --enable-dns-over-quic was given.
24315 if test ${enable_dns_over_quic+y}
24316 then :
24317 enableval=$enable_dns_over_quic; enable_dns_over_quic=$enableval
24318 else case e in #(
24319 e) enable_dns_over_quic=no
24320 ;;
24321 esac
24322 fi
24323
24324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_quic" >&5
24325 printf "%s\n" "$enable_dns_over_quic" >&6; }
24326 if test "x$enable_dns_over_quic" != "xno"; then
24327 HAVE_DNS_OVER_QUIC_TRUE=
24328 HAVE_DNS_OVER_QUIC_FALSE='#'
24329 else
24330 HAVE_DNS_OVER_QUIC_TRUE='#'
24331 HAVE_DNS_OVER_QUIC_FALSE=
24332 fi
24333
24334
24335 if test -z "$HAVE_DNS_OVER_QUIC_TRUE"; then :
24336
24337
24338 printf "%s\n" "#define HAVE_DNS_OVER_QUIC 1" >>confdefs.h
24339
24340
24341 fi
24342
24343
24344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable incoming DNS over HTTP3 (DoH3) support" >&5
24345 printf %s "checking whether to enable incoming DNS over HTTP3 (DoH3) support... " >&6; }
24346 # Check whether --enable-dns-over-http3 was given.
24347 if test ${enable_dns_over_http3+y}
24348 then :
24349 enableval=$enable_dns_over_http3; enable_dns_over_http3=$enableval
24350 else case e in #(
24351 e) enable_dns_over_http3=no
24352 ;;
24353 esac
24354 fi
24355
24356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dns_over_http3" >&5
24357 printf "%s\n" "$enable_dns_over_http3" >&6; }
24358 if test "x$enable_dns_over_http3" != "xno"; then
24359 HAVE_DNS_OVER_HTTP3_TRUE=
24360 HAVE_DNS_OVER_HTTP3_FALSE='#'
24361 else
24362 HAVE_DNS_OVER_HTTP3_TRUE='#'
24363 HAVE_DNS_OVER_HTTP3_FALSE=
24364 fi
24365
24366
24367 if test -z "$HAVE_DNS_OVER_HTTP3_TRUE"; then :
24368
24369
24370 printf "%s\n" "#define HAVE_DNS_OVER_HTTP3 1" >>confdefs.h
24371
24372
24373 fi
24374
24375
24376 if test "x$enable_dns_over_tls" != "xno" -o "x$enable_dns_over_https" != "xno" -o "x$enable_dns_over_quic" != "xno"
24377 then :
24378
24379
24380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in OpenSSL libssl" >&5
24381 printf %s "checking whether we will be linking in OpenSSL libssl... " >&6; }
24382 HAVE_LIBSSL=0
24383
24384 # Check whether --with-libssl was given.
24385 if test ${with_libssl+y}
24386 then :
24387 withval=$with_libssl; with_libssl=$withval
24388 else case e in #(
24389 e) with_libssl=auto ;;
24390 esac
24391 fi
24392
24393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libssl" >&5
24394 printf "%s\n" "$with_libssl" >&6; }
24395
24396 if test "x$with_libssl" != "xno"
24397 then :
24398
24399 if test "x$with_libssl" = "xyes" -o "x$with_libssl" = "xauto"
24400 then :
24401
24402
24403 pkg_failed=no
24404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
24405 printf %s "checking for libssl... " >&6; }
24406
24407 if test -n "$LIBSSL_CFLAGS"; then
24408 pkg_cv_LIBSSL_CFLAGS="$LIBSSL_CFLAGS"
24409 elif test -n "$PKG_CONFIG"; then
24410 if test -n "$PKG_CONFIG" && \
24411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
24412 ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
24413 ac_status=$?
24414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24415 test $ac_status = 0; }; then
24416 pkg_cv_LIBSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
24417 test "x$?" != "x0" && pkg_failed=yes
24418 else
24419 pkg_failed=yes
24420 fi
24421 else
24422 pkg_failed=untried
24423 fi
24424 if test -n "$LIBSSL_LIBS"; then
24425 pkg_cv_LIBSSL_LIBS="$LIBSSL_LIBS"
24426 elif test -n "$PKG_CONFIG"; then
24427 if test -n "$PKG_CONFIG" && \
24428 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
24429 ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
24430 ac_status=$?
24431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432 test $ac_status = 0; }; then
24433 pkg_cv_LIBSSL_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
24434 test "x$?" != "x0" && pkg_failed=yes
24435 else
24436 pkg_failed=yes
24437 fi
24438 else
24439 pkg_failed=untried
24440 fi
24441
24442
24443
24444 if test $pkg_failed = yes; then
24445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24446 printf "%s\n" "no" >&6; }
24447
24448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24449 _pkg_short_errors_supported=yes
24450 else
24451 _pkg_short_errors_supported=no
24452 fi
24453 if test $_pkg_short_errors_supported = yes; then
24454 LIBSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl" 2>&1`
24455 else
24456 LIBSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl" 2>&1`
24457 fi
24458 # Put the nasty error message in config.log where it belongs
24459 echo "$LIBSSL_PKG_ERRORS" >&5
24460
24461 :
24462 elif test $pkg_failed = untried; then
24463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24464 printf "%s\n" "no" >&6; }
24465 :
24466 else
24467 LIBSSL_CFLAGS=$pkg_cv_LIBSSL_CFLAGS
24468 LIBSSL_LIBS=$pkg_cv_LIBSSL_LIBS
24469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24470 printf "%s\n" "yes" >&6; }
24471
24472 HAVE_LIBSSL=1
24473
24474 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
24475
24476 save_CFLAGS=$CFLAGS
24477 save_LIBS=$LIBS
24478 CFLAGS="$LIBSSL_CFLAGS $CFLAGS"
24479 LIBS="$LIBSSL_LIBS -lcrypto $LIBS"
24480 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites"
24481 if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes
24482 then :
24483 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h
24484
24485 fi
24486 ac_fn_cxx_check_func "$LINENO" "OCSP_basic_sign" "ac_cv_func_OCSP_basic_sign"
24487 if test "x$ac_cv_func_OCSP_basic_sign" = xyes
24488 then :
24489 printf "%s\n" "#define HAVE_OCSP_BASIC_SIGN 1" >>confdefs.h
24490
24491 fi
24492 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_num_tickets" "ac_cv_func_SSL_CTX_set_num_tickets"
24493 if test "x$ac_cv_func_SSL_CTX_set_num_tickets" = xyes
24494 then :
24495 printf "%s\n" "#define HAVE_SSL_CTX_SET_NUM_TICKETS 1" >>confdefs.h
24496
24497 fi
24498 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_keylog_callback" "ac_cv_func_SSL_CTX_set_keylog_callback"
24499 if test "x$ac_cv_func_SSL_CTX_set_keylog_callback" = xyes
24500 then :
24501 printf "%s\n" "#define HAVE_SSL_CTX_SET_KEYLOG_CALLBACK 1" >>confdefs.h
24502
24503 fi
24504 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_get0_privatekey" "ac_cv_func_SSL_CTX_get0_privatekey"
24505 if test "x$ac_cv_func_SSL_CTX_get0_privatekey" = xyes
24506 then :
24507 printf "%s\n" "#define HAVE_SSL_CTX_GET0_PRIVATEKEY 1" >>confdefs.h
24508
24509 fi
24510 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version"
24511 if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes
24512 then :
24513 printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h
24514
24515 fi
24516 ac_fn_cxx_check_func "$LINENO" "SSL_set_hostflags" "ac_cv_func_SSL_set_hostflags"
24517 if test "x$ac_cv_func_SSL_set_hostflags" = xyes
24518 then :
24519 printf "%s\n" "#define HAVE_SSL_SET_HOSTFLAGS 1" >>confdefs.h
24520
24521 fi
24522 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_alpn_protos" "ac_cv_func_SSL_CTX_set_alpn_protos"
24523 if test "x$ac_cv_func_SSL_CTX_set_alpn_protos" = xyes
24524 then :
24525 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1" >>confdefs.h
24526
24527 fi
24528 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_next_proto_select_cb" "ac_cv_func_SSL_CTX_set_next_proto_select_cb"
24529 if test "x$ac_cv_func_SSL_CTX_set_next_proto_select_cb" = xyes
24530 then :
24531 printf "%s\n" "#define HAVE_SSL_CTX_SET_NEXT_PROTO_SELECT_CB 1" >>confdefs.h
24532
24533 fi
24534 ac_fn_cxx_check_func "$LINENO" "SSL_get0_alpn_selected" "ac_cv_func_SSL_get0_alpn_selected"
24535 if test "x$ac_cv_func_SSL_get0_alpn_selected" = xyes
24536 then :
24537 printf "%s\n" "#define HAVE_SSL_GET0_ALPN_SELECTED 1" >>confdefs.h
24538
24539 fi
24540 ac_fn_cxx_check_func "$LINENO" "SSL_get0_next_proto_negotiated" "ac_cv_func_SSL_get0_next_proto_negotiated"
24541 if test "x$ac_cv_func_SSL_get0_next_proto_negotiated" = xyes
24542 then :
24543 printf "%s\n" "#define HAVE_SSL_GET0_NEXT_PROTO_NEGOTIATED 1" >>confdefs.h
24544
24545 fi
24546 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_set_alpn_select_cb" "ac_cv_func_SSL_CTX_set_alpn_select_cb"
24547 if test "x$ac_cv_func_SSL_CTX_set_alpn_select_cb" = xyes
24548 then :
24549 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1" >>confdefs.h
24550
24551 fi
24552 ac_fn_cxx_check_func "$LINENO" "SSL_CTX_use_cert_and_key" "ac_cv_func_SSL_CTX_use_cert_and_key"
24553 if test "x$ac_cv_func_SSL_CTX_use_cert_and_key" = xyes
24554 then :
24555 printf "%s\n" "#define HAVE_SSL_CTX_USE_CERT_AND_KEY 1" >>confdefs.h
24556
24557 fi
24558
24559 CFLAGS=$save_CFLAGS
24560 LIBS=$save_LIBS
24561
24562
24563 fi
24564
24565 fi
24566
24567 fi
24568 if test "x$LIBSSL_LIBS" != "x"; then
24569 HAVE_LIBSSL_TRUE=
24570 HAVE_LIBSSL_FALSE='#'
24571 else
24572 HAVE_LIBSSL_TRUE='#'
24573 HAVE_LIBSSL_FALSE=
24574 fi
24575
24576 if test "x$with_libssl" = "xyes"
24577 then :
24578
24579 if test x"$LIBSSL_LIBS" = "x"
24580 then :
24581
24582 as_fn_error $? "OpenSSL libssl requested but libraries were not found" "$LINENO" 5
24583
24584 fi
24585
24586 fi
24587
24588 if test "x$enable_dns_over_tls" != "xno" -o "x$enable_dns_over_https" != "xno"
24589 then :
24590
24591
24592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in GnuTLS" >&5
24593 printf %s "checking whether we will be linking in GnuTLS... " >&6; }
24594 HAVE_GNUTLS=0
24595
24596 # Check whether --with-gnutls was given.
24597 if test ${with_gnutls+y}
24598 then :
24599 withval=$with_gnutls; with_gnutls=$withval
24600 else case e in #(
24601 e) with_gnutls=auto ;;
24602 esac
24603 fi
24604
24605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_gnutls" >&5
24606 printf "%s\n" "$with_gnutls" >&6; }
24607
24608 if test "x$with_gnutls" != "xno"
24609 then :
24610
24611 if test "x$with_gnutls" = "xyes" -o "x$with_gnutls" = "xauto"
24612 then :
24613
24614 # we require gnutls_certificate_set_x509_key_file, added in 3.1.11
24615
24616 pkg_failed=no
24617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.1.11" >&5
24618 printf %s "checking for gnutls >= 3.1.11... " >&6; }
24619
24620 if test -n "$GNUTLS_CFLAGS"; then
24621 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
24622 elif test -n "$PKG_CONFIG"; then
24623 if test -n "$PKG_CONFIG" && \
24624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.1.11\""; } >&5
24625 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.1.11") 2>&5
24626 ac_status=$?
24627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; then
24629 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.1.11" 2>/dev/null`
24630 test "x$?" != "x0" && pkg_failed=yes
24631 else
24632 pkg_failed=yes
24633 fi
24634 else
24635 pkg_failed=untried
24636 fi
24637 if test -n "$GNUTLS_LIBS"; then
24638 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
24639 elif test -n "$PKG_CONFIG"; then
24640 if test -n "$PKG_CONFIG" && \
24641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.1.11\""; } >&5
24642 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.1.11") 2>&5
24643 ac_status=$?
24644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24645 test $ac_status = 0; }; then
24646 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.1.11" 2>/dev/null`
24647 test "x$?" != "x0" && pkg_failed=yes
24648 else
24649 pkg_failed=yes
24650 fi
24651 else
24652 pkg_failed=untried
24653 fi
24654
24655
24656
24657 if test $pkg_failed = yes; then
24658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24659 printf "%s\n" "no" >&6; }
24660
24661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24662 _pkg_short_errors_supported=yes
24663 else
24664 _pkg_short_errors_supported=no
24665 fi
24666 if test $_pkg_short_errors_supported = yes; then
24667 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.1.11" 2>&1`
24668 else
24669 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.1.11" 2>&1`
24670 fi
24671 # Put the nasty error message in config.log where it belongs
24672 echo "$GNUTLS_PKG_ERRORS" >&5
24673
24674 :
24675 elif test $pkg_failed = untried; then
24676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24677 printf "%s\n" "no" >&6; }
24678 :
24679 else
24680 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
24681 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
24682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24683 printf "%s\n" "yes" >&6; }
24684
24685 HAVE_GNUTLS=1
24686
24687 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
24688
24689 save_CFLAGS=$CFLAGS
24690 save_LIBS=$LIBS
24691 CFLAGS="$GNUTLS_CFLAGS $CFLAGS"
24692 LIBS="$GNUTLS_LIBS $LIBS"
24693 ac_fn_cxx_check_func "$LINENO" "gnutls_memset" "ac_cv_func_gnutls_memset"
24694 if test "x$ac_cv_func_gnutls_memset" = xyes
24695 then :
24696 printf "%s\n" "#define HAVE_GNUTLS_MEMSET 1" >>confdefs.h
24697
24698 fi
24699 ac_fn_cxx_check_func "$LINENO" "gnutls_session_set_verify_cert" "ac_cv_func_gnutls_session_set_verify_cert"
24700 if test "x$ac_cv_func_gnutls_session_set_verify_cert" = xyes
24701 then :
24702 printf "%s\n" "#define HAVE_GNUTLS_SESSION_SET_VERIFY_CERT 1" >>confdefs.h
24703
24704 fi
24705 ac_fn_cxx_check_func "$LINENO" "gnutls_session_get_verify_cert_status" "ac_cv_func_gnutls_session_get_verify_cert_status"
24706 if test "x$ac_cv_func_gnutls_session_get_verify_cert_status" = xyes
24707 then :
24708 printf "%s\n" "#define HAVE_GNUTLS_SESSION_GET_VERIFY_CERT_STATUS 1" >>confdefs.h
24709
24710 fi
24711 ac_fn_cxx_check_func "$LINENO" "gnutls_alpn_set_protocols" "ac_cv_func_gnutls_alpn_set_protocols"
24712 if test "x$ac_cv_func_gnutls_alpn_set_protocols" = xyes
24713 then :
24714 printf "%s\n" "#define HAVE_GNUTLS_ALPN_SET_PROTOCOLS 1" >>confdefs.h
24715
24716 fi
24717
24718 CFLAGS=$save_CFLAGS
24719 LIBS=$save_LIBS
24720
24721
24722 fi
24723
24724 fi
24725
24726 fi
24727 if test "x$GNUTLS_LIBS" != "x"; then
24728 HAVE_GNUTLS_TRUE=
24729 HAVE_GNUTLS_FALSE='#'
24730 else
24731 HAVE_GNUTLS_TRUE='#'
24732 HAVE_GNUTLS_FALSE=
24733 fi
24734
24735 if test "x$with_gnutls" = "xyes"
24736 then :
24737
24738 if test x"$GNUTLS_LIBS" = "x"
24739 then :
24740
24741 as_fn_error $? "GnuTLS requested but libraries were not found" "$LINENO" 5
24742
24743 fi
24744
24745 fi
24746
24747
24748 fi
24749
24750 fi
24751
24752 if test "x$enable_dns_over_tls" != "xno"
24753 then :
24754
24755 if test "x$HAVE_GNUTLS" != "x1" -a "x$HAVE_LIBSSL" != "x1"
24756 then :
24757
24758 as_fn_error $? "DNS over TLS support requested but neither GnuTLS nor OpenSSL are available" "$LINENO" 5
24759
24760 fi
24761
24762 fi
24763
24764 if test "x$enable_dns_over_https" != "xno"
24765 then :
24766
24767
24768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in nghttp2" >&5
24769 printf %s "checking whether we will be linking in nghttp2... " >&6; }
24770 HAVE_NGHTTP2=0
24771
24772 # Check whether --with-nghttp2 was given.
24773 if test ${with_nghttp2+y}
24774 then :
24775 withval=$with_nghttp2; with_nghttp2=$withval
24776 else case e in #(
24777 e) with_nghttp2=auto ;;
24778 esac
24779 fi
24780
24781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_nghttp2" >&5
24782 printf "%s\n" "$with_nghttp2" >&6; }
24783
24784 if test "x$with_nghttp2" != "xno"
24785 then :
24786
24787 if test "x$with_nghttp2" = "xyes" -o "x$with_nghttp2" = "xauto"
24788 then :
24789
24790
24791 pkg_failed=no
24792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
24793 printf %s "checking for libnghttp2... " >&6; }
24794
24795 if test -n "$NGHTTP2_CFLAGS"; then
24796 pkg_cv_NGHTTP2_CFLAGS="$NGHTTP2_CFLAGS"
24797 elif test -n "$PKG_CONFIG"; then
24798 if test -n "$PKG_CONFIG" && \
24799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2\""; } >&5
24800 ($PKG_CONFIG --exists --print-errors "libnghttp2") 2>&5
24801 ac_status=$?
24802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; then
24804 pkg_cv_NGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2" 2>/dev/null`
24805 test "x$?" != "x0" && pkg_failed=yes
24806 else
24807 pkg_failed=yes
24808 fi
24809 else
24810 pkg_failed=untried
24811 fi
24812 if test -n "$NGHTTP2_LIBS"; then
24813 pkg_cv_NGHTTP2_LIBS="$NGHTTP2_LIBS"
24814 elif test -n "$PKG_CONFIG"; then
24815 if test -n "$PKG_CONFIG" && \
24816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2\""; } >&5
24817 ($PKG_CONFIG --exists --print-errors "libnghttp2") 2>&5
24818 ac_status=$?
24819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; then
24821 pkg_cv_NGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2" 2>/dev/null`
24822 test "x$?" != "x0" && pkg_failed=yes
24823 else
24824 pkg_failed=yes
24825 fi
24826 else
24827 pkg_failed=untried
24828 fi
24829
24830
24831
24832 if test $pkg_failed = yes; then
24833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24834 printf "%s\n" "no" >&6; }
24835
24836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24837 _pkg_short_errors_supported=yes
24838 else
24839 _pkg_short_errors_supported=no
24840 fi
24841 if test $_pkg_short_errors_supported = yes; then
24842 NGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2" 2>&1`
24843 else
24844 NGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2" 2>&1`
24845 fi
24846 # Put the nasty error message in config.log where it belongs
24847 echo "$NGHTTP2_PKG_ERRORS" >&5
24848
24849 :
24850 elif test $pkg_failed = untried; then
24851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24852 printf "%s\n" "no" >&6; }
24853 :
24854 else
24855 NGHTTP2_CFLAGS=$pkg_cv_NGHTTP2_CFLAGS
24856 NGHTTP2_LIBS=$pkg_cv_NGHTTP2_LIBS
24857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24858 printf "%s\n" "yes" >&6; }
24859
24860 HAVE_NGHTTP2=1
24861
24862 printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h
24863
24864 save_CFLAGS=$CFLAGS
24865 save_LIBS=$LIBS
24866 CFLAGS="$NGHTTP2_CFLAGS $CFLAGS"
24867 LIBS="$NGHTTP2_LIBS $LIBS"
24868 ac_fn_cxx_check_func "$LINENO" "nghttp2_check_header_value_rfc9113" "ac_cv_func_nghttp2_check_header_value_rfc9113"
24869 if test "x$ac_cv_func_nghttp2_check_header_value_rfc9113" = xyes
24870 then :
24871 printf "%s\n" "#define HAVE_NGHTTP2_CHECK_HEADER_VALUE_RFC9113 1" >>confdefs.h
24872
24873 fi
24874 ac_fn_cxx_check_func "$LINENO" "nghttp2_check_method" "ac_cv_func_nghttp2_check_method"
24875 if test "x$ac_cv_func_nghttp2_check_method" = xyes
24876 then :
24877 printf "%s\n" "#define HAVE_NGHTTP2_CHECK_METHOD 1" >>confdefs.h
24878
24879 fi
24880 ac_fn_cxx_check_func "$LINENO" "nghttp2_check_path" "ac_cv_func_nghttp2_check_path"
24881 if test "x$ac_cv_func_nghttp2_check_path" = xyes
24882 then :
24883 printf "%s\n" "#define HAVE_NGHTTP2_CHECK_PATH 1" >>confdefs.h
24884
24885 fi
24886
24887 CFLAGS=$save_CFLAGS
24888 LIBS=$save_LIBS
24889
24890 fi
24891
24892 fi
24893
24894 fi
24895 if test "x$NGHTTP2_LIBS" != "x"; then
24896 HAVE_NGHTTP2_TRUE=
24897 HAVE_NGHTTP2_FALSE='#'
24898 else
24899 HAVE_NGHTTP2_TRUE='#'
24900 HAVE_NGHTTP2_FALSE=
24901 fi
24902
24903 if test "x$with_nghttp2" = "xyes"
24904 then :
24905
24906 if test x"$NGHTTP2_LIBS" = "x"
24907 then :
24908
24909 as_fn_error $? "nghttp2 requested but libraries were not found" "$LINENO" 5
24910
24911 fi
24912
24913 fi
24914
24915 if test "x$HAVE_NGHTTP2" != "x1"
24916 then :
24917
24918 as_fn_error $? "DNS over HTTPS support requested but nghttp2 was not found" "$LINENO" 5
24919
24920 fi
24921
24922 if test "x$HAVE_GNUTLS" != "x1" -a "x$HAVE_LIBSSL" != "x1"
24923 then :
24924
24925 as_fn_error $? "DNS over HTTPS support requested but neither GnuTLS nor OpenSSL are available" "$LINENO" 5
24926
24927 fi
24928
24929 fi
24930
24931 if test "x$enable_dns_over_quic" != "xno"
24932 then :
24933
24934 if test "x$HAVE_QUICHE" != "x1"
24935 then :
24936
24937 as_fn_error $? "DNS over QUIC support requested but quiche was not found" "$LINENO" 5
24938
24939 fi
24940 if test "x$HAVE_LIBSSL" != "x1"
24941 then :
24942
24943 as_fn_error $? "DNS over QUIC support requested but OpenSSL is not available" "$LINENO" 5
24944
24945 fi
24946
24947 fi
24948
24949 if test "x$enable_dns_over_http3" != "xno"
24950 then :
24951
24952 if test "x$HAVE_QUICHE" != "x1"
24953 then :
24954
24955 as_fn_error $? "DNS over HTTP/3 support requested but quiche was not found" "$LINENO" 5
24956
24957 fi
24958
24959 fi
24960
24961
24962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable YAML configuration" >&5
24963 printf %s "checking whether to enable YAML configuration... " >&6; }
24964 # Check whether --enable-yaml was given.
24965 if test ${enable_yaml+y}
24966 then :
24967 enableval=$enable_yaml; enable_yaml=$enableval
24968 else case e in #(
24969 e) enable_yaml=no
24970 ;;
24971 esac
24972 fi
24973
24974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_yaml" >&5
24975 printf "%s\n" "$enable_yaml" >&6; }
24976 if test "x$enable_yaml" != "xno"; then
24977 HAVE_YAML_CONFIGURATION_TRUE=
24978 HAVE_YAML_CONFIGURATION_FALSE='#'
24979 else
24980 HAVE_YAML_CONFIGURATION_TRUE='#'
24981 HAVE_YAML_CONFIGURATION_FALSE=
24982 fi
24983
24984
24985 if test -z "$HAVE_YAML_CONFIGURATION_TRUE"; then :
24986
24987
24988 printf "%s\n" "#define HAVE_YAML_CONFIGURATION 1" >>confdefs.h
24989
24990
24991 fi
24992
24993
24994 if test "x$enable_yaml" != "xno"
24995 then :
24996
24997
24998
24999
25000 # Extract the first word of "cargo", so it can be a program name with args.
25001 set dummy cargo; ac_word=$2
25002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25003 printf %s "checking for $ac_word... " >&6; }
25004 if test ${ac_cv_prog_CARGO+y}
25005 then :
25006 printf %s "(cached) " >&6
25007 else case e in #(
25008 e) if test -n "$CARGO"; then
25009 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
25010 else
25011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25012 for as_dir in $PATH
25013 do
25014 IFS=$as_save_IFS
25015 case $as_dir in #(((
25016 '') as_dir=./ ;;
25017 */) ;;
25018 *) as_dir=$as_dir/ ;;
25019 esac
25020 for ac_exec_ext in '' $ac_executable_extensions; do
25021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25022 ac_cv_prog_CARGO="cargo"
25023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25024 break 2
25025 fi
25026 done
25027 done
25028 IFS=$as_save_IFS
25029
25030 test -z "$ac_cv_prog_CARGO" && ac_cv_prog_CARGO="$CARGO"
25031 fi ;;
25032 esac
25033 fi
25034 CARGO=$ac_cv_prog_CARGO
25035 if test -n "$CARGO"; then
25036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
25037 printf "%s\n" "$CARGO" >&6; }
25038 else
25039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25040 printf "%s\n" "no" >&6; }
25041 fi
25042
25043
25044 if test x$CARGO = x
25045 then :
25046 as_fn_error $? "cargo is required" "$LINENO" 5
25047
25048 fi
25049 minimum=1.64
25050 cargo_version=`$CARGO --version | $SED -e 's/^cargo //g'`
25051
25052
25053
25054 # Used to indicate true or false condition
25055 ax_compare_version=false
25056
25057 # Convert the two version strings to be compared into a format that
25058 # allows a simple string comparison. The end result is that a version
25059 # string of the form 1.12.5-r617 will be converted to the form
25060 # 0001001200050617. In other words, each number is zero padded to four
25061 # digits, and non digits are removed.
25062
25063 ax_compare_version_A=`echo "$cargo_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
25064 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
25065 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
25066 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
25067 -e 's/[^0-9]//g'`
25068
25069
25070 ax_compare_version_B=`echo "$minimum" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
25071 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
25072 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
25073 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
25074 -e 's/[^0-9]//g'`
25075
25076
25077 ax_compare_version=`echo "x$ax_compare_version_A
25078 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
25079
25080
25081
25082 if test "$ax_compare_version" = "true" ; then
25083
25084 as_fn_error $? "need at least cargo version $minimum" "$LINENO" 5
25085
25086 fi
25087
25088
25089
25090 fi
25091
25092
25093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will we linking with libcdb" >&5
25094 printf %s "checking whether we will we linking with libcdb... " >&6; }
25095 HAVE_CDB=0
25096
25097 # Check whether --with-cdb was given.
25098 if test ${with_cdb+y}
25099 then :
25100 withval=$with_cdb; with_cdb=$withval
25101 else case e in #(
25102 e) with_cdb=auto
25103 ;;
25104 esac
25105 fi
25106
25107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_cdb" >&5
25108 printf "%s\n" "$with_cdb" >&6; }
25109
25110 if test "x$with_cdb" != "xno"
25111 then :
25112
25113 if test "x$with_cdb" = "xyes" -o "x$with_cdb" = "xauto"
25114 then :
25115
25116
25117 pkg_failed=no
25118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdb" >&5
25119 printf %s "checking for libcdb... " >&6; }
25120
25121 if test -n "$CDB_CFLAGS"; then
25122 pkg_cv_CDB_CFLAGS="$CDB_CFLAGS"
25123 elif test -n "$PKG_CONFIG"; then
25124 if test -n "$PKG_CONFIG" && \
25125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdb\""; } >&5
25126 ($PKG_CONFIG --exists --print-errors "libcdb") 2>&5
25127 ac_status=$?
25128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25129 test $ac_status = 0; }; then
25130 pkg_cv_CDB_CFLAGS=`$PKG_CONFIG --cflags "libcdb" 2>/dev/null`
25131 test "x$?" != "x0" && pkg_failed=yes
25132 else
25133 pkg_failed=yes
25134 fi
25135 else
25136 pkg_failed=untried
25137 fi
25138 if test -n "$CDB_LIBS"; then
25139 pkg_cv_CDB_LIBS="$CDB_LIBS"
25140 elif test -n "$PKG_CONFIG"; then
25141 if test -n "$PKG_CONFIG" && \
25142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdb\""; } >&5
25143 ($PKG_CONFIG --exists --print-errors "libcdb") 2>&5
25144 ac_status=$?
25145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; then
25147 pkg_cv_CDB_LIBS=`$PKG_CONFIG --libs "libcdb" 2>/dev/null`
25148 test "x$?" != "x0" && pkg_failed=yes
25149 else
25150 pkg_failed=yes
25151 fi
25152 else
25153 pkg_failed=untried
25154 fi
25155
25156
25157
25158 if test $pkg_failed = yes; then
25159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25160 printf "%s\n" "no" >&6; }
25161
25162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25163 _pkg_short_errors_supported=yes
25164 else
25165 _pkg_short_errors_supported=no
25166 fi
25167 if test $_pkg_short_errors_supported = yes; then
25168 CDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdb" 2>&1`
25169 else
25170 CDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdb" 2>&1`
25171 fi
25172 # Put the nasty error message in config.log where it belongs
25173 echo "$CDB_PKG_ERRORS" >&5
25174
25175 for ac_header in cdb.h
25176 do :
25177 ac_fn_cxx_check_header_compile "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
25178 if test "x$ac_cv_header_cdb_h" = xyes
25179 then :
25180 printf "%s\n" "#define HAVE_CDB_H 1" >>confdefs.h
25181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cdb_find in -lcdb" >&5
25182 printf %s "checking for cdb_find in -lcdb... " >&6; }
25183 if test ${ac_cv_lib_cdb_cdb_find+y}
25184 then :
25185 printf %s "(cached) " >&6
25186 else case e in #(
25187 e) ac_check_lib_save_LIBS=$LIBS
25188 LIBS="-lcdb $LIBS"
25189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25190 /* end confdefs.h. */
25191
25192 namespace conftest {
25193 extern "C" int cdb_find ();
25194 }
25195 int
25196 main (void)
25197 {
25198 return conftest::cdb_find ();
25199 ;
25200 return 0;
25201 }
25202 _ACEOF
25203 if ac_fn_cxx_try_link "$LINENO"
25204 then :
25205 ac_cv_lib_cdb_cdb_find=yes
25206 else case e in #(
25207 e) ac_cv_lib_cdb_cdb_find=no ;;
25208 esac
25209 fi
25210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25211 conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS ;;
25213 esac
25214 fi
25215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_find" >&5
25216 printf "%s\n" "$ac_cv_lib_cdb_cdb_find" >&6; }
25217 if test "x$ac_cv_lib_cdb_cdb_find" = xyes
25218 then :
25219
25220 CDB_LIBS="-lcdb"
25221
25222 printf "%s\n" "#define HAVE_CDB 1" >>confdefs.h
25223
25224 HAVE_CDB=1
25225
25226 else case e in #(
25227 e) :
25228 ;;
25229 esac
25230 fi
25231
25232 else case e in #(
25233 e) :
25234 ;;
25235 esac
25236 fi
25237
25238 done
25239
25240 elif test $pkg_failed = untried; then
25241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25242 printf "%s\n" "no" >&6; }
25243 for ac_header in cdb.h
25244 do :
25245 ac_fn_cxx_check_header_compile "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
25246 if test "x$ac_cv_header_cdb_h" = xyes
25247 then :
25248 printf "%s\n" "#define HAVE_CDB_H 1" >>confdefs.h
25249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cdb_find in -lcdb" >&5
25250 printf %s "checking for cdb_find in -lcdb... " >&6; }
25251 if test ${ac_cv_lib_cdb_cdb_find+y}
25252 then :
25253 printf %s "(cached) " >&6
25254 else case e in #(
25255 e) ac_check_lib_save_LIBS=$LIBS
25256 LIBS="-lcdb $LIBS"
25257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25258 /* end confdefs.h. */
25259
25260 namespace conftest {
25261 extern "C" int cdb_find ();
25262 }
25263 int
25264 main (void)
25265 {
25266 return conftest::cdb_find ();
25267 ;
25268 return 0;
25269 }
25270 _ACEOF
25271 if ac_fn_cxx_try_link "$LINENO"
25272 then :
25273 ac_cv_lib_cdb_cdb_find=yes
25274 else case e in #(
25275 e) ac_cv_lib_cdb_cdb_find=no ;;
25276 esac
25277 fi
25278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25279 conftest$ac_exeext conftest.$ac_ext
25280 LIBS=$ac_check_lib_save_LIBS ;;
25281 esac
25282 fi
25283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_find" >&5
25284 printf "%s\n" "$ac_cv_lib_cdb_cdb_find" >&6; }
25285 if test "x$ac_cv_lib_cdb_cdb_find" = xyes
25286 then :
25287
25288 CDB_LIBS="-lcdb"
25289
25290 printf "%s\n" "#define HAVE_CDB 1" >>confdefs.h
25291
25292 HAVE_CDB=1
25293
25294 else case e in #(
25295 e) :
25296 ;;
25297 esac
25298 fi
25299
25300 else case e in #(
25301 e) :
25302 ;;
25303 esac
25304 fi
25305
25306 done
25307
25308 else
25309 CDB_CFLAGS=$pkg_cv_CDB_CFLAGS
25310 CDB_LIBS=$pkg_cv_CDB_LIBS
25311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25312 printf "%s\n" "yes" >&6; }
25313
25314 HAVE_CDB=1
25315
25316 printf "%s\n" "#define HAVE_CDB 1" >>confdefs.h
25317
25318
25319 fi
25320
25321 fi
25322
25323 fi
25324
25325
25326 if test "x$CDB_LIBS" != "x"; then
25327 HAVE_CDB_TRUE=
25328 HAVE_CDB_FALSE='#'
25329 else
25330 HAVE_CDB_TRUE='#'
25331 HAVE_CDB_FALSE=
25332 fi
25333
25334 if test "x$with_cdb" = "xyes"
25335 then :
25336
25337 if test x"$CDB_LIBS" = "x"
25338 then :
25339
25340 as_fn_error $? "CDB requested but libraries were not found" "$LINENO" 5
25341
25342 fi
25343
25344 fi
25345
25346
25347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the lmdb library and headers" >&5
25348 printf %s "checking where to find the lmdb library and headers... " >&6; }
25349
25350 # Check whether --with-lmdb was given.
25351 if test ${with_lmdb+y}
25352 then :
25353 withval=$with_lmdb;
25354 with_lmdb=$withval
25355
25356 else case e in #(
25357 e)
25358 with_lmdb=auto
25359 ;;
25360 esac
25361 fi
25362
25363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_lmdb" >&5
25364 printf "%s\n" "$with_lmdb" >&6; }
25365
25366 if test "$with_lmdb" != "no"
25367 then :
25368
25369 if test "x$with_lmdb" = "xyes" -o "x$with_lmdb" = "xauto"
25370 then :
25371
25372
25373 pkg_failed=no
25374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb" >&5
25375 printf %s "checking for lmdb... " >&6; }
25376
25377 if test -n "$LMDB_CFLAGS"; then
25378 pkg_cv_LMDB_CFLAGS="$LMDB_CFLAGS"
25379 elif test -n "$PKG_CONFIG"; then
25380 if test -n "$PKG_CONFIG" && \
25381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5
25382 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5
25383 ac_status=$?
25384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; then
25386 pkg_cv_LMDB_CFLAGS=`$PKG_CONFIG --cflags "lmdb" 2>/dev/null`
25387 test "x$?" != "x0" && pkg_failed=yes
25388 else
25389 pkg_failed=yes
25390 fi
25391 else
25392 pkg_failed=untried
25393 fi
25394 if test -n "$LMDB_LIBS"; then
25395 pkg_cv_LMDB_LIBS="$LMDB_LIBS"
25396 elif test -n "$PKG_CONFIG"; then
25397 if test -n "$PKG_CONFIG" && \
25398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5
25399 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5
25400 ac_status=$?
25401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; then
25403 pkg_cv_LMDB_LIBS=`$PKG_CONFIG --libs "lmdb" 2>/dev/null`
25404 test "x$?" != "x0" && pkg_failed=yes
25405 else
25406 pkg_failed=yes
25407 fi
25408 else
25409 pkg_failed=untried
25410 fi
25411
25412
25413
25414 if test $pkg_failed = yes; then
25415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25416 printf "%s\n" "no" >&6; }
25417
25418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25419 _pkg_short_errors_supported=yes
25420 else
25421 _pkg_short_errors_supported=no
25422 fi
25423 if test $_pkg_short_errors_supported = yes; then
25424 LMDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lmdb" 2>&1`
25425 else
25426 LMDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lmdb" 2>&1`
25427 fi
25428 # Put the nasty error message in config.log where it belongs
25429 echo "$LMDB_PKG_ERRORS" >&5
25430
25431 :
25432
25433 elif test $pkg_failed = untried; then
25434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25435 printf "%s\n" "no" >&6; }
25436 :
25437
25438 else
25439 LMDB_CFLAGS=$pkg_cv_LMDB_CFLAGS
25440 LMDB_LIBS=$pkg_cv_LMDB_LIBS
25441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25442 printf "%s\n" "yes" >&6; }
25443
25444
25445 printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h
25446
25447 HAVE_LMDB=1
25448
25449 fi
25450
25451 else case e in #(
25452 e)
25453 save_CPPFLAGS=$CPPFLAGS
25454 save_LIBS=$LIBS
25455 if test -d "$with_lmdb/include"
25456 then :
25457
25458 LMDB_CFLAGS="-I$with_lmdb/include"
25459 LMDB_LIBS="-L$with_lmdb/lib"
25460
25461 else case e in #(
25462 e)
25463 LMDB_CFLAGS="-I$with_lmdb"
25464 LMDB_LIBS="-L$with_lmdb"
25465 ;;
25466 esac
25467 fi
25468 CPPFLAGS="$LMDB_CFLAGS"
25469 LIBS="$LMDB_LIBS"
25470
25471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_open" >&5
25472 printf %s "checking for library containing mdb_env_open... " >&6; }
25473 if test ${ac_cv_search_mdb_env_open+y}
25474 then :
25475 printf %s "(cached) " >&6
25476 else case e in #(
25477 e) ac_func_search_save_LIBS=$LIBS
25478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25479 /* end confdefs.h. */
25480
25481 namespace conftest {
25482 extern "C" int mdb_env_open ();
25483 }
25484 int
25485 main (void)
25486 {
25487 return conftest::mdb_env_open ();
25488 ;
25489 return 0;
25490 }
25491 _ACEOF
25492 for ac_lib in '' lmdb
25493 do
25494 if test -z "$ac_lib"; then
25495 ac_res="none required"
25496 else
25497 ac_res=-l$ac_lib
25498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25499 fi
25500 if ac_fn_cxx_try_link "$LINENO"
25501 then :
25502 ac_cv_search_mdb_env_open=$ac_res
25503 fi
25504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25505 conftest$ac_exeext
25506 if test ${ac_cv_search_mdb_env_open+y}
25507 then :
25508 break
25509 fi
25510 done
25511 if test ${ac_cv_search_mdb_env_open+y}
25512 then :
25513
25514 else case e in #(
25515 e) ac_cv_search_mdb_env_open=no ;;
25516 esac
25517 fi
25518 rm conftest.$ac_ext
25519 LIBS=$ac_func_search_save_LIBS ;;
25520 esac
25521 fi
25522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_open" >&5
25523 printf "%s\n" "$ac_cv_search_mdb_env_open" >&6; }
25524 ac_res=$ac_cv_search_mdb_env_open
25525 if test "$ac_res" != no
25526 then :
25527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25528
25529 for ac_header in lmdb.h
25530 do :
25531 ac_fn_cxx_check_header_compile "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default"
25532 if test "x$ac_cv_header_lmdb_h" = xyes
25533 then :
25534 printf "%s\n" "#define HAVE_LMDB_H 1" >>confdefs.h
25535
25536 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_open"
25537
25538 printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h
25539
25540 HAVE_LMDB=1
25541
25542 else case e in #(
25543 e)
25544 as_fn_error $? "lmdb headers not found in $with_lmdb" "$LINENO" 5
25545 ;;
25546 esac
25547 fi
25548
25549 done
25550 CPPFLAGS="$save_CPPFLAGS"
25551 LIBS="$save_LIBS"
25552
25553
25554
25555 fi
25556
25557 ;;
25558 esac
25559 fi
25560
25561 fi
25562 if test "x$LMDB_LIBS" != "x"; then
25563 HAVE_LMDB_TRUE=
25564 HAVE_LMDB_FALSE='#'
25565 else
25566 HAVE_LMDB_TRUE='#'
25567 HAVE_LMDB_FALSE=
25568 fi
25569
25570
25571
25572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ipcipher support" >&5
25573 printf %s "checking whether to enable ipcipher support... " >&6; }
25574 HAVE_IPCIPHER=0
25575 # Check whether --enable-ipcipher was given.
25576 if test ${enable_ipcipher+y}
25577 then :
25578 enableval=$enable_ipcipher; enable_ipcipher=$enableval
25579 else case e in #(
25580 e) enable_ipcipher=auto
25581 ;;
25582 esac
25583 fi
25584
25585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ipcipher" >&5
25586 printf "%s\n" "$enable_ipcipher" >&6; }
25587
25588 if test "x$enable_ipcipher" != "xno"
25589 then :
25590
25591 if test "x$enable_ipcipher" = "xyes" -o "x$enable_ipcipher" = "xauto"
25592 then :
25593
25594 if test -z "$HAVE_LIBCRYPTO_TRUE"; then :
25595
25596
25597 printf "%s\n" "#define HAVE_IPCIPHER 1" >>confdefs.h
25598
25599 HAVE_IPCIPHER=1
25600
25601 fi
25602
25603 fi
25604
25605 fi
25606 if test "x$HAVE_IPCIPHER" != "x0"; then
25607 IPCIPHER_TRUE=
25608 IPCIPHER_FALSE='#'
25609 else
25610 IPCIPHER_TRUE='#'
25611 IPCIPHER_FALSE=
25612 fi
25613
25614
25615 if test "x$enable_ipcipher" = "xyes"
25616 then :
25617
25618 if test x"$HAVE_IPCIPHER" = "x0"
25619 then :
25620
25621 as_fn_error $? "ipcipher support requested but libcrypto is not available" "$LINENO" 5
25622
25623 fi
25624
25625 fi
25626
25627
25628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ipcrypt2 support" >&5
25629 printf %s "checking whether to enable ipcrypt2 support... " >&6; }
25630 # Check whether --enable-ipcrypt2 was given.
25631 if test ${enable_ipcrypt2+y}
25632 then :
25633 enableval=$enable_ipcrypt2; enable_ipcrypt2=$enableval
25634 else case e in #(
25635 e) enable_ipcrypt2=no
25636 ;;
25637 esac
25638 fi
25639
25640
25641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ipcrypt2" >&5
25642 printf "%s\n" "$enable_ipcrypt2" >&6; }
25643
25644 HAVE_IPCRYPT2=0
25645
25646 if test "x$enable_ipcrypt2" != "xno"
25647 then :
25648
25649
25650 if test "$build_cpu" = "aarch64"
25651 then :
25652
25653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports calculations with uint64x2_t" >&5
25654 printf %s "checking whether the compiler supports calculations with uint64x2_t... " >&6; }
25655 ac_ext=cpp
25656 ac_cpp='$CXXCPP $CPPFLAGS'
25657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25660
25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h. */
25663
25664 # if defined(_MSC_VER) && defined(_M_ARM64)
25665 # include <arm64_neon.h>
25666 # else
25667 # include <arm_neon.h>
25668 # endif
25669 int main() {
25670 uint64x2_t foo = {0, 0};
25671 uint64x2_t bar = vshrq_n_u8(foo, 1);
25672 return 0;
25673 }
25674
25675 _ACEOF
25676 if ac_fn_cxx_try_compile "$LINENO"
25677 then :
25678
25679 HAVE_IPCRYPT2=1
25680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25681 printf "%s\n" "ok" >&6; }
25682
25683 else case e in #(
25684 e)
25685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25686 printf "%s\n" "no" >&6; }
25687 ;;
25688 esac
25689 fi
25690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25691 ac_ext=cpp
25692 ac_cpp='$CXXCPP $CPPFLAGS'
25693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25696
25697
25698 else case e in #(
25699 e)
25700 HAVE_IPCRYPT2=1
25701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25702 printf "%s\n" "ok" >&6; }
25703 ;;
25704 esac
25705 fi
25706
25707 fi
25708
25709 if test "x$HAVE_IPCRYPT2" != "x0"; then
25710 HAVE_IPCRYPT2_TRUE=
25711 HAVE_IPCRYPT2_FALSE='#'
25712 else
25713 HAVE_IPCRYPT2_TRUE='#'
25714 HAVE_IPCRYPT2_FALSE=
25715 fi
25716
25717
25718 if test "x$enable_ipcrypt2" != "xno"
25719 then :
25720
25721 if test x"$HAVE_IPCRYPT2" = "x0"
25722 then :
25723
25724 as_fn_error $? "ipcrypt2 support requested but is not available" "$LINENO" 5
25725
25726 fi
25727
25728 fi
25729
25730 if test -z "$HAVE_IPCRYPT2_TRUE"; then :
25731
25732
25733 printf "%s\n" "#define HAVE_IPCRYPT2 1" >>confdefs.h
25734
25735
25736 fi
25737
25738
25739 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
25740 ac_ext=cpp
25741 ac_cpp='$CXXCPP $CPPFLAGS'
25742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25745 ac_success=no
25746
25747
25748
25749
25750
25751 if test x$ac_success = xno; then
25752 for alternative in ${ax_cxx_compile_alternatives}; do
25753 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
25754 if test x"$switch" = xMSVC; then
25755 switch=-std:c++${alternative}
25756 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | sed "$as_sed_sh"`
25757 else
25758 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"`
25759 fi
25760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
25761 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
25762 if eval test \${$cachevar+y}
25763 then :
25764 printf %s "(cached) " >&6
25765 else case e in #(
25766 e) ac_save_CXX="$CXX"
25767 CXX="$CXX $switch"
25768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25769 /* end confdefs.h. */
25770
25771
25772 // If the compiler admits that it is not ready for C++11, why torture it?
25773 // Hopefully, this will speed up the test.
25774
25775 #ifndef __cplusplus
25776
25777 #error "This is not a C++ compiler"
25778
25779 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
25780 // only set it correctly if /Zc:__cplusplus is specified as well as a
25781 // /std:c++NN switch:
25782 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
25783 #elif __cplusplus < 201103L && !defined _MSC_VER
25784
25785 #error "This is not a C++11 compiler"
25786
25787 #else
25788
25789 namespace cxx11
25790 {
25791
25792 namespace test_static_assert
25793 {
25794
25795 template <typename T>
25796 struct check
25797 {
25798 static_assert(sizeof(int) <= sizeof(T), "not big enough");
25799 };
25800
25801 }
25802
25803 namespace test_final_override
25804 {
25805
25806 struct Base
25807 {
25808 virtual ~Base() {}
25809 virtual void f() {}
25810 };
25811
25812 struct Derived : public Base
25813 {
25814 virtual ~Derived() override {}
25815 virtual void f() override {}
25816 };
25817
25818 }
25819
25820 namespace test_double_right_angle_brackets
25821 {
25822
25823 template < typename T >
25824 struct check {};
25825
25826 typedef check<void> single_type;
25827 typedef check<check<void>> double_type;
25828 typedef check<check<check<void>>> triple_type;
25829 typedef check<check<check<check<void>>>> quadruple_type;
25830
25831 }
25832
25833 namespace test_decltype
25834 {
25835
25836 int
25837 f()
25838 {
25839 int a = 1;
25840 decltype(a) b = 2;
25841 return a + b;
25842 }
25843
25844 }
25845
25846 namespace test_type_deduction
25847 {
25848
25849 template < typename T1, typename T2 >
25850 struct is_same
25851 {
25852 static const bool value = false;
25853 };
25854
25855 template < typename T >
25856 struct is_same<T, T>
25857 {
25858 static const bool value = true;
25859 };
25860
25861 template < typename T1, typename T2 >
25862 auto
25863 add(T1 a1, T2 a2) -> decltype(a1 + a2)
25864 {
25865 return a1 + a2;
25866 }
25867
25868 int
25869 test(const int c, volatile int v)
25870 {
25871 static_assert(is_same<int, decltype(0)>::value == true, "");
25872 static_assert(is_same<int, decltype(c)>::value == false, "");
25873 static_assert(is_same<int, decltype(v)>::value == false, "");
25874 auto ac = c;
25875 auto av = v;
25876 auto sumi = ac + av + 'x';
25877 auto sumf = ac + av + 1.0;
25878 static_assert(is_same<int, decltype(ac)>::value == true, "");
25879 static_assert(is_same<int, decltype(av)>::value == true, "");
25880 static_assert(is_same<int, decltype(sumi)>::value == true, "");
25881 static_assert(is_same<int, decltype(sumf)>::value == false, "");
25882 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
25883 return (sumf > 0.0) ? sumi : add(c, v);
25884 }
25885
25886 }
25887
25888 namespace test_noexcept
25889 {
25890
25891 int f() { return 0; }
25892 int g() noexcept { return 0; }
25893
25894 static_assert(noexcept(f()) == false, "");
25895 static_assert(noexcept(g()) == true, "");
25896
25897 }
25898
25899 namespace test_constexpr
25900 {
25901
25902 template < typename CharT >
25903 unsigned long constexpr
25904 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
25905 {
25906 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
25907 }
25908
25909 template < typename CharT >
25910 unsigned long constexpr
25911 strlen_c(const CharT *const s) noexcept
25912 {
25913 return strlen_c_r(s, 0UL);
25914 }
25915
25916 static_assert(strlen_c("") == 0UL, "");
25917 static_assert(strlen_c("1") == 1UL, "");
25918 static_assert(strlen_c("example") == 7UL, "");
25919 static_assert(strlen_c("another\0example") == 7UL, "");
25920
25921 }
25922
25923 namespace test_rvalue_references
25924 {
25925
25926 template < int N >
25927 struct answer
25928 {
25929 static constexpr int value = N;
25930 };
25931
25932 answer<1> f(int&) { return answer<1>(); }
25933 answer<2> f(const int&) { return answer<2>(); }
25934 answer<3> f(int&&) { return answer<3>(); }
25935
25936 void
25937 test()
25938 {
25939 int i = 0;
25940 const int c = 0;
25941 static_assert(decltype(f(i))::value == 1, "");
25942 static_assert(decltype(f(c))::value == 2, "");
25943 static_assert(decltype(f(0))::value == 3, "");
25944 }
25945
25946 }
25947
25948 namespace test_uniform_initialization
25949 {
25950
25951 struct test
25952 {
25953 static const int zero {};
25954 static const int one {1};
25955 };
25956
25957 static_assert(test::zero == 0, "");
25958 static_assert(test::one == 1, "");
25959
25960 }
25961
25962 namespace test_lambdas
25963 {
25964
25965 void
25966 test1()
25967 {
25968 auto lambda1 = [](){};
25969 auto lambda2 = lambda1;
25970 lambda1();
25971 lambda2();
25972 }
25973
25974 int
25975 test2()
25976 {
25977 auto a = [](int i, int j){ return i + j; }(1, 2);
25978 auto b = []() -> int { return '0'; }();
25979 auto c = [=](){ return a + b; }();
25980 auto d = [&](){ return c; }();
25981 auto e = [a, &b](int x) mutable {
25982 const auto identity = [](int y){ return y; };
25983 for (auto i = 0; i < a; ++i)
25984 a += b--;
25985 return x + identity(a + b);
25986 }(0);
25987 return a + b + c + d + e;
25988 }
25989
25990 int
25991 test3()
25992 {
25993 const auto nullary = [](){ return 0; };
25994 const auto unary = [](int x){ return x; };
25995 using nullary_t = decltype(nullary);
25996 using unary_t = decltype(unary);
25997 const auto higher1st = [](nullary_t f){ return f(); };
25998 const auto higher2nd = [unary](nullary_t f1){
25999 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
26000 };
26001 return higher1st(nullary) + higher2nd(nullary)(unary);
26002 }
26003
26004 }
26005
26006 namespace test_variadic_templates
26007 {
26008
26009 template <int...>
26010 struct sum;
26011
26012 template <int N0, int... N1toN>
26013 struct sum<N0, N1toN...>
26014 {
26015 static constexpr auto value = N0 + sum<N1toN...>::value;
26016 };
26017
26018 template <>
26019 struct sum<>
26020 {
26021 static constexpr auto value = 0;
26022 };
26023
26024 static_assert(sum<>::value == 0, "");
26025 static_assert(sum<1>::value == 1, "");
26026 static_assert(sum<23>::value == 23, "");
26027 static_assert(sum<1, 2>::value == 3, "");
26028 static_assert(sum<5, 5, 11>::value == 21, "");
26029 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
26030
26031 }
26032
26033 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
26034 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
26035 // because of this.
26036 namespace test_template_alias_sfinae
26037 {
26038
26039 struct foo {};
26040
26041 template<typename T>
26042 using member = typename T::member_type;
26043
26044 template<typename T>
26045 void func(...) {}
26046
26047 template<typename T>
26048 void func(member<T>*) {}
26049
26050 void test();
26051
26052 void test() { func<foo>(0); }
26053
26054 }
26055
26056 } // namespace cxx11
26057
26058 #endif // __cplusplus >= 201103L
26059
26060
26061
26062
26063 // If the compiler admits that it is not ready for C++14, why torture it?
26064 // Hopefully, this will speed up the test.
26065
26066 #ifndef __cplusplus
26067
26068 #error "This is not a C++ compiler"
26069
26070 #elif __cplusplus < 201402L && !defined _MSC_VER
26071
26072 #error "This is not a C++14 compiler"
26073
26074 #else
26075
26076 namespace cxx14
26077 {
26078
26079 namespace test_polymorphic_lambdas
26080 {
26081
26082 int
26083 test()
26084 {
26085 const auto lambda = [](auto&&... args){
26086 const auto istiny = [](auto x){
26087 return (sizeof(x) == 1UL) ? 1 : 0;
26088 };
26089 const int aretiny[] = { istiny(args)... };
26090 return aretiny[0];
26091 };
26092 return lambda(1, 1L, 1.0f, '1');
26093 }
26094
26095 }
26096
26097 namespace test_binary_literals
26098 {
26099
26100 constexpr auto ivii = 0b0000000000101010;
26101 static_assert(ivii == 42, "wrong value");
26102
26103 }
26104
26105 namespace test_generalized_constexpr
26106 {
26107
26108 template < typename CharT >
26109 constexpr unsigned long
26110 strlen_c(const CharT *const s) noexcept
26111 {
26112 auto length = 0UL;
26113 for (auto p = s; *p; ++p)
26114 ++length;
26115 return length;
26116 }
26117
26118 static_assert(strlen_c("") == 0UL, "");
26119 static_assert(strlen_c("x") == 1UL, "");
26120 static_assert(strlen_c("test") == 4UL, "");
26121 static_assert(strlen_c("another\0test") == 7UL, "");
26122
26123 }
26124
26125 namespace test_lambda_init_capture
26126 {
26127
26128 int
26129 test()
26130 {
26131 auto x = 0;
26132 const auto lambda1 = [a = x](int b){ return a + b; };
26133 const auto lambda2 = [a = lambda1(x)](){ return a; };
26134 return lambda2();
26135 }
26136
26137 }
26138
26139 namespace test_digit_separators
26140 {
26141
26142 constexpr auto ten_million = 100'000'000;
26143 static_assert(ten_million == 100000000, "");
26144
26145 }
26146
26147 namespace test_return_type_deduction
26148 {
26149
26150 auto f(int& x) { return x; }
26151 decltype(auto) g(int& x) { return x; }
26152
26153 template < typename T1, typename T2 >
26154 struct is_same
26155 {
26156 static constexpr auto value = false;
26157 };
26158
26159 template < typename T >
26160 struct is_same<T, T>
26161 {
26162 static constexpr auto value = true;
26163 };
26164
26165 int
26166 test()
26167 {
26168 auto x = 0;
26169 static_assert(is_same<int, decltype(f(x))>::value, "");
26170 static_assert(is_same<int&, decltype(g(x))>::value, "");
26171 return x;
26172 }
26173
26174 }
26175
26176 } // namespace cxx14
26177
26178 #endif // __cplusplus >= 201402L
26179
26180
26181
26182
26183 // If the compiler admits that it is not ready for C++17, why torture it?
26184 // Hopefully, this will speed up the test.
26185
26186 #ifndef __cplusplus
26187
26188 #error "This is not a C++ compiler"
26189
26190 #elif __cplusplus < 201703L && !defined _MSC_VER
26191
26192 #error "This is not a C++17 compiler"
26193
26194 #else
26195
26196 #include <initializer_list>
26197 #include <utility>
26198 #include <type_traits>
26199
26200 namespace cxx17
26201 {
26202
26203 namespace test_constexpr_lambdas
26204 {
26205
26206 constexpr int foo = [](){return 42;}();
26207
26208 }
26209
26210 namespace test::nested_namespace::definitions
26211 {
26212
26213 }
26214
26215 namespace test_fold_expression
26216 {
26217
26218 template<typename... Args>
26219 int multiply(Args... args)
26220 {
26221 return (args * ... * 1);
26222 }
26223
26224 template<typename... Args>
26225 bool all(Args... args)
26226 {
26227 return (args && ...);
26228 }
26229
26230 }
26231
26232 namespace test_extended_static_assert
26233 {
26234
26235 static_assert (true);
26236
26237 }
26238
26239 namespace test_auto_brace_init_list
26240 {
26241
26242 auto foo = {5};
26243 auto bar {5};
26244
26245 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
26246 static_assert(std::is_same<int, decltype(bar)>::value);
26247 }
26248
26249 namespace test_typename_in_template_template_parameter
26250 {
26251
26252 template<template<typename> typename X> struct D;
26253
26254 }
26255
26256 namespace test_fallthrough_nodiscard_maybe_unused_attributes
26257 {
26258
26259 int f1()
26260 {
26261 return 42;
26262 }
26263
26264 [[nodiscard]] int f2()
26265 {
26266 [[maybe_unused]] auto unused = f1();
26267
26268 switch (f1())
26269 {
26270 case 17:
26271 f1();
26272 [[fallthrough]];
26273 case 42:
26274 f1();
26275 }
26276 return f1();
26277 }
26278
26279 }
26280
26281 namespace test_extended_aggregate_initialization
26282 {
26283
26284 struct base1
26285 {
26286 int b1, b2 = 42;
26287 };
26288
26289 struct base2
26290 {
26291 base2() {
26292 b3 = 42;
26293 }
26294 int b3;
26295 };
26296
26297 struct derived : base1, base2
26298 {
26299 int d;
26300 };
26301
26302 derived d1 {{1, 2}, {}, 4}; // full initialization
26303 derived d2 {{}, {}, 4}; // value-initialized bases
26304
26305 }
26306
26307 namespace test_general_range_based_for_loop
26308 {
26309
26310 struct iter
26311 {
26312 int i;
26313
26314 int& operator* ()
26315 {
26316 return i;
26317 }
26318
26319 const int& operator* () const
26320 {
26321 return i;
26322 }
26323
26324 iter& operator++()
26325 {
26326 ++i;
26327 return *this;
26328 }
26329 };
26330
26331 struct sentinel
26332 {
26333 int i;
26334 };
26335
26336 bool operator== (const iter& i, const sentinel& s)
26337 {
26338 return i.i == s.i;
26339 }
26340
26341 bool operator!= (const iter& i, const sentinel& s)
26342 {
26343 return !(i == s);
26344 }
26345
26346 struct range
26347 {
26348 iter begin() const
26349 {
26350 return {0};
26351 }
26352
26353 sentinel end() const
26354 {
26355 return {5};
26356 }
26357 };
26358
26359 void f()
26360 {
26361 range r {};
26362
26363 for (auto i : r)
26364 {
26365 [[maybe_unused]] auto v = i;
26366 }
26367 }
26368
26369 }
26370
26371 namespace test_lambda_capture_asterisk_this_by_value
26372 {
26373
26374 struct t
26375 {
26376 int i;
26377 int foo()
26378 {
26379 return [*this]()
26380 {
26381 return i;
26382 }();
26383 }
26384 };
26385
26386 }
26387
26388 namespace test_enum_class_construction
26389 {
26390
26391 enum class byte : unsigned char
26392 {};
26393
26394 byte foo {42};
26395
26396 }
26397
26398 namespace test_constexpr_if
26399 {
26400
26401 template <bool cond>
26402 int f ()
26403 {
26404 if constexpr(cond)
26405 {
26406 return 13;
26407 }
26408 else
26409 {
26410 return 42;
26411 }
26412 }
26413
26414 }
26415
26416 namespace test_selection_statement_with_initializer
26417 {
26418
26419 int f()
26420 {
26421 return 13;
26422 }
26423
26424 int f2()
26425 {
26426 if (auto i = f(); i > 0)
26427 {
26428 return 3;
26429 }
26430
26431 switch (auto i = f(); i + 4)
26432 {
26433 case 17:
26434 return 2;
26435
26436 default:
26437 return 1;
26438 }
26439 }
26440
26441 }
26442
26443 namespace test_template_argument_deduction_for_class_templates
26444 {
26445
26446 template <typename T1, typename T2>
26447 struct pair
26448 {
26449 pair (T1 p1, T2 p2)
26450 : m1 {p1},
26451 m2 {p2}
26452 {}
26453
26454 T1 m1;
26455 T2 m2;
26456 };
26457
26458 void f()
26459 {
26460 [[maybe_unused]] auto p = pair{13, 42u};
26461 }
26462
26463 }
26464
26465 namespace test_non_type_auto_template_parameters
26466 {
26467
26468 template <auto n>
26469 struct B
26470 {};
26471
26472 B<5> b1;
26473 B<'a'> b2;
26474
26475 }
26476
26477 namespace test_structured_bindings
26478 {
26479
26480 int arr[2] = { 1, 2 };
26481 std::pair<int, int> pr = { 1, 2 };
26482
26483 auto f1() -> int(&)[2]
26484 {
26485 return arr;
26486 }
26487
26488 auto f2() -> std::pair<int, int>&
26489 {
26490 return pr;
26491 }
26492
26493 struct S
26494 {
26495 int x1 : 2;
26496 volatile double y1;
26497 };
26498
26499 S f3()
26500 {
26501 return {};
26502 }
26503
26504 auto [ x1, y1 ] = f1();
26505 auto& [ xr1, yr1 ] = f1();
26506 auto [ x2, y2 ] = f2();
26507 auto& [ xr2, yr2 ] = f2();
26508 const auto [ x3, y3 ] = f3();
26509
26510 }
26511
26512 namespace test_exception_spec_type_system
26513 {
26514
26515 struct Good {};
26516 struct Bad {};
26517
26518 void g1() noexcept;
26519 void g2();
26520
26521 template<typename T>
26522 Bad
26523 f(T*, T*);
26524
26525 template<typename T1, typename T2>
26526 Good
26527 f(T1*, T2*);
26528
26529 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
26530
26531 }
26532
26533 namespace test_inline_variables
26534 {
26535
26536 template<class T> void f(T)
26537 {}
26538
26539 template<class T> inline T g(T)
26540 {
26541 return T{};
26542 }
26543
26544 template<> inline void f<>(int)
26545 {}
26546
26547 template<> int g<>(int)
26548 {
26549 return 5;
26550 }
26551
26552 }
26553
26554 } // namespace cxx17
26555
26556 #endif // __cplusplus < 201703L && !defined _MSC_VER
26557
26558
26559
26560 _ACEOF
26561 if ac_fn_cxx_try_compile "$LINENO"
26562 then :
26563 eval $cachevar=yes
26564 else case e in #(
26565 e) eval $cachevar=no ;;
26566 esac
26567 fi
26568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26569 CXX="$ac_save_CXX" ;;
26570 esac
26571 fi
26572 eval ac_res=\$$cachevar
26573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26574 printf "%s\n" "$ac_res" >&6; }
26575 if eval test x\$$cachevar = xyes; then
26576 CXX="$CXX $switch"
26577 if test -n "$CXXCPP" ; then
26578 CXXCPP="$CXXCPP $switch"
26579 fi
26580 ac_success=yes
26581 break
26582 fi
26583 done
26584 if test x$ac_success = xyes; then
26585 break
26586 fi
26587 done
26588 fi
26589 ac_ext=cpp
26590 ac_cpp='$CXXCPP $CPPFLAGS'
26591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26594
26595 if test x$ax_cxx_compile_cxx17_required = xtrue; then
26596 if test x$ac_success = xno; then
26597 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
26598 fi
26599 fi
26600 if test x$ac_success = xno; then
26601 HAVE_CXX17=0
26602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
26603 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
26604 else
26605 HAVE_CXX17=1
26606
26607 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
26608
26609 fi
26610
26611
26612
26613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we will enable compiler security checks" >&5
26614 printf %s "checking whether we will enable compiler security checks... " >&6; }
26615 # Check whether --enable-hardening was given.
26616 if test ${enable_hardening+y}
26617 then :
26618 enableval=$enable_hardening; enable_hardening=$enableval
26619 else case e in #(
26620 e) enable_hardening=yes
26621 ;;
26622 esac
26623 fi
26624
26625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_hardening" >&5
26626 printf "%s\n" "$enable_hardening" >&6; }
26627
26628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Werror -Wunknown-warning-option" >&5
26629 printf %s "checking whether C++ compiler handles -Werror -Wunknown-warning-option... " >&6; }
26630 if test ${gl_cv_warn_cxx__Werror__Wunknown_warning_option+y}
26631 then :
26632 printf %s "(cached) " >&6
26633 else case e in #(
26634 e)
26635 gl_save_compiler_FLAGS="$CXXFLAGS"
26636 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
26637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26638 /* end confdefs.h. */
26639
26640 int
26641 main (void)
26642 {
26643
26644 ;
26645 return 0;
26646 }
26647 _ACEOF
26648 if ac_fn_cxx_try_link "$LINENO"
26649 then :
26650 gl_cv_warn_cxx__Werror__Wunknown_warning_option=yes
26651 else case e in #(
26652 e) gl_cv_warn_cxx__Werror__Wunknown_warning_option=no ;;
26653 esac
26654 fi
26655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26656 conftest$ac_exeext conftest.$ac_ext
26657 CXXFLAGS="$gl_save_compiler_FLAGS"
26658 ;;
26659 esac
26660 fi
26661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror__Wunknown_warning_option" >&5
26662 printf "%s\n" "$gl_cv_warn_cxx__Werror__Wunknown_warning_option" >&6; }
26663 if test "x$gl_cv_warn_cxx__Werror__Wunknown_warning_option" = xyes
26664 then :
26665 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
26666 else case e in #(
26667 e) gl_unknown_warnings_are_errors= ;;
26668 esac
26669 fi
26670
26671 if test "x$enable_hardening" != "xno"
26672 then :
26673
26674
26675
26676 PIE_CFLAGS=
26677 PIE_LDFLAGS=
26678 OLD_CXXFLAGS=$CXXFLAGS
26679 case "$host" in
26680 *-*-mingw* | *-*-msvc* | *-*-cygwin* )
26681 ;; *)
26682 CXXFLAGS="-fPIE -DPIE"
26683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -pie" >&5
26684 printf %s "checking whether C++ compiler handles -pie... " >&6; }
26685 if test ${gl_cv_warn_cxx__pie+y}
26686 then :
26687 printf %s "(cached) " >&6
26688 else case e in #(
26689 e)
26690 gl_save_compiler_FLAGS="$CXXFLAGS"
26691 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -pie"
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h. */
26694
26695 #include <pthread.h>
26696 __thread unsigned int t_id;
26697
26698 int
26699 main (void)
26700 {
26701 t_id = 1;
26702 ;
26703 return 0;
26704 }
26705
26706 _ACEOF
26707 if ac_fn_cxx_try_link "$LINENO"
26708 then :
26709 gl_cv_warn_cxx__pie=yes
26710 else case e in #(
26711 e) gl_cv_warn_cxx__pie=no ;;
26712 esac
26713 fi
26714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26715 conftest$ac_exeext conftest.$ac_ext
26716 CXXFLAGS="$gl_save_compiler_FLAGS"
26717 ;;
26718 esac
26719 fi
26720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__pie" >&5
26721 printf "%s\n" "$gl_cv_warn_cxx__pie" >&6; }
26722 if test "x$gl_cv_warn_cxx__pie" = xyes
26723 then :
26724
26725 PIE_CFLAGS="-fPIE -DPIE"
26726 PIE_LDFLAGS="-pie"
26727
26728 else case e in #(
26729 e)
26730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Wl,-pie" >&5
26731 printf %s "checking whether C++ compiler handles -Wl,-pie... " >&6; }
26732 if test ${gl_cv_warn_cxx__Wl__pie+y}
26733 then :
26734 printf %s "(cached) " >&6
26735 else case e in #(
26736 e)
26737 gl_save_compiler_FLAGS="$CXXFLAGS"
26738 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -Wl,-pie"
26739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h. */
26741
26742 #include <pthread.h>
26743 __thread unsigned int t_id;
26744
26745 int
26746 main (void)
26747 {
26748 t_id = 1;
26749 ;
26750 return 0;
26751 }
26752
26753 _ACEOF
26754 if ac_fn_cxx_try_link "$LINENO"
26755 then :
26756 gl_cv_warn_cxx__Wl__pie=yes
26757 else case e in #(
26758 e) gl_cv_warn_cxx__Wl__pie=no ;;
26759 esac
26760 fi
26761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26762 conftest$ac_exeext conftest.$ac_ext
26763 CXXFLAGS="$gl_save_compiler_FLAGS"
26764 ;;
26765 esac
26766 fi
26767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Wl__pie" >&5
26768 printf "%s\n" "$gl_cv_warn_cxx__Wl__pie" >&6; }
26769 if test "x$gl_cv_warn_cxx__Wl__pie" = xyes
26770 then :
26771
26772 PIE_CFLAGS="-fPIE -DPIE"
26773 PIE_LDFLAGS="-Wl,-pie"
26774
26775 fi
26776
26777 ;;
26778 esac
26779 fi
26780
26781 esac
26782 CXXFLAGS=$OLD_CXXFLAGS
26783
26784
26785
26786
26787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fstack-protector" >&5
26788 printf %s "checking whether C++ compiler handles -fstack-protector... " >&6; }
26789 if test ${gl_cv_warn_cxx__fstack_protector+y}
26790 then :
26791 printf %s "(cached) " >&6
26792 else case e in #(
26793 e)
26794 gl_save_compiler_FLAGS="$CXXFLAGS"
26795 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fstack-protector"
26796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26797 /* end confdefs.h. */
26798
26799 int
26800 main (void)
26801 {
26802
26803 ;
26804 return 0;
26805 }
26806 _ACEOF
26807 if ac_fn_cxx_try_link "$LINENO"
26808 then :
26809 gl_cv_warn_cxx__fstack_protector=yes
26810 else case e in #(
26811 e) gl_cv_warn_cxx__fstack_protector=no ;;
26812 esac
26813 fi
26814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26815 conftest$ac_exeext conftest.$ac_ext
26816 CXXFLAGS="$gl_save_compiler_FLAGS"
26817 ;;
26818 esac
26819 fi
26820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fstack_protector" >&5
26821 printf "%s\n" "$gl_cv_warn_cxx__fstack_protector" >&6; }
26822 if test "x$gl_cv_warn_cxx__fstack_protector" = xyes
26823 then :
26824
26825 CFLAGS="-fstack-protector $CFLAGS"
26826 CXXFLAGS="-fstack-protector $CXXFLAGS"
26827
26828 fi
26829
26830
26831
26832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles --param ssp-buffer-size=4" >&5
26833 printf %s "checking whether C++ compiler handles --param ssp-buffer-size=4... " >&6; }
26834 if test ${gl_cv_warn_cxx___param_ssp_buffer_size_4+y}
26835 then :
26836 printf %s "(cached) " >&6
26837 else case e in #(
26838 e)
26839 gl_save_compiler_FLAGS="$CXXFLAGS"
26840 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors --param ssp-buffer-size=4"
26841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26842 /* end confdefs.h. */
26843
26844 int
26845 main (void)
26846 {
26847
26848 ;
26849 return 0;
26850 }
26851 _ACEOF
26852 if ac_fn_cxx_try_link "$LINENO"
26853 then :
26854 gl_cv_warn_cxx___param_ssp_buffer_size_4=yes
26855 else case e in #(
26856 e) gl_cv_warn_cxx___param_ssp_buffer_size_4=no ;;
26857 esac
26858 fi
26859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26860 conftest$ac_exeext conftest.$ac_ext
26861 CXXFLAGS="$gl_save_compiler_FLAGS"
26862 ;;
26863 esac
26864 fi
26865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx___param_ssp_buffer_size_4" >&5
26866 printf "%s\n" "$gl_cv_warn_cxx___param_ssp_buffer_size_4" >&6; }
26867 if test "x$gl_cv_warn_cxx___param_ssp_buffer_size_4" = xyes
26868 then :
26869
26870 CFLAGS="--param ssp-buffer-size=4 $CFLAGS"
26871 CXXFLAGS="--param ssp-buffer-size=4 $CXXFLAGS"
26872
26873 fi
26874
26875
26876
26877 # Check whether --enable-fortify-source was given.
26878 if test ${enable_fortify_source+y}
26879 then :
26880 enableval=$enable_fortify_source; enable_fortify_source=$enableval
26881 else case e in #(
26882 e) enable_fortify_source=2
26883 ;;
26884 esac
26885 fi
26886
26887
26888 if test "x$enable_fortify_source" != "xno"
26889 then :
26890
26891
26892 if test "$enable_fortify_source" = "auto"
26893 then :
26894 enable_fortify_source=3
26895 fi
26896
26897 if test "$enable_fortify_source" = "3"
26898 then :
26899
26900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -D_FORTIFY_SOURCE=3" >&5
26901 printf %s "checking whether C++ compiler handles -D_FORTIFY_SOURCE=3... " >&6; }
26902 if test ${gl_cv_warn_cxx__D_FORTIFY_SOURCE_3+y}
26903 then :
26904 printf %s "(cached) " >&6
26905 else case e in #(
26906 e)
26907 gl_save_compiler_FLAGS="$CXXFLAGS"
26908 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -D_FORTIFY_SOURCE=3"
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910 /* end confdefs.h. */
26911
26912 int
26913 main (void)
26914 {
26915
26916 ;
26917 return 0;
26918 }
26919 _ACEOF
26920 if ac_fn_cxx_try_link "$LINENO"
26921 then :
26922 gl_cv_warn_cxx__D_FORTIFY_SOURCE_3=yes
26923 else case e in #(
26924 e) gl_cv_warn_cxx__D_FORTIFY_SOURCE_3=no ;;
26925 esac
26926 fi
26927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26928 conftest$ac_exeext conftest.$ac_ext
26929 CXXFLAGS="$gl_save_compiler_FLAGS"
26930 ;;
26931 esac
26932 fi
26933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__D_FORTIFY_SOURCE_3" >&5
26934 printf "%s\n" "$gl_cv_warn_cxx__D_FORTIFY_SOURCE_3" >&6; }
26935 if test "x$gl_cv_warn_cxx__D_FORTIFY_SOURCE_3" = xyes
26936 then :
26937
26938 CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 $CFLAGS"
26939 CXXFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 $CXXFLAGS"
26940
26941 else case e in #(
26942 e) enable_fortify_source=2 ;;
26943 esac
26944 fi
26945
26946
26947 fi
26948
26949 if test "$enable_fortify_source" = "2"
26950 then :
26951
26952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -D_FORTIFY_SOURCE=2" >&5
26953 printf %s "checking whether C++ compiler handles -D_FORTIFY_SOURCE=2... " >&6; }
26954 if test ${gl_cv_warn_cxx__D_FORTIFY_SOURCE_2+y}
26955 then :
26956 printf %s "(cached) " >&6
26957 else case e in #(
26958 e)
26959 gl_save_compiler_FLAGS="$CXXFLAGS"
26960 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -D_FORTIFY_SOURCE=2"
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26963
26964 int
26965 main (void)
26966 {
26967
26968 ;
26969 return 0;
26970 }
26971 _ACEOF
26972 if ac_fn_cxx_try_link "$LINENO"
26973 then :
26974 gl_cv_warn_cxx__D_FORTIFY_SOURCE_2=yes
26975 else case e in #(
26976 e) gl_cv_warn_cxx__D_FORTIFY_SOURCE_2=no ;;
26977 esac
26978 fi
26979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26980 conftest$ac_exeext conftest.$ac_ext
26981 CXXFLAGS="$gl_save_compiler_FLAGS"
26982 ;;
26983 esac
26984 fi
26985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__D_FORTIFY_SOURCE_2" >&5
26986 printf "%s\n" "$gl_cv_warn_cxx__D_FORTIFY_SOURCE_2" >&6; }
26987 if test "x$gl_cv_warn_cxx__D_FORTIFY_SOURCE_2" = xyes
26988 then :
26989
26990 CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
26991 CXXFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CXXFLAGS"
26992
26993 else case e in #(
26994 e) enable_fortify_source=1 ;;
26995 esac
26996 fi
26997
26998
26999 fi
27000
27001 if test "$enable_fortify_source" = "1"
27002 then :
27003
27004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -D_FORTIFY_SOURCE=1" >&5
27005 printf %s "checking whether C++ compiler handles -D_FORTIFY_SOURCE=1... " >&6; }
27006 if test ${gl_cv_warn_cxx__D_FORTIFY_SOURCE_1+y}
27007 then :
27008 printf %s "(cached) " >&6
27009 else case e in #(
27010 e)
27011 gl_save_compiler_FLAGS="$CXXFLAGS"
27012 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -D_FORTIFY_SOURCE=1"
27013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014 /* end confdefs.h. */
27015
27016 int
27017 main (void)
27018 {
27019
27020 ;
27021 return 0;
27022 }
27023 _ACEOF
27024 if ac_fn_cxx_try_link "$LINENO"
27025 then :
27026 gl_cv_warn_cxx__D_FORTIFY_SOURCE_1=yes
27027 else case e in #(
27028 e) gl_cv_warn_cxx__D_FORTIFY_SOURCE_1=no ;;
27029 esac
27030 fi
27031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27032 conftest$ac_exeext conftest.$ac_ext
27033 CXXFLAGS="$gl_save_compiler_FLAGS"
27034 ;;
27035 esac
27036 fi
27037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__D_FORTIFY_SOURCE_1" >&5
27038 printf "%s\n" "$gl_cv_warn_cxx__D_FORTIFY_SOURCE_1" >&6; }
27039 if test "x$gl_cv_warn_cxx__D_FORTIFY_SOURCE_1" = xyes
27040 then :
27041
27042 CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 $CFLAGS"
27043 CXXFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 $CXXFLAGS"
27044
27045 else case e in #(
27046 e) enable_fortify_source=no ;;
27047 esac
27048 fi
27049
27050
27051 fi
27052
27053
27054 fi
27055
27056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FORTIFY_SOURCE is supported" >&5
27057 printf %s "checking whether FORTIFY_SOURCE is supported... " >&6; }
27058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fortify_source" >&5
27059 printf "%s\n" "$enable_fortify_source" >&6; }
27060
27061
27062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for how to force completely read-only GOT table" >&5
27063 printf %s "checking for how to force completely read-only GOT table... " >&6; }
27064
27065 RELRO_LDFLAGS=
27066 ld_help=`$CXX -Wl,-help 2>&1`
27067 case $ld_help in
27068 *"-z relro"*) RELRO_LDFLAGS="-Wl,-z -Wl,relro" ;;
27069 esac
27070 case $ld_help in
27071 *"-z now"*) RELRO_LDFLAGS="$RELRO_LDFLAGS -Wl,-z -Wl,now" ;;
27072 esac
27073
27074 if test "x$RELRO_LDFLAGS" != "x"
27075 then :
27076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RELRO_LDFLAGS" >&5
27077 printf "%s\n" "$RELRO_LDFLAGS" >&6; }
27078 else case e in #(
27079 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
27080 printf "%s\n" "unknown" >&6; }
27081 ;;
27082 esac
27083 fi
27084
27085
27086 fi
27087
27088
27089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable initialization of automatic variables" >&5
27090 printf %s "checking whether to enable initialization of automatic variables... " >&6; }
27091 # Check whether --enable-auto-var-init was given.
27092 if test ${enable_auto_var_init+y}
27093 then :
27094 enableval=$enable_auto_var_init; enable_initautovars=$enableval
27095 else case e in #(
27096 e) enable_initautovars=no ;;
27097 esac
27098 fi
27099
27100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_initautovars" >&5
27101 printf "%s\n" "$enable_initautovars" >&6; }
27102
27103 if test "x$enable_initautovars" = "xyes"
27104 then :
27105
27106 enable_initautovars=zero
27107
27108 fi
27109
27110 if test "x$enable_initautovars" = "xzero"
27111 then :
27112
27113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -ftrivial-auto-var-init=zero" >&5
27114 printf %s "checking whether C++ compiler handles -ftrivial-auto-var-init=zero... " >&6; }
27115 if test ${gl_cv_warn_cxx__ftrivial_auto_var_init_zero+y}
27116 then :
27117 printf %s "(cached) " >&6
27118 else case e in #(
27119 e)
27120 gl_save_compiler_FLAGS="$CXXFLAGS"
27121 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -ftrivial-auto-var-init=zero"
27122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27123 /* end confdefs.h. */
27124
27125 int
27126 main (void)
27127 {
27128
27129 ;
27130 return 0;
27131 }
27132 _ACEOF
27133 if ac_fn_cxx_try_link "$LINENO"
27134 then :
27135 gl_cv_warn_cxx__ftrivial_auto_var_init_zero=yes
27136 else case e in #(
27137 e) gl_cv_warn_cxx__ftrivial_auto_var_init_zero=no ;;
27138 esac
27139 fi
27140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27141 conftest$ac_exeext conftest.$ac_ext
27142 CXXFLAGS="$gl_save_compiler_FLAGS"
27143 ;;
27144 esac
27145 fi
27146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__ftrivial_auto_var_init_zero" >&5
27147 printf "%s\n" "$gl_cv_warn_cxx__ftrivial_auto_var_init_zero" >&6; }
27148 if test "x$gl_cv_warn_cxx__ftrivial_auto_var_init_zero" = xyes
27149 then :
27150
27151 CFLAGS="-ftrivial-auto-var-init=zero $CFLAGS"
27152 CXXFLAGS="-ftrivial-auto-var-init=zero $CXXFLAGS"
27153
27154 fi
27155
27156
27157 fi
27158
27159 if test "x$enable_initautovars" = "xpattern"
27160 then :
27161
27162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -ftrivial-auto-var-init=pattern" >&5
27163 printf %s "checking whether C++ compiler handles -ftrivial-auto-var-init=pattern... " >&6; }
27164 if test ${gl_cv_warn_cxx__ftrivial_auto_var_init_pattern+y}
27165 then :
27166 printf %s "(cached) " >&6
27167 else case e in #(
27168 e)
27169 gl_save_compiler_FLAGS="$CXXFLAGS"
27170 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -ftrivial-auto-var-init=pattern"
27171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27172 /* end confdefs.h. */
27173
27174 int
27175 main (void)
27176 {
27177
27178 ;
27179 return 0;
27180 }
27181 _ACEOF
27182 if ac_fn_cxx_try_link "$LINENO"
27183 then :
27184 gl_cv_warn_cxx__ftrivial_auto_var_init_pattern=yes
27185 else case e in #(
27186 e) gl_cv_warn_cxx__ftrivial_auto_var_init_pattern=no ;;
27187 esac
27188 fi
27189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27190 conftest$ac_exeext conftest.$ac_ext
27191 CXXFLAGS="$gl_save_compiler_FLAGS"
27192 ;;
27193 esac
27194 fi
27195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__ftrivial_auto_var_init_pattern" >&5
27196 printf "%s\n" "$gl_cv_warn_cxx__ftrivial_auto_var_init_pattern" >&6; }
27197 if test "x$gl_cv_warn_cxx__ftrivial_auto_var_init_pattern" = xyes
27198 then :
27199
27200 CFLAGS="-ftrivial-auto-var-init=pattern $CFLAGS"
27201 CXXFLAGS="-ftrivial-auto-var-init=pattern $CXXFLAGS"
27202
27203 fi
27204
27205
27206 fi
27207
27208
27209
27210
27211
27212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable AddressSanitizer" >&5
27213 printf %s "checking whether to enable AddressSanitizer... " >&6; }
27214 # Check whether --enable-asan was given.
27215 if test ${enable_asan+y}
27216 then :
27217 enableval=$enable_asan; enable_asan=$enableval
27218 else case e in #(
27219 e) enable_asan=no
27220 ;;
27221 esac
27222 fi
27223
27224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_asan" >&5
27225 printf "%s\n" "$enable_asan" >&6; }
27226
27227 if test "x$enable_asan" != "xno"
27228 then :
27229
27230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fsanitize=address" >&5
27231 printf %s "checking whether C++ compiler handles -fsanitize=address... " >&6; }
27232 if test ${gl_cv_warn_cxx__fsanitize_address+y}
27233 then :
27234 printf %s "(cached) " >&6
27235 else case e in #(
27236 e)
27237 gl_save_compiler_FLAGS="$CXXFLAGS"
27238 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=address"
27239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27240 /* end confdefs.h. */
27241
27242 int
27243 main (void)
27244 {
27245
27246 ;
27247 return 0;
27248 }
27249 _ACEOF
27250 if ac_fn_cxx_try_link "$LINENO"
27251 then :
27252 gl_cv_warn_cxx__fsanitize_address=yes
27253 else case e in #(
27254 e) gl_cv_warn_cxx__fsanitize_address=no ;;
27255 esac
27256 fi
27257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27258 conftest$ac_exeext conftest.$ac_ext
27259 CXXFLAGS="$gl_save_compiler_FLAGS"
27260 ;;
27261 esac
27262 fi
27263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_address" >&5
27264 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_address" >&6; }
27265 if test "x$gl_cv_warn_cxx__fsanitize_address" = xyes
27266 then :
27267
27268 SANITIZER_FLAGS="-fsanitize=address $SANITIZER_FLAGS"
27269 for ac_header in sanitizer/common_interface_defs.h
27270 do :
27271 ac_fn_cxx_check_header_compile "$LINENO" "sanitizer/common_interface_defs.h" "ac_cv_header_sanitizer_common_interface_defs_h" "$ac_includes_default"
27272 if test "x$ac_cv_header_sanitizer_common_interface_defs_h" = xyes
27273 then :
27274 printf "%s\n" "#define HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H 1" >>confdefs.h
27275 asan_headers=yes
27276 else case e in #(
27277 e) asan_headers=no ;;
27278 esac
27279 fi
27280
27281 done
27282 if test x"$asan_headers" = "xyes"
27283 then :
27284 ac_fn_check_decl "$LINENO" "__sanitizer_start_switch_fiber" "ac_cv_have_decl___sanitizer_start_switch_fiber" "#include <sanitizer/common_interface_defs.h>
27285
27286 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
27287 if test "x$ac_cv_have_decl___sanitizer_start_switch_fiber" = xyes
27288 then :
27289
27290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the exact signature of __sanitizer_finish_switch_fiber" >&5
27291 printf %s "checking for the exact signature of __sanitizer_finish_switch_fiber... " >&6; }
27292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27293 /* end confdefs.h. */
27294
27295 #include <sanitizer/common_interface_defs.h>
27296 int
27297 main (void)
27298 {
27299
27300 __sanitizer_finish_switch_fiber(nullptr);
27301
27302 ;
27303 return 0;
27304 }
27305
27306 _ACEOF
27307 if ac_fn_cxx_try_compile "$LINENO"
27308 then :
27309
27310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: a single pointer" >&5
27311 printf "%s\n" "a single pointer" >&6; }
27312
27313 printf "%s\n" "#define HAVE_FIBER_SANITIZER 1" >>confdefs.h
27314
27315
27316 printf "%s\n" "#define HAVE_SANITIZER_FINISH_SWITCH_FIBER_SINGLE_PTR 1" >>confdefs.h
27317
27318
27319 else case e in #(
27320 e)
27321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27322 /* end confdefs.h. */
27323
27324 #include <sanitizer/common_interface_defs.h>
27325 int
27326 main (void)
27327 {
27328
27329 __sanitizer_finish_switch_fiber(nullptr, nullptr, nullptr);
27330
27331 ;
27332 return 0;
27333 }
27334
27335 _ACEOF
27336 if ac_fn_cxx_try_compile "$LINENO"
27337 then :
27338
27339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: three pointers" >&5
27340 printf "%s\n" "three pointers" >&6; }
27341
27342 printf "%s\n" "#define HAVE_FIBER_SANITIZER 1" >>confdefs.h
27343
27344
27345 printf "%s\n" "#define HAVE_SANITIZER_FINISH_SWITCH_FIBER_THREE_PTRS 1" >>confdefs.h
27346
27347
27348 else case e in #(
27349 e)
27350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
27351 printf "%s\n" "unknown" >&6; }
27352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ASAN fiber switching is not available due to an unknown API version" >&5
27353 printf "%s\n" "$as_me: ASAN fiber switching is not available due to an unknown API version" >&6;}
27354 ;;
27355 esac
27356 fi
27357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27358 ;;
27359 esac
27360 fi
27361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27362
27363 else case e in #(
27364 e)
27365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ASAN fiber switching is not available" >&5
27366 printf "%s\n" "$as_me: ASAN fiber switching is not available" >&6;}
27367 ;;
27368 esac
27369 fi
27370
27371 fi
27372 for ac_header in sanitizer/lsan_interface.h
27373 do :
27374 ac_fn_cxx_check_header_compile "$LINENO" "sanitizer/lsan_interface.h" "ac_cv_header_sanitizer_lsan_interface_h" "$ac_includes_default"
27375 if test "x$ac_cv_header_sanitizer_lsan_interface_h" = xyes
27376 then :
27377 printf "%s\n" "#define HAVE_SANITIZER_LSAN_INTERFACE_H 1" >>confdefs.h
27378
27379 printf "%s\n" "#define HAVE_LEAK_SANITIZER_INTERFACE 1" >>confdefs.h
27380
27381 fi
27382
27383 done
27384
27385 else case e in #(
27386 e) as_fn_error $? "Cannot enable AddressSanitizer" "$LINENO" 5
27387 ;;
27388 esac
27389 fi
27390
27391
27392 fi
27393
27394
27395
27396
27397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable MemorySanitizer" >&5
27398 printf %s "checking whether to enable MemorySanitizer... " >&6; }
27399 # Check whether --enable-msan was given.
27400 if test ${enable_msan+y}
27401 then :
27402 enableval=$enable_msan; enable_msan=$enableval
27403 else case e in #(
27404 e) enable_msan=no
27405 ;;
27406 esac
27407 fi
27408
27409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_msan" >&5
27410 printf "%s\n" "$enable_msan" >&6; }
27411
27412 if test "x$enable_msan" != "xno"
27413 then :
27414
27415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fsanitize=memory" >&5
27416 printf %s "checking whether C++ compiler handles -fsanitize=memory... " >&6; }
27417 if test ${gl_cv_warn_cxx__fsanitize_memory+y}
27418 then :
27419 printf %s "(cached) " >&6
27420 else case e in #(
27421 e)
27422 gl_save_compiler_FLAGS="$CXXFLAGS"
27423 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=memory"
27424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27425 /* end confdefs.h. */
27426
27427 int
27428 main (void)
27429 {
27430
27431 ;
27432 return 0;
27433 }
27434 _ACEOF
27435 if ac_fn_cxx_try_link "$LINENO"
27436 then :
27437 gl_cv_warn_cxx__fsanitize_memory=yes
27438 else case e in #(
27439 e) gl_cv_warn_cxx__fsanitize_memory=no ;;
27440 esac
27441 fi
27442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27443 conftest$ac_exeext conftest.$ac_ext
27444 CXXFLAGS="$gl_save_compiler_FLAGS"
27445 ;;
27446 esac
27447 fi
27448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_memory" >&5
27449 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_memory" >&6; }
27450 if test "x$gl_cv_warn_cxx__fsanitize_memory" = xyes
27451 then :
27452 SANITIZER_FLAGS="-fsanitize=memory $SANITIZER_FLAGS"
27453 else case e in #(
27454 e) as_fn_error $? "Cannot enable MemorySanitizer" "$LINENO" 5
27455 ;;
27456 esac
27457 fi
27458
27459
27460 fi
27461
27462
27463
27464
27465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ThreadSanitizer" >&5
27466 printf %s "checking whether to enable ThreadSanitizer... " >&6; }
27467 # Check whether --enable-tsan was given.
27468 if test ${enable_tsan+y}
27469 then :
27470 enableval=$enable_tsan; enable_tsan=$enableval
27471 else case e in #(
27472 e) enable_tsan=no
27473 ;;
27474 esac
27475 fi
27476
27477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tsan" >&5
27478 printf "%s\n" "$enable_tsan" >&6; }
27479
27480 if test "x$enable_tsan" != "xno"
27481 then :
27482
27483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fsanitize=thread" >&5
27484 printf %s "checking whether C++ compiler handles -fsanitize=thread... " >&6; }
27485 if test ${gl_cv_warn_cxx__fsanitize_thread+y}
27486 then :
27487 printf %s "(cached) " >&6
27488 else case e in #(
27489 e)
27490 gl_save_compiler_FLAGS="$CXXFLAGS"
27491 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=thread"
27492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27493 /* end confdefs.h. */
27494
27495 int
27496 main (void)
27497 {
27498
27499 ;
27500 return 0;
27501 }
27502 _ACEOF
27503 if ac_fn_cxx_try_link "$LINENO"
27504 then :
27505 gl_cv_warn_cxx__fsanitize_thread=yes
27506 else case e in #(
27507 e) gl_cv_warn_cxx__fsanitize_thread=no ;;
27508 esac
27509 fi
27510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27511 conftest$ac_exeext conftest.$ac_ext
27512 CXXFLAGS="$gl_save_compiler_FLAGS"
27513 ;;
27514 esac
27515 fi
27516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_thread" >&5
27517 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_thread" >&6; }
27518 if test "x$gl_cv_warn_cxx__fsanitize_thread" = xyes
27519 then :
27520 SANITIZER_FLAGS="-fsanitize=thread $SANITIZER_FLAGS"
27521 else case e in #(
27522 e) as_fn_error $? "Cannot enable ThreadSanitizer" "$LINENO" 5
27523 ;;
27524 esac
27525 fi
27526
27527
27528 fi
27529
27530
27531
27532
27533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable LeakSanitizer" >&5
27534 printf %s "checking whether to enable LeakSanitizer... " >&6; }
27535 # Check whether --enable-lsan was given.
27536 if test ${enable_lsan+y}
27537 then :
27538 enableval=$enable_lsan; enable_lsan=$enableval
27539 else case e in #(
27540 e) enable_lsan=no
27541 ;;
27542 esac
27543 fi
27544
27545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lsan" >&5
27546 printf "%s\n" "$enable_lsan" >&6; }
27547
27548 if test "x$enable_lsan" != "xno"
27549 then :
27550
27551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fsanitize=leak" >&5
27552 printf %s "checking whether C++ compiler handles -fsanitize=leak... " >&6; }
27553 if test ${gl_cv_warn_cxx__fsanitize_leak+y}
27554 then :
27555 printf %s "(cached) " >&6
27556 else case e in #(
27557 e)
27558 gl_save_compiler_FLAGS="$CXXFLAGS"
27559 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=leak"
27560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27561 /* end confdefs.h. */
27562
27563 int
27564 main (void)
27565 {
27566
27567 ;
27568 return 0;
27569 }
27570 _ACEOF
27571 if ac_fn_cxx_try_link "$LINENO"
27572 then :
27573 gl_cv_warn_cxx__fsanitize_leak=yes
27574 else case e in #(
27575 e) gl_cv_warn_cxx__fsanitize_leak=no ;;
27576 esac
27577 fi
27578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27579 conftest$ac_exeext conftest.$ac_ext
27580 CXXFLAGS="$gl_save_compiler_FLAGS"
27581 ;;
27582 esac
27583 fi
27584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_leak" >&5
27585 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_leak" >&6; }
27586 if test "x$gl_cv_warn_cxx__fsanitize_leak" = xyes
27587 then :
27588 SANITIZER_FLAGS="-fsanitize=leak $SANITIZER_FLAGS"
27589 else case e in #(
27590 e) as_fn_error $? "Cannot enable LeakSanitizer" "$LINENO" 5
27591 ;;
27592 esac
27593 fi
27594
27595 for ac_header in sanitizer/lsan_interface.h
27596 do :
27597 ac_fn_cxx_check_header_compile "$LINENO" "sanitizer/lsan_interface.h" "ac_cv_header_sanitizer_lsan_interface_h" "$ac_includes_default"
27598 if test "x$ac_cv_header_sanitizer_lsan_interface_h" = xyes
27599 then :
27600 printf "%s\n" "#define HAVE_SANITIZER_LSAN_INTERFACE_H 1" >>confdefs.h
27601
27602 printf "%s\n" "#define HAVE_LEAK_SANITIZER_INTERFACE 1" >>confdefs.h
27603
27604 fi
27605
27606 done
27607
27608 fi
27609
27610
27611
27612
27613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Undefined Behaviour Sanitizer" >&5
27614 printf %s "checking whether to enable Undefined Behaviour Sanitizer... " >&6; }
27615 # Check whether --enable-ubsan was given.
27616 if test ${enable_ubsan+y}
27617 then :
27618 enableval=$enable_ubsan; enable_ubsan=$enableval
27619 else case e in #(
27620 e) enable_ubsan=no
27621 ;;
27622 esac
27623 fi
27624
27625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
27626 printf "%s\n" "$enable_ubsan" >&6; }
27627
27628 if test "x$enable_ubsan" != "xno"
27629 then :
27630
27631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fsanitize=undefined" >&5
27632 printf %s "checking whether C++ compiler handles -fsanitize=undefined... " >&6; }
27633 if test ${gl_cv_warn_cxx__fsanitize_undefined+y}
27634 then :
27635 printf %s "(cached) " >&6
27636 else case e in #(
27637 e)
27638 gl_save_compiler_FLAGS="$CXXFLAGS"
27639 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fsanitize=undefined"
27640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27641 /* end confdefs.h. */
27642
27643 int
27644 main (void)
27645 {
27646
27647 ;
27648 return 0;
27649 }
27650 _ACEOF
27651 if ac_fn_cxx_try_link "$LINENO"
27652 then :
27653 gl_cv_warn_cxx__fsanitize_undefined=yes
27654 else case e in #(
27655 e) gl_cv_warn_cxx__fsanitize_undefined=no ;;
27656 esac
27657 fi
27658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27659 conftest$ac_exeext conftest.$ac_ext
27660 CXXFLAGS="$gl_save_compiler_FLAGS"
27661 ;;
27662 esac
27663 fi
27664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fsanitize_undefined" >&5
27665 printf "%s\n" "$gl_cv_warn_cxx__fsanitize_undefined" >&6; }
27666 if test "x$gl_cv_warn_cxx__fsanitize_undefined" = xyes
27667 then :
27668 SANITIZER_FLAGS="-fsanitize=undefined $SANITIZER_FLAGS"
27669 else case e in #(
27670 e) as_fn_error $? "Cannot enable Undefined Behaviour Sanitizer" "$LINENO" 5
27671 ;;
27672 esac
27673 fi
27674
27675
27676 fi
27677
27678
27679
27680 if test "x$enable_asan" != "xno" -a "x$enable_tsan" != "xno"
27681 then :
27682
27683 as_fn_error $? "Address Sanitizer is not compatible with Thread Sanitizer" "$LINENO" 5
27684
27685 fi
27686
27687 if test "x$enable_msan" != "xno" -a "x$enable_asan" != "xno"
27688 then :
27689
27690 as_fn_error $? "Memory Sanitizer is not compatible with Address Sanitizer" "$LINENO" 5
27691
27692 fi
27693
27694 if test "x$enable_msan" != "xno" -a "x$enable_lsan" != "xno"
27695 then :
27696
27697 as_fn_error $? "Memory Sanitizer is not compatible with Leak Sanitizer" "$LINENO" 5
27698
27699 fi
27700
27701 if test "x$enable_msan" != "xno" -a "x$enable_tsan" != "xno"
27702 then :
27703
27704 as_fn_error $? "Memory Sanitizer is not compatible with Thread Sanitizer" "$LINENO" 5
27705
27706 fi
27707
27708 if test "x$enable_asan" != "xno" -o "x$enable_tsan" != "xno" -o "x$enable_lsan" != "xno" -o "x$enable_ubsan" != "xno" -o "x$enable_msan" != "xno"
27709 then :
27710
27711
27712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fno-omit-frame-pointer" >&5
27713 printf %s "checking whether C++ compiler handles -fno-omit-frame-pointer... " >&6; }
27714 if test ${gl_cv_warn_cxx__fno_omit_frame_pointer+y}
27715 then :
27716 printf %s "(cached) " >&6
27717 else case e in #(
27718 e)
27719 gl_save_compiler_FLAGS="$CXXFLAGS"
27720 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fno-omit-frame-pointer"
27721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27722 /* end confdefs.h. */
27723
27724 int
27725 main (void)
27726 {
27727
27728 ;
27729 return 0;
27730 }
27731 _ACEOF
27732 if ac_fn_cxx_try_link "$LINENO"
27733 then :
27734 gl_cv_warn_cxx__fno_omit_frame_pointer=yes
27735 else case e in #(
27736 e) gl_cv_warn_cxx__fno_omit_frame_pointer=no ;;
27737 esac
27738 fi
27739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27740 conftest$ac_exeext conftest.$ac_ext
27741 CXXFLAGS="$gl_save_compiler_FLAGS"
27742 ;;
27743 esac
27744 fi
27745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fno_omit_frame_pointer" >&5
27746 printf "%s\n" "$gl_cv_warn_cxx__fno_omit_frame_pointer" >&6; }
27747 if test "x$gl_cv_warn_cxx__fno_omit_frame_pointer" = xyes
27748 then :
27749 as_fn_append WARN_CFLAGS " -fno-omit-frame-pointer"
27750 fi
27751
27752
27753
27754 fi
27755
27756
27757 # Check whether --enable-lto was given.
27758 if test ${enable_lto+y}
27759 then :
27760 enableval=$enable_lto; enable_lto=$enableval
27761 else case e in #(
27762 e) enable_lto=no
27763 ;;
27764 esac
27765 fi
27766
27767
27768 if test "$enable_lto" != "no"
27769 then :
27770
27771
27772 if test "$enable_lto" = "thin"
27773 then :
27774
27775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -flto=thin" >&5
27776 printf %s "checking whether C++ compiler handles -flto=thin... " >&6; }
27777 if test ${gl_cv_warn_cxx__flto_thin+y}
27778 then :
27779 printf %s "(cached) " >&6
27780 else case e in #(
27781 e)
27782 gl_save_compiler_FLAGS="$CXXFLAGS"
27783 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -flto=thin"
27784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27785 /* end confdefs.h. */
27786
27787 int
27788 main (void)
27789 {
27790
27791 ;
27792 return 0;
27793 }
27794 _ACEOF
27795 if ac_fn_cxx_try_link "$LINENO"
27796 then :
27797 gl_cv_warn_cxx__flto_thin=yes
27798 else case e in #(
27799 e) gl_cv_warn_cxx__flto_thin=no ;;
27800 esac
27801 fi
27802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27803 conftest$ac_exeext conftest.$ac_ext
27804 CXXFLAGS="$gl_save_compiler_FLAGS"
27805 ;;
27806 esac
27807 fi
27808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__flto_thin" >&5
27809 printf "%s\n" "$gl_cv_warn_cxx__flto_thin" >&6; }
27810 if test "x$gl_cv_warn_cxx__flto_thin" = xyes
27811 then :
27812
27813 CFLAGS="-flto=thin $CFLAGS"
27814 CXXFLAGS="-flto=thin $CXXFLAGS"
27815 LDFLAGS="-flto=thin $LDFLAGS"
27816
27817 else case e in #(
27818 e) enable_lto=auto ;;
27819 esac
27820 fi
27821
27822
27823 fi
27824
27825 if test "$enable_lto" = "auto"
27826 then :
27827
27828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -flto=auto" >&5
27829 printf %s "checking whether C++ compiler handles -flto=auto... " >&6; }
27830 if test ${gl_cv_warn_cxx__flto_auto+y}
27831 then :
27832 printf %s "(cached) " >&6
27833 else case e in #(
27834 e)
27835 gl_save_compiler_FLAGS="$CXXFLAGS"
27836 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -flto=auto"
27837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27838 /* end confdefs.h. */
27839
27840 int
27841 main (void)
27842 {
27843
27844 ;
27845 return 0;
27846 }
27847 _ACEOF
27848 if ac_fn_cxx_try_link "$LINENO"
27849 then :
27850 gl_cv_warn_cxx__flto_auto=yes
27851 else case e in #(
27852 e) gl_cv_warn_cxx__flto_auto=no ;;
27853 esac
27854 fi
27855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27856 conftest$ac_exeext conftest.$ac_ext
27857 CXXFLAGS="$gl_save_compiler_FLAGS"
27858 ;;
27859 esac
27860 fi
27861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__flto_auto" >&5
27862 printf "%s\n" "$gl_cv_warn_cxx__flto_auto" >&6; }
27863 if test "x$gl_cv_warn_cxx__flto_auto" = xyes
27864 then :
27865
27866 CFLAGS="-flto=auto $CFLAGS"
27867 CXXFLAGS="-flto=auto $CXXFLAGS"
27868 LDFLAGS="-flto=auto $LDFLAGS"
27869
27870 else case e in #(
27871 e) enable_lto=yes ;;
27872 esac
27873 fi
27874
27875
27876 fi
27877
27878 if test "$enable_lto" = "yes"
27879 then :
27880
27881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -flto" >&5
27882 printf %s "checking whether C++ compiler handles -flto... " >&6; }
27883 if test ${gl_cv_warn_cxx__flto+y}
27884 then :
27885 printf %s "(cached) " >&6
27886 else case e in #(
27887 e)
27888 gl_save_compiler_FLAGS="$CXXFLAGS"
27889 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -flto"
27890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27891 /* end confdefs.h. */
27892
27893 int
27894 main (void)
27895 {
27896
27897 ;
27898 return 0;
27899 }
27900 _ACEOF
27901 if ac_fn_cxx_try_link "$LINENO"
27902 then :
27903 gl_cv_warn_cxx__flto=yes
27904 else case e in #(
27905 e) gl_cv_warn_cxx__flto=no ;;
27906 esac
27907 fi
27908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27909 conftest$ac_exeext conftest.$ac_ext
27910 CXXFLAGS="$gl_save_compiler_FLAGS"
27911 ;;
27912 esac
27913 fi
27914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__flto" >&5
27915 printf "%s\n" "$gl_cv_warn_cxx__flto" >&6; }
27916 if test "x$gl_cv_warn_cxx__flto" = xyes
27917 then :
27918
27919 CFLAGS="-flto $CFLAGS"
27920 CXXFLAGS="-flto $CXXFLAGS"
27921 LDFLAGS="-flto $LDFLAGS"
27922
27923 else case e in #(
27924 e) enable_lto=no ;;
27925 esac
27926 fi
27927
27928
27929 fi
27930
27931 fi
27932
27933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
27934 printf %s "checking whether link-time optimization is supported... " >&6; }
27935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lto" >&5
27936 printf "%s\n" "$enable_lto" >&6; }
27937
27938
27939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable code coverage" >&5
27940 printf %s "checking whether to enable code coverage... " >&6; }
27941 # Check whether --enable-coverage was given.
27942 if test ${enable_coverage+y}
27943 then :
27944 enableval=$enable_coverage; enable_coverage=$enableval
27945 else case e in #(
27946 e) enable_coverage=no
27947 ;;
27948 esac
27949 fi
27950
27951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
27952 printf "%s\n" "$enable_coverage" >&6; }
27953
27954 if test "x$enable_coverage" = "xclang"
27955 then :
27956
27957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fprofile-instr-generate -fcoverage-mapping" >&5
27958 printf %s "checking whether C++ compiler handles -fprofile-instr-generate -fcoverage-mapping... " >&6; }
27959 if test ${gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping+y}
27960 then :
27961 printf %s "(cached) " >&6
27962 else case e in #(
27963 e)
27964 gl_save_compiler_FLAGS="$CXXFLAGS"
27965 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fprofile-instr-generate -fcoverage-mapping"
27966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27967 /* end confdefs.h. */
27968
27969 int
27970 main (void)
27971 {
27972
27973 ;
27974 return 0;
27975 }
27976 _ACEOF
27977 if ac_fn_cxx_try_link "$LINENO"
27978 then :
27979 gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping=yes
27980 else case e in #(
27981 e) gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping=no ;;
27982 esac
27983 fi
27984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27985 conftest$ac_exeext conftest.$ac_ext
27986 CXXFLAGS="$gl_save_compiler_FLAGS"
27987 ;;
27988 esac
27989 fi
27990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping" >&5
27991 printf "%s\n" "$gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping" >&6; }
27992 if test "x$gl_cv_warn_cxx__fprofile_instr_generate__fcoverage_mapping" = xyes
27993 then :
27994
27995 CFLAGS="$CFLAGS -DCOVERAGE -DCLANG_COVERAGE -fprofile-instr-generate -fcoverage-mapping"
27996 CXXFLAGS="$CXXFLAGS -DCOVERAGE -DCLANG_COVERAGE -fprofile-instr-generate -fcoverage-mapping"
27997
27998 else case e in #(
27999 e)
28000 as_fn_error $? "$CXX does not support gathering coverage data in the clang format" "$LINENO" 5
28001 ;;
28002 esac
28003 fi
28004
28005
28006 fi
28007
28008 if test "x$enable_coverage" = "xyes"
28009 then :
28010
28011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -fprofile-arcs -ftest-coverage" >&5
28012 printf %s "checking whether C++ compiler handles -fprofile-arcs -ftest-coverage... " >&6; }
28013 if test ${gl_cv_warn_cxx__fprofile_arcs__ftest_coverage+y}
28014 then :
28015 printf %s "(cached) " >&6
28016 else case e in #(
28017 e)
28018 gl_save_compiler_FLAGS="$CXXFLAGS"
28019 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -fprofile-arcs -ftest-coverage"
28020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28021 /* end confdefs.h. */
28022
28023 int
28024 main (void)
28025 {
28026
28027 ;
28028 return 0;
28029 }
28030 _ACEOF
28031 if ac_fn_cxx_try_link "$LINENO"
28032 then :
28033 gl_cv_warn_cxx__fprofile_arcs__ftest_coverage=yes
28034 else case e in #(
28035 e) gl_cv_warn_cxx__fprofile_arcs__ftest_coverage=no ;;
28036 esac
28037 fi
28038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28039 conftest$ac_exeext conftest.$ac_ext
28040 CXXFLAGS="$gl_save_compiler_FLAGS"
28041 ;;
28042 esac
28043 fi
28044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fprofile_arcs__ftest_coverage" >&5
28045 printf "%s\n" "$gl_cv_warn_cxx__fprofile_arcs__ftest_coverage" >&6; }
28046 if test "x$gl_cv_warn_cxx__fprofile_arcs__ftest_coverage" = xyes
28047 then :
28048
28049 CFLAGS="$CFLAGS -DCOVERAGE --coverage"
28050 CXXFLAGS="$CXXFLAGS -DCOVERAGE --coverage"
28051 LDFLAGS="$LDFLAGS --coverage"
28052
28053 else case e in #(
28054 e)
28055 as_fn_error $? "$CXX does not support gathering coverage data" "$LINENO" 5
28056 ;;
28057 esac
28058 fi
28059
28060
28061 fi
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071 if test -n "$PYTHON"; then
28072 # If the user set $PYTHON, use it and don't search something else.
28073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
28074 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
28075 prog="import sys
28076 # split strings by '.' and convert to numeric. Append some zeros
28077 # because we need at least 4 digits for the hex conversion.
28078 # map returns an iterator in Python 3.0 and a list in 2.x
28079 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
28080 minverhex = 0
28081 # xrange is not present in Python 3.0 and range returns an iterator
28082 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
28083 sys.exit(sys.hexversion < minverhex)"
28084 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
28085 ($PYTHON -c "$prog") >&5 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }
28089 then :
28090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28091 printf "%s\n" "yes" >&6; }
28092 else case e in #(
28093 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28094 printf "%s\n" "no" >&6; }
28095 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
28096 esac
28097 fi
28098 am_display_PYTHON=$PYTHON
28099 else
28100 # Otherwise, try each interpreter until we find one that satisfies
28101 # VERSION.
28102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
28103 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
28104 if test ${am_cv_pathless_PYTHON+y}
28105 then :
28106 printf %s "(cached) " >&6
28107 else case e in #(
28108 e)
28109 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 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 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
28110 test "$am_cv_pathless_PYTHON" = none && break
28111 prog="import sys
28112 # split strings by '.' and convert to numeric. Append some zeros
28113 # because we need at least 4 digits for the hex conversion.
28114 # map returns an iterator in Python 3.0 and a list in 2.x
28115 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
28116 minverhex = 0
28117 # xrange is not present in Python 3.0 and range returns an iterator
28118 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
28119 sys.exit(sys.hexversion < minverhex)"
28120 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
28121 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }
28125 then :
28126 break
28127 fi
28128 done ;;
28129 esac
28130 fi
28131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
28132 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
28133 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
28134 if test "$am_cv_pathless_PYTHON" = none; then
28135 PYTHON=:
28136 else
28137 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
28138 set dummy $am_cv_pathless_PYTHON; ac_word=$2
28139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28140 printf %s "checking for $ac_word... " >&6; }
28141 if test ${ac_cv_path_PYTHON+y}
28142 then :
28143 printf %s "(cached) " >&6
28144 else case e in #(
28145 e) case $PYTHON in
28146 [\\/]* | ?:[\\/]*)
28147 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
28148 ;;
28149 *)
28150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28151 for as_dir in $PATH
28152 do
28153 IFS=$as_save_IFS
28154 case $as_dir in #(((
28155 '') as_dir=./ ;;
28156 */) ;;
28157 *) as_dir=$as_dir/ ;;
28158 esac
28159 for ac_exec_ext in '' $ac_executable_extensions; do
28160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28161 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
28162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28163 break 2
28164 fi
28165 done
28166 done
28167 IFS=$as_save_IFS
28168
28169 ;;
28170 esac ;;
28171 esac
28172 fi
28173 PYTHON=$ac_cv_path_PYTHON
28174 if test -n "$PYTHON"; then
28175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
28176 printf "%s\n" "$PYTHON" >&6; }
28177 else
28178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28179 printf "%s\n" "no" >&6; }
28180 fi
28181
28182
28183 fi
28184 am_display_PYTHON=$am_cv_pathless_PYTHON
28185 fi
28186
28187
28188 if test "$PYTHON" = :; then
28189 :
28190 else
28191
28192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
28193 printf %s "checking for $am_display_PYTHON version... " >&6; }
28194 if test ${am_cv_python_version+y}
28195 then :
28196 printf %s "(cached) " >&6
28197 else case e in #(
28198 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
28199 esac
28200 fi
28201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
28202 printf "%s\n" "$am_cv_python_version" >&6; }
28203 PYTHON_VERSION=$am_cv_python_version
28204
28205
28206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
28207 printf %s "checking for $am_display_PYTHON platform... " >&6; }
28208 if test ${am_cv_python_platform+y}
28209 then :
28210 printf %s "(cached) " >&6
28211 else case e in #(
28212 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
28213 esac
28214 fi
28215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
28216 printf "%s\n" "$am_cv_python_platform" >&6; }
28217 PYTHON_PLATFORM=$am_cv_python_platform
28218
28219
28220 if test "x$prefix" = xNONE; then
28221 am__usable_prefix=$ac_default_prefix
28222 else
28223 am__usable_prefix=$prefix
28224 fi
28225
28226 # Allow user to request using sys.* values from Python,
28227 # instead of the GNU $prefix values.
28228
28229 # Check whether --with-python-sys-prefix was given.
28230 if test ${with_python_sys_prefix+y}
28231 then :
28232 withval=$with_python_sys_prefix; am_use_python_sys=:
28233 else case e in #(
28234 e) am_use_python_sys=false ;;
28235 esac
28236 fi
28237
28238
28239 # Allow user to override whatever the default Python prefix is.
28240
28241 # Check whether --with-python_prefix was given.
28242 if test ${with_python_prefix+y}
28243 then :
28244 withval=$with_python_prefix; am_python_prefix_subst=$withval
28245 am_cv_python_prefix=$withval
28246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
28247 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
28248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
28249 printf "%s\n" "$am_cv_python_prefix" >&6; }
28250 else case e in #(
28251 e)
28252 if $am_use_python_sys; then
28253 # using python sys.prefix value, not GNU
28254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
28255 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
28256 if test ${am_cv_python_prefix+y}
28257 then :
28258 printf %s "(cached) " >&6
28259 else case e in #(
28260 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
28261 esac
28262 fi
28263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
28264 printf "%s\n" "$am_cv_python_prefix" >&6; }
28265
28266 case $am_cv_python_prefix in
28267 $am__usable_prefix*)
28268 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
28269 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
28270 ;;
28271 *)
28272 am_python_prefix_subst=$am_cv_python_prefix
28273 ;;
28274 esac
28275 else # using GNU prefix value, not python sys.prefix
28276 am_python_prefix_subst='${prefix}'
28277 am_python_prefix=$am_python_prefix_subst
28278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
28279 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
28280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
28281 printf "%s\n" "$am_python_prefix" >&6; }
28282 fi ;;
28283 esac
28284 fi
28285
28286 # Substituting python_prefix_subst value.
28287 PYTHON_PREFIX=$am_python_prefix_subst
28288
28289
28290 # emacs-page Now do it all over again for Python exec_prefix, but with yet
28291 # another conditional: fall back to regular prefix if that was specified.
28292
28293 # Check whether --with-python_exec_prefix was given.
28294 if test ${with_python_exec_prefix+y}
28295 then :
28296 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
28297 am_cv_python_exec_prefix=$withval
28298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
28299 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
28300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
28301 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
28302 else case e in #(
28303 e)
28304 # no explicit --with-python_exec_prefix, but if
28305 # --with-python_prefix was given, use its value for python_exec_prefix too.
28306 if test -n "$with_python_prefix"
28307 then :
28308 am_python_exec_prefix_subst=$with_python_prefix
28309 am_cv_python_exec_prefix=$with_python_prefix
28310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
28311 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
28312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
28313 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
28314 else case e in #(
28315 e)
28316 # Set am__usable_exec_prefix whether using GNU or Python values,
28317 # since we use that variable for pyexecdir.
28318 if test "x$exec_prefix" = xNONE; then
28319 am__usable_exec_prefix=$am__usable_prefix
28320 else
28321 am__usable_exec_prefix=$exec_prefix
28322 fi
28323 #
28324 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
28325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
28326 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
28327 if test ${am_cv_python_exec_prefix+y}
28328 then :
28329 printf %s "(cached) " >&6
28330 else case e in #(
28331 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
28332 esac
28333 fi
28334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
28335 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
28336 case $am_cv_python_exec_prefix in
28337 $am__usable_exec_prefix*)
28338 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
28339 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
28340 ;;
28341 *)
28342 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
28343 ;;
28344 esac
28345 else # using GNU $exec_prefix, not python sys.exec_prefix
28346 am_python_exec_prefix_subst='${exec_prefix}'
28347 am_python_exec_prefix=$am_python_exec_prefix_subst
28348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
28349 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
28350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
28351 printf "%s\n" "$am_python_exec_prefix" >&6; }
28352 fi ;;
28353 esac
28354 fi ;;
28355 esac
28356 fi
28357
28358 # Substituting python_exec_prefix_subst.
28359 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
28360
28361
28362 # Factor out some code duplication into this shell variable.
28363 am_python_setup_sysconfig="\
28364 import sys
28365 # Prefer sysconfig over distutils.sysconfig, for better compatibility
28366 # with python 3.x. See automake bug#10227.
28367 try:
28368 import sysconfig
28369 except ImportError:
28370 can_use_sysconfig = 0
28371 else:
28372 can_use_sysconfig = 1
28373 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
28374 # <https://github.com/pypa/virtualenv/issues/118>
28375 try:
28376 from platform import python_implementation
28377 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
28378 can_use_sysconfig = 0
28379 except ImportError:
28380 pass" # end of am_python_setup_sysconfig
28381
28382 # More repeated code, for figuring out the installation scheme to use.
28383 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
28384 scheme = sysconfig.get_default_scheme()
28385 else:
28386 scheme = sysconfig._get_default_scheme()
28387 if scheme == 'posix_local':
28388 if '$am_py_prefix' == '/usr':
28389 scheme = 'deb_system' # should only happen during Debian package builds
28390 else:
28391 # Debian's default scheme installs to /usr/local/ but we want to
28392 # follow the prefix, as we always have.
28393 # See bugs#54412, #64837, et al.
28394 scheme = 'posix_prefix'" # end of am_python_setup_scheme
28395
28396
28397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
28398 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
28399 if test ${am_cv_python_pythondir+y}
28400 then :
28401 printf %s "(cached) " >&6
28402 else case e in #(
28403 e) if test "x$am_cv_python_prefix" = x; then
28404 am_py_prefix=$am__usable_prefix
28405 else
28406 am_py_prefix=$am_cv_python_prefix
28407 fi
28408 am_cv_python_pythondir=`$PYTHON -c "
28409 $am_python_setup_sysconfig
28410 if can_use_sysconfig:
28411 try:
28412 $am_python_setup_scheme
28413 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
28414 except:
28415 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
28416 else:
28417 from distutils import sysconfig
28418 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
28419 sys.stdout.write(sitedir)"`
28420 #
28421 case $am_cv_python_pythondir in
28422 $am_py_prefix*)
28423 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
28424 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
28425 ;;
28426 *)
28427 case $am_py_prefix in
28428 /usr|/System*) ;;
28429 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
28430 ;;
28431 esac
28432 ;;
28433 esac
28434 ;;
28435 esac
28436 fi
28437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
28438 printf "%s\n" "$am_cv_python_pythondir" >&6; }
28439 pythondir=$am_cv_python_pythondir
28440
28441
28442 pkgpythondir=\${pythondir}/$PACKAGE
28443
28444
28445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
28446 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
28447 if test ${am_cv_python_pyexecdir+y}
28448 then :
28449 printf %s "(cached) " >&6
28450 else case e in #(
28451 e) if test "x$am_cv_python_exec_prefix" = x; then
28452 am_py_exec_prefix=$am__usable_exec_prefix
28453 else
28454 am_py_exec_prefix=$am_cv_python_exec_prefix
28455 fi
28456 am_cv_python_pyexecdir=`$PYTHON -c "
28457 $am_python_setup_sysconfig
28458 if can_use_sysconfig:
28459 try:
28460 $am_python_setup_scheme
28461 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
28462 except:
28463 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
28464 else:
28465 from distutils import sysconfig
28466 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
28467 sys.stdout.write(sitedir)"`
28468 #
28469 case $am_cv_python_pyexecdir in
28470 $am_py_exec_prefix*)
28471 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
28472 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
28473 ;;
28474 *)
28475 case $am_py_exec_prefix in
28476 /usr|/System*) ;;
28477 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
28478 ;;
28479 esac
28480 ;;
28481 esac
28482 ;;
28483 esac
28484 fi
28485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
28486 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
28487 pyexecdir=$am_cv_python_pyexecdir
28488
28489
28490 pkgpyexecdir=\${pyexecdir}/$PACKAGE
28491
28492
28493
28494 fi
28495
28496 if test "${PYTHON}" != ":"
28497 then :
28498
28499
28500 if test -z $PYTHON;
28501 then
28502 if test -z "";
28503 then
28504 PYTHON="python3"
28505 else
28506 PYTHON=""
28507 fi
28508 fi
28509 PYTHON_NAME=`basename $PYTHON`
28510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: venv" >&5
28511 printf %s "checking $PYTHON_NAME module: venv... " >&6; }
28512 $PYTHON -c "import venv" 2>/dev/null
28513 if test $? -eq 0;
28514 then
28515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28516 printf "%s\n" "yes" >&6; }
28517 eval HAVE_PYMOD_VENV=yes
28518 else
28519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28520 printf "%s\n" "no" >&6; }
28521 eval HAVE_PYMOD_VENV=no
28522 #
28523 if test -n ""
28524 then
28525 as_fn_error $? "failed to find required module venv" "$LINENO" 5
28526 exit 1
28527 fi
28528 fi
28529
28530
28531 fi
28532 if test "x${HAVE_PYMOD_VENV}" = "xyes"; then
28533 HAVE_VENV_TRUE=
28534 HAVE_VENV_FALSE='#'
28535 else
28536 HAVE_VENV_TRUE='#'
28537 HAVE_VENV_FALSE=
28538 fi
28539
28540
28541
28542 if test -e "$srcdir/dnsdist.1"; then
28543 HAVE_MANPAGES_TRUE=
28544 HAVE_MANPAGES_FALSE='#'
28545 else
28546 HAVE_MANPAGES_TRUE='#'
28547 HAVE_MANPAGES_FALSE=
28548 fi
28549
28550 if test -z "$HAVE_MANPAGES_TRUE"; then :
28551 else
28552
28553 if test -z "$HAVE_VENV_TRUE"; then :
28554 else
28555
28556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python 3 and/or venv module are not available, documentation will not be built." >&5
28557 printf "%s\n" "$as_me: WARNING: Python 3 and/or venv module are not available, documentation will not be built." >&2;}
28558
28559 fi
28560
28561 fi
28562
28563 LDFLAGS="$RELRO_LDFLAGS $LDFLAGS"
28564
28565 CFLAGS="$SANITIZER_FLAGS $PIE_CFLAGS $CFLAGS"
28566 CXXFLAGS="$SANITIZER_FLAGS $PIE_CFLAGS $CXXFLAGS"
28567
28568 CCVERSION=`$CC --version | head -1`
28569 CXXVERSION=`$CXX --version | head -1`
28570
28571 PROGRAM_LDFLAGS="$PIE_LDFLAGS $PROGRAM_LDFLAGS"
28572
28573
28574 AM_CPPFLAGS="-I\$(top_builddir) -I\$(top_srcdir) $THREADFLAGS $BOOST_CPPFLAGS"
28575
28576
28577
28578
28579 if test "x$PACKAGEVERSION" != "x"
28580 then :
28581
28582 printf "%s\n" "#define PACKAGEVERSION \"$PACKAGEVERSION\"" >>confdefs.h
28583
28584
28585 fi
28586
28587 ac_config_files="$ac_config_files Makefile dnsdist-rust-lib/Makefile dnsdist-rust-lib/rust/Makefile ext/arc4random/Makefile ext/yahttp/Makefile ext/yahttp/yahttp/Makefile ext/ipcrypt/Makefile ext/ipcrypt2/Makefile"
28588
28589
28590 cat >confcache <<\_ACEOF
28591 # This file is a shell script that caches the results of configure
28592 # tests run on this system so they can be shared between configure
28593 # scripts and configure runs, see configure's option --config-cache.
28594 # It is not useful on other systems. If it contains results you don't
28595 # want to keep, you may remove or edit it.
28596 #
28597 # config.status only pays attention to the cache file if you give it
28598 # the --recheck option to rerun configure.
28599 #
28600 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
28601 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
28602 # following values.
28603
28604 _ACEOF
28605
28606 # The following way of writing the cache mishandles newlines in values,
28607 # but we know of no workaround that is simple, portable, and efficient.
28608 # So, we kill variables containing newlines.
28609 # Ultrix sh set writes to stderr and can't be redirected directly,
28610 # and sets the high bit in the cache file unless we assign to the vars.
28611 (
28612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28613 eval ac_val=\$$ac_var
28614 case $ac_val in #(
28615 *${as_nl}*)
28616 case $ac_var in #(
28617 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28618 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28619 esac
28620 case $ac_var in #(
28621 _ | IFS | as_nl) ;; #(
28622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28623 *) { eval $ac_var=; unset $ac_var;} ;;
28624 esac ;;
28625 esac
28626 done
28627
28628 (set) 2>&1 |
28629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28630 *${as_nl}ac_space=\ *)
28631 # 'set' does not quote correctly, so add quotes: double-quote
28632 # substitution turns \\\\ into \\, and sed turns \\ into \.
28633 sed -n \
28634 "s/'/'\\\\''/g;
28635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28636 ;; #(
28637 *)
28638 # 'set' quotes correctly as required by POSIX, so do not add quotes.
28639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28640 ;;
28641 esac |
28642 sort
28643 ) |
28644 sed '
28645 /^ac_cv_env_/b end
28646 t clear
28647 :clear
28648 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
28649 t end
28650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28651 :end' >>confcache
28652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28653 if test -w "$cache_file"; then
28654 if test "x$cache_file" != "x/dev/null"; then
28655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28656 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
28657 if test ! -f "$cache_file" || test -h "$cache_file"; then
28658 cat confcache >"$cache_file"
28659 else
28660 case $cache_file in #(
28661 */* | ?:*)
28662 mv -f confcache "$cache_file"$$ &&
28663 mv -f "$cache_file"$$ "$cache_file" ;; #(
28664 *)
28665 mv -f confcache "$cache_file" ;;
28666 esac
28667 fi
28668 fi
28669 else
28670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28671 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
28672 fi
28673 fi
28674 rm -f confcache
28675
28676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28677 # Let make expand exec_prefix.
28678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28679
28680 DEFS=-DHAVE_CONFIG_H
28681
28682 ac_libobjs=
28683 ac_ltlibobjs=
28684 U=
28685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28686 # 1. Remove the extension, and $U if already installed.
28687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28688 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
28689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28690 # will be set to the directory where LIBOBJS objects are built.
28691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28693 done
28694 LIBOBJS=$ac_libobjs
28695
28696 LTLIBOBJS=$ac_ltlibobjs
28697
28698
28699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28700 printf %s "checking that generated files are newer than configure... " >&6; }
28701 if test -n "$am_sleep_pid"; then
28702 # Hide warnings about reused PIDs.
28703 wait $am_sleep_pid 2>/dev/null
28704 fi
28705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
28706 printf "%s\n" "done" >&6; }
28707 case $enable_silent_rules in # (((
28708 yes) AM_DEFAULT_VERBOSITY=0;;
28709 no) AM_DEFAULT_VERBOSITY=1;;
28710 esac
28711 if test $am_cv_make_support_nested_variables = yes; then
28712 AM_V='$(V)'
28713 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
28714 else
28715 AM_V=$AM_DEFAULT_VERBOSITY
28716 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
28717 fi
28718
28719 if test -n "$EXEEXT"; then
28720 am__EXEEXT_TRUE=
28721 am__EXEEXT_FALSE='#'
28722 else
28723 am__EXEEXT_TRUE='#'
28724 am__EXEEXT_FALSE=
28725 fi
28726
28727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28728 as_fn_error $? "conditional \"AMDEP\" was never defined.
28729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28730 fi
28731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28734 fi
28735 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28736 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28738 fi
28739 if test -z "${LIBSODIUM_TRUE}" && test -z "${LIBSODIUM_FALSE}"; then
28740 as_fn_error $? "conditional \"LIBSODIUM\" was never defined.
28741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28742 fi
28743 if test -z "${HAVE_QUICHE_TRUE}" && test -z "${HAVE_QUICHE_FALSE}"; then
28744 as_fn_error $? "conditional \"HAVE_QUICHE\" was never defined.
28745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28746 fi
28747 if test -z "${FSTRM_TRUE}" && test -z "${FSTRM_FALSE}"; then
28748 as_fn_error $? "conditional \"FSTRM\" was never defined.
28749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28750 fi
28751 if test -z "${HAVE_LIBEDIT_TRUE}" && test -z "${HAVE_LIBEDIT_FALSE}"; then
28752 as_fn_error $? "conditional \"HAVE_LIBEDIT\" was never defined.
28753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28754 fi
28755 if test -z "${HAVE_FREEBSD_TRUE}" && test -z "${HAVE_FREEBSD_FALSE}"; then
28756 as_fn_error $? "conditional \"HAVE_FREEBSD\" was never defined.
28757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28758 fi
28759 if test -z "${HAVE_OPENBSD_TRUE}" && test -z "${HAVE_OPENBSD_FALSE}"; then
28760 as_fn_error $? "conditional \"HAVE_OPENBSD\" was never defined.
28761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28762 fi
28763 if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
28764 as_fn_error $? "conditional \"HAVE_LINUX\" was never defined.
28765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28766 fi
28767 if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
28768 as_fn_error $? "conditional \"HAVE_DARWIN\" was never defined.
28769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28770 fi
28771 if test -z "${HAVE_SOLARIS_TRUE}" && test -z "${HAVE_SOLARIS_FALSE}"; then
28772 as_fn_error $? "conditional \"HAVE_SOLARIS\" was never defined.
28773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28774 fi
28775 if test -z "${UNIT_TESTS_TRUE}" && test -z "${UNIT_TESTS_FALSE}"; then
28776 as_fn_error $? "conditional \"UNIT_TESTS\" was never defined.
28777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28778 fi
28779 if test -z "${FUZZ_TARGETS_TRUE}" && test -z "${FUZZ_TARGETS_FALSE}"; then
28780 as_fn_error $? "conditional \"FUZZ_TARGETS\" was never defined.
28781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28782 fi
28783 if test -z "${HAVE_RE2_TRUE}" && test -z "${HAVE_RE2_FALSE}"; then
28784 as_fn_error $? "conditional \"HAVE_RE2\" was never defined.
28785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28786 fi
28787 if test -z "${DNSCRYPT_TRUE}" && test -z "${DNSCRYPT_FALSE}"; then
28788 as_fn_error $? "conditional \"DNSCRYPT\" was never defined.
28789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28790 fi
28791 if test -z "${HAVE_EBPF_TRUE}" && test -z "${HAVE_EBPF_FALSE}"; then
28792 as_fn_error $? "conditional \"HAVE_EBPF\" was never defined.
28793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28794 fi
28795 if test -z "${HAVE_XSK_TRUE}" && test -z "${HAVE_XSK_FALSE}"; then
28796 as_fn_error $? "conditional \"HAVE_XSK\" was never defined.
28797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28798 fi
28799 if test -z "${HAVE_NET_SNMP_TRUE}" && test -z "${HAVE_NET_SNMP_FALSE}"; then
28800 as_fn_error $? "conditional \"HAVE_NET_SNMP\" was never defined.
28801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28802 fi
28803 if test -z "${HAVE_LIBCAP_TRUE}" && test -z "${HAVE_LIBCAP_FALSE}"; then
28804 as_fn_error $? "conditional \"HAVE_LIBCAP\" was never defined.
28805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28806 fi
28807 if test -z "${HAVE_SYSTEMD_DYNAMIC_USER_TRUE}" && test -z "${HAVE_SYSTEMD_DYNAMIC_USER_FALSE}"; then
28808 as_fn_error $? "conditional \"HAVE_SYSTEMD_DYNAMIC_USER\" was never defined.
28809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28810 fi
28811 if test -z "${HAVE_SYSTEMD_LOCK_PERSONALITY_TRUE}" && test -z "${HAVE_SYSTEMD_LOCK_PERSONALITY_FALSE}"; then
28812 as_fn_error $? "conditional \"HAVE_SYSTEMD_LOCK_PERSONALITY\" was never defined.
28813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28814 fi
28815 if test -z "${HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_TRUE}" && test -z "${HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE_FALSE}"; then
28816 as_fn_error $? "conditional \"HAVE_SYSTEMD_MEMORY_DENY_WRITE_EXECUTE\" was never defined.
28817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28818 fi
28819 if test -z "${HAVE_SYSTEMD_PERCENT_T_TRUE}" && test -z "${HAVE_SYSTEMD_PERCENT_T_FALSE}"; then
28820 as_fn_error $? "conditional \"HAVE_SYSTEMD_PERCENT_T\" was never defined.
28821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28822 fi
28823 if test -z "${HAVE_SYSTEMD_PRIVATE_DEVICES_TRUE}" && test -z "${HAVE_SYSTEMD_PRIVATE_DEVICES_FALSE}"; then
28824 as_fn_error $? "conditional \"HAVE_SYSTEMD_PRIVATE_DEVICES\" was never defined.
28825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28826 fi
28827 if test -z "${HAVE_SYSTEMD_PRIVATE_IPC_TRUE}" && test -z "${HAVE_SYSTEMD_PRIVATE_IPC_FALSE}"; then
28828 as_fn_error $? "conditional \"HAVE_SYSTEMD_PRIVATE_IPC\" was never defined.
28829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28830 fi
28831 if test -z "${HAVE_SYSTEMD_PRIVATE_MOUNTS_TRUE}" && test -z "${HAVE_SYSTEMD_PRIVATE_MOUNTS_FALSE}"; then
28832 as_fn_error $? "conditional \"HAVE_SYSTEMD_PRIVATE_MOUNTS\" was never defined.
28833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28834 fi
28835 if test -z "${HAVE_SYSTEMD_PRIVATE_TMP_TRUE}" && test -z "${HAVE_SYSTEMD_PRIVATE_TMP_FALSE}"; then
28836 as_fn_error $? "conditional \"HAVE_SYSTEMD_PRIVATE_TMP\" was never defined.
28837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28838 fi
28839 if test -z "${HAVE_SYSTEMD_PRIVATE_USERS_TRUE}" && test -z "${HAVE_SYSTEMD_PRIVATE_USERS_FALSE}"; then
28840 as_fn_error $? "conditional \"HAVE_SYSTEMD_PRIVATE_USERS\" was never defined.
28841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28842 fi
28843 if test -z "${HAVE_SYSTEMD_PROTECT_CLOCK_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_CLOCK_FALSE}"; then
28844 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_CLOCK\" was never defined.
28845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28846 fi
28847 if test -z "${HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS_FALSE}"; then
28848 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS\" was never defined.
28849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28850 fi
28851 if test -z "${HAVE_SYSTEMD_PROTECT_HOME_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_HOME_FALSE}"; then
28852 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_HOME\" was never defined.
28853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28854 fi
28855 if test -z "${HAVE_SYSTEMD_PROTECT_HOSTNAME_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_HOSTNAME_FALSE}"; then
28856 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_HOSTNAME\" was never defined.
28857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28858 fi
28859 if test -z "${HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_KERNEL_LOGS_FALSE}"; then
28860 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_KERNEL_LOGS\" was never defined.
28861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28862 fi
28863 if test -z "${HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_KERNEL_MODULES_FALSE}"; then
28864 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_KERNEL_MODULES\" was never defined.
28865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28866 fi
28867 if test -z "${HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES_FALSE}"; then
28868 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES\" was never defined.
28869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28870 fi
28871 if test -z "${HAVE_SYSTEMD_PROTECT_PROC_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_PROC_FALSE}"; then
28872 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_PROC\" was never defined.
28873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28874 fi
28875 if test -z "${HAVE_SYSTEMD_PROTECT_SYSTEM_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_SYSTEM_FALSE}"; then
28876 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_SYSTEM\" was never defined.
28877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28878 fi
28879 if test -z "${HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_TRUE}" && test -z "${HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT_FALSE}"; then
28880 as_fn_error $? "conditional \"HAVE_SYSTEMD_PROTECT_SYSTEM_STRICT\" was never defined.
28881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28882 fi
28883 if test -z "${HAVE_SYSTEMD_REMOVE_IPC_TRUE}" && test -z "${HAVE_SYSTEMD_REMOVE_IPC_FALSE}"; then
28884 as_fn_error $? "conditional \"HAVE_SYSTEMD_REMOVE_IPC\" was never defined.
28885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28886 fi
28887 if test -z "${HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_TRUE}" && test -z "${HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES_FALSE}"; then
28888 as_fn_error $? "conditional \"HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES\" was never defined.
28889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28890 fi
28891 if test -z "${HAVE_SYSTEMD_RESTRICT_NAMESPACES_TRUE}" && test -z "${HAVE_SYSTEMD_RESTRICT_NAMESPACES_FALSE}"; then
28892 as_fn_error $? "conditional \"HAVE_SYSTEMD_RESTRICT_NAMESPACES\" was never defined.
28893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28894 fi
28895 if test -z "${HAVE_SYSTEMD_RESTRICT_REALTIME_TRUE}" && test -z "${HAVE_SYSTEMD_RESTRICT_REALTIME_FALSE}"; then
28896 as_fn_error $? "conditional \"HAVE_SYSTEMD_RESTRICT_REALTIME\" was never defined.
28897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28898 fi
28899 if test -z "${HAVE_SYSTEMD_RESTRICT_SUIDSGID_TRUE}" && test -z "${HAVE_SYSTEMD_RESTRICT_SUIDSGID_FALSE}"; then
28900 as_fn_error $? "conditional \"HAVE_SYSTEMD_RESTRICT_SUIDSGID\" was never defined.
28901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28902 fi
28903 if test -z "${HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_TRUE}" && test -z "${HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES_FALSE}"; then
28904 as_fn_error $? "conditional \"HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES\" was never defined.
28905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28906 fi
28907 if test -z "${HAVE_SYSTEMD_SYSTEM_CALL_FILTER_TRUE}" && test -z "${HAVE_SYSTEMD_SYSTEM_CALL_FILTER_FALSE}"; then
28908 as_fn_error $? "conditional \"HAVE_SYSTEMD_SYSTEM_CALL_FILTER\" was never defined.
28909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28910 fi
28911 if test -z "${HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_TRUE}" && test -z "${HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV_FALSE}"; then
28912 as_fn_error $? "conditional \"HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV\" was never defined.
28913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28914 fi
28915 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
28916 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
28917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28918 fi
28919 if test -z "${LUA_TRUE}" && test -z "${LUA_FALSE}"; then
28920 as_fn_error $? "conditional \"LUA\" was never defined.
28921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28922 fi
28923 if test -z "${HAVE_LUA_HPP_TRUE}" && test -z "${HAVE_LUA_HPP_FALSE}"; then
28924 as_fn_error $? "conditional \"HAVE_LUA_HPP\" was never defined.
28925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28926 fi
28927 if test -z "${HAVE_CDB_TRUE}" && test -z "${HAVE_CDB_FALSE}"; then
28928 as_fn_error $? "conditional \"HAVE_CDB\" was never defined.
28929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28930 fi
28931 if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
28932 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
28933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28934 fi
28935 if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
28936 as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
28937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28938 fi
28939 if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then
28940 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined.
28941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28942 fi
28943 if test -z "${HAVE_NGHTTP2_TRUE}" && test -z "${HAVE_NGHTTP2_FALSE}"; then
28944 as_fn_error $? "conditional \"HAVE_NGHTTP2\" was never defined.
28945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28946 fi
28947 if test -z "${HAVE_LIBCRYPTO_TRUE}" && test -z "${HAVE_LIBCRYPTO_FALSE}"; then
28948 as_fn_error $? "conditional \"HAVE_LIBCRYPTO\" was never defined.
28949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28950 fi
28951 if test -z "${HAVE_TLS_PROVIDERS_TRUE}" && test -z "${HAVE_TLS_PROVIDERS_FALSE}"; then
28952 as_fn_error $? "conditional \"HAVE_TLS_PROVIDERS\" was never defined.
28953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28954 fi
28955 if test -z "${HAVE_DNS_OVER_TLS_TRUE}" && test -z "${HAVE_DNS_OVER_TLS_FALSE}"; then
28956 as_fn_error $? "conditional \"HAVE_DNS_OVER_TLS\" was never defined.
28957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28958 fi
28959 if test -z "${HAVE_DNS_OVER_HTTPS_TRUE}" && test -z "${HAVE_DNS_OVER_HTTPS_FALSE}"; then
28960 as_fn_error $? "conditional \"HAVE_DNS_OVER_HTTPS\" was never defined.
28961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28962 fi
28963 if test -z "${HAVE_DNS_OVER_QUIC_TRUE}" && test -z "${HAVE_DNS_OVER_QUIC_FALSE}"; then
28964 as_fn_error $? "conditional \"HAVE_DNS_OVER_QUIC\" was never defined.
28965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28966 fi
28967 if test -z "${HAVE_DNS_OVER_HTTP3_TRUE}" && test -z "${HAVE_DNS_OVER_HTTP3_FALSE}"; then
28968 as_fn_error $? "conditional \"HAVE_DNS_OVER_HTTP3\" was never defined.
28969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28970 fi
28971 if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
28972 as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
28973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28974 fi
28975 if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
28976 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
28977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28978 fi
28979 if test -z "${HAVE_NGHTTP2_TRUE}" && test -z "${HAVE_NGHTTP2_FALSE}"; then
28980 as_fn_error $? "conditional \"HAVE_NGHTTP2\" was never defined.
28981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28982 fi
28983 if test -z "${HAVE_YAML_CONFIGURATION_TRUE}" && test -z "${HAVE_YAML_CONFIGURATION_FALSE}"; then
28984 as_fn_error $? "conditional \"HAVE_YAML_CONFIGURATION\" was never defined.
28985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28986 fi
28987 if test -z "${HAVE_CDB_TRUE}" && test -z "${HAVE_CDB_FALSE}"; then
28988 as_fn_error $? "conditional \"HAVE_CDB\" was never defined.
28989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28990 fi
28991 if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then
28992 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined.
28993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28994 fi
28995 if test -z "${IPCIPHER_TRUE}" && test -z "${IPCIPHER_FALSE}"; then
28996 as_fn_error $? "conditional \"IPCIPHER\" was never defined.
28997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28998 fi
28999 if test -z "${HAVE_IPCRYPT2_TRUE}" && test -z "${HAVE_IPCRYPT2_FALSE}"; then
29000 as_fn_error $? "conditional \"HAVE_IPCRYPT2\" was never defined.
29001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29002 fi
29003 if test -z "${HAVE_VENV_TRUE}" && test -z "${HAVE_VENV_FALSE}"; then
29004 as_fn_error $? "conditional \"HAVE_VENV\" was never defined.
29005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29006 fi
29007 if test -z "${HAVE_MANPAGES_TRUE}" && test -z "${HAVE_MANPAGES_FALSE}"; then
29008 as_fn_error $? "conditional \"HAVE_MANPAGES\" was never defined.
29009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29010 fi
29011
29012 : "${CONFIG_STATUS=./config.status}"
29013 ac_write_fail=0
29014 ac_clean_files_save=$ac_clean_files
29015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29017 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
29018 as_write_fail=0
29019 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29020 #! $SHELL
29021 # Generated by $as_me.
29022 # Run this file to recreate the current configuration.
29023 # Compiler output produced by configure, useful for debugging
29024 # configure, is in config.log if it exists.
29025
29026 debug=false
29027 ac_cs_recheck=false
29028 ac_cs_silent=false
29029
29030 SHELL=\${CONFIG_SHELL-$SHELL}
29031 export SHELL
29032 _ASEOF
29033 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29034 ## -------------------- ##
29035 ## M4sh Initialization. ##
29036 ## -------------------- ##
29037
29038 # Be more Bourne compatible
29039 DUALCASE=1; export DUALCASE # for MKS sh
29040 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
29041 then :
29042 emulate sh
29043 NULLCMD=:
29044 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29045 # is contrary to our usage. Disable this feature.
29046 alias -g '${1+"$@"}'='"$@"'
29047 setopt NO_GLOB_SUBST
29048 else case e in #(
29049 e) case `(set -o) 2>/dev/null` in #(
29050 *posix*) :
29051 set -o posix ;; #(
29052 *) :
29053 ;;
29054 esac ;;
29055 esac
29056 fi
29057
29058
29059
29060 # Reset variables that may have inherited troublesome values from
29061 # the environment.
29062
29063 # IFS needs to be set, to space, tab, and newline, in precisely that order.
29064 # (If _AS_PATH_WALK were called with IFS unset, it would have the
29065 # side effect of setting IFS to empty, thus disabling word splitting.)
29066 # Quoting is to prevent editors from complaining about space-tab.
29067 as_nl='
29068 '
29069 export as_nl
29070 IFS=" "" $as_nl"
29071
29072 PS1='$ '
29073 PS2='> '
29074 PS4='+ '
29075
29076 # Ensure predictable behavior from utilities with locale-dependent output.
29077 LC_ALL=C
29078 export LC_ALL
29079 LANGUAGE=C
29080 export LANGUAGE
29081
29082 # We cannot yet rely on "unset" to work, but we need these variables
29083 # to be unset--not just set to an empty or harmless value--now, to
29084 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
29085 # also avoids known problems related to "unset" and subshell syntax
29086 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
29087 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
29088 do eval test \${$as_var+y} \
29089 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29090 done
29091
29092 # Ensure that fds 0, 1, and 2 are open.
29093 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
29094 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
29095 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
29096
29097 # The user is always right.
29098 if ${PATH_SEPARATOR+false} :; then
29099 PATH_SEPARATOR=:
29100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29102 PATH_SEPARATOR=';'
29103 }
29104 fi
29105
29106
29107 # Find who we are. Look in the path if we contain no directory separator.
29108 as_myself=
29109 case $0 in #((
29110 *[\\/]* ) as_myself=$0 ;;
29111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29112 for as_dir in $PATH
29113 do
29114 IFS=$as_save_IFS
29115 case $as_dir in #(((
29116 '') as_dir=./ ;;
29117 */) ;;
29118 *) as_dir=$as_dir/ ;;
29119 esac
29120 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
29121 done
29122 IFS=$as_save_IFS
29123
29124 ;;
29125 esac
29126 # We did not find ourselves, most probably we were run as 'sh COMMAND'
29127 # in which case we are not to be found in the path.
29128 if test "x$as_myself" = x; then
29129 as_myself=$0
29130 fi
29131 if test ! -f "$as_myself"; then
29132 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29133 exit 1
29134 fi
29135
29136
29137
29138 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29139 # ----------------------------------------
29140 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29141 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29142 # script with STATUS, using 1 if that was 0.
29143 as_fn_error ()
29144 {
29145 as_status=$1; test $as_status -eq 0 && as_status=1
29146 if test "$4"; then
29147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29149 fi
29150 printf "%s\n" "$as_me: error: $2" >&2
29151 as_fn_exit $as_status
29152 } # as_fn_error
29153
29154
29155 # as_fn_set_status STATUS
29156 # -----------------------
29157 # Set $? to STATUS, without forking.
29158 as_fn_set_status ()
29159 {
29160 return $1
29161 } # as_fn_set_status
29162
29163 # as_fn_exit STATUS
29164 # -----------------
29165 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29166 as_fn_exit ()
29167 {
29168 set +e
29169 as_fn_set_status $1
29170 exit $1
29171 } # as_fn_exit
29172
29173 # as_fn_unset VAR
29174 # ---------------
29175 # Portably unset VAR.
29176 as_fn_unset ()
29177 {
29178 { eval $1=; unset $1;}
29179 }
29180 as_unset=as_fn_unset
29181
29182 # as_fn_append VAR VALUE
29183 # ----------------------
29184 # Append the text in VALUE to the end of the definition contained in VAR. Take
29185 # advantage of any shell optimizations that allow amortized linear growth over
29186 # repeated appends, instead of the typical quadratic growth present in naive
29187 # implementations.
29188 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
29189 then :
29190 eval 'as_fn_append ()
29191 {
29192 eval $1+=\$2
29193 }'
29194 else case e in #(
29195 e) as_fn_append ()
29196 {
29197 eval $1=\$$1\$2
29198 } ;;
29199 esac
29200 fi # as_fn_append
29201
29202 # as_fn_arith ARG...
29203 # ------------------
29204 # Perform arithmetic evaluation on the ARGs, and store the result in the
29205 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29206 # must be portable across $(()) and expr.
29207 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
29208 then :
29209 eval 'as_fn_arith ()
29210 {
29211 as_val=$(( $* ))
29212 }'
29213 else case e in #(
29214 e) as_fn_arith ()
29215 {
29216 as_val=`expr "$@" || test $? -eq 1`
29217 } ;;
29218 esac
29219 fi # as_fn_arith
29220
29221
29222 if expr a : '\(a\)' >/dev/null 2>&1 &&
29223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29224 as_expr=expr
29225 else
29226 as_expr=false
29227 fi
29228
29229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29230 as_basename=basename
29231 else
29232 as_basename=false
29233 fi
29234
29235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29236 as_dirname=dirname
29237 else
29238 as_dirname=false
29239 fi
29240
29241 as_me=`$as_basename -- "$0" ||
29242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29243 X"$0" : 'X\(//\)$' \| \
29244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29245 printf "%s\n" X/"$0" |
29246 sed '/^.*\/\([^/][^/]*\)\/*$/{
29247 s//\1/
29248 q
29249 }
29250 /^X\/\(\/\/\)$/{
29251 s//\1/
29252 q
29253 }
29254 /^X\/\(\/\).*/{
29255 s//\1/
29256 q
29257 }
29258 s/.*/./; q'`
29259
29260 # Avoid depending upon Character Ranges.
29261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29264 as_cr_digits='0123456789'
29265 as_cr_alnum=$as_cr_Letters$as_cr_digits
29266
29267
29268 # Determine whether it's possible to make 'echo' print without a newline.
29269 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
29270 # for compatibility with existing Makefiles.
29271 ECHO_C= ECHO_N= ECHO_T=
29272 case `echo -n x` in #(((((
29273 -n*)
29274 case `echo 'xy\c'` in
29275 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29276 xy) ECHO_C='\c';;
29277 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29278 ECHO_T=' ';;
29279 esac;;
29280 *)
29281 ECHO_N='-n';;
29282 esac
29283
29284 # For backward compatibility with old third-party macros, we provide
29285 # the shell variables $as_echo and $as_echo_n. New code should use
29286 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
29287 as_echo='printf %s\n'
29288 as_echo_n='printf %s'
29289
29290 rm -f conf$$ conf$$.exe conf$$.file
29291 if test -d conf$$.dir; then
29292 rm -f conf$$.dir/conf$$.file
29293 else
29294 rm -f conf$$.dir
29295 mkdir conf$$.dir 2>/dev/null
29296 fi
29297 if (echo >conf$$.file) 2>/dev/null; then
29298 if ln -s conf$$.file conf$$ 2>/dev/null; then
29299 as_ln_s='ln -s'
29300 # ... but there are two gotchas:
29301 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
29302 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
29303 # In both cases, we have to default to 'cp -pR'.
29304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29305 as_ln_s='cp -pR'
29306 elif ln conf$$.file conf$$ 2>/dev/null; then
29307 as_ln_s=ln
29308 else
29309 as_ln_s='cp -pR'
29310 fi
29311 else
29312 as_ln_s='cp -pR'
29313 fi
29314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29315 rmdir conf$$.dir 2>/dev/null
29316
29317
29318 # as_fn_mkdir_p
29319 # -------------
29320 # Create "$as_dir" as a directory, including parents if necessary.
29321 as_fn_mkdir_p ()
29322 {
29323
29324 case $as_dir in #(
29325 -*) as_dir=./$as_dir;;
29326 esac
29327 test -d "$as_dir" || eval $as_mkdir_p || {
29328 as_dirs=
29329 while :; do
29330 case $as_dir in #(
29331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29332 *) as_qdir=$as_dir;;
29333 esac
29334 as_dirs="'$as_qdir' $as_dirs"
29335 as_dir=`$as_dirname -- "$as_dir" ||
29336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29337 X"$as_dir" : 'X\(//\)[^/]' \| \
29338 X"$as_dir" : 'X\(//\)$' \| \
29339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29340 printf "%s\n" X"$as_dir" |
29341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29342 s//\1/
29343 q
29344 }
29345 /^X\(\/\/\)[^/].*/{
29346 s//\1/
29347 q
29348 }
29349 /^X\(\/\/\)$/{
29350 s//\1/
29351 q
29352 }
29353 /^X\(\/\).*/{
29354 s//\1/
29355 q
29356 }
29357 s/.*/./; q'`
29358 test -d "$as_dir" && break
29359 done
29360 test -z "$as_dirs" || eval "mkdir $as_dirs"
29361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29362
29363
29364 } # as_fn_mkdir_p
29365 if mkdir -p . 2>/dev/null; then
29366 as_mkdir_p='mkdir -p "$as_dir"'
29367 else
29368 test -d ./-p && rmdir ./-p
29369 as_mkdir_p=false
29370 fi
29371
29372
29373 # as_fn_executable_p FILE
29374 # -----------------------
29375 # Test if FILE is an executable regular file.
29376 as_fn_executable_p ()
29377 {
29378 test -f "$1" && test -x "$1"
29379 } # as_fn_executable_p
29380 as_test_x='test -x'
29381 as_executable_p=as_fn_executable_p
29382
29383 # Sed expression to map a string onto a valid CPP name.
29384 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
29385 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
29386
29387 # Sed expression to map a string onto a valid variable name.
29388 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
29389 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
29390
29391
29392 exec 6>&1
29393 ## ----------------------------------- ##
29394 ## Main body of $CONFIG_STATUS script. ##
29395 ## ----------------------------------- ##
29396 _ASEOF
29397 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29398
29399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29400 # Save the log message, to keep $0 and so on meaningful, and to
29401 # report actual input values of CONFIG_FILES etc. instead of their
29402 # values after options handling.
29403 ac_log="
29404 This file was extended by dnsdist $as_me 2.1.1, which was
29405 generated by GNU Autoconf 2.72. Invocation command line was
29406
29407 CONFIG_FILES = $CONFIG_FILES
29408 CONFIG_HEADERS = $CONFIG_HEADERS
29409 CONFIG_LINKS = $CONFIG_LINKS
29410 CONFIG_COMMANDS = $CONFIG_COMMANDS
29411 $ $0 $@
29412
29413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29414 "
29415
29416 _ACEOF
29417
29418 case $ac_config_files in *"
29419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29420 esac
29421
29422 case $ac_config_headers in *"
29423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29424 esac
29425
29426
29427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29428 # Files that config.status was made for.
29429 config_files="$ac_config_files"
29430 config_headers="$ac_config_headers"
29431 config_commands="$ac_config_commands"
29432
29433 _ACEOF
29434
29435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29436 ac_cs_usage="\
29437 '$as_me' instantiates files and other configuration actions
29438 from templates according to the current configuration. Unless the files
29439 and actions are specified as TAGs, all are instantiated by default.
29440
29441 Usage: $0 [OPTION]... [TAG]...
29442
29443 -h, --help print this help, then exit
29444 -V, --version print version number and configuration settings, then exit
29445 --config print configuration, then exit
29446 -q, --quiet, --silent
29447 do not print progress messages
29448 -d, --debug don't remove temporary files
29449 --recheck update $as_me by reconfiguring in the same conditions
29450 --file=FILE[:TEMPLATE]
29451 instantiate the configuration file FILE
29452 --header=FILE[:TEMPLATE]
29453 instantiate the configuration header FILE
29454
29455 Configuration files:
29456 $config_files
29457
29458 Configuration headers:
29459 $config_headers
29460
29461 Configuration commands:
29462 $config_commands
29463
29464 Report bugs to the package provider."
29465
29466 _ACEOF
29467 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
29468 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
29469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29470 ac_cs_config='$ac_cs_config_escaped'
29471 ac_cs_version="\\
29472 dnsdist config.status 2.1.1
29473 configured by $0, generated by GNU Autoconf 2.72,
29474 with options \\"\$ac_cs_config\\"
29475
29476 Copyright (C) 2023 Free Software Foundation, Inc.
29477 This config.status script is free software; the Free Software Foundation
29478 gives unlimited permission to copy, distribute and modify it."
29479
29480 ac_pwd='$ac_pwd'
29481 srcdir='$srcdir'
29482 INSTALL='$INSTALL'
29483 MKDIR_P='$MKDIR_P'
29484 AWK='$AWK'
29485 test -n "\$AWK" || AWK=awk
29486 _ACEOF
29487
29488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29489 # The default lists apply if the user does not specify any file.
29490 ac_need_defaults=:
29491 while test $# != 0
29492 do
29493 case $1 in
29494 --*=?*)
29495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29497 ac_shift=:
29498 ;;
29499 --*=)
29500 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29501 ac_optarg=
29502 ac_shift=:
29503 ;;
29504 *)
29505 ac_option=$1
29506 ac_optarg=$2
29507 ac_shift=shift
29508 ;;
29509 esac
29510
29511 case $ac_option in
29512 # Handling of the options.
29513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29514 ac_cs_recheck=: ;;
29515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29516 printf "%s\n" "$ac_cs_version"; exit ;;
29517 --config | --confi | --conf | --con | --co | --c )
29518 printf "%s\n" "$ac_cs_config"; exit ;;
29519 --debug | --debu | --deb | --de | --d | -d )
29520 debug=: ;;
29521 --file | --fil | --fi | --f )
29522 $ac_shift
29523 case $ac_optarg in
29524 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29525 '') as_fn_error $? "missing file argument" ;;
29526 esac
29527 as_fn_append CONFIG_FILES " '$ac_optarg'"
29528 ac_need_defaults=false;;
29529 --header | --heade | --head | --hea )
29530 $ac_shift
29531 case $ac_optarg in
29532 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29533 esac
29534 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29535 ac_need_defaults=false;;
29536 --he | --h)
29537 # Conflict between --help and --header
29538 as_fn_error $? "ambiguous option: '$1'
29539 Try '$0 --help' for more information.";;
29540 --help | --hel | -h )
29541 printf "%s\n" "$ac_cs_usage"; exit ;;
29542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29543 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29544 ac_cs_silent=: ;;
29545
29546 # This is an error.
29547 -*) as_fn_error $? "unrecognized option: '$1'
29548 Try '$0 --help' for more information." ;;
29549
29550 *) as_fn_append ac_config_targets " $1"
29551 ac_need_defaults=false ;;
29552
29553 esac
29554 shift
29555 done
29556
29557 ac_configure_extra_args=
29558
29559 if $ac_cs_silent; then
29560 exec 6>/dev/null
29561 ac_configure_extra_args="$ac_configure_extra_args --silent"
29562 fi
29563
29564 _ACEOF
29565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29566 if \$ac_cs_recheck; then
29567 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29568 shift
29569 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
29570 CONFIG_SHELL='$SHELL'
29571 export CONFIG_SHELL
29572 exec "\$@"
29573 fi
29574
29575 _ACEOF
29576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29577 exec 5>>config.log
29578 {
29579 echo
29580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29581 ## Running $as_me. ##
29582 _ASBOX
29583 printf "%s\n" "$ac_log"
29584 } >&5
29585
29586 _ACEOF
29587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29588 #
29589 # INIT-COMMANDS
29590 #
29591 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
29592
29593
29594 # The HP-UX ksh and POSIX shell print the target directory to stdout
29595 # if CDPATH is set.
29596 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29597
29598 sed_quote_subst='$sed_quote_subst'
29599 double_quote_subst='$double_quote_subst'
29600 delay_variable_subst='$delay_variable_subst'
29601 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29602 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29603 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29604 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29605 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29606 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29607 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29608 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29609 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29610 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29611 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29612 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29613 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29614 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29615 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29616 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29617 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29618 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29619 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29620 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29621 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29622 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29623 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29624 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29625 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29626 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29627 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29628 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29629 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29630 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29631 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29632 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29633 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29634 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29635 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
29636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29639 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29640 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29641 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29642 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29643 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29644 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
29645 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29646 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29647 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29648 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29649 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29650 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29651 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29652 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29653 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29654 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29655 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29656 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29657 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29658 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29659 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29660 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29661 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"`'
29662 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29665 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29666 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29667 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29668 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29669 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29670 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29671 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29672 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29673 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29674 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29675 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29676 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29677 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29678 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29679 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29680 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29681 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29682 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29683 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29684 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29685 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29686 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29687 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29688 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29689 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29690 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29691 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29692 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29693 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29694 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29695 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29696 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29697 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29698 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29699 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29700 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29701 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29702 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29703 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29704 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29705 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29706 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29707 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29708 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29709 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29710 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29711 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29712 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29713 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29714 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29715 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29716 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29717 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29718 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29719 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29720 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29721 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29722 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29723 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29724 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29725 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29726 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29727 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29728 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29729 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29730 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29731 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29732 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29733 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29734 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29735 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29736 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29737 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29738 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29739 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29740 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29741 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29742 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29743 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29744 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
29745 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
29746 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29747 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29748 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
29749 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
29750 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
29751 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
29752 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
29753 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
29754 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
29755 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
29756 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
29757 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29758 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29759 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
29760 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29761 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29762 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29763 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29764 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29765 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29766 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
29767 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29768 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29769 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29770 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
29771 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
29772 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
29773 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
29774 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
29775 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
29776 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
29777 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
29778 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
29779 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29780 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29781 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29782 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29783 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29784 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
29785 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
29786 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
29787 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29788 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29789 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
29790 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
29791 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
29792
29793 LTCC='$LTCC'
29794 LTCFLAGS='$LTCFLAGS'
29795 compiler='$compiler_DEFAULT'
29796
29797 # A function that is used when there is no print builtin or printf.
29798 func_fallback_echo ()
29799 {
29800 eval 'cat <<_LTECHO_EOF
29801 \$1
29802 _LTECHO_EOF'
29803 }
29804
29805 # Quote evaled strings.
29806 for var in SHELL \
29807 ECHO \
29808 PATH_SEPARATOR \
29809 SED \
29810 GREP \
29811 EGREP \
29812 FGREP \
29813 LD \
29814 NM \
29815 LN_S \
29816 lt_SP2NL \
29817 lt_NL2SP \
29818 reload_flag \
29819 FILECMD \
29820 OBJDUMP \
29821 deplibs_check_method \
29822 file_magic_cmd \
29823 file_magic_glob \
29824 want_nocaseglob \
29825 DLLTOOL \
29826 sharedlib_from_linklib_cmd \
29827 AR \
29828 archiver_list_spec \
29829 STRIP \
29830 RANLIB \
29831 CC \
29832 CFLAGS \
29833 compiler \
29834 lt_cv_sys_global_symbol_pipe \
29835 lt_cv_sys_global_symbol_to_cdecl \
29836 lt_cv_sys_global_symbol_to_import \
29837 lt_cv_sys_global_symbol_to_c_name_address \
29838 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29839 lt_cv_nm_interface \
29840 nm_file_list_spec \
29841 lt_cv_truncate_bin \
29842 lt_prog_compiler_no_builtin_flag \
29843 lt_prog_compiler_pic \
29844 lt_prog_compiler_wl \
29845 lt_prog_compiler_static \
29846 lt_cv_prog_compiler_c_o \
29847 need_locks \
29848 MANIFEST_TOOL \
29849 DSYMUTIL \
29850 NMEDIT \
29851 LIPO \
29852 OTOOL \
29853 OTOOL64 \
29854 shrext_cmds \
29855 export_dynamic_flag_spec \
29856 whole_archive_flag_spec \
29857 compiler_needs_object \
29858 with_gnu_ld \
29859 allow_undefined_flag \
29860 no_undefined_flag \
29861 hardcode_libdir_flag_spec \
29862 hardcode_libdir_separator \
29863 exclude_expsyms \
29864 include_expsyms \
29865 file_list_spec \
29866 variables_saved_for_relink \
29867 libname_spec \
29868 library_names_spec \
29869 soname_spec \
29870 install_override_mode \
29871 finish_eval \
29872 old_striplib \
29873 striplib \
29874 compiler_lib_search_dirs \
29875 predep_objects \
29876 postdep_objects \
29877 predeps \
29878 postdeps \
29879 compiler_lib_search_path \
29880 LD_CXX \
29881 reload_flag_CXX \
29882 compiler_CXX \
29883 lt_prog_compiler_no_builtin_flag_CXX \
29884 lt_prog_compiler_pic_CXX \
29885 lt_prog_compiler_wl_CXX \
29886 lt_prog_compiler_static_CXX \
29887 lt_cv_prog_compiler_c_o_CXX \
29888 export_dynamic_flag_spec_CXX \
29889 whole_archive_flag_spec_CXX \
29890 compiler_needs_object_CXX \
29891 with_gnu_ld_CXX \
29892 allow_undefined_flag_CXX \
29893 no_undefined_flag_CXX \
29894 hardcode_libdir_flag_spec_CXX \
29895 hardcode_libdir_separator_CXX \
29896 exclude_expsyms_CXX \
29897 include_expsyms_CXX \
29898 file_list_spec_CXX \
29899 compiler_lib_search_dirs_CXX \
29900 predep_objects_CXX \
29901 postdep_objects_CXX \
29902 predeps_CXX \
29903 postdeps_CXX \
29904 compiler_lib_search_path_CXX; do
29905 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29906 *[\\\\\\\`\\"\\\$]*)
29907 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29908 ;;
29909 *)
29910 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29911 ;;
29912 esac
29913 done
29914
29915 # Double-quote double-evaled strings.
29916 for var in reload_cmds \
29917 old_postinstall_cmds \
29918 old_postuninstall_cmds \
29919 old_archive_cmds \
29920 extract_expsyms_cmds \
29921 old_archive_from_new_cmds \
29922 old_archive_from_expsyms_cmds \
29923 archive_cmds \
29924 archive_expsym_cmds \
29925 module_cmds \
29926 module_expsym_cmds \
29927 export_symbols_cmds \
29928 prelink_cmds \
29929 postlink_cmds \
29930 postinstall_cmds \
29931 postuninstall_cmds \
29932 finish_cmds \
29933 sys_lib_search_path_spec \
29934 configure_time_dlsearch_path \
29935 configure_time_lt_sys_library_path \
29936 reload_cmds_CXX \
29937 old_archive_cmds_CXX \
29938 old_archive_from_new_cmds_CXX \
29939 old_archive_from_expsyms_cmds_CXX \
29940 archive_cmds_CXX \
29941 archive_expsym_cmds_CXX \
29942 module_cmds_CXX \
29943 module_expsym_cmds_CXX \
29944 export_symbols_cmds_CXX \
29945 prelink_cmds_CXX \
29946 postlink_cmds_CXX; do
29947 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29948 *[\\\\\\\`\\"\\\$]*)
29949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29950 ;;
29951 *)
29952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29953 ;;
29954 esac
29955 done
29956
29957 ac_aux_dir='$ac_aux_dir'
29958
29959 # See if we are running on zsh, and set the options that allow our
29960 # commands through without removal of \ escapes INIT.
29961 if test -n "\${ZSH_VERSION+set}"; then
29962 setopt NO_GLOB_SUBST
29963 fi
29964
29965
29966 PACKAGE='$PACKAGE'
29967 VERSION='$VERSION'
29968 RM='$RM'
29969 ofile='$ofile'
29970
29971
29972
29973
29974
29975
29976 _ACEOF
29977
29978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29979
29980 # Handling of arguments.
29981 for ac_config_target in $ac_config_targets
29982 do
29983 case $ac_config_target in
29984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29985 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29986 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29988 "dnsdist-rust-lib/Makefile") CONFIG_FILES="$CONFIG_FILES dnsdist-rust-lib/Makefile" ;;
29989 "dnsdist-rust-lib/rust/Makefile") CONFIG_FILES="$CONFIG_FILES dnsdist-rust-lib/rust/Makefile" ;;
29990 "ext/arc4random/Makefile") CONFIG_FILES="$CONFIG_FILES ext/arc4random/Makefile" ;;
29991 "ext/yahttp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/yahttp/Makefile" ;;
29992 "ext/yahttp/yahttp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/yahttp/yahttp/Makefile" ;;
29993 "ext/ipcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ipcrypt/Makefile" ;;
29994 "ext/ipcrypt2/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ipcrypt2/Makefile" ;;
29995
29996 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
29997 esac
29998 done
29999
30000
30001 # If the user did not use the arguments to specify the items to instantiate,
30002 # then the envvar interface is used. Set only those that are not.
30003 # We use the long form for the default assignment because of an extremely
30004 # bizarre bug on SunOS 4.1.3.
30005 if $ac_need_defaults; then
30006 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
30007 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
30008 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
30009 fi
30010
30011 # Have a temporary directory for convenience. Make it in the build tree
30012 # simply because there is no reason against having it here, and in addition,
30013 # creating and moving files from /tmp can sometimes cause problems.
30014 # Hook for its removal unless debugging.
30015 # Note that there is a small window in which the directory will not be cleaned:
30016 # after its creation but before its name has been assigned to '$tmp'.
30017 $debug ||
30018 {
30019 tmp= ac_tmp=
30020 trap 'exit_status=$?
30021 : "${ac_tmp:=$tmp}"
30022 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30023 ' 0
30024 trap 'as_fn_exit 1' 1 2 13 15
30025 }
30026 # Create a (secure) tmp directory for tmp files.
30027
30028 {
30029 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30030 test -d "$tmp"
30031 } ||
30032 {
30033 tmp=./conf$$-$RANDOM
30034 (umask 077 && mkdir "$tmp")
30035 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30036 ac_tmp=$tmp
30037
30038 # Set up the scripts for CONFIG_FILES section.
30039 # No need to generate them if there are no CONFIG_FILES.
30040 # This happens for instance with './config.status config.h'.
30041 if test -n "$CONFIG_FILES"; then
30042
30043
30044 ac_cr=`echo X | tr X '\015'`
30045 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30046 # But we know of no other shell where ac_cr would be empty at this
30047 # point, so we can use a bashism as a fallback.
30048 if test "x$ac_cr" = x; then
30049 eval ac_cr=\$\'\\r\'
30050 fi
30051 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30052 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30053 ac_cs_awk_cr='\\r'
30054 else
30055 ac_cs_awk_cr=$ac_cr
30056 fi
30057
30058 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30059 _ACEOF
30060
30061
30062 {
30063 echo "cat >conf$$subs.awk <<_ACEOF" &&
30064 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30065 echo "_ACEOF"
30066 } >conf$$subs.sh ||
30067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30068 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30069 ac_delim='%!_!# '
30070 for ac_last_try in false false false false false :; do
30071 . ./conf$$subs.sh ||
30072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30073
30074 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30075 if test $ac_delim_n = $ac_delim_num; then
30076 break
30077 elif $ac_last_try; then
30078 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30079 else
30080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30081 fi
30082 done
30083 rm -f conf$$subs.sh
30084
30085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30086 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30087 _ACEOF
30088 sed -n '
30089 h
30090 s/^/S["/; s/!.*/"]=/
30091 p
30092 g
30093 s/^[^!]*!//
30094 :repl
30095 t repl
30096 s/'"$ac_delim"'$//
30097 t delim
30098 :nl
30099 h
30100 s/\(.\{148\}\)..*/\1/
30101 t more1
30102 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30103 p
30104 n
30105 b repl
30106 :more1
30107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30108 p
30109 g
30110 s/.\{148\}//
30111 t nl
30112 :delim
30113 h
30114 s/\(.\{148\}\)..*/\1/
30115 t more2
30116 s/["\\]/\\&/g; s/^/"/; s/$/"/
30117 p
30118 b
30119 :more2
30120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30121 p
30122 g
30123 s/.\{148\}//
30124 t delim
30125 ' <conf$$subs.awk | sed '
30126 /^[^""]/{
30127 N
30128 s/\n//
30129 }
30130 ' >>$CONFIG_STATUS || ac_write_fail=1
30131 rm -f conf$$subs.awk
30132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30133 _ACAWK
30134 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30135 for (key in S) S_is_set[key] = 1
30136 FS = ""
30137
30138 }
30139 {
30140 line = $ 0
30141 nfields = split(line, field, "@")
30142 substed = 0
30143 len = length(field[1])
30144 for (i = 2; i < nfields; i++) {
30145 key = field[i]
30146 keylen = length(key)
30147 if (S_is_set[key]) {
30148 value = S[key]
30149 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30150 len += length(value) + length(field[++i])
30151 substed = 1
30152 } else
30153 len += 1 + keylen
30154 }
30155
30156 print line
30157 }
30158
30159 _ACAWK
30160 _ACEOF
30161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30162 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30163 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30164 else
30165 cat
30166 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30167 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30168 _ACEOF
30169
30170 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30171 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30172 # trailing colons and then remove the whole line if VPATH becomes empty
30173 # (actually we leave an empty line to preserve line numbers).
30174 if test "x$srcdir" = x.; then
30175 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30176 h
30177 s///
30178 s/^/:/
30179 s/[ ]*$/:/
30180 s/:\$(srcdir):/:/g
30181 s/:\${srcdir}:/:/g
30182 s/:@srcdir@:/:/g
30183 s/^:*//
30184 s/:*$//
30185 x
30186 s/\(=[ ]*\).*/\1/
30187 G
30188 s/\n//
30189 s/^[^=]*=[ ]*$//
30190 }'
30191 fi
30192
30193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30194 fi # test -n "$CONFIG_FILES"
30195
30196 # Set up the scripts for CONFIG_HEADERS section.
30197 # No need to generate them if there are no CONFIG_HEADERS.
30198 # This happens for instance with './config.status Makefile'.
30199 if test -n "$CONFIG_HEADERS"; then
30200 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30201 BEGIN {
30202 _ACEOF
30203
30204 # Transform confdefs.h into an awk script 'defines.awk', embedded as
30205 # here-document in config.status, that substitutes the proper values into
30206 # config.h.in to produce config.h.
30207
30208 # Create a delimiter string that does not exist in confdefs.h, to ease
30209 # handling of long lines.
30210 ac_delim='%!_!# '
30211 for ac_last_try in false false :; do
30212 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30213 if test -z "$ac_tt"; then
30214 break
30215 elif $ac_last_try; then
30216 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30217 else
30218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30219 fi
30220 done
30221
30222 # For the awk script, D is an array of macro values keyed by name,
30223 # likewise P contains macro parameters if any. Preserve backslash
30224 # newline sequences.
30225
30226 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30227 sed -n '
30228 s/.\{148\}/&'"$ac_delim"'/g
30229 t rset
30230 :rset
30231 s/^[ ]*#[ ]*define[ ][ ]*/ /
30232 t def
30233 d
30234 :def
30235 s/\\$//
30236 t bsnl
30237 s/["\\]/\\&/g
30238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30239 D["\1"]=" \3"/p
30240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30241 d
30242 :bsnl
30243 s/["\\]/\\&/g
30244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30245 D["\1"]=" \3\\\\\\n"\\/p
30246 t cont
30247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30248 t cont
30249 d
30250 :cont
30251 n
30252 s/.\{148\}/&'"$ac_delim"'/g
30253 t clear
30254 :clear
30255 s/\\$//
30256 t bsnlc
30257 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30258 d
30259 :bsnlc
30260 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30261 b cont
30262 ' <confdefs.h | sed '
30263 s/'"$ac_delim"'/"\\\
30264 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30265
30266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30267 for (key in D) D_is_set[key] = 1
30268 FS = ""
30269 }
30270 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30271 line = \$ 0
30272 split(line, arg, " ")
30273 if (arg[1] == "#") {
30274 defundef = arg[2]
30275 mac1 = arg[3]
30276 } else {
30277 defundef = substr(arg[1], 2)
30278 mac1 = arg[2]
30279 }
30280 split(mac1, mac2, "(") #)
30281 macro = mac2[1]
30282 prefix = substr(line, 1, index(line, defundef) - 1)
30283 if (D_is_set[macro]) {
30284 # Preserve the white space surrounding the "#".
30285 print prefix "define", macro P[macro] D[macro]
30286 next
30287 } else {
30288 # Replace #undef with comments. This is necessary, for example,
30289 # in the case of _POSIX_SOURCE, which is predefined and required
30290 # on some systems where configure will not decide to define it.
30291 if (defundef == "undef") {
30292 print "/*", prefix defundef, macro, "*/"
30293 next
30294 }
30295 }
30296 }
30297 { print }
30298 _ACAWK
30299 _ACEOF
30300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30301 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30302 fi # test -n "$CONFIG_HEADERS"
30303
30304
30305 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30306 shift
30307 for ac_tag
30308 do
30309 case $ac_tag in
30310 :[FHLC]) ac_mode=$ac_tag; continue;;
30311 esac
30312 case $ac_mode$ac_tag in
30313 :[FHL]*:*);;
30314 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
30315 :[FH]-) ac_tag=-:-;;
30316 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30317 esac
30318 ac_save_IFS=$IFS
30319 IFS=:
30320 set x $ac_tag
30321 IFS=$ac_save_IFS
30322 shift
30323 ac_file=$1
30324 shift
30325
30326 case $ac_mode in
30327 :L) ac_source=$1;;
30328 :[FH])
30329 ac_file_inputs=
30330 for ac_f
30331 do
30332 case $ac_f in
30333 -) ac_f="$ac_tmp/stdin";;
30334 *) # Look for the file first in the build tree, then in the source tree
30335 # (if the path is not absolute). The absolute path cannot be DOS-style,
30336 # because $ac_f cannot contain ':'.
30337 test -f "$ac_f" ||
30338 case $ac_f in
30339 [\\/$]*) false;;
30340 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30341 esac ||
30342 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
30343 esac
30344 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30345 as_fn_append ac_file_inputs " '$ac_f'"
30346 done
30347
30348 # Let's still pretend it is 'configure' which instantiates (i.e., don't
30349 # use $as_me), people would be surprised to read:
30350 # /* config.h. Generated by config.status. */
30351 configure_input='Generated from '`
30352 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30353 `' by configure.'
30354 if test x"$ac_file" != x-; then
30355 configure_input="$ac_file. $configure_input"
30356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30357 printf "%s\n" "$as_me: creating $ac_file" >&6;}
30358 fi
30359 # Neutralize special characters interpreted by sed in replacement strings.
30360 case $configure_input in #(
30361 *\&* | *\|* | *\\* )
30362 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
30363 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30364 *) ac_sed_conf_input=$configure_input;;
30365 esac
30366
30367 case $ac_tag in
30368 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30370 esac
30371 ;;
30372 esac
30373
30374 ac_dir=`$as_dirname -- "$ac_file" ||
30375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30376 X"$ac_file" : 'X\(//\)[^/]' \| \
30377 X"$ac_file" : 'X\(//\)$' \| \
30378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30379 printf "%s\n" X"$ac_file" |
30380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30381 s//\1/
30382 q
30383 }
30384 /^X\(\/\/\)[^/].*/{
30385 s//\1/
30386 q
30387 }
30388 /^X\(\/\/\)$/{
30389 s//\1/
30390 q
30391 }
30392 /^X\(\/\).*/{
30393 s//\1/
30394 q
30395 }
30396 s/.*/./; q'`
30397 as_dir="$ac_dir"; as_fn_mkdir_p
30398 ac_builddir=.
30399
30400 case "$ac_dir" in
30401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30402 *)
30403 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30404 # A ".." for each directory in $ac_dir_suffix.
30405 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30406 case $ac_top_builddir_sub in
30407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30409 esac ;;
30410 esac
30411 ac_abs_top_builddir=$ac_pwd
30412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30413 # for backward compatibility:
30414 ac_top_builddir=$ac_top_build_prefix
30415
30416 case $srcdir in
30417 .) # We are building in place.
30418 ac_srcdir=.
30419 ac_top_srcdir=$ac_top_builddir_sub
30420 ac_abs_top_srcdir=$ac_pwd ;;
30421 [\\/]* | ?:[\\/]* ) # Absolute name.
30422 ac_srcdir=$srcdir$ac_dir_suffix;
30423 ac_top_srcdir=$srcdir
30424 ac_abs_top_srcdir=$srcdir ;;
30425 *) # Relative name.
30426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30427 ac_top_srcdir=$ac_top_build_prefix$srcdir
30428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30429 esac
30430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30431
30432
30433 case $ac_mode in
30434 :F)
30435 #
30436 # CONFIG_FILE
30437 #
30438
30439 case $INSTALL in
30440 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30441 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30442 esac
30443 ac_MKDIR_P=$MKDIR_P
30444 case $MKDIR_P in
30445 [\\/$]* | ?:[\\/]* ) ;;
30446 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30447 esac
30448 _ACEOF
30449
30450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30451 # If the template does not know about datarootdir, expand it.
30452 # FIXME: This hack should be removed a few years after 2.60.
30453 ac_datarootdir_hack=; ac_datarootdir_seen=
30454 ac_sed_dataroot='
30455 /datarootdir/ {
30456 p
30457 q
30458 }
30459 /@datadir@/p
30460 /@docdir@/p
30461 /@infodir@/p
30462 /@localedir@/p
30463 /@mandir@/p'
30464 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30465 *datarootdir*) ac_datarootdir_seen=yes;;
30466 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30468 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30469 _ACEOF
30470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 ac_datarootdir_hack='
30472 s&@datadir@&$datadir&g
30473 s&@docdir@&$docdir&g
30474 s&@infodir@&$infodir&g
30475 s&@localedir@&$localedir&g
30476 s&@mandir@&$mandir&g
30477 s&\\\${datarootdir}&$datarootdir&g' ;;
30478 esac
30479 _ACEOF
30480
30481 # Neutralize VPATH when '$srcdir' = '.'.
30482 # Shell code in configure.ac might set extrasub.
30483 # FIXME: do we really want to maintain this feature?
30484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30485 ac_sed_extra="$ac_vpsub
30486 $extrasub
30487 _ACEOF
30488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30489 :t
30490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30491 s|@configure_input@|$ac_sed_conf_input|;t t
30492 s&@top_builddir@&$ac_top_builddir_sub&;t t
30493 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30494 s&@srcdir@&$ac_srcdir&;t t
30495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30496 s&@top_srcdir@&$ac_top_srcdir&;t t
30497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30498 s&@builddir@&$ac_builddir&;t t
30499 s&@abs_builddir@&$ac_abs_builddir&;t t
30500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30501 s&@INSTALL@&$ac_INSTALL&;t t
30502 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30503 $ac_datarootdir_hack
30504 "
30505 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30506 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30507
30508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30509 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30511 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
30513 which seems to be undefined. Please make sure it is defined" >&5
30514 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
30515 which seems to be undefined. Please make sure it is defined" >&2;}
30516
30517 rm -f "$ac_tmp/stdin"
30518 case $ac_file in
30519 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30520 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30521 esac \
30522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30523 ;;
30524 :H)
30525 #
30526 # CONFIG_HEADER
30527 #
30528 if test x"$ac_file" != x-; then
30529 {
30530 printf "%s\n" "/* $configure_input */" >&1 \
30531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30532 } >"$ac_tmp/config.h" \
30533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30534 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30536 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
30537 else
30538 rm -f "$ac_file"
30539 mv "$ac_tmp/config.h" "$ac_file" \
30540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30541 fi
30542 else
30543 printf "%s\n" "/* $configure_input */" >&1 \
30544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30545 || as_fn_error $? "could not create -" "$LINENO" 5
30546 fi
30547 # Compute "$ac_file"'s index in $config_headers.
30548 _am_arg="$ac_file"
30549 _am_stamp_count=1
30550 for _am_header in $config_headers :; do
30551 case $_am_header in
30552 $_am_arg | $_am_arg:* )
30553 break ;;
30554 * )
30555 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30556 esac
30557 done
30558 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30559 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30560 X"$_am_arg" : 'X\(//\)[^/]' \| \
30561 X"$_am_arg" : 'X\(//\)$' \| \
30562 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30563 printf "%s\n" X"$_am_arg" |
30564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30565 s//\1/
30566 q
30567 }
30568 /^X\(\/\/\)[^/].*/{
30569 s//\1/
30570 q
30571 }
30572 /^X\(\/\/\)$/{
30573 s//\1/
30574 q
30575 }
30576 /^X\(\/\).*/{
30577 s//\1/
30578 q
30579 }
30580 s/.*/./; q'`/stamp-h$_am_stamp_count
30581 ;;
30582
30583 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30584 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
30585 ;;
30586 esac
30587
30588
30589 case $ac_file$ac_mode in
30590 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30591 # Older Autoconf quotes --file arguments for eval, but not when files
30592 # are listed without --file. Let's play safe and only enable the eval
30593 # if we detect the quoting.
30594 # TODO: see whether this extra hack can be removed once we start
30595 # requiring Autoconf 2.70 or later.
30596 case $CONFIG_FILES in #(
30597 *\'*) :
30598 eval set x "$CONFIG_FILES" ;; #(
30599 *) :
30600 set x $CONFIG_FILES ;; #(
30601 *) :
30602 ;;
30603 esac
30604 shift
30605 # Used to flag and report bootstrapping failures.
30606 am_rc=0
30607 for am_mf
30608 do
30609 # Strip MF so we end up with the name of the file.
30610 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
30611 # Check whether this is an Automake generated Makefile which includes
30612 # dependency-tracking related rules and includes.
30613 # Grep'ing the whole file directly is not great: AIX grep has a line
30614 # limit of 2048, but all sed's we know have understand at least 4000.
30615 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
30616 || continue
30617 am_dirpart=`$as_dirname -- "$am_mf" ||
30618 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30619 X"$am_mf" : 'X\(//\)[^/]' \| \
30620 X"$am_mf" : 'X\(//\)$' \| \
30621 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30622 printf "%s\n" X"$am_mf" |
30623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30624 s//\1/
30625 q
30626 }
30627 /^X\(\/\/\)[^/].*/{
30628 s//\1/
30629 q
30630 }
30631 /^X\(\/\/\)$/{
30632 s//\1/
30633 q
30634 }
30635 /^X\(\/\).*/{
30636 s//\1/
30637 q
30638 }
30639 s/.*/./; q'`
30640 am_filepart=`$as_basename -- "$am_mf" ||
30641 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
30642 X"$am_mf" : 'X\(//\)$' \| \
30643 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30644 printf "%s\n" X/"$am_mf" |
30645 sed '/^.*\/\([^/][^/]*\)\/*$/{
30646 s//\1/
30647 q
30648 }
30649 /^X\/\(\/\/\)$/{
30650 s//\1/
30651 q
30652 }
30653 /^X\/\(\/\).*/{
30654 s//\1/
30655 q
30656 }
30657 s/.*/./; q'`
30658 { echo "$as_me:$LINENO: cd "$am_dirpart" \
30659 && sed -e '/# am--include-marker/d' "$am_filepart" \
30660 | $MAKE -f - am--depfiles" >&5
30661 (cd "$am_dirpart" \
30662 && sed -e '/# am--include-marker/d' "$am_filepart" \
30663 | $MAKE -f - am--depfiles) >&5 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); } || am_rc=$?
30667 done
30668 if test $am_rc -ne 0; then
30669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30670 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30671 as_fn_error $? "Something went wrong bootstrapping makefile fragments
30672 for automatic dependency tracking. If GNU make was not used, consider
30673 re-running the configure script with MAKE=\"gmake\" (or whatever is
30674 necessary). You can also try re-running configure with the
30675 '--disable-dependency-tracking' option to at least be able to build
30676 the package (albeit without support for automatic dependency tracking).
30677 See 'config.log' for more details" "$LINENO" 5; }
30678 fi
30679 { am_dirpart=; unset am_dirpart;}
30680 { am_filepart=; unset am_filepart;}
30681 { am_mf=; unset am_mf;}
30682 { am_rc=; unset am_rc;}
30683 rm -f conftest-deps.mk
30684 }
30685 ;;
30686 "libtool":C)
30687
30688 # See if we are running on zsh, and set the options that allow our
30689 # commands through without removal of \ escapes.
30690 if test -n "${ZSH_VERSION+set}"; then
30691 setopt NO_GLOB_SUBST
30692 fi
30693
30694 cfgfile=${ofile}T
30695 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30696 $RM "$cfgfile"
30697
30698 cat <<_LT_EOF >> "$cfgfile"
30699 #! $SHELL
30700 # Generated automatically by $as_me ($PACKAGE) $VERSION
30701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30703
30704 # Provide generalized library-building support services.
30705 # Written by Gordon Matzigkeit, 1996
30706
30707 # Copyright (C) 2014 Free Software Foundation, Inc.
30708 # This is free software; see the source for copying conditions. There is NO
30709 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30710
30711 # GNU Libtool is free software; you can redistribute it and/or modify
30712 # it under the terms of the GNU General Public License as published by
30713 # the Free Software Foundation; either version 2 of of the License, or
30714 # (at your option) any later version.
30715 #
30716 # As a special exception to the GNU General Public License, if you
30717 # distribute this file as part of a program or library that is built
30718 # using GNU Libtool, you may include this file under the same
30719 # distribution terms that you use for the rest of that program.
30720 #
30721 # GNU Libtool is distributed in the hope that it will be useful, but
30722 # WITHOUT ANY WARRANTY; without even the implied warranty of
30723 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30724 # GNU General Public License for more details.
30725 #
30726 # You should have received a copy of the GNU General Public License
30727 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30728
30729
30730 # The names of the tagged configurations supported by this script.
30731 available_tags='CXX '
30732
30733 # Configured defaults for sys_lib_dlsearch_path munging.
30734 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30735
30736 # ### BEGIN LIBTOOL CONFIG
30737
30738 # Which release of libtool.m4 was used?
30739 macro_version=$macro_version
30740 macro_revision=$macro_revision
30741
30742 # Whether or not to build static libraries.
30743 build_old_libs=$enable_static
30744
30745 # Whether or not to build shared libraries.
30746 build_libtool_libs=$enable_shared
30747
30748 # What type of objects to build.
30749 pic_mode=$pic_mode
30750
30751 # Whether or not to optimize for fast installation.
30752 fast_install=$enable_fast_install
30753
30754 # Shared archive member basename,for filename based shared library versioning on AIX.
30755 shared_archive_member_spec=$shared_archive_member_spec
30756
30757 # Shell to use when invoking shell scripts.
30758 SHELL=$lt_SHELL
30759
30760 # An echo program that protects backslashes.
30761 ECHO=$lt_ECHO
30762
30763 # The PATH separator for the build system.
30764 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30765
30766 # The host system.
30767 host_alias=$host_alias
30768 host=$host
30769 host_os=$host_os
30770
30771 # The build system.
30772 build_alias=$build_alias
30773 build=$build
30774 build_os=$build_os
30775
30776 # A sed program that does not truncate output.
30777 SED=$lt_SED
30778
30779 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30780 Xsed="\$SED -e 1s/^X//"
30781
30782 # A grep program that handles long lines.
30783 GREP=$lt_GREP
30784
30785 # An ERE matcher.
30786 EGREP=$lt_EGREP
30787
30788 # A literal string matcher.
30789 FGREP=$lt_FGREP
30790
30791 # A BSD- or MS-compatible name lister.
30792 NM=$lt_NM
30793
30794 # Whether we need soft or hard links.
30795 LN_S=$lt_LN_S
30796
30797 # What is the maximum length of a command?
30798 max_cmd_len=$max_cmd_len
30799
30800 # Object file suffix (normally "o").
30801 objext=$ac_objext
30802
30803 # Executable file suffix (normally "").
30804 exeext=$exeext
30805
30806 # whether the shell understands "unset".
30807 lt_unset=$lt_unset
30808
30809 # turn spaces into newlines.
30810 SP2NL=$lt_lt_SP2NL
30811
30812 # turn newlines into spaces.
30813 NL2SP=$lt_lt_NL2SP
30814
30815 # convert \$build file names to \$host format.
30816 to_host_file_cmd=$lt_cv_to_host_file_cmd
30817
30818 # convert \$build files to toolchain format.
30819 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30820
30821 # A file(cmd) program that detects file types.
30822 FILECMD=$lt_FILECMD
30823
30824 # An object symbol dumper.
30825 OBJDUMP=$lt_OBJDUMP
30826
30827 # Method to check whether dependent libraries are shared objects.
30828 deplibs_check_method=$lt_deplibs_check_method
30829
30830 # Command to use when deplibs_check_method = "file_magic".
30831 file_magic_cmd=$lt_file_magic_cmd
30832
30833 # How to find potential files when deplibs_check_method = "file_magic".
30834 file_magic_glob=$lt_file_magic_glob
30835
30836 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30837 want_nocaseglob=$lt_want_nocaseglob
30838
30839 # DLL creation program.
30840 DLLTOOL=$lt_DLLTOOL
30841
30842 # Command to associate shared and link libraries.
30843 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30844
30845 # The archiver.
30846 AR=$lt_AR
30847
30848 # Flags to create an archive (by configure).
30849 lt_ar_flags=$lt_ar_flags
30850
30851 # Flags to create an archive.
30852 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
30853
30854 # How to feed a file listing to the archiver.
30855 archiver_list_spec=$lt_archiver_list_spec
30856
30857 # A symbol stripping program.
30858 STRIP=$lt_STRIP
30859
30860 # Commands used to install an old-style archive.
30861 RANLIB=$lt_RANLIB
30862 old_postinstall_cmds=$lt_old_postinstall_cmds
30863 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30864
30865 # Whether to use a lock for old archive extraction.
30866 lock_old_archive_extraction=$lock_old_archive_extraction
30867
30868 # A C compiler.
30869 LTCC=$lt_CC
30870
30871 # LTCC compiler flags.
30872 LTCFLAGS=$lt_CFLAGS
30873
30874 # Take the output of nm and produce a listing of raw symbols and C names.
30875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30876
30877 # Transform the output of nm in a proper C declaration.
30878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30879
30880 # Transform the output of nm into a list of symbols to manually relocate.
30881 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30882
30883 # Transform the output of nm in a C name address pair.
30884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30885
30886 # Transform the output of nm in a C name address pair when lib prefix is needed.
30887 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30888
30889 # The name lister interface.
30890 nm_interface=$lt_lt_cv_nm_interface
30891
30892 # Specify filename containing input files for \$NM.
30893 nm_file_list_spec=$lt_nm_file_list_spec
30894
30895 # The root where to search for dependent libraries,and where our libraries should be installed.
30896 lt_sysroot=$lt_sysroot
30897
30898 # Command to truncate a binary pipe.
30899 lt_truncate_bin=$lt_lt_cv_truncate_bin
30900
30901 # The name of the directory that contains temporary libtool files.
30902 objdir=$objdir
30903
30904 # Used to examine libraries when file_magic_cmd begins with "file".
30905 MAGIC_CMD=$MAGIC_CMD
30906
30907 # Must we lock files when doing compilation?
30908 need_locks=$lt_need_locks
30909
30910 # Manifest tool.
30911 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30912
30913 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30914 DSYMUTIL=$lt_DSYMUTIL
30915
30916 # Tool to change global to local symbols on Mac OS X.
30917 NMEDIT=$lt_NMEDIT
30918
30919 # Tool to manipulate fat objects and archives on Mac OS X.
30920 LIPO=$lt_LIPO
30921
30922 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30923 OTOOL=$lt_OTOOL
30924
30925 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30926 OTOOL64=$lt_OTOOL64
30927
30928 # Old archive suffix (normally "a").
30929 libext=$libext
30930
30931 # Shared library suffix (normally ".so").
30932 shrext_cmds=$lt_shrext_cmds
30933
30934 # The commands to extract the exported symbol list from a shared archive.
30935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30936
30937 # Variables whose values should be saved in libtool wrapper scripts and
30938 # restored at link time.
30939 variables_saved_for_relink=$lt_variables_saved_for_relink
30940
30941 # Do we need the "lib" prefix for modules?
30942 need_lib_prefix=$need_lib_prefix
30943
30944 # Do we need a version for libraries?
30945 need_version=$need_version
30946
30947 # Library versioning type.
30948 version_type=$version_type
30949
30950 # Shared library runtime path variable.
30951 runpath_var=$runpath_var
30952
30953 # Shared library path variable.
30954 shlibpath_var=$shlibpath_var
30955
30956 # Is shlibpath searched before the hard-coded library search path?
30957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30958
30959 # Format of library name prefix.
30960 libname_spec=$lt_libname_spec
30961
30962 # List of archive names. First name is the real one, the rest are links.
30963 # The last name is the one that the linker finds with -lNAME
30964 library_names_spec=$lt_library_names_spec
30965
30966 # The coded name of the library, if different from the real name.
30967 soname_spec=$lt_soname_spec
30968
30969 # Permission mode override for installation of shared libraries.
30970 install_override_mode=$lt_install_override_mode
30971
30972 # Command to use after installation of a shared archive.
30973 postinstall_cmds=$lt_postinstall_cmds
30974
30975 # Command to use after uninstallation of a shared archive.
30976 postuninstall_cmds=$lt_postuninstall_cmds
30977
30978 # Commands used to finish a libtool library installation in a directory.
30979 finish_cmds=$lt_finish_cmds
30980
30981 # As "finish_cmds", except a single script fragment to be evaled but
30982 # not shown.
30983 finish_eval=$lt_finish_eval
30984
30985 # Whether we should hardcode library paths into libraries.
30986 hardcode_into_libs=$hardcode_into_libs
30987
30988 # Compile-time system search path for libraries.
30989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30990
30991 # Detected run-time system search path for libraries.
30992 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30993
30994 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30995 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30996
30997 # Whether dlopen is supported.
30998 dlopen_support=$enable_dlopen
30999
31000 # Whether dlopen of programs is supported.
31001 dlopen_self=$enable_dlopen_self
31002
31003 # Whether dlopen of statically linked programs is supported.
31004 dlopen_self_static=$enable_dlopen_self_static
31005
31006 # Commands to strip libraries.
31007 old_striplib=$lt_old_striplib
31008 striplib=$lt_striplib
31009
31010
31011 # The linker used to build libraries.
31012 LD=$lt_LD
31013
31014 # How to create reloadable object files.
31015 reload_flag=$lt_reload_flag
31016 reload_cmds=$lt_reload_cmds
31017
31018 # Commands used to build an old-style archive.
31019 old_archive_cmds=$lt_old_archive_cmds
31020
31021 # A language specific compiler.
31022 CC=$lt_compiler
31023
31024 # Is the compiler the GNU compiler?
31025 with_gcc=$GCC
31026
31027 # Compiler flag to turn off builtin functions.
31028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31029
31030 # Additional compiler flags for building library objects.
31031 pic_flag=$lt_lt_prog_compiler_pic
31032
31033 # How to pass a linker flag through the compiler.
31034 wl=$lt_lt_prog_compiler_wl
31035
31036 # Compiler flag to prevent dynamic linking.
31037 link_static_flag=$lt_lt_prog_compiler_static
31038
31039 # Does compiler simultaneously support -c and -o options?
31040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31041
31042 # Whether or not to add -lc for building shared libraries.
31043 build_libtool_need_lc=$archive_cmds_need_lc
31044
31045 # Whether or not to disallow shared libs when runtime libs are static.
31046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31047
31048 # Compiler flag to allow reflexive dlopens.
31049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31050
31051 # Compiler flag to generate shared objects directly from archives.
31052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31053
31054 # Whether the compiler copes with passing no objects directly.
31055 compiler_needs_object=$lt_compiler_needs_object
31056
31057 # Create an old-style archive from a shared archive.
31058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31059
31060 # Create a temporary old-style archive to link instead of a shared archive.
31061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31062
31063 # Commands used to build a shared archive.
31064 archive_cmds=$lt_archive_cmds
31065 archive_expsym_cmds=$lt_archive_expsym_cmds
31066
31067 # Commands used to build a loadable module if different from building
31068 # a shared archive.
31069 module_cmds=$lt_module_cmds
31070 module_expsym_cmds=$lt_module_expsym_cmds
31071
31072 # Whether we are building with GNU ld or not.
31073 with_gnu_ld=$lt_with_gnu_ld
31074
31075 # Flag that allows shared libraries with undefined symbols to be built.
31076 allow_undefined_flag=$lt_allow_undefined_flag
31077
31078 # Flag that enforces no undefined symbols.
31079 no_undefined_flag=$lt_no_undefined_flag
31080
31081 # Flag to hardcode \$libdir into a binary during linking.
31082 # This must work even if \$libdir does not exist
31083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31084
31085 # Whether we need a single "-rpath" flag with a separated argument.
31086 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31087
31088 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31089 # DIR into the resulting binary.
31090 hardcode_direct=$hardcode_direct
31091
31092 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31093 # DIR into the resulting binary and the resulting library dependency is
31094 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31095 # library is relocated.
31096 hardcode_direct_absolute=$hardcode_direct_absolute
31097
31098 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31099 # into the resulting binary.
31100 hardcode_minus_L=$hardcode_minus_L
31101
31102 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31103 # into the resulting binary.
31104 hardcode_shlibpath_var=$hardcode_shlibpath_var
31105
31106 # Set to "yes" if building a shared library automatically hardcodes DIR
31107 # into the library and all subsequent libraries and executables linked
31108 # against it.
31109 hardcode_automatic=$hardcode_automatic
31110
31111 # Set to yes if linker adds runtime paths of dependent libraries
31112 # to runtime path list.
31113 inherit_rpath=$inherit_rpath
31114
31115 # Whether libtool must link a program against all its dependency libraries.
31116 link_all_deplibs=$link_all_deplibs
31117
31118 # Set to "yes" if exported symbols are required.
31119 always_export_symbols=$always_export_symbols
31120
31121 # The commands to list exported symbols.
31122 export_symbols_cmds=$lt_export_symbols_cmds
31123
31124 # Symbols that should not be listed in the preloaded symbols.
31125 exclude_expsyms=$lt_exclude_expsyms
31126
31127 # Symbols that must always be exported.
31128 include_expsyms=$lt_include_expsyms
31129
31130 # Commands necessary for linking programs (against libraries) with templates.
31131 prelink_cmds=$lt_prelink_cmds
31132
31133 # Commands necessary for finishing linking programs.
31134 postlink_cmds=$lt_postlink_cmds
31135
31136 # Specify filename containing input files.
31137 file_list_spec=$lt_file_list_spec
31138
31139 # How to hardcode a shared library path into an executable.
31140 hardcode_action=$hardcode_action
31141
31142 # The directories searched by this compiler when creating a shared library.
31143 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31144
31145 # Dependencies to place before and after the objects being linked to
31146 # create a shared library.
31147 predep_objects=$lt_predep_objects
31148 postdep_objects=$lt_postdep_objects
31149 predeps=$lt_predeps
31150 postdeps=$lt_postdeps
31151
31152 # The library search path used internally by the compiler when linking
31153 # a shared library.
31154 compiler_lib_search_path=$lt_compiler_lib_search_path
31155
31156 # ### END LIBTOOL CONFIG
31157
31158 _LT_EOF
31159
31160 cat <<'_LT_EOF' >> "$cfgfile"
31161
31162 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
31163
31164 # func_munge_path_list VARIABLE PATH
31165 # -----------------------------------
31166 # VARIABLE is name of variable containing _space_ separated list of
31167 # directories to be munged by the contents of PATH, which is string
31168 # having a format:
31169 # "DIR[:DIR]:"
31170 # string "DIR[ DIR]" will be prepended to VARIABLE
31171 # ":DIR[:DIR]"
31172 # string "DIR[ DIR]" will be appended to VARIABLE
31173 # "DIRP[:DIRP]::[DIRA:]DIRA"
31174 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
31175 # "DIRA[ DIRA]" will be appended to VARIABLE
31176 # "DIR[:DIR]"
31177 # VARIABLE will be replaced by "DIR[ DIR]"
31178 func_munge_path_list ()
31179 {
31180 case x$2 in
31181 x)
31182 ;;
31183 *:)
31184 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
31185 ;;
31186 x:*)
31187 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
31188 ;;
31189 *::*)
31190 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
31191 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
31192 ;;
31193 *)
31194 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
31195 ;;
31196 esac
31197 }
31198
31199
31200 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
31201 func_cc_basename ()
31202 {
31203 for cc_temp in $*""; do
31204 case $cc_temp in
31205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
31206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
31207 \-*) ;;
31208 *) break;;
31209 esac
31210 done
31211 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
31212 }
31213
31214
31215 # ### END FUNCTIONS SHARED WITH CONFIGURE
31216
31217 _LT_EOF
31218
31219 case $host_os in
31220 aix3*)
31221 cat <<\_LT_EOF >> "$cfgfile"
31222 # AIX sometimes has problems with the GCC collect2 program. For some
31223 # reason, if we set the COLLECT_NAMES environment variable, the problems
31224 # vanish in a puff of smoke.
31225 if test set != "${COLLECT_NAMES+set}"; then
31226 COLLECT_NAMES=
31227 export COLLECT_NAMES
31228 fi
31229 _LT_EOF
31230 ;;
31231 esac
31232
31233
31234
31235 ltmain=$ac_aux_dir/ltmain.sh
31236
31237
31238 # We use sed instead of cat because bash on DJGPP gets confused if
31239 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31240 # text mode, it properly converts lines to CR/LF. This bash problem
31241 # is reportedly fixed, but why not run on old versions too?
31242 $SED '$q' "$ltmain" >> "$cfgfile" \
31243 || (rm -f "$cfgfile"; exit 1)
31244
31245 mv -f "$cfgfile" "$ofile" ||
31246 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31247 chmod +x "$ofile"
31248
31249
31250 cat <<_LT_EOF >> "$ofile"
31251
31252 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31253
31254 # The linker used to build libraries.
31255 LD=$lt_LD_CXX
31256
31257 # How to create reloadable object files.
31258 reload_flag=$lt_reload_flag_CXX
31259 reload_cmds=$lt_reload_cmds_CXX
31260
31261 # Commands used to build an old-style archive.
31262 old_archive_cmds=$lt_old_archive_cmds_CXX
31263
31264 # A language specific compiler.
31265 CC=$lt_compiler_CXX
31266
31267 # Is the compiler the GNU compiler?
31268 with_gcc=$GCC_CXX
31269
31270 # Compiler flag to turn off builtin functions.
31271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31272
31273 # Additional compiler flags for building library objects.
31274 pic_flag=$lt_lt_prog_compiler_pic_CXX
31275
31276 # How to pass a linker flag through the compiler.
31277 wl=$lt_lt_prog_compiler_wl_CXX
31278
31279 # Compiler flag to prevent dynamic linking.
31280 link_static_flag=$lt_lt_prog_compiler_static_CXX
31281
31282 # Does compiler simultaneously support -c and -o options?
31283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31284
31285 # Whether or not to add -lc for building shared libraries.
31286 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31287
31288 # Whether or not to disallow shared libs when runtime libs are static.
31289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31290
31291 # Compiler flag to allow reflexive dlopens.
31292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31293
31294 # Compiler flag to generate shared objects directly from archives.
31295 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31296
31297 # Whether the compiler copes with passing no objects directly.
31298 compiler_needs_object=$lt_compiler_needs_object_CXX
31299
31300 # Create an old-style archive from a shared archive.
31301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31302
31303 # Create a temporary old-style archive to link instead of a shared archive.
31304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31305
31306 # Commands used to build a shared archive.
31307 archive_cmds=$lt_archive_cmds_CXX
31308 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31309
31310 # Commands used to build a loadable module if different from building
31311 # a shared archive.
31312 module_cmds=$lt_module_cmds_CXX
31313 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31314
31315 # Whether we are building with GNU ld or not.
31316 with_gnu_ld=$lt_with_gnu_ld_CXX
31317
31318 # Flag that allows shared libraries with undefined symbols to be built.
31319 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31320
31321 # Flag that enforces no undefined symbols.
31322 no_undefined_flag=$lt_no_undefined_flag_CXX
31323
31324 # Flag to hardcode \$libdir into a binary during linking.
31325 # This must work even if \$libdir does not exist
31326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31327
31328 # Whether we need a single "-rpath" flag with a separated argument.
31329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31330
31331 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31332 # DIR into the resulting binary.
31333 hardcode_direct=$hardcode_direct_CXX
31334
31335 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31336 # DIR into the resulting binary and the resulting library dependency is
31337 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31338 # library is relocated.
31339 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31340
31341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31342 # into the resulting binary.
31343 hardcode_minus_L=$hardcode_minus_L_CXX
31344
31345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31346 # into the resulting binary.
31347 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31348
31349 # Set to "yes" if building a shared library automatically hardcodes DIR
31350 # into the library and all subsequent libraries and executables linked
31351 # against it.
31352 hardcode_automatic=$hardcode_automatic_CXX
31353
31354 # Set to yes if linker adds runtime paths of dependent libraries
31355 # to runtime path list.
31356 inherit_rpath=$inherit_rpath_CXX
31357
31358 # Whether libtool must link a program against all its dependency libraries.
31359 link_all_deplibs=$link_all_deplibs_CXX
31360
31361 # Set to "yes" if exported symbols are required.
31362 always_export_symbols=$always_export_symbols_CXX
31363
31364 # The commands to list exported symbols.
31365 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31366
31367 # Symbols that should not be listed in the preloaded symbols.
31368 exclude_expsyms=$lt_exclude_expsyms_CXX
31369
31370 # Symbols that must always be exported.
31371 include_expsyms=$lt_include_expsyms_CXX
31372
31373 # Commands necessary for linking programs (against libraries) with templates.
31374 prelink_cmds=$lt_prelink_cmds_CXX
31375
31376 # Commands necessary for finishing linking programs.
31377 postlink_cmds=$lt_postlink_cmds_CXX
31378
31379 # Specify filename containing input files.
31380 file_list_spec=$lt_file_list_spec_CXX
31381
31382 # How to hardcode a shared library path into an executable.
31383 hardcode_action=$hardcode_action_CXX
31384
31385 # The directories searched by this compiler when creating a shared library.
31386 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31387
31388 # Dependencies to place before and after the objects being linked to
31389 # create a shared library.
31390 predep_objects=$lt_predep_objects_CXX
31391 postdep_objects=$lt_postdep_objects_CXX
31392 predeps=$lt_predeps_CXX
31393 postdeps=$lt_postdeps_CXX
31394
31395 # The library search path used internally by the compiler when linking
31396 # a shared library.
31397 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31398
31399 # ### END LIBTOOL TAG CONFIG: CXX
31400 _LT_EOF
31401
31402 ;;
31403
31404 esac
31405 done # for ac_tag
31406
31407
31408 as_fn_exit 0
31409 _ACEOF
31410 ac_clean_files=$ac_clean_files_save
31411
31412 test $ac_write_fail = 0 ||
31413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31414
31415
31416 # configure is writing to config.log, and then calls config.status.
31417 # config.status does its own redirection, appending to config.log.
31418 # Unfortunately, on DOS this fails, as config.log is still kept open
31419 # by configure, so config.status won't be able to write to it; its
31420 # output is simply discarded. So we exec the FD to /dev/null,
31421 # effectively closing config.log, so it can be properly (re)opened and
31422 # appended to by config.status. When coming back to configure, we
31423 # need to make the FD available again.
31424 if test "$no_create" != yes; then
31425 ac_cs_success=:
31426 ac_config_status_args=
31427 test "$silent" = yes &&
31428 ac_config_status_args="$ac_config_status_args --quiet"
31429 exec 5>/dev/null
31430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31431 exec 5>>config.log
31432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31433 # would make configure fail if this is the last instruction.
31434 $ac_cs_success || as_fn_exit 1
31435 fi
31436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31438 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31439 fi
31440
31441
31442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
31443 printf "%s\n" "$as_me: " >&6;}
31444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuration summary" >&5
31445 printf "%s\n" "$as_me: Configuration summary" >&6;}
31446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: =====================" >&5
31447 printf "%s\n" "$as_me: =====================" >&6;}
31448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
31449 printf "%s\n" "$as_me: " >&6;}
31450 if test "x$ac_configure_args" != "x"
31451 then :
31452 summary_conf_opts=$ac_configure_args
31453 else case e in #(
31454 e) summary_conf_opts="(no options)"
31455 ;;
31456 esac
31457 fi
31458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnsdist configured with: $summary_conf_opts" >&5
31459 printf "%s\n" "$as_me: dnsdist configured with: $summary_conf_opts" >&6;}
31460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
31461 printf "%s\n" "$as_me: " >&6;}
31462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC: $CC ($CCVERSION)" >&5
31463 printf "%s\n" "$as_me: CC: $CC ($CCVERSION)" >&6;}
31464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CXX: $CXX ($CXXVERSION)" >&5
31465 printf "%s\n" "$as_me: CXX: $CXX ($CXXVERSION)" >&6;}
31466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LD: $LD" >&5
31467 printf "%s\n" "$as_me: LD: $LD" >&6;}
31468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CFLAGS: $CFLAGS" >&5
31469 printf "%s\n" "$as_me: CFLAGS: $CFLAGS" >&6;}
31470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS: $CPPFLAGS" >&5
31471 printf "%s\n" "$as_me: CPPFLAGS: $CPPFLAGS" >&6;}
31472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CXXFLAGS: $CXXFLAGS" >&5
31473 printf "%s\n" "$as_me: CXXFLAGS: $CXXFLAGS" >&6;}
31474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS: $LDFLAGS" >&5
31475 printf "%s\n" "$as_me: LDFLAGS: $LDFLAGS" >&6;}
31476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS: $LIBS" >&5
31477 printf "%s\n" "$as_me: LIBS: $LIBS" >&6;}
31478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: BOOST_CPPFLAGS: $BOOST_CPPFLAGS" >&5
31479 printf "%s\n" "$as_me: BOOST_CPPFLAGS: $BOOST_CPPFLAGS" >&6;}
31480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
31481 printf "%s\n" "$as_me: " >&6;}
31482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Features enabled" >&5
31483 printf "%s\n" "$as_me: Features enabled" >&6;}
31484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ----------------" >&5
31485 printf "%s\n" "$as_me: ----------------" >&6;}
31486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Lua: $LUAPC" >&5
31487 printf "%s\n" "$as_me: Lua: $LUAPC" >&6;}
31488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Protobuf: yes" >&5
31489 printf "%s\n" "$as_me: Protobuf: yes" >&6;}
31490 if test "x$systemd" != "xn"
31491 then :
31492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd: yes" >&5
31493 printf "%s\n" "$as_me: systemd: yes" >&6;}
31494 else case e in #(
31495 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd: no" >&5
31496 printf "%s\n" "$as_me: systemd: no" >&6;}
31497 ;;
31498 esac
31499 fi
31500 if test x"$BPF_LIBS" != "x" -a x"$XDP_LIBS" != "x"
31501 then :
31502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_XDP/XSK: yes" >&5
31503 printf "%s\n" "$as_me: AF_XDP/XSK: yes" >&6;}
31504 else case e in #(
31505 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_XDP/XSK: no" >&5
31506 printf "%s\n" "$as_me: AF_XDP/XSK: no" >&6;}
31507 ;;
31508 esac
31509 fi
31510 if test "x$HAVE_IPCIPHER" = "x1"
31511 then :
31512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcipher: yes" >&5
31513 printf "%s\n" "$as_me: ipcipher: yes" >&6;}
31514 else case e in #(
31515 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcipher: no" >&5
31516 printf "%s\n" "$as_me: ipcipher: no" >&6;}
31517 ;;
31518 esac
31519 fi
31520 if test "x$enable_ipcrypt2" != "xno"
31521 then :
31522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcrypt2: yes" >&5
31523 printf "%s\n" "$as_me: ipcrypt2: yes" >&6;}
31524 else case e in #(
31525 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ipcrypt2: no" >&5
31526 printf "%s\n" "$as_me: ipcrypt2: no" >&6;}
31527 ;;
31528 esac
31529 fi
31530 if test "x$LIBEDIT_LIBS" != "x"
31531 then :
31532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libedit: yes" >&5
31533 printf "%s\n" "$as_me: libedit: yes" >&6;}
31534 else case e in #(
31535 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libedit: no" >&5
31536 printf "%s\n" "$as_me: libedit: no" >&6;}
31537 ;;
31538 esac
31539 fi
31540 if test "x$LIBSODIUM_LIBS" != "x"
31541 then :
31542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libsodium: yes" >&5
31543 printf "%s\n" "$as_me: libsodium: yes" >&6;}
31544 else case e in #(
31545 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libsodium: no" >&5
31546 printf "%s\n" "$as_me: libsodium: no" >&6;}
31547 ;;
31548 esac
31549 fi
31550 if test "x$enable_dnscrypt" != "xno"
31551 then :
31552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNSCrypt: yes" >&5
31553 printf "%s\n" "$as_me: DNSCrypt: yes" >&6;}
31554 else case e in #(
31555 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNSCrypt: no" >&5
31556 printf "%s\n" "$as_me: DNSCrypt: no" >&6;}
31557 ;;
31558 esac
31559 fi
31560 if test "x$FSTRM_LIBS" != "x"
31561 then :
31562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnstap: yes" >&5
31563 printf "%s\n" "$as_me: dnstap: yes" >&6;}
31564 else case e in #(
31565 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dnstap: no" >&5
31566 printf "%s\n" "$as_me: dnstap: no" >&6;}
31567 ;;
31568 esac
31569 fi
31570 if test "x$QUICHE_LIBS" != "x"
31571 then :
31572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: quiche: yes" >&5
31573 printf "%s\n" "$as_me: quiche: yes" >&6;}
31574 else case e in #(
31575 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: quiche: no" >&5
31576 printf "%s\n" "$as_me: quiche: no" >&6;}
31577 ;;
31578 esac
31579 fi
31580 if test "x$RE2_LIBS" != "x"
31581 then :
31582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: re2: yes" >&5
31583 printf "%s\n" "$as_me: re2: yes" >&6;}
31584 else case e in #(
31585 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: re2: no" >&5
31586 printf "%s\n" "$as_me: re2: no" >&6;}
31587 ;;
31588 esac
31589 fi
31590 if test "x$NET_SNMP_LIBS" != "x"
31591 then :
31592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SNMP: yes" >&5
31593 printf "%s\n" "$as_me: SNMP: yes" >&6;}
31594 else case e in #(
31595 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SNMP: no" >&5
31596 printf "%s\n" "$as_me: SNMP: no" >&6;}
31597 ;;
31598 esac
31599 fi
31600 if test "x$enable_dns_over_tls" != "xno"
31601 then :
31602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over TLS: yes" >&5
31603 printf "%s\n" "$as_me: DNS over TLS: yes" >&6;}
31604 else case e in #(
31605 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over TLS: no" >&5
31606 printf "%s\n" "$as_me: DNS over TLS: no" >&6;}
31607 ;;
31608 esac
31609 fi
31610 if test "x$enable_dns_over_https" != "xno"
31611 then :
31612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTPS (DoH): yes" >&5
31613 printf "%s\n" "$as_me: DNS over HTTPS (DoH): yes" >&6;}
31614 else case e in #(
31615 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTPS (DoH): no" >&5
31616 printf "%s\n" "$as_me: DNS over HTTPS (DoH): no" >&6;}
31617 ;;
31618 esac
31619 fi
31620 if test "x$enable_dns_over_quic" != "xno"
31621 then :
31622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over QUIC (DoQ): yes" >&5
31623 printf "%s\n" "$as_me: DNS over QUIC (DoQ): yes" >&6;}
31624 else case e in #(
31625 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over QUIC (DoQ): no" >&5
31626 printf "%s\n" "$as_me: DNS over QUIC (DoQ): no" >&6;}
31627 ;;
31628 esac
31629 fi
31630 if test "x$enable_dns_over_http3" != "xno"
31631 then :
31632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTP/3 (DoH3): yes" >&5
31633 printf "%s\n" "$as_me: DNS over HTTP/3 (DoH3): yes" >&6;}
31634 else case e in #(
31635 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DNS over HTTP/3 (DoH3): no" >&5
31636 printf "%s\n" "$as_me: DNS over HTTP/3 (DoH3): no" >&6;}
31637 ;;
31638 esac
31639 fi
31640 if test "x$enable_dns_over_tls" != "xno"
31641 then :
31642
31643 if test "x$GNUTLS_LIBS" != "x"
31644 then :
31645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GnuTLS: yes" >&5
31646 printf "%s\n" "$as_me: GnuTLS: yes" >&6;}
31647 else case e in #(
31648 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GnuTLS: no" >&5
31649 printf "%s\n" "$as_me: GnuTLS: no" >&6;}
31650 ;;
31651 esac
31652 fi
31653
31654 fi
31655 if test "x$enable_dns_over_tls" != "xno" -o "x$enable_dns_over_https" != "xno"
31656 then :
31657
31658 if test "x$LIBSSL_LIBS" != "x"
31659 then :
31660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL: yes" >&5
31661 printf "%s\n" "$as_me: OpenSSL: yes" >&6;}
31662 else case e in #(
31663 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL: no" >&5
31664 printf "%s\n" "$as_me: OpenSSL: no" >&6;}
31665 ;;
31666 esac
31667 fi
31668
31669 fi
31670 if test "x$NGHTTP2_LIBS" != "x"
31671 then :
31672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: nghttp2: yes" >&5
31673 printf "%s\n" "$as_me: nghttp2: yes" >&6;}
31674 else case e in #(
31675 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: nghttp2: no" >&5
31676 printf "%s\n" "$as_me: nghttp2: no" >&6;}
31677 ;;
31678 esac
31679 fi
31680 if test "x$CDB_LIBS" != "x"
31681 then :
31682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cdb: yes" >&5
31683 printf "%s\n" "$as_me: cdb: yes" >&6;}
31684 else case e in #(
31685 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cdb: no" >&5
31686 printf "%s\n" "$as_me: cdb: no" >&6;}
31687 ;;
31688 esac
31689 fi
31690 if test "x$LMDB_LIBS" != "x"
31691 then :
31692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lmdb: yes" >&5
31693 printf "%s\n" "$as_me: lmdb: yes" >&6;}
31694 else case e in #(
31695 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lmdb: no" >&5
31696 printf "%s\n" "$as_me: lmdb: no" >&6;}
31697 ;;
31698 esac
31699 fi
31700 if test "x$enable_yaml" != "xno"
31701 then :
31702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: YAML configuration: yes" >&5
31703 printf "%s\n" "$as_me: YAML configuration: yes" >&6;}
31704 else case e in #(
31705 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: YAML configuration: no" >&5
31706 printf "%s\n" "$as_me: YAML configuration: no" >&6;}
31707 ;;
31708 esac
31709 fi
31710
31711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
31712 printf "%s\n" "$as_me: " >&6;}
31713