Debian Codegraph @

src/modules/rlm_cache/drivers/rlm_cache_memcached/configure

raw
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="rlm_cache_memcached.c"
586 ac_subst_vars='LTLIBOBJS
587 LIBOBJS
588 mod_ldflags
589 mod_cflags
590 targetname
591 CPP
592 OBJEXT
593 EXEEXT
594 ac_ct_CC
595 CPPFLAGS
596 LDFLAGS
597 CFLAGS
598 CC
599 target_alias
600 host_alias
601 build_alias
602 LIBS
603 ECHO_T
604 ECHO_N
605 ECHO_C
606 DEFS
607 mandir
608 localedir
609 libdir
610 psdir
611 pdfdir
612 dvidir
613 htmldir
614 infodir
615 docdir
616 oldincludedir
617 includedir
618 runstatedir
619 localstatedir
620 sharedstatedir
621 sysconfdir
622 datadir
623 datarootdir
624 libexecdir
625 sbindir
626 bindir
627 program_transform_name
628 prefix
629 exec_prefix
630 PACKAGE_URL
631 PACKAGE_BUGREPORT
632 PACKAGE_STRING
633 PACKAGE_VERSION
634 PACKAGE_TARNAME
635 PACKAGE_NAME
636 PATH_SEPARATOR
637 SHELL'
638 ac_subst_files=''
639 ac_user_opts='
640 enable_option_checking
641 with_rlm_cache_memcached
642 with_libmemcached_include_dir
643 with_libmemcached_lib_dir
644 with_libmemcached_dir
645 '
646 ac_precious_vars='build_alias
647 host_alias
648 target_alias
649 CC
650 CFLAGS
651 LDFLAGS
652 LIBS
653 CPPFLAGS
654 CPP'
655
656
657 # Initialize some variables set by options.
658 ac_init_help=
659 ac_init_version=false
660 ac_unrecognized_opts=
661 ac_unrecognized_sep=
662 # The variables have the same names as the options, with
663 # dashes changed to underlines.
664 cache_file=/dev/null
665 exec_prefix=NONE
666 no_create=
667 no_recursion=
668 prefix=NONE
669 program_prefix=NONE
670 program_suffix=NONE
671 program_transform_name=s,x,x,
672 silent=
673 site=
674 srcdir=
675 verbose=
676 x_includes=NONE
677 x_libraries=NONE
678
679 # Installation directory options.
680 # These are left unexpanded so users can "make install exec_prefix=/foo"
681 # and all the variables that are supposed to be based on exec_prefix
682 # by default will actually change.
683 # Use braces instead of parens because sh, perl, etc. also accept them.
684 # (The list follows the same order as the GNU Coding Standards.)
685 bindir='${exec_prefix}/bin'
686 sbindir='${exec_prefix}/sbin'
687 libexecdir='${exec_prefix}/libexec'
688 datarootdir='${prefix}/share'
689 datadir='${datarootdir}'
690 sysconfdir='${prefix}/etc'
691 sharedstatedir='${prefix}/com'
692 localstatedir='${prefix}/var'
693 runstatedir='${localstatedir}/run'
694 includedir='${prefix}/include'
695 oldincludedir='/usr/include'
696 docdir='${datarootdir}/doc/${PACKAGE}'
697 infodir='${datarootdir}/info'
698 htmldir='${docdir}'
699 dvidir='${docdir}'
700 pdfdir='${docdir}'
701 psdir='${docdir}'
702 libdir='${exec_prefix}/lib'
703 localedir='${datarootdir}/locale'
704 mandir='${datarootdir}/man'
705
706 ac_prev=
707 ac_dashdash=
708 for ac_option
709 do
710 # If the previous option needs an argument, assign it.
711 if test -n "$ac_prev"; then
712 eval $ac_prev=\$ac_option
713 ac_prev=
714 continue
715 fi
716
717 case $ac_option in
718 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
719 *=) ac_optarg= ;;
720 *) ac_optarg=yes ;;
721 esac
722
723 # Accept the important Cygnus configure options, so we can diagnose typos.
724
725 case $ac_dashdash$ac_option in
726 --)
727 ac_dashdash=yes ;;
728
729 -bindir | --bindir | --bindi | --bind | --bin | --bi)
730 ac_prev=bindir ;;
731 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
732 bindir=$ac_optarg ;;
733
734 -build | --build | --buil | --bui | --bu)
735 ac_prev=build_alias ;;
736 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
737 build_alias=$ac_optarg ;;
738
739 -cache-file | --cache-file | --cache-fil | --cache-fi \
740 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
741 ac_prev=cache_file ;;
742 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
743 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
744 cache_file=$ac_optarg ;;
745
746 --config-cache | -C)
747 cache_file=config.cache ;;
748
749 -datadir | --datadir | --datadi | --datad)
750 ac_prev=datadir ;;
751 -datadir=* | --datadir=* | --datadi=* | --datad=*)
752 datadir=$ac_optarg ;;
753
754 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
755 | --dataroo | --dataro | --datar)
756 ac_prev=datarootdir ;;
757 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
758 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
759 datarootdir=$ac_optarg ;;
760
761 -disable-* | --disable-*)
762 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
763 # Reject names that are not valid shell variable names.
764 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
765 as_fn_error $? "invalid feature name: $ac_useropt"
766 ac_useropt_orig=$ac_useropt
767 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
768 case $ac_user_opts in
769 *"
770 "enable_$ac_useropt"
771 "*) ;;
772 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
773 ac_unrecognized_sep=', ';;
774 esac
775 eval enable_$ac_useropt=no ;;
776
777 -docdir | --docdir | --docdi | --doc | --do)
778 ac_prev=docdir ;;
779 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
780 docdir=$ac_optarg ;;
781
782 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
783 ac_prev=dvidir ;;
784 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
785 dvidir=$ac_optarg ;;
786
787 -enable-* | --enable-*)
788 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791 as_fn_error $? "invalid feature name: $ac_useropt"
792 ac_useropt_orig=$ac_useropt
793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
795 *"
796 "enable_$ac_useropt"
797 "*) ;;
798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
799 ac_unrecognized_sep=', ';;
800 esac
801 eval enable_$ac_useropt=\$ac_optarg ;;
802
803 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
804 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
805 | --exec | --exe | --ex)
806 ac_prev=exec_prefix ;;
807 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
808 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
809 | --exec=* | --exe=* | --ex=*)
810 exec_prefix=$ac_optarg ;;
811
812 -gas | --gas | --ga | --g)
813 # Obsolete; use --with-gas.
814 with_gas=yes ;;
815
816 -help | --help | --hel | --he | -h)
817 ac_init_help=long ;;
818 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
819 ac_init_help=recursive ;;
820 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
821 ac_init_help=short ;;
822
823 -host | --host | --hos | --ho)
824 ac_prev=host_alias ;;
825 -host=* | --host=* | --hos=* | --ho=*)
826 host_alias=$ac_optarg ;;
827
828 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
829 ac_prev=htmldir ;;
830 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
831 | --ht=*)
832 htmldir=$ac_optarg ;;
833
834 -includedir | --includedir | --includedi | --included | --include \
835 | --includ | --inclu | --incl | --inc)
836 ac_prev=includedir ;;
837 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
838 | --includ=* | --inclu=* | --incl=* | --inc=*)
839 includedir=$ac_optarg ;;
840
841 -infodir | --infodir | --infodi | --infod | --info | --inf)
842 ac_prev=infodir ;;
843 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
844 infodir=$ac_optarg ;;
845
846 -libdir | --libdir | --libdi | --libd)
847 ac_prev=libdir ;;
848 -libdir=* | --libdir=* | --libdi=* | --libd=*)
849 libdir=$ac_optarg ;;
850
851 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
852 | --libexe | --libex | --libe)
853 ac_prev=libexecdir ;;
854 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
855 | --libexe=* | --libex=* | --libe=*)
856 libexecdir=$ac_optarg ;;
857
858 -localedir | --localedir | --localedi | --localed | --locale)
859 ac_prev=localedir ;;
860 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
861 localedir=$ac_optarg ;;
862
863 -localstatedir | --localstatedir | --localstatedi | --localstated \
864 | --localstate | --localstat | --localsta | --localst | --locals)
865 ac_prev=localstatedir ;;
866 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
867 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
868 localstatedir=$ac_optarg ;;
869
870 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
871 ac_prev=mandir ;;
872 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
873 mandir=$ac_optarg ;;
874
875 -nfp | --nfp | --nf)
876 # Obsolete; use --without-fp.
877 with_fp=no ;;
878
879 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
880 | --no-cr | --no-c | -n)
881 no_create=yes ;;
882
883 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
884 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
885 no_recursion=yes ;;
886
887 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
888 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
889 | --oldin | --oldi | --old | --ol | --o)
890 ac_prev=oldincludedir ;;
891 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
892 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
893 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
894 oldincludedir=$ac_optarg ;;
895
896 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
897 ac_prev=prefix ;;
898 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
899 prefix=$ac_optarg ;;
900
901 -program-prefix | --program-prefix | --program-prefi | --program-pref \
902 | --program-pre | --program-pr | --program-p)
903 ac_prev=program_prefix ;;
904 -program-prefix=* | --program-prefix=* | --program-prefi=* \
905 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
906 program_prefix=$ac_optarg ;;
907
908 -program-suffix | --program-suffix | --program-suffi | --program-suff \
909 | --program-suf | --program-su | --program-s)
910 ac_prev=program_suffix ;;
911 -program-suffix=* | --program-suffix=* | --program-suffi=* \
912 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
913 program_suffix=$ac_optarg ;;
914
915 -program-transform-name | --program-transform-name \
916 | --program-transform-nam | --program-transform-na \
917 | --program-transform-n | --program-transform- \
918 | --program-transform | --program-transfor \
919 | --program-transfo | --program-transf \
920 | --program-trans | --program-tran \
921 | --progr-tra | --program-tr | --program-t)
922 ac_prev=program_transform_name ;;
923 -program-transform-name=* | --program-transform-name=* \
924 | --program-transform-nam=* | --program-transform-na=* \
925 | --program-transform-n=* | --program-transform-=* \
926 | --program-transform=* | --program-transfor=* \
927 | --program-transfo=* | --program-transf=* \
928 | --program-trans=* | --program-tran=* \
929 | --progr-tra=* | --program-tr=* | --program-t=*)
930 program_transform_name=$ac_optarg ;;
931
932 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
933 ac_prev=pdfdir ;;
934 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
935 pdfdir=$ac_optarg ;;
936
937 -psdir | --psdir | --psdi | --psd | --ps)
938 ac_prev=psdir ;;
939 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
940 psdir=$ac_optarg ;;
941
942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
943 | -silent | --silent | --silen | --sile | --sil)
944 silent=yes ;;
945
946 -runstatedir | --runstatedir | --runstatedi | --runstated \
947 | --runstate | --runstat | --runsta | --runst | --runs \
948 | --run | --ru | --r)
949 ac_prev=runstatedir ;;
950 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
951 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
952 | --run=* | --ru=* | --r=*)
953 runstatedir=$ac_optarg ;;
954
955 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
956 ac_prev=sbindir ;;
957 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
958 | --sbi=* | --sb=*)
959 sbindir=$ac_optarg ;;
960
961 -sharedstatedir | --sharedstatedir | --sharedstatedi \
962 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
963 | --sharedst | --shareds | --shared | --share | --shar \
964 | --sha | --sh)
965 ac_prev=sharedstatedir ;;
966 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
967 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
968 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
969 | --sha=* | --sh=*)
970 sharedstatedir=$ac_optarg ;;
971
972 -site | --site | --sit)
973 ac_prev=site ;;
974 -site=* | --site=* | --sit=*)
975 site=$ac_optarg ;;
976
977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
978 ac_prev=srcdir ;;
979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
980 srcdir=$ac_optarg ;;
981
982 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
983 | --syscon | --sysco | --sysc | --sys | --sy)
984 ac_prev=sysconfdir ;;
985 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
986 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
987 sysconfdir=$ac_optarg ;;
988
989 -target | --target | --targe | --targ | --tar | --ta | --t)
990 ac_prev=target_alias ;;
991 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
992 target_alias=$ac_optarg ;;
993
994 -v | -verbose | --verbose | --verbos | --verbo | --verb)
995 verbose=yes ;;
996
997 -version | --version | --versio | --versi | --vers | -V)
998 ac_init_version=: ;;
999
1000 -with-* | --with-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid package name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "with_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval with_$ac_useropt=\$ac_optarg ;;
1015
1016 -without-* | --without-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid package name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025 "with_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval with_$ac_useropt=no ;;
1031
1032 --x)
1033 # Obsolete; use --with-x.
1034 with_x=yes ;;
1035
1036 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1037 | --x-incl | --x-inc | --x-in | --x-i)
1038 ac_prev=x_includes ;;
1039 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1040 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1041 x_includes=$ac_optarg ;;
1042
1043 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1044 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1045 ac_prev=x_libraries ;;
1046 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1047 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1048 x_libraries=$ac_optarg ;;
1049
1050 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1051 Try \`$0 --help' for more information"
1052 ;;
1053
1054 *=*)
1055 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1056 # Reject names that are not valid shell variable names.
1057 case $ac_envvar in #(
1058 '' | [0-9]* | *[!_$as_cr_alnum]* )
1059 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1060 esac
1061 eval $ac_envvar=\$ac_optarg
1062 export $ac_envvar ;;
1063
1064 *)
1065 # FIXME: should be removed in autoconf 3.0.
1066 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1067 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1069 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1070 ;;
1071
1072 esac
1073 done
1074
1075 if test -n "$ac_prev"; then
1076 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1077 as_fn_error $? "missing argument to $ac_option"
1078 fi
1079
1080 if test -n "$ac_unrecognized_opts"; then
1081 case $enable_option_checking in
1082 no) ;;
1083 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1084 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1085 esac
1086 fi
1087
1088 # Check all directory arguments for consistency.
1089 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1090 datadir sysconfdir sharedstatedir localstatedir includedir \
1091 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1092 libdir localedir mandir runstatedir
1093 do
1094 eval ac_val=\$$ac_var
1095 # Remove trailing slashes.
1096 case $ac_val in
1097 */ )
1098 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1099 eval $ac_var=\$ac_val;;
1100 esac
1101 # Be sure to have absolute directory names.
1102 case $ac_val in
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1105 esac
1106 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1107 done
1108
1109 # There might be people who depend on the old broken behavior: `$host'
1110 # used to hold the argument of --host etc.
1111 # FIXME: To remove some day.
1112 build=$build_alias
1113 host=$host_alias
1114 target=$target_alias
1115
1116 # FIXME: To remove some day.
1117 if test "x$host_alias" != x; then
1118 if test "x$build_alias" = x; then
1119 cross_compiling=maybe
1120 elif test "x$build_alias" != "x$host_alias"; then
1121 cross_compiling=yes
1122 fi
1123 fi
1124
1125 ac_tool_prefix=
1126 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1127
1128 test "$silent" = yes && exec 6>/dev/null
1129
1130
1131 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1132 ac_ls_di=`ls -di .` &&
1133 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1134 as_fn_error $? "working directory cannot be determined"
1135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1136 as_fn_error $? "pwd does not report name of working directory"
1137
1138
1139 # Find the source files, if location was not specified.
1140 if test -z "$srcdir"; then
1141 ac_srcdir_defaulted=yes
1142 # Try the directory containing this script, then the parent directory.
1143 ac_confdir=`$as_dirname -- "$as_myself" ||
1144 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1145 X"$as_myself" : 'X\(//\)[^/]' \| \
1146 X"$as_myself" : 'X\(//\)$' \| \
1147 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1148 $as_echo X"$as_myself" |
1149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1150 s//\1/
1151 q
1152 }
1153 /^X\(\/\/\)[^/].*/{
1154 s//\1/
1155 q
1156 }
1157 /^X\(\/\/\)$/{
1158 s//\1/
1159 q
1160 }
1161 /^X\(\/\).*/{
1162 s//\1/
1163 q
1164 }
1165 s/.*/./; q'`
1166 srcdir=$ac_confdir
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 srcdir=..
1169 fi
1170 else
1171 ac_srcdir_defaulted=no
1172 fi
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1174 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1175 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1176 fi
1177 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1178 ac_abs_confdir=`(
1179 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1180 pwd)`
1181 # When building in place, set srcdir=.
1182 if test "$ac_abs_confdir" = "$ac_pwd"; then
1183 srcdir=.
1184 fi
1185 # Remove unnecessary trailing slashes from srcdir.
1186 # Double slashes in file names in object file debugging info
1187 # mess up M-x gdb in Emacs.
1188 case $srcdir in
1189 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1190 esac
1191 for ac_var in $ac_precious_vars; do
1192 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1193 eval ac_env_${ac_var}_value=\$${ac_var}
1194 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1195 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1196 done
1197
1198 #
1199 # Report the --help message.
1200 #
1201 if test "$ac_init_help" = "long"; then
1202 # Omit some internal or obsolete options to make the list less imposing.
1203 # This message is too long to be a string in the A/UX 3.1 sh.
1204 cat <<_ACEOF
1205 \`configure' configures this package to adapt to many kinds of systems.
1206
1207 Usage: $0 [OPTION]... [VAR=VALUE]...
1208
1209 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1210 VAR=VALUE. See below for descriptions of some of the useful variables.
1211
1212 Defaults for the options are specified in brackets.
1213
1214 Configuration:
1215 -h, --help display this help and exit
1216 --help=short display options specific to this package
1217 --help=recursive display the short help of all the included packages
1218 -V, --version display version information and exit
1219 -q, --quiet, --silent do not print \`checking ...' messages
1220 --cache-file=FILE cache test results in FILE [disabled]
1221 -C, --config-cache alias for \`--cache-file=config.cache'
1222 -n, --no-create do not create output files
1223 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1224
1225 Installation directories:
1226 --prefix=PREFIX install architecture-independent files in PREFIX
1227 [$ac_default_prefix]
1228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1229 [PREFIX]
1230
1231 By default, \`make install' will install all the files in
1232 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1233 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1234 for instance \`--prefix=\$HOME'.
1235
1236 For better control, use the options below.
1237
1238 Fine tuning of the installation directories:
1239 --bindir=DIR user executables [EPREFIX/bin]
1240 --sbindir=DIR system admin executables [EPREFIX/sbin]
1241 --libexecdir=DIR program executables [EPREFIX/libexec]
1242 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1243 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1244 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1245 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1246 --libdir=DIR object code libraries [EPREFIX/lib]
1247 --includedir=DIR C header files [PREFIX/include]
1248 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1249 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1250 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1251 --infodir=DIR info documentation [DATAROOTDIR/info]
1252 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1253 --mandir=DIR man documentation [DATAROOTDIR/man]
1254 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1255 --htmldir=DIR html documentation [DOCDIR]
1256 --dvidir=DIR dvi documentation [DOCDIR]
1257 --pdfdir=DIR pdf documentation [DOCDIR]
1258 --psdir=DIR ps documentation [DOCDIR]
1259 _ACEOF
1260
1261 cat <<\_ACEOF
1262 _ACEOF
1263 fi
1264
1265 if test -n "$ac_init_help"; then
1266
1267 cat <<\_ACEOF
1268
1269 Optional Packages:
1270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1272 --without-rlm_cache_memcached
1273 build without rlm_cache_memcached
1274 --with-libmemcached-include-dir=DIR
1275 Directory where the libmemcached includes may be
1276 found
1277 --with-libmemcached-lib-dir=DIR
1278 Directory where the libmemcached libraries may be
1279 found
1280 --with-libmemcached-dir=DIR
1281 Base directory where libmemcached is installed
1282
1283 Some influential environment variables:
1284 CC C compiler command
1285 CFLAGS C compiler flags
1286 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1287 nonstandard directory <lib dir>
1288 LIBS libraries to pass to the linker, e.g. -l<library>
1289 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1290 you have headers in a nonstandard directory <include dir>
1291 CPP C preprocessor
1292
1293 Use these variables to override the choices made by `configure' or to help
1294 it to find libraries and programs with nonstandard names/locations.
1295
1296 Report bugs to the package provider.
1297 _ACEOF
1298 ac_status=$?
1299 fi
1300
1301 if test "$ac_init_help" = "recursive"; then
1302 # If there are subdirs, report their specific --help.
1303 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1304 test -d "$ac_dir" ||
1305 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1306 continue
1307 ac_builddir=.
1308
1309 case "$ac_dir" in
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 *)
1312 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 esac ;;
1319 esac
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1324
1325 case $srcdir in
1326 .) # We are building in place.
1327 ac_srcdir=.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1334 *) # Relative name.
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 esac
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1344 echo &&
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1347 echo &&
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1349 else
1350 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 fi || ac_status=$?
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1353 done
1354 fi
1355
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1358 cat <<\_ACEOF
1359 configure
1360 generated by GNU Autoconf 2.69
1361
1362 Copyright (C) 2012 Free Software Foundation, Inc.
1363 This configure script is free software; the Free Software Foundation
1364 gives unlimited permission to copy, distribute and modify it.
1365 _ACEOF
1366 exit
1367 fi
1368
1369 ## ------------------------ ##
1370 ## Autoconf initialization. ##
1371 ## ------------------------ ##
1372
1373 echo
1374 echo Running tests for rlm_cache_memcached
1375 echo
1376
1377
1378 # ac_fn_c_try_compile LINENO
1379 # --------------------------
1380 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1381 ac_fn_c_try_compile ()
1382 {
1383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1384 rm -f conftest.$ac_objext
1385 if { { ac_try="$ac_compile"
1386 case "(($ac_try" in
1387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1388 *) ac_try_echo=$ac_try;;
1389 esac
1390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1391 $as_echo "$ac_try_echo"; } >&5
1392 (eval "$ac_compile") 2>conftest.err
1393 ac_status=$?
1394 if test -s conftest.err; then
1395 grep -v '^ *+' conftest.err >conftest.er1
1396 cat conftest.er1 >&5
1397 mv -f conftest.er1 conftest.err
1398 fi
1399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1400 test $ac_status = 0; } && {
1401 test -z "$ac_c_werror_flag" ||
1402 test ! -s conftest.err
1403 } && test -s conftest.$ac_objext; then :
1404 ac_retval=0
1405 else
1406 $as_echo "$as_me: failed program was:" >&5
1407 sed 's/^/| /' conftest.$ac_ext >&5
1408
1409 ac_retval=1
1410 fi
1411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1412 as_fn_set_status $ac_retval
1413
1414 } # ac_fn_c_try_compile
1415
1416 # ac_fn_c_try_cpp LINENO
1417 # ----------------------
1418 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1419 ac_fn_c_try_cpp ()
1420 {
1421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1422 if { { ac_try="$ac_cpp conftest.$ac_ext"
1423 case "(($ac_try" in
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1426 esac
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1430 ac_status=$?
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1435 fi
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } > conftest.i && {
1438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 }; then :
1441 ac_retval=0
1442 else
1443 $as_echo "$as_me: failed program was:" >&5
1444 sed 's/^/| /' conftest.$ac_ext >&5
1445
1446 ac_retval=1
1447 fi
1448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1449 as_fn_set_status $ac_retval
1450
1451 } # ac_fn_c_try_cpp
1452
1453 # ac_fn_c_try_link LINENO
1454 # -----------------------
1455 # Try to link conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_link ()
1457 {
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 rm -f conftest.$ac_objext conftest$ac_exeext
1460 if { { ac_try="$ac_link"
1461 case "(($ac_try" in
1462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463 *) ac_try_echo=$ac_try;;
1464 esac
1465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466 $as_echo "$ac_try_echo"; } >&5
1467 (eval "$ac_link") 2>conftest.err
1468 ac_status=$?
1469 if test -s conftest.err; then
1470 grep -v '^ *+' conftest.err >conftest.er1
1471 cat conftest.er1 >&5
1472 mv -f conftest.er1 conftest.err
1473 fi
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && {
1476 test -z "$ac_c_werror_flag" ||
1477 test ! -s conftest.err
1478 } && test -s conftest$ac_exeext && {
1479 test "$cross_compiling" = yes ||
1480 test -x conftest$ac_exeext
1481 }; then :
1482 ac_retval=0
1483 else
1484 $as_echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.$ac_ext >&5
1486
1487 ac_retval=1
1488 fi
1489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1491 # interfere with the next link command; also delete a directory that is
1492 # left behind by Apple's compiler. We do this before executing the actions.
1493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status $ac_retval
1496
1497 } # ac_fn_c_try_link
1498
1499 # ac_fn_c_check_func LINENO FUNC VAR
1500 # ----------------------------------
1501 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1502 ac_fn_c_check_func ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1506 $as_echo_n "checking for $2... " >&6; }
1507 if eval \${$3+:} false; then :
1508 $as_echo_n "(cached) " >&6
1509 else
1510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1511 /* end confdefs.h. */
1512 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1514 #define $2 innocuous_$2
1515
1516 /* System header to define __stub macros and hopefully few prototypes,
1517 which can conflict with char $2 (); below.
1518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1519 <limits.h> exists even on freestanding compilers. */
1520
1521 #ifdef __STDC__
1522 # include <limits.h>
1523 #else
1524 # include <assert.h>
1525 #endif
1526
1527 #undef $2
1528
1529 /* Override any GCC internal prototype to avoid an error.
1530 Use char because int might match the return type of a GCC
1531 builtin and then its argument prototype would still apply. */
1532 #ifdef __cplusplus
1533 extern "C"
1534 #endif
1535 char $2 ();
1536 /* The GNU C library defines this for functions which it implements
1537 to always fail with ENOSYS. Some functions are actually named
1538 something starting with __ and the normal name is an alias. */
1539 #if defined __stub_$2 || defined __stub___$2
1540 choke me
1541 #endif
1542
1543 int
1544 main ()
1545 {
1546 return $2 ();
1547 ;
1548 return 0;
1549 }
1550 _ACEOF
1551 if ac_fn_c_try_link "$LINENO"; then :
1552 eval "$3=yes"
1553 else
1554 eval "$3=no"
1555 fi
1556 rm -f core conftest.err conftest.$ac_objext \
1557 conftest$ac_exeext conftest.$ac_ext
1558 fi
1559 eval ac_res=\$$3
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1561 $as_echo "$ac_res" >&6; }
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563
1564 } # ac_fn_c_check_func
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by $as_me, which was
1570 generated by GNU Autoconf 2.69. Invocation command line was
1571
1572 $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 $as_echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
1640 *\'*)
1641 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 esac
1643 case $ac_pass in
1644 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1645 2)
1646 as_fn_append ac_configure_args1 " '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1649 else
1650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
1661 fi
1662 as_fn_append ac_configure_args " '$ac_arg'"
1663 ;;
1664 esac
1665 done
1666 done
1667 { ac_configure_args0=; unset ac_configure_args0;}
1668 { ac_configure_args1=; unset ac_configure_args1;}
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
1679
1680 $as_echo "## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##"
1683 echo
1684 # The following way of writing the cache mishandles newlines in values,
1685 (
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1688 case $ac_val in #(
1689 *${as_nl}*)
1690 case $ac_var in #(
1691 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1693 esac
1694 case $ac_var in #(
1695 _ | IFS | as_nl) ;; #(
1696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1697 *) { eval $ac_var=; unset $ac_var;} ;;
1698 esac ;;
1699 esac
1700 done
1701 (set) 2>&1 |
1702 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703 *${as_nl}ac_space=\ *)
1704 sed -n \
1705 "s/'\''/'\''\\\\'\'''\''/g;
1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 ;; #(
1708 *)
1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710 ;;
1711 esac |
1712 sort
1713 )
1714 echo
1715
1716 $as_echo "## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##"
1719 echo
1720 for ac_var in $ac_subst_vars
1721 do
1722 eval ac_val=\$$ac_var
1723 case $ac_val in
1724 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 esac
1726 $as_echo "$ac_var='\''$ac_val'\''"
1727 done | sort
1728 echo
1729
1730 if test -n "$ac_subst_files"; then
1731 $as_echo "## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##"
1734 echo
1735 for ac_var in $ac_subst_files
1736 do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in
1739 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 esac
1741 $as_echo "$ac_var='\''$ac_val'\''"
1742 done | sort
1743 echo
1744 fi
1745
1746 if test -s confdefs.h; then
1747 $as_echo "## ----------- ##
1748 ## confdefs.h. ##
1749 ## ----------- ##"
1750 echo
1751 cat confdefs.h
1752 echo
1753 fi
1754 test "$ac_signal" != 0 &&
1755 $as_echo "$as_me: caught signal $ac_signal"
1756 $as_echo "$as_me: exit $exit_status"
1757 } >&5
1758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760 exit $exit_status
1761 ' 0
1762 for ac_signal in 1 2 13 15; do
1763 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1764 done
1765 ac_signal=0
1766
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1769
1770 $as_echo "/* confdefs.h */" > confdefs.h
1771
1772 # Predefined preprocessor variables.
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_NAME "$PACKAGE_NAME"
1776 _ACEOF
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 _ACEOF
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 _ACEOF
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 _ACEOF
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 _ACEOF
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_URL "$PACKAGE_URL"
1796 _ACEOF
1797
1798
1799 # Let the site file select an alternate cache file if it wants to.
1800 # Prefer an explicitly selected file to automatically selected ones.
1801 ac_site_file1=NONE
1802 ac_site_file2=NONE
1803 if test -n "$CONFIG_SITE"; then
1804 # We do not want a PATH search for config.site.
1805 case $CONFIG_SITE in #((
1806 -*) ac_site_file1=./$CONFIG_SITE;;
1807 */*) ac_site_file1=$CONFIG_SITE;;
1808 *) ac_site_file1=./$CONFIG_SITE;;
1809 esac
1810 elif test "x$prefix" != xNONE; then
1811 ac_site_file1=$prefix/share/config.site
1812 ac_site_file2=$prefix/etc/config.site
1813 else
1814 ac_site_file1=$ac_default_prefix/share/config.site
1815 ac_site_file2=$ac_default_prefix/etc/config.site
1816 fi
1817 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1818 do
1819 test "x$ac_site_file" = xNONE && continue
1820 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1822 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file" \
1825 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1827 as_fn_error $? "failed to load site script $ac_site_file
1828 See \`config.log' for more details" "$LINENO" 5; }
1829 fi
1830 done
1831
1832 if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special files
1834 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1835 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1837 $as_echo "$as_me: loading cache $cache_file" >&6;}
1838 case $cache_file in
1839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
1841 esac
1842 fi
1843 else
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1845 $as_echo "$as_me: creating cache $cache_file" >&6;}
1846 >$cache_file
1847 fi
1848
1849 # Check that the precious variables saved in the cache have kept the same
1850 # value.
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
1855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
1857 case $ac_old_set,$ac_new_set in
1858 set,)
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,set)
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1864 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,);;
1867 *)
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
1869 # differences in whitespace do not lead to failure.
1870 ac_old_val_w=`echo x $ac_old_val`
1871 ac_new_val_w=`echo x $ac_new_val`
1872 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1874 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 ac_cache_corrupted=:
1876 else
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1878 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1879 eval $ac_var=\$ac_old_val
1880 fi
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1882 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1884 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1885 fi;;
1886 esac
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1889 case $ac_new_val in
1890 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1892 esac
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1896 esac
1897 fi
1898 done
1899 if $ac_cache_corrupted; then
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1903 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1905 fi
1906 ## -------------------- ##
1907 ## Main body of script. ##
1908 ## -------------------- ##
1909
1910 ac_ext=c
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 # Check whether --with-rlm_cache_memcached was given.
1925 if test "${with_rlm_cache_memcached+set}" = set; then :
1926 withval=$with_rlm_cache_memcached;
1927 fi
1928
1929
1930
1931
1932 fail=
1933 fr_status=
1934 fr_features=
1935 : > "config.report"
1936 : > "config.report.tmp"
1937
1938
1939
1940 if test x"$with_rlm_cache_memcached" != xno; then
1941
1942
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952 $as_echo_n "checking for $ac_word... " >&6; }
1953 if ${ac_cv_prog_CC+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1969 fi
1970 done
1971 done
1972 IFS=$as_save_IFS
1973
1974 fi
1975 fi
1976 CC=$ac_cv_prog_CC
1977 if test -n "$CC"; then
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1979 $as_echo "$CC" >&6; }
1980 else
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982 $as_echo "no" >&6; }
1983 fi
1984
1985
1986 fi
1987 if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args.
1990 set dummy gcc; ac_word=$2
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1992 $as_echo_n "checking for $ac_word... " >&6; }
1993 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_ac_ct_CC="gcc"
2007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2
2009 fi
2010 done
2011 done
2012 IFS=$as_save_IFS
2013
2014 fi
2015 fi
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2019 $as_echo "$ac_ct_CC" >&6; }
2020 else
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022 $as_echo "no" >&6; }
2023 fi
2024
2025 if test "x$ac_ct_CC" = x; then
2026 CC=""
2027 else
2028 case $cross_compiling:$ac_tool_warned in
2029 yes:)
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2032 ac_tool_warned=yes ;;
2033 esac
2034 CC=$ac_ct_CC
2035 fi
2036 else
2037 CC="$ac_cv_prog_CC"
2038 fi
2039
2040 if test -z "$CC"; then
2041 if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2043 set dummy ${ac_tool_prefix}cc; ac_word=$2
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2045 $as_echo_n "checking for $ac_word... " >&6; }
2046 if ${ac_cv_prog_CC+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_CC="${ac_tool_prefix}cc"
2060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 break 2
2062 fi
2063 done
2064 done
2065 IFS=$as_save_IFS
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2072 $as_echo "$CC" >&6; }
2073 else
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2075 $as_echo "no" >&6; }
2076 fi
2077
2078
2079 fi
2080 fi
2081 if test -z "$CC"; then
2082 # Extract the first word of "cc", so it can be a program name with args.
2083 set dummy cc; ac_word=$2
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2085 $as_echo_n "checking for $ac_word... " >&6; }
2086 if ${ac_cv_prog_CC+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092 ac_prog_rejected=no
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2101 ac_prog_rejected=yes
2102 continue
2103 fi
2104 ac_cv_prog_CC="cc"
2105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2
2107 fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112 if test $ac_prog_rejected = yes; then
2113 # We found a bogon in the path, so make sure we never use it.
2114 set dummy $ac_cv_prog_CC
2115 shift
2116 if test $# != 0; then
2117 # We chose a different compiler from the bogus one.
2118 # However, it has the same basename, so the bogon will be chosen
2119 # first if we set CC to just the basename; use the full file name.
2120 shift
2121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2122 fi
2123 fi
2124 fi
2125 fi
2126 CC=$ac_cv_prog_CC
2127 if test -n "$CC"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2129 $as_echo "$CC" >&6; }
2130 else
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2132 $as_echo "no" >&6; }
2133 fi
2134
2135
2136 fi
2137 if test -z "$CC"; then
2138 if test -n "$ac_tool_prefix"; then
2139 for ac_prog in cl.exe
2140 do
2141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144 $as_echo_n "checking for $ac_word... " >&6; }
2145 if ${ac_cv_prog_CC+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162 done
2163 done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171 $as_echo "$CC" >&6; }
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174 $as_echo "no" >&6; }
2175 fi
2176
2177
2178 test -n "$CC" && break
2179 done
2180 fi
2181 if test -z "$CC"; then
2182 ac_ct_CC=$CC
2183 for ac_prog in cl.exe
2184 do
2185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2186 set dummy $ac_prog; ac_word=$2
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2188 $as_echo_n "checking for $ac_word... " >&6; }
2189 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 if test -n "$ac_ct_CC"; then
2193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_ac_ct_CC="$ac_prog"
2203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2205 fi
2206 done
2207 done
2208 IFS=$as_save_IFS
2209
2210 fi
2211 fi
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2215 $as_echo "$ac_ct_CC" >&6; }
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2218 $as_echo "no" >&6; }
2219 fi
2220
2221
2222 test -n "$ac_ct_CC" && break
2223 done
2224
2225 if test "x$ac_ct_CC" = x; then
2226 CC=""
2227 else
2228 case $cross_compiling:$ac_tool_warned in
2229 yes:)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2232 ac_tool_warned=yes ;;
2233 esac
2234 CC=$ac_ct_CC
2235 fi
2236 fi
2237
2238 fi
2239
2240
2241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $? "no acceptable C compiler found in \$PATH
2244 See \`config.log' for more details" "$LINENO" 5; }
2245
2246 # Provide some information about the compiler.
2247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2248 set X $ac_compile
2249 ac_compiler=$2
2250 for ac_option in --version -v -V -qversion; do
2251 { { ac_try="$ac_compiler $ac_option >&5"
2252 case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2259 ac_status=$?
2260 if test -s conftest.err; then
2261 sed '10a\
2262 ... rest of stderr output deleted ...
2263 10q' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 fi
2266 rm -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; }
2269 done
2270
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273
2274 int
2275 main ()
2276 {
2277
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 ac_clean_files_save=$ac_clean_files
2283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2284 # Try to create an executable without -o first, disregard a.out.
2285 # It will help us diagnose broken compilers, and finding out an intuition
2286 # of exeext.
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2288 $as_echo_n "checking whether the C compiler works... " >&6; }
2289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2290
2291 # The possible output files:
2292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2293
2294 ac_rmfiles=
2295 for ac_file in $ac_files
2296 do
2297 case $ac_file in
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2300 esac
2301 done
2302 rm -f $ac_rmfiles
2303
2304 if { { ac_try="$ac_link_default"
2305 case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308 esac
2309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310 $as_echo "$ac_try_echo"; } >&5
2311 (eval "$ac_link_default") 2>&5
2312 ac_status=$?
2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314 test $ac_status = 0; }; then :
2315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2318 # so that the user can short-circuit this test for compilers unknown to
2319 # Autoconf.
2320 for ac_file in $ac_files ''
2321 do
2322 test -f "$ac_file" || continue
2323 case $ac_file in
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2325 ;;
2326 [ab].out )
2327 # We found the default executable, but exeext='' is most
2328 # certainly right.
2329 break;;
2330 *.* )
2331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2332 then :; else
2333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 fi
2335 # We set ac_cv_exeext here because the later test for it is not
2336 # safe: cross compilers may not add the suffix if given an `-o'
2337 # argument, so we may need to know it at that point already.
2338 # Even if this section looks crufty: it has the advantage of
2339 # actually working.
2340 break;;
2341 * )
2342 break;;
2343 esac
2344 done
2345 test "$ac_cv_exeext" = no && ac_cv_exeext=
2346
2347 else
2348 ac_file=''
2349 fi
2350 if test -z "$ac_file"; then :
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352 $as_echo "no" >&6; }
2353 $as_echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358 as_fn_error 77 "C compiler cannot create executables
2359 See \`config.log' for more details" "$LINENO" 5; }
2360 else
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2362 $as_echo "yes" >&6; }
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2365 $as_echo_n "checking for C compiler default output file name... " >&6; }
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2367 $as_echo "$ac_file" >&6; }
2368 ac_exeext=$ac_cv_exeext
2369
2370 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2371 ac_clean_files=$ac_clean_files_save
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2373 $as_echo_n "checking for suffix of executables... " >&6; }
2374 if { { ac_try="$ac_link"
2375 case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378 esac
2379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380 $as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_link") 2>&5
2382 ac_status=$?
2383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384 test $ac_status = 0; }; then :
2385 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2386 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2387 # work properly (i.e., refer to `conftest.exe'), while it won't with
2388 # `rm'.
2389 for ac_file in conftest.exe conftest conftest.*; do
2390 test -f "$ac_file" || continue
2391 case $ac_file in
2392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394 break;;
2395 * ) break;;
2396 esac
2397 done
2398 else
2399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2402 See \`config.log' for more details" "$LINENO" 5; }
2403 fi
2404 rm -f conftest conftest$ac_cv_exeext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2406 $as_echo "$ac_cv_exeext" >&6; }
2407
2408 rm -f conftest.$ac_ext
2409 EXEEXT=$ac_cv_exeext
2410 ac_exeext=$EXEEXT
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 #include <stdio.h>
2414 int
2415 main ()
2416 {
2417 FILE *f = fopen ("conftest.out", "w");
2418 return ferror (f) || fclose (f) != 0;
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 ac_clean_files="$ac_clean_files conftest.out"
2425 # Check that the compiler produces executables we can run. If not, either
2426 # the compiler is broken, or we cross compile.
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2428 $as_echo_n "checking whether we are cross compiling... " >&6; }
2429 if test "$cross_compiling" != yes; then
2430 { { ac_try="$ac_link"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_link") 2>&5
2438 ac_status=$?
2439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440 test $ac_status = 0; }
2441 if { ac_try='./conftest$ac_cv_exeext'
2442 { { case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447 $as_echo "$ac_try_echo"; } >&5
2448 (eval "$ac_try") 2>&5
2449 ac_status=$?
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; }; }; then
2452 cross_compiling=no
2453 else
2454 if test "$cross_compiling" = maybe; then
2455 cross_compiling=yes
2456 else
2457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 as_fn_error $? "cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details" "$LINENO" 5; }
2462 fi
2463 fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2466 $as_echo "$cross_compiling" >&6; }
2467
2468 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2469 ac_clean_files=$ac_clean_files_save
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2471 $as_echo_n "checking for suffix of object files... " >&6; }
2472 if ${ac_cv_objext+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477
2478 int
2479 main ()
2480 {
2481
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.o conftest.obj
2487 if { { ac_try="$ac_compile"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_compile") 2>&5
2495 ac_status=$?
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; }; then :
2498 for ac_file in conftest.o conftest.obj conftest.*; do
2499 test -f "$ac_file" || continue;
2500 case $ac_file in
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2503 break;;
2504 esac
2505 done
2506 else
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 as_fn_error $? "cannot compute suffix of object files: cannot compile
2513 See \`config.log' for more details" "$LINENO" 5; }
2514 fi
2515 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2516 fi
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2518 $as_echo "$ac_cv_objext" >&6; }
2519 OBJEXT=$ac_cv_objext
2520 ac_objext=$OBJEXT
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2522 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2523 if ${ac_cv_c_compiler_gnu+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528
2529 int
2530 main ()
2531 {
2532 #ifndef __GNUC__
2533 choke me
2534 #endif
2535
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 ac_compiler_gnu=yes
2542 else
2543 ac_compiler_gnu=no
2544 fi
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2550 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2551 if test $ac_compiler_gnu = yes; then
2552 GCC=yes
2553 else
2554 GCC=
2555 fi
2556 ac_test_CFLAGS=${CFLAGS+set}
2557 ac_save_CFLAGS=$CFLAGS
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2559 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2560 if ${ac_cv_prog_cc_g+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 ac_save_c_werror_flag=$ac_c_werror_flag
2564 ac_c_werror_flag=yes
2565 ac_cv_prog_cc_g=no
2566 CFLAGS="-g"
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579 ac_cv_prog_cc_g=yes
2580 else
2581 CFLAGS=""
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584
2585 int
2586 main ()
2587 {
2588
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_c_try_compile "$LINENO"; then :
2594
2595 else
2596 ac_c_werror_flag=$ac_save_c_werror_flag
2597 CFLAGS="-g"
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600
2601 int
2602 main ()
2603 {
2604
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 if ac_fn_c_try_compile "$LINENO"; then :
2610 ac_cv_prog_cc_g=yes
2611 fi
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2620 $as_echo "$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2625 CFLAGS="-g -O2"
2626 else
2627 CFLAGS="-g"
2628 fi
2629 else
2630 if test "$GCC" = yes; then
2631 CFLAGS="-O2"
2632 else
2633 CFLAGS=
2634 fi
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2637 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2638 if ${ac_cv_prog_cc_c89+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 ac_cv_prog_cc_c89=no
2642 ac_save_CC=$CC
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2645 #include <stdarg.h>
2646 #include <stdio.h>
2647 struct stat;
2648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2649 struct buf { int x; };
2650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651 static char *e (p, i)
2652 char **p;
2653 int i;
2654 {
2655 return p[i];
2656 }
2657 static char *f (char * (*g) (char **, int), char **p, ...)
2658 {
2659 char *s;
2660 va_list v;
2661 va_start (v,p);
2662 s = g (p, va_arg (v,int));
2663 va_end (v);
2664 return s;
2665 }
2666
2667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2668 function prototypes and stuff, but not '\xHH' hex character constants.
2669 These don't provoke an error unfortunately, instead are silently treated
2670 as 'x'. The following induces an error, until -std is added to get
2671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2672 array size at least. It's necessary to write '\x00'==0 to get something
2673 that's true only with -std. */
2674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2675
2676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2677 inside strings and character constants. */
2678 #define FOO(x) 'x'
2679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2680
2681 int test (int i, double x);
2682 struct s1 {int (*f) (int a);};
2683 struct s2 {int (*f) (double a);};
2684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685 int argc;
2686 char **argv;
2687 int
2688 main ()
2689 {
2690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2697 do
2698 CC="$ac_save_CC $ac_arg"
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700 ac_cv_prog_cc_c89=$ac_arg
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext
2703 test "x$ac_cv_prog_cc_c89" != "xno" && break
2704 done
2705 rm -f conftest.$ac_ext
2706 CC=$ac_save_CC
2707
2708 fi
2709 # AC_CACHE_VAL
2710 case "x$ac_cv_prog_cc_c89" in
2711 x)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2713 $as_echo "none needed" >&6; } ;;
2714 xno)
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2716 $as_echo "unsupported" >&6; } ;;
2717 *)
2718 CC="$CC $ac_cv_prog_cc_c89"
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2720 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2721 esac
2722 if test "x$ac_cv_prog_cc_c89" != xno; then :
2723
2724 fi
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2739 # On Suns, sometimes $CPP names a directory.
2740 if test -n "$CPP" && test -d "$CPP"; then
2741 CPP=
2742 fi
2743 if test -z "$CPP"; then
2744 if ${ac_cv_prog_CPP+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 # Double quotes because CPP needs to be expanded
2748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2749 do
2750 ac_preproc_ok=false
2751 for ac_c_preproc_warn_flag in '' yes
2752 do
2753 # Use a header file that comes with gcc, so configuring glibc
2754 # with a fresh cross-compiler works.
2755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2756 # <limits.h> exists even on freestanding compilers.
2757 # On the NeXT, cc -E runs the code through the compiler's parser,
2758 # not just through cpp. "Syntax error" is here to catch this case.
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 #ifdef __STDC__
2762 # include <limits.h>
2763 #else
2764 # include <assert.h>
2765 #endif
2766 Syntax error
2767 _ACEOF
2768 if ac_fn_c_try_cpp "$LINENO"; then :
2769
2770 else
2771 # Broken: fails on valid input.
2772 continue
2773 fi
2774 rm -f conftest.err conftest.i conftest.$ac_ext
2775
2776 # OK, works on sane cases. Now check whether nonexistent headers
2777 # can be detected and how.
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 #include <ac_nonexistent.h>
2781 _ACEOF
2782 if ac_fn_c_try_cpp "$LINENO"; then :
2783 # Broken: success on invalid input.
2784 continue
2785 else
2786 # Passes both tests.
2787 ac_preproc_ok=:
2788 break
2789 fi
2790 rm -f conftest.err conftest.i conftest.$ac_ext
2791
2792 done
2793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794 rm -f conftest.i conftest.err conftest.$ac_ext
2795 if $ac_preproc_ok; then :
2796 break
2797 fi
2798
2799 done
2800 ac_cv_prog_CPP=$CPP
2801
2802 fi
2803 CPP=$ac_cv_prog_CPP
2804 else
2805 ac_cv_prog_CPP=$CPP
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2808 $as_echo "$CPP" >&6; }
2809 ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2820 #ifdef __STDC__
2821 # include <limits.h>
2822 #else
2823 # include <assert.h>
2824 #endif
2825 Syntax error
2826 _ACEOF
2827 if ac_fn_c_try_cpp "$LINENO"; then :
2828
2829 else
2830 # Broken: fails on valid input.
2831 continue
2832 fi
2833 rm -f conftest.err conftest.i conftest.$ac_ext
2834
2835 # OK, works on sane cases. Now check whether nonexistent headers
2836 # can be detected and how.
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839 #include <ac_nonexistent.h>
2840 _ACEOF
2841 if ac_fn_c_try_cpp "$LINENO"; then :
2842 # Broken: success on invalid input.
2843 continue
2844 else
2845 # Passes both tests.
2846 ac_preproc_ok=:
2847 break
2848 fi
2849 rm -f conftest.err conftest.i conftest.$ac_ext
2850
2851 done
2852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2853 rm -f conftest.i conftest.err conftest.$ac_ext
2854 if $ac_preproc_ok; then :
2855
2856 else
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2860 See \`config.log' for more details" "$LINENO" 5; }
2861 fi
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868
2869
2870
2871 libmemcached_include_dir=
2872
2873 # Check whether --with-libmemcached-include-dir was given.
2874 if test "${with_libmemcached_include_dir+set}" = set; then :
2875 withval=$with_libmemcached_include_dir; case "$withval" in
2876 no)
2877 as_fn_error $? "Need libmemcached-include-dir" "$LINENO" 5
2878 ;;
2879 yes)
2880 ;;
2881 *)
2882 libmemcached_include_dir="$withval"
2883 ;;
2884 esac
2885 fi
2886
2887
2888 libmemcached_lib_dir=
2889
2890 # Check whether --with-libmemcached-lib-dir was given.
2891 if test "${with_libmemcached_lib_dir+set}" = set; then :
2892 withval=$with_libmemcached_lib_dir; case "$withval" in
2893 no)
2894 as_fn_error $? "Need libmemcached-lib-dir" "$LINENO" 5
2895 ;;
2896 yes)
2897 ;;
2898 *)
2899 libmemcached_lib_dir="$withval"
2900 ;;
2901 esac
2902 fi
2903
2904
2905
2906 # Check whether --with-libmemcached-dir was given.
2907 if test "${with_libmemcached_dir+set}" = set; then :
2908 withval=$with_libmemcached_dir; case "$withval" in
2909 no)
2910 as_fn_error $? "Need libmemcached-dir" "$LINENO" 5
2911 ;;
2912 yes)
2913 ;;
2914 *)
2915 libmemcached_lib_dir="$withval/lib"
2916 libmemcached_include_dir="$withval/include"
2917 ;;
2918 esac
2919 fi
2920
2921
2922
2923
2924 smart_try_dir="$libmemcached_include_dir"
2925
2926
2927
2928 ac_safe=`echo "libmemcached/memcached.h" | sed 'y%./+-%__pm%'`
2929 old_CPPFLAGS="$CPPFLAGS"
2930 smart_include=
2931 smart_include_dir="/usr/local/include /opt/include"
2932
2933 _smart_try_dir=
2934 _smart_include_dir=
2935
2936 for _prefix in $smart_prefix ""; do
2937 for _dir in $smart_try_dir; do
2938 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
2939 done
2940
2941 for _dir in $smart_include_dir; do
2942 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
2943 done
2944 done
2945
2946 if test "x$_smart_try_dir" != "x"; then
2947 for try in $_smart_try_dir; do
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmemcached/memcached.h in $try" >&5
2949 $as_echo_n "checking for libmemcached/memcached.h in $try... " >&6; }
2950 CPPFLAGS="-isystem $try $old_CPPFLAGS"
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953
2954 #include <libmemcached/memcached.h>
2955 int
2956 main ()
2957 {
2958 int a = 1;
2959 ;
2960 return 0;
2961 }
2962 _ACEOF
2963 if ac_fn_c_try_compile "$LINENO"; then :
2964
2965 smart_include="-isystem $try"
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968 break
2969
2970 else
2971
2972 smart_include=
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975
2976 fi
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 done
2979 CPPFLAGS="$old_CPPFLAGS"
2980 fi
2981
2982 if test "x$smart_include" = "x"; then
2983 for _prefix in $smart_prefix; do
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/libmemcached/memcached.h" >&5
2985 $as_echo_n "checking for ${_prefix}/libmemcached/memcached.h... " >&6; }
2986
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2989
2990 #include <libmemcached/memcached.h>
2991 int
2992 main ()
2993 {
2994 int a = 1;
2995 ;
2996 return 0;
2997 }
2998 _ACEOF
2999 if ac_fn_c_try_compile "$LINENO"; then :
3000
3001 smart_include="-isystem ${_prefix}/"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3004 break
3005
3006 else
3007
3008 smart_include=
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 done
3015 fi
3016
3017 if test "x$smart_include" = "x"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmemcached/memcached.h" >&5
3019 $as_echo_n "checking for libmemcached/memcached.h... " >&6; }
3020
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 #include <libmemcached/memcached.h>
3025 int
3026 main ()
3027 {
3028 int a = 1;
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 if ac_fn_c_try_compile "$LINENO"; then :
3034
3035 smart_include=" "
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3037 $as_echo "yes" >&6; }
3038 break
3039
3040 else
3041
3042 smart_include=
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045
3046 fi
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 fi
3049
3050 if test "x$smart_include" = "x"; then
3051
3052 for try in $_smart_include_dir; do
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmemcached/memcached.h in $try" >&5
3054 $as_echo_n "checking for libmemcached/memcached.h in $try... " >&6; }
3055 CPPFLAGS="-isystem $try $old_CPPFLAGS"
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 #include <libmemcached/memcached.h>
3060 int
3061 main ()
3062 {
3063 int a = 1;
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 if ac_fn_c_try_compile "$LINENO"; then :
3069
3070 smart_include="-isystem $try"
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073 break
3074
3075 else
3076
3077 smart_include=
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080
3081 fi
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 done
3084 CPPFLAGS="$old_CPPFLAGS"
3085 fi
3086
3087 if test "x$smart_include" != "x"; then
3088 eval "ac_cv_header_$ac_safe=yes"
3089 CPPFLAGS="$smart_include $old_CPPFLAGS"
3090 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3091 fi
3092
3093 smart_prefix=
3094
3095 if test "x$ac_cv_header_libmemcached_memcached_h" != "xyes"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmemcached headers not found. Use --with-libmemcached-include-dir=<path>." >&5
3097 $as_echo "$as_me: WARNING: libmemcached headers not found. Use --with-libmemcached-include-dir=<path>." >&2;}
3098
3099 fail="$fail memcached.h"
3100
3101 fi
3102
3103
3104
3105
3106 sm_lib_safe=`echo "pthread" | sed 'y%./+-%__p_%'`
3107 sm_func_safe=`echo "pthread_once" | sed 'y%./+-%__p_%'`
3108
3109 old_LIBS="$LIBS"
3110 old_CPPFLAGS="$CPPFLAGS"
3111 smart_lib=
3112 smart_ldflags=
3113 smart_lib_dir=
3114
3115 if test "x$smart_try_dir" != "x"; then
3116 for try in $smart_try_dir; do
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_once in -lpthread in $try" >&5
3118 $as_echo_n "checking for pthread_once in -lpthread in $try... " >&6; }
3119 LIBS="-lpthread $old_LIBS"
3120 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3123 extern char pthread_once();
3124 int
3125 main ()
3126 {
3127 pthread_once()
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 if ac_fn_c_try_link "$LINENO"; then :
3133
3134 smart_lib="-lpthread"
3135 smart_ldflags="-L$try -Wl,-rpath,$try"
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137 $as_echo "yes" >&6; }
3138 break
3139
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext \
3145 conftest$ac_exeext conftest.$ac_ext
3146 done
3147 LIBS="$old_LIBS"
3148 CPPFLAGS="$old_CPPFLAGS"
3149 fi
3150
3151 if test "x$smart_lib" = "x"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_once in -lpthread" >&5
3153 $as_echo_n "checking for pthread_once in -lpthread... " >&6; }
3154 LIBS="-lpthread $old_LIBS"
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157 extern char pthread_once();
3158 int
3159 main ()
3160 {
3161 pthread_once()
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 if ac_fn_c_try_link "$LINENO"; then :
3167
3168 smart_lib="-lpthread"
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176 rm -f core conftest.err conftest.$ac_objext \
3177 conftest$ac_exeext conftest.$ac_ext
3178 LIBS="$old_LIBS"
3179 fi
3180
3181 if test "x$smart_lib" = "x"; then
3182 for try in /usr/local/lib /opt/lib; do
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_once in -lpthread in $try" >&5
3184 $as_echo_n "checking for pthread_once in -lpthread in $try... " >&6; }
3185 LIBS="-lpthread $old_LIBS"
3186 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189 extern char pthread_once();
3190 int
3191 main ()
3192 {
3193 pthread_once()
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 if ac_fn_c_try_link "$LINENO"; then :
3199
3200 smart_lib="-lpthread"
3201 smart_ldflags="-L$try -Wl,-rpath,$try"
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204 break
3205
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext \
3211 conftest$ac_exeext conftest.$ac_ext
3212 done
3213 LIBS="$old_LIBS"
3214 CPPFLAGS="$old_CPPFLAGS"
3215 fi
3216
3217 if test "x$smart_lib" != "x"; then
3218 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3219 LIBS="$smart_ldflags $smart_lib $old_LIBS"
3220 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3221 fi
3222
3223
3224 smart_try_dir="$libmemcached_lib_dir"
3225
3226
3227 sm_lib_safe=`echo "memcached" | sed 'y%./+-%__p_%'`
3228 sm_func_safe=`echo "memcached" | sed 'y%./+-%__p_%'`
3229
3230 old_LIBS="$LIBS"
3231 old_CPPFLAGS="$CPPFLAGS"
3232 smart_lib=
3233 smart_ldflags=
3234 smart_lib_dir=
3235
3236 if test "x$smart_try_dir" != "x"; then
3237 for try in $smart_try_dir; do
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached in -lmemcached in $try" >&5
3239 $as_echo_n "checking for memcached in -lmemcached in $try... " >&6; }
3240 LIBS="-lmemcached $old_LIBS"
3241 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3244 extern char memcached();
3245 int
3246 main ()
3247 {
3248 memcached()
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 if ac_fn_c_try_link "$LINENO"; then :
3254
3255 smart_lib="-lmemcached"
3256 smart_ldflags="-L$try -Wl,-rpath,$try"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3259 break
3260
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265 rm -f core conftest.err conftest.$ac_objext \
3266 conftest$ac_exeext conftest.$ac_ext
3267 done
3268 LIBS="$old_LIBS"
3269 CPPFLAGS="$old_CPPFLAGS"
3270 fi
3271
3272 if test "x$smart_lib" = "x"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached in -lmemcached" >&5
3274 $as_echo_n "checking for memcached in -lmemcached... " >&6; }
3275 LIBS="-lmemcached $old_LIBS"
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278 extern char memcached();
3279 int
3280 main ()
3281 {
3282 memcached()
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_link "$LINENO"; then :
3288
3289 smart_lib="-lmemcached"
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext \
3298 conftest$ac_exeext conftest.$ac_ext
3299 LIBS="$old_LIBS"
3300 fi
3301
3302 if test "x$smart_lib" = "x"; then
3303 for try in /usr/local/lib /opt/lib; do
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached in -lmemcached in $try" >&5
3305 $as_echo_n "checking for memcached in -lmemcached in $try... " >&6; }
3306 LIBS="-lmemcached $old_LIBS"
3307 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310 extern char memcached();
3311 int
3312 main ()
3313 {
3314 memcached()
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 if ac_fn_c_try_link "$LINENO"; then :
3320
3321 smart_lib="-lmemcached"
3322 smart_ldflags="-L$try -Wl,-rpath,$try"
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 break
3326
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331 rm -f core conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext conftest.$ac_ext
3333 done
3334 LIBS="$old_LIBS"
3335 CPPFLAGS="$old_CPPFLAGS"
3336 fi
3337
3338 if test "x$smart_lib" != "x"; then
3339 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3340 LIBS="$smart_ldflags $smart_lib $old_LIBS"
3341 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3342 fi
3343
3344 if test "x$ac_cv_lib_memcached_memcached" != "xyes"
3345 then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmemcached libraries not found. Use --with-libmemcached-lib-dir=<path>." >&5
3347 $as_echo "$as_me: WARNING: libmemcached libraries not found. Use --with-libmemcached-lib-dir=<path>." >&2;}
3348
3349 fail="$fail libmemcached"
3350
3351 else
3352 for ac_func in \
3353 memcached \
3354 memcached_free \
3355 memcached_get \
3356 memcached_set \
3357 memcached_delete \
3358 libmemcached_check_configuration \
3359
3360 do :
3361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3362 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3363 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3364 cat >>confdefs.h <<_ACEOF
3365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3366 _ACEOF
3367
3368 else
3369
3370
3371 fail="$fail memached functions"
3372
3373
3374 fi
3375 done
3376
3377 fi
3378
3379
3380
3381 targetname=rlm_cache_memcached
3382 else
3383 targetname=
3384 echo \*\*\* module rlm_cache_memcached is disabled.
3385
3386
3387 fr_status="disabled"
3388
3389 fi
3390
3391 if test x"$fail" != x""; then
3392 targetname=""
3393
3394
3395 if test x"${enable_strict_dependencies}" = x"yes"; then
3396 as_fn_error $? "set --without-rlm_cache_memcached to disable it explicitly." "$LINENO" 5
3397 else
3398
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_cache_memcached." >&5
3400 $as_echo "$as_me: WARNING: silently not building rlm_cache_memcached." >&2;}
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_cache_memcached requires: $fail." >&5
3402 $as_echo "$as_me: WARNING: FAILURE: rlm_cache_memcached requires: $fail." >&2;};
3403 fail="$(echo $fail)"
3404
3405
3406 fr_status="skipping (requires $fail)"
3407
3408 fr_features=
3409
3410 fi
3411
3412 else
3413
3414
3415 fr_status="OK"
3416
3417 fi
3418
3419 if test x"$fr_features" = x""; then
3420 $as_echo "$fr_status" > "config.report"
3421 else
3422 $as_echo_n "$fr_status ... " > "config.report"
3423 cat "config.report.tmp" >> "config.report"
3424 fi
3425
3426 rm "config.report.tmp"
3427
3428
3429
3430
3431 mod_ldflags="$LIBCURL $SMART_LIBS"
3432 mod_cflags="$SMART_CPPFLAGS"
3433
3434
3435
3436
3437 ac_config_files="$ac_config_files all.mk"
3438
3439 cat >confcache <<\_ACEOF
3440 # This file is a shell script that caches the results of configure
3441 # tests run on this system so they can be shared between configure
3442 # scripts and configure runs, see configure's option --config-cache.
3443 # It is not useful on other systems. If it contains results you don't
3444 # want to keep, you may remove or edit it.
3445 #
3446 # config.status only pays attention to the cache file if you give it
3447 # the --recheck option to rerun configure.
3448 #
3449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3451 # following values.
3452
3453 _ACEOF
3454
3455 # The following way of writing the cache mishandles newlines in values,
3456 # but we know of no workaround that is simple, portable, and efficient.
3457 # So, we kill variables containing newlines.
3458 # Ultrix sh set writes to stderr and can't be redirected directly,
3459 # and sets the high bit in the cache file unless we assign to the vars.
3460 (
3461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3462 eval ac_val=\$$ac_var
3463 case $ac_val in #(
3464 *${as_nl}*)
3465 case $ac_var in #(
3466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3468 esac
3469 case $ac_var in #(
3470 _ | IFS | as_nl) ;; #(
3471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3472 *) { eval $ac_var=; unset $ac_var;} ;;
3473 esac ;;
3474 esac
3475 done
3476
3477 (set) 2>&1 |
3478 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3479 *${as_nl}ac_space=\ *)
3480 # `set' does not quote correctly, so add quotes: double-quote
3481 # substitution turns \\\\ into \\, and sed turns \\ into \.
3482 sed -n \
3483 "s/'/'\\\\''/g;
3484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3485 ;; #(
3486 *)
3487 # `set' quotes correctly as required by POSIX, so do not add quotes.
3488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3489 ;;
3490 esac |
3491 sort
3492 ) |
3493 sed '
3494 /^ac_cv_env_/b end
3495 t clear
3496 :clear
3497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3498 t end
3499 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3500 :end' >>confcache
3501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3502 if test -w "$cache_file"; then
3503 if test "x$cache_file" != "x/dev/null"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3505 $as_echo "$as_me: updating cache $cache_file" >&6;}
3506 if test ! -f "$cache_file" || test -h "$cache_file"; then
3507 cat confcache >"$cache_file"
3508 else
3509 case $cache_file in #(
3510 */* | ?:*)
3511 mv -f confcache "$cache_file"$$ &&
3512 mv -f "$cache_file"$$ "$cache_file" ;; #(
3513 *)
3514 mv -f confcache "$cache_file" ;;
3515 esac
3516 fi
3517 fi
3518 else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3521 fi
3522 fi
3523 rm -f confcache
3524
3525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3526 # Let make expand exec_prefix.
3527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3528
3529 # Transform confdefs.h into DEFS.
3530 # Protect against shell expansion while executing Makefile rules.
3531 # Protect against Makefile macro expansion.
3532 #
3533 # If the first sed substitution is executed (which looks for macros that
3534 # take arguments), then branch to the quote section. Otherwise,
3535 # look for a macro that doesn't take arguments.
3536 ac_script='
3537 :mline
3538 /\\$/{
3539 N
3540 s,\\\n,,
3541 b mline
3542 }
3543 t clear
3544 :clear
3545 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3546 t quote
3547 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3548 t quote
3549 b any
3550 :quote
3551 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3552 s/\[/\\&/g
3553 s/\]/\\&/g
3554 s/\$/$$/g
3555 H
3556 :any
3557 ${
3558 g
3559 s/^\n//
3560 s/\n/ /g
3561 p
3562 }
3563 '
3564 DEFS=`sed -n "$ac_script" confdefs.h`
3565
3566
3567 ac_libobjs=
3568 ac_ltlibobjs=
3569 U=
3570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3571 # 1. Remove the extension, and $U if already installed.
3572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3573 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3575 # will be set to the directory where LIBOBJS objects are built.
3576 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3577 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3578 done
3579 LIBOBJS=$ac_libobjs
3580
3581 LTLIBOBJS=$ac_ltlibobjs
3582
3583
3584
3585 : "${CONFIG_STATUS=./config.status}"
3586 ac_write_fail=0
3587 ac_clean_files_save=$ac_clean_files
3588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3591 as_write_fail=0
3592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3593 #! $SHELL
3594 # Generated by $as_me.
3595 # Run this file to recreate the current configuration.
3596 # Compiler output produced by configure, useful for debugging
3597 # configure, is in config.log if it exists.
3598
3599 debug=false
3600 ac_cs_recheck=false
3601 ac_cs_silent=false
3602
3603 SHELL=\${CONFIG_SHELL-$SHELL}
3604 export SHELL
3605 _ASEOF
3606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3607 ## -------------------- ##
3608 ## M4sh Initialization. ##
3609 ## -------------------- ##
3610
3611 # Be more Bourne compatible
3612 DUALCASE=1; export DUALCASE # for MKS sh
3613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3614 emulate sh
3615 NULLCMD=:
3616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3617 # is contrary to our usage. Disable this feature.
3618 alias -g '${1+"$@"}'='"$@"'
3619 setopt NO_GLOB_SUBST
3620 else
3621 case `(set -o) 2>/dev/null` in #(
3622 *posix*) :
3623 set -o posix ;; #(
3624 *) :
3625 ;;
3626 esac
3627 fi
3628
3629
3630 as_nl='
3631 '
3632 export as_nl
3633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3637 # Prefer a ksh shell builtin over an external printf program on Solaris,
3638 # but without wasting forks for bash or zsh.
3639 if test -z "$BASH_VERSION$ZSH_VERSION" \
3640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3641 as_echo='print -r --'
3642 as_echo_n='print -rn --'
3643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3644 as_echo='printf %s\n'
3645 as_echo_n='printf %s'
3646 else
3647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3649 as_echo_n='/usr/ucb/echo -n'
3650 else
3651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3652 as_echo_n_body='eval
3653 arg=$1;
3654 case $arg in #(
3655 *"$as_nl"*)
3656 expr "X$arg" : "X\\(.*\\)$as_nl";
3657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3658 esac;
3659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3660 '
3661 export as_echo_n_body
3662 as_echo_n='sh -c $as_echo_n_body as_echo'
3663 fi
3664 export as_echo_body
3665 as_echo='sh -c $as_echo_body as_echo'
3666 fi
3667
3668 # The user is always right.
3669 if test "${PATH_SEPARATOR+set}" != set; then
3670 PATH_SEPARATOR=:
3671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3673 PATH_SEPARATOR=';'
3674 }
3675 fi
3676
3677
3678 # IFS
3679 # We need space, tab and new line, in precisely that order. Quoting is
3680 # there to prevent editors from complaining about space-tab.
3681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3682 # splitting by setting IFS to empty value.)
3683 IFS=" "" $as_nl"
3684
3685 # Find who we are. Look in the path if we contain no directory separator.
3686 as_myself=
3687 case $0 in #((
3688 *[\\/]* ) as_myself=$0 ;;
3689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3695 done
3696 IFS=$as_save_IFS
3697
3698 ;;
3699 esac
3700 # We did not find ourselves, most probably we were run as `sh COMMAND'
3701 # in which case we are not to be found in the path.
3702 if test "x$as_myself" = x; then
3703 as_myself=$0
3704 fi
3705 if test ! -f "$as_myself"; then
3706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3707 exit 1
3708 fi
3709
3710 # Unset variables that we do not need and which cause bugs (e.g. in
3711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3712 # suppresses any "Segmentation fault" message there. '((' could
3713 # trigger a bug in pdksh 5.2.14.
3714 for as_var in BASH_ENV ENV MAIL MAILPATH
3715 do eval test x\${$as_var+set} = xset \
3716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3717 done
3718 PS1='$ '
3719 PS2='> '
3720 PS4='+ '
3721
3722 # NLS nuisances.
3723 LC_ALL=C
3724 export LC_ALL
3725 LANGUAGE=C
3726 export LANGUAGE
3727
3728 # CDPATH.
3729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3730
3731
3732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3733 # ----------------------------------------
3734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3736 # script with STATUS, using 1 if that was 0.
3737 as_fn_error ()
3738 {
3739 as_status=$1; test $as_status -eq 0 && as_status=1
3740 if test "$4"; then
3741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3743 fi
3744 $as_echo "$as_me: error: $2" >&2
3745 as_fn_exit $as_status
3746 } # as_fn_error
3747
3748
3749 # as_fn_set_status STATUS
3750 # -----------------------
3751 # Set $? to STATUS, without forking.
3752 as_fn_set_status ()
3753 {
3754 return $1
3755 } # as_fn_set_status
3756
3757 # as_fn_exit STATUS
3758 # -----------------
3759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3760 as_fn_exit ()
3761 {
3762 set +e
3763 as_fn_set_status $1
3764 exit $1
3765 } # as_fn_exit
3766
3767 # as_fn_unset VAR
3768 # ---------------
3769 # Portably unset VAR.
3770 as_fn_unset ()
3771 {
3772 { eval $1=; unset $1;}
3773 }
3774 as_unset=as_fn_unset
3775 # as_fn_append VAR VALUE
3776 # ----------------------
3777 # Append the text in VALUE to the end of the definition contained in VAR. Take
3778 # advantage of any shell optimizations that allow amortized linear growth over
3779 # repeated appends, instead of the typical quadratic growth present in naive
3780 # implementations.
3781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3782 eval 'as_fn_append ()
3783 {
3784 eval $1+=\$2
3785 }'
3786 else
3787 as_fn_append ()
3788 {
3789 eval $1=\$$1\$2
3790 }
3791 fi # as_fn_append
3792
3793 # as_fn_arith ARG...
3794 # ------------------
3795 # Perform arithmetic evaluation on the ARGs, and store the result in the
3796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3797 # must be portable across $(()) and expr.
3798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3799 eval 'as_fn_arith ()
3800 {
3801 as_val=$(( $* ))
3802 }'
3803 else
3804 as_fn_arith ()
3805 {
3806 as_val=`expr "$@" || test $? -eq 1`
3807 }
3808 fi # as_fn_arith
3809
3810
3811 if expr a : '\(a\)' >/dev/null 2>&1 &&
3812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3813 as_expr=expr
3814 else
3815 as_expr=false
3816 fi
3817
3818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3819 as_basename=basename
3820 else
3821 as_basename=false
3822 fi
3823
3824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3825 as_dirname=dirname
3826 else
3827 as_dirname=false
3828 fi
3829
3830 as_me=`$as_basename -- "$0" ||
3831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3832 X"$0" : 'X\(//\)$' \| \
3833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3834 $as_echo X/"$0" |
3835 sed '/^.*\/\([^/][^/]*\)\/*$/{
3836 s//\1/
3837 q
3838 }
3839 /^X\/\(\/\/\)$/{
3840 s//\1/
3841 q
3842 }
3843 /^X\/\(\/\).*/{
3844 s//\1/
3845 q
3846 }
3847 s/.*/./; q'`
3848
3849 # Avoid depending upon Character Ranges.
3850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3853 as_cr_digits='0123456789'
3854 as_cr_alnum=$as_cr_Letters$as_cr_digits
3855
3856 ECHO_C= ECHO_N= ECHO_T=
3857 case `echo -n x` in #(((((
3858 -n*)
3859 case `echo 'xy\c'` in
3860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3861 xy) ECHO_C='\c';;
3862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3863 ECHO_T=' ';;
3864 esac;;
3865 *)
3866 ECHO_N='-n';;
3867 esac
3868
3869 rm -f conf$$ conf$$.exe conf$$.file
3870 if test -d conf$$.dir; then
3871 rm -f conf$$.dir/conf$$.file
3872 else
3873 rm -f conf$$.dir
3874 mkdir conf$$.dir 2>/dev/null
3875 fi
3876 if (echo >conf$$.file) 2>/dev/null; then
3877 if ln -s conf$$.file conf$$ 2>/dev/null; then
3878 as_ln_s='ln -s'
3879 # ... but there are two gotchas:
3880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3882 # In both cases, we have to default to `cp -pR'.
3883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3884 as_ln_s='cp -pR'
3885 elif ln conf$$.file conf$$ 2>/dev/null; then
3886 as_ln_s=ln
3887 else
3888 as_ln_s='cp -pR'
3889 fi
3890 else
3891 as_ln_s='cp -pR'
3892 fi
3893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3894 rmdir conf$$.dir 2>/dev/null
3895
3896
3897 # as_fn_mkdir_p
3898 # -------------
3899 # Create "$as_dir" as a directory, including parents if necessary.
3900 as_fn_mkdir_p ()
3901 {
3902
3903 case $as_dir in #(
3904 -*) as_dir=./$as_dir;;
3905 esac
3906 test -d "$as_dir" || eval $as_mkdir_p || {
3907 as_dirs=
3908 while :; do
3909 case $as_dir in #(
3910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3911 *) as_qdir=$as_dir;;
3912 esac
3913 as_dirs="'$as_qdir' $as_dirs"
3914 as_dir=`$as_dirname -- "$as_dir" ||
3915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3916 X"$as_dir" : 'X\(//\)[^/]' \| \
3917 X"$as_dir" : 'X\(//\)$' \| \
3918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3919 $as_echo X"$as_dir" |
3920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3921 s//\1/
3922 q
3923 }
3924 /^X\(\/\/\)[^/].*/{
3925 s//\1/
3926 q
3927 }
3928 /^X\(\/\/\)$/{
3929 s//\1/
3930 q
3931 }
3932 /^X\(\/\).*/{
3933 s//\1/
3934 q
3935 }
3936 s/.*/./; q'`
3937 test -d "$as_dir" && break
3938 done
3939 test -z "$as_dirs" || eval "mkdir $as_dirs"
3940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3941
3942
3943 } # as_fn_mkdir_p
3944 if mkdir -p . 2>/dev/null; then
3945 as_mkdir_p='mkdir -p "$as_dir"'
3946 else
3947 test -d ./-p && rmdir ./-p
3948 as_mkdir_p=false
3949 fi
3950
3951
3952 # as_fn_executable_p FILE
3953 # -----------------------
3954 # Test if FILE is an executable regular file.
3955 as_fn_executable_p ()
3956 {
3957 test -f "$1" && test -x "$1"
3958 } # as_fn_executable_p
3959 as_test_x='test -x'
3960 as_executable_p=as_fn_executable_p
3961
3962 # Sed expression to map a string onto a valid CPP name.
3963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3964
3965 # Sed expression to map a string onto a valid variable name.
3966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3967
3968
3969 exec 6>&1
3970 ## ----------------------------------- ##
3971 ## Main body of $CONFIG_STATUS script. ##
3972 ## ----------------------------------- ##
3973 _ASEOF
3974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3975
3976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3977 # Save the log message, to keep $0 and so on meaningful, and to
3978 # report actual input values of CONFIG_FILES etc. instead of their
3979 # values after options handling.
3980 ac_log="
3981 This file was extended by $as_me, which was
3982 generated by GNU Autoconf 2.69. Invocation command line was
3983
3984 CONFIG_FILES = $CONFIG_FILES
3985 CONFIG_HEADERS = $CONFIG_HEADERS
3986 CONFIG_LINKS = $CONFIG_LINKS
3987 CONFIG_COMMANDS = $CONFIG_COMMANDS
3988 $ $0 $@
3989
3990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3991 "
3992
3993 _ACEOF
3994
3995 case $ac_config_files in *"
3996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3997 esac
3998
3999
4000
4001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4002 # Files that config.status was made for.
4003 config_files="$ac_config_files"
4004
4005 _ACEOF
4006
4007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4008 ac_cs_usage="\
4009 \`$as_me' instantiates files and other configuration actions
4010 from templates according to the current configuration. Unless the files
4011 and actions are specified as TAGs, all are instantiated by default.
4012
4013 Usage: $0 [OPTION]... [TAG]...
4014
4015 -h, --help print this help, then exit
4016 -V, --version print version number and configuration settings, then exit
4017 --config print configuration, then exit
4018 -q, --quiet, --silent
4019 do not print progress messages
4020 -d, --debug don't remove temporary files
4021 --recheck update $as_me by reconfiguring in the same conditions
4022 --file=FILE[:TEMPLATE]
4023 instantiate the configuration file FILE
4024
4025 Configuration files:
4026 $config_files
4027
4028 Report bugs to the package provider."
4029
4030 _ACEOF
4031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4033 ac_cs_version="\\
4034 config.status
4035 configured by $0, generated by GNU Autoconf 2.69,
4036 with options \\"\$ac_cs_config\\"
4037
4038 Copyright (C) 2012 Free Software Foundation, Inc.
4039 This config.status script is free software; the Free Software Foundation
4040 gives unlimited permission to copy, distribute and modify it."
4041
4042 ac_pwd='$ac_pwd'
4043 srcdir='$srcdir'
4044 test -n "\$AWK" || AWK=awk
4045 _ACEOF
4046
4047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4048 # The default lists apply if the user does not specify any file.
4049 ac_need_defaults=:
4050 while test $# != 0
4051 do
4052 case $1 in
4053 --*=?*)
4054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4056 ac_shift=:
4057 ;;
4058 --*=)
4059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4060 ac_optarg=
4061 ac_shift=:
4062 ;;
4063 *)
4064 ac_option=$1
4065 ac_optarg=$2
4066 ac_shift=shift
4067 ;;
4068 esac
4069
4070 case $ac_option in
4071 # Handling of the options.
4072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4073 ac_cs_recheck=: ;;
4074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4075 $as_echo "$ac_cs_version"; exit ;;
4076 --config | --confi | --conf | --con | --co | --c )
4077 $as_echo "$ac_cs_config"; exit ;;
4078 --debug | --debu | --deb | --de | --d | -d )
4079 debug=: ;;
4080 --file | --fil | --fi | --f )
4081 $ac_shift
4082 case $ac_optarg in
4083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4084 '') as_fn_error $? "missing file argument" ;;
4085 esac
4086 as_fn_append CONFIG_FILES " '$ac_optarg'"
4087 ac_need_defaults=false;;
4088 --he | --h | --help | --hel | -h )
4089 $as_echo "$ac_cs_usage"; exit ;;
4090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4092 ac_cs_silent=: ;;
4093
4094 # This is an error.
4095 -*) as_fn_error $? "unrecognized option: \`$1'
4096 Try \`$0 --help' for more information." ;;
4097
4098 *) as_fn_append ac_config_targets " $1"
4099 ac_need_defaults=false ;;
4100
4101 esac
4102 shift
4103 done
4104
4105 ac_configure_extra_args=
4106
4107 if $ac_cs_silent; then
4108 exec 6>/dev/null
4109 ac_configure_extra_args="$ac_configure_extra_args --silent"
4110 fi
4111
4112 _ACEOF
4113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4114 if \$ac_cs_recheck; then
4115 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4116 shift
4117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4118 CONFIG_SHELL='$SHELL'
4119 export CONFIG_SHELL
4120 exec "\$@"
4121 fi
4122
4123 _ACEOF
4124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4125 exec 5>>config.log
4126 {
4127 echo
4128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4129 ## Running $as_me. ##
4130 _ASBOX
4131 $as_echo "$ac_log"
4132 } >&5
4133
4134 _ACEOF
4135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4136 _ACEOF
4137
4138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4139
4140 # Handling of arguments.
4141 for ac_config_target in $ac_config_targets
4142 do
4143 case $ac_config_target in
4144 "all.mk") CONFIG_FILES="$CONFIG_FILES all.mk" ;;
4145
4146 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4147 esac
4148 done
4149
4150
4151 # If the user did not use the arguments to specify the items to instantiate,
4152 # then the envvar interface is used. Set only those that are not.
4153 # We use the long form for the default assignment because of an extremely
4154 # bizarre bug on SunOS 4.1.3.
4155 if $ac_need_defaults; then
4156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4157 fi
4158
4159 # Have a temporary directory for convenience. Make it in the build tree
4160 # simply because there is no reason against having it here, and in addition,
4161 # creating and moving files from /tmp can sometimes cause problems.
4162 # Hook for its removal unless debugging.
4163 # Note that there is a small window in which the directory will not be cleaned:
4164 # after its creation but before its name has been assigned to `$tmp'.
4165 $debug ||
4166 {
4167 tmp= ac_tmp=
4168 trap 'exit_status=$?
4169 : "${ac_tmp:=$tmp}"
4170 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4171 ' 0
4172 trap 'as_fn_exit 1' 1 2 13 15
4173 }
4174 # Create a (secure) tmp directory for tmp files.
4175
4176 {
4177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4178 test -d "$tmp"
4179 } ||
4180 {
4181 tmp=./conf$$-$RANDOM
4182 (umask 077 && mkdir "$tmp")
4183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4184 ac_tmp=$tmp
4185
4186 # Set up the scripts for CONFIG_FILES section.
4187 # No need to generate them if there are no CONFIG_FILES.
4188 # This happens for instance with `./config.status config.h'.
4189 if test -n "$CONFIG_FILES"; then
4190
4191
4192 ac_cr=`echo X | tr X '\015'`
4193 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4194 # But we know of no other shell where ac_cr would be empty at this
4195 # point, so we can use a bashism as a fallback.
4196 if test "x$ac_cr" = x; then
4197 eval ac_cr=\$\'\\r\'
4198 fi
4199 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4200 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4201 ac_cs_awk_cr='\\r'
4202 else
4203 ac_cs_awk_cr=$ac_cr
4204 fi
4205
4206 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4207 _ACEOF
4208
4209
4210 {
4211 echo "cat >conf$$subs.awk <<_ACEOF" &&
4212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4213 echo "_ACEOF"
4214 } >conf$$subs.sh ||
4215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4216 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4217 ac_delim='%!_!# '
4218 for ac_last_try in false false false false false :; do
4219 . ./conf$$subs.sh ||
4220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4221
4222 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4223 if test $ac_delim_n = $ac_delim_num; then
4224 break
4225 elif $ac_last_try; then
4226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4227 else
4228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4229 fi
4230 done
4231 rm -f conf$$subs.sh
4232
4233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4234 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4235 _ACEOF
4236 sed -n '
4237 h
4238 s/^/S["/; s/!.*/"]=/
4239 p
4240 g
4241 s/^[^!]*!//
4242 :repl
4243 t repl
4244 s/'"$ac_delim"'$//
4245 t delim
4246 :nl
4247 h
4248 s/\(.\{148\}\)..*/\1/
4249 t more1
4250 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4251 p
4252 n
4253 b repl
4254 :more1
4255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4256 p
4257 g
4258 s/.\{148\}//
4259 t nl
4260 :delim
4261 h
4262 s/\(.\{148\}\)..*/\1/
4263 t more2
4264 s/["\\]/\\&/g; s/^/"/; s/$/"/
4265 p
4266 b
4267 :more2
4268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4269 p
4270 g
4271 s/.\{148\}//
4272 t delim
4273 ' <conf$$subs.awk | sed '
4274 /^[^""]/{
4275 N
4276 s/\n//
4277 }
4278 ' >>$CONFIG_STATUS || ac_write_fail=1
4279 rm -f conf$$subs.awk
4280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4281 _ACAWK
4282 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4283 for (key in S) S_is_set[key] = 1
4284 FS = ""
4285
4286 }
4287 {
4288 line = $ 0
4289 nfields = split(line, field, "@")
4290 substed = 0
4291 len = length(field[1])
4292 for (i = 2; i < nfields; i++) {
4293 key = field[i]
4294 keylen = length(key)
4295 if (S_is_set[key]) {
4296 value = S[key]
4297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4298 len += length(value) + length(field[++i])
4299 substed = 1
4300 } else
4301 len += 1 + keylen
4302 }
4303
4304 print line
4305 }
4306
4307 _ACAWK
4308 _ACEOF
4309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4310 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4311 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4312 else
4313 cat
4314 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4315 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4316 _ACEOF
4317
4318 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4319 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4320 # trailing colons and then remove the whole line if VPATH becomes empty
4321 # (actually we leave an empty line to preserve line numbers).
4322 if test "x$srcdir" = x.; then
4323 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4324 h
4325 s///
4326 s/^/:/
4327 s/[ ]*$/:/
4328 s/:\$(srcdir):/:/g
4329 s/:\${srcdir}:/:/g
4330 s/:@srcdir@:/:/g
4331 s/^:*//
4332 s/:*$//
4333 x
4334 s/\(=[ ]*\).*/\1/
4335 G
4336 s/\n//
4337 s/^[^=]*=[ ]*$//
4338 }'
4339 fi
4340
4341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4342 fi # test -n "$CONFIG_FILES"
4343
4344
4345 eval set X " :F $CONFIG_FILES "
4346 shift
4347 for ac_tag
4348 do
4349 case $ac_tag in
4350 :[FHLC]) ac_mode=$ac_tag; continue;;
4351 esac
4352 case $ac_mode$ac_tag in
4353 :[FHL]*:*);;
4354 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4355 :[FH]-) ac_tag=-:-;;
4356 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4357 esac
4358 ac_save_IFS=$IFS
4359 IFS=:
4360 set x $ac_tag
4361 IFS=$ac_save_IFS
4362 shift
4363 ac_file=$1
4364 shift
4365
4366 case $ac_mode in
4367 :L) ac_source=$1;;
4368 :[FH])
4369 ac_file_inputs=
4370 for ac_f
4371 do
4372 case $ac_f in
4373 -) ac_f="$ac_tmp/stdin";;
4374 *) # Look for the file first in the build tree, then in the source tree
4375 # (if the path is not absolute). The absolute path cannot be DOS-style,
4376 # because $ac_f cannot contain `:'.
4377 test -f "$ac_f" ||
4378 case $ac_f in
4379 [\\/$]*) false;;
4380 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4381 esac ||
4382 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4383 esac
4384 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4385 as_fn_append ac_file_inputs " '$ac_f'"
4386 done
4387
4388 # Let's still pretend it is `configure' which instantiates (i.e., don't
4389 # use $as_me), people would be surprised to read:
4390 # /* config.h. Generated by config.status. */
4391 configure_input='Generated from '`
4392 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4393 `' by configure.'
4394 if test x"$ac_file" != x-; then
4395 configure_input="$ac_file. $configure_input"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4397 $as_echo "$as_me: creating $ac_file" >&6;}
4398 fi
4399 # Neutralize special characters interpreted by sed in replacement strings.
4400 case $configure_input in #(
4401 *\&* | *\|* | *\\* )
4402 ac_sed_conf_input=`$as_echo "$configure_input" |
4403 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4404 *) ac_sed_conf_input=$configure_input;;
4405 esac
4406
4407 case $ac_tag in
4408 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4410 esac
4411 ;;
4412 esac
4413
4414 ac_dir=`$as_dirname -- "$ac_file" ||
4415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4416 X"$ac_file" : 'X\(//\)[^/]' \| \
4417 X"$ac_file" : 'X\(//\)$' \| \
4418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4419 $as_echo X"$ac_file" |
4420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4421 s//\1/
4422 q
4423 }
4424 /^X\(\/\/\)[^/].*/{
4425 s//\1/
4426 q
4427 }
4428 /^X\(\/\/\)$/{
4429 s//\1/
4430 q
4431 }
4432 /^X\(\/\).*/{
4433 s//\1/
4434 q
4435 }
4436 s/.*/./; q'`
4437 as_dir="$ac_dir"; as_fn_mkdir_p
4438 ac_builddir=.
4439
4440 case "$ac_dir" in
4441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4442 *)
4443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4444 # A ".." for each directory in $ac_dir_suffix.
4445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4446 case $ac_top_builddir_sub in
4447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4449 esac ;;
4450 esac
4451 ac_abs_top_builddir=$ac_pwd
4452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4453 # for backward compatibility:
4454 ac_top_builddir=$ac_top_build_prefix
4455
4456 case $srcdir in
4457 .) # We are building in place.
4458 ac_srcdir=.
4459 ac_top_srcdir=$ac_top_builddir_sub
4460 ac_abs_top_srcdir=$ac_pwd ;;
4461 [\\/]* | ?:[\\/]* ) # Absolute name.
4462 ac_srcdir=$srcdir$ac_dir_suffix;
4463 ac_top_srcdir=$srcdir
4464 ac_abs_top_srcdir=$srcdir ;;
4465 *) # Relative name.
4466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4467 ac_top_srcdir=$ac_top_build_prefix$srcdir
4468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4469 esac
4470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4471
4472
4473 case $ac_mode in
4474 :F)
4475 #
4476 # CONFIG_FILE
4477 #
4478
4479 _ACEOF
4480
4481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4482 # If the template does not know about datarootdir, expand it.
4483 # FIXME: This hack should be removed a few years after 2.60.
4484 ac_datarootdir_hack=; ac_datarootdir_seen=
4485 ac_sed_dataroot='
4486 /datarootdir/ {
4487 p
4488 q
4489 }
4490 /@datadir@/p
4491 /@docdir@/p
4492 /@infodir@/p
4493 /@localedir@/p
4494 /@mandir@/p'
4495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4496 *datarootdir*) ac_datarootdir_seen=yes;;
4497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4500 _ACEOF
4501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4502 ac_datarootdir_hack='
4503 s&@datadir@&$datadir&g
4504 s&@docdir@&$docdir&g
4505 s&@infodir@&$infodir&g
4506 s&@localedir@&$localedir&g
4507 s&@mandir@&$mandir&g
4508 s&\\\${datarootdir}&$datarootdir&g' ;;
4509 esac
4510 _ACEOF
4511
4512 # Neutralize VPATH when `$srcdir' = `.'.
4513 # Shell code in configure.ac might set extrasub.
4514 # FIXME: do we really want to maintain this feature?
4515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4516 ac_sed_extra="$ac_vpsub
4517 $extrasub
4518 _ACEOF
4519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4520 :t
4521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4522 s|@configure_input@|$ac_sed_conf_input|;t t
4523 s&@top_builddir@&$ac_top_builddir_sub&;t t
4524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4525 s&@srcdir@&$ac_srcdir&;t t
4526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4527 s&@top_srcdir@&$ac_top_srcdir&;t t
4528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4529 s&@builddir@&$ac_builddir&;t t
4530 s&@abs_builddir@&$ac_abs_builddir&;t t
4531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4532 $ac_datarootdir_hack
4533 "
4534 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4535 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4536
4537 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4538 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4540 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4542 which seems to be undefined. Please make sure it is defined" >&5
4543 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4544 which seems to be undefined. Please make sure it is defined" >&2;}
4545
4546 rm -f "$ac_tmp/stdin"
4547 case $ac_file in
4548 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4549 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4550 esac \
4551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4552 ;;
4553
4554
4555
4556 esac
4557
4558 done # for ac_tag
4559
4560
4561 as_fn_exit 0
4562 _ACEOF
4563 ac_clean_files=$ac_clean_files_save
4564
4565 test $ac_write_fail = 0 ||
4566 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4567
4568
4569 # configure is writing to config.log, and then calls config.status.
4570 # config.status does its own redirection, appending to config.log.
4571 # Unfortunately, on DOS this fails, as config.log is still kept open
4572 # by configure, so config.status won't be able to write to it; its
4573 # output is simply discarded. So we exec the FD to /dev/null,
4574 # effectively closing config.log, so it can be properly (re)opened and
4575 # appended to by config.status. When coming back to configure, we
4576 # need to make the FD available again.
4577 if test "$no_create" != yes; then
4578 ac_cs_success=:
4579 ac_config_status_args=
4580 test "$silent" = yes &&
4581 ac_config_status_args="$ac_config_status_args --quiet"
4582 exec 5>/dev/null
4583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4584 exec 5>>config.log
4585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4586 # would make configure fail if this is the last instruction.
4587 $ac_cs_success || as_fn_exit 1
4588 fi
4589 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4591 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4592 fi
4593