Debian Codegraph @

src/modules/rlm_python3/configure

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