Debian Codegraph @

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