"Fossies" - the Fresh Open Source Software Archive 
Member "memcached-1.6.15/configure" (30 Mar 2022, 245832 Bytes) of package /linux/www/memcached-1.6.15.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
1.6.14_vs_1.6.15.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for memcached 1.6.15.
4 #
5 # Report bugs to <memcached@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: memcached@googlegroups.com about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='memcached'
582 PACKAGE_TARNAME='memcached'
583 PACKAGE_VERSION='1.6.15'
584 PACKAGE_STRING='memcached 1.6.15'
585 PACKAGE_BUGREPORT='memcached@googlegroups.com'
586 PACKAGE_URL=''
587
588 ac_unique_file="memcached.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 BUILD_SPECIFICATIONS_FALSE
630 BUILD_SPECIFICATIONS_TRUE
631 XSLTPROC
632 XML2RFC
633 BUILD_FREEBSD_PRIVS_FALSE
634 BUILD_FREEBSD_PRIVS_TRUE
635 BUILD_OPENBSD_PRIVS_FALSE
636 BUILD_OPENBSD_PRIVS_TRUE
637 BUILD_LINUX_PRIVS_FALSE
638 BUILD_LINUX_PRIVS_TRUE
639 BUILD_SOLARIS_PRIVS_FALSE
640 BUILD_SOLARIS_PRIVS_TRUE
641 PROFILER_FLAGS
642 PROFILER
643 PROFILER_LDFLAGS
644 ENABLE_SASL
645 DTRACEFLAGS
646 ENABLE_PROXY_URING_FALSE
647 ENABLE_PROXY_URING_TRUE
648 ENABLE_PROXY_FALSE
649 ENABLE_PROXY_TRUE
650 DISABLE_UNIX_SOCKET_FALSE
651 DISABLE_UNIX_SOCKET_TRUE
652 ENABLE_STATIC_FALSE
653 ENABLE_STATIC_TRUE
654 ENABLE_ASAN_FALSE
655 ENABLE_ASAN_TRUE
656 ENABLE_TLS_FALSE
657 ENABLE_TLS_TRUE
658 ENABLE_ARM_CRC32_FALSE
659 ENABLE_ARM_CRC32_TRUE
660 ENABLE_EXTSTORE_FALSE
661 ENABLE_EXTSTORE_TRUE
662 ENABLE_SASL_FALSE
663 ENABLE_SASL_TRUE
664 DTRACE_INSTRUMENT_OBJ_FALSE
665 DTRACE_INSTRUMENT_OBJ_TRUE
666 BUILD_DTRACE_FALSE
667 BUILD_DTRACE_TRUE
668 DTRACE
669 EGREP
670 GREP
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 CSCOPE
693 ETAGS
694 CTAGS
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 runstatedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL
765 am__quote'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_dependency_tracking
771 enable_extstore
772 enable_seccomp
773 enable_sasl
774 enable_sasl_pwdb
775 enable_tls
776 enable_asan
777 enable_static
778 enable_unix_socket
779 enable_proxy
780 enable_proxy_uring
781 enable_dtrace
782 enable_coverage
783 enable_64bit
784 with_libevent
785 with_libssl
786 enable_docs
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir runstatedir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures memcached 1.6.15 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/memcached]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of memcached 1.6.15:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-extstore Disable external storage (extstore)
1433 --enable-seccomp Enable seccomp restrictions EXPERIMENTAL
1434 --enable-sasl Enable SASL authentication
1435 --enable-sasl-pwdb Enable plaintext password db
1436 --enable-tls Enable Transport Layer Security EXPERIMENTAL
1437 --enable-asan Compile with ASAN EXPERIMENTAL
1438 --enable-static Compile a statically linked binary
1439 --disable-unix-socket Disable unix domain socket
1440 --enable-proxy Enable proxy code EXPERIMENTAL
1441 --enable-proxy-uring Enable proxy io_uring code EXPERIMENTAL
1442 --enable-dtrace Enable dtrace probes
1443 --disable-coverage Disable code coverage
1444 --enable-64bit build 64bit version
1445 --disable-docs Disable documentation generation
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-libevent=PATH Specify path to libevent installation
1451 --with-libssl=PATH Specify path to libssl installation
1452
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CPP C preprocessor
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to <memcached@googlegroups.com>.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 memcached configure 1.6.15
1530 generated by GNU Autoconf 2.69
1531
1532 Copyright (C) 2012 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1619 # ---------------------------------------------
1620 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1621 # accordingly.
1622 ac_fn_c_check_decl ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 as_decl_name=`echo $2|sed 's/ *(.*//'`
1626 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1628 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 int
1636 main ()
1637 {
1638 #ifndef $as_decl_name
1639 #ifdef __cplusplus
1640 (void) $as_decl_use;
1641 #else
1642 (void) $as_decl_name;
1643 #endif
1644 #endif
1645
1646 ;
1647 return 0;
1648 }
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651 eval "$3=yes"
1652 else
1653 eval "$3=no"
1654 fi
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 fi
1657 eval ac_res=\$$3
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662 } # ac_fn_c_check_decl
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699 fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_compile
1736
1737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1740 # the include files in INCLUDES and setting the cache variable VAR
1741 # accordingly.
1742 ac_fn_c_check_header_mongrel ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if eval \${$3+:} false; then :
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 else
1755 # Is the header compilable?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1757 $as_echo_n "checking $2 usability... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_header_compiler=yes
1765 else
1766 ac_header_compiler=no
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1770 $as_echo "$ac_header_compiler" >&6; }
1771
1772 # Is the header present?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1774 $as_echo_n "checking $2 presence... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_cpp "$LINENO"; then :
1780 ac_header_preproc=yes
1781 else
1782 ac_header_preproc=no
1783 fi
1784 rm -f conftest.err conftest.i conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1786 $as_echo "$ac_header_preproc" >&6; }
1787
1788 # So? What about this header?
1789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 yes:no: )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796 no:yes:* )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 ( $as_echo "## ----------------------------------------- ##
1808 ## Report this to memcached@googlegroups.com ##
1809 ## ----------------------------------------- ##"
1810 ) | sed "s/^/$as_me: WARNING: /" >&2
1811 ;;
1812 esac
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 eval "$3=\$ac_header_compiler"
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_mongrel
1827
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_link ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1848 fi
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 test -x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863 fi
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_link
1873
1874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875 # --------------------------------------------
1876 # Tries to find the compile-time value of EXPR in a program that includes
1877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1878 # computed
1879 ac_fn_c_compute_int ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if test "$cross_compiling" = yes; then
1883 # Depending upon the size, compute the lo and hi bounds.
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 int
1888 main ()
1889 {
1890 static int test_array [1 - 2 * !(($2) >= 0)];
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"; then :
1899 ac_lo=0 ac_mid=0
1900 while :; do
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main ()
1906 {
1907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1908 test_array [0] = 0;
1909 return test_array [0];
1910
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_hi=$ac_mid; break
1917 else
1918 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919 if test $ac_lo -le $ac_mid; then
1920 ac_lo= ac_hi=
1921 break
1922 fi
1923 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 done
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) < 0)];
1935 test_array [0] = 0;
1936 return test_array [0];
1937
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_hi=-1 ac_mid=-1
1944 while :; do
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_lo=$ac_mid; break
1961 else
1962 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1963 if test $ac_mid -le $ac_hi; then
1964 ac_lo= ac_hi=
1965 break
1966 fi
1967 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 done
1971 else
1972 ac_lo= ac_hi=
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 # Binary search between lo and hi bounds.
1978 while test "x$ac_lo" != "x$ac_hi"; do
1979 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1987 test_array [0] = 0;
1988 return test_array [0];
1989
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 ac_hi=$ac_mid
1996 else
1997 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 done
2001 case $ac_lo in #((
2002 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2003 '') ac_retval=1 ;;
2004 esac
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 static long int longval () { return $2; }
2010 static unsigned long int ulongval () { return $2; }
2011 #include <stdio.h>
2012 #include <stdlib.h>
2013 int
2014 main ()
2015 {
2016
2017 FILE *f = fopen ("conftest.val", "w");
2018 if (! f)
2019 return 1;
2020 if (($2) < 0)
2021 {
2022 long int i = longval ();
2023 if (i != ($2))
2024 return 1;
2025 fprintf (f, "%ld", i);
2026 }
2027 else
2028 {
2029 unsigned long int i = ulongval ();
2030 if (i != ($2))
2031 return 1;
2032 fprintf (f, "%lu", i);
2033 }
2034 /* Do not output a trailing newline, as this causes \r\n confusion
2035 on some platforms. */
2036 return ferror (f) || fclose (f) != 0;
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_run "$LINENO"; then :
2043 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2044 else
2045 ac_retval=1
2046 fi
2047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2048 conftest.$ac_objext conftest.beam conftest.$ac_ext
2049 rm -f conftest.val
2050
2051 fi
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2054
2055 } # ac_fn_c_compute_int
2056
2057 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058 # -------------------------------------------
2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
2060 # variable VAR accordingly.
2061 ac_fn_c_check_type ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 eval "$3=no"
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 int
2074 main ()
2075 {
2076 if (sizeof ($2))
2077 return 0;
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main ()
2088 {
2089 if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096
2097 else
2098 eval "$3=yes"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109 } # ac_fn_c_check_type
2110
2111 # ac_fn_c_check_func LINENO FUNC VAR
2112 # ----------------------------------
2113 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2114 ac_fn_c_check_func ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 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 (); below.
2130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2131 <limits.h> exists even on freestanding compilers. */
2132
2133 #ifdef __STDC__
2134 # include <limits.h>
2135 #else
2136 # include <assert.h>
2137 #endif
2138
2139 #undef $2
2140
2141 /* Override any GCC internal prototype to avoid an error.
2142 Use char because int might match the return type of a GCC
2143 builtin and then its argument prototype would still apply. */
2144 #ifdef __cplusplus
2145 extern "C"
2146 #endif
2147 char $2 ();
2148 /* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151 #if defined __stub_$2 || defined __stub___$2
2152 choke me
2153 #endif
2154
2155 int
2156 main ()
2157 {
2158 return $2 ();
2159 ;
2160 return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_link "$LINENO"; then :
2164 eval "$3=yes"
2165 else
2166 eval "$3=no"
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext \
2169 conftest$ac_exeext conftest.$ac_ext
2170 fi
2171 eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176 } # ac_fn_c_check_func
2177 cat >config.log <<_ACEOF
2178 This file contains any messages produced by compilers while
2179 running configure, to aid debugging if configure makes a mistake.
2180
2181 It was created by memcached $as_me 1.6.15, which was
2182 generated by GNU Autoconf 2.69. Invocation command line was
2183
2184 $ $0 $@
2185
2186 _ACEOF
2187 exec 5>>config.log
2188 {
2189 cat <<_ASUNAME
2190 ## --------- ##
2191 ## Platform. ##
2192 ## --------- ##
2193
2194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2199
2200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2202
2203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2206 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2210
2211 _ASUNAME
2212
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 $as_echo "PATH: $as_dir"
2219 done
2220 IFS=$as_save_IFS
2221
2222 } >&5
2223
2224 cat >&5 <<_ACEOF
2225
2226
2227 ## ----------- ##
2228 ## Core tests. ##
2229 ## ----------- ##
2230
2231 _ACEOF
2232
2233
2234 # Keep a trace of the command line.
2235 # Strip out --no-create and --no-recursion so they do not pile up.
2236 # Strip out --silent because we don't want to record it for future runs.
2237 # Also quote any args containing shell meta-characters.
2238 # Make two passes to allow for proper duplicate-argument suppression.
2239 ac_configure_args=
2240 ac_configure_args0=
2241 ac_configure_args1=
2242 ac_must_keep_next=false
2243 for ac_pass in 1 2
2244 do
2245 for ac_arg
2246 do
2247 case $ac_arg in
2248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2250 | -silent | --silent | --silen | --sile | --sil)
2251 continue ;;
2252 *\'*)
2253 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 esac
2255 case $ac_pass in
2256 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 2)
2258 as_fn_append ac_configure_args1 " '$ac_arg'"
2259 if test $ac_must_keep_next = true; then
2260 ac_must_keep_next=false # Got value, back to normal.
2261 else
2262 case $ac_arg in
2263 *=* | --config-cache | -C | -disable-* | --disable-* \
2264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2266 | -with-* | --with-* | -without-* | --without-* | --x)
2267 case "$ac_configure_args0 " in
2268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2269 esac
2270 ;;
2271 -* ) ac_must_keep_next=true ;;
2272 esac
2273 fi
2274 as_fn_append ac_configure_args " '$ac_arg'"
2275 ;;
2276 esac
2277 done
2278 done
2279 { ac_configure_args0=; unset ac_configure_args0;}
2280 { ac_configure_args1=; unset ac_configure_args1;}
2281
2282 # When interrupted or exit'd, cleanup temporary files, and complete
2283 # config.log. We remove comments because anyway the quotes in there
2284 # would cause problems or look ugly.
2285 # WARNING: Use '\'' to represent an apostrophe within the trap.
2286 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2287 trap 'exit_status=$?
2288 # Save into config.log some information that might help in debugging.
2289 {
2290 echo
2291
2292 $as_echo "## ---------------- ##
2293 ## Cache variables. ##
2294 ## ---------------- ##"
2295 echo
2296 # The following way of writing the cache mishandles newlines in values,
2297 (
2298 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2299 eval ac_val=\$$ac_var
2300 case $ac_val in #(
2301 *${as_nl}*)
2302 case $ac_var in #(
2303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2305 esac
2306 case $ac_var in #(
2307 _ | IFS | as_nl) ;; #(
2308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2309 *) { eval $ac_var=; unset $ac_var;} ;;
2310 esac ;;
2311 esac
2312 done
2313 (set) 2>&1 |
2314 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2315 *${as_nl}ac_space=\ *)
2316 sed -n \
2317 "s/'\''/'\''\\\\'\'''\''/g;
2318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2319 ;; #(
2320 *)
2321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 ;;
2323 esac |
2324 sort
2325 )
2326 echo
2327
2328 $as_echo "## ----------------- ##
2329 ## Output variables. ##
2330 ## ----------------- ##"
2331 echo
2332 for ac_var in $ac_subst_vars
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341
2342 if test -n "$ac_subst_files"; then
2343 $as_echo "## ------------------- ##
2344 ## File substitutions. ##
2345 ## ------------------- ##"
2346 echo
2347 for ac_var in $ac_subst_files
2348 do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2356 fi
2357
2358 if test -s confdefs.h; then
2359 $as_echo "## ----------- ##
2360 ## confdefs.h. ##
2361 ## ----------- ##"
2362 echo
2363 cat confdefs.h
2364 echo
2365 fi
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2369 } >&5
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 exit $exit_status
2373 ' 0
2374 for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376 done
2377 ac_signal=0
2378
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2380 rm -f -r conftest* confdefs.h
2381
2382 $as_echo "/* confdefs.h */" > confdefs.h
2383
2384 # Predefined preprocessor variables.
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_URL "$PACKAGE_URL"
2408 _ACEOF
2409
2410
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2413 ac_site_file1=NONE
2414 ac_site_file2=NONE
2415 if test -n "$CONFIG_SITE"; then
2416 # We do not want a PATH search for config.site.
2417 case $CONFIG_SITE in #((
2418 -*) ac_site_file1=./$CONFIG_SITE;;
2419 */*) ac_site_file1=$CONFIG_SITE;;
2420 *) ac_site_file1=./$CONFIG_SITE;;
2421 esac
2422 elif test "x$prefix" != xNONE; then
2423 ac_site_file1=$prefix/share/config.site
2424 ac_site_file2=$prefix/etc/config.site
2425 else
2426 ac_site_file1=$ac_default_prefix/share/config.site
2427 ac_site_file2=$ac_default_prefix/etc/config.site
2428 fi
2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 do
2431 test "x$ac_site_file" = xNONE && continue
2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2435 sed 's/^/| /' "$ac_site_file" >&5
2436 . "$ac_site_file" \
2437 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 as_fn_error $? "failed to load site script $ac_site_file
2440 See \`config.log' for more details" "$LINENO" 5; }
2441 fi
2442 done
2443
2444 if test -r "$cache_file"; then
2445 # Some versions of bash will fail to source /dev/null (special files
2446 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2447 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2449 $as_echo "$as_me: loading cache $cache_file" >&6;}
2450 case $cache_file in
2451 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2452 *) . "./$cache_file";;
2453 esac
2454 fi
2455 else
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2457 $as_echo "$as_me: creating cache $cache_file" >&6;}
2458 >$cache_file
2459 fi
2460
2461 # Check that the precious variables saved in the cache have kept the same
2462 # value.
2463 ac_cache_corrupted=false
2464 for ac_var in $ac_precious_vars; do
2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2466 eval ac_new_set=\$ac_env_${ac_var}_set
2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2468 eval ac_new_val=\$ac_env_${ac_var}_value
2469 case $ac_old_set,$ac_new_set in
2470 set,)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,set)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2476 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2478 ,);;
2479 *)
2480 if test "x$ac_old_val" != "x$ac_new_val"; then
2481 # differences in whitespace do not lead to failure.
2482 ac_old_val_w=`echo x $ac_old_val`
2483 ac_new_val_w=`echo x $ac_new_val`
2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2486 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2487 ac_cache_corrupted=:
2488 else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2490 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2491 eval $ac_var=\$ac_old_val
2492 fi
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2494 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2496 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2497 fi;;
2498 esac
2499 # Pass precious variables to config.status.
2500 if test "$ac_new_set" = set; then
2501 case $ac_new_val in
2502 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2503 *) ac_arg=$ac_var=$ac_new_val ;;
2504 esac
2505 case " $ac_configure_args " in
2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2508 esac
2509 fi
2510 done
2511 if $ac_cache_corrupted; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2515 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2516 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2517 fi
2518 ## -------------------- ##
2519 ## Main body of script. ##
2520 ## -------------------- ##
2521
2522 ac_ext=c
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527
2528
2529 ac_aux_dir=
2530 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2531 if test -f "$ac_dir/install-sh"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/install-sh -c"
2534 break
2535 elif test -f "$ac_dir/install.sh"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/install.sh -c"
2538 break
2539 elif test -f "$ac_dir/shtool"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/shtool install -c"
2542 break
2543 fi
2544 done
2545 if test -z "$ac_aux_dir"; then
2546 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547 fi
2548
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556
2557
2558 # Make sure we can run config.sub.
2559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563 $as_echo_n "checking build system type... " >&6; }
2564 if ${ac_cv_build+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 ac_build_alias=$build_alias
2568 test "x$ac_build_alias" = x &&
2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570 test "x$ac_build_alias" = x &&
2571 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577 $as_echo "$ac_cv_build" >&6; }
2578 case $ac_cv_build in
2579 *-*-*) ;;
2580 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2581 esac
2582 build=$ac_cv_build
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_build
2585 shift
2586 build_cpu=$1
2587 build_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 build_os=$*
2592 IFS=$ac_save_IFS
2593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597 $as_echo_n "checking host system type... " >&6; }
2598 if ${ac_cv_host+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test "x$host_alias" = x; then
2602 ac_cv_host=$ac_cv_build
2603 else
2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606 fi
2607
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610 $as_echo "$ac_cv_host" >&6; }
2611 case $ac_cv_host in
2612 *-*-*) ;;
2613 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2614 esac
2615 host=$ac_cv_host
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_host
2618 shift
2619 host_cpu=$1
2620 host_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 host_os=$*
2625 IFS=$ac_save_IFS
2626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627
2628
2629
2630 am__api_version='1.16'
2631
2632 # Find a good install program. We prefer a C program (faster),
2633 # so one script is as good as another. But avoid the broken or
2634 # incompatible versions:
2635 # SysV /etc/install, /usr/sbin/install
2636 # SunOS /usr/etc/install
2637 # IRIX /sbin/install
2638 # AIX /bin/install
2639 # AmigaOS /C/install, which installs bootblocks on floppy discs
2640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2643 # OS/2's system install, which has a completely different semantic
2644 # ./install, which can be erroneously created by make from ./install.sh.
2645 # Reject install programs that cannot install multiple files.
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2647 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2648 if test -z "$INSTALL"; then
2649 if ${ac_cv_path_install+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 # Account for people who put trailing slashes in PATH elements.
2658 case $as_dir/ in #((
2659 ./ | .// | /[cC]/* | \
2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2661 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2662 /usr/ucb/* ) ;;
2663 *)
2664 # OSF1 and SCO ODT 3.0 have their own names for install.
2665 # Don't use installbsd from OSF since it installs stuff as root
2666 # by default.
2667 for ac_prog in ginstall scoinst install; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2670 if test $ac_prog = install &&
2671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # AIX install. It has an incompatible calling convention.
2673 :
2674 elif test $ac_prog = install &&
2675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # program-specific install script used by HP pwplus--don't use.
2677 :
2678 else
2679 rm -rf conftest.one conftest.two conftest.dir
2680 echo one > conftest.one
2681 echo two > conftest.two
2682 mkdir conftest.dir
2683 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2684 test -s conftest.one && test -s conftest.two &&
2685 test -s conftest.dir/conftest.one &&
2686 test -s conftest.dir/conftest.two
2687 then
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2690 fi
2691 fi
2692 fi
2693 done
2694 done
2695 ;;
2696 esac
2697
2698 done
2699 IFS=$as_save_IFS
2700
2701 rm -rf conftest.one conftest.two conftest.dir
2702
2703 fi
2704 if test "${ac_cv_path_install+set}" = set; then
2705 INSTALL=$ac_cv_path_install
2706 else
2707 # As a last resort, use the slow shell script. Don't cache a
2708 # value for INSTALL within a source directory, because that will
2709 # break other packages using the cache if that directory is
2710 # removed, or if the value is a relative name.
2711 INSTALL=$ac_install_sh
2712 fi
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2715 $as_echo "$INSTALL" >&6; }
2716
2717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2718 # It thinks the first close brace ends the variable substitution.
2719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2720
2721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2722
2723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2726 $as_echo_n "checking whether build environment is sane... " >&6; }
2727 # Reject unsafe characters in $srcdir or the absolute working directory
2728 # name. Accept space and tab only in the latter.
2729 am_lf='
2730 '
2731 case `pwd` in
2732 *[\\\"\#\$\&\'\`$am_lf]*)
2733 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2734 esac
2735 case $srcdir in
2736 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2737 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2738 esac
2739
2740 # Do 'set' in a subshell so we don't clobber the current shell's
2741 # arguments. Must try -L first in case configure is actually a
2742 # symlink; some systems play weird games with the mod time of symlinks
2743 # (eg FreeBSD returns the mod time of the symlink's containing
2744 # directory).
2745 if (
2746 am_has_slept=no
2747 for am_try in 1 2; do
2748 echo "timestamp, slept: $am_has_slept" > conftest.file
2749 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2750 if test "$*" = "X"; then
2751 # -L didn't work.
2752 set X `ls -t "$srcdir/configure" conftest.file`
2753 fi
2754 if test "$*" != "X $srcdir/configure conftest.file" \
2755 && test "$*" != "X conftest.file $srcdir/configure"; then
2756
2757 # If neither matched, then we have a broken ls. This can happen
2758 # if, for instance, CONFIG_SHELL is bash and it inherits a
2759 # broken ls alias from the environment. This has actually
2760 # happened. Such a system could not be considered "sane".
2761 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2762 alias in your environment" "$LINENO" 5
2763 fi
2764 if test "$2" = conftest.file || test $am_try -eq 2; then
2765 break
2766 fi
2767 # Just in case.
2768 sleep 1
2769 am_has_slept=yes
2770 done
2771 test "$2" = conftest.file
2772 )
2773 then
2774 # Ok.
2775 :
2776 else
2777 as_fn_error $? "newly created file is older than distributed files!
2778 Check your system clock" "$LINENO" 5
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781 $as_echo "yes" >&6; }
2782 # If we didn't sleep, we still need to ensure time stamps of config.status and
2783 # generated files are strictly newer.
2784 am_sleep_pid=
2785 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2786 ( sleep 1 ) &
2787 am_sleep_pid=$!
2788 fi
2789
2790 rm -f conftest.file
2791
2792 test "$program_prefix" != NONE &&
2793 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2794 # Use a double $ so make ignores it.
2795 test "$program_suffix" != NONE &&
2796 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2797 # Double any \ or $.
2798 # By default was `s,x,x', remove it if useless.
2799 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2800 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2801
2802 # Expand $ac_aux_dir to an absolute path.
2803 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2804
2805 if test x"${MISSING+set}" != xset; then
2806 MISSING="\${SHELL} '$am_aux_dir/missing'"
2807 fi
2808 # Use eval to expand $SHELL
2809 if eval "$MISSING --is-lightweight"; then
2810 am_missing_run="$MISSING "
2811 else
2812 am_missing_run=
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2814 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2815 fi
2816
2817 if test x"${install_sh+set}" != xset; then
2818 case $am_aux_dir in
2819 *\ * | *\ *)
2820 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2821 *)
2822 install_sh="\${SHELL} $am_aux_dir/install-sh"
2823 esac
2824 fi
2825
2826 # Installed binaries are usually stripped using 'strip' when the user
2827 # run "make install-strip". However 'strip' might not be the right
2828 # tool to use in cross-compilation environments, therefore Automake
2829 # will honor the 'STRIP' environment variable to overrule this program.
2830 if test "$cross_compiling" != no; then
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}strip; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_STRIP+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$STRIP"; then
2840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 STRIP=$ac_cv_prog_STRIP
2860 if test -n "$STRIP"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2862 $as_echo "$STRIP" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869 fi
2870 if test -z "$ac_cv_prog_STRIP"; then
2871 ac_ct_STRIP=$STRIP
2872 # Extract the first word of "strip", so it can be a program name with args.
2873 set dummy strip; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$ac_ct_STRIP"; then
2880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_STRIP="strip"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2900 if test -n "$ac_ct_STRIP"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2902 $as_echo "$ac_ct_STRIP" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 fi
2907
2908 if test "x$ac_ct_STRIP" = x; then
2909 STRIP=":"
2910 else
2911 case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2916 esac
2917 STRIP=$ac_ct_STRIP
2918 fi
2919 else
2920 STRIP="$ac_cv_prog_STRIP"
2921 fi
2922
2923 fi
2924 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2927 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2928 if test -z "$MKDIR_P"; then
2929 if ${ac_cv_path_mkdir+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_prog in mkdir gmkdir; do
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2940 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2941 'mkdir (GNU coreutils) '* | \
2942 'mkdir (coreutils) '* | \
2943 'mkdir (fileutils) '4.1*)
2944 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2945 break 3;;
2946 esac
2947 done
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953
2954 test -d ./--version && rmdir ./--version
2955 if test "${ac_cv_path_mkdir+set}" = set; then
2956 MKDIR_P="$ac_cv_path_mkdir -p"
2957 else
2958 # As a last resort, use the slow shell script. Don't cache a
2959 # value for MKDIR_P within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the value is a relative name.
2962 MKDIR_P="$ac_install_sh -d"
2963 fi
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2966 $as_echo "$MKDIR_P" >&6; }
2967
2968 for ac_prog in gawk mawk nawk awk
2969 do
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_AWK+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$AWK"; then
2978 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_AWK="$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 AWK=$ac_cv_prog_AWK
2998 if test -n "$AWK"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3000 $as_echo "$AWK" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006
3007 test -n "$AWK" && break
3008 done
3009
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3011 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3012 set x ${MAKE-make}
3013 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3014 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 cat >conftest.make <<\_ACEOF
3018 SHELL = /bin/sh
3019 all:
3020 @echo '@@@%%%=$(MAKE)=@@@%%%'
3021 _ACEOF
3022 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3023 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3024 *@@@%%%=?*=@@@%%%*)
3025 eval ac_cv_prog_make_${ac_make}_set=yes;;
3026 *)
3027 eval ac_cv_prog_make_${ac_make}_set=no;;
3028 esac
3029 rm -f conftest.make
3030 fi
3031 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033 $as_echo "yes" >&6; }
3034 SET_MAKE=
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 SET_MAKE="MAKE=${MAKE-make}"
3039 fi
3040
3041 rm -rf .tst 2>/dev/null
3042 mkdir .tst 2>/dev/null
3043 if test -d .tst; then
3044 am__leading_dot=.
3045 else
3046 am__leading_dot=_
3047 fi
3048 rmdir .tst 2>/dev/null
3049
3050 # Check whether --enable-silent-rules was given.
3051 if test "${enable_silent_rules+set}" = set; then :
3052 enableval=$enable_silent_rules;
3053 fi
3054
3055 case $enable_silent_rules in # (((
3056 yes) AM_DEFAULT_VERBOSITY=0;;
3057 no) AM_DEFAULT_VERBOSITY=1;;
3058 *) AM_DEFAULT_VERBOSITY=1;;
3059 esac
3060 am_make=${MAKE-make}
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3062 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3063 if ${am_cv_make_support_nested_variables+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if $as_echo 'TRUE=$(BAR$(V))
3067 BAR0=false
3068 BAR1=true
3069 V=1
3070 am__doit:
3071 @$(TRUE)
3072 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3073 am_cv_make_support_nested_variables=yes
3074 else
3075 am_cv_make_support_nested_variables=no
3076 fi
3077 fi
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3079 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3080 if test $am_cv_make_support_nested_variables = yes; then
3081 AM_V='$(V)'
3082 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3083 else
3084 AM_V=$AM_DEFAULT_VERBOSITY
3085 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3086 fi
3087 AM_BACKSLASH='\'
3088
3089 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3090 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3091 # is not polluted with repeated "-I."
3092 am__isrc=' -I$(srcdir)'
3093 # test to see if srcdir already configured
3094 if test -f $srcdir/config.status; then
3095 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3096 fi
3097 fi
3098
3099 # test whether we have cygpath
3100 if test -z "$CYGPATH_W"; then
3101 if (cygpath --version) >/dev/null 2>/dev/null; then
3102 CYGPATH_W='cygpath -w'
3103 else
3104 CYGPATH_W=echo
3105 fi
3106 fi
3107
3108
3109 # Define the identity of the package.
3110 PACKAGE='memcached'
3111 VERSION='1.6.15'
3112
3113
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE "$PACKAGE"
3116 _ACEOF
3117
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define VERSION "$VERSION"
3121 _ACEOF
3122
3123 # Some tools Automake needs.
3124
3125 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3126
3127
3128 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3129
3130
3131 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3132
3133
3134 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3135
3136
3137 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3138
3139 # For better backward compatibility. To be removed once Automake 1.9.x
3140 # dies out for good. For more background, see:
3141 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3142 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3143 mkdir_p='$(MKDIR_P)'
3144
3145 # We need awk for the "check" target (and possibly the TAP driver). The
3146 # system "awk" is bad on some platforms.
3147 # Always define AMTAR for backward compatibility. Yes, it's still used
3148 # in the wild :-( We should find a proper way to deprecate it ...
3149 AMTAR='$${TAR-tar}'
3150
3151
3152 # We'll loop over all known methods to create a tar archive until one works.
3153 _am_tools='gnutar pax cpio none'
3154
3155 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3156
3157
3158
3159
3160
3161 # Variables for tags utilities; see am/tags.am
3162 if test -z "$CTAGS"; then
3163 CTAGS=ctags
3164 fi
3165
3166 if test -z "$ETAGS"; then
3167 ETAGS=etags
3168 fi
3169
3170 if test -z "$CSCOPE"; then
3171 CSCOPE=cscope
3172 fi
3173
3174
3175
3176 # POSIX will say in a future version that running "rm -f" with no argument
3177 # is OK; and we want to be able to make that assumption in our Makefile
3178 # recipes. So use an aggressive probe to check that the usage we want is
3179 # actually supported "in the wild" to an acceptable degree.
3180 # See automake bug#10828.
3181 # To make any issue more visible, cause the running configure to be aborted
3182 # by default if the 'rm' program in use doesn't match our expectations; the
3183 # user can still override this though.
3184 if rm -f && rm -fr && rm -rf; then : OK; else
3185 cat >&2 <<'END'
3186 Oops!
3187
3188 Your 'rm' program seems unable to run without file operands specified
3189 on the command line, even when the '-f' option is present. This is contrary
3190 to the behaviour of most rm programs out there, and not conforming with
3191 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3192
3193 Please tell bug-automake@gnu.org about your system, including the value
3194 of your $PATH and any error possibly output before this message. This
3195 can help us improve future automake versions.
3196
3197 END
3198 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3199 echo 'Configuration will proceed anyway, since you have set the' >&2
3200 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3201 echo >&2
3202 else
3203 cat >&2 <<'END'
3204 Aborting the configuration process, to ensure you take notice of the issue.
3205
3206 You can download and install GNU coreutils to get an 'rm' implementation
3207 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3208
3209 If you want to complete the configuration process using your problematic
3210 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3211 to "yes", and re-run configure.
3212
3213 END
3214 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3215 fi
3216 fi
3217
3218 ac_config_headers="$ac_config_headers config.h"
3219
3220
3221 ac_ext=c
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248 done
3249 done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268 set dummy gcc; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_ac_ct_CC="gcc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312 CC=$ac_ct_CC
3313 fi
3314 else
3315 CC="$ac_cv_prog_CC"
3316 fi
3317
3318 if test -z "$CC"; then
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}cc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 fi
3359 if test -z "$CC"; then
3360 # Extract the first word of "cc", so it can be a program name with args.
3361 set dummy cc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 ac_prog_rejected=no
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379 ac_prog_rejected=yes
3380 continue
3381 fi
3382 ac_cv_prog_CC="cc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 if test $ac_prog_rejected = yes; then
3391 # We found a bogon in the path, so make sure we never use it.
3392 set dummy $ac_cv_prog_CC
3393 shift
3394 if test $# != 0; then
3395 # We chose a different compiler from the bogus one.
3396 # However, it has the same basename, so the bogon will be chosen
3397 # first if we set CC to just the basename; use the full file name.
3398 shift
3399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400 fi
3401 fi
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in cl.exe
3418 do
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 test -n "$CC" && break
3457 done
3458 fi
3459 if test -z "$CC"; then
3460 ac_ct_CC=$CC
3461 for ac_prog in cl.exe
3462 do
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -n "$ac_ct_CC"; then
3471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_CC="$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491 if test -n "$ac_ct_CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493 $as_echo "$ac_ct_CC" >&6; }
3494 else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500 test -n "$ac_ct_CC" && break
3501 done
3502
3503 if test "x$ac_ct_CC" = x; then
3504 CC=""
3505 else
3506 case $cross_compiling:$ac_tool_warned in
3507 yes:)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3511 esac
3512 CC=$ac_ct_CC
3513 fi
3514 fi
3515
3516 fi
3517
3518
3519 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error $? "no acceptable C compiler found in \$PATH
3522 See \`config.log' for more details" "$LINENO" 5; }
3523
3524 # Provide some information about the compiler.
3525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526 set X $ac_compile
3527 ac_compiler=$2
3528 for ac_option in --version -v -V -qversion; do
3529 { { ac_try="$ac_compiler $ac_option >&5"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537 ac_status=$?
3538 if test -s conftest.err; then
3539 sed '10a\
3540 ... rest of stderr output deleted ...
3541 10q' conftest.err >conftest.er1
3542 cat conftest.er1 >&5
3543 fi
3544 rm -f conftest.er1 conftest.err
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }
3547 done
3548
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 ac_clean_files_save=$ac_clean_files
3561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3562 # Try to create an executable without -o first, disregard a.out.
3563 # It will help us diagnose broken compilers, and finding out an intuition
3564 # of exeext.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566 $as_echo_n "checking whether the C compiler works... " >&6; }
3567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
3569 # The possible output files:
3570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
3572 ac_rmfiles=
3573 for ac_file in $ac_files
3574 do
3575 case $ac_file in
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578 esac
3579 done
3580 rm -f $ac_rmfiles
3581
3582 if { { ac_try="$ac_link_default"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link_default") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3596 # so that the user can short-circuit this test for compilers unknown to
3597 # Autoconf.
3598 for ac_file in $ac_files ''
3599 do
3600 test -f "$ac_file" || continue
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 ;;
3604 [ab].out )
3605 # We found the default executable, but exeext='' is most
3606 # certainly right.
3607 break;;
3608 *.* )
3609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610 then :; else
3611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 fi
3613 # We set ac_cv_exeext here because the later test for it is not
3614 # safe: cross compilers may not add the suffix if given an `-o'
3615 # argument, so we may need to know it at that point already.
3616 # Even if this section looks crufty: it has the advantage of
3617 # actually working.
3618 break;;
3619 * )
3620 break;;
3621 esac
3622 done
3623 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
3625 else
3626 ac_file=''
3627 fi
3628 if test -z "$ac_file"; then :
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error 77 "C compiler cannot create executables
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 $as_echo "yes" >&6; }
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643 $as_echo_n "checking for C compiler default output file name... " >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645 $as_echo "$ac_file" >&6; }
3646 ac_exeext=$ac_cv_exeext
3647
3648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649 ac_clean_files=$ac_clean_files_save
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651 $as_echo_n "checking for suffix of executables... " >&6; }
3652 if { { ac_try="$ac_link"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3665 # work properly (i.e., refer to `conftest.exe'), while it won't with
3666 # `rm'.
3667 for ac_file in conftest.exe conftest conftest.*; do
3668 test -f "$ac_file" || continue
3669 case $ac_file in
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672 break;;
3673 * ) break;;
3674 esac
3675 done
3676 else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 rm -f conftest conftest$ac_cv_exeext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3684 $as_echo "$ac_cv_exeext" >&6; }
3685
3686 rm -f conftest.$ac_ext
3687 EXEEXT=$ac_cv_exeext
3688 ac_exeext=$EXEEXT
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691 #include <stdio.h>
3692 int
3693 main ()
3694 {
3695 FILE *f = fopen ("conftest.out", "w");
3696 return ferror (f) || fclose (f) != 0;
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 ac_clean_files="$ac_clean_files conftest.out"
3703 # Check that the compiler produces executables we can run. If not, either
3704 # the compiler is broken, or we cross compile.
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706 $as_echo_n "checking whether we are cross compiling... " >&6; }
3707 if test "$cross_compiling" != yes; then
3708 { { ac_try="$ac_link"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_link") 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }
3719 if { ac_try='./conftest$ac_cv_exeext'
3720 { { case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; }; then
3730 cross_compiling=no
3731 else
3732 if test "$cross_compiling" = maybe; then
3733 cross_compiling=yes
3734 else
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot run C compiled programs.
3738 If you meant to cross compile, use \`--host'.
3739 See \`config.log' for more details" "$LINENO" 5; }
3740 fi
3741 fi
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744 $as_echo "$cross_compiling" >&6; }
3745
3746 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749 $as_echo_n "checking for suffix of object files... " >&6; }
3750 if ${ac_cv_objext+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.o conftest.obj
3765 if { { ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compile") 2>&5
3773 ac_status=$?
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781 break;;
3782 esac
3783 done
3784 else
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error $? "cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details" "$LINENO" 5; }
3792 fi
3793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796 $as_echo "$ac_cv_objext" >&6; }
3797 OBJEXT=$ac_cv_objext
3798 ac_objext=$OBJEXT
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801 if ${ac_cv_c_compiler_gnu+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810 #ifndef __GNUC__
3811 choke me
3812 #endif
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_compiler_gnu=yes
3820 else
3821 ac_compiler_gnu=no
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3825
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3830 GCC=yes
3831 else
3832 GCC=
3833 fi
3834 ac_test_CFLAGS=${CFLAGS+set}
3835 ac_save_CFLAGS=$CFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3838 if ${ac_cv_prog_cc_g+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_save_c_werror_flag=$ac_c_werror_flag
3842 ac_c_werror_flag=yes
3843 ac_cv_prog_cc_g=no
3844 CFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847
3848 int
3849 main ()
3850 {
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_cv_prog_cc_g=yes
3858 else
3859 CFLAGS=""
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862
3863 int
3864 main ()
3865 {
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872
3873 else
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3875 CFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main ()
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_g=yes
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898 $as_echo "$ac_cv_prog_cc_g" >&6; }
3899 if test "$ac_test_CFLAGS" = set; then
3900 CFLAGS=$ac_save_CFLAGS
3901 elif test $ac_cv_prog_cc_g = yes; then
3902 if test "$GCC" = yes; then
3903 CFLAGS="-g -O2"
3904 else
3905 CFLAGS="-g"
3906 fi
3907 else
3908 if test "$GCC" = yes; then
3909 CFLAGS="-O2"
3910 else
3911 CFLAGS=
3912 fi
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 ac_cv_prog_cc_c89=no
3920 ac_save_CC=$CC
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdarg.h>
3924 #include <stdio.h>
3925 struct stat;
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3930 char **p;
3931 int i;
3932 {
3933 return p[i];
3934 }
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3936 {
3937 char *s;
3938 va_list v;
3939 va_start (v,p);
3940 s = g (p, va_arg (v,int));
3941 va_end (v);
3942 return s;
3943 }
3944
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3956 #define FOO(x) 'x'
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963 int argc;
3964 char **argv;
3965 int
3966 main ()
3967 {
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 do
3976 CC="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_c89=$ac_arg
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3982 done
3983 rm -f conftest.$ac_ext
3984 CC=$ac_save_CC
3985
3986 fi
3987 # AC_CACHE_VAL
3988 case "x$ac_cv_prog_cc_c89" in
3989 x)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3992 xno)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3995 *)
3996 CC="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999 esac
4000 if test "x$ac_cv_prog_cc_c89" != xno; then :
4001
4002 fi
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4016 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4017 if ${am_cv_prog_cc_c_o+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022
4023 int
4024 main ()
4025 {
4026
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 # Make sure it works both with $CC and with simple cc.
4032 # Following AC_PROG_CC_C_O, we do the test twice because some
4033 # compilers refuse to overwrite an existing .o file with -o,
4034 # though they will create one.
4035 am_cv_prog_cc_c_o=yes
4036 for am_i in 1 2; do
4037 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4038 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } \
4042 && test -f conftest2.$ac_objext; then
4043 : OK
4044 else
4045 am_cv_prog_cc_c_o=no
4046 break
4047 fi
4048 done
4049 rm -f core conftest*
4050 unset am_i
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4053 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4054 if test "$am_cv_prog_cc_c_o" != yes; then
4055 # Losing compiler, so override with the script.
4056 # FIXME: It is wrong to rewrite CC.
4057 # But if we don't then we get into trouble of one sort or another.
4058 # A longer-term fix would be to have automake use am__CC in this case,
4059 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4060 CC="$am_aux_dir/compile $CC"
4061 fi
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
4068 DEPDIR="${am__leading_dot}deps"
4069
4070 ac_config_commands="$ac_config_commands depfiles"
4071
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4073 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4074 cat > confinc.mk << 'END'
4075 am__doit:
4076 @echo this is the am__doit target >confinc.out
4077 .PHONY: am__doit
4078 END
4079 am__include="#"
4080 am__quote=
4081 # BSD make does it like this.
4082 echo '.include "confinc.mk" # ignored' > confmf.BSD
4083 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4084 echo 'include confinc.mk # ignored' > confmf.GNU
4085 _am_result=no
4086 for s in GNU BSD; do
4087 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4088 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }
4092 case $?:`cat confinc.out 2>/dev/null` in #(
4093 '0:this is the am__doit target') :
4094 case $s in #(
4095 BSD) :
4096 am__include='.include' am__quote='"' ;; #(
4097 *) :
4098 am__include='include' am__quote='' ;;
4099 esac ;; #(
4100 *) :
4101 ;;
4102 esac
4103 if test "$am__include" != "#"; then
4104 _am_result="yes ($s style)"
4105 break
4106 fi
4107 done
4108 rm -f confinc.* confmf.*
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4110 $as_echo "${_am_result}" >&6; }
4111
4112 # Check whether --enable-dependency-tracking was given.
4113 if test "${enable_dependency_tracking+set}" = set; then :
4114 enableval=$enable_dependency_tracking;
4115 fi
4116
4117 if test "x$enable_dependency_tracking" != xno; then
4118 am_depcomp="$ac_aux_dir/depcomp"
4119 AMDEPBACKSLASH='\'
4120 am__nodep='_no'
4121 fi
4122 if test "x$enable_dependency_tracking" != xno; then
4123 AMDEP_TRUE=
4124 AMDEP_FALSE='#'
4125 else
4126 AMDEP_TRUE='#'
4127 AMDEP_FALSE=
4128 fi
4129
4130
4131
4132 depcc="$CC" am_compiler_list=
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4135 $as_echo_n "checking dependency style of $depcc... " >&6; }
4136 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140 # We make a subdir and do the tests there. Otherwise we can end up
4141 # making bogus files that we don't know about and never remove. For
4142 # instance it was reported that on HP-UX the gcc test will end up
4143 # making a dummy file named 'D' -- because '-MD' means "put the output
4144 # in D".
4145 rm -rf conftest.dir
4146 mkdir conftest.dir
4147 # Copy depcomp to subdir because otherwise we won't find it if we're
4148 # using a relative directory.
4149 cp "$am_depcomp" conftest.dir
4150 cd conftest.dir
4151 # We will build objects and dependencies in a subdirectory because
4152 # it helps to detect inapplicable dependency modes. For instance
4153 # both Tru64's cc and ICC support -MD to output dependencies as a
4154 # side effect of compilation, but ICC will put the dependencies in
4155 # the current directory while Tru64 will put them in the object
4156 # directory.
4157 mkdir sub
4158
4159 am_cv_CC_dependencies_compiler_type=none
4160 if test "$am_compiler_list" = ""; then
4161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162 fi
4163 am__universal=false
4164 case " $depcc " in #(
4165 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4166 esac
4167
4168 for depmode in $am_compiler_list; do
4169 # Setup a source with many dependencies, because some compilers
4170 # like to wrap large dependency lists on column 80 (with \), and
4171 # we should not choose a depcomp mode which is confused by this.
4172 #
4173 # We need to recreate these files for each test, as the compiler may
4174 # overwrite some of them when testing with obscure command lines.
4175 # This happens at least with the AIX C compiler.
4176 : > sub/conftest.c
4177 for i in 1 2 3 4 5 6; do
4178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4179 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4180 # Solaris 10 /bin/sh.
4181 echo '/* dummy */' > sub/conftst$i.h
4182 done
4183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184
4185 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4186 # mode. It turns out that the SunPro C++ compiler does not properly
4187 # handle '-M -o', and we need to detect this. Also, some Intel
4188 # versions had trouble with output in subdirs.
4189 am__obj=sub/conftest.${OBJEXT-o}
4190 am__minus_obj="-o $am__obj"
4191 case $depmode in
4192 gcc)
4193 # This depmode causes a compiler race in universal mode.
4194 test "$am__universal" = false || continue
4195 ;;
4196 nosideeffect)
4197 # After this tag, mechanisms are not by side-effect, so they'll
4198 # only be used when explicitly requested.
4199 if test "x$enable_dependency_tracking" = xyes; then
4200 continue
4201 else
4202 break
4203 fi
4204 ;;
4205 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4206 # This compiler won't grok '-c -o', but also, the minuso test has
4207 # not run yet. These depmodes are late enough in the game, and
4208 # so weak that their functioning should not be impacted.
4209 am__obj=conftest.${OBJEXT-o}
4210 am__minus_obj=
4211 ;;
4212 none) break ;;
4213 esac
4214 if depmode=$depmode \
4215 source=sub/conftest.c object=$am__obj \
4216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4218 >/dev/null 2>conftest.err &&
4219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223 # icc doesn't choke on unknown options, it will just issue warnings
4224 # or remarks (even with -Werror). So we grep stderr for any message
4225 # that says an option was ignored or not supported.
4226 # When given -MP, icc 7.0 and 7.1 complain thusly:
4227 # icc: Command line warning: ignoring option '-M'; no argument required
4228 # The diagnosis changed in icc 8.0:
4229 # icc: Command line remark: option '-MP' not supported
4230 if (grep 'ignoring option' conftest.err ||
4231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232 am_cv_CC_dependencies_compiler_type=$depmode
4233 break
4234 fi
4235 fi
4236 done
4237
4238 cd ..
4239 rm -rf conftest.dir
4240 else
4241 am_cv_CC_dependencies_compiler_type=none
4242 fi
4243
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4246 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4248
4249 if
4250 test "x$enable_dependency_tracking" != xno \
4251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4252 am__fastdepCC_TRUE=
4253 am__fastdepCC_FALSE='#'
4254 else
4255 am__fastdepCC_TRUE='#'
4256 am__fastdepCC_FALSE=
4257 fi
4258
4259
4260
4261
4262
4263
4264 ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4270 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4271 # On Suns, sometimes $CPP names a directory.
4272 if test -n "$CPP" && test -d "$CPP"; then
4273 CPP=
4274 fi
4275 if test -z "$CPP"; then
4276 if ${ac_cv_prog_CPP+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 # Double quotes because CPP needs to be expanded
4280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4281 do
4282 ac_preproc_ok=false
4283 for ac_c_preproc_warn_flag in '' yes
4284 do
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #ifdef __STDC__
4294 # include <limits.h>
4295 #else
4296 # include <assert.h>
4297 #endif
4298 Syntax error
4299 _ACEOF
4300 if ac_fn_c_try_cpp "$LINENO"; then :
4301
4302 else
4303 # Broken: fails on valid input.
4304 continue
4305 fi
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4307
4308 # OK, works on sane cases. Now check whether nonexistent headers
4309 # can be detected and how.
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <ac_nonexistent.h>
4313 _ACEOF
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4315 # Broken: success on invalid input.
4316 continue
4317 else
4318 # Passes both tests.
4319 ac_preproc_ok=:
4320 break
4321 fi
4322 rm -f conftest.err conftest.i conftest.$ac_ext
4323
4324 done
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.i conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then :
4328 break
4329 fi
4330
4331 done
4332 ac_cv_prog_CPP=$CPP
4333
4334 fi
4335 CPP=$ac_cv_prog_CPP
4336 else
4337 ac_cv_prog_CPP=$CPP
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4340 $as_echo "$CPP" >&6; }
4341 ac_preproc_ok=false
4342 for ac_c_preproc_warn_flag in '' yes
4343 do
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #ifdef __STDC__
4353 # include <limits.h>
4354 #else
4355 # include <assert.h>
4356 #endif
4357 Syntax error
4358 _ACEOF
4359 if ac_fn_c_try_cpp "$LINENO"; then :
4360
4361 else
4362 # Broken: fails on valid input.
4363 continue
4364 fi
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4366
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4372 _ACEOF
4373 if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: success on invalid input.
4375 continue
4376 else
4377 # Passes both tests.
4378 ac_preproc_ok=:
4379 break
4380 fi
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4382
4383 done
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.i conftest.err conftest.$ac_ext
4386 if $ac_preproc_ok; then :
4387
4388 else
4389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4392 See \`config.log' for more details" "$LINENO" 5; }
4393 fi
4394
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4403 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4404 if ${ac_cv_path_GREP+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -z "$GREP"; then
4408 ac_path_GREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in grep ggrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p "$ac_path_GREP" || continue
4419 # Check for GNU ac_path_GREP and select it if it is found.
4420 # Check for GNU $ac_path_GREP
4421 case `"$ac_path_GREP" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4424 *)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'GREP' >> "conftest.nl"
4433 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_GREP="$ac_path_GREP"
4439 ac_path_GREP_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447 $ac_path_GREP_found && break 3
4448 done
4449 done
4450 done
4451 IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_GREP"; then
4453 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 fi
4455 else
4456 ac_cv_path_GREP=$GREP
4457 fi
4458
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4461 $as_echo "$ac_cv_path_GREP" >&6; }
4462 GREP="$ac_cv_path_GREP"
4463
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4466 $as_echo_n "checking for egrep... " >&6; }
4467 if ${ac_cv_path_EGREP+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4471 then ac_cv_path_EGREP="$GREP -E"
4472 else
4473 if test -z "$EGREP"; then
4474 ac_path_EGREP_found=false
4475 # Loop through the user's path and test for each of PROGNAME-LIST
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478 do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_prog in egrep; do
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4484 as_fn_executable_p "$ac_path_EGREP" || continue
4485 # Check for GNU ac_path_EGREP and select it if it is found.
4486 # Check for GNU $ac_path_EGREP
4487 case `"$ac_path_EGREP" --version 2>&1` in
4488 *GNU*)
4489 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4490 *)
4491 ac_count=0
4492 $as_echo_n 0123456789 >"conftest.in"
4493 while :
4494 do
4495 cat "conftest.in" "conftest.in" >"conftest.tmp"
4496 mv "conftest.tmp" "conftest.in"
4497 cp "conftest.in" "conftest.nl"
4498 $as_echo 'EGREP' >> "conftest.nl"
4499 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501 as_fn_arith $ac_count + 1 && ac_count=$as_val
4502 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4503 # Best one so far, save it but keep looking for a better one
4504 ac_cv_path_EGREP="$ac_path_EGREP"
4505 ac_path_EGREP_max=$ac_count
4506 fi
4507 # 10*(2^10) chars as input seems more than enough
4508 test $ac_count -gt 10 && break
4509 done
4510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511 esac
4512
4513 $ac_path_EGREP_found && break 3
4514 done
4515 done
4516 done
4517 IFS=$as_save_IFS
4518 if test -z "$ac_cv_path_EGREP"; then
4519 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520 fi
4521 else
4522 ac_cv_path_EGREP=$EGREP
4523 fi
4524
4525 fi
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4528 $as_echo "$ac_cv_path_EGREP" >&6; }
4529 EGREP="$ac_cv_path_EGREP"
4530
4531
4532
4533 ICC="no"
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc in use" >&5
4535 $as_echo_n "checking for icc in use... " >&6; }
4536 if test "$GCC" = "yes"; then
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 __INTEL_COMPILER
4540 _ACEOF
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548 $as_echo "yes" >&6; }
4549
4550 ICC="yes"
4551 fi
4552 rm -f conftest*
4553
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557
4558 fi
4559
4560
4561
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang in use" >&5
4564 $as_echo_n "checking for clang in use... " >&6; }
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main ()
4570 {
4571
4572 #ifndef __clang__
4573 not clang
4574 #endif
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 CLANG=yes
4582 else
4583 CLANG=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
4587 $as_echo "$CLANG" >&6; }
4588 if test "$CLANG" = "yes"; then :
4589
4590 fi
4591
4592
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4596 $as_echo_n "checking for ANSI C header files... " >&6; }
4597 if ${ac_cv_header_stdc+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdlib.h>
4603 #include <stdarg.h>
4604 #include <string.h>
4605 #include <float.h>
4606
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_header_stdc=yes
4617 else
4618 ac_cv_header_stdc=no
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621
4622 if test $ac_cv_header_stdc = yes; then
4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <string.h>
4627
4628 _ACEOF
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "memchr" >/dev/null 2>&1; then :
4631
4632 else
4633 ac_cv_header_stdc=no
4634 fi
4635 rm -f conftest*
4636
4637 fi
4638
4639 if test $ac_cv_header_stdc = yes; then
4640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <stdlib.h>
4644
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "free" >/dev/null 2>&1; then :
4648
4649 else
4650 ac_cv_header_stdc=no
4651 fi
4652 rm -f conftest*
4653
4654 fi
4655
4656 if test $ac_cv_header_stdc = yes; then
4657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4658 if test "$cross_compiling" = yes; then :
4659 :
4660 else
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663 #include <ctype.h>
4664 #include <stdlib.h>
4665 #if ((' ' & 0x0FF) == 0x020)
4666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4668 #else
4669 # define ISLOWER(c) \
4670 (('a' <= (c) && (c) <= 'i') \
4671 || ('j' <= (c) && (c) <= 'r') \
4672 || ('s' <= (c) && (c) <= 'z'))
4673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4674 #endif
4675
4676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4677 int
4678 main ()
4679 {
4680 int i;
4681 for (i = 0; i < 256; i++)
4682 if (XOR (islower (i), ISLOWER (i))
4683 || toupper (i) != TOUPPER (i))
4684 return 2;
4685 return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_run "$LINENO"; then :
4689
4690 else
4691 ac_cv_header_stdc=no
4692 fi
4693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4694 conftest.$ac_objext conftest.beam conftest.$ac_ext
4695 fi
4696
4697 fi
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4700 $as_echo "$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4702
4703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4704
4705 fi
4706
4707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4709 inttypes.h stdint.h unistd.h
4710 do :
4711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4713 "
4714 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4715 cat >>confdefs.h <<_ACEOF
4716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4717 _ACEOF
4718
4719 fi
4720
4721 done
4722
4723
4724
4725 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4726 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4727 SUNCC="yes"
4728 else
4729 SUNCC="no"
4730 fi
4731
4732 if test "x$SUNCC" = "xyes"; then :
4733 CFLAGS="-mt $CFLAGS"
4734 fi
4735
4736
4737 if test "$ICC" = "yes" -o "$GCC" = "yes"; then :
4738
4739 if test "$CLANG" = "no"; then :
4740 CFLAGS="$CFLAGS -pthread"
4741 fi
4742
4743 fi
4744
4745 if test "$CLANG" = "yes"; then :
4746 CFLAGS="$CFLAGS -Wno-language-extension-token"
4747 fi
4748
4749 if test "$ICC" = "no"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4751 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4752 if ${ac_cv_prog_cc_c99+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_cv_prog_cc_c99=no
4756 ac_save_CC=$CC
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <stdarg.h>
4760 #include <stdbool.h>
4761 #include <stdlib.h>
4762 #include <wchar.h>
4763 #include <stdio.h>
4764
4765 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4766 #define debug(...) fprintf (stderr, __VA_ARGS__)
4767 #define showlist(...) puts (#__VA_ARGS__)
4768 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4769 static void
4770 test_varargs_macros (void)
4771 {
4772 int x = 1234;
4773 int y = 5678;
4774 debug ("Flag");
4775 debug ("X = %d\n", x);
4776 showlist (The first, second, and third items.);
4777 report (x>y, "x is %d but y is %d", x, y);
4778 }
4779
4780 // Check long long types.
4781 #define BIG64 18446744073709551615ull
4782 #define BIG32 4294967295ul
4783 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4784 #if !BIG_OK
4785 your preprocessor is broken;
4786 #endif
4787 #if BIG_OK
4788 #else
4789 your preprocessor is broken;
4790 #endif
4791 static long long int bignum = -9223372036854775807LL;
4792 static unsigned long long int ubignum = BIG64;
4793
4794 struct incomplete_array
4795 {
4796 int datasize;
4797 double data[];
4798 };
4799
4800 struct named_init {
4801 int number;
4802 const wchar_t *name;
4803 double average;
4804 };
4805
4806 typedef const char *ccp;
4807
4808 static inline int
4809 test_restrict (ccp restrict text)
4810 {
4811 // See if C++-style comments work.
4812 // Iterate through items via the restricted pointer.
4813 // Also check for declarations in for loops.
4814 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4815 continue;
4816 return 0;
4817 }
4818
4819 // Check varargs and va_copy.
4820 static void
4821 test_varargs (const char *format, ...)
4822 {
4823 va_list args;
4824 va_start (args, format);
4825 va_list args_copy;
4826 va_copy (args_copy, args);
4827
4828 const char *str;
4829 int number;
4830 float fnumber;
4831
4832 while (*format)
4833 {
4834 switch (*format++)
4835 {
4836 case 's': // string
4837 str = va_arg (args_copy, const char *);
4838 break;
4839 case 'd': // int
4840 number = va_arg (args_copy, int);
4841 break;
4842 case 'f': // float
4843 fnumber = va_arg (args_copy, double);
4844 break;
4845 default:
4846 break;
4847 }
4848 }
4849 va_end (args_copy);
4850 va_end (args);
4851 }
4852
4853 int
4854 main ()
4855 {
4856
4857 // Check bool.
4858 _Bool success = false;
4859
4860 // Check restrict.
4861 if (test_restrict ("String literal") == 0)
4862 success = true;
4863 char *restrict newvar = "Another string";
4864
4865 // Check varargs.
4866 test_varargs ("s, d' f .", "string", 65, 34.234);
4867 test_varargs_macros ();
4868
4869 // Check flexible array members.
4870 struct incomplete_array *ia =
4871 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4872 ia->datasize = 10;
4873 for (int i = 0; i < ia->datasize; ++i)
4874 ia->data[i] = i * 1.234;
4875
4876 // Check named initializers.
4877 struct named_init ni = {
4878 .number = 34,
4879 .name = L"Test wide string",
4880 .average = 543.34343,
4881 };
4882
4883 ni.number = 58;
4884
4885 int dynamic_array[ni.number];
4886 dynamic_array[ni.number - 1] = 543;
4887
4888 // work around unused variable warnings
4889 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4890 || dynamic_array[ni.number - 1] != 543);
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4897 do
4898 CC="$ac_save_CC $ac_arg"
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_prog_cc_c99=$ac_arg
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext
4903 test "x$ac_cv_prog_cc_c99" != "xno" && break
4904 done
4905 rm -f conftest.$ac_ext
4906 CC=$ac_save_CC
4907
4908 fi
4909 # AC_CACHE_VAL
4910 case "x$ac_cv_prog_cc_c99" in
4911 x)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4913 $as_echo "none needed" >&6; } ;;
4914 xno)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4916 $as_echo "unsupported" >&6; } ;;
4917 *)
4918 CC="$CC $ac_cv_prog_cc_c99"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4920 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4921 esac
4922 if test "x$ac_cv_prog_cc_c99" != xno; then :
4923
4924 fi
4925
4926 fi
4927
4928
4929
4930
4931 # Check whether --enable-extstore was given.
4932 if test "${enable_extstore+set}" = set; then :
4933 enableval=$enable_extstore;
4934 fi
4935
4936
4937 # Check whether --enable-seccomp was given.
4938 if test "${enable_seccomp+set}" = set; then :
4939 enableval=$enable_seccomp;
4940 fi
4941
4942
4943 # Check whether --enable-sasl was given.
4944 if test "${enable_sasl+set}" = set; then :
4945 enableval=$enable_sasl;
4946 fi
4947
4948
4949 # Check whether --enable-sasl_pwdb was given.
4950 if test "${enable_sasl_pwdb+set}" = set; then :
4951 enableval=$enable_sasl_pwdb;
4952 fi
4953
4954
4955 if test "x$enable_sasl_pwdb" = "xyes"; then :
4956 enable_sasl=yes
4957 fi
4958
4959 # Check whether --enable-tls was given.
4960 if test "${enable_tls+set}" = set; then :
4961 enableval=$enable_tls;
4962 fi
4963
4964
4965
4966 # Check whether --enable-asan was given.
4967 if test "${enable_asan+set}" = set; then :
4968 enableval=$enable_asan;
4969 fi
4970
4971
4972 # Check whether --enable-static was given.
4973 if test "${enable_static+set}" = set; then :
4974 enableval=$enable_static;
4975 fi
4976
4977
4978 # Check whether --enable-unix_socket was given.
4979 if test "${enable_unix_socket+set}" = set; then :
4980 enableval=$enable_unix_socket;
4981 fi
4982
4983
4984 # Check whether --enable-proxy was given.
4985 if test "${enable_proxy+set}" = set; then :
4986 enableval=$enable_proxy;
4987 fi
4988
4989
4990 # Check whether --enable-proxy-uring was given.
4991 if test "${enable_proxy_uring+set}" = set; then :
4992 enableval=$enable_proxy_uring;
4993 fi
4994
4995
4996
4997
4998
4999
5000 for ac_header in sasl/sasl.h
5001 do :
5002 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
5003 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
5004 cat >>confdefs.h <<_ACEOF
5005 #define HAVE_SASL_SASL_H 1
5006 _ACEOF
5007
5008 fi
5009
5010 done
5011
5012 if test "x$enable_sasl" = "xyes"; then
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL_CB_GETCONF" >&5
5015 $as_echo_n "checking for SASL_CB_GETCONF... " >&6; }
5016 if ${ac_cv_c_sasl_cb_getconf+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021
5022 #include <sasl/sasl.h>
5023
5024 int
5025 main ()
5026 {
5027
5028 unsigned long val = SASL_CB_GETCONF;
5029
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_c_sasl_cb_getconf=yes
5036 else
5037 ac_cv_c_sasl_cb_getconf=no
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_sasl_cb_getconf" >&5
5043 $as_echo "$ac_cv_c_sasl_cb_getconf" >&6; }
5044 if test "$ac_cv_c_sasl_cb_getconf" = "yes"; then :
5045
5046 $as_echo "#define HAVE_SASL_CB_GETCONF 1" >>confdefs.h
5047
5048 fi
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL_CB_GETCONFPATH" >&5
5052 $as_echo_n "checking for SASL_CB_GETCONFPATH... " >&6; }
5053 if ${ac_cv_c_sasl_cb_getconfpath+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058
5059 #include <sasl/sasl.h>
5060
5061 int
5062 main ()
5063 {
5064
5065 unsigned long val = SASL_CB_GETCONFPATH;
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_compile "$LINENO"; then :
5072 ac_cv_c_sasl_cb_getconfpath=yes
5073 else
5074 ac_cv_c_sasl_cb_getconfpath=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_sasl_cb_getconfpath" >&5
5080 $as_echo "$ac_cv_c_sasl_cb_getconfpath" >&6; }
5081 if test "$ac_cv_c_sasl_cb_getconfpath" = "yes"; then :
5082
5083 $as_echo "#define HAVE_SASL_CB_GETCONFPATH 1" >>confdefs.h
5084
5085 fi
5086
5087
5088 $as_echo "#define ENABLE_SASL 1" >>confdefs.h
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sasl_server_init" >&5
5091 $as_echo_n "checking for library containing sasl_server_init... " >&6; }
5092 if ${ac_cv_search_sasl_server_init+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 ac_func_search_save_LIBS=$LIBS
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098
5099 /* Override any GCC internal prototype to avoid an error.
5100 Use char because int might match the return type of a GCC
5101 builtin and then its argument prototype would still apply. */
5102 #ifdef __cplusplus
5103 extern "C"
5104 #endif
5105 char sasl_server_init ();
5106 int
5107 main ()
5108 {
5109 return sasl_server_init ();
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 for ac_lib in '' sasl2 sasl; do
5115 if test -z "$ac_lib"; then
5116 ac_res="none required"
5117 else
5118 ac_res=-l$ac_lib
5119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5120 fi
5121 if ac_fn_c_try_link "$LINENO"; then :
5122 ac_cv_search_sasl_server_init=$ac_res
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext
5126 if ${ac_cv_search_sasl_server_init+:} false; then :
5127 break
5128 fi
5129 done
5130 if ${ac_cv_search_sasl_server_init+:} false; then :
5131
5132 else
5133 ac_cv_search_sasl_server_init=no
5134 fi
5135 rm conftest.$ac_ext
5136 LIBS=$ac_func_search_save_LIBS
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sasl_server_init" >&5
5139 $as_echo "$ac_cv_search_sasl_server_init" >&6; }
5140 ac_res=$ac_cv_search_sasl_server_init
5141 if test "$ac_res" != no; then :
5142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5143
5144 else
5145
5146 as_fn_error $? "Failed to locate the library containing sasl_server_init" "$LINENO" 5
5147
5148 fi
5149
5150
5151 if test "x$enable_sasl_pwdb" = "xyes"; then :
5152
5153 $as_echo "#define ENABLE_SASL_PWDB 1" >>confdefs.h
5154
5155 fi
5156 fi
5157
5158 # Check whether --enable-dtrace was given.
5159 if test "${enable_dtrace+set}" = set; then :
5160 enableval=$enable_dtrace;
5161 fi
5162
5163 if test "x$enable_dtrace" = "xyes"; then
5164 # Extract the first word of "dtrace", so it can be a program name with args.
5165 set dummy dtrace; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_path_DTRACE+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 case $DTRACE in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
5174 ;;
5175 *)
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 as_dummy="/usr/sbin:$PATH"
5178 for as_dir in $as_dummy
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE=""no""
5193 ;;
5194 esac
5195 fi
5196 DTRACE=$ac_cv_path_DTRACE
5197 if test -n "$DTRACE"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5199 $as_echo "$DTRACE" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 if test "x$DTRACE" != "xno"; then
5207
5208 $as_echo "#define ENABLE_DTRACE 1" >>confdefs.h
5209
5210 build_dtrace=yes
5211 $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
5212 if test $? -eq 0
5213 then
5214 dtrace_instrument_obj=yes
5215 rm conftest.h
5216 fi
5217
5218 if test "`which tr`" = "/usr/ucb/tr"; then
5219 as_fn_error $? "Please remove /usr/ucb from your path. See man standards for more info" "$LINENO" 5
5220 fi
5221 else
5222 as_fn_error $? "Need dtrace binary and OS support." "$LINENO" 5
5223 fi
5224 fi
5225
5226 if test "x$enable_extstore" != "xno"; then
5227
5228 $as_echo "#define EXTSTORE 1" >>confdefs.h
5229
5230 fi
5231
5232 if test "x$enable_tls" = "xyes"; then
5233
5234 $as_echo "#define TLS 1" >>confdefs.h
5235
5236 fi
5237
5238 if test "x$enable_asan" = "xyes"; then
5239
5240 $as_echo "#define ASAN 1" >>confdefs.h
5241
5242 fi
5243
5244 if test "x$enable_static" = "xyes"; then
5245
5246 $as_echo "#define STATIC 1" >>confdefs.h
5247
5248 fi
5249
5250 if test "x$enable_unix_socket" = "xno"; then
5251
5252 $as_echo "#define DISABLE_UNIX_SOCKET 1" >>confdefs.h
5253
5254 fi
5255
5256 if test "x$enable_proxy" = "xyes"; then
5257
5258 $as_echo "#define PROXY 1" >>confdefs.h
5259
5260 CPPFLAGS="-Ivendor/lua/src -Ivendor/liburing/src/include $CPPFLAGS"
5261 LIBS="$LIBS -lm -ldl"
5262 fi
5263
5264 if test "x$enable_proxy_uring" = "xyes"; then
5265
5266 $as_echo "#define HAVE_LIBURING 1" >>confdefs.h
5267
5268 CPPFLAGS="-Ivendor/liburing/src/include $CPPFLAGS"
5269 fi
5270
5271 if test "$build_dtrace" = "yes"; then
5272 BUILD_DTRACE_TRUE=
5273 BUILD_DTRACE_FALSE='#'
5274 else
5275 BUILD_DTRACE_TRUE='#'
5276 BUILD_DTRACE_FALSE=
5277 fi
5278
5279 if test "$dtrace_instrument_obj" = "yes"; then
5280 DTRACE_INSTRUMENT_OBJ_TRUE=
5281 DTRACE_INSTRUMENT_OBJ_FALSE='#'
5282 else
5283 DTRACE_INSTRUMENT_OBJ_TRUE='#'
5284 DTRACE_INSTRUMENT_OBJ_FALSE=
5285 fi
5286
5287 if test "$enable_sasl" = "yes"; then
5288 ENABLE_SASL_TRUE=
5289 ENABLE_SASL_FALSE='#'
5290 else
5291 ENABLE_SASL_TRUE='#'
5292 ENABLE_SASL_FALSE=
5293 fi
5294
5295 if test "$enable_extstore" != "no"; then
5296 ENABLE_EXTSTORE_TRUE=
5297 ENABLE_EXTSTORE_FALSE='#'
5298 else
5299 ENABLE_EXTSTORE_TRUE='#'
5300 ENABLE_EXTSTORE_FALSE=
5301 fi
5302
5303 if test "$enable_arm_crc32" = "yes"; then
5304 ENABLE_ARM_CRC32_TRUE=
5305 ENABLE_ARM_CRC32_FALSE='#'
5306 else
5307 ENABLE_ARM_CRC32_TRUE='#'
5308 ENABLE_ARM_CRC32_FALSE=
5309 fi
5310
5311 if test "$enable_tls" = "yes"; then
5312 ENABLE_TLS_TRUE=
5313 ENABLE_TLS_FALSE='#'
5314 else
5315 ENABLE_TLS_TRUE='#'
5316 ENABLE_TLS_FALSE=
5317 fi
5318
5319 if test "$enable_asan" = "yes"; then
5320 ENABLE_ASAN_TRUE=
5321 ENABLE_ASAN_FALSE='#'
5322 else
5323 ENABLE_ASAN_TRUE='#'
5324 ENABLE_ASAN_FALSE=
5325 fi
5326
5327 if test "$enable_static" = "yes"; then
5328 ENABLE_STATIC_TRUE=
5329 ENABLE_STATIC_FALSE='#'
5330 else
5331 ENABLE_STATIC_TRUE='#'
5332 ENABLE_STATIC_FALSE=
5333 fi
5334
5335 if test "$enable_unix_socket" = "no"; then
5336 DISABLE_UNIX_SOCKET_TRUE=
5337 DISABLE_UNIX_SOCKET_FALSE='#'
5338 else
5339 DISABLE_UNIX_SOCKET_TRUE='#'
5340 DISABLE_UNIX_SOCKET_FALSE=
5341 fi
5342
5343 if test "$enable_proxy" = "yes"; then
5344 ENABLE_PROXY_TRUE=
5345 ENABLE_PROXY_FALSE='#'
5346 else
5347 ENABLE_PROXY_TRUE='#'
5348 ENABLE_PROXY_FALSE=
5349 fi
5350
5351 if test "$enable_proxy_uring" = "yes"; then
5352 ENABLE_PROXY_URING_TRUE=
5353 ENABLE_PROXY_URING_FALSE='#'
5354 else
5355 ENABLE_PROXY_URING_TRUE='#'
5356 ENABLE_PROXY_URING_FALSE=
5357 fi
5358
5359
5360
5361
5362
5363
5364
5365
5366 # Check whether --enable-coverage was given.
5367 if test "${enable_coverage+set}" = set; then :
5368 enableval=$enable_coverage;
5369 fi
5370
5371
5372 if test "x$enable_coverage" != "xno"; then
5373 if test "$GCC" = "yes" -a "$ICC" != "yes" -a "$CLANG" != "yes"
5374 then
5375 CFLAGS="$CFLAGS -pthread"
5376 # Extract the first word of "gcov", so it can be a program name with args.
5377 set dummy gcov; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_PROFILER+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 case $PROFILER in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_PROFILER="$PROFILER" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_PROFILER="$as_dir/$ac_word$ac_exec_ext"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 test -z "$ac_cv_path_PROFILER" && ac_cv_path_PROFILER=""no""
5404 ;;
5405 esac
5406 fi
5407 PROFILER=$ac_cv_path_PROFILER
5408 if test -n "$PROFILER"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILER" >&5
5410 $as_echo "$PROFILER" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 if test "x$PROFILER" != "xno"; then
5418 # Issue 97: The existence of gcov doesn't mean we have -lgcov
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgcov" >&5
5420 $as_echo_n "checking for main in -lgcov... " >&6; }
5421 if ${ac_cv_lib_gcov_main+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 ac_check_lib_save_LIBS=$LIBS
5425 LIBS="-lgcov $LIBS"
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428
5429
5430 int
5431 main ()
5432 {
5433 return main ();
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_link "$LINENO"; then :
5439 ac_cv_lib_gcov_main=yes
5440 else
5441 ac_cv_lib_gcov_main=no
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext \
5444 conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov_main" >&5
5448 $as_echo "$ac_cv_lib_gcov_main" >&6; }
5449 if test "x$ac_cv_lib_gcov_main" = xyes; then :
5450
5451 PROFILER_FLAGS="-fprofile-arcs -ftest-coverage"
5452 PROFILER_LDFLAGS="-lgcov"
5453
5454 else
5455
5456 PROFILER_FLAGS=
5457 PROFILER_LDFLAGS=
5458
5459 fi
5460
5461 fi
5462 elif test "$SUNCC" = "yes"
5463 then
5464 # Extract the first word of "tcov", so it can be a program name with args.
5465 set dummy tcov; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_path_PROFILER+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 case $PROFILER in
5472 [\\/]* | ?:[\\/]*)
5473 ac_cv_path_PROFILER="$PROFILER" # Let the user override the test with a path.
5474 ;;
5475 *)
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_path_PROFILER="$as_dir/$ac_word$ac_exec_ext"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487 done
5488 done
5489 IFS=$as_save_IFS
5490
5491 test -z "$ac_cv_path_PROFILER" && ac_cv_path_PROFILER=""no""
5492 ;;
5493 esac
5494 fi
5495 PROFILER=$ac_cv_path_PROFILER
5496 if test -n "$PROFILER"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILER" >&5
5498 $as_echo "$PROFILER" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504
5505 if test "x$PROFILER" != "xno"; then
5506 PROFILER_FLAGS=-xprofile=tcov
5507 fi
5508 elif test "x$CLANG" != "xno"
5509