Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for memcached 1.6.45.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: [email protected] about your system, including
275 $0: any error possibly output before this message. Then
276 $0: install a modern shell, or manually run the script
277 $0: under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='memcached'
606 PACKAGE_TARNAME='memcached'
607 PACKAGE_VERSION='1.6.45'
608 PACKAGE_STRING='memcached 1.6.45'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL=''
611
612 ac_unique_file="memcached.c"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_subst_vars='am__EXEEXT_FALSE
646 am__EXEEXT_TRUE
647 LTLIBOBJS
648 LIBOBJS
649 BUILD_SPECIFICATIONS_FALSE
650 BUILD_SPECIFICATIONS_TRUE
651 XSLTPROC
652 XML2RFC
653 BUILD_DARWIN_PRIVS_FALSE
654 BUILD_DARWIN_PRIVS_TRUE
655 BUILD_FREEBSD_PRIVS_FALSE
656 BUILD_FREEBSD_PRIVS_TRUE
657 BUILD_OPENBSD_PRIVS_FALSE
658 BUILD_OPENBSD_PRIVS_TRUE
659 BUILD_LINUX_PRIVS_FALSE
660 BUILD_LINUX_PRIVS_TRUE
661 BUILD_SOLARIS_PRIVS_FALSE
662 BUILD_SOLARIS_PRIVS_TRUE
663 OPENSSL_LIBS
664 OPENSSL_CFLAGS
665 PKG_CONFIG_LIBDIR
666 PKG_CONFIG_PATH
667 PKG_CONFIG
668 PROFILER_FLAGS
669 PROFILER
670 PROFILER_LDFLAGS
671 ENABLE_SASL
672 DTRACEFLAGS
673 LARGE_CLIENT_FLAGS_FALSE
674 LARGE_CLIENT_FLAGS_TRUE
675 ENABLE_PROXY_TLS_FALSE
676 ENABLE_PROXY_TLS_TRUE
677 ENABLE_PROXY_URING_FALSE
678 ENABLE_PROXY_URING_TRUE
679 ENABLE_PROXY_FALSE
680 ENABLE_PROXY_TRUE
681 DISABLE_UNIX_SOCKET_FALSE
682 DISABLE_UNIX_SOCKET_TRUE
683 ENABLE_STATIC_FALSE
684 ENABLE_STATIC_TRUE
685 ENABLE_ASAN_FALSE
686 ENABLE_ASAN_TRUE
687 ENABLE_TLS_FALSE
688 ENABLE_TLS_TRUE
689 ENABLE_ARM_CRC32_FALSE
690 ENABLE_ARM_CRC32_TRUE
691 ENABLE_EXTSTORE_FALSE
692 ENABLE_EXTSTORE_TRUE
693 ENABLE_SASL_FALSE
694 ENABLE_SASL_TRUE
695 DTRACE_INSTRUMENT_OBJ_FALSE
696 DTRACE_INSTRUMENT_OBJ_TRUE
697 BUILD_DTRACE_FALSE
698 BUILD_DTRACE_TRUE
699 DTRACE
700 CPP
701 DARWIN_FALSE
702 DARWIN_TRUE
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 am__xargs_n
720 am__rm_f_notfound
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 CSCOPE
726 ETAGS
727 CTAGS
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 host_os
752 host_vendor
753 host_cpu
754 host
755 build_os
756 build_vendor
757 build_cpu
758 build
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 runstatedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL
798 am__quote'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_extstore
805 enable_seccomp
806 enable_sasl
807 enable_sasl_pwdb
808 enable_tls
809 enable_asan
810 enable_static
811 enable_unix_socket
812 enable_proxy
813 enable_proxy_uring
814 enable_proxy_tls
815 enable_werror
816 enable_large_client_flags
817 enable_dtrace
818 enable_coverage
819 enable_64bit
820 with_libevent
821 with_libssl
822 enable_docs
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 PKG_CONFIG
834 PKG_CONFIG_PATH
835 PKG_CONFIG_LIBDIR
836 OPENSSL_CFLAGS
837 OPENSSL_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 runstatedir='${localstatedir}/run'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: '$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: '$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: '$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: '$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error $? "unrecognized option: '$ac_option'
1232 Try '$0 --help' for more information"
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: '$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 printf "%s\n" X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 'configure' configures memcached 1.6.45 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print 'checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for '--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or '..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, 'make install' will install all the files in
1413 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than '$ac_default_prefix' using '--prefix',
1415 for instance '--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/memcached]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of memcached 1.6.45:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --disable-extstore Disable external storage (extstore)
1472 --enable-seccomp Enable seccomp restrictions EXPERIMENTAL
1473 --enable-sasl Enable SASL authentication
1474 --enable-sasl-pwdb Enable plaintext password db
1475 --enable-tls Enable Transport Layer Security EXPERIMENTAL
1476 --enable-asan Compile with ASAN EXPERIMENTAL
1477 --enable-static Compile a statically linked binary
1478 --disable-unix-socket Disable unix domain socket
1479 --enable-proxy Enable proxy code EXPERIMENTAL
1480 --enable-proxy-uring Enable proxy io_uring code EXPERIMENTAL
1481 --enable-proxy-tls Enable proxy io_uring code EXPERIMENTAL
1482 --enable-werror Enable -Werror
1483 --enable-large-client-flags
1484 Change client flags from 32bit to 64bit EXPERIMENTAL
1485 --enable-dtrace Enable dtrace probes
1486 --disable-coverage Disable code coverage
1487 --enable-64bit build 64bit version
1488 --disable-docs Disable documentation generation
1489
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-libevent=PATH Specify path to libevent installation
1494 --with-libssl=PATH Specify path to libssl installation
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 PKG_CONFIG path to pkg-config utility
1506 PKG_CONFIG_PATH
1507 directories to add to pkg-config's search path
1508 PKG_CONFIG_LIBDIR
1509 path overriding pkg-config's built-in search path
1510 OPENSSL_CFLAGS
1511 C compiler flags for OPENSSL, overriding pkg-config
1512 OPENSSL_LIBS
1513 linker flags for OPENSSL, overriding pkg-config
1514
1515 Use these variables to override the choices made by 'configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <[email protected]>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for configure.gnu first; this name is used for a wrapper for
1565 # Metaconfig's "Configure" on case-insensitive file systems.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 memcached configure 1.6.45
1583 generated by GNU Autoconf 2.72
1584
1585 Copyright (C) 2023 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest.beam
1603 if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 printf "%s\n" "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext
1622 then :
1623 ac_retval=0
1624 else case e in #(
1625 e) printf "%s\n" "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1 ;;
1629 esac
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 printf "%s\n" "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }
1661 then :
1662 ac_retval=0
1663 else case e in #(
1664 e) printf "%s\n" "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1 ;;
1668 esac
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1676 # ------------------------------------------------------------------
1677 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1678 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1679 ac_fn_check_decl ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 as_decl_name=`echo $2|sed 's/ *(.*//'`
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1684 printf %s "checking whether $as_decl_name is declared... " >&6; }
1685 if eval test \${$3+y}
1686 then :
1687 printf %s "(cached) " >&6
1688 else case e in #(
1689 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1690 eval ac_save_FLAGS=\$$6
1691 as_fn_append $6 " $5"
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 $4
1695 int
1696 main (void)
1697 {
1698 #ifndef $as_decl_name
1699 #ifdef __cplusplus
1700 (void) $as_decl_use;
1701 #else
1702 (void) $as_decl_name;
1703 #endif
1704 #endif
1705
1706 ;
1707 return 0;
1708 }
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"
1711 then :
1712 eval "$3=yes"
1713 else case e in #(
1714 e) eval "$3=no" ;;
1715 esac
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1718 eval $6=\$ac_save_FLAGS
1719 ;;
1720 esac
1721 fi
1722 eval ac_res=\$$3
1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 printf "%s\n" "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727 } # ac_fn_check_decl
1728
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 printf %s "checking for $2... " >&6; }
1738 if eval test \${$3+y}
1739 then :
1740 printf %s "(cached) " >&6
1741 else case e in #(
1742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"
1748 then :
1749 eval "$3=yes"
1750 else case e in #(
1751 e) eval "$3=no" ;;
1752 esac
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 printf "%s\n" "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest$ac_exeext
1792 }
1793 then :
1794 ac_retval=0
1795 else case e in #(
1796 e) printf "%s\n" "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1 ;;
1800 esac
1801 fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_link
1811
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1815 # executables *can* be run.
1816 ac_fn_c_try_run ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 printf "%s\n" "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1827 ac_status=$?
1828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 printf "%s\n" "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1837 ac_status=$?
1838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }
1840 then :
1841 ac_retval=0
1842 else case e in #(
1843 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1844 printf "%s\n" "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status ;;
1848 esac
1849 fi
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_run
1855
1856 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1857 # --------------------------------------------
1858 # Tries to find the compile-time value of EXPR in a program that includes
1859 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1860 # computed
1861 ac_fn_c_compute_int ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if test "$cross_compiling" = yes; then
1865 # Depending upon the size, compute the lo and hi bounds.
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main (void)
1871 {
1872 static int test_array [1 - 2 * !(($2) >= 0)];
1873 test_array [0] = 0;
1874 return test_array [0];
1875
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"
1881 then :
1882 ac_lo=0 ac_mid=0
1883 while :; do
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 int
1888 main (void)
1889 {
1890 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1891 test_array [0] = 0;
1892 return test_array [0];
1893
1894 ;
1895 return 0;
1896 }
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"
1899 then :
1900 ac_hi=$ac_mid; break
1901 else case e in #(
1902 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1903 if test $ac_lo -le $ac_mid; then
1904 ac_lo= ac_hi=
1905 break
1906 fi
1907 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1908 esac
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1911 done
1912 else case e in #(
1913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main (void)
1918 {
1919 static int test_array [1 - 2 * !(($2) < 0)];
1920 test_array [0] = 0;
1921 return test_array [0];
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"
1928 then :
1929 ac_hi=-1 ac_mid=-1
1930 while :; do
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 int
1935 main (void)
1936 {
1937 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947 ac_lo=$ac_mid; break
1948 else case e in #(
1949 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1950 if test $ac_mid -le $ac_hi; then
1951 ac_lo= ac_hi=
1952 break
1953 fi
1954 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1955 esac
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1958 done
1959 else case e in #(
1960 e) ac_lo= ac_hi= ;;
1961 esac
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1964 esac
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1967 # Binary search between lo and hi bounds.
1968 while test "x$ac_lo" != "x$ac_hi"; do
1969 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 int
1974 main (void)
1975 {
1976 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1977 test_array [0] = 0;
1978 return test_array [0];
1979
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"
1985 then :
1986 ac_hi=$ac_mid
1987 else case e in #(
1988 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1989 esac
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1992 done
1993 case $ac_lo in #((
1994 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1995 '') ac_retval=1 ;;
1996 esac
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 static long int longval (void) { return $2; }
2002 static unsigned long int ulongval (void) { return $2; }
2003 #include <stdio.h>
2004 #include <stdlib.h>
2005 int
2006 main (void)
2007 {
2008
2009 FILE *f = fopen ("conftest.val", "w");
2010 if (! f)
2011 return 1;
2012 if (($2) < 0)
2013 {
2014 long int i = longval ();
2015 if (i != ($2))
2016 return 1;
2017 fprintf (f, "%ld", i);
2018 }
2019 else
2020 {
2021 unsigned long int i = ulongval ();
2022 if (i != ($2))
2023 return 1;
2024 fprintf (f, "%lu", i);
2025 }
2026 /* Do not output a trailing newline, as this causes \r\n confusion
2027 on some platforms. */
2028 return ferror (f) || fclose (f) != 0;
2029
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_run "$LINENO"
2035 then :
2036 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2037 else case e in #(
2038 e) ac_retval=1 ;;
2039 esac
2040 fi
2041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2042 conftest.$ac_objext conftest.beam conftest.$ac_ext
2043 rm -f conftest.val
2044
2045 fi
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
2048
2049 } # ac_fn_c_compute_int
2050
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 printf %s "checking for $2... " >&6; }
2060 if eval test \${$3+y}
2061 then :
2062 printf %s "(cached) " >&6
2063 else case e in #(
2064 e) eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 int
2069 main (void)
2070 {
2071 if (sizeof ($2))
2072 return 0;
2073 ;
2074 return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"
2078 then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 int
2083 main (void)
2084 {
2085 if (sizeof (($2)))
2086 return 0;
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"
2092 then :
2093
2094 else case e in #(
2095 e) eval "$3=yes" ;;
2096 esac
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2101 esac
2102 fi
2103 eval ac_res=\$$3
2104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 printf "%s\n" "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107
2108 } # ac_fn_c_check_type
2109
2110 # ac_fn_c_check_func LINENO FUNC VAR
2111 # ----------------------------------
2112 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2113 ac_fn_c_check_func ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 printf %s "checking for $2... " >&6; }
2118 if eval test \${$3+y}
2119 then :
2120 printf %s "(cached) " >&6
2121 else case e in #(
2122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2124 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2126 #define $2 innocuous_$2
2127
2128 /* System header to define __stub macros and hopefully few prototypes,
2129 which can conflict with char $2 (void); below. */
2130
2131 #include <limits.h>
2132 #undef $2
2133
2134 /* Override any GCC internal prototype to avoid an error.
2135 Use char because int might match the return type of a GCC
2136 builtin and then its argument prototype would still apply. */
2137 #ifdef __cplusplus
2138 extern "C"
2139 #endif
2140 char $2 (void);
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined __stub_$2 || defined __stub___$2
2145 choke me
2146 #endif
2147
2148 int
2149 main (void)
2150 {
2151 return $2 ();
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_link "$LINENO"
2157 then :
2158 eval "$3=yes"
2159 else case e in #(
2160 e) eval "$3=no" ;;
2161 esac
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2164 conftest$ac_exeext conftest.$ac_ext ;;
2165 esac
2166 fi
2167 eval ac_res=\$$3
2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 printf "%s\n" "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172 } # ac_fn_c_check_func
2173 ac_configure_args_raw=
2174 for ac_arg
2175 do
2176 case $ac_arg in
2177 *\'*)
2178 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 esac
2180 as_fn_append ac_configure_args_raw " '$ac_arg'"
2181 done
2182
2183 case $ac_configure_args_raw in
2184 *$as_nl*)
2185 ac_safe_unquote= ;;
2186 *)
2187 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2188 ac_unsafe_a="$ac_unsafe_z#~"
2189 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2190 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2191 esac
2192
2193 cat >config.log <<_ACEOF
2194 This file contains any messages produced by compilers while
2195 running configure, to aid debugging if configure makes a mistake.
2196
2197 It was created by memcached $as_me 1.6.45, which was
2198 generated by GNU Autoconf 2.72. Invocation command line was
2199
2200 $ $0$ac_configure_args_raw
2201
2202 _ACEOF
2203 exec 5>>config.log
2204 {
2205 cat <<_ASUNAME
2206 ## --------- ##
2207 ## Platform. ##
2208 ## --------- ##
2209
2210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2215
2216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2218
2219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2222 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2226
2227 _ASUNAME
2228
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 case $as_dir in #(((
2234 '') as_dir=./ ;;
2235 */) ;;
2236 *) as_dir=$as_dir/ ;;
2237 esac
2238 printf "%s\n" "PATH: $as_dir"
2239 done
2240 IFS=$as_save_IFS
2241
2242 } >&5
2243
2244 cat >&5 <<_ACEOF
2245
2246
2247 ## ----------- ##
2248 ## Core tests. ##
2249 ## ----------- ##
2250
2251 _ACEOF
2252
2253
2254 # Keep a trace of the command line.
2255 # Strip out --no-create and --no-recursion so they do not pile up.
2256 # Strip out --silent because we don't want to record it for future runs.
2257 # Also quote any args containing shell meta-characters.
2258 # Make two passes to allow for proper duplicate-argument suppression.
2259 ac_configure_args=
2260 ac_configure_args0=
2261 ac_configure_args1=
2262 ac_must_keep_next=false
2263 for ac_pass in 1 2
2264 do
2265 for ac_arg
2266 do
2267 case $ac_arg in
2268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2270 | -silent | --silent | --silen | --sile | --sil)
2271 continue ;;
2272 *\'*)
2273 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2274 esac
2275 case $ac_pass in
2276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2277 2)
2278 as_fn_append ac_configure_args1 " '$ac_arg'"
2279 if test $ac_must_keep_next = true; then
2280 ac_must_keep_next=false # Got value, back to normal.
2281 else
2282 case $ac_arg in
2283 *=* | --config-cache | -C | -disable-* | --disable-* \
2284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2286 | -with-* | --with-* | -without-* | --without-* | --x)
2287 case "$ac_configure_args0 " in
2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2289 esac
2290 ;;
2291 -* ) ac_must_keep_next=true ;;
2292 esac
2293 fi
2294 as_fn_append ac_configure_args " '$ac_arg'"
2295 ;;
2296 esac
2297 done
2298 done
2299 { ac_configure_args0=; unset ac_configure_args0;}
2300 { ac_configure_args1=; unset ac_configure_args1;}
2301
2302 # When interrupted or exit'd, cleanup temporary files, and complete
2303 # config.log. We remove comments because anyway the quotes in there
2304 # would cause problems or look ugly.
2305 # WARNING: Use '\'' to represent an apostrophe within the trap.
2306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2307 trap 'exit_status=$?
2308 # Sanitize IFS.
2309 IFS=" "" $as_nl"
2310 # Save into config.log some information that might help in debugging.
2311 {
2312 echo
2313
2314 printf "%s\n" "## ---------------- ##
2315 ## Cache variables. ##
2316 ## ---------------- ##"
2317 echo
2318 # The following way of writing the cache mishandles newlines in values,
2319 (
2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321 eval ac_val=\$$ac_var
2322 case $ac_val in #(
2323 *${as_nl}*)
2324 case $ac_var in #(
2325 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327 esac
2328 case $ac_var in #(
2329 _ | IFS | as_nl) ;; #(
2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331 *) { eval $ac_var=; unset $ac_var;} ;;
2332 esac ;;
2333 esac
2334 done
2335 (set) 2>&1 |
2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337 *${as_nl}ac_space=\ *)
2338 sed -n \
2339 "s/'\''/'\''\\\\'\'''\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341 ;; #(
2342 *)
2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2344 ;;
2345 esac |
2346 sort
2347 )
2348 echo
2349
2350 printf "%s\n" "## ----------------- ##
2351 ## Output variables. ##
2352 ## ----------------- ##"
2353 echo
2354 for ac_var in $ac_subst_vars
2355 do
2356 eval ac_val=\$$ac_var
2357 case $ac_val in
2358 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359 esac
2360 printf "%s\n" "$ac_var='\''$ac_val'\''"
2361 done | sort
2362 echo
2363
2364 if test -n "$ac_subst_files"; then
2365 printf "%s\n" "## ------------------- ##
2366 ## File substitutions. ##
2367 ## ------------------- ##"
2368 echo
2369 for ac_var in $ac_subst_files
2370 do
2371 eval ac_val=\$$ac_var
2372 case $ac_val in
2373 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 esac
2375 printf "%s\n" "$ac_var='\''$ac_val'\''"
2376 done | sort
2377 echo
2378 fi
2379
2380 if test -s confdefs.h; then
2381 printf "%s\n" "## ----------- ##
2382 ## confdefs.h. ##
2383 ## ----------- ##"
2384 echo
2385 cat confdefs.h
2386 echo
2387 fi
2388 test "$ac_signal" != 0 &&
2389 printf "%s\n" "$as_me: caught signal $ac_signal"
2390 printf "%s\n" "$as_me: exit $exit_status"
2391 } >&5
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394 exit $exit_status
2395 ' 0
2396 for ac_signal in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 done
2399 ac_signal=0
2400
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest* confdefs.h
2403
2404 printf "%s\n" "/* confdefs.h */" > confdefs.h
2405
2406 # Predefined preprocessor variables.
2407
2408 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2409
2410 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2411
2412 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2413
2414 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2415
2416 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2417
2418 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2419
2420
2421 # Let the site file select an alternate cache file if it wants to.
2422 # Prefer an explicitly selected file to automatically selected ones.
2423 if test -n "$CONFIG_SITE"; then
2424 ac_site_files="$CONFIG_SITE"
2425 elif test "x$prefix" != xNONE; then
2426 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2427 else
2428 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2429 fi
2430
2431 for ac_site_file in $ac_site_files
2432 do
2433 case $ac_site_file in #(
2434 */*) :
2435 ;; #(
2436 *) :
2437 ac_site_file=./$ac_site_file ;;
2438 esac
2439 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2441 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2442 sed 's/^/| /' "$ac_site_file" >&5
2443 . "$ac_site_file" \
2444 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2445 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2446 as_fn_error $? "failed to load site script $ac_site_file
2447 See 'config.log' for more details" "$LINENO" 5; }
2448 fi
2449 done
2450
2451 if test -r "$cache_file"; then
2452 # Some versions of bash will fail to source /dev/null (special files
2453 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2454 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2456 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2457 case $cache_file in
2458 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2459 *) . "./$cache_file";;
2460 esac
2461 fi
2462 else
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2464 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2465 >$cache_file
2466 fi
2467
2468 # Test code for whether the C compiler supports C89 (global declarations)
2469 ac_c_conftest_c89_globals='
2470 /* Does the compiler advertise C89 conformance?
2471 Do not test the value of __STDC__, because some compilers set it to 0
2472 while being otherwise adequately conformant. */
2473 #if !defined __STDC__
2474 # error "Compiler does not advertise C89 conformance"
2475 #endif
2476
2477 #include <stddef.h>
2478 #include <stdarg.h>
2479 struct stat;
2480 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2481 struct buf { int x; };
2482 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2483 static char *e (char **p, int i)
2484 {
2485 return p[i];
2486 }
2487 static char *f (char * (*g) (char **, int), char **p, ...)
2488 {
2489 char *s;
2490 va_list v;
2491 va_start (v,p);
2492 s = g (p, va_arg (v,int));
2493 va_end (v);
2494 return s;
2495 }
2496
2497 /* C89 style stringification. */
2498 #define noexpand_stringify(a) #a
2499 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2500
2501 /* C89 style token pasting. Exercises some of the corner cases that
2502 e.g. old MSVC gets wrong, but not very hard. */
2503 #define noexpand_concat(a,b) a##b
2504 #define expand_concat(a,b) noexpand_concat(a,b)
2505 extern int vA;
2506 extern int vbee;
2507 #define aye A
2508 #define bee B
2509 int *pvA = &expand_concat(v,aye);
2510 int *pvbee = &noexpand_concat(v,bee);
2511
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not \xHH hex character constants.
2514 These do not provoke an error unfortunately, instead are silently treated
2515 as an "x". The following induces an error, until -std is added to get
2516 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2517 array size at least. It is necessary to write \x00 == 0 to get something
2518 that is true only with -std. */
2519 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2520
2521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2522 inside strings and character constants. */
2523 #define FOO(x) '\''x'\''
2524 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2525
2526 int test (int i, double x);
2527 struct s1 {int (*f) (int a);};
2528 struct s2 {int (*f) (double a);};
2529 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2530 int, int);'
2531
2532 # Test code for whether the C compiler supports C89 (body of main).
2533 ac_c_conftest_c89_main='
2534 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2535 '
2536
2537 # Test code for whether the C compiler supports C99 (global declarations)
2538 ac_c_conftest_c99_globals='
2539 /* Does the compiler advertise C99 conformance? */
2540 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2541 # error "Compiler does not advertise C99 conformance"
2542 #endif
2543
2544 // See if C++-style comments work.
2545
2546 #include <stdbool.h>
2547 extern int puts (const char *);
2548 extern int printf (const char *, ...);
2549 extern int dprintf (int, const char *, ...);
2550 extern void *malloc (size_t);
2551 extern void free (void *);
2552
2553 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2554 // dprintf is used instead of fprintf to avoid needing to declare
2555 // FILE and stderr.
2556 #define debug(...) dprintf (2, __VA_ARGS__)
2557 #define showlist(...) puts (#__VA_ARGS__)
2558 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2559 static void
2560 test_varargs_macros (void)
2561 {
2562 int x = 1234;
2563 int y = 5678;
2564 debug ("Flag");
2565 debug ("X = %d\n", x);
2566 showlist (The first, second, and third items.);
2567 report (x>y, "x is %d but y is %d", x, y);
2568 }
2569
2570 // Check long long types.
2571 #define BIG64 18446744073709551615ull
2572 #define BIG32 4294967295ul
2573 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2574 #if !BIG_OK
2575 #error "your preprocessor is broken"
2576 #endif
2577 #if BIG_OK
2578 #else
2579 #error "your preprocessor is broken"
2580 #endif
2581 static long long int bignum = -9223372036854775807LL;
2582 static unsigned long long int ubignum = BIG64;
2583
2584 struct incomplete_array
2585 {
2586 int datasize;
2587 double data[];
2588 };
2589
2590 struct named_init {
2591 int number;
2592 const wchar_t *name;
2593 double average;
2594 };
2595
2596 typedef const char *ccp;
2597
2598 static inline int
2599 test_restrict (ccp restrict text)
2600 {
2601 // Iterate through items via the restricted pointer.
2602 // Also check for declarations in for loops.
2603 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2604 continue;
2605 return 0;
2606 }
2607
2608 // Check varargs and va_copy.
2609 static bool
2610 test_varargs (const char *format, ...)
2611 {
2612 va_list args;
2613 va_start (args, format);
2614 va_list args_copy;
2615 va_copy (args_copy, args);
2616
2617 const char *str = "";
2618 int number = 0;
2619 float fnumber = 0;
2620
2621 while (*format)
2622 {
2623 switch (*format++)
2624 {
2625 case '\''s'\'': // string
2626 str = va_arg (args_copy, const char *);
2627 break;
2628 case '\''d'\'': // int
2629 number = va_arg (args_copy, int);
2630 break;
2631 case '\''f'\'': // float
2632 fnumber = va_arg (args_copy, double);
2633 break;
2634 default:
2635 break;
2636 }
2637 }
2638 va_end (args_copy);
2639 va_end (args);
2640
2641 return *str && number && fnumber;
2642 }
2643 '
2644
2645 # Test code for whether the C compiler supports C99 (body of main).
2646 ac_c_conftest_c99_main='
2647 // Check bool.
2648 _Bool success = false;
2649 success |= (argc != 0);
2650
2651 // Check restrict.
2652 if (test_restrict ("String literal") == 0)
2653 success = true;
2654 char *restrict newvar = "Another string";
2655
2656 // Check varargs.
2657 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2658 test_varargs_macros ();
2659
2660 // Check flexible array members.
2661 struct incomplete_array *ia =
2662 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2663 ia->datasize = 10;
2664 for (int i = 0; i < ia->datasize; ++i)
2665 ia->data[i] = i * 1.234;
2666 // Work around memory leak warnings.
2667 free (ia);
2668
2669 // Check named initializers.
2670 struct named_init ni = {
2671 .number = 34,
2672 .name = L"Test wide string",
2673 .average = 543.34343,
2674 };
2675
2676 ni.number = 58;
2677
2678 int dynamic_array[ni.number];
2679 dynamic_array[0] = argv[0][0];
2680 dynamic_array[ni.number - 1] = 543;
2681
2682 // work around unused variable warnings
2683 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2684 || dynamic_array[ni.number - 1] != 543);
2685 '
2686
2687 # Test code for whether the C compiler supports C11 (global declarations)
2688 ac_c_conftest_c11_globals='
2689 /* Does the compiler advertise C11 conformance? */
2690 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2691 # error "Compiler does not advertise C11 conformance"
2692 #endif
2693
2694 // Check _Alignas.
2695 char _Alignas (double) aligned_as_double;
2696 char _Alignas (0) no_special_alignment;
2697 extern char aligned_as_int;
2698 char _Alignas (0) _Alignas (int) aligned_as_int;
2699
2700 // Check _Alignof.
2701 enum
2702 {
2703 int_alignment = _Alignof (int),
2704 int_array_alignment = _Alignof (int[100]),
2705 char_alignment = _Alignof (char)
2706 };
2707 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2708
2709 // Check _Noreturn.
2710 int _Noreturn does_not_return (void) { for (;;) continue; }
2711
2712 // Check _Static_assert.
2713 struct test_static_assert
2714 {
2715 int x;
2716 _Static_assert (sizeof (int) <= sizeof (long int),
2717 "_Static_assert does not work in struct");
2718 long int y;
2719 };
2720
2721 // Check UTF-8 literals.
2722 #define u8 syntax error!
2723 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2724
2725 // Check duplicate typedefs.
2726 typedef long *long_ptr;
2727 typedef long int *long_ptr;
2728 typedef long_ptr long_ptr;
2729
2730 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2731 struct anonymous
2732 {
2733 union {
2734 struct { int i; int j; };
2735 struct { int k; long int l; } w;
2736 };
2737 int m;
2738 } v1;
2739 '
2740
2741 # Test code for whether the C compiler supports C11 (body of main).
2742 ac_c_conftest_c11_main='
2743 _Static_assert ((offsetof (struct anonymous, i)
2744 == offsetof (struct anonymous, w.k)),
2745 "Anonymous union alignment botch");
2746 v1.i = 2;
2747 v1.w.k = 5;
2748 ok |= v1.i != 5;
2749 '
2750
2751 # Test code for whether the C compiler supports C11 (complete).
2752 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2753 ${ac_c_conftest_c99_globals}
2754 ${ac_c_conftest_c11_globals}
2755
2756 int
2757 main (int argc, char **argv)
2758 {
2759 int ok = 0;
2760 ${ac_c_conftest_c89_main}
2761 ${ac_c_conftest_c99_main}
2762 ${ac_c_conftest_c11_main}
2763 return ok;
2764 }
2765 "
2766
2767 # Test code for whether the C compiler supports C99 (complete).
2768 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2769 ${ac_c_conftest_c99_globals}
2770
2771 int
2772 main (int argc, char **argv)
2773 {
2774 int ok = 0;
2775 ${ac_c_conftest_c89_main}
2776 ${ac_c_conftest_c99_main}
2777 return ok;
2778 }
2779 "
2780
2781 # Test code for whether the C compiler supports C89 (complete).
2782 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2783
2784 int
2785 main (int argc, char **argv)
2786 {
2787 int ok = 0;
2788 ${ac_c_conftest_c89_main}
2789 return ok;
2790 }
2791 "
2792
2793 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2794 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2795 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2796 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2797 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2798 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2799 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2800 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2801 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2802
2803 # Auxiliary files required by this configure script.
2804 ac_aux_files="compile missing install-sh config.guess config.sub"
2805
2806 # Locations in which to look for auxiliary files.
2807 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2808
2809 # Search for a directory containing all of the required auxiliary files,
2810 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2811 # If we don't find one directory that contains all the files we need,
2812 # we report the set of missing files from the *first* directory in
2813 # $ac_aux_dir_candidates and give up.
2814 ac_missing_aux_files=""
2815 ac_first_candidate=:
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 as_found=false
2819 for as_dir in $ac_aux_dir_candidates
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 as_found=:
2828
2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2830 ac_aux_dir_found=yes
2831 ac_install_sh=
2832 for ac_aux in $ac_aux_files
2833 do
2834 # As a special case, if "install-sh" is required, that requirement
2835 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2836 # and $ac_install_sh is set appropriately for whichever one is found.
2837 if test x"$ac_aux" = x"install-sh"
2838 then
2839 if test -f "${as_dir}install-sh"; then
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2841 ac_install_sh="${as_dir}install-sh -c"
2842 elif test -f "${as_dir}install.sh"; then
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2844 ac_install_sh="${as_dir}install.sh -c"
2845 elif test -f "${as_dir}shtool"; then
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2847 ac_install_sh="${as_dir}shtool install -c"
2848 else
2849 ac_aux_dir_found=no
2850 if $ac_first_candidate; then
2851 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2852 else
2853 break
2854 fi
2855 fi
2856 else
2857 if test -f "${as_dir}${ac_aux}"; then
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2859 else
2860 ac_aux_dir_found=no
2861 if $ac_first_candidate; then
2862 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2863 else
2864 break
2865 fi
2866 fi
2867 fi
2868 done
2869 if test "$ac_aux_dir_found" = yes; then
2870 ac_aux_dir="$as_dir"
2871 break
2872 fi
2873 ac_first_candidate=false
2874
2875 as_found=false
2876 done
2877 IFS=$as_save_IFS
2878 if $as_found
2879 then :
2880
2881 else case e in #(
2882 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2883 esac
2884 fi
2885
2886
2887 # These three variables are undocumented and unsupported,
2888 # and are intended to be withdrawn in a future Autoconf release.
2889 # They can cause serious problems if a builder's source tree is in a directory
2890 # whose full name contains unusual characters.
2891 if test -f "${ac_aux_dir}config.guess"; then
2892 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2893 fi
2894 if test -f "${ac_aux_dir}config.sub"; then
2895 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2896 fi
2897 if test -f "$ac_aux_dir/configure"; then
2898 ac_configure="$SHELL ${ac_aux_dir}configure"
2899 fi
2900
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2910 set,)
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2912 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,set)
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2916 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2918 ,);;
2919 *)
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x $ac_old_val`
2923 ac_new_val_w=`echo x $ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2926 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2927 ac_cache_corrupted=:
2928 else
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2930 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2932 fi
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2934 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2936 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2937 fi;;
2938 esac
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2941 case $ac_new_val in
2942 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2944 esac
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948 esac
2949 fi
2950 done
2951 if $ac_cache_corrupted; then
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2953 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2957 and start over" "$LINENO" 5
2958 fi
2959 ## -------------------- ##
2960 ## Main body of script. ##
2961 ## -------------------- ##
2962
2963 ac_ext=c
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968
2969
2970
2971
2972
2973 # Make sure we can run config.sub.
2974 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2975 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2976
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2978 printf %s "checking build system type... " >&6; }
2979 if test ${ac_cv_build+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else case e in #(
2983 e) ac_build_alias=$build_alias
2984 test "x$ac_build_alias" = x &&
2985 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2986 test "x$ac_build_alias" = x &&
2987 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2988 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2989 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2990 ;;
2991 esac
2992 fi
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2994 printf "%s\n" "$ac_cv_build" >&6; }
2995 case $ac_cv_build in
2996 *-*-*) ;;
2997 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2998 esac
2999 build=$ac_cv_build
3000 ac_save_IFS=$IFS; IFS='-'
3001 set x $ac_cv_build
3002 shift
3003 build_cpu=$1
3004 build_vendor=$2
3005 shift; shift
3006 # Remember, the first character of IFS is used to create $*,
3007 # except with old shells:
3008 build_os=$*
3009 IFS=$ac_save_IFS
3010 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3011
3012
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3014 printf %s "checking host system type... " >&6; }
3015 if test ${ac_cv_host+y}
3016 then :
3017 printf %s "(cached) " >&6
3018 else case e in #(
3019 e) if test "x$host_alias" = x; then
3020 ac_cv_host=$ac_cv_build
3021 else
3022 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3023 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3024 fi
3025 ;;
3026 esac
3027 fi
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3029 printf "%s\n" "$ac_cv_host" >&6; }
3030 case $ac_cv_host in
3031 *-*-*) ;;
3032 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3033 esac
3034 host=$ac_cv_host
3035 ac_save_IFS=$IFS; IFS='-'
3036 set x $ac_cv_host
3037 shift
3038 host_cpu=$1
3039 host_vendor=$2
3040 shift; shift
3041 # Remember, the first character of IFS is used to create $*,
3042 # except with old shells:
3043 host_os=$*
3044 IFS=$ac_save_IFS
3045 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3046
3047
3048
3049 am__api_version='1.17'
3050
3051
3052 # Find a good install program. We prefer a C program (faster),
3053 # so one script is as good as another. But avoid the broken or
3054 # incompatible versions:
3055 # SysV /etc/install, /usr/sbin/install
3056 # SunOS /usr/etc/install
3057 # IRIX /sbin/install
3058 # AIX /bin/install
3059 # AmigaOS /C/install, which installs bootblocks on floppy discs
3060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3063 # OS/2's system install, which has a completely different semantic
3064 # ./install, which can be erroneously created by make from ./install.sh.
3065 # Reject install programs that cannot install multiple files.
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3067 printf %s "checking for a BSD-compatible install... " >&6; }
3068 if test -z "$INSTALL"; then
3069 if test ${ac_cv_path_install+y}
3070 then :
3071 printf %s "(cached) " >&6
3072 else case e in #(
3073 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 case $as_dir in #(((
3078 '') as_dir=./ ;;
3079 */) ;;
3080 *) as_dir=$as_dir/ ;;
3081 esac
3082 # Account for fact that we put trailing slashes in our PATH walk.
3083 case $as_dir in #((
3084 ./ | /[cC]/* | \
3085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3087 /usr/ucb/* ) ;;
3088 *)
3089 # OSF1 and SCO ODT 3.0 have their own names for install.
3090 # Don't use installbsd from OSF since it installs stuff as root
3091 # by default.
3092 for ac_prog in ginstall scoinst install; do
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3095 if test $ac_prog = install &&
3096 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097 # AIX install. It has an incompatible calling convention.
3098 :
3099 elif test $ac_prog = install &&
3100 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3101 # program-specific install script used by HP pwplus--don't use.
3102 :
3103 else
3104 rm -rf conftest.one conftest.two conftest.dir
3105 echo one > conftest.one
3106 echo two > conftest.two
3107 mkdir conftest.dir
3108 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3109 test -s conftest.one && test -s conftest.two &&
3110 test -s conftest.dir/conftest.one &&
3111 test -s conftest.dir/conftest.two
3112 then
3113 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3114 break 3
3115 fi
3116 fi
3117 fi
3118 done
3119 done
3120 ;;
3121 esac
3122
3123 done
3124 IFS=$as_save_IFS
3125
3126 rm -rf conftest.one conftest.two conftest.dir
3127 ;;
3128 esac
3129 fi
3130 if test ${ac_cv_path_install+y}; then
3131 INSTALL=$ac_cv_path_install
3132 else
3133 # As a last resort, use the slow shell script. Don't cache a
3134 # value for INSTALL within a source directory, because that will
3135 # break other packages using the cache if that directory is
3136 # removed, or if the value is a relative name.
3137 INSTALL=$ac_install_sh
3138 fi
3139 fi
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3141 printf "%s\n" "$INSTALL" >&6; }
3142
3143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3144 # It thinks the first close brace ends the variable substitution.
3145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3146
3147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3148
3149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3150
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3152 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3153 if test ${am_cv_sleep_fractional_seconds+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else case e in #(
3157 e) if sleep 0.001 2>/dev/null
3158 then :
3159 am_cv_sleep_fractional_seconds=yes
3160 else case e in #(
3161 e) am_cv_sleep_fractional_seconds=no ;;
3162 esac
3163 fi
3164 ;;
3165 esac
3166 fi
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3168 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3169
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3171 printf %s "checking filesystem timestamp resolution... " >&6; }
3172 if test ${am_cv_filesystem_timestamp_resolution+y}
3173 then :
3174 printf %s "(cached) " >&6
3175 else case e in #(
3176 e) # Default to the worst case.
3177 am_cv_filesystem_timestamp_resolution=2
3178
3179 # Only try to go finer than 1 sec if sleep can do it.
3180 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3181 # - 1 sec is not much of a win compared to 2 sec, and
3182 # - it takes 2 seconds to perform the test whether 1 sec works.
3183 #
3184 # Instead, just use the default 2s on platforms that have 1s resolution,
3185 # accept the extra 1s delay when using $sleep in the Automake tests, in
3186 # exchange for not incurring the 2s delay for running the test for all
3187 # packages.
3188 #
3189 am_try_resolutions=
3190 if test "$am_cv_sleep_fractional_seconds" = yes; then
3191 # Even a millisecond often causes a bunch of false positives,
3192 # so just try a hundredth of a second. The time saved between .001 and
3193 # .01 is not terribly consequential.
3194 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3195 fi
3196
3197 # In order to catch current-generation FAT out, we must *modify* files
3198 # that already exist; the *creation* timestamp is finer. Use names
3199 # that make ls -t sort them differently when they have equal
3200 # timestamps than when they have distinct timestamps, keeping
3201 # in mind that ls -t prints the *newest* file first.
3202 rm -f conftest.ts?
3203 : > conftest.ts1
3204 : > conftest.ts2
3205 : > conftest.ts3
3206
3207 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3208 # clobber the current shell's arguments. (Outer-level square brackets
3209 # are removed by m4; they're present so that m4 does not expand
3210 # <dollar><star>; be careful, easy to get confused.)
3211 if (
3212 set X `ls -t conftest.ts[12]` &&
3213 {
3214 test "$*" != "X conftest.ts1 conftest.ts2" ||
3215 test "$*" != "X conftest.ts2 conftest.ts1";
3216 }
3217 ); then :; else
3218 # If neither matched, then we have a broken ls. This can happen
3219 # if, for instance, CONFIG_SHELL is bash and it inherits a
3220 # broken ls alias from the environment. This has actually
3221 # happened. Such a system could not be considered "sane".
3222 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3224 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3225 as_fn_error $? "ls -t produces unexpected output.
3226 Make sure there is not a broken ls alias in your environment.
3227 See 'config.log' for more details" "$LINENO" 5; }
3228 fi
3229
3230 for am_try_res in $am_try_resolutions; do
3231 # Any one fine-grained sleep might happen to cross the boundary
3232 # between two values of a coarser actual resolution, but if we do
3233 # two fine-grained sleeps in a row, at least one of them will fall
3234 # entirely within a coarse interval.
3235 echo alpha > conftest.ts1
3236 sleep $am_try_res
3237 echo beta > conftest.ts2
3238 sleep $am_try_res
3239 echo gamma > conftest.ts3
3240
3241 # We assume that 'ls -t' will make use of high-resolution
3242 # timestamps if the operating system supports them at all.
3243 if (set X `ls -t conftest.ts?` &&
3244 test "$2" = conftest.ts3 &&
3245 test "$3" = conftest.ts2 &&
3246 test "$4" = conftest.ts1); then
3247 #
3248 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3249 # because we don't need to test make.
3250 make_ok=true
3251 if test $am_try_res != 1; then
3252 # But if we've succeeded so far with a subsecond resolution, we
3253 # have one more thing to check: make. It can happen that
3254 # everything else supports the subsecond mtimes, but make doesn't;
3255 # notably on macOS, which ships make 3.81 from 2006 (the last one
3256 # released under GPLv2). https://bugs.gnu.org/68808
3257 #
3258 # We test $MAKE if it is defined in the environment, else "make".
3259 # It might get overridden later, but our hope is that in practice
3260 # it does not matter: it is the system "make" which is (by far)
3261 # the most likely to be broken, whereas if the user overrides it,
3262 # probably they did so with a better, or at least not worse, make.
3263 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3264 #
3265 # Create a Makefile (real tab character here):
3266 rm -f conftest.mk
3267 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3268 echo ' touch conftest.ts2' >>conftest.mk
3269 #
3270 # Now, running
3271 # touch conftest.ts1; touch conftest.ts2; make
3272 # should touch ts1 because ts2 is newer. This could happen by luck,
3273 # but most often, it will fail if make's support is insufficient. So
3274 # test for several consecutive successes.
3275 #
3276 # (We reuse conftest.ts[12] because we still want to modify existing
3277 # files, not create new ones, per above.)
3278 n=0
3279 make=${MAKE-make}
3280 until test $n -eq 3; do
3281 echo one > conftest.ts1
3282 sleep $am_try_res
3283 echo two > conftest.ts2 # ts2 should now be newer than ts1
3284 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3285 make_ok=false
3286 break # out of $n loop
3287 fi
3288 n=`expr $n + 1`
3289 done
3290 fi
3291 #
3292 if $make_ok; then
3293 # Everything we know to check worked out, so call this resolution good.
3294 am_cv_filesystem_timestamp_resolution=$am_try_res
3295 break # out of $am_try_res loop
3296 fi
3297 # Otherwise, we'll go on to check the next resolution.
3298 fi
3299 done
3300 rm -f conftest.ts?
3301 # (end _am_filesystem_timestamp_resolution)
3302 ;;
3303 esac
3304 fi
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3306 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3307
3308 # This check should not be cached, as it may vary across builds of
3309 # different projects.
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3311 printf %s "checking whether build environment is sane... " >&6; }
3312 # Reject unsafe characters in $srcdir or the absolute working directory
3313 # name. Accept space and tab only in the latter.
3314 am_lf='
3315 '
3316 case `pwd` in
3317 *[\\\"\#\$\&\'\`$am_lf]*)
3318 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3319 esac
3320 case $srcdir in
3321 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3322 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3323 esac
3324
3325 # Do 'set' in a subshell so we don't clobber the current shell's
3326 # arguments. Must try -L first in case configure is actually a
3327 # symlink; some systems play weird games with the mod time of symlinks
3328 # (eg FreeBSD returns the mod time of the symlink's containing
3329 # directory).
3330 am_build_env_is_sane=no
3331 am_has_slept=no
3332 rm -f conftest.file
3333 for am_try in 1 2; do
3334 echo "timestamp, slept: $am_has_slept" > conftest.file
3335 if (
3336 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3337 if test "$*" = "X"; then
3338 # -L didn't work.
3339 set X `ls -t "$srcdir/configure" conftest.file`
3340 fi
3341 test "$2" = conftest.file
3342 ); then
3343 am_build_env_is_sane=yes
3344 break
3345 fi
3346 # Just in case.
3347 sleep "$am_cv_filesystem_timestamp_resolution"
3348 am_has_slept=yes
3349 done
3350
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3352 printf "%s\n" "$am_build_env_is_sane" >&6; }
3353 if test "$am_build_env_is_sane" = no; then
3354 as_fn_error $? "newly created file is older than distributed files!
3355 Check your system clock" "$LINENO" 5
3356 fi
3357
3358 # If we didn't sleep, we still need to ensure time stamps of config.status and
3359 # generated files are strictly newer.
3360 am_sleep_pid=
3361 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3362 then :
3363
3364 else case e in #(
3365 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3366 am_sleep_pid=$!
3367 ;;
3368 esac
3369 fi
3370
3371 rm -f conftest.file
3372
3373 test "$program_prefix" != NONE &&
3374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE &&
3377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was 's,x,x', remove it if useless.
3380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3382
3383
3384 # Expand $ac_aux_dir to an absolute path.
3385 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3386
3387
3388 if test x"${MISSING+set}" != xset; then
3389 MISSING="\${SHELL} '$am_aux_dir/missing'"
3390 fi
3391 # Use eval to expand $SHELL
3392 if eval "$MISSING --is-lightweight"; then
3393 am_missing_run="$MISSING "
3394 else
3395 am_missing_run=
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3397 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3398 fi
3399
3400 if test x"${install_sh+set}" != xset; then
3401 case $am_aux_dir in
3402 *\ * | *\ *)
3403 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3404 *)
3405 install_sh="\${SHELL} $am_aux_dir/install-sh"
3406 esac
3407 fi
3408
3409 # Installed binaries are usually stripped using 'strip' when the user
3410 # run "make install-strip". However 'strip' might not be the right
3411 # tool to use in cross-compilation environments, therefore Automake
3412 # will honor the 'STRIP' environment variable to overrule this program.
3413 if test "$cross_compiling" != no; then
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}strip; ac_word=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s "checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_STRIP+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else case e in #(
3423 e) if test -n "$STRIP"; then
3424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 case $as_dir in #(((
3431 '') as_dir=./ ;;
3432 */) ;;
3433 *) as_dir=$as_dir/ ;;
3434 esac
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi ;;
3446 esac
3447 fi
3448 STRIP=$ac_cv_prog_STRIP
3449 if test -n "$STRIP"; then
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3451 printf "%s\n" "$STRIP" >&6; }
3452 else
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 printf "%s\n" "no" >&6; }
3455 fi
3456
3457
3458 fi
3459 if test -z "$ac_cv_prog_STRIP"; then
3460 ac_ct_STRIP=$STRIP
3461 # Extract the first word of "strip", so it can be a program name with args.
3462 set dummy strip; ac_word=$2
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 printf %s "checking for $ac_word... " >&6; }
3465 if test ${ac_cv_prog_ac_ct_STRIP+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else case e in #(
3469 e) if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_STRIP="strip"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi ;;
3492 esac
3493 fi
3494 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3495 if test -n "$ac_ct_STRIP"; then
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3497 printf "%s\n" "$ac_ct_STRIP" >&6; }
3498 else
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 printf "%s\n" "no" >&6; }
3501 fi
3502
3503 if test "x$ac_ct_STRIP" = x; then
3504 STRIP=":"
3505 else
3506 case $cross_compiling:$ac_tool_warned in
3507 yes:)
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3511 esac
3512 STRIP=$ac_ct_STRIP
3513 fi
3514 else
3515 STRIP="$ac_cv_prog_STRIP"
3516 fi
3517
3518 fi
3519 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3520
3521
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3523 printf %s "checking for a race-free mkdir -p... " >&6; }
3524 if test -z "$MKDIR_P"; then
3525 if test ${ac_cv_path_mkdir+y}
3526 then :
3527 printf %s "(cached) " >&6
3528 else case e in #(
3529 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3531 do
3532 IFS=$as_save_IFS
3533 case $as_dir in #(((
3534 '') as_dir=./ ;;
3535 */) ;;
3536 *) as_dir=$as_dir/ ;;
3537 esac
3538 for ac_prog in mkdir gmkdir; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3541 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3542 'mkdir ('*'coreutils) '* | \
3543 *'BusyBox '* | \
3544 'mkdir (fileutils) '4.1*)
3545 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3546 break 3;;
3547 esac
3548 done
3549 done
3550 done
3551 IFS=$as_save_IFS
3552 ;;
3553 esac
3554 fi
3555
3556 test -d ./--version && rmdir ./--version
3557 if test ${ac_cv_path_mkdir+y}; then
3558 MKDIR_P="$ac_cv_path_mkdir -p"
3559 else
3560 # As a last resort, use plain mkdir -p,
3561 # in the hope it doesn't have the bugs of ancient mkdir.
3562 MKDIR_P='mkdir -p'
3563 fi
3564 fi
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3566 printf "%s\n" "$MKDIR_P" >&6; }
3567
3568 for ac_prog in gawk mawk nawk awk
3569 do
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_AWK+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else case e in #(
3578 e) if test -n "$AWK"; then
3579 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_AWK="$ac_prog"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi ;;
3601 esac
3602 fi
3603 AWK=$ac_cv_prog_AWK
3604 if test -n "$AWK"; then
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3606 printf "%s\n" "$AWK" >&6; }
3607 else
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 printf "%s\n" "no" >&6; }
3610 fi
3611
3612
3613 test -n "$AWK" && break
3614 done
3615
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3617 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3618 set x ${MAKE-make}
3619 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3620 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3621 then :
3622 printf %s "(cached) " >&6
3623 else case e in #(
3624 e) cat >conftest.make <<\_ACEOF
3625 SHELL = /bin/sh
3626 all:
3627 @echo '@@@%%%=$(MAKE)=@@@%%%'
3628 _ACEOF
3629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3631 *@@@%%%=?*=@@@%%%*)
3632 eval ac_cv_prog_make_${ac_make}_set=yes;;
3633 *)
3634 eval ac_cv_prog_make_${ac_make}_set=no;;
3635 esac
3636 rm -f conftest.make ;;
3637 esac
3638 fi
3639 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 printf "%s\n" "yes" >&6; }
3642 SET_MAKE=
3643 else
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 printf "%s\n" "no" >&6; }
3646 SET_MAKE="MAKE=${MAKE-make}"
3647 fi
3648
3649 rm -rf .tst 2>/dev/null
3650 mkdir .tst 2>/dev/null
3651 if test -d .tst; then
3652 am__leading_dot=.
3653 else
3654 am__leading_dot=_
3655 fi
3656 rmdir .tst 2>/dev/null
3657
3658 AM_DEFAULT_VERBOSITY=1
3659 # Check whether --enable-silent-rules was given.
3660 if test ${enable_silent_rules+y}
3661 then :
3662 enableval=$enable_silent_rules;
3663 fi
3664
3665 am_make=${MAKE-make}
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3667 printf %s "checking whether $am_make supports nested variables... " >&6; }
3668 if test ${am_cv_make_support_nested_variables+y}
3669 then :
3670 printf %s "(cached) " >&6
3671 else case e in #(
3672 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3673 BAR0=false
3674 BAR1=true
3675 V=1
3676 am__doit:
3677 @$(TRUE)
3678 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3679 am_cv_make_support_nested_variables=yes
3680 else
3681 am_cv_make_support_nested_variables=no
3682 fi ;;
3683 esac
3684 fi
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3686 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3687 AM_BACKSLASH='\'
3688
3689 am__rm_f_notfound=
3690 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3691 then :
3692
3693 else case e in #(
3694 e) am__rm_f_notfound='""' ;;
3695 esac
3696 fi
3697
3698
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3700 printf %s "checking xargs -n works... " >&6; }
3701 if test ${am_cv_xargs_n_works+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3706 3"
3707 then :
3708 am_cv_xargs_n_works=yes
3709 else case e in #(
3710 e) am_cv_xargs_n_works=no ;;
3711 esac
3712 fi ;;
3713 esac
3714 fi
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3716 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3717 if test "$am_cv_xargs_n_works" = yes
3718 then :
3719 am__xargs_n='xargs -n'
3720 else case e in #(
3721 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3722 ;;
3723 esac
3724 fi
3725
3726 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3727 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3728 # is not polluted with repeated "-I."
3729 am__isrc=' -I$(srcdir)'
3730 # test to see if srcdir already configured
3731 if test -f $srcdir/config.status; then
3732 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3733 fi
3734 fi
3735
3736 # test whether we have cygpath
3737 if test -z "$CYGPATH_W"; then
3738 if (cygpath --version) >/dev/null 2>/dev/null; then
3739 CYGPATH_W='cygpath -w'
3740 else
3741 CYGPATH_W=echo
3742 fi
3743 fi
3744
3745
3746 # Define the identity of the package.
3747 PACKAGE='memcached'
3748 VERSION='1.6.45'
3749
3750
3751 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3752
3753
3754 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3755
3756 # Some tools Automake needs.
3757
3758 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3759
3760
3761 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3762
3763
3764 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3765
3766
3767 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3768
3769
3770 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3771
3772 # For better backward compatibility. To be removed once Automake 1.9.x
3773 # dies out for good. For more background, see:
3774 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3775 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3776 mkdir_p='$(MKDIR_P)'
3777
3778 # We need awk for the "check" target (and possibly the TAP driver). The
3779 # system "awk" is bad on some platforms.
3780 # Always define AMTAR for backward compatibility. Yes, it's still used
3781 # in the wild :-( We should find a proper way to deprecate it ...
3782 AMTAR='$${TAR-tar}'
3783
3784
3785 # We'll loop over all known methods to create a tar archive until one works.
3786 _am_tools='gnutar pax cpio none'
3787
3788 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3789
3790
3791
3792
3793
3794 # Variables for tags utilities; see am/tags.am
3795 if test -z "$CTAGS"; then
3796 CTAGS=ctags
3797 fi
3798
3799 if test -z "$ETAGS"; then
3800 ETAGS=etags
3801 fi
3802
3803 if test -z "$CSCOPE"; then
3804 CSCOPE=cscope
3805 fi
3806
3807
3808
3809
3810
3811
3812
3813 ac_config_headers="$ac_config_headers config.h"
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825 ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 if test -n "$ac_tool_prefix"; then
3831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 printf %s "checking for $ac_word... " >&6; }
3835 if test ${ac_cv_prog_CC+y}
3836 then :
3837 printf %s "(cached) " >&6
3838 else case e in #(
3839 e) if test -n "$CC"; then
3840 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 case $as_dir in #(((
3847 '') as_dir=./ ;;
3848 */) ;;
3849 *) as_dir=$as_dir/ ;;
3850 esac
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi ;;
3862 esac
3863 fi
3864 CC=$ac_cv_prog_CC
3865 if test -n "$CC"; then
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3867 printf "%s\n" "$CC" >&6; }
3868 else
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 printf "%s\n" "no" >&6; }
3871 fi
3872
3873
3874 fi
3875 if test -z "$ac_cv_prog_CC"; then
3876 ac_ct_CC=$CC
3877 # Extract the first word of "gcc", so it can be a program name with args.
3878 set dummy gcc; ac_word=$2
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 printf %s "checking for $ac_word... " >&6; }
3881 if test ${ac_cv_prog_ac_ct_CC+y}
3882 then :
3883 printf %s "(cached) " >&6
3884 else case e in #(
3885 e) if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 case $as_dir in #(((
3893 '') as_dir=./ ;;
3894 */) ;;
3895 *) as_dir=$as_dir/ ;;
3896 esac
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_CC="gcc"
3900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 fi ;;
3908 esac
3909 fi
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913 printf "%s\n" "$ac_ct_CC" >&6; }
3914 else
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 printf "%s\n" "no" >&6; }
3917 fi
3918
3919 if test "x$ac_ct_CC" = x; then
3920 CC=""
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 CC=$ac_ct_CC
3929 fi
3930 else
3931 CC="$ac_cv_prog_CC"
3932 fi
3933
3934 if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}cc; ac_word=$2
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 printf %s "checking for $ac_word... " >&6; }
3940 if test ${ac_cv_prog_CC+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else case e in #(
3944 e) if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 case $as_dir in #(((
3952 '') as_dir=./ ;;
3953 */) ;;
3954 *) as_dir=$as_dir/ ;;
3955 esac
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_CC="${ac_tool_prefix}cc"
3959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi ;;
3967 esac
3968 fi
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 printf "%s\n" "$CC" >&6; }
3973 else
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 printf "%s\n" "no" >&6; }
3976 fi
3977
3978
3979 fi
3980 fi
3981 if test -z "$CC"; then
3982 # Extract the first word of "cc", so it can be a program name with args.
3983 set dummy cc; ac_word=$2
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 printf %s "checking for $ac_word... " >&6; }
3986 if test ${ac_cv_prog_CC+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else case e in #(
3990 e) if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 else
3993 ac_prog_rejected=no
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 case $as_dir in #(((
3999 '') as_dir=./ ;;
4000 */) ;;
4001 *) as_dir=$as_dir/ ;;
4002 esac
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4005 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006 ac_prog_rejected=yes
4007 continue
4008 fi
4009 ac_cv_prog_CC="cc"
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 if test $ac_prog_rejected = yes; then
4018 # We found a bogon in the path, so make sure we never use it.
4019 set dummy $ac_cv_prog_CC
4020 shift
4021 if test $# != 0; then
4022 # We chose a different compiler from the bogus one.
4023 # However, it has the same basename, so the bogon will be chosen
4024 # first if we set CC to just the basename; use the full file name.
4025 shift
4026 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4027 fi
4028 fi
4029 fi ;;
4030 esac
4031 fi
4032 CC=$ac_cv_prog_CC
4033 if test -n "$CC"; then
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035 printf "%s\n" "$CC" >&6; }
4036 else
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 printf "%s\n" "no" >&6; }
4039 fi
4040
4041
4042 fi
4043 if test -z "$CC"; then
4044 if test -n "$ac_tool_prefix"; then
4045 for ac_prog in cl.exe
4046 do
4047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 printf %s "checking for $ac_word... " >&6; }
4051 if test ${ac_cv_prog_CC+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else case e in #(
4055 e) if test -n "$CC"; then
4056 ac_cv_prog_CC="$CC" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 case $as_dir in #(((
4063 '') as_dir=./ ;;
4064 */) ;;
4065 *) as_dir=$as_dir/ ;;
4066 esac
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 fi ;;
4078 esac
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 printf "%s\n" "$CC" >&6; }
4084 else
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 printf "%s\n" "no" >&6; }
4087 fi
4088
4089
4090 test -n "$CC" && break
4091 done
4092 fi
4093 if test -z "$CC"; then
4094 ac_ct_CC=$CC
4095 for ac_prog in cl.exe
4096 do
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 printf %s "checking for $ac_word... " >&6; }
4101 if test ${ac_cv_prog_ac_ct_CC+y}
4102 then :
4103 printf %s "(cached) " >&6
4104 else case e in #(
4105 e) if test -n "$ac_ct_CC"; then
4106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 case $as_dir in #(((
4113 '') as_dir=./ ;;
4114 */) ;;
4115 *) as_dir=$as_dir/ ;;
4116 esac
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_ac_ct_CC="$ac_prog"
4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123 done
4124 done
4125 IFS=$as_save_IFS
4126
4127 fi ;;
4128 esac
4129 fi
4130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4131 if test -n "$ac_ct_CC"; then
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4133 printf "%s\n" "$ac_ct_CC" >&6; }
4134 else
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 printf "%s\n" "no" >&6; }
4137 fi
4138
4139
4140 test -n "$ac_ct_CC" && break
4141 done
4142
4143 if test "x$ac_ct_CC" = x; then
4144 CC=""
4145 else
4146 case $cross_compiling:$ac_tool_warned in
4147 yes:)
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4150 ac_tool_warned=yes ;;
4151 esac
4152 CC=$ac_ct_CC
4153 fi
4154 fi
4155
4156 fi
4157 if test -z "$CC"; then
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}clang; ac_word=$2
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 printf %s "checking for $ac_word... " >&6; }
4163 if test ${ac_cv_prog_CC+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else case e in #(
4167 e) if test -n "$CC"; then
4168 ac_cv_prog_CC="$CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173 IFS=$as_save_IFS
4174 case $as_dir in #(((
4175 '') as_dir=./ ;;
4176 */) ;;
4177 *) as_dir=$as_dir/ ;;
4178 esac
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_CC="${ac_tool_prefix}clang"
4182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 fi ;;
4190 esac
4191 fi
4192 CC=$ac_cv_prog_CC
4193 if test -n "$CC"; then
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195 printf "%s\n" "$CC" >&6; }
4196 else
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 printf "%s\n" "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_prog_CC"; then
4204 ac_ct_CC=$CC
4205 # Extract the first word of "clang", so it can be a program name with args.
4206 set dummy clang; ac_word=$2
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 printf %s "checking for $ac_word... " >&6; }
4209 if test ${ac_cv_prog_ac_ct_CC+y}
4210 then :
4211 printf %s "(cached) " >&6
4212 else case e in #(
4213 e) if test -n "$ac_ct_CC"; then
4214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219 IFS=$as_save_IFS
4220 case $as_dir in #(((
4221 '') as_dir=./ ;;
4222 */) ;;
4223 *) as_dir=$as_dir/ ;;
4224 esac
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_CC="clang"
4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231 done
4232 done
4233 IFS=$as_save_IFS
4234
4235 fi ;;
4236 esac
4237 fi
4238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239 if test -n "$ac_ct_CC"; then
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241 printf "%s\n" "$ac_ct_CC" >&6; }
4242 else
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 printf "%s\n" "no" >&6; }
4245 fi
4246
4247 if test "x$ac_ct_CC" = x; then
4248 CC=""
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 CC=$ac_ct_CC
4257 fi
4258 else
4259 CC="$ac_cv_prog_CC"
4260 fi
4261
4262 fi
4263
4264
4265 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4266 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4267 as_fn_error $? "no acceptable C compiler found in \$PATH
4268 See 'config.log' for more details" "$LINENO" 5; }
4269
4270 # Provide some information about the compiler.
4271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4272 set X $ac_compile
4273 ac_compiler=$2
4274 for ac_option in --version -v -V -qversion -version; do
4275 { { ac_try="$ac_compiler $ac_option >&5"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 printf "%s\n" "$ac_try_echo"; } >&5
4282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4283 ac_status=$?
4284 if test -s conftest.err; then
4285 sed '10a\
4286 ... rest of stderr output deleted ...
4287 10q' conftest.err >conftest.er1
4288 cat conftest.er1 >&5
4289 fi
4290 rm -f conftest.er1 conftest.err
4291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; }
4293 done
4294
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main (void)
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 ac_clean_files_save=$ac_clean_files
4307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4308 # Try to create an executable without -o first, disregard a.out.
4309 # It will help us diagnose broken compilers, and finding out an intuition
4310 # of exeext.
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4312 printf %s "checking whether the C compiler works... " >&6; }
4313 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4314
4315 # The possible output files:
4316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4317
4318 ac_rmfiles=
4319 for ac_file in $ac_files
4320 do
4321 case $ac_file in
4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4323 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4324 esac
4325 done
4326 rm -f $ac_rmfiles
4327
4328 if { { ac_try="$ac_link_default"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 printf "%s\n" "$ac_try_echo"; } >&5
4335 (eval "$ac_link_default") 2>&5
4336 ac_status=$?
4337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; }
4339 then :
4340 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4341 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4342 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4343 # so that the user can short-circuit this test for compilers unknown to
4344 # Autoconf.
4345 for ac_file in $ac_files ''
4346 do
4347 test -f "$ac_file" || continue
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4350 ;;
4351 [ab].out )
4352 # We found the default executable, but exeext='' is most
4353 # certainly right.
4354 break;;
4355 *.* )
4356 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4357 then :; else
4358 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4359 fi
4360 # We set ac_cv_exeext here because the later test for it is not
4361 # safe: cross compilers may not add the suffix if given an '-o'
4362 # argument, so we may need to know it at that point already.
4363 # Even if this section looks crufty: it has the advantage of
4364 # actually working.
4365 break;;
4366 * )
4367 break;;
4368 esac
4369 done
4370 test "$ac_cv_exeext" = no && ac_cv_exeext=
4371
4372 else case e in #(
4373 e) ac_file='' ;;
4374 esac
4375 fi
4376 if test -z "$ac_file"
4377 then :
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 printf "%s\n" "no" >&6; }
4380 printf "%s\n" "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4384 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4385 as_fn_error 77 "C compiler cannot create executables
4386 See 'config.log' for more details" "$LINENO" 5; }
4387 else case e in #(
4388 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389 printf "%s\n" "yes" >&6; } ;;
4390 esac
4391 fi
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4393 printf %s "checking for C compiler default output file name... " >&6; }
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4395 printf "%s\n" "$ac_file" >&6; }
4396 ac_exeext=$ac_cv_exeext
4397
4398 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4399 ac_clean_files=$ac_clean_files_save
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4401 printf %s "checking for suffix of executables... " >&6; }
4402 if { { ac_try="$ac_link"
4403 case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 printf "%s\n" "$ac_try_echo"; } >&5
4409 (eval "$ac_link") 2>&5
4410 ac_status=$?
4411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }
4413 then :
4414 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4415 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4416 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4417 # 'rm'.
4418 for ac_file in conftest.exe conftest conftest.*; do
4419 test -f "$ac_file" || continue
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423 break;;
4424 * ) break;;
4425 esac
4426 done
4427 else case e in #(
4428 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4429 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4430 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4431 See 'config.log' for more details" "$LINENO" 5; } ;;
4432 esac
4433 fi
4434 rm -f conftest conftest$ac_cv_exeext
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4436 printf "%s\n" "$ac_cv_exeext" >&6; }
4437
4438 rm -f conftest.$ac_ext
4439 EXEEXT=$ac_cv_exeext
4440 ac_exeext=$EXEEXT
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <stdio.h>
4444 int
4445 main (void)
4446 {
4447 FILE *f = fopen ("conftest.out", "w");
4448 if (!f)
4449 return 1;
4450 return ferror (f) || fclose (f) != 0;
4451
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 ac_clean_files="$ac_clean_files conftest.out"
4457 # Check that the compiler produces executables we can run. If not, either
4458 # the compiler is broken, or we cross compile.
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4460 printf %s "checking whether we are cross compiling... " >&6; }
4461 if test "$cross_compiling" != yes; then
4462 { { ac_try="$ac_link"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 printf "%s\n" "$ac_try_echo"; } >&5
4469 (eval "$ac_link") 2>&5
4470 ac_status=$?
4471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472 test $ac_status = 0; }
4473 if { ac_try='./conftest$ac_cv_exeext'
4474 { { case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 printf "%s\n" "$ac_try_echo"; } >&5
4480 (eval "$ac_try") 2>&5
4481 ac_status=$?
4482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; }; }; then
4484 cross_compiling=no
4485 else
4486 if test "$cross_compiling" = maybe; then
4487 cross_compiling=yes
4488 else
4489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4490 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4491 as_fn_error 77 "cannot run C compiled programs.
4492 If you meant to cross compile, use '--host'.
4493 See 'config.log' for more details" "$LINENO" 5; }
4494 fi
4495 fi
4496 fi
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4498 printf "%s\n" "$cross_compiling" >&6; }
4499
4500 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4501 conftest.o conftest.obj conftest.out
4502 ac_clean_files=$ac_clean_files_save
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4504 printf %s "checking for suffix of object files... " >&6; }
4505 if test ${ac_cv_objext+y}
4506 then :
4507 printf %s "(cached) " >&6
4508 else case e in #(
4509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511
4512 int
4513 main (void)
4514 {
4515
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 rm -f conftest.o conftest.obj
4521 if { { ac_try="$ac_compile"
4522 case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525 esac
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 printf "%s\n" "$ac_try_echo"; } >&5
4528 (eval "$ac_compile") 2>&5
4529 ac_status=$?
4530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }
4532 then :
4533 for ac_file in conftest.o conftest.obj conftest.*; do
4534 test -f "$ac_file" || continue;
4535 case $ac_file in
4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4538 break;;
4539 esac
4540 done
4541 else case e in #(
4542 e) printf "%s\n" "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4546 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4547 as_fn_error $? "cannot compute suffix of object files: cannot compile
4548 See 'config.log' for more details" "$LINENO" 5; } ;;
4549 esac
4550 fi
4551 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4552 esac
4553 fi
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4555 printf "%s\n" "$ac_cv_objext" >&6; }
4556 OBJEXT=$ac_cv_objext
4557 ac_objext=$OBJEXT
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4559 printf %s "checking whether the compiler supports GNU C... " >&6; }
4560 if test ${ac_cv_c_compiler_gnu+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else case e in #(
4564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main (void)
4569 {
4570 #ifndef __GNUC__
4571 choke me
4572 #endif
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"
4579 then :
4580 ac_compiler_gnu=yes
4581 else case e in #(
4582 e) ac_compiler_gnu=no ;;
4583 esac
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4587 ;;
4588 esac
4589 fi
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4591 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594 if test $ac_compiler_gnu = yes; then
4595 GCC=yes
4596 else
4597 GCC=
4598 fi
4599 ac_test_CFLAGS=${CFLAGS+y}
4600 ac_save_CFLAGS=$CFLAGS
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602 printf %s "checking whether $CC accepts -g... " >&6; }
4603 if test ${ac_cv_prog_cc_g+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else case e in #(
4607 e) ac_save_c_werror_flag=$ac_c_werror_flag
4608 ac_c_werror_flag=yes
4609 ac_cv_prog_cc_g=no
4610 CFLAGS="-g"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 int
4615 main (void)
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"
4623 then :
4624 ac_cv_prog_cc_g=yes
4625 else case e in #(
4626 e) CFLAGS=""
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629
4630 int
4631 main (void)
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"
4639 then :
4640
4641 else case e in #(
4642 e) ac_c_werror_flag=$ac_save_c_werror_flag
4643 CFLAGS="-g"
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main (void)
4649 {
4650
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"
4656 then :
4657 ac_cv_prog_cc_g=yes
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4660 esac
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4663 esac
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4667 esac
4668 fi
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4670 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4671 if test $ac_test_CFLAGS; then
4672 CFLAGS=$ac_save_CFLAGS
4673 elif test $ac_cv_prog_cc_g = yes; then
4674 if test "$GCC" = yes; then
4675 CFLAGS="-g -O2"
4676 else
4677 CFLAGS="-g"
4678 fi
4679 else
4680 if test "$GCC" = yes; then
4681 CFLAGS="-O2"
4682 else
4683 CFLAGS=
4684 fi
4685 fi
4686 ac_prog_cc_stdc=no
4687 if test x$ac_prog_cc_stdc = xno
4688 then :
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4690 printf %s "checking for $CC option to enable C11 features... " >&6; }
4691 if test ${ac_cv_prog_cc_c11+y}
4692 then :
4693 printf %s "(cached) " >&6
4694 else case e in #(
4695 e) ac_cv_prog_cc_c11=no
4696 ac_save_CC=$CC
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 $ac_c_conftest_c11_program
4700 _ACEOF
4701 for ac_arg in '' -std=gnu11
4702 do
4703 CC="$ac_save_CC $ac_arg"
4704 if ac_fn_c_try_compile "$LINENO"
4705 then :
4706 ac_cv_prog_cc_c11=$ac_arg
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.beam
4709 test "x$ac_cv_prog_cc_c11" != "xno" && break
4710 done
4711 rm -f conftest.$ac_ext
4712 CC=$ac_save_CC ;;
4713 esac
4714 fi
4715
4716 if test "x$ac_cv_prog_cc_c11" = xno
4717 then :
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4719 printf "%s\n" "unsupported" >&6; }
4720 else case e in #(
4721 e) if test "x$ac_cv_prog_cc_c11" = x
4722 then :
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4724 printf "%s\n" "none needed" >&6; }
4725 else case e in #(
4726 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4727 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4728 CC="$CC $ac_cv_prog_cc_c11" ;;
4729 esac
4730 fi
4731 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4732 ac_prog_cc_stdc=c11 ;;
4733 esac
4734 fi
4735 fi
4736 if test x$ac_prog_cc_stdc = xno
4737 then :
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4739 printf %s "checking for $CC option to enable C99 features... " >&6; }
4740 if test ${ac_cv_prog_cc_c99+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else case e in #(
4744 e) ac_cv_prog_cc_c99=no
4745 ac_save_CC=$CC
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 $ac_c_conftest_c99_program
4749 _ACEOF
4750 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4751 do
4752 CC="$ac_save_CC $ac_arg"
4753 if ac_fn_c_try_compile "$LINENO"
4754 then :
4755 ac_cv_prog_cc_c99=$ac_arg
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.beam
4758 test "x$ac_cv_prog_cc_c99" != "xno" && break
4759 done
4760 rm -f conftest.$ac_ext
4761 CC=$ac_save_CC ;;
4762 esac
4763 fi
4764
4765 if test "x$ac_cv_prog_cc_c99" = xno
4766 then :
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4768 printf "%s\n" "unsupported" >&6; }
4769 else case e in #(
4770 e) if test "x$ac_cv_prog_cc_c99" = x
4771 then :
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4773 printf "%s\n" "none needed" >&6; }
4774 else case e in #(
4775 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4776 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4777 CC="$CC $ac_cv_prog_cc_c99" ;;
4778 esac
4779 fi
4780 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4781 ac_prog_cc_stdc=c99 ;;
4782 esac
4783 fi
4784 fi
4785 if test x$ac_prog_cc_stdc = xno
4786 then :
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4788 printf %s "checking for $CC option to enable C89 features... " >&6; }
4789 if test ${ac_cv_prog_cc_c89+y}
4790 then :
4791 printf %s "(cached) " >&6
4792 else case e in #(
4793 e) ac_cv_prog_cc_c89=no
4794 ac_save_CC=$CC
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 $ac_c_conftest_c89_program
4798 _ACEOF
4799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4800 do
4801 CC="$ac_save_CC $ac_arg"
4802 if ac_fn_c_try_compile "$LINENO"
4803 then :
4804 ac_cv_prog_cc_c89=$ac_arg
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.beam
4807 test "x$ac_cv_prog_cc_c89" != "xno" && break
4808 done
4809 rm -f conftest.$ac_ext
4810 CC=$ac_save_CC ;;
4811 esac
4812 fi
4813
4814 if test "x$ac_cv_prog_cc_c89" = xno
4815 then :
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4817 printf "%s\n" "unsupported" >&6; }
4818 else case e in #(
4819 e) if test "x$ac_cv_prog_cc_c89" = x
4820 then :
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822 printf "%s\n" "none needed" >&6; }
4823 else case e in #(
4824 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4825 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4826 CC="$CC $ac_cv_prog_cc_c89" ;;
4827 esac
4828 fi
4829 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4830 ac_prog_cc_stdc=c89 ;;
4831 esac
4832 fi
4833 fi
4834
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841
4842 ac_ext=c
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4848 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4849 if test ${am_cv_prog_cc_c_o+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else case e in #(
4853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855
4856 int
4857 main (void)
4858 {
4859
4860 ;
4861 return 0;
4862 }
4863 _ACEOF
4864 # Make sure it works both with $CC and with simple cc.
4865 # Following AC_PROG_CC_C_O, we do the test twice because some
4866 # compilers refuse to overwrite an existing .o file with -o,
4867 # though they will create one.
4868 am_cv_prog_cc_c_o=yes
4869 for am_i in 1 2; do
4870 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4871 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } \
4875 && test -f conftest2.$ac_objext; then
4876 : OK
4877 else
4878 am_cv_prog_cc_c_o=no
4879 break
4880 fi
4881 done
4882 rm -f core conftest*
4883 unset am_i ;;
4884 esac
4885 fi
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4887 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4888 if test "$am_cv_prog_cc_c_o" != yes; then
4889 # Losing compiler, so override with the script.
4890 # FIXME: It is wrong to rewrite CC.
4891 # But if we don't then we get into trouble of one sort or another.
4892 # A longer-term fix would be to have automake use am__CC in this case,
4893 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4894 CC="$am_aux_dir/compile $CC"
4895 fi
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901
4902 DEPDIR="${am__leading_dot}deps"
4903
4904 ac_config_commands="$ac_config_commands depfiles"
4905
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4907 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4908 cat > confinc.mk << 'END'
4909 am__doit:
4910 @echo this is the am__doit target >confinc.out
4911 .PHONY: am__doit
4912 END
4913 am__include="#"
4914 am__quote=
4915 # BSD make does it like this.
4916 echo '.include "confinc.mk" # ignored' > confmf.BSD
4917 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4918 echo 'include confinc.mk # ignored' > confmf.GNU
4919 _am_result=no
4920 for s in GNU BSD; do
4921 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4922 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }
4926 case $?:`cat confinc.out 2>/dev/null` in #(
4927 '0:this is the am__doit target') :
4928 case $s in #(
4929 BSD) :
4930 am__include='.include' am__quote='"' ;; #(
4931 *) :
4932 am__include='include' am__quote='' ;;
4933 esac ;; #(
4934 *) :
4935 ;;
4936 esac
4937 if test "$am__include" != "#"; then
4938 _am_result="yes ($s style)"
4939 break
4940 fi
4941 done
4942 rm -f confinc.* confmf.*
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4944 printf "%s\n" "${_am_result}" >&6; }
4945
4946 # Check whether --enable-dependency-tracking was given.
4947 if test ${enable_dependency_tracking+y}
4948 then :
4949 enableval=$enable_dependency_tracking;
4950 fi
4951
4952 if test "x$enable_dependency_tracking" != xno; then
4953 am_depcomp="$ac_aux_dir/depcomp"
4954 AMDEPBACKSLASH='\'
4955 am__nodep='_no'
4956 fi
4957 if test "x$enable_dependency_tracking" != xno; then
4958 AMDEP_TRUE=
4959 AMDEP_FALSE='#'
4960 else
4961 AMDEP_TRUE='#'
4962 AMDEP_FALSE=
4963 fi
4964
4965
4966
4967 depcc="$CC" am_compiler_list=
4968
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4970 printf %s "checking dependency style of $depcc... " >&6; }
4971 if test ${am_cv_CC_dependencies_compiler_type+y}
4972 then :
4973 printf %s "(cached) " >&6
4974 else case e in #(
4975 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4976 # We make a subdir and do the tests there. Otherwise we can end up
4977 # making bogus files that we don't know about and never remove. For
4978 # instance it was reported that on HP-UX the gcc test will end up
4979 # making a dummy file named 'D' -- because '-MD' means "put the output
4980 # in D".
4981 rm -rf conftest.dir
4982 mkdir conftest.dir
4983 # Copy depcomp to subdir because otherwise we won't find it if we're
4984 # using a relative directory.
4985 cp "$am_depcomp" conftest.dir
4986 cd conftest.dir
4987 # We will build objects and dependencies in a subdirectory because
4988 # it helps to detect inapplicable dependency modes. For instance
4989 # both Tru64's cc and ICC support -MD to output dependencies as a
4990 # side effect of compilation, but ICC will put the dependencies in
4991 # the current directory while Tru64 will put them in the object
4992 # directory.
4993 mkdir sub
4994
4995 am_cv_CC_dependencies_compiler_type=none
4996 if test "$am_compiler_list" = ""; then
4997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4998 fi
4999 am__universal=false
5000 case " $depcc " in #(
5001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5002 esac
5003
5004 for depmode in $am_compiler_list; do
5005 # Setup a source with many dependencies, because some compilers
5006 # like to wrap large dependency lists on column 80 (with \), and
5007 # we should not choose a depcomp mode which is confused by this.
5008 #
5009 # We need to recreate these files for each test, as the compiler may
5010 # overwrite some of them when testing with obscure command lines.
5011 # This happens at least with the AIX C compiler.
5012 : > sub/conftest.c
5013 for i in 1 2 3 4 5 6; do
5014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5016 # Solaris 10 /bin/sh.
5017 echo '/* dummy */' > sub/conftst$i.h
5018 done
5019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5020
5021 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5022 # mode. It turns out that the SunPro C++ compiler does not properly
5023 # handle '-M -o', and we need to detect this. Also, some Intel
5024 # versions had trouble with output in subdirs.
5025 am__obj=sub/conftest.${OBJEXT-o}
5026 am__minus_obj="-o $am__obj"
5027 case $depmode in
5028 gcc)
5029 # This depmode causes a compiler race in universal mode.
5030 test "$am__universal" = false || continue
5031 ;;
5032 nosideeffect)
5033 # After this tag, mechanisms are not by side-effect, so they'll
5034 # only be used when explicitly requested.
5035 if test "x$enable_dependency_tracking" = xyes; then
5036 continue
5037 else
5038 break
5039 fi
5040 ;;
5041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5042 # This compiler won't grok '-c -o', but also, the minuso test has
5043 # not run yet. These depmodes are late enough in the game, and
5044 # so weak that their functioning should not be impacted.
5045 am__obj=conftest.${OBJEXT-o}
5046 am__minus_obj=
5047 ;;
5048 none) break ;;
5049 esac
5050 if depmode=$depmode \
5051 source=sub/conftest.c object=$am__obj \
5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5054 >/dev/null 2>conftest.err &&
5055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5059 # icc doesn't choke on unknown options, it will just issue warnings
5060 # or remarks (even with -Werror). So we grep stderr for any message
5061 # that says an option was ignored or not supported.
5062 # When given -MP, icc 7.0 and 7.1 complain thus:
5063 # icc: Command line warning: ignoring option '-M'; no argument required
5064 # The diagnosis changed in icc 8.0:
5065 # icc: Command line remark: option '-MP' not supported
5066 if (grep 'ignoring option' conftest.err ||
5067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5068 am_cv_CC_dependencies_compiler_type=$depmode
5069 break
5070 fi
5071 fi
5072 done
5073
5074 cd ..
5075 rm -rf conftest.dir
5076 else
5077 am_cv_CC_dependencies_compiler_type=none
5078 fi
5079 ;;
5080 esac
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5083 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5084 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5085
5086 if
5087 test "x$enable_dependency_tracking" != xno \
5088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5089 am__fastdepCC_TRUE=
5090 am__fastdepCC_FALSE='#'
5091 else
5092 am__fastdepCC_TRUE='#'
5093 am__fastdepCC_FALSE=
5094 fi
5095
5096
5097
5098 is_darwin=no
5099
5100 case "${host_os}" in
5101 darwin*)
5102 is_darwin=yes
5103 ;;
5104 esac
5105
5106 if test "$is_darwin" = "yes"; then
5107 DARWIN_TRUE=
5108 DARWIN_FALSE='#'
5109 else
5110 DARWIN_TRUE='#'
5111 DARWIN_FALSE=
5112 fi
5113
5114
5115
5116
5117
5118 ac_ext=c
5119 ac_cpp='$CPP $CPPFLAGS'
5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5124 printf %s "checking how to run the C preprocessor... " >&6; }
5125 # On Suns, sometimes $CPP names a directory.
5126 if test -n "$CPP" && test -d "$CPP"; then
5127 CPP=
5128 fi
5129 if test -z "$CPP"; then
5130 if test ${ac_cv_prog_CPP+y}
5131 then :
5132 printf %s "(cached) " >&6
5133 else case e in #(
5134 e) # Double quotes because $CC needs to be expanded
5135 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5136 do
5137 ac_preproc_ok=false
5138 for ac_c_preproc_warn_flag in '' yes
5139 do
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <limits.h>
5147 Syntax error
5148 _ACEOF
5149 if ac_fn_c_try_cpp "$LINENO"
5150 then :
5151
5152 else case e in #(
5153 e) # Broken: fails on valid input.
5154 continue ;;
5155 esac
5156 fi
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5158
5159 # OK, works on sane cases. Now check whether nonexistent headers
5160 # can be detected and how.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <ac_nonexistent.h>
5164 _ACEOF
5165 if ac_fn_c_try_cpp "$LINENO"
5166 then :
5167 # Broken: success on invalid input.
5168 continue
5169 else case e in #(
5170 e) # Passes both tests.
5171 ac_preproc_ok=:
5172 break ;;
5173 esac
5174 fi
5175 rm -f conftest.err conftest.i conftest.$ac_ext
5176
5177 done
5178 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179 rm -f conftest.i conftest.err conftest.$ac_ext
5180 if $ac_preproc_ok
5181 then :
5182 break
5183 fi
5184
5185 done
5186 ac_cv_prog_CPP=$CPP
5187 ;;
5188 esac
5189 fi
5190 CPP=$ac_cv_prog_CPP
5191 else
5192 ac_cv_prog_CPP=$CPP
5193 fi
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5195 printf "%s\n" "$CPP" >&6; }
5196 ac_preproc_ok=false
5197 for ac_c_preproc_warn_flag in '' yes
5198 do
5199 # Use a header file that comes with gcc, so configuring glibc
5200 # with a fresh cross-compiler works.
5201 # On the NeXT, cc -E runs the code through the compiler's parser,
5202 # not just through cpp. "Syntax error" is here to catch this case.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <limits.h>
5206 Syntax error
5207 _ACEOF
5208 if ac_fn_c_try_cpp "$LINENO"
5209 then :
5210
5211 else case e in #(
5212 e) # Broken: fails on valid input.
5213 continue ;;
5214 esac
5215 fi
5216 rm -f conftest.err conftest.i conftest.$ac_ext
5217
5218 # OK, works on sane cases. Now check whether nonexistent headers
5219 # can be detected and how.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 #include <ac_nonexistent.h>
5223 _ACEOF
5224 if ac_fn_c_try_cpp "$LINENO"
5225 then :
5226 # Broken: success on invalid input.
5227 continue
5228 else case e in #(
5229 e) # Passes both tests.
5230 ac_preproc_ok=:
5231 break ;;
5232 esac
5233 fi
5234 rm -f conftest.err conftest.i conftest.$ac_ext
5235
5236 done
5237 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5238 rm -f conftest.i conftest.err conftest.$ac_ext
5239 if $ac_preproc_ok
5240 then :
5241
5242 else case e in #(
5243 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5244 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5245 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5246 See 'config.log' for more details" "$LINENO" 5; } ;;
5247 esac
5248 fi
5249
5250 ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255
5256
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
5258 printf %s "checking for egrep -e... " >&6; }
5259 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
5260 then :
5261 printf %s "(cached) " >&6
5262 else case e in #(
5263 e) if test -z "$EGREP_TRADITIONAL"; then
5264 ac_path_EGREP_TRADITIONAL_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5268 do
5269 IFS=$as_save_IFS
5270 case $as_dir in #(((
5271 '') as_dir=./ ;;
5272 */) ;;
5273 *) as_dir=$as_dir/ ;;
5274 esac
5275 for ac_prog in grep ggrep
5276 do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5279 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5280 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5281 # Check for GNU $ac_path_EGREP_TRADITIONAL
5282 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5283 *GNU*)
5284 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5285 #(
5286 *)
5287 ac_count=0
5288 printf %s 0123456789 >"conftest.in"
5289 while :
5290 do
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5295 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5301 ac_path_EGREP_TRADITIONAL_max=$ac_count
5302 fi
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5308
5309 $ac_path_EGREP_TRADITIONAL_found && break 3
5310 done
5311 done
5312 done
5313 IFS=$as_save_IFS
5314 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5315 :
5316 fi
5317 else
5318 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5319 fi
5320
5321 if test "$ac_cv_path_EGREP_TRADITIONAL"
5322 then :
5323 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
5324 else case e in #(
5325 e) if test -z "$EGREP_TRADITIONAL"; then
5326 ac_path_EGREP_TRADITIONAL_found=false
5327 # Loop through the user's path and test for each of PROGNAME-LIST
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 do
5331 IFS=$as_save_IFS
5332 case $as_dir in #(((
5333 '') as_dir=./ ;;
5334 */) ;;
5335 *) as_dir=$as_dir/ ;;
5336 esac
5337 for ac_prog in egrep
5338 do
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5341 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5342 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5343 # Check for GNU $ac_path_EGREP_TRADITIONAL
5344 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5345 *GNU*)
5346 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5347 #(
5348 *)
5349 ac_count=0
5350 printf %s 0123456789 >"conftest.in"
5351 while :
5352 do
5353 cat "conftest.in" "conftest.in" >"conftest.tmp"
5354 mv "conftest.tmp" "conftest.in"
5355 cp "conftest.in" "conftest.nl"
5356 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5357 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5359 as_fn_arith $ac_count + 1 && ac_count=$as_val
5360 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5361 # Best one so far, save it but keep looking for a better one
5362 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5363 ac_path_EGREP_TRADITIONAL_max=$ac_count
5364 fi
5365 # 10*(2^10) chars as input seems more than enough
5366 test $ac_count -gt 10 && break
5367 done
5368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5369 esac
5370
5371 $ac_path_EGREP_TRADITIONAL_found && break 3
5372 done
5373 done
5374 done
5375 IFS=$as_save_IFS
5376 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5377 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5378 fi
5379 else
5380 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5381 fi
5382 ;;
5383 esac
5384 fi ;;
5385 esac
5386 fi
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
5388 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
5389 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
5390
5391
5392 ICC="no"
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icc in use" >&5
5394 printf %s "checking for icc in use... " >&6; }
5395 if test "$GCC" = "yes"; then
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 __INTEL_COMPILER
5399 _ACEOF
5400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401 $EGREP_TRADITIONAL "^__INTEL_COMPILER" >/dev/null 2>&1
5402 then :
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 printf "%s\n" "no" >&6; }
5405
5406 else case e in #(
5407 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 printf "%s\n" "yes" >&6; }
5409
5410 ICC="yes" ;;
5411 esac
5412 fi
5413 rm -rf conftest*
5414
5415 else
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 printf "%s\n" "no" >&6; }
5418
5419 fi
5420
5421
5422
5423
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in use" >&5
5425 printf %s "checking for clang in use... " >&6; }
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428
5429 int
5430 main (void)
5431 {
5432
5433 #ifndef __clang__
5434 not clang
5435 #endif
5436
5437 ;
5438 return 0;
5439 }
5440 _ACEOF
5441 if ac_fn_c_try_compile "$LINENO"
5442 then :
5443 CLANG=yes
5444 else case e in #(
5445 e) CLANG=no ;;
5446 esac
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5450 printf "%s\n" "$CLANG" >&6; }
5451 if test "$CLANG" = "yes"
5452 then :
5453
5454 fi
5455
5456
5457
5458
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5460 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5461 if test ${ac_cv_c_undeclared_builtin_options+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else case e in #(
5465 e) ac_save_CFLAGS=$CFLAGS
5466 ac_cv_c_undeclared_builtin_options='cannot detect'
5467 for ac_arg in '' -fno-builtin; do
5468 CFLAGS="$ac_save_CFLAGS $ac_arg"
5469 # This test program should *not* compile successfully.
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472
5473 int
5474 main (void)
5475 {
5476 (void) strchr;
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"
5482 then :
5483
5484 else case e in #(
5485 e) # This test program should compile successfully.
5486 # No library function is consistently available on
5487 # freestanding implementations, so test against a dummy
5488 # declaration. Include always-available headers on the
5489 # off chance that they somehow elicit warnings.
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492 #include <float.h>
5493 #include <limits.h>
5494 #include <stdarg.h>
5495 #include <stddef.h>
5496 extern void ac_decl (int, char *);
5497
5498 int
5499 main (void)
5500 {
5501 (void) ac_decl (0, (char *) 0);
5502 (void) ac_decl;
5503
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 if ac_fn_c_try_compile "$LINENO"
5509 then :
5510 if test x"$ac_arg" = x
5511 then :
5512 ac_cv_c_undeclared_builtin_options='none needed'
5513 else case e in #(
5514 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5515 esac
5516 fi
5517 break
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5520 esac
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5523 done
5524 CFLAGS=$ac_save_CFLAGS
5525 ;;
5526 esac
5527 fi
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5529 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5530 case $ac_cv_c_undeclared_builtin_options in #(
5531 'cannot detect') :
5532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5533 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5534 as_fn_error $? "cannot make $CC report undeclared builtins
5535 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5536 'none needed') :
5537 ac_c_undeclared_builtin_options='' ;; #(
5538 *) :
5539 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5540 esac
5541
5542 ac_header= ac_cache=
5543 for ac_item in $ac_header_c_list
5544 do
5545 if test $ac_cache; then
5546 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5547 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5548 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5549 fi
5550 ac_header= ac_cache=
5551 elif test $ac_header; then
5552 ac_cache=$ac_item
5553 else
5554 ac_header=$ac_item
5555 fi
5556 done
5557
5558
5559
5560
5561
5562
5563
5564
5565 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5566 then :
5567
5568 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5569
5570 fi
5571
5572 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5573 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5574 then :
5575 SUNCC="yes"
5576 else case e in #(
5577 e) SUNCC="no" ;;
5578 esac
5579 fi
5580 if test "x$SUNCC" = "xyes"
5581 then :
5582 CFLAGS="-mt $CFLAGS"
5583 fi
5584
5585
5586 if test "$ICC" = "yes" -o "$GCC" = "yes"
5587 then :
5588
5589 if test "$CLANG" = "no"
5590 then :
5591 CFLAGS="$CFLAGS -pthread"
5592 fi
5593
5594 fi
5595
5596 if test "$CLANG" = "yes"
5597 then :
5598 CFLAGS="$CFLAGS -Wno-language-extension-token"
5599 fi
5600
5601 if test "$ICC" = "no"; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5603 printf %s "checking for $CC option to accept ISO C99... " >&6; }
5604 if test ${ac_cv_prog_cc_c99+y}
5605 then :
5606 printf %s "(cached) " >&6
5607 else case e in #(
5608 e) ac_cv_prog_cc_c99=no
5609 ac_save_CC=$CC
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <stdarg.h>
5613 #include <stdbool.h>
5614 #include <stdlib.h>
5615 #include <wchar.h>
5616 #include <stdio.h>
5617
5618 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5619 #define debug(...) fprintf (stderr, __VA_ARGS__)
5620 #define showlist(...) puts (#__VA_ARGS__)
5621 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5622 static void
5623 test_varargs_macros (void)
5624 {
5625 int x = 1234;
5626 int y = 5678;
5627 debug ("Flag");
5628 debug ("X = %d\n", x);
5629 showlist (The first, second, and third items.);
5630 report (x>y, "x is %d but y is %d", x, y);
5631 }
5632
5633 // Check long long types.
5634 #define BIG64 18446744073709551615ull
5635 #define BIG32 4294967295ul
5636 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5637 #if !BIG_OK
5638 your preprocessor is broken;
5639 #endif
5640 #if BIG_OK
5641 #else
5642 your preprocessor is broken;
5643 #endif
5644 static long long int bignum = -9223372036854775807LL;
5645 static unsigned long long int ubignum = BIG64;
5646
5647 struct incomplete_array
5648 {
5649 int datasize;
5650 double data[];
5651 };
5652
5653 struct named_init {
5654 int number;
5655 const wchar_t *name;
5656 double average;
5657 };
5658
5659 typedef const char *ccp;
5660
5661 static inline int
5662 test_restrict (ccp restrict text)
5663 {
5664 // See if C++-style comments work.
5665 // Iterate through items via the restricted pointer.
5666 // Also check for declarations in for loops.
5667 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5668 continue;
5669 return 0;
5670 }
5671
5672 // Check varargs and va_copy.
5673 static void
5674 test_varargs (const char *format, ...)
5675 {
5676 va_list args;
5677 va_start (args, format);
5678 va_list args_copy;
5679 va_copy (args_copy, args);
5680
5681 const char *str;
5682 int number;
5683 float fnumber;
5684
5685 while (*format)
5686 {
5687 switch (*format++)
5688 {
5689 case 's': // string
5690 str = va_arg (args_copy, const char *);
5691 break;
5692 case 'd': // int
5693 number = va_arg (args_copy, int);
5694 break;
5695 case 'f': // float
5696 fnumber = va_arg (args_copy, double);
5697 break;
5698 default:
5699 break;
5700 }
5701 }
5702 va_end (args_copy);
5703 va_end (args);
5704 }
5705
5706 int
5707 main (void)
5708 {
5709
5710 // Check bool.
5711 _Bool success = false;
5712
5713 // Check restrict.
5714 if (test_restrict ("String literal") == 0)
5715 success = true;
5716 char *restrict newvar = "Another string";
5717
5718 // Check varargs.
5719 test_varargs ("s, d' f .", "string", 65, 34.234);
5720 test_varargs_macros ();
5721
5722 // Check flexible array members.
5723 struct incomplete_array *ia =
5724 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5725 ia->datasize = 10;
5726 for (int i = 0; i < ia->datasize; ++i)
5727 ia->data[i] = i * 1.234;
5728
5729 // Check named initializers.
5730 struct named_init ni = {
5731 .number = 34,
5732 .name = L"Test wide string",
5733 .average = 543.34343,
5734 };
5735
5736 ni.number = 58;
5737
5738 int dynamic_array[ni.number];
5739 dynamic_array[ni.number - 1] = 543;
5740
5741 // work around unused variable warnings
5742 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5743 || dynamic_array[ni.number - 1] != 543);
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5750 do
5751 CC="$ac_save_CC $ac_arg"
5752 if ac_fn_c_try_compile "$LINENO"
5753 then :
5754 ac_cv_prog_cc_c99=$ac_arg
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.beam
5757 test "x$ac_cv_prog_cc_c99" != "xno" && break
5758 done
5759 rm -f conftest.$ac_ext
5760 CC=$ac_save_CC
5761 ;;
5762 esac
5763 fi
5764 # AC_CACHE_VAL
5765 case "x$ac_cv_prog_cc_c99" in
5766 x)
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5768 printf "%s\n" "none needed" >&6; } ;;
5769 xno)
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5771 printf "%s\n" "unsupported" >&6; } ;;
5772 *)
5773 CC="$CC $ac_cv_prog_cc_c99"
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5775 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
5776 esac
5777 if test "x$ac_cv_prog_cc_c99" != xno
5778 then :
5779
5780 fi
5781
5782 fi
5783
5784
5785
5786
5787 # Check whether --enable-extstore was given.
5788 if test ${enable_extstore+y}
5789 then :
5790 enableval=$enable_extstore;
5791 fi
5792
5793
5794 # Check whether --enable-seccomp was given.
5795 if test ${enable_seccomp+y}
5796 then :
5797 enableval=$enable_seccomp;
5798 fi
5799
5800
5801 # Check whether --enable-sasl was given.
5802 if test ${enable_sasl+y}
5803 then :
5804 enableval=$enable_sasl;
5805 fi
5806
5807
5808 # Check whether --enable-sasl_pwdb was given.
5809 if test ${enable_sasl_pwdb+y}
5810 then :
5811 enableval=$enable_sasl_pwdb;
5812 fi
5813
5814
5815 if test "x$enable_sasl_pwdb" = "xyes"
5816 then :
5817 enable_sasl=yes
5818 fi
5819
5820 # Check whether --enable-tls was given.
5821 if test ${enable_tls+y}
5822 then :
5823 enableval=$enable_tls;
5824 fi
5825
5826
5827
5828 # Check whether --enable-asan was given.
5829 if test ${enable_asan+y}
5830 then :
5831 enableval=$enable_asan;
5832 fi
5833
5834
5835 # Check whether --enable-static was given.
5836 if test ${enable_static+y}
5837 then :
5838 enableval=$enable_static;
5839 fi
5840
5841
5842 # Check whether --enable-unix_socket was given.
5843 if test ${enable_unix_socket+y}
5844 then :
5845 enableval=$enable_unix_socket;
5846 fi
5847
5848
5849 # Check whether --enable-proxy was given.
5850 if test ${enable_proxy+y}
5851 then :
5852 enableval=$enable_proxy;
5853 fi
5854
5855
5856 # Check whether --enable-proxy-uring was given.
5857 if test ${enable_proxy_uring+y}
5858 then :
5859 enableval=$enable_proxy_uring;
5860 fi
5861
5862
5863 # Check whether --enable-proxy-tls was given.
5864 if test ${enable_proxy_tls+y}
5865 then :
5866 enableval=$enable_proxy_tls;
5867 fi
5868
5869
5870 # Check whether --enable-werror was given.
5871 if test ${enable_werror+y}
5872 then :
5873 enableval=$enable_werror;
5874 fi
5875
5876
5877 # Check whether --enable-large-client-flags was given.
5878 if test ${enable_large_client_flags+y}
5879 then :
5880 enableval=$enable_large_client_flags;
5881 fi
5882
5883
5884
5885
5886
5887
5888 ac_fn_c_check_header_compile "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
5889 if test "x$ac_cv_header_sasl_sasl_h" = xyes
5890 then :
5891 printf "%s\n" "#define HAVE_SASL_SASL_H 1" >>confdefs.h
5892
5893 fi
5894
5895 if test "x$enable_sasl" = "xyes"; then
5896
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SASL_CB_GETCONF" >&5
5898 printf %s "checking for SASL_CB_GETCONF... " >&6; }
5899 if test ${ac_cv_c_sasl_cb_getconf+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else case e in #(
5903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905
5906 #include <sasl/sasl.h>
5907
5908 int
5909 main (void)
5910 {
5911
5912 unsigned long val = SASL_CB_GETCONF;
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"
5919 then :
5920 ac_cv_c_sasl_cb_getconf=yes
5921 else case e in #(
5922 e) ac_cv_c_sasl_cb_getconf=no ;;
5923 esac
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5926 ;;
5927 esac
5928 fi
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_sasl_cb_getconf" >&5
5930 printf "%s\n" "$ac_cv_c_sasl_cb_getconf" >&6; }
5931 if test "$ac_cv_c_sasl_cb_getconf" = "yes"
5932 then :
5933
5934 printf "%s\n" "#define HAVE_SASL_CB_GETCONF 1" >>confdefs.h
5935
5936 fi
5937
5938
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SASL_CB_GETCONFPATH" >&5
5940 printf %s "checking for SASL_CB_GETCONFPATH... " >&6; }
5941 if test ${ac_cv_c_sasl_cb_getconfpath+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else case e in #(
5945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947
5948 #include <sasl/sasl.h>
5949
5950 int
5951 main (void)
5952 {
5953
5954 unsigned long val = SASL_CB_GETCONFPATH;
5955
5956 ;
5957 return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"
5961 then :
5962 ac_cv_c_sasl_cb_getconfpath=yes
5963 else case e in #(
5964 e) ac_cv_c_sasl_cb_getconfpath=no ;;
5965 esac
5966 fi
5967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5968 ;;
5969 esac
5970 fi
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_sasl_cb_getconfpath" >&5
5972 printf "%s\n" "$ac_cv_c_sasl_cb_getconfpath" >&6; }
5973 if test "$ac_cv_c_sasl_cb_getconfpath" = "yes"
5974 then :
5975
5976 printf "%s\n" "#define HAVE_SASL_CB_GETCONFPATH 1" >>confdefs.h
5977
5978 fi
5979
5980
5981 printf "%s\n" "#define ENABLE_SASL 1" >>confdefs.h
5982
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sasl_server_init" >&5
5984 printf %s "checking for library containing sasl_server_init... " >&6; }
5985 if test ${ac_cv_search_sasl_server_init+y}
5986 then :
5987 printf %s "(cached) " >&6
5988 else case e in #(
5989 e) ac_func_search_save_LIBS=$LIBS
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992
5993 /* Override any GCC internal prototype to avoid an error.
5994 Use char because int might match the return type of a GCC
5995 builtin and then its argument prototype would still apply.
5996 The 'extern "C"' is for builds by C++ compilers;
5997 although this is not generally supported in C code supporting it here
5998 has little cost and some practical benefit (sr 110532). */
5999 #ifdef __cplusplus
6000 extern "C"
6001 #endif
6002 char sasl_server_init (void);
6003 int
6004 main (void)
6005 {
6006 return sasl_server_init ();
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 for ac_lib in '' sasl2 sasl
6012 do
6013 if test -z "$ac_lib"; then
6014 ac_res="none required"
6015 else
6016 ac_res=-l$ac_lib
6017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6018 fi
6019 if ac_fn_c_try_link "$LINENO"
6020 then :
6021 ac_cv_search_sasl_server_init=$ac_res
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6024 conftest$ac_exeext
6025 if test ${ac_cv_search_sasl_server_init+y}
6026 then :
6027 break
6028 fi
6029 done
6030 if test ${ac_cv_search_sasl_server_init+y}
6031 then :
6032
6033 else case e in #(
6034 e) ac_cv_search_sasl_server_init=no ;;
6035 esac
6036 fi
6037 rm conftest.$ac_ext
6038 LIBS=$ac_func_search_save_LIBS ;;
6039 esac
6040 fi
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sasl_server_init" >&5
6042 printf "%s\n" "$ac_cv_search_sasl_server_init" >&6; }
6043 ac_res=$ac_cv_search_sasl_server_init
6044 if test "$ac_res" != no
6045 then :
6046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6047
6048 else case e in #(
6049 e)
6050 as_fn_error $? "Failed to locate the library containing sasl_server_init" "$LINENO" 5
6051 ;;
6052 esac
6053 fi
6054
6055
6056 if test "x$enable_sasl_pwdb" = "xyes"
6057 then :
6058
6059 printf "%s\n" "#define ENABLE_SASL_PWDB 1" >>confdefs.h
6060
6061 fi
6062 fi
6063
6064 # Check whether --enable-dtrace was given.
6065 if test ${enable_dtrace+y}
6066 then :
6067 enableval=$enable_dtrace;
6068 fi
6069
6070 if test "x$enable_dtrace" = "xyes"; then
6071 # Extract the first word of "dtrace", so it can be a program name with args.
6072 set dummy dtrace; ac_word=$2
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 printf %s "checking for $ac_word... " >&6; }
6075 if test ${ac_cv_path_DTRACE+y}
6076 then :
6077 printf %s "(cached) " >&6
6078 else case e in #(
6079 e) case $DTRACE in
6080 [\\/]* | ?:[\\/]*)
6081 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
6082 ;;
6083 *)
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 as_dummy="/usr/sbin:$PATH"
6086 for as_dir in $as_dummy
6087 do
6088 IFS=$as_save_IFS
6089 case $as_dir in #(((
6090 '') as_dir=./ ;;
6091 */) ;;
6092 *) as_dir=$as_dir/ ;;
6093 esac
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6096 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
6097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE=""no""
6105 ;;
6106 esac ;;
6107 esac
6108 fi
6109 DTRACE=$ac_cv_path_DTRACE
6110 if test -n "$DTRACE"; then
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
6112 printf "%s\n" "$DTRACE" >&6; }
6113 else
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 printf "%s\n" "no" >&6; }
6116 fi
6117
6118
6119 if test "x$DTRACE" != "xno"; then
6120
6121 printf "%s\n" "#define ENABLE_DTRACE 1" >>confdefs.h
6122
6123 build_dtrace=yes
6124 $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
6125 if test $? -eq 0
6126 then
6127 dtrace_instrument_obj=yes
6128 rm conftest.h
6129 # on Mac probe id are generated with $
6130 if test "$is_darwin" = "yes"; then
6131 CFLAGS="$CFLAGS -Wno-dollar-in-identifier-extension"
6132 fi
6133 fi
6134
6135 if test "`which tr`" = "/usr/ucb/tr"; then
6136 as_fn_error $? "Please remove /usr/ucb from your path. See man standards for more info" "$LINENO" 5
6137 fi
6138 else
6139 as_fn_error $? "Need dtrace binary and OS support." "$LINENO" 5
6140 fi
6141 fi
6142
6143 if test "x$enable_extstore" != "xno"; then
6144
6145 printf "%s\n" "#define EXTSTORE 1" >>confdefs.h
6146
6147 fi
6148
6149 if test "x$enable_tls" = "xyes"; then
6150
6151 printf "%s\n" "#define TLS 1" >>confdefs.h
6152
6153 fi
6154
6155 if test "x$enable_asan" = "xyes"; then
6156
6157 printf "%s\n" "#define ASAN 1" >>confdefs.h
6158
6159 fi
6160
6161 if test "x$enable_static" = "xyes"; then
6162
6163 printf "%s\n" "#define STATIC 1" >>confdefs.h
6164
6165 fi
6166
6167 if test "x$enable_unix_socket" = "xno"; then
6168
6169 printf "%s\n" "#define DISABLE_UNIX_SOCKET 1" >>confdefs.h
6170
6171 fi
6172
6173 if test "x$enable_proxy" = "xyes"; then
6174
6175 printf "%s\n" "#define PROXY 1" >>confdefs.h
6176
6177 CPPFLAGS="-Ivendor/lua/src -Ivendor/liburing/src/include $CPPFLAGS"
6178 LIBS="$LIBS -lm -ldl"
6179 fi
6180
6181 if test "x$enable_proxy_uring" = "xyes"; then
6182
6183 printf "%s\n" "#define HAVE_LIBURING 1" >>confdefs.h
6184
6185 CPPFLAGS="-Ivendor/liburing/src/include $CPPFLAGS"
6186 fi
6187
6188 if test "x$enable_proxy_tls" = "xyes"; then
6189 if test "x$enable_tls" != "xyes"; then
6190 as_fn_error $? "--enable-proxy-tls requires --enable-tls" "$LINENO" 5
6191 else
6192
6193 printf "%s\n" "#define PROXY_TLS 1" >>confdefs.h
6194
6195 fi
6196 fi
6197
6198 if test "x$enable_large_client_flags" = "xyes"; then
6199
6200 printf "%s\n" "#define LARGE_CLIENT_FLAGS 1" >>confdefs.h
6201
6202 fi
6203
6204 if test "$build_dtrace" = "yes"; then
6205 BUILD_DTRACE_TRUE=
6206 BUILD_DTRACE_FALSE='#'
6207 else
6208 BUILD_DTRACE_TRUE='#'
6209 BUILD_DTRACE_FALSE=
6210 fi
6211
6212 if test "$dtrace_instrument_obj" = "yes"; then
6213 DTRACE_INSTRUMENT_OBJ_TRUE=
6214 DTRACE_INSTRUMENT_OBJ_FALSE='#'
6215 else
6216 DTRACE_INSTRUMENT_OBJ_TRUE='#'
6217 DTRACE_INSTRUMENT_OBJ_FALSE=
6218 fi
6219
6220 if test "$enable_sasl" = "yes"; then
6221 ENABLE_SASL_TRUE=
6222 ENABLE_SASL_FALSE='#'
6223 else
6224 ENABLE_SASL_TRUE='#'
6225 ENABLE_SASL_FALSE=
6226 fi
6227
6228 if test "$enable_extstore" != "no"; then
6229 ENABLE_EXTSTORE_TRUE=
6230 ENABLE_EXTSTORE_FALSE='#'
6231 else
6232 ENABLE_EXTSTORE_TRUE='#'
6233 ENABLE_EXTSTORE_FALSE=
6234 fi
6235
6236 if test "$enable_arm_crc32" = "yes"; then
6237 ENABLE_ARM_CRC32_TRUE=
6238 ENABLE_ARM_CRC32_FALSE='#'
6239 else
6240 ENABLE_ARM_CRC32_TRUE='#'
6241 ENABLE_ARM_CRC32_FALSE=
6242 fi
6243
6244 if test "$enable_tls" = "yes"; then
6245 ENABLE_TLS_TRUE=
6246 ENABLE_TLS_FALSE='#'
6247 else
6248 ENABLE_TLS_TRUE='#'
6249 ENABLE_TLS_FALSE=
6250 fi
6251
6252 if test "$enable_asan" = "yes"; then
6253 ENABLE_ASAN_TRUE=
6254 ENABLE_ASAN_FALSE='#'
6255 else
6256 ENABLE_ASAN_TRUE='#'
6257 ENABLE_ASAN_FALSE=
6258 fi
6259
6260 if test "$enable_static" = "yes"; then
6261 ENABLE_STATIC_TRUE=
6262 ENABLE_STATIC_FALSE='#'
6263 else
6264 ENABLE_STATIC_TRUE='#'
6265 ENABLE_STATIC_FALSE=
6266 fi
6267
6268 if test "$enable_unix_socket" = "no"; then
6269 DISABLE_UNIX_SOCKET_TRUE=
6270 DISABLE_UNIX_SOCKET_FALSE='#'
6271 else
6272 DISABLE_UNIX_SOCKET_TRUE='#'
6273 DISABLE_UNIX_SOCKET_FALSE=
6274 fi
6275
6276 if test "$enable_proxy" = "yes"; then
6277 ENABLE_PROXY_TRUE=
6278 ENABLE_PROXY_FALSE='#'
6279 else
6280 ENABLE_PROXY_TRUE='#'
6281 ENABLE_PROXY_FALSE=
6282 fi
6283
6284 if test "$enable_proxy_uring" = "yes"; then
6285 ENABLE_PROXY_URING_TRUE=
6286 ENABLE_PROXY_URING_FALSE='#'
6287 else
6288 ENABLE_PROXY_URING_TRUE='#'
6289 ENABLE_PROXY_URING_FALSE=
6290 fi
6291
6292 if test "$enable_proxy_tls" = "yes"; then
6293 ENABLE_PROXY_TLS_TRUE=
6294 ENABLE_PROXY_TLS_FALSE='#'
6295 else
6296 ENABLE_PROXY_TLS_TRUE='#'
6297 ENABLE_PROXY_TLS_FALSE=
6298 fi
6299
6300 if test "$enable_large_client_flags" = "yes"; then
6301 LARGE_CLIENT_FLAGS_TRUE=
6302 LARGE_CLIENT_FLAGS_FALSE='#'
6303 else
6304 LARGE_CLIENT_FLAGS_TRUE='#'
6305 LARGE_CLIENT_FLAGS_FALSE=
6306 fi
6307
6308
6309
6310
6311
6312
6313
6314
6315 # Check whether --enable-coverage was given.
6316 if test ${enable_coverage+y}
6317 then :
6318 enableval=$enable_coverage;
6319 fi
6320
6321
6322 if test "x$enable_coverage" != "xno"; then
6323 if test "$GCC" = "yes" -a "$ICC" != "yes" -a "$CLANG" != "yes"
6324 then
6325 CFLAGS="$CFLAGS -pthread"
6326 # Extract the first word of "gcov", so it can be a program name with args.
6327 set dummy gcov; ac_word=$2
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 printf %s "checking for $ac_word... " >&6; }
6330 if test ${ac_cv_path_PROFILER+y}
6331 then :
6332 printf %s "(cached) " >&6
6333 else case e in #(
6334 e) case $PROFILER in
6335 [\\/]* | ?:[\\/]*)
6336 ac_cv_path_PROFILER="$PROFILER" # Let the user override the test with a path.
6337 ;;
6338 *)
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 case $as_dir in #(((
6344 '') as_dir=./ ;;
6345 */) ;;
6346 *) as_dir=$as_dir/ ;;
6347 esac
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6350 ac_cv_path_PROFILER="$as_dir$ac_word$ac_exec_ext"
6351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 test -z "$ac_cv_path_PROFILER" && ac_cv_path_PROFILER=""no""
6359 ;;
6360 esac ;;
6361 esac
6362 fi
6363 PROFILER=$ac_cv_path_PROFILER
6364 if test -n "$PROFILER"; then
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILER" >&5
6366 printf "%s\n" "$PROFILER" >&6; }
6367 else
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 printf "%s\n" "no" >&6; }
6370 fi
6371
6372
6373 if test "x$PROFILER" != "xno"; then
6374 # Issue 97: The existence of gcov doesn't mean we have -lgcov
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgcov" >&5
6376 printf %s "checking for main in -lgcov... " >&6; }
6377 if test ${ac_cv_lib_gcov_main+y}
6378 then :
6379 printf %s "(cached) " >&6
6380 else case e in #(
6381 e) ac_check_lib_save_LIBS=$LIBS
6382 LIBS="-lgcov $LIBS"
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385
6386
6387 int
6388 main (void)
6389 {
6390 return main ();
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"
6396 then :
6397 ac_cv_lib_gcov_main=yes
6398 else case e in #(
6399 e) ac_cv_lib_gcov_main=no ;;
6400 esac
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6403 conftest$ac_exeext conftest.$ac_ext
6404 LIBS=$ac_check_lib_save_LIBS ;;
6405 esac
6406 fi
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov_main" >&5
6408 printf "%s\n" "$ac_cv_lib_gcov_main" >&6; }
6409 if test "x$ac_cv_lib_gcov_main" = xyes
6410 then :
6411
6412 PROFILER_FLAGS="-fprofile-arcs -ftest-coverage"
6413 PROFILER_LDFLAGS="-lgcov"
6414
6415 else case e in #(
6416 e)
6417 PROFILER_FLAGS=
6418 PROFILER_LDFLAGS=
6419 ;;
6420 esac
6421 fi
6422
6423 fi
6424 elif test "$SUNCC" = "yes"
6425 then
6426 # Extract the first word of "tcov", so it can be a program name with args.
6427 set dummy tcov; ac_word=$2
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 printf %s "checking for $ac_word... " >&6; }
6430 if test ${ac_cv_path_PROFILER+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else case e in #(
6434 e) case $PROFILER in
6435 [\\/]* | ?:[\\/]*)
6436 ac_cv_path_PROFILER="$PROFILER" # Let the user override the test with a path.
6437 ;;
6438 *)
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442 IFS=$as_save_IFS
6443 case $as_dir in #(((
6444 '') as_dir=./ ;;
6445 */) ;;
6446 *) as_dir=$as_dir/ ;;
6447 esac
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6450 ac_cv_path_PROFILER="$as_dir$ac_word$ac_exec_ext"
6451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_PROFILER" && ac_cv_path_PROFILER=""no""
6459 ;;
6460 esac ;;
6461 esac
6462 fi
6463 PROFILER=$ac_cv_path_PROFILER
6464 if test -n "$PROFILER"; then
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILER" >&5
6466 printf "%s\n" "$PROFILER" >&6; }
6467 else
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 printf "%s\n" "no" >&6; }
6470 fi
6471
6472
6473 if test "x$PROFILER" != "xno"; then
6474 PROFILER_FLAGS=-xprofile=tcov
6475 fi
6476 elif test "x$CLANG" != "xno"
6477 then
6478 # Extract the first word of "gcov", so it can be a program name with args.
6479 set dummy gcov; ac_word=$2
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 printf %s "checking for $ac_word... " >&6; }
6482 if test ${ac_cv_path_PROFILER+y}
6483 then :
6484 printf %s "(cached) " >&6
6485 else case e in #(
6486 e) case $PROFILER in
6487 [\\/]* | ?:[\\/]*)
6488 ac_cv_path_PROFILER="$PROFILER" # Let the user override the test with a path.
6489 ;;
6490 *)
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 case $as_dir in #(((
6496 '') as_dir=./ ;;
6497 */) ;;
6498 *) as_dir=$as_dir/ ;;
6499 esac
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6502 ac_cv_path_PROFILER="$as_dir$ac_word$ac_exec_ext"
6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 test -z "$ac_cv_path_PROFILER" && ac_cv_path_PROFILER=""no""
6511 ;;
6512 esac ;;
6513 esac
6514 fi
6515 PROFILER=$ac_cv_path_PROFILER
6516 if test -n "$PROFILER"; then
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILER" >&5
6518 printf "%s\n" "$PROFILER" >&6; }
6519 else
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 printf "%s\n" "no" >&6; }
6522 fi
6523
6524
6525 if test "x$PROFILER" != "xno"
6526 then
6527 PROFILER_FLAGS="-fprofile-arcs -ftest-coverage"
6528 PROFILER_LDFLAGS=
6529 fi
6530 fi
6531 fi
6532
6533
6534
6535 # Check whether --enable-64bit was given.
6536 if test ${enable_64bit+y}
6537 then :
6538 enableval=$enable_64bit;
6539 fi
6540
6541 if test "x$enable_64bit" = "xyes"
6542 then
6543 org_cflags=$CFLAGS
6544 CFLAGS=-m64
6545 if test "$cross_compiling" = yes
6546 then :
6547
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Assuming no extra CFLAGS are required for cross-compiling 64bit version." >&5
6549 printf "%s\n" "$as_me: WARNING: Assuming no extra CFLAGS are required for cross-compiling 64bit version." >&2;}
6550
6551 else case e in #(
6552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554
6555 int
6556 main (void)
6557 {
6558 return sizeof(void*) == 8 ? 0 : 1;
6559
6560 ;
6561 return 0;
6562 }
6563
6564 _ACEOF
6565 if ac_fn_c_try_run "$LINENO"
6566 then :
6567
6568 CFLAGS="-m64 $org_cflags"
6569
6570 else case e in #(
6571 e)
6572 as_fn_error $? "Don't know how to build a 64-bit object." "$LINENO" 5
6573 ;;
6574 esac
6575 fi
6576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6577 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6578 esac
6579 fi
6580
6581 fi
6582
6583 # The cast to long int works around a bug in the HP C Compiler
6584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6585 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
6586 # This bug is HP SR number 8606223364.
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6588 printf %s "checking size of void *... " >&6; }
6589 if test ${ac_cv_sizeof_void_p+y}
6590 then :
6591 printf %s "(cached) " >&6
6592 else case e in #(
6593 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
6594 then :
6595
6596 else case e in #(
6597 e) if test "$ac_cv_type_void_p" = yes; then
6598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6599 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6600 as_fn_error 77 "cannot compute sizeof (void *)
6601 See 'config.log' for more details" "$LINENO" 5; }
6602 else
6603 ac_cv_sizeof_void_p=0
6604 fi ;;
6605 esac
6606 fi
6607 ;;
6608 esac
6609 fi
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6611 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
6612
6613
6614
6615 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
6616
6617
6618
6619 # Issue 213: Search for clock_gettime to help people linking
6620 # with a static version of libevent
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6622 printf %s "checking for library containing clock_gettime... " >&6; }
6623 if test ${ac_cv_search_clock_gettime+y}
6624 then :
6625 printf %s "(cached) " >&6
6626 else case e in #(
6627 e) ac_func_search_save_LIBS=$LIBS
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630
6631 /* Override any GCC internal prototype to avoid an error.
6632 Use char because int might match the return type of a GCC
6633 builtin and then its argument prototype would still apply.
6634 The 'extern "C"' is for builds by C++ compilers;
6635 although this is not generally supported in C code supporting it here
6636 has little cost and some practical benefit (sr 110532). */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 char clock_gettime (void);
6641 int
6642 main (void)
6643 {
6644 return clock_gettime ();
6645 ;
6646 return 0;
6647 }
6648 _ACEOF
6649 for ac_lib in '' rt
6650 do
6651 if test -z "$ac_lib"; then
6652 ac_res="none required"
6653 else
6654 ac_res=-l$ac_lib
6655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6656 fi
6657 if ac_fn_c_try_link "$LINENO"
6658 then :
6659 ac_cv_search_clock_gettime=$ac_res
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6662 conftest$ac_exeext
6663 if test ${ac_cv_search_clock_gettime+y}
6664 then :
6665 break
6666 fi
6667 done
6668 if test ${ac_cv_search_clock_gettime+y}
6669 then :
6670
6671 else case e in #(
6672 e) ac_cv_search_clock_gettime=no ;;
6673 esac
6674 fi
6675 rm conftest.$ac_ext
6676 LIBS=$ac_func_search_save_LIBS ;;
6677 esac
6678 fi
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6680 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
6681 ac_res=$ac_cv_search_clock_gettime
6682 if test "$ac_res" != no
6683 then :
6684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6685
6686 fi
6687
6688 # Issue 214: Search for the network libraries _before_ searching
6689 # for libevent (to help people linking with static libevent)
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6691 printf %s "checking for library containing socket... " >&6; }
6692 if test ${ac_cv_search_socket+y}
6693 then :
6694 printf %s "(cached) " >&6
6695 else case e in #(
6696 e) ac_func_search_save_LIBS=$LIBS
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699
6700 /* Override any GCC internal prototype to avoid an error.
6701 Use char because int might match the return type of a GCC
6702 builtin and then its argument prototype would still apply.
6703 The 'extern "C"' is for builds by C++ compilers;
6704 although this is not generally supported in C code supporting it here
6705 has little cost and some practical benefit (sr 110532). */
6706 #ifdef __cplusplus
6707 extern "C"
6708 #endif
6709 char socket (void);
6710 int
6711 main (void)
6712 {
6713 return socket ();
6714 ;
6715 return 0;
6716 }
6717 _ACEOF
6718 for ac_lib in '' socket
6719 do
6720 if test -z "$ac_lib"; then
6721 ac_res="none required"
6722 else
6723 ac_res=-l$ac_lib
6724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6725 fi
6726 if ac_fn_c_try_link "$LINENO"
6727 then :
6728 ac_cv_search_socket=$ac_res
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6731 conftest$ac_exeext
6732 if test ${ac_cv_search_socket+y}
6733 then :
6734 break
6735 fi
6736 done
6737 if test ${ac_cv_search_socket+y}
6738 then :
6739
6740 else case e in #(
6741 e) ac_cv_search_socket=no ;;
6742 esac
6743 fi
6744 rm conftest.$ac_ext
6745 LIBS=$ac_func_search_save_LIBS ;;
6746 esac
6747 fi
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6749 printf "%s\n" "$ac_cv_search_socket" >&6; }
6750 ac_res=$ac_cv_search_socket
6751 if test "$ac_res" != no
6752 then :
6753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6754
6755 fi
6756
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6758 printf %s "checking for library containing gethostbyname... " >&6; }
6759 if test ${ac_cv_search_gethostbyname+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else case e in #(
6763 e) ac_func_search_save_LIBS=$LIBS
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766
6767 /* Override any GCC internal prototype to avoid an error.
6768 Use char because int might match the return type of a GCC
6769 builtin and then its argument prototype would still apply.
6770 The 'extern "C"' is for builds by C++ compilers;
6771 although this is not generally supported in C code supporting it here
6772 has little cost and some practical benefit (sr 110532). */
6773 #ifdef __cplusplus
6774 extern "C"
6775 #endif
6776 char gethostbyname (void);
6777 int
6778 main (void)
6779 {
6780 return gethostbyname ();
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 for ac_lib in '' nsl
6786 do
6787 if test -z "$ac_lib"; then
6788 ac_res="none required"
6789 else
6790 ac_res=-l$ac_lib
6791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6792 fi
6793 if ac_fn_c_try_link "$LINENO"
6794 then :
6795 ac_cv_search_gethostbyname=$ac_res
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6798 conftest$ac_exeext
6799 if test ${ac_cv_search_gethostbyname+y}
6800 then :
6801 break
6802 fi
6803 done
6804 if test ${ac_cv_search_gethostbyname+y}
6805 then :
6806
6807 else case e in #(
6808 e) ac_cv_search_gethostbyname=no ;;
6809 esac
6810 fi
6811 rm conftest.$ac_ext
6812 LIBS=$ac_func_search_save_LIBS ;;
6813 esac
6814 fi
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6816 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
6817 ac_res=$ac_cv_search_gethostbyname
6818 if test "$ac_res" != no
6819 then :
6820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6821
6822 fi
6823
6824
6825 trylibeventdir=""
6826
6827 # Check whether --with-libevent was given.
6828 if test ${with_libevent+y}
6829 then :
6830 withval=$with_libevent;
6831 if test "x$withval" != "xno" ; then
6832 trylibeventdir=$withval
6833 fi
6834
6835
6836 fi
6837
6838
6839
6840 LIBEVENT_URL=https://www.monkey.org/~provos/libevent/
6841
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent directory" >&5
6843 printf %s "checking for libevent directory... " >&6; }
6844 if test ${ac_cv_libevent_dir+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else case e in #(
6848 e)
6849 saved_LIBS="$LIBS"
6850 saved_LDFLAGS="$LDFLAGS"
6851 saved_CPPFLAGS="$CPPFLAGS"
6852 le_found=no
6853 for ledir in $trylibeventdir "" $prefix /usr/local ; do
6854 LDFLAGS="$saved_LDFLAGS"
6855 LIBS="-levent $saved_LIBS"
6856
6857 # Skip the directory if it isn't there.
6858 if test ! -z "$ledir" -a ! -d "$ledir" ; then
6859 continue;
6860 fi
6861 if test ! -z "$ledir" ; then
6862 if test -d "$ledir/lib" ; then
6863 LDFLAGS="-L$ledir/lib $LDFLAGS"
6864 else
6865 LDFLAGS="-L$ledir $LDFLAGS"
6866 fi
6867 if test -d "$ledir/include" ; then
6868 CPPFLAGS="-I$ledir/include $CPPFLAGS"
6869 else
6870 CPPFLAGS="-I$ledir $CPPFLAGS"
6871 fi
6872 fi
6873 # Can I compile and link it?
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #include <sys/time.h>
6877 #include <sys/types.h>
6878 #include <event.h>
6879 int
6880 main (void)
6881 {
6882 event_init();
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"
6888 then :
6889 libevent_linked=yes
6890 else case e in #(
6891 e) libevent_linked=no ;;
6892 esac
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6895 conftest$ac_exeext conftest.$ac_ext
6896 if test $libevent_linked = yes; then
6897 if test ! -z "$ledir" ; then
6898 ac_cv_libevent_dir=$ledir
6899 _myos=`echo $target_os | cut -f 1 -d .`
6900 if test "$SUNCC" = "yes" -o "x$_myos" = "xsolaris2"
6901 then :
6902 saved_LDFLAGS="$saved_LDFLAGS -Wl,-R$ledir/lib"
6903 else case e in #(
6904 e) if test "$GCC" = "yes"
6905 then :
6906 saved_LDFLAGS="$saved_LDFLAGS -Wl,-rpath,$ledir/lib"
6907 fi ;;
6908 esac
6909 fi
6910 else
6911 ac_cv_libevent_dir="(system)"
6912 fi
6913 le_found=yes
6914 break
6915 fi
6916 done
6917 LIBS="$saved_LIBS"
6918 LDFLAGS="$saved_LDFLAGS"
6919 CPPFLAGS="$saved_CPPFLAGS"
6920 if test $le_found = no ; then
6921 as_fn_error $? "libevent is required. You can get it from $LIBEVENT_URL
6922
6923 If it's already installed, specify its path using --with-libevent=/dir/
6924 " "$LINENO" 5
6925 fi
6926 ;;
6927 esac
6928 fi
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libevent_dir" >&5
6930 printf "%s\n" "$ac_cv_libevent_dir" >&6; }
6931 LIBS="-levent $LIBS"
6932 if test $ac_cv_libevent_dir != "(system)"; then
6933 if test -d "$ac_cv_libevent_dir/lib" ; then
6934 LDFLAGS="-L$ac_cv_libevent_dir/lib $LDFLAGS"
6935 le_libdir="$ac_cv_libevent_dir/lib"
6936 else
6937 LDFLAGS="-L$ac_cv_libevent_dir $LDFLAGS"
6938 le_libdir="$ac_cv_libevent_dir"
6939 fi
6940 if test -d "$ac_cv_libevent_dir/include" ; then
6941 CPPFLAGS="-I$ac_cv_libevent_dir/include $CPPFLAGS"
6942 else
6943 CPPFLAGS="-I$ac_cv_libevent_dir $CPPFLAGS"
6944 fi
6945 fi
6946
6947 if test "$cross_compiling" = yes
6948 then :
6949
6950
6951 else case e in #(
6952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954
6955 #include <event.h>
6956
6957 int
6958 main (void)
6959 {
6960 const char *ver = event_get_version();
6961 return (ver != NULL && *ver != '1') ? 0 : 1;
6962
6963 ;
6964 return 0;
6965 }
6966
6967 _ACEOF
6968 if ac_fn_c_try_run "$LINENO"
6969 then :
6970
6971
6972 printf "%s\n" "#define HAVE_LIBEVENT_NEW 1" >>confdefs.h
6973
6974
6975 else case e in #(
6976 e)
6977 as_fn_error $? "libevent2 is required" "$LINENO" 5
6978 ;;
6979 esac
6980 fi
6981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6982 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6983 esac
6984 fi
6985
6986
6987 trylibssldir=""
6988
6989 # Check whether --with-libssl was given.
6990 if test ${with_libssl+y}
6991 then :
6992 withval=$with_libssl;
6993 if test "x$withval" != "xno" ; then
6994 trylibssldir=$withval
6995 fi
6996
6997
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 printf %s "checking for $ac_word... " >&6; }
7015 if test ${ac_cv_path_PKG_CONFIG+y}
7016 then :
7017 printf %s "(cached) " >&6
7018 else case e in #(
7019 e) case $PKG_CONFIG in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7022 ;;
7023 *)
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 case $as_dir in #(((
7029 '') as_dir=./ ;;
7030 */) ;;
7031 *) as_dir=$as_dir/ ;;
7032 esac
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7035 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 ;;
7044 esac ;;
7045 esac
7046 fi
7047 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7048 if test -n "$PKG_CONFIG"; then
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7050 printf "%s\n" "$PKG_CONFIG" >&6; }
7051 else
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 printf "%s\n" "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_path_PKG_CONFIG"; then
7059 ac_pt_PKG_CONFIG=$PKG_CONFIG
7060 # Extract the first word of "pkg-config", so it can be a program name with args.
7061 set dummy pkg-config; ac_word=$2
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 printf %s "checking for $ac_word... " >&6; }
7064 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else case e in #(
7068 e) case $ac_pt_PKG_CONFIG in
7069 [\\/]* | ?:[\\/]*)
7070 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7071 ;;
7072 *)
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 case $as_dir in #(((
7078 '') as_dir=./ ;;
7079 */) ;;
7080 *) as_dir=$as_dir/ ;;
7081 esac
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7084 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 ;;
7093 esac ;;
7094 esac
7095 fi
7096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7097 if test -n "$ac_pt_PKG_CONFIG"; then
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7099 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7100 else
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 printf "%s\n" "no" >&6; }
7103 fi
7104
7105 if test "x$ac_pt_PKG_CONFIG" = x; then
7106 PKG_CONFIG=""
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114 PKG_CONFIG=$ac_pt_PKG_CONFIG
7115 fi
7116 else
7117 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7118 fi
7119
7120 fi
7121 if test -n "$PKG_CONFIG"; then
7122 _pkg_min_version=0.9.0
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7124 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7125 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127 printf "%s\n" "yes" >&6; }
7128 else
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 printf "%s\n" "no" >&6; }
7131 PKG_CONFIG=""
7132 fi
7133 fi
7134 OPENSSL_URL=https://www.openssl.org/
7135 if test "x$enable_tls" = "xyes"; then
7136
7137 pkg_failed=no
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
7139 printf %s "checking for openssl... " >&6; }
7140
7141 if test -n "$OPENSSL_CFLAGS"; then
7142 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
7143 elif test -n "$PKG_CONFIG"; then
7144 if test -n "$PKG_CONFIG" && \
7145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
7146 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
7147 ac_status=$?
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }; then
7150 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
7151 test "x$?" != "x0" && pkg_failed=yes
7152 else
7153 pkg_failed=yes
7154 fi
7155 else
7156 pkg_failed=untried
7157 fi
7158 if test -n "$OPENSSL_LIBS"; then
7159 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
7160 elif test -n "$PKG_CONFIG"; then
7161 if test -n "$PKG_CONFIG" && \
7162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
7163 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
7164 ac_status=$?
7165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166 test $ac_status = 0; }; then
7167 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
7168 test "x$?" != "x0" && pkg_failed=yes
7169 else
7170 pkg_failed=yes
7171 fi
7172 else
7173 pkg_failed=untried
7174 fi
7175
7176
7177
7178 if test $pkg_failed = yes; then
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 printf "%s\n" "no" >&6; }
7181
7182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7183 _pkg_short_errors_supported=yes
7184 else
7185 _pkg_short_errors_supported=no
7186 fi
7187 if test $_pkg_short_errors_supported = yes; then
7188 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
7189 else
7190 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
7191 fi
7192 # Put the nasty error message in config.log where it belongs
7193 echo "$OPENSSL_PKG_ERRORS" >&5
7194
7195
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl directory" >&5
7197 printf %s "checking for libssl directory... " >&6; }
7198 if test ${ac_cv_libssl_dir+y}
7199 then :
7200 printf %s "(cached) " >&6
7201 else case e in #(
7202 e)
7203 saved_LIBS="$LIBS"
7204 saved_LDFLAGS="$LDFLAGS"
7205 saved_CPPFLAGS="$CPPFLAGS"
7206 le_found=no
7207 for ledir in $trylibssldir "" $prefix /usr/local ; do
7208 LDFLAGS="$saved_LDFLAGS"
7209 LIBS="-lssl -lcrypto $saved_LIBS"
7210
7211 # Skip the directory if it isn't there.
7212 if test ! -z "$ledir" -a ! -d "$ledir" ; then
7213 continue;
7214 fi
7215 if test ! -z "$ledir" ; then
7216 if test -d "$ledir/lib" ; then
7217 LDFLAGS="-L$ledir/lib $LDFLAGS"
7218 else
7219 LDFLAGS="-L$ledir $LDFLAGS"
7220 fi
7221 if test -d "$ledir/include" ; then
7222 CPPFLAGS="-I$ledir/include $CPPFLAGS"
7223 else
7224 CPPFLAGS="-I$ledir $CPPFLAGS"
7225 fi
7226 fi
7227 # Can I compile and link it?
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <sys/time.h>
7231 #include <sys/types.h>
7232 #include <assert.h>
7233 #include <openssl/ssl.h>
7234 int
7235 main (void)
7236 {
7237 SSL_CTX* ssl_ctx = SSL_CTX_new(TLS_server_method());
7238 assert(OPENSSL_VERSION_NUMBER >= 0x10101000L);
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_link "$LINENO"
7244 then :
7245 libssl_linked=yes
7246 else case e in #(
7247 e) libssl_linked=no ;;
7248 esac
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7251 conftest$ac_exeext conftest.$ac_ext
7252 if test $libssl_linked = yes; then
7253 if test ! -z "$ledir" ; then
7254 ac_cv_libssl_dir=$ledir
7255 _myos=`echo $target_os | cut -f 1 -d .`
7256 if test "$SUNCC" = "yes" -o "x$_myos" = "xsolaris2"
7257 then :
7258 saved_LDFLAGS="$saved_LDFLAGS -Wl,-R$ledir/lib"
7259 else case e in #(
7260 e) if test "$GCC" = "yes"
7261 then :
7262 saved_LDFLAGS="$saved_LDFLAGS -Wl,-rpath,$ledir/lib"
7263 fi ;;
7264 esac
7265 fi
7266 else
7267 ac_cv_libssl_dir="(system)"
7268 fi
7269 le_found=yes
7270 break
7271 fi
7272 done
7273 LIBS="$saved_LIBS"
7274 LDFLAGS="$saved_LDFLAGS"
7275 CPPFLAGS="$saved_CPPFLAGS"
7276 if test $le_found = no ; then
7277 as_fn_error $? "libssl (at least version 1.1.0) is required. You can get it from $OPENSSL_URL
7278
7279 If it's already installed, specify its path using --with-libssl=/dir/
7280 " "$LINENO" 5
7281 fi
7282 ;;
7283 esac
7284 fi
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libssl_dir" >&5
7286 printf "%s\n" "$ac_cv_libssl_dir" >&6; }
7287 LIBS="-lssl -lcrypto $LIBS"
7288 if test $ac_cv_libssl_dir != "(system)"; then
7289 if test -d "$ac_cv_libssl_dir/lib" ; then
7290 LDFLAGS="-L$ac_cv_libssl_dir/lib $LDFLAGS"
7291 le_libdir="$ac_cv_libssl_dir/lib"
7292 else
7293 LDFLAGS="-L$ac_cv_libssl_dir $LDFLAGS"
7294 le_libdir="$ac_cv_libssl_dir"
7295 fi
7296 if test -d "$ac_cv_libssl_dir/include" ; then
7297 CPPFLAGS="-I$ac_cv_libssl_dir/include $CPPFLAGS"
7298 else
7299 CPPFLAGS="-I$ac_cv_libssl_dir $CPPFLAGS"
7300 fi
7301 fi
7302
7303 elif test $pkg_failed = untried; then
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 printf "%s\n" "no" >&6; }
7306
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl directory" >&5
7308 printf %s "checking for libssl directory... " >&6; }
7309 if test ${ac_cv_libssl_dir+y}
7310 then :
7311 printf %s "(cached) " >&6
7312 else case e in #(
7313 e)
7314 saved_LIBS="$LIBS"
7315 saved_LDFLAGS="$LDFLAGS"
7316 saved_CPPFLAGS="$CPPFLAGS"
7317 le_found=no
7318 for ledir in $trylibssldir "" $prefix /usr/local ; do
7319 LDFLAGS="$saved_LDFLAGS"
7320 LIBS="-lssl -lcrypto $saved_LIBS"
7321
7322 # Skip the directory if it isn't there.
7323 if test ! -z "$ledir" -a ! -d "$ledir" ; then
7324 continue;
7325 fi
7326 if test ! -z "$ledir" ; then
7327 if test -d "$ledir/lib" ; then
7328 LDFLAGS="-L$ledir/lib $LDFLAGS"
7329 else
7330 LDFLAGS="-L$ledir $LDFLAGS"
7331 fi
7332 if test -d "$ledir/include" ; then
7333 CPPFLAGS="-I$ledir/include $CPPFLAGS"
7334 else
7335 CPPFLAGS="-I$ledir $CPPFLAGS"
7336 fi
7337 fi
7338 # Can I compile and link it?
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #include <sys/time.h>
7342 #include <sys/types.h>
7343 #include <assert.h>
7344 #include <openssl/ssl.h>
7345 int
7346 main (void)
7347 {
7348 SSL_CTX* ssl_ctx = SSL_CTX_new(TLS_server_method());
7349 assert(OPENSSL_VERSION_NUMBER >= 0x10101000L);
7350 ;
7351 return 0;
7352 }
7353 _ACEOF
7354 if ac_fn_c_try_link "$LINENO"
7355 then :
7356 libssl_linked=yes
7357 else case e in #(
7358 e) libssl_linked=no ;;
7359 esac
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7362 conftest$ac_exeext conftest.$ac_ext
7363 if test $libssl_linked = yes; then
7364 if test ! -z "$ledir" ; then
7365 ac_cv_libssl_dir=$ledir
7366 _myos=`echo $target_os | cut -f 1 -d .`
7367 if test "$SUNCC" = "yes" -o "x$_myos" = "xsolaris2"
7368 then :
7369 saved_LDFLAGS="$saved_LDFLAGS -Wl,-R$ledir/lib"
7370 else case e in #(
7371 e) if test "$GCC" = "yes"
7372 then :
7373 saved_LDFLAGS="$saved_LDFLAGS -Wl,-rpath,$ledir/lib"
7374 fi ;;
7375 esac
7376 fi
7377 else
7378 ac_cv_libssl_dir="(system)"
7379 fi
7380 le_found=yes
7381 break
7382 fi
7383 done
7384 LIBS="$saved_LIBS"
7385 LDFLAGS="$saved_LDFLAGS"
7386 CPPFLAGS="$saved_CPPFLAGS"
7387 if test $le_found = no ; then
7388 as_fn_error $? "libssl (at least version 1.1.0) is required. You can get it from $OPENSSL_URL
7389
7390 If it's already installed, specify its path using --with-libssl=/dir/
7391 " "$LINENO" 5
7392 fi
7393 ;;
7394 esac
7395 fi
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libssl_dir" >&5
7397 printf "%s\n" "$ac_cv_libssl_dir" >&6; }
7398 LIBS="-lssl -lcrypto $LIBS"
7399 if test $ac_cv_libssl_dir != "(system)"; then
7400 if test -d "$ac_cv_libssl_dir/lib" ; then
7401 LDFLAGS="-L$ac_cv_libssl_dir/lib $LDFLAGS"
7402 le_libdir="$ac_cv_libssl_dir/lib"
7403 else
7404 LDFLAGS="-L$ac_cv_libssl_dir $LDFLAGS"
7405 le_libdir="$ac_cv_libssl_dir"
7406 fi
7407 if test -d "$ac_cv_libssl_dir/include" ; then
7408 CPPFLAGS="-I$ac_cv_libssl_dir/include $CPPFLAGS"
7409 else
7410 CPPFLAGS="-I$ac_cv_libssl_dir $CPPFLAGS"
7411 fi
7412 fi
7413
7414 else
7415 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
7416 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418 printf "%s\n" "yes" >&6; }
7419 LIBS="$LIBS $OPENSSL_LIBS" CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
7420 fi
7421 fi
7422
7423 if test "x$enable_static" = "xyes"; then
7424 LIBS="$LIBS -ldl"
7425 LDFLAGS="-static $LDFLAGS"
7426 fi
7427
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethugepagesizes" >&5
7430 printf %s "checking for library containing gethugepagesizes... " >&6; }
7431 if test ${ac_cv_search_gethugepagesizes+y}
7432 then :
7433 printf %s "(cached) " >&6
7434 else case e in #(
7435 e) ac_func_search_save_LIBS=$LIBS
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply.
7442 The 'extern "C"' is for builds by C++ compilers;
7443 although this is not generally supported in C code supporting it here
7444 has little cost and some practical benefit (sr 110532). */
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 char gethugepagesizes (void);
7449 int
7450 main (void)
7451 {
7452 return gethugepagesizes ();
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 for ac_lib in '' hugetlbfs
7458 do
7459 if test -z "$ac_lib"; then
7460 ac_res="none required"
7461 else
7462 ac_res=-l$ac_lib
7463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7464 fi
7465 if ac_fn_c_try_link "$LINENO"
7466 then :
7467 ac_cv_search_gethugepagesizes=$ac_res
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7470 conftest$ac_exeext
7471 if test ${ac_cv_search_gethugepagesizes+y}
7472 then :
7473 break
7474 fi
7475 done
7476 if test ${ac_cv_search_gethugepagesizes+y}
7477 then :
7478
7479 else case e in #(
7480 e) ac_cv_search_gethugepagesizes=no ;;
7481 esac
7482 fi
7483 rm conftest.$ac_ext
7484 LIBS=$ac_func_search_save_LIBS ;;
7485 esac
7486 fi
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethugepagesizes" >&5
7488 printf "%s\n" "$ac_cv_search_gethugepagesizes" >&6; }
7489 ac_res=$ac_cv_search_gethugepagesizes
7490 if test "$ac_res" != no
7491 then :
7492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7493
7494 fi
7495
7496
7497 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7498 if test "x$ac_cv_type__Bool" = xyes
7499 then :
7500
7501 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7502
7503
7504 fi
7505
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
7507 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
7508 if test ${ac_cv_header_stdbool_h+y}
7509 then :
7510 printf %s "(cached) " >&6
7511 else case e in #(
7512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514 #include <stdbool.h>
7515
7516 /* "true" and "false" should be usable in #if expressions and
7517 integer constant expressions, and "bool" should be a valid
7518 type name.
7519
7520 Although C99 requires bool, true, and false to be macros,
7521 C23 and C++11 overrule that, so do not test for that.
7522 Although C99 requires __bool_true_false_are_defined and
7523 _Bool, C23 says they are obsolescent, so do not require
7524 them. */
7525
7526 #if !true
7527 #error "'true' is not true"
7528 #endif
7529 #if true != 1
7530 #error "'true' is not equal to 1"
7531 #endif
7532 char b[true == 1 ? 1 : -1];
7533 char c[true];
7534
7535 #if false
7536 #error "'false' is not false"
7537 #endif
7538 #if false != 0
7539 #error "'false' is not equal to 0"
7540 #endif
7541 char d[false == 0 ? 1 : -1];
7542
7543 enum { e = false, f = true, g = false * true, h = true * 256 };
7544
7545 char i[(bool) 0.5 == true ? 1 : -1];
7546 char j[(bool) 0.0 == false ? 1 : -1];
7547 char k[sizeof (bool) > 0 ? 1 : -1];
7548
7549 struct sb { bool s: 1; bool t; } s;
7550 char l[sizeof s.t > 0 ? 1 : -1];
7551
7552 /* The following fails for
7553 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7554 bool m[h];
7555 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7556 char o[-1 - (bool) 0 < 0 ? 1 : -1];
7557 /* Catch a bug in an HP-UX C compiler. See
7558 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7559 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
7560 */
7561 bool p = true;
7562 bool *pp = &p;
7563
7564 int
7565 main (void)
7566 {
7567
7568 bool ps = &s;
7569 *pp |= p;
7570 *pp |= ! p;
7571
7572 /* Refer to every declared value, so they cannot be
7573 discarded as unused. */
7574 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7575 + !l + !m + !n + !o + !p + !pp + !ps);
7576
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"
7582 then :
7583 ac_cv_header_stdbool_h=yes
7584 else case e in #(
7585 e) ac_cv_header_stdbool_h=no ;;
7586 esac
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7589 esac
7590 fi
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7592 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7593
7594 if test $ac_cv_header_stdbool_h = yes; then
7595
7596 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
7597
7598 fi
7599
7600
7601
7602 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7603 if test "x$ac_cv_header_inttypes_h" = xyes
7604 then :
7605 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
7606
7607 fi
7608
7609
7610 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
7611 if test "x$ac_cv_header_sys_auxv_h" = xyes
7612 then :
7613 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
7614
7615 fi
7616
7617
7618
7619
7620
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sasl_callback_ft" >&5
7622 printf %s "checking for sasl_callback_ft... " >&6; }
7623 if test ${ac_cv_has_sasl_callback_ft+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else case e in #(
7627 e)
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630
7631 #ifdef HAVE_SASL_SASL_H
7632 #include <sasl/sasl.h>
7633 #include <sasl/saslplug.h>
7634 #endif
7635
7636 int
7637 main (void)
7638 {
7639
7640 sasl_callback_ft a_callback;
7641
7642 ;
7643 return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"
7647 then :
7648
7649 ac_cv_has_sasl_callback_ft=yes
7650
7651 else case e in #(
7652 e)
7653 ac_cv_has_sasl_callback_ft=no
7654 ;;
7655 esac
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7658 ;;
7659 esac
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sasl_callback_ft" >&5
7662 printf "%s\n" "$ac_cv_has_sasl_callback_ft" >&6; }
7663 if test $ac_cv_has_sasl_callback_ft = yes; then
7664
7665 printf "%s\n" "#define HAVE_SASL_CALLBACK_FT 1" >>confdefs.h
7666
7667 fi
7668
7669
7670
7671
7672
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for print macros for integers (C99 section 7.8.1)" >&5
7674 printf %s "checking for print macros for integers (C99 section 7.8.1)... " >&6; }
7675 if test ${ac_cv_c_uint64_support+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else case e in #(
7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681
7682 #ifdef HAVE_INTTYPES_H
7683 #include <inttypes.h>
7684 #endif
7685 #include <stdio.h>
7686
7687 int
7688 main (void)
7689 {
7690
7691 uint64_t val = 0;
7692 fprintf(stderr, "%" PRIu64 "\n", val);
7693
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 if ac_fn_c_try_compile "$LINENO"
7699 then :
7700 ac_cv_c_uint64_support=yes
7701 else case e in #(
7702 e) ac_cv_c_uint64_support=no ;;
7703 esac
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 ;;
7707 esac
7708 fi
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_uint64_support" >&5
7710 printf "%s\n" "$ac_cv_c_uint64_support" >&6; }
7711
7712 if test "x$ac_cv_c_uint64_support" = "xno"
7713 then :
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
7715
7716 Failed to use print macros (PRIu) as defined in C99 section 7.8.1.
7717
7718 " >&5
7719 printf "%s\n" "$as_me: WARNING:
7720
7721 Failed to use print macros (PRIu) as defined in C99 section 7.8.1.
7722
7723 " >&2;}
7724 fi
7725
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7727 printf %s "checking for an ANSI C-conforming const... " >&6; }
7728 if test ${ac_cv_c_const+y}
7729 then :
7730 printf %s "(cached) " >&6
7731 else case e in #(
7732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734
7735 int
7736 main (void)
7737 {
7738
7739 #ifndef __cplusplus
7740 /* Ultrix mips cc rejects this sort of thing. */
7741 typedef int charset[2];
7742 const charset cs = { 0, 0 };
7743 /* SunOS 4.1.1 cc rejects this. */
7744 char const *const *pcpcc;
7745 char **ppc;
7746 /* NEC SVR4.0.2 mips cc rejects this. */
7747 struct point {int x, y;};
7748 static struct point const zero = {0,0};
7749 /* IBM XL C 1.02.0.0 rejects this.
7750 It does not let you subtract one const X* pointer from another in
7751 an arm of an if-expression whose if-part is not a constant
7752 expression */
7753 const char *g = "string";
7754 pcpcc = &g + (g ? g-g : 0);
7755 /* HPUX 7.0 cc rejects these. */
7756 ++pcpcc;
7757 ppc = (char**) pcpcc;
7758 pcpcc = (char const *const *) ppc;
7759 { /* SCO 3.2v4 cc rejects this sort of thing. */
7760 char tx;
7761 char *t = &tx;
7762 char const *s = 0 ? (char *) 0 : (char const *) 0;
7763
7764 *t++ = 0;
7765 if (s) return 0;
7766 }
7767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7768 int x[] = {25, 17};
7769 const int *foo = &x[0];
7770 ++foo;
7771 }
7772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7773 typedef const int *iptr;
7774 iptr p = 0;
7775 ++p;
7776 }
7777 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7779 struct s { int j; const int *ap[3]; } bx;
7780 struct s *b = &bx; b->j = 5;
7781 }
7782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7783 const int foo = 10;
7784 if (!foo) return 0;
7785 }
7786 return !cs[0] && !zero.x;
7787 #endif
7788
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"
7794 then :
7795 ac_cv_c_const=yes
7796 else case e in #(
7797 e) ac_cv_c_const=no ;;
7798 esac
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7801 esac
7802 fi
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7804 printf "%s\n" "$ac_cv_c_const" >&6; }
7805 if test $ac_cv_c_const = no; then
7806
7807 printf "%s\n" "#define const /**/" >>confdefs.h
7808
7809 fi
7810
7811
7812
7813
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7815 printf %s "checking for socklen_t... " >&6; }
7816 if test ${ac_cv_c_socklen_t+y}
7817 then :
7818 printf %s "(cached) " >&6
7819 else case e in #(
7820 e)
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823
7824 #include <sys/types.h>
7825 #include <sys/socket.h>
7826
7827 int
7828 main (void)
7829 {
7830
7831 socklen_t foo;
7832
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"
7838 then :
7839
7840 ac_cv_c_socklen_t=yes
7841
7842 else case e in #(
7843 e)
7844 ac_cv_c_socklen_t=no
7845 ;;
7846 esac
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 ;;
7850 esac
7851 fi
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_socklen_t" >&5
7853 printf "%s\n" "$ac_cv_c_socklen_t" >&6; }
7854 if test $ac_cv_c_socklen_t = no; then
7855
7856 printf "%s\n" "#define socklen_t int" >>confdefs.h
7857
7858 fi
7859
7860
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7862 printf %s "checking whether byte ordering is bigendian... " >&6; }
7863 if test ${ac_cv_c_bigendian+y}
7864 then :
7865 printf %s "(cached) " >&6
7866 else case e in #(
7867 e) ac_cv_c_bigendian=unknown
7868 # See if we're dealing with a universal compiler.
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 #ifndef __APPLE_CC__
7872 not a universal capable compiler
7873 #endif
7874 typedef int dummy;
7875
7876 _ACEOF
7877 if ac_fn_c_try_compile "$LINENO"
7878 then :
7879
7880 # Check for potential -arch flags. It is not universal unless
7881 # there are at least two -arch flags with different values.
7882 ac_arch=
7883 ac_prev=
7884 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7885 if test -n "$ac_prev"; then
7886 case $ac_word in
7887 i?86 | x86_64 | ppc | ppc64)
7888 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7889 ac_arch=$ac_word
7890 else
7891 ac_cv_c_bigendian=universal
7892 break
7893 fi
7894 ;;
7895 esac
7896 ac_prev=
7897 elif test "x$ac_word" = "x-arch"; then
7898 ac_prev=arch
7899 fi
7900 done
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7903 if test $ac_cv_c_bigendian = unknown; then
7904 # See if sys/param.h defines the BYTE_ORDER macro.
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907 #include <sys/types.h>
7908 #include <sys/param.h>
7909
7910 int
7911 main (void)
7912 {
7913 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
7914 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
7915 && LITTLE_ENDIAN)
7916 bogus endian macros
7917 #endif
7918
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"
7924 then :
7925 # It does; now see whether it defined to BIG_ENDIAN or not.
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7929 #include <sys/param.h>
7930
7931 int
7932 main (void)
7933 {
7934 #if BYTE_ORDER != BIG_ENDIAN
7935 not big endian
7936 #endif
7937
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"
7943 then :
7944 ac_cv_c_bigendian=yes
7945 else case e in #(
7946 e) ac_cv_c_bigendian=no ;;
7947 esac
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7952 fi
7953 if test $ac_cv_c_bigendian = unknown; then
7954 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 #include <limits.h>
7958
7959 int
7960 main (void)
7961 {
7962 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7963 bogus endian macros
7964 #endif
7965
7966 ;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_compile "$LINENO"
7971 then :
7972 # It does; now see whether it defined to _BIG_ENDIAN or not.
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 #include <limits.h>
7976
7977 int
7978 main (void)
7979 {
7980 #ifndef _BIG_ENDIAN
7981 not big endian
7982 #endif
7983
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"
7989 then :
7990 ac_cv_c_bigendian=yes
7991 else case e in #(
7992 e) ac_cv_c_bigendian=no ;;
7993 esac
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7998 fi
7999 if test $ac_cv_c_bigendian = unknown; then
8000 # Compile a test program.
8001 if test "$cross_compiling" = yes
8002 then :
8003 # Try to guess by grepping values from an object file.
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 unsigned short int ascii_mm[] =
8007 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8008 unsigned short int ascii_ii[] =
8009 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8010 int use_ascii (int i) {
8011 return ascii_mm[i] + ascii_ii[i];
8012 }
8013 unsigned short int ebcdic_ii[] =
8014 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8015 unsigned short int ebcdic_mm[] =
8016 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8017 int use_ebcdic (int i) {
8018 return ebcdic_mm[i] + ebcdic_ii[i];
8019 }
8020 int
8021 main (int argc, char **argv)
8022 {
8023 /* Intimidate the compiler so that it does not
8024 optimize the arrays away. */
8025 char *p = argv[0];
8026 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
8027 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
8028 return use_ascii (argc) == use_ebcdic (*p);
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_link "$LINENO"
8032 then :
8033 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
8034 ac_cv_c_bigendian=yes
8035 fi
8036 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
8037 if test "$ac_cv_c_bigendian" = unknown; then
8038 ac_cv_c_bigendian=no
8039 else
8040 # finding both strings is unlikely to happen, but who knows?
8041 ac_cv_c_bigendian=unknown
8042 fi
8043 fi
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8046 conftest$ac_exeext conftest.$ac_ext
8047 else case e in #(
8048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 $ac_includes_default
8051 int
8052 main (void)
8053 {
8054
8055 /* Are we little or big endian? From Harbison&Steele. */
8056 union
8057 {
8058 long int l;
8059 char c[sizeof (long int)];
8060 } u;
8061 u.l = 1;
8062 return u.c[sizeof (long int) - 1] == 1;
8063
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_run "$LINENO"
8069 then :
8070 ac_cv_c_bigendian=no
8071 else case e in #(
8072 e) ac_cv_c_bigendian=yes ;;
8073 esac
8074 fi
8075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8076 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8077 esac
8078 fi
8079
8080 fi ;;
8081 esac
8082 fi
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8084 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
8085 case $ac_cv_c_bigendian in #(
8086 yes)
8087
8088 printf "%s\n" "#define ENDIAN_BIG 1" >>confdefs.h
8089 ;; #(
8090 no)
8091
8092 printf "%s\n" "#define ENDIAN_LITTLE 1" >>confdefs.h
8093 ;; #(
8094 universal)
8095
8096 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8097
8098 ;; #(
8099 *)
8100 as_fn_error $? "Cannot detect endianness. Must pass ac_cv_c_bigendian={yes,no} to configure." "$LINENO" 5 ;;
8101 esac
8102
8103
8104
8105
8106
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htonll" >&5
8108 printf %s "checking for htonll... " >&6; }
8109 have_htoll="no"
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112
8113 #include <sys/types.h>
8114 #include <netinet/in.h>
8115 #ifdef HAVE_INTTYPES_H
8116 #include <inttypes.h> */
8117 #endif
8118
8119 int
8120 main (void)
8121 {
8122
8123 return htonll(0);
8124
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"
8130 then :
8131
8132 have_htoll="yes"
8133
8134 printf "%s\n" "#define HAVE_HTONLL 1" >>confdefs.h
8135
8136
8137 else case e in #(
8138 e)
8139 have_htoll="no"
8140 ;;
8141 esac
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8144 conftest$ac_exeext conftest.$ac_ext
8145
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_htoll" >&5
8147 printf "%s\n" "$have_htoll" >&6; }
8148
8149
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
8151 printf %s "checking for library containing pthread_create... " >&6; }
8152 if test ${ac_cv_search_pthread_create+y}
8153 then :
8154 printf %s "(cached) " >&6
8155 else case e in #(
8156 e) ac_func_search_save_LIBS=$LIBS
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply.
8163 The 'extern "C"' is for builds by C++ compilers;
8164 although this is not generally supported in C code supporting it here
8165 has little cost and some practical benefit (sr 110532). */
8166 #ifdef __cplusplus
8167 extern "C"
8168 #endif
8169 char pthread_create (void);
8170 int
8171 main (void)
8172 {
8173 return pthread_create ();
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 for ac_lib in '' pthread
8179 do
8180 if test -z "$ac_lib"; then
8181 ac_res="none required"
8182 else
8183 ac_res=-l$ac_lib
8184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8185 fi
8186 if ac_fn_c_try_link "$LINENO"
8187 then :
8188 ac_cv_search_pthread_create=$ac_res
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8191 conftest$ac_exeext
8192 if test ${ac_cv_search_pthread_create+y}
8193 then :
8194 break
8195 fi
8196 done
8197 if test ${ac_cv_search_pthread_create+y}
8198 then :
8199
8200 else case e in #(
8201 e) ac_cv_search_pthread_create=no ;;
8202 esac
8203 fi
8204 rm conftest.$ac_ext
8205 LIBS=$ac_func_search_save_LIBS ;;
8206 esac
8207 fi
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
8209 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
8210 ac_res=$ac_cv_search_pthread_create
8211 if test "$ac_res" != no
8212 then :
8213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214
8215 fi
8216
8217 if test "x$ac_cv_search_pthread_create" = "xno"; then
8218 as_fn_error $? "Can't enable threads without the POSIX thread library." "$LINENO" 5
8219 fi
8220
8221 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
8222 if test "x$ac_cv_func_mlockall" = xyes
8223 then :
8224 printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
8225
8226 fi
8227
8228 ac_fn_c_check_func "$LINENO" "getpagesizes" "ac_cv_func_getpagesizes"
8229 if test "x$ac_cv_func_getpagesizes" = xyes
8230 then :
8231 printf "%s\n" "#define HAVE_GETPAGESIZES 1" >>confdefs.h
8232
8233 fi
8234
8235 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
8236 if test "x$ac_cv_func_sysconf" = xyes
8237 then :
8238 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
8239
8240 fi
8241
8242 ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl"
8243 if test "x$ac_cv_func_memcntl" = xyes
8244 then :
8245 printf "%s\n" "#define HAVE_MEMCNTL 1" >>confdefs.h
8246
8247 fi
8248
8249 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
8250 if test "x$ac_cv_func_clock_gettime" = xyes
8251 then :
8252 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
8253
8254 fi
8255
8256 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
8257 if test "x$ac_cv_func_preadv" = xyes
8258 then :
8259 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
8260
8261 fi
8262
8263 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8264 if test "x$ac_cv_func_pread" = xyes
8265 then :
8266 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
8267
8268 fi
8269
8270 ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
8271 if test "x$ac_cv_func_eventfd" = xyes
8272 then :
8273 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
8274
8275 fi
8276
8277
8278 for ac_func in pthread_setname_np
8279 do :
8280 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
8281 if test "x$ac_cv_func_pthread_setname_np" = xyes
8282 then :
8283 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
8284
8285 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
8286
8287 fi
8288
8289 done
8290
8291 for ac_func in accept4
8292 do :
8293 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
8294 if test "x$ac_cv_func_accept4" = xyes
8295 then :
8296 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
8297
8298 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
8299
8300 fi
8301
8302 done
8303
8304 for ac_func in getopt_long
8305 do :
8306 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
8307 if test "x$ac_cv_func_getopt_long" = xyes
8308 then :
8309 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
8310
8311 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
8312
8313 fi
8314
8315 done
8316
8317
8318
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignment" >&5
8320 printf %s "checking for alignment... " >&6; }
8321 if test ${ac_cv_c_alignment+y}
8322 then :
8323 printf %s "(cached) " >&6
8324 else case e in #(
8325 e)
8326 if test "$cross_compiling" = yes
8327 then :
8328
8329 ac_cv_c_alignment=maybe
8330
8331 else case e in #(
8332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334
8335 #include <stdlib.h>
8336 #include <inttypes.h>
8337 #pragma GCC optimize ("O0")
8338
8339 int
8340 main (void)
8341 {
8342
8343 char *buf = malloc(32);
8344
8345 uint64_t *ptr = (uint64_t*)(buf+2);
8346 // catch sigbus, etc.
8347 *ptr = 0x1;
8348
8349 // catch unaligned word access (ARM cpus)
8350 #ifdef ENDIAN_BIG
8351 #define ALIGNMENT 0x02030405
8352 #else
8353 #define ALIGNMENT 0x05040302
8354 #endif
8355 *(buf + 0) = 1;
8356 *(buf + 1) = 2;
8357 *(buf + 2) = 3;
8358 *(buf + 3) = 4;
8359 *(buf + 4) = 5;
8360 int* i = (int*)(buf+1);
8361 return (ALIGNMENT == *i) ? 0 : 1;
8362
8363 ;
8364 return 0;
8365 }
8366
8367 _ACEOF
8368 if ac_fn_c_try_run "$LINENO"
8369 then :
8370
8371 ac_cv_c_alignment=none
8372
8373 else case e in #(
8374 e)
8375 ac_cv_c_alignment=need
8376 ;;
8377 esac
8378 fi
8379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8380 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8381 esac
8382 fi
8383
8384 ;;
8385 esac
8386 fi
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_alignment" >&5
8388 printf "%s\n" "$ac_cv_c_alignment" >&6; }
8389 if test $ac_cv_c_alignment = need
8390 then :
8391
8392 printf "%s\n" "#define NEED_ALIGN 1" >>confdefs.h
8393
8394 fi
8395 if test $ac_cv_c_alignment = maybe
8396 then :
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Assuming aligned access is required when cross-compiling" >&5
8398 printf "%s\n" "$as_me: WARNING: Assuming aligned access is required when cross-compiling" >&2;}
8399
8400 printf "%s\n" "#define NEED_ALIGN 1" >>confdefs.h
8401
8402 fi
8403
8404
8405 have_gcc_atomics=no
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC atomics" >&5
8407 printf %s "checking for GCC atomics... " >&6; }
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410
8411 int
8412 main (void)
8413 {
8414
8415 unsigned short a;
8416 unsigned short b;
8417 b = __sync_add_and_fetch(&a, 1);
8418 b = __sync_sub_and_fetch(&a, 2);
8419
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_link "$LINENO"
8425 then :
8426 have_gcc_atomics=yes
8427
8428 printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
8429
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8432 conftest$ac_exeext conftest.$ac_ext
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
8434 printf "%s\n" "$have_gcc_atomics" >&6; }
8435
8436 have_gcc_64atomics=no
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC 64bit atomics" >&5
8438 printf %s "checking for GCC 64bit atomics... " >&6; }
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <inttypes.h>
8442
8443 int
8444 main (void)
8445 {
8446
8447 uint64_t a;
8448 uint64_t b;
8449 b = __sync_add_and_fetch(&a, 1);
8450 b = __sync_sub_and_fetch(&a, 2);
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"
8457 then :
8458 have_gcc_64atomics=yes
8459
8460 printf "%s\n" "#define HAVE_GCC_64ATOMICS 1" >>confdefs.h
8461
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8464 conftest$ac_exeext conftest.$ac_ext
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_64atomics" >&5
8466 printf "%s\n" "$have_gcc_64atomics" >&6; }
8467
8468
8469 for ac_func in setppriv
8470 do :
8471 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
8472 if test "x$ac_cv_func_setppriv" = xyes
8473 then :
8474 printf "%s\n" "#define HAVE_SETPPRIV 1" >>confdefs.h
8475
8476 ac_fn_c_check_header_compile "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
8477 if test "x$ac_cv_header_priv_h" = xyes
8478 then :
8479
8480
8481 printf "%s\n" "#define HAVE_DROP_PRIVILEGES 1" >>confdefs.h
8482
8483 build_solaris_privs=yes
8484
8485 fi
8486
8487
8488 fi
8489
8490 done
8491
8492 if test "x$enable_seccomp" = "xyes"
8493 then :
8494
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_rule_add in -lseccomp" >&5
8496 printf %s "checking for seccomp_rule_add in -lseccomp... " >&6; }
8497 if test ${ac_cv_lib_seccomp_seccomp_rule_add+y}
8498 then :
8499 printf %s "(cached) " >&6
8500 else case e in #(
8501 e) ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-lseccomp $LIBS"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505
8506 /* Override any GCC internal prototype to avoid an error.
8507 Use char because int might match the return type of a GCC
8508 builtin and then its argument prototype would still apply.
8509 The 'extern "C"' is for builds by C++ compilers;
8510 although this is not generally supported in C code supporting it here
8511 has little cost and some practical benefit (sr 110532). */
8512 #ifdef __cplusplus
8513 extern "C"
8514 #endif
8515 char seccomp_rule_add (void);
8516 int
8517 main (void)
8518 {
8519 return seccomp_rule_add ();
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 if ac_fn_c_try_link "$LINENO"
8525 then :
8526 ac_cv_lib_seccomp_seccomp_rule_add=yes
8527 else case e in #(
8528 e) ac_cv_lib_seccomp_seccomp_rule_add=no ;;
8529 esac
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8532 conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS ;;
8534 esac
8535 fi
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_rule_add" >&5
8537 printf "%s\n" "$ac_cv_lib_seccomp_seccomp_rule_add" >&6; }
8538 if test "x$ac_cv_lib_seccomp_seccomp_rule_add" = xyes
8539 then :
8540
8541
8542 printf "%s\n" "#define HAVE_DROP_PRIVILEGES 1" >>confdefs.h
8543
8544 build_linux_privs=yes
8545
8546 printf "%s\n" "#define HAVE_DROP_WORKER_PRIVILEGES 1" >>confdefs.h
8547
8548 build_linux_privs=yes
8549
8550 fi
8551
8552
8553 fi
8554
8555
8556 for ac_func in pledge
8557 do :
8558 ac_fn_c_check_func "$LINENO" "pledge" "ac_cv_func_pledge"
8559 if test "x$ac_cv_func_pledge" = xyes
8560 then :
8561 printf "%s\n" "#define HAVE_PLEDGE 1" >>confdefs.h
8562
8563 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
8564 if test "x$ac_cv_header_unistd_h" = xyes
8565 then :
8566
8567
8568 printf "%s\n" "#define HAVE_DROP_PRIVILEGES 1" >>confdefs.h
8569
8570 build_openbsd_privs=yes
8571
8572 fi
8573
8574
8575 fi
8576
8577 done
8578
8579
8580 for ac_func in cap_enter
8581 do :
8582 ac_fn_c_check_func "$LINENO" "cap_enter" "ac_cv_func_cap_enter"
8583 if test "x$ac_cv_func_cap_enter" = xyes
8584 then :
8585 printf "%s\n" "#define HAVE_CAP_ENTER 1" >>confdefs.h
8586
8587 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default"
8588 if test "x$ac_cv_header_sys_capsicum_h" = xyes
8589 then :
8590
8591
8592 printf "%s\n" "#define HAVE_DROP_PRIVILEGES 1" >>confdefs.h
8593
8594 build_freebsd_privs=yes
8595
8596 fi
8597
8598
8599 fi
8600
8601 done
8602
8603
8604 for ac_func in sandbox_init
8605 do :
8606 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
8607 if test "x$ac_cv_func_sandbox_init" = xyes
8608 then :
8609 printf "%s\n" "#define HAVE_SANDBOX_INIT 1" >>confdefs.h
8610
8611 ac_fn_c_check_header_compile "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
8612 if test "x$ac_cv_header_sandbox_h" = xyes
8613 then :
8614
8615
8616 printf "%s\n" "#define HAVE_DROP_PRIVILEGES 1" >>confdefs.h
8617
8618 build_darwin_privs=yes
8619
8620 fi
8621
8622
8623 fi
8624
8625 done
8626
8627
8628
8629 if test "$build_solaris_privs" = "yes"; then
8630 BUILD_SOLARIS_PRIVS_TRUE=
8631 BUILD_SOLARIS_PRIVS_FALSE='#'
8632 else
8633 BUILD_SOLARIS_PRIVS_TRUE='#'
8634 BUILD_SOLARIS_PRIVS_FALSE=
8635 fi
8636
8637 if test "$build_linux_privs" = "yes"; then
8638 BUILD_LINUX_PRIVS_TRUE=
8639 BUILD_LINUX_PRIVS_FALSE='#'
8640 else
8641 BUILD_LINUX_PRIVS_TRUE='#'
8642 BUILD_LINUX_PRIVS_FALSE=
8643 fi
8644
8645 if test "$build_openbsd_privs" = "yes"; then
8646 BUILD_OPENBSD_PRIVS_TRUE=
8647 BUILD_OPENBSD_PRIVS_FALSE='#'
8648 else
8649 BUILD_OPENBSD_PRIVS_TRUE='#'
8650 BUILD_OPENBSD_PRIVS_FALSE=
8651 fi
8652
8653 if test "$build_freebsd_privs" = "yes"; then
8654 BUILD_FREEBSD_PRIVS_TRUE=
8655 BUILD_FREEBSD_PRIVS_FALSE='#'
8656 else
8657 BUILD_FREEBSD_PRIVS_TRUE='#'
8658 BUILD_FREEBSD_PRIVS_FALSE=
8659 fi
8660
8661 if test "$build_darwin_privs" = "yes"; then
8662 BUILD_DARWIN_PRIVS_TRUE=
8663 BUILD_DARWIN_PRIVS_FALSE='#'
8664 else
8665 BUILD_DARWIN_PRIVS_TRUE='#'
8666 BUILD_DARWIN_PRIVS_FALSE=
8667 fi
8668
8669
8670 # Check whether --enable-docs was given.
8671 if test ${enable_docs+y}
8672 then :
8673 enableval=$enable_docs;
8674 fi
8675
8676
8677 # Extract the first word of "xml2rfc", so it can be a program name with args.
8678 set dummy xml2rfc; ac_word=$2
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 printf %s "checking for $ac_word... " >&6; }
8681 if test ${ac_cv_path_XML2RFC+y}
8682 then :
8683 printf %s "(cached) " >&6
8684 else case e in #(
8685 e) case $XML2RFC in
8686 [\\/]* | ?:[\\/]*)
8687 ac_cv_path_XML2RFC="$XML2RFC" # Let the user override the test with a path.
8688 ;;
8689 *)
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693 IFS=$as_save_IFS
8694 case $as_dir in #(((
8695 '') as_dir=./ ;;
8696 */) ;;
8697 *) as_dir=$as_dir/ ;;
8698 esac
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8701 ac_cv_path_XML2RFC="$as_dir$ac_word$ac_exec_ext"
8702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 test -z "$ac_cv_path_XML2RFC" && ac_cv_path_XML2RFC=""no""
8710 ;;
8711 esac ;;
8712 esac
8713 fi
8714 XML2RFC=$ac_cv_path_XML2RFC
8715 if test -n "$XML2RFC"; then
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2RFC" >&5
8717 printf "%s\n" "$XML2RFC" >&6; }
8718 else
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 printf "%s\n" "no" >&6; }
8721 fi
8722
8723
8724 # Extract the first word of "xsltproc", so it can be a program name with args.
8725 set dummy xsltproc; ac_word=$2
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 printf %s "checking for $ac_word... " >&6; }
8728 if test ${ac_cv_path_XSLTPROC+y}
8729 then :
8730 printf %s "(cached) " >&6
8731 else case e in #(
8732 e) case $XSLTPROC in
8733 [\\/]* | ?:[\\/]*)
8734 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
8735 ;;
8736 *)
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740 IFS=$as_save_IFS
8741 case $as_dir in #(((
8742 '') as_dir=./ ;;
8743 */) ;;
8744 *) as_dir=$as_dir/ ;;
8745 esac
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8748 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
8749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752 done
8753 done
8754 IFS=$as_save_IFS
8755
8756 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC=""no""
8757 ;;
8758 esac ;;
8759 esac
8760 fi
8761 XSLTPROC=$ac_cv_path_XSLTPROC
8762 if test -n "$XSLTPROC"; then
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
8764 printf "%s\n" "$XSLTPROC" >&6; }
8765 else
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 printf "%s\n" "no" >&6; }
8768 fi
8769
8770
8771
8772 if test "x$enable_docs" != "xno" -a "x$XML2RFC" != "xno" -a "x$XSLTPROC" != "xno"; then
8773 BUILD_SPECIFICATIONS_TRUE=
8774 BUILD_SPECIFICATIONS_FALSE='#'
8775 else
8776 BUILD_SPECIFICATIONS_TRUE='#'
8777 BUILD_SPECIFICATIONS_FALSE=
8778 fi
8779
8780
8781
8782 if test "x$enable_werror" = "xyes"; then
8783 CFLAGS="$CFLAGS -Werror"
8784 fi
8785
8786 if test "$ICC" = "yes"
8787 then
8788 CFLAGS="$CFLAGS -diag-disable 187 -Wall"
8789
8790 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
8791
8792 elif test "$GCC" = "yes"
8793 then
8794 GCC_VERSION=`$CC -dumpversion`
8795 CFLAGS="$CFLAGS -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
8796 if test "x$enable_asan" = "xyes"; then
8797 CFLAGS="$CFLAGS -fsanitize=address"
8798 fi
8799 case $GCC_VERSION in
8800 4.4.*)
8801 CFLAGS="$CFLAGS -fno-strict-aliasing"
8802 ;;
8803 esac
8804
8805 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
8806
8807 elif test "$SUNCC" = "yes"
8808 then
8809 CFLAGS="$CFLAGS -errfmt=error -errwarn -errshort=tags"
8810 fi
8811
8812 ac_config_files="$ac_config_files Makefile doc/Makefile"
8813
8814 cat >confcache <<\_ACEOF
8815 # This file is a shell script that caches the results of configure
8816 # tests run on this system so they can be shared between configure
8817 # scripts and configure runs, see configure's option --config-cache.
8818 # It is not useful on other systems. If it contains results you don't
8819 # want to keep, you may remove or edit it.
8820 #
8821 # config.status only pays attention to the cache file if you give it
8822 # the --recheck option to rerun configure.
8823 #
8824 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
8825 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
8826 # following values.
8827
8828 _ACEOF
8829
8830 # The following way of writing the cache mishandles newlines in values,
8831 # but we know of no workaround that is simple, portable, and efficient.
8832 # So, we kill variables containing newlines.
8833 # Ultrix sh set writes to stderr and can't be redirected directly,
8834 # and sets the high bit in the cache file unless we assign to the vars.
8835 (
8836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8837 eval ac_val=\$$ac_var
8838 case $ac_val in #(
8839 *${as_nl}*)
8840 case $ac_var in #(
8841 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8842 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8843 esac
8844 case $ac_var in #(
8845 _ | IFS | as_nl) ;; #(
8846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8847 *) { eval $ac_var=; unset $ac_var;} ;;
8848 esac ;;
8849 esac
8850 done
8851
8852 (set) 2>&1 |
8853 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8854 *${as_nl}ac_space=\ *)
8855 # 'set' does not quote correctly, so add quotes: double-quote
8856 # substitution turns \\\\ into \\, and sed turns \\ into \.
8857 sed -n \
8858 "s/'/'\\\\''/g;
8859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8860 ;; #(
8861 *)
8862 # 'set' quotes correctly as required by POSIX, so do not add quotes.
8863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8864 ;;
8865 esac |
8866 sort
8867 ) |
8868 sed '
8869 /^ac_cv_env_/b end
8870 t clear
8871 :clear
8872 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8873 t end
8874 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8875 :end' >>confcache
8876 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8877 if test -w "$cache_file"; then
8878 if test "x$cache_file" != "x/dev/null"; then
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8880 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8881 if test ! -f "$cache_file" || test -h "$cache_file"; then
8882 cat confcache >"$cache_file"
8883 else
8884 case $cache_file in #(
8885 */* | ?:*)
8886 mv -f confcache "$cache_file"$$ &&
8887 mv -f "$cache_file"$$ "$cache_file" ;; #(
8888 *)
8889 mv -f confcache "$cache_file" ;;
8890 esac
8891 fi
8892 fi
8893 else
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8895 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8896 fi
8897 fi
8898 rm -f confcache
8899
8900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8901 # Let make expand exec_prefix.
8902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8903
8904 DEFS=-DHAVE_CONFIG_H
8905
8906 ac_libobjs=
8907 ac_ltlibobjs=
8908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8909 # 1. Remove the extension, and $U if already installed.
8910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8911 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8913 # will be set to the directory where LIBOBJS objects are built.
8914 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8915 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8916 done
8917 LIBOBJS=$ac_libobjs
8918
8919 LTLIBOBJS=$ac_ltlibobjs
8920
8921
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8923 printf %s "checking that generated files are newer than configure... " >&6; }
8924 if test -n "$am_sleep_pid"; then
8925 # Hide warnings about reused PIDs.
8926 wait $am_sleep_pid 2>/dev/null
8927 fi
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8929 printf "%s\n" "done" >&6; }
8930 case $enable_silent_rules in # (((
8931 yes) AM_DEFAULT_VERBOSITY=0;;
8932 no) AM_DEFAULT_VERBOSITY=1;;
8933 esac
8934 if test $am_cv_make_support_nested_variables = yes; then
8935 AM_V='$(V)'
8936 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
8937 else
8938 AM_V=$AM_DEFAULT_VERBOSITY
8939 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8940 fi
8941
8942 if test -n "$EXEEXT"; then
8943 am__EXEEXT_TRUE=
8944 am__EXEEXT_FALSE='#'
8945 else
8946 am__EXEEXT_TRUE='#'
8947 am__EXEEXT_FALSE=
8948 fi
8949
8950 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8951 as_fn_error $? "conditional \"AMDEP\" was never defined.
8952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8953 fi
8954 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8955 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8957 fi
8958 if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
8959 as_fn_error $? "conditional \"DARWIN\" was never defined.
8960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8961 fi
8962 if test -z "${BUILD_DTRACE_TRUE}" && test -z "${BUILD_DTRACE_FALSE}"; then
8963 as_fn_error $? "conditional \"BUILD_DTRACE\" was never defined.
8964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8965 fi
8966 if test -z "${DTRACE_INSTRUMENT_OBJ_TRUE}" && test -z "${DTRACE_INSTRUMENT_OBJ_FALSE}"; then
8967 as_fn_error $? "conditional \"DTRACE_INSTRUMENT_OBJ\" was never defined.
8968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8969 fi
8970 if test -z "${ENABLE_SASL_TRUE}" && test -z "${ENABLE_SASL_FALSE}"; then
8971 as_fn_error $? "conditional \"ENABLE_SASL\" was never defined.
8972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8973 fi
8974 if test -z "${ENABLE_EXTSTORE_TRUE}" && test -z "${ENABLE_EXTSTORE_FALSE}"; then
8975 as_fn_error $? "conditional \"ENABLE_EXTSTORE\" was never defined.
8976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8977 fi
8978 if test -z "${ENABLE_ARM_CRC32_TRUE}" && test -z "${ENABLE_ARM_CRC32_FALSE}"; then
8979 as_fn_error $? "conditional \"ENABLE_ARM_CRC32\" was never defined.
8980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8981 fi
8982 if test -z "${ENABLE_TLS_TRUE}" && test -z "${ENABLE_TLS_FALSE}"; then
8983 as_fn_error $? "conditional \"ENABLE_TLS\" was never defined.
8984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8985 fi
8986 if test -z "${ENABLE_ASAN_TRUE}" && test -z "${ENABLE_ASAN_FALSE}"; then
8987 as_fn_error $? "conditional \"ENABLE_ASAN\" was never defined.
8988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8989 fi
8990 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
8991 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
8992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8993 fi
8994 if test -z "${DISABLE_UNIX_SOCKET_TRUE}" && test -z "${DISABLE_UNIX_SOCKET_FALSE}"; then
8995 as_fn_error $? "conditional \"DISABLE_UNIX_SOCKET\" was never defined.
8996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8997 fi
8998 if test -z "${ENABLE_PROXY_TRUE}" && test -z "${ENABLE_PROXY_FALSE}"; then
8999 as_fn_error $? "conditional \"ENABLE_PROXY\" was never defined.
9000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9001 fi
9002 if test -z "${ENABLE_PROXY_URING_TRUE}" && test -z "${ENABLE_PROXY_URING_FALSE}"; then
9003 as_fn_error $? "conditional \"ENABLE_PROXY_URING\" was never defined.
9004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9005 fi
9006 if test -z "${ENABLE_PROXY_TLS_TRUE}" && test -z "${ENABLE_PROXY_TLS_FALSE}"; then
9007 as_fn_error $? "conditional \"ENABLE_PROXY_TLS\" was never defined.
9008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9009 fi
9010 if test -z "${LARGE_CLIENT_FLAGS_TRUE}" && test -z "${LARGE_CLIENT_FLAGS_FALSE}"; then
9011 as_fn_error $? "conditional \"LARGE_CLIENT_FLAGS\" was never defined.
9012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9013 fi
9014
9015 if test -z "${BUILD_SOLARIS_PRIVS_TRUE}" && test -z "${BUILD_SOLARIS_PRIVS_FALSE}"; then
9016 as_fn_error $? "conditional \"BUILD_SOLARIS_PRIVS\" was never defined.
9017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9018 fi
9019 if test -z "${BUILD_LINUX_PRIVS_TRUE}" && test -z "${BUILD_LINUX_PRIVS_FALSE}"; then
9020 as_fn_error $? "conditional \"BUILD_LINUX_PRIVS\" was never defined.
9021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9022 fi
9023 if test -z "${BUILD_OPENBSD_PRIVS_TRUE}" && test -z "${BUILD_OPENBSD_PRIVS_FALSE}"; then
9024 as_fn_error $? "conditional \"BUILD_OPENBSD_PRIVS\" was never defined.
9025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9026 fi
9027 if test -z "${BUILD_FREEBSD_PRIVS_TRUE}" && test -z "${BUILD_FREEBSD_PRIVS_FALSE}"; then
9028 as_fn_error $? "conditional \"BUILD_FREEBSD_PRIVS\" was never defined.
9029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9030 fi
9031 if test -z "${BUILD_DARWIN_PRIVS_TRUE}" && test -z "${BUILD_DARWIN_PRIVS_FALSE}"; then
9032 as_fn_error $? "conditional \"BUILD_DARWIN_PRIVS\" was never defined.
9033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9034 fi
9035 if test -z "${BUILD_SPECIFICATIONS_TRUE}" && test -z "${BUILD_SPECIFICATIONS_FALSE}"; then
9036 as_fn_error $? "conditional \"BUILD_SPECIFICATIONS\" was never defined.
9037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9038 fi
9039
9040 : "${CONFIG_STATUS=./config.status}"
9041 ac_write_fail=0
9042 ac_clean_files_save=$ac_clean_files
9043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9045 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9046 as_write_fail=0
9047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9048 #! $SHELL
9049 # Generated by $as_me.
9050 # Run this file to recreate the current configuration.
9051 # Compiler output produced by configure, useful for debugging
9052 # configure, is in config.log if it exists.
9053
9054 debug=false
9055 ac_cs_recheck=false
9056 ac_cs_silent=false
9057
9058 SHELL=\${CONFIG_SHELL-$SHELL}
9059 export SHELL
9060 _ASEOF
9061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9062 ## -------------------- ##
9063 ## M4sh Initialization. ##
9064 ## -------------------- ##
9065
9066 # Be more Bourne compatible
9067 DUALCASE=1; export DUALCASE # for MKS sh
9068 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9069 then :
9070 emulate sh
9071 NULLCMD=:
9072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9073 # is contrary to our usage. Disable this feature.
9074 alias -g '${1+"$@"}'='"$@"'
9075 setopt NO_GLOB_SUBST
9076 else case e in #(
9077 e) case `(set -o) 2>/dev/null` in #(
9078 *posix*) :
9079 set -o posix ;; #(
9080 *) :
9081 ;;
9082 esac ;;
9083 esac
9084 fi
9085
9086
9087
9088 # Reset variables that may have inherited troublesome values from
9089 # the environment.
9090
9091 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9092 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9093 # side effect of setting IFS to empty, thus disabling word splitting.)
9094 # Quoting is to prevent editors from complaining about space-tab.
9095 as_nl='
9096 '
9097 export as_nl
9098 IFS=" "" $as_nl"
9099
9100 PS1='$ '
9101 PS2='> '
9102 PS4='+ '
9103
9104 # Ensure predictable behavior from utilities with locale-dependent output.
9105 LC_ALL=C
9106 export LC_ALL
9107 LANGUAGE=C
9108 export LANGUAGE
9109
9110 # We cannot yet rely on "unset" to work, but we need these variables
9111 # to be unset--not just set to an empty or harmless value--now, to
9112 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9113 # also avoids known problems related to "unset" and subshell syntax
9114 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9115 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9116 do eval test \${$as_var+y} \
9117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9118 done
9119
9120 # Ensure that fds 0, 1, and 2 are open.
9121 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9122 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9123 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9124
9125 # The user is always right.
9126 if ${PATH_SEPARATOR+false} :; then
9127 PATH_SEPARATOR=:
9128 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9129 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9130 PATH_SEPARATOR=';'
9131 }
9132 fi
9133
9134
9135 # Find who we are. Look in the path if we contain no directory separator.
9136 as_myself=
9137 case $0 in #((
9138 *[\\/]* ) as_myself=$0 ;;
9139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9141 do
9142 IFS=$as_save_IFS
9143 case $as_dir in #(((
9144 '') as_dir=./ ;;
9145 */) ;;
9146 *) as_dir=$as_dir/ ;;
9147 esac
9148 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9149 done
9150 IFS=$as_save_IFS
9151
9152 ;;
9153 esac
9154 # We did not find ourselves, most probably we were run as 'sh COMMAND'
9155 # in which case we are not to be found in the path.
9156 if test "x$as_myself" = x; then
9157 as_myself=$0
9158 fi
9159 if test ! -f "$as_myself"; then
9160 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9161 exit 1
9162 fi
9163
9164
9165
9166 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9167 # ----------------------------------------
9168 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9169 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9170 # script with STATUS, using 1 if that was 0.
9171 as_fn_error ()
9172 {
9173 as_status=$1; test $as_status -eq 0 && as_status=1
9174 if test "$4"; then
9175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9177 fi
9178 printf "%s\n" "$as_me: error: $2" >&2
9179 as_fn_exit $as_status
9180 } # as_fn_error
9181
9182
9183 # as_fn_set_status STATUS
9184 # -----------------------
9185 # Set $? to STATUS, without forking.
9186 as_fn_set_status ()
9187 {
9188 return $1
9189 } # as_fn_set_status
9190
9191 # as_fn_exit STATUS
9192 # -----------------
9193 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9194 as_fn_exit ()
9195 {
9196 set +e
9197 as_fn_set_status $1
9198 exit $1
9199 } # as_fn_exit
9200
9201 # as_fn_unset VAR
9202 # ---------------
9203 # Portably unset VAR.
9204 as_fn_unset ()
9205 {
9206 { eval $1=; unset $1;}
9207 }
9208 as_unset=as_fn_unset
9209
9210 # as_fn_append VAR VALUE
9211 # ----------------------
9212 # Append the text in VALUE to the end of the definition contained in VAR. Take
9213 # advantage of any shell optimizations that allow amortized linear growth over
9214 # repeated appends, instead of the typical quadratic growth present in naive
9215 # implementations.
9216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9217 then :
9218 eval 'as_fn_append ()
9219 {
9220 eval $1+=\$2
9221 }'
9222 else case e in #(
9223 e) as_fn_append ()
9224 {
9225 eval $1=\$$1\$2
9226 } ;;
9227 esac
9228 fi # as_fn_append
9229
9230 # as_fn_arith ARG...
9231 # ------------------
9232 # Perform arithmetic evaluation on the ARGs, and store the result in the
9233 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9234 # must be portable across $(()) and expr.
9235 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9236 then :
9237 eval 'as_fn_arith ()
9238 {
9239 as_val=$(( $* ))
9240 }'
9241 else case e in #(
9242 e) as_fn_arith ()
9243 {
9244 as_val=`expr "$@" || test $? -eq 1`
9245 } ;;
9246 esac
9247 fi # as_fn_arith
9248
9249
9250 if expr a : '\(a\)' >/dev/null 2>&1 &&
9251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9252 as_expr=expr
9253 else
9254 as_expr=false
9255 fi
9256
9257 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9258 as_basename=basename
9259 else
9260 as_basename=false
9261 fi
9262
9263 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9264 as_dirname=dirname
9265 else
9266 as_dirname=false
9267 fi
9268
9269 as_me=`$as_basename -- "$0" ||
9270 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9271 X"$0" : 'X\(//\)$' \| \
9272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9273 printf "%s\n" X/"$0" |
9274 sed '/^.*\/\([^/][^/]*\)\/*$/{
9275 s//\1/
9276 q
9277 }
9278 /^X\/\(\/\/\)$/{
9279 s//\1/
9280 q
9281 }
9282 /^X\/\(\/\).*/{
9283 s//\1/
9284 q
9285 }
9286 s/.*/./; q'`
9287
9288 # Avoid depending upon Character Ranges.
9289 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9290 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9291 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9292 as_cr_digits='0123456789'
9293 as_cr_alnum=$as_cr_Letters$as_cr_digits
9294
9295
9296 # Determine whether it's possible to make 'echo' print without a newline.
9297 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9298 # for compatibility with existing Makefiles.
9299 ECHO_C= ECHO_N= ECHO_T=
9300 case `echo -n x` in #(((((
9301 -n*)
9302 case `echo 'xy\c'` in
9303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9304 xy) ECHO_C='\c';;
9305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9306 ECHO_T=' ';;
9307 esac;;
9308 *)
9309 ECHO_N='-n';;
9310 esac
9311
9312 # For backward compatibility with old third-party macros, we provide
9313 # the shell variables $as_echo and $as_echo_n. New code should use
9314 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9315 as_echo='printf %s\n'
9316 as_echo_n='printf %s'
9317
9318 rm -f conf$$ conf$$.exe conf$$.file
9319 if test -d conf$$.dir; then
9320 rm -f conf$$.dir/conf$$.file
9321 else
9322 rm -f conf$$.dir
9323 mkdir conf$$.dir 2>/dev/null
9324 fi
9325 if (echo >conf$$.file) 2>/dev/null; then
9326 if ln -s conf$$.file conf$$ 2>/dev/null; then
9327 as_ln_s='ln -s'
9328 # ... but there are two gotchas:
9329 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
9330 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
9331 # In both cases, we have to default to 'cp -pR'.
9332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9333 as_ln_s='cp -pR'
9334 elif ln conf$$.file conf$$ 2>/dev/null; then
9335 as_ln_s=ln
9336 else
9337 as_ln_s='cp -pR'
9338 fi
9339 else
9340 as_ln_s='cp -pR'
9341 fi
9342 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9343 rmdir conf$$.dir 2>/dev/null
9344
9345
9346 # as_fn_mkdir_p
9347 # -------------
9348 # Create "$as_dir" as a directory, including parents if necessary.
9349 as_fn_mkdir_p ()
9350 {
9351
9352 case $as_dir in #(
9353 -*) as_dir=./$as_dir;;
9354 esac
9355 test -d "$as_dir" || eval $as_mkdir_p || {
9356 as_dirs=
9357 while :; do
9358 case $as_dir in #(
9359 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9360 *) as_qdir=$as_dir;;
9361 esac
9362 as_dirs="'$as_qdir' $as_dirs"
9363 as_dir=`$as_dirname -- "$as_dir" ||
9364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9365 X"$as_dir" : 'X\(//\)[^/]' \| \
9366 X"$as_dir" : 'X\(//\)$' \| \
9367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9368 printf "%s\n" X"$as_dir" |
9369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9370 s//\1/
9371 q
9372 }
9373 /^X\(\/\/\)[^/].*/{
9374 s//\1/
9375 q
9376 }
9377 /^X\(\/\/\)$/{
9378 s//\1/
9379 q
9380 }
9381 /^X\(\/\).*/{
9382 s//\1/
9383 q
9384 }
9385 s/.*/./; q'`
9386 test -d "$as_dir" && break
9387 done
9388 test -z "$as_dirs" || eval "mkdir $as_dirs"
9389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9390
9391
9392 } # as_fn_mkdir_p
9393 if mkdir -p . 2>/dev/null; then
9394 as_mkdir_p='mkdir -p "$as_dir"'
9395 else
9396 test -d ./-p && rmdir ./-p
9397 as_mkdir_p=false
9398 fi
9399
9400
9401 # as_fn_executable_p FILE
9402 # -----------------------
9403 # Test if FILE is an executable regular file.
9404 as_fn_executable_p ()
9405 {
9406 test -f "$1" && test -x "$1"
9407 } # as_fn_executable_p
9408 as_test_x='test -x'
9409 as_executable_p=as_fn_executable_p
9410
9411 # Sed expression to map a string onto a valid CPP name.
9412 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9413 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
9414
9415 # Sed expression to map a string onto a valid variable name.
9416 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9417 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
9418
9419
9420 exec 6>&1
9421 ## ----------------------------------- ##
9422 ## Main body of $CONFIG_STATUS script. ##
9423 ## ----------------------------------- ##
9424 _ASEOF
9425 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9426
9427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9428 # Save the log message, to keep $0 and so on meaningful, and to
9429 # report actual input values of CONFIG_FILES etc. instead of their
9430 # values after options handling.
9431 ac_log="
9432 This file was extended by memcached $as_me 1.6.45, which was
9433 generated by GNU Autoconf 2.72. Invocation command line was
9434
9435 CONFIG_FILES = $CONFIG_FILES
9436 CONFIG_HEADERS = $CONFIG_HEADERS
9437 CONFIG_LINKS = $CONFIG_LINKS
9438 CONFIG_COMMANDS = $CONFIG_COMMANDS
9439 $ $0 $@
9440
9441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9442 "
9443
9444 _ACEOF
9445
9446 case $ac_config_files in *"
9447 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9448 esac
9449
9450 case $ac_config_headers in *"
9451 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9452 esac
9453
9454
9455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9456 # Files that config.status was made for.
9457 config_files="$ac_config_files"
9458 config_headers="$ac_config_headers"
9459 config_commands="$ac_config_commands"
9460
9461 _ACEOF
9462
9463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9464 ac_cs_usage="\
9465 '$as_me' instantiates files and other configuration actions
9466 from templates according to the current configuration. Unless the files
9467 and actions are specified as TAGs, all are instantiated by default.
9468
9469 Usage: $0 [OPTION]... [TAG]...
9470
9471 -h, --help print this help, then exit
9472 -V, --version print version number and configuration settings, then exit
9473 --config print configuration, then exit
9474 -q, --quiet, --silent
9475 do not print progress messages
9476 -d, --debug don't remove temporary files
9477 --recheck update $as_me by reconfiguring in the same conditions
9478 --file=FILE[:TEMPLATE]
9479 instantiate the configuration file FILE
9480 --header=FILE[:TEMPLATE]
9481 instantiate the configuration header FILE
9482
9483 Configuration files:
9484 $config_files
9485
9486 Configuration headers:
9487 $config_headers
9488
9489 Configuration commands:
9490 $config_commands
9491
9492 Report bugs to <[email protected]>."
9493
9494 _ACEOF
9495 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9496 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9498 ac_cs_config='$ac_cs_config_escaped'
9499 ac_cs_version="\\
9500 memcached config.status 1.6.45
9501 configured by $0, generated by GNU Autoconf 2.72,
9502 with options \\"\$ac_cs_config\\"
9503
9504 Copyright (C) 2023 Free Software Foundation, Inc.
9505 This config.status script is free software; the Free Software Foundation
9506 gives unlimited permission to copy, distribute and modify it."
9507
9508 ac_pwd='$ac_pwd'
9509 srcdir='$srcdir'
9510 INSTALL='$INSTALL'
9511 MKDIR_P='$MKDIR_P'
9512 AWK='$AWK'
9513 test -n "\$AWK" || AWK=awk
9514 _ACEOF
9515
9516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9517 # The default lists apply if the user does not specify any file.
9518 ac_need_defaults=:
9519 while test $# != 0
9520 do
9521 case $1 in
9522 --*=?*)
9523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9525 ac_shift=:
9526 ;;
9527 --*=)
9528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9529 ac_optarg=
9530 ac_shift=:
9531 ;;
9532 *)
9533 ac_option=$1
9534 ac_optarg=$2
9535 ac_shift=shift
9536 ;;
9537 esac
9538
9539 case $ac_option in
9540 # Handling of the options.
9541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9542 ac_cs_recheck=: ;;
9543 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9544 printf "%s\n" "$ac_cs_version"; exit ;;
9545 --config | --confi | --conf | --con | --co | --c )
9546 printf "%s\n" "$ac_cs_config"; exit ;;
9547 --debug | --debu | --deb | --de | --d | -d )
9548 debug=: ;;
9549 --file | --fil | --fi | --f )
9550 $ac_shift
9551 case $ac_optarg in
9552 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9553 '') as_fn_error $? "missing file argument" ;;
9554 esac
9555 as_fn_append CONFIG_FILES " '$ac_optarg'"
9556 ac_need_defaults=false;;
9557 --header | --heade | --head | --hea )
9558 $ac_shift
9559 case $ac_optarg in
9560 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9561 esac
9562 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9563 ac_need_defaults=false;;
9564 --he | --h)
9565 # Conflict between --help and --header
9566 as_fn_error $? "ambiguous option: '$1'
9567 Try '$0 --help' for more information.";;
9568 --help | --hel | -h )
9569 printf "%s\n" "$ac_cs_usage"; exit ;;
9570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9572 ac_cs_silent=: ;;
9573
9574 # This is an error.
9575 -*) as_fn_error $? "unrecognized option: '$1'
9576 Try '$0 --help' for more information." ;;
9577
9578 *) as_fn_append ac_config_targets " $1"
9579 ac_need_defaults=false ;;
9580
9581 esac
9582 shift
9583 done
9584
9585 ac_configure_extra_args=
9586
9587 if $ac_cs_silent; then
9588 exec 6>/dev/null
9589 ac_configure_extra_args="$ac_configure_extra_args --silent"
9590 fi
9591
9592 _ACEOF
9593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9594 if \$ac_cs_recheck; then
9595 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9596 shift
9597 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9598 CONFIG_SHELL='$SHELL'
9599 export CONFIG_SHELL
9600 exec "\$@"
9601 fi
9602
9603 _ACEOF
9604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9605 exec 5>>config.log
9606 {
9607 echo
9608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9609 ## Running $as_me. ##
9610 _ASBOX
9611 printf "%s\n" "$ac_log"
9612 } >&5
9613
9614 _ACEOF
9615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9616 #
9617 # INIT-COMMANDS
9618 #
9619 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9620
9621 _ACEOF
9622
9623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9624
9625 # Handling of arguments.
9626 for ac_config_target in $ac_config_targets
9627 do
9628 case $ac_config_target in
9629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9631 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9632 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9633
9634 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
9635 esac
9636 done
9637
9638
9639 # If the user did not use the arguments to specify the items to instantiate,
9640 # then the envvar interface is used. Set only those that are not.
9641 # We use the long form for the default assignment because of an extremely
9642 # bizarre bug on SunOS 4.1.3.
9643 if $ac_need_defaults; then
9644 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9645 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9646 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9647 fi
9648
9649 # Have a temporary directory for convenience. Make it in the build tree
9650 # simply because there is no reason against having it here, and in addition,
9651 # creating and moving files from /tmp can sometimes cause problems.
9652 # Hook for its removal unless debugging.
9653 # Note that there is a small window in which the directory will not be cleaned:
9654 # after its creation but before its name has been assigned to '$tmp'.
9655 $debug ||
9656 {
9657 tmp= ac_tmp=
9658 trap 'exit_status=$?
9659 : "${ac_tmp:=$tmp}"
9660 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9661 ' 0
9662 trap 'as_fn_exit 1' 1 2 13 15
9663 }
9664 # Create a (secure) tmp directory for tmp files.
9665
9666 {
9667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9668 test -d "$tmp"
9669 } ||
9670 {
9671 tmp=./conf$$-$RANDOM
9672 (umask 077 && mkdir "$tmp")
9673 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9674 ac_tmp=$tmp
9675
9676 # Set up the scripts for CONFIG_FILES section.
9677 # No need to generate them if there are no CONFIG_FILES.
9678 # This happens for instance with './config.status config.h'.
9679 if test -n "$CONFIG_FILES"; then
9680
9681
9682 ac_cr=`echo X | tr X '\015'`
9683 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9684 # But we know of no other shell where ac_cr would be empty at this
9685 # point, so we can use a bashism as a fallback.
9686 if test "x$ac_cr" = x; then
9687 eval ac_cr=\$\'\\r\'
9688 fi
9689 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9690 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9691 ac_cs_awk_cr='\\r'
9692 else
9693 ac_cs_awk_cr=$ac_cr
9694 fi
9695
9696 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9697 _ACEOF
9698
9699
9700 {
9701 echo "cat >conf$$subs.awk <<_ACEOF" &&
9702 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9703 echo "_ACEOF"
9704 } >conf$$subs.sh ||
9705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9706 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9707 ac_delim='%!_!# '
9708 for ac_last_try in false false false false false :; do
9709 . ./conf$$subs.sh ||
9710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9711
9712 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9713 if test $ac_delim_n = $ac_delim_num; then
9714 break
9715 elif $ac_last_try; then
9716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9717 else
9718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9719 fi
9720 done
9721 rm -f conf$$subs.sh
9722
9723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9724 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9725 _ACEOF
9726 sed -n '
9727 h
9728 s/^/S["/; s/!.*/"]=/
9729 p
9730 g
9731 s/^[^!]*!//
9732 :repl
9733 t repl
9734 s/'"$ac_delim"'$//
9735 t delim
9736 :nl
9737 h
9738 s/\(.\{148\}\)..*/\1/
9739 t more1
9740 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9741 p
9742 n
9743 b repl
9744 :more1
9745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9746 p
9747 g
9748 s/.\{148\}//
9749 t nl
9750 :delim
9751 h
9752 s/\(.\{148\}\)..*/\1/
9753 t more2
9754 s/["\\]/\\&/g; s/^/"/; s/$/"/
9755 p
9756 b
9757 :more2
9758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9759 p
9760 g
9761 s/.\{148\}//
9762 t delim
9763 ' <conf$$subs.awk | sed '
9764 /^[^""]/{
9765 N
9766 s/\n//
9767 }
9768 ' >>$CONFIG_STATUS || ac_write_fail=1
9769 rm -f conf$$subs.awk
9770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9771 _ACAWK
9772 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9773 for (key in S) S_is_set[key] = 1
9774 FS = ""
9775
9776 }
9777 {
9778 line = $ 0
9779 nfields = split(line, field, "@")
9780 substed = 0
9781 len = length(field[1])
9782 for (i = 2; i < nfields; i++) {
9783 key = field[i]
9784 keylen = length(key)
9785 if (S_is_set[key]) {
9786 value = S[key]
9787 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9788 len += length(value) + length(field[++i])
9789 substed = 1
9790 } else
9791 len += 1 + keylen
9792 }
9793
9794 print line
9795 }
9796
9797 _ACAWK
9798 _ACEOF
9799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9800 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9801 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9802 else
9803 cat
9804 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9805 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9806 _ACEOF
9807
9808 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9809 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9810 # trailing colons and then remove the whole line if VPATH becomes empty
9811 # (actually we leave an empty line to preserve line numbers).
9812 if test "x$srcdir" = x.; then
9813 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9814 h
9815 s///
9816 s/^/:/
9817 s/[ ]*$/:/
9818 s/:\$(srcdir):/:/g
9819 s/:\${srcdir}:/:/g
9820 s/:@srcdir@:/:/g
9821 s/^:*//
9822 s/:*$//
9823 x
9824 s/\(=[ ]*\).*/\1/
9825 G
9826 s/\n//
9827 s/^[^=]*=[ ]*$//
9828 }'
9829 fi
9830
9831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9832 fi # test -n "$CONFIG_FILES"
9833
9834 # Set up the scripts for CONFIG_HEADERS section.
9835 # No need to generate them if there are no CONFIG_HEADERS.
9836 # This happens for instance with './config.status Makefile'.
9837 if test -n "$CONFIG_HEADERS"; then
9838 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9839 BEGIN {
9840 _ACEOF
9841
9842 # Transform confdefs.h into an awk script 'defines.awk', embedded as
9843 # here-document in config.status, that substitutes the proper values into
9844 # config.h.in to produce config.h.
9845
9846 # Create a delimiter string that does not exist in confdefs.h, to ease
9847 # handling of long lines.
9848 ac_delim='%!_!# '
9849 for ac_last_try in false false :; do
9850 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9851 if test -z "$ac_tt"; then
9852 break
9853 elif $ac_last_try; then
9854 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9855 else
9856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9857 fi
9858 done
9859
9860 # For the awk script, D is an array of macro values keyed by name,
9861 # likewise P contains macro parameters if any. Preserve backslash
9862 # newline sequences.
9863
9864 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9865 sed -n '
9866 s/.\{148\}/&'"$ac_delim"'/g
9867 t rset
9868 :rset
9869 s/^[ ]*#[ ]*define[ ][ ]*/ /
9870 t def
9871 d
9872 :def
9873 s/\\$//
9874 t bsnl
9875 s/["\\]/\\&/g
9876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9877 D["\1"]=" \3"/p
9878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9879 d
9880 :bsnl
9881 s/["\\]/\\&/g
9882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9883 D["\1"]=" \3\\\\\\n"\\/p
9884 t cont
9885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9886 t cont
9887 d
9888 :cont
9889 n
9890 s/.\{148\}/&'"$ac_delim"'/g
9891 t clear
9892 :clear
9893 s/\\$//
9894 t bsnlc
9895 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9896 d
9897 :bsnlc
9898 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9899 b cont
9900 ' <confdefs.h | sed '
9901 s/'"$ac_delim"'/"\\\
9902 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9903
9904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9905 for (key in D) D_is_set[key] = 1
9906 FS = ""
9907 }
9908 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9909 line = \$ 0
9910 split(line, arg, " ")
9911 if (arg[1] == "#") {
9912 defundef = arg[2]
9913 mac1 = arg[3]
9914 } else {
9915 defundef = substr(arg[1], 2)
9916 mac1 = arg[2]
9917 }
9918 split(mac1, mac2, "(") #)
9919 macro = mac2[1]
9920 prefix = substr(line, 1, index(line, defundef) - 1)
9921 if (D_is_set[macro]) {
9922 # Preserve the white space surrounding the "#".
9923 print prefix "define", macro P[macro] D[macro]
9924 next
9925 } else {
9926 # Replace #undef with comments. This is necessary, for example,
9927 # in the case of _POSIX_SOURCE, which is predefined and required
9928 # on some systems where configure will not decide to define it.
9929 if (defundef == "undef") {
9930 print "/*", prefix defundef, macro, "*/"
9931 next
9932 }
9933 }
9934 }
9935 { print }
9936 _ACAWK
9937 _ACEOF
9938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9939 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9940 fi # test -n "$CONFIG_HEADERS"
9941
9942
9943 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9944 shift
9945 for ac_tag
9946 do
9947 case $ac_tag in
9948 :[FHLC]) ac_mode=$ac_tag; continue;;
9949 esac
9950 case $ac_mode$ac_tag in
9951 :[FHL]*:*);;
9952 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
9953 :[FH]-) ac_tag=-:-;;
9954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9955 esac
9956 ac_save_IFS=$IFS
9957 IFS=:
9958 set x $ac_tag
9959 IFS=$ac_save_IFS
9960 shift
9961 ac_file=$1
9962 shift
9963
9964 case $ac_mode in
9965 :L) ac_source=$1;;
9966 :[FH])
9967 ac_file_inputs=
9968 for ac_f
9969 do
9970 case $ac_f in
9971 -) ac_f="$ac_tmp/stdin";;
9972 *) # Look for the file first in the build tree, then in the source tree
9973 # (if the path is not absolute). The absolute path cannot be DOS-style,
9974 # because $ac_f cannot contain ':'.
9975 test -f "$ac_f" ||
9976 case $ac_f in
9977 [\\/$]*) false;;
9978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9979 esac ||
9980 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
9981 esac
9982 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9983 as_fn_append ac_file_inputs " '$ac_f'"
9984 done
9985
9986 # Let's still pretend it is 'configure' which instantiates (i.e., don't
9987 # use $as_me), people would be surprised to read:
9988 # /* config.h. Generated by config.status. */
9989 configure_input='Generated from '`
9990 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9991 `' by configure.'
9992 if test x"$ac_file" != x-; then
9993 configure_input="$ac_file. $configure_input"
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9995 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9996 fi
9997 # Neutralize special characters interpreted by sed in replacement strings.
9998 case $configure_input in #(
9999 *\&* | *\|* | *\\* )
10000 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10001 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10002 *) ac_sed_conf_input=$configure_input;;
10003 esac
10004
10005 case $ac_tag in
10006 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10008 esac
10009 ;;
10010 esac
10011
10012 ac_dir=`$as_dirname -- "$ac_file" ||
10013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10014 X"$ac_file" : 'X\(//\)[^/]' \| \
10015 X"$ac_file" : 'X\(//\)$' \| \
10016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10017 printf "%s\n" X"$ac_file" |
10018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10019 s//\1/
10020 q
10021 }
10022 /^X\(\/\/\)[^/].*/{
10023 s//\1/
10024 q
10025 }
10026 /^X\(\/\/\)$/{
10027 s//\1/
10028 q
10029 }
10030 /^X\(\/\).*/{
10031 s//\1/
10032 q
10033 }
10034 s/.*/./; q'`
10035 as_dir="$ac_dir"; as_fn_mkdir_p
10036 ac_builddir=.
10037
10038 case "$ac_dir" in
10039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10040 *)
10041 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10042 # A ".." for each directory in $ac_dir_suffix.
10043 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10044 case $ac_top_builddir_sub in
10045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10047 esac ;;
10048 esac
10049 ac_abs_top_builddir=$ac_pwd
10050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10051 # for backward compatibility:
10052 ac_top_builddir=$ac_top_build_prefix
10053
10054 case $srcdir in
10055 .) # We are building in place.
10056 ac_srcdir=.
10057 ac_top_srcdir=$ac_top_builddir_sub
10058 ac_abs_top_srcdir=$ac_pwd ;;
10059 [\\/]* | ?:[\\/]* ) # Absolute name.
10060 ac_srcdir=$srcdir$ac_dir_suffix;
10061 ac_top_srcdir=$srcdir
10062 ac_abs_top_srcdir=$srcdir ;;
10063 *) # Relative name.
10064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10065 ac_top_srcdir=$ac_top_build_prefix$srcdir
10066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10067 esac
10068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10069
10070
10071 case $ac_mode in
10072 :F)
10073 #
10074 # CONFIG_FILE
10075 #
10076
10077 case $INSTALL in
10078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10080 esac
10081 ac_MKDIR_P=$MKDIR_P
10082 case $MKDIR_P in
10083 [\\/$]* | ?:[\\/]* ) ;;
10084 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10085 esac
10086 _ACEOF
10087
10088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10089 # If the template does not know about datarootdir, expand it.
10090 # FIXME: This hack should be removed a few years after 2.60.
10091 ac_datarootdir_hack=; ac_datarootdir_seen=
10092 ac_sed_dataroot='
10093 /datarootdir/ {
10094 p
10095 q
10096 }
10097 /@datadir@/p
10098 /@docdir@/p
10099 /@infodir@/p
10100 /@localedir@/p
10101 /@mandir@/p'
10102 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10103 *datarootdir*) ac_datarootdir_seen=yes;;
10104 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10106 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10107 _ACEOF
10108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10109 ac_datarootdir_hack='
10110 s&@datadir@&$datadir&g
10111 s&@docdir@&$docdir&g
10112 s&@infodir@&$infodir&g
10113 s&@localedir@&$localedir&g
10114 s&@mandir@&$mandir&g
10115 s&\\\${datarootdir}&$datarootdir&g' ;;
10116 esac
10117 _ACEOF
10118
10119 # Neutralize VPATH when '$srcdir' = '.'.
10120 # Shell code in configure.ac might set extrasub.
10121 # FIXME: do we really want to maintain this feature?
10122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10123 ac_sed_extra="$ac_vpsub
10124 $extrasub
10125 _ACEOF
10126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10127 :t
10128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10129 s|@configure_input@|$ac_sed_conf_input|;t t
10130 s&@top_builddir@&$ac_top_builddir_sub&;t t
10131 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10132 s&@srcdir@&$ac_srcdir&;t t
10133 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10134 s&@top_srcdir@&$ac_top_srcdir&;t t
10135 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10136 s&@builddir@&$ac_builddir&;t t
10137 s&@abs_builddir@&$ac_abs_builddir&;t t
10138 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10139 s&@INSTALL@&$ac_INSTALL&;t t
10140 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10141 $ac_datarootdir_hack
10142 "
10143 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10144 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10145
10146 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10147 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10149 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10151 which seems to be undefined. Please make sure it is defined" >&5
10152 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10153 which seems to be undefined. Please make sure it is defined" >&2;}
10154
10155 rm -f "$ac_tmp/stdin"
10156 case $ac_file in
10157 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10158 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10159 esac \
10160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10161 ;;
10162 :H)
10163 #
10164 # CONFIG_HEADER
10165 #
10166 if test x"$ac_file" != x-; then
10167 {
10168 printf "%s\n" "/* $configure_input */" >&1 \
10169 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10170 } >"$ac_tmp/config.h" \
10171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10172 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10174 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10175 else
10176 rm -f "$ac_file"
10177 mv "$ac_tmp/config.h" "$ac_file" \
10178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10179 fi
10180 else
10181 printf "%s\n" "/* $configure_input */" >&1 \
10182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10183 || as_fn_error $? "could not create -" "$LINENO" 5
10184 fi
10185 # Compute "$ac_file"'s index in $config_headers.
10186 _am_arg="$ac_file"
10187 _am_stamp_count=1
10188 for _am_header in $config_headers :; do
10189 case $_am_header in
10190 $_am_arg | $_am_arg:* )
10191 break ;;
10192 * )
10193 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10194 esac
10195 done
10196 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10197 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10198 X"$_am_arg" : 'X\(//\)[^/]' \| \
10199 X"$_am_arg" : 'X\(//\)$' \| \
10200 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10201 printf "%s\n" X"$_am_arg" |
10202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10203 s//\1/
10204 q
10205 }
10206 /^X\(\/\/\)[^/].*/{
10207 s//\1/
10208 q
10209 }
10210 /^X\(\/\/\)$/{
10211 s//\1/
10212 q
10213 }
10214 /^X\(\/\).*/{
10215 s//\1/
10216 q
10217 }
10218 s/.*/./; q'`/stamp-h$_am_stamp_count
10219 ;;
10220
10221 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10222 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
10223 ;;
10224 esac
10225
10226
10227 case $ac_file$ac_mode in
10228 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10229 # Older Autoconf quotes --file arguments for eval, but not when files
10230 # are listed without --file. Let's play safe and only enable the eval
10231 # if we detect the quoting.
10232 # TODO: see whether this extra hack can be removed once we start
10233 # requiring Autoconf 2.70 or later.
10234 case $CONFIG_FILES in #(
10235 *\'*) :
10236 eval set x "$CONFIG_FILES" ;; #(
10237 *) :
10238 set x $CONFIG_FILES ;; #(
10239 *) :
10240 ;;
10241 esac
10242 shift
10243 # Used to flag and report bootstrapping failures.
10244 am_rc=0
10245 for am_mf
10246 do
10247 # Strip MF so we end up with the name of the file.
10248 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
10249 # Check whether this is an Automake generated Makefile which includes
10250 # dependency-tracking related rules and includes.
10251 # Grep'ing the whole file directly is not great: AIX grep has a line
10252 # limit of 2048, but all sed's we know have understand at least 4000.
10253 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
10254 || continue
10255 am_dirpart=`$as_dirname -- "$am_mf" ||
10256 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10257 X"$am_mf" : 'X\(//\)[^/]' \| \
10258 X"$am_mf" : 'X\(//\)$' \| \
10259 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10260 printf "%s\n" X"$am_mf" |
10261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10262 s//\1/
10263 q
10264 }
10265 /^X\(\/\/\)[^/].*/{
10266 s//\1/
10267 q
10268 }
10269 /^X\(\/\/\)$/{
10270 s//\1/
10271 q
10272 }
10273 /^X\(\/\).*/{
10274 s//\1/
10275 q
10276 }
10277 s/.*/./; q'`
10278 am_filepart=`$as_basename -- "$am_mf" ||
10279 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
10280 X"$am_mf" : 'X\(//\)$' \| \
10281 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10282 printf "%s\n" X/"$am_mf" |
10283 sed '/^.*\/\([^/][^/]*\)\/*$/{
10284 s//\1/
10285 q
10286 }
10287 /^X\/\(\/\/\)$/{
10288 s//\1/
10289 q
10290 }
10291 /^X\/\(\/\).*/{
10292 s//\1/
10293 q
10294 }
10295 s/.*/./; q'`
10296 { echo "$as_me:$LINENO: cd "$am_dirpart" \
10297 && sed -e '/# am--include-marker/d' "$am_filepart" \
10298 | $MAKE -f - am--depfiles" >&5
10299 (cd "$am_dirpart" \
10300 && sed -e '/# am--include-marker/d' "$am_filepart" \
10301 | $MAKE -f - am--depfiles) >&5 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } || am_rc=$?
10305 done
10306 if test $am_rc -ne 0; then
10307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10308 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10309 as_fn_error $? "Something went wrong bootstrapping makefile fragments
10310 for automatic dependency tracking. If GNU make was not used, consider
10311 re-running the configure script with MAKE=\"gmake\" (or whatever is
10312 necessary). You can also try re-running configure with the
10313 '--disable-dependency-tracking' option to at least be able to build
10314 the package (albeit without support for automatic dependency tracking).
10315 See 'config.log' for more details" "$LINENO" 5; }
10316 fi
10317 { am_dirpart=; unset am_dirpart;}
10318 { am_filepart=; unset am_filepart;}
10319 { am_mf=; unset am_mf;}
10320 { am_rc=; unset am_rc;}
10321 rm -f conftest-deps.mk
10322 }
10323 ;;
10324
10325 esac
10326 done # for ac_tag
10327
10328
10329 as_fn_exit 0
10330 _ACEOF
10331 ac_clean_files=$ac_clean_files_save
10332
10333 test $ac_write_fail = 0 ||
10334 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10335
10336
10337 # configure is writing to config.log, and then calls config.status.
10338 # config.status does its own redirection, appending to config.log.
10339 # Unfortunately, on DOS this fails, as config.log is still kept open
10340 # by configure, so config.status won't be able to write to it; its
10341 # output is simply discarded. So we exec the FD to /dev/null,
10342 # effectively closing config.log, so it can be properly (re)opened and
10343 # appended to by config.status. When coming back to configure, we
10344 # need to make the FD available again.
10345 if test "$no_create" != yes; then
10346 ac_cs_success=:
10347 ac_config_status_args=
10348 test "$silent" = yes &&
10349 ac_config_status_args="$ac_config_status_args --quiet"
10350 exec 5>/dev/null
10351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10352 exec 5>>config.log
10353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10354 # would make configure fail if this is the last instruction.
10355 $ac_cs_success || as_fn_exit 1
10356 fi
10357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10359 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10360 fi
10361
10362