Debian Codegraph @

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