Debian Codegraph @

modules/readline/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for readline 1.0.
4 #
5 # Report bugs to <clisp-list>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and clisp-list about
274 $0: your system, including any error possibly output before
275 $0: this message. Then install a modern shell, or manually
276 $0: run the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='readline'
605 PACKAGE_TARNAME='readline'
606 PACKAGE_VERSION='1.0'
607 PACKAGE_STRING='readline 1.0'
608 PACKAGE_BUGREPORT='clisp-list'
609 PACKAGE_URL=''
610
611 ac_unique_file="readline.lisp"
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 ac_subst_vars='LTLIBOBJS
645 LIBOBJS
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 INCTERMCAP
655 LIBTERMCAP
656 LN_S
657 LN
658 CPP
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 CLISP_CPPFLAGS
667 CLISP_CFLAGS
668 CLISP_LIBS
669 CLISP_FILES
670 CLISP_LINKKIT
671 CLISP_LIBDIR
672 CLISP
673 cl_cv_clisp
674 CLISP_DECOLONIZE
675 target_alias
676 host_alias
677 build_alias
678 LIBS
679 ECHO_T
680 ECHO_N
681 ECHO_C
682 DEFS
683 mandir
684 localedir
685 libdir
686 psdir
687 pdfdir
688 dvidir
689 htmldir
690 infodir
691 docdir
692 oldincludedir
693 includedir
694 runstatedir
695 localstatedir
696 sharedstatedir
697 sysconfdir
698 datadir
699 datarootdir
700 libexecdir
701 sbindir
702 bindir
703 program_transform_name
704 prefix
705 exec_prefix
706 PACKAGE_URL
707 PACKAGE_BUGREPORT
708 PACKAGE_STRING
709 PACKAGE_VERSION
710 PACKAGE_TARNAME
711 PACKAGE_NAME
712 PATH_SEPARATOR
713 SHELL
714 am__quote'
715 ac_subst_files=''
716 ac_user_opts='
717 enable_option_checking
718 with_clisp
719 with_readline
720 with_libtermcap_prefix
721 with_gnu_ld
722 enable_rpath
723 with_libreadline_prefix
724 '
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CPP'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 ac_unrecognized_opts=
740 ac_unrecognized_sep=
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 runstatedir='${localstatedir}/run'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *=) ac_optarg= ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error $? "invalid feature name: '$ac_useropt'"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847 "enable_$ac_useropt"
848 "*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: '$ac_useropt'"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
879
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
888
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
892
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
899
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
904
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
934
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
951
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
959
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
963
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
972
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1008
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
1023 -runstatedir | --runstatedir | --runstatedi | --runstated \
1024 | --runstate | --runstat | --runsta | --runst | --runs \
1025 | --run | --ru | --r)
1026 ac_prev=runstatedir ;;
1027 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1028 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1029 | --run=* | --ru=* | --r=*)
1030 runstatedir=$ac_optarg ;;
1031
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 ac_prev=sbindir ;;
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 | --sbi=* | --sb=*)
1036 sbindir=$ac_optarg ;;
1037
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1041 | --sha | --sh)
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 | --sha=* | --sh=*)
1047 sharedstatedir=$ac_optarg ;;
1048
1049 -site | --site | --sit)
1050 ac_prev=site ;;
1051 -site=* | --site=* | --sit=*)
1052 site=$ac_optarg ;;
1053
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 ac_prev=srcdir ;;
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1058
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1065
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1070
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 verbose=yes ;;
1073
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1076
1077 -with-* | --with-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: '$ac_useropt'"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "with_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=\$ac_optarg ;;
1092
1093 -without-* | --without-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: '$ac_useropt'"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=no ;;
1108
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1112
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1119
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1126
1127 -*) as_fn_error $? "unrecognized option: '$ac_option'
1128 Try '$0 --help' for more information"
1129 ;;
1130
1131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1136 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1137 esac
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1140
1141 *)
1142 # FIXME: should be removed in autoconf 3.0.
1143 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 ;;
1148
1149 esac
1150 done
1151
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error $? "missing argument to $ac_option"
1155 fi
1156
1157 if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1159 no) ;;
1160 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 esac
1163 fi
1164
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir runstatedir
1170 do
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1173 case $ac_val in
1174 */ )
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1177 esac
1178 # Be sure to have absolute directory names.
1179 case $ac_val in
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 esac
1183 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1184 done
1185
1186 # There might be people who depend on the old broken behavior: '$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1192
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 elif test "x$build_alias" != "x$host_alias"; then
1198 cross_compiling=yes
1199 fi
1200 fi
1201
1202 ac_tool_prefix=
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204
1205 test "$silent" = yes && exec 6>/dev/null
1206
1207
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 as_fn_error $? "working directory cannot be determined"
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 as_fn_error $? "pwd does not report name of working directory"
1214
1215
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$as_myself" ||
1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$as_myself" : 'X\(//\)[^/]' \| \
1223 X"$as_myself" : 'X\(//\)$' \| \
1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225 printf "%s\n" X"$as_myself" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\/\)$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\).*/{
1239 s//\1/
1240 q
1241 }
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1246 fi
1247 else
1248 ac_srcdir_defaulted=no
1249 fi
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1253 fi
1254 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1257 pwd)`
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 srcdir=.
1261 fi
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1265 case $srcdir in
1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 esac
1268 for ac_var in $ac_precious_vars; do
1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_${ac_var}_value=\$${ac_var}
1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 done
1274
1275 #
1276 # Report the --help message.
1277 #
1278 if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
1281 cat <<_ACEOF
1282 'configure' configures readline 1.0 to adapt to many kinds of systems.
1283
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1285
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE. See below for descriptions of some of the useful variables.
1288
1289 Defaults for the options are specified in brackets.
1290
1291 Configuration:
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print 'checking ...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for '--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or '..']
1301
1302 Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
1304 [$ac_default_prefix]
1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 [PREFIX]
1307
1308 By default, 'make install' will install all the files in
1309 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1310 an installation prefix other than '$ac_default_prefix' using '--prefix',
1311 for instance '--prefix=\$HOME'.
1312
1313 For better control, use the options below.
1314
1315 Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1337
1338 cat <<\_ACEOF
1339
1340 System types:
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 _ACEOF
1344 fi
1345
1346 if test -n "$ac_init_help"; then
1347 case $ac_init_help in
1348 short | recursive ) echo "Configuration of readline 1.0:";;
1349 esac
1350 cat <<\_ACEOF
1351
1352 Optional Features:
1353 --disable-option-checking ignore unrecognized --enable/--with options
1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1356 --disable-rpath do not hardcode runtime library paths
1357
1358 Optional Packages:
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-clisp use a specific CLISP installation
1362 --with-readline use GNU readline (default is YES, if present)
1363 --with-libtermcap-prefix[=DIR]
1364 search for ncurses and termcap in DIR
1365 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1366 --with-libreadline-prefix[=DIR] search for libreadline in DIR/include and DIR/lib
1367 --without-libreadline-prefix don't search for libreadline in includedir and libdir
1368
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378
1379 Use these variables to override the choices made by 'configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1381
1382 Report bugs to <clisp-list>.
1383 _ACEOF
1384 ac_status=$?
1385 fi
1386
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392 continue
1393 ac_builddir=.
1394
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *)
1398 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1410
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for configure.gnu first; this name is used for a wrapper for
1429 # Metaconfig's "Configure" on case-insensitive file systems.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1436 else
1437 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1440 done
1441 fi
1442
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1445 cat <<\_ACEOF
1446 readline configure 1.0
1447 generated by GNU Autoconf 2.72
1448
1449 Copyright (C) 2023 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1454 fi
1455
1456 ## ------------------------ ##
1457 ## Autoconf initialization. ##
1458 ## ------------------------ ##
1459
1460 # ac_fn_c_try_compile LINENO
1461 # --------------------------
1462 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463 ac_fn_c_try_compile ()
1464 {
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 rm -f conftest.$ac_objext conftest.beam
1467 if { { ac_try="$ac_compile"
1468 case "(($ac_try" in
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1471 esac
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 printf "%s\n" "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1475 ac_status=$?
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1480 fi
1481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.$ac_objext
1486 then :
1487 ac_retval=0
1488 else case e in #(
1489 e) printf "%s\n" "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1491
1492 ac_retval=1 ;;
1493 esac
1494 fi
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1497
1498 } # ac_fn_c_try_compile
1499
1500 # ac_fn_c_try_cpp LINENO
1501 # ----------------------
1502 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_cpp ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_cpp conftest.$ac_ext"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 printf "%s\n" "$ac_try_echo"; } >&5
1513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } > conftest.i && {
1522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 }
1525 then :
1526 ac_retval=0
1527 else case e in #(
1528 e) printf "%s\n" "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1 ;;
1532 esac
1533 fi
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1536
1537 } # ac_fn_c_try_cpp
1538
1539 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1540 # -------------------------------------------------------
1541 # Tests whether HEADER exists and can be compiled using the include files in
1542 # INCLUDES, setting the cache variable VAR accordingly.
1543 ac_fn_c_check_header_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547 printf %s "checking for $2... " >&6; }
1548 if eval test \${$3+y}
1549 then :
1550 printf %s "(cached) " >&6
1551 else case e in #(
1552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1554 $4
1555 #include <$2>
1556 _ACEOF
1557 if ac_fn_c_try_compile "$LINENO"
1558 then :
1559 eval "$3=yes"
1560 else case e in #(
1561 e) eval "$3=no" ;;
1562 esac
1563 fi
1564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1565 esac
1566 fi
1567 eval ac_res=\$$3
1568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569 printf "%s\n" "$ac_res" >&6; }
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571
1572 } # ac_fn_c_check_header_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 printf "%s\n" "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 test -x conftest$ac_exeext
1602 }
1603 then :
1604 ac_retval=0
1605 else case e in #(
1606 e) printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1 ;;
1610 esac
1611 fi
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_link
1621
1622 # ac_fn_c_check_func LINENO FUNC VAR
1623 # ----------------------------------
1624 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1625 ac_fn_c_check_func ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 printf %s "checking for $2... " >&6; }
1630 if eval test \${$3+y}
1631 then :
1632 printf %s "(cached) " >&6
1633 else case e in #(
1634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1638 #define $2 innocuous_$2
1639
1640 /* System header to define __stub macros and hopefully few prototypes,
1641 which can conflict with char $2 (void); below. */
1642
1643 #include <limits.h>
1644 #undef $2
1645
1646 /* Override any GCC internal prototype to avoid an error.
1647 Use char because int might match the return type of a GCC
1648 builtin and then its argument prototype would still apply. */
1649 #ifdef __cplusplus
1650 extern "C"
1651 #endif
1652 char $2 (void);
1653 /* The GNU C library defines this for functions which it implements
1654 to always fail with ENOSYS. Some functions are actually named
1655 something starting with __ and the normal name is an alias. */
1656 #if defined __stub_$2 || defined __stub___$2
1657 choke me
1658 #endif
1659
1660 int
1661 main (void)
1662 {
1663 return $2 ();
1664 ;
1665 return 0;
1666 }
1667 _ACEOF
1668 if ac_fn_c_try_link "$LINENO"
1669 then :
1670 eval "$3=yes"
1671 else case e in #(
1672 e) eval "$3=no" ;;
1673 esac
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1676 conftest$ac_exeext conftest.$ac_ext ;;
1677 esac
1678 fi
1679 eval ac_res=\$$3
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 printf "%s\n" "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_func
1685
1686 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1687 # ------------------------------------------------------------------
1688 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1689 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1690 ac_fn_check_decl ()
1691 {
1692 ac_saved_ac_compile="$ac_compile"
1693 if test -n "$ac_compile_for_check_decl"; then
1694 ac_compile="$ac_compile_for_check_decl"
1695 fi
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 as_decl_name=`echo $2|sed 's/ *(.*//'`
1698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1699 printf %s "checking whether $as_decl_name is declared... " >&6; }
1700 if eval test \${$3+y}
1701 then :
1702 printf %s "(cached) " >&6
1703 else case e in #(
1704 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1705 eval ac_save_FLAGS=\$$6
1706 as_fn_append $6 " $5"
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 int
1711 main (void)
1712 {
1713 #ifndef $as_decl_name
1714 #ifdef __cplusplus
1715 (void) $as_decl_use;
1716 #else
1717 (void) $as_decl_name;
1718 #endif
1719 #endif
1720
1721 ;
1722 return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"
1726 then :
1727 eval "$3=yes"
1728 else case e in #(
1729 e) eval "$3=no" ;;
1730 esac
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1733 eval $6=\$ac_save_FLAGS
1734 ;;
1735 esac
1736 fi
1737 eval ac_res=\$$3
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 printf "%s\n" "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 ac_compile="$ac_saved_ac_compile"
1742
1743 } # ac_fn_check_decl
1744 ac_configure_args_raw=
1745 for ac_arg
1746 do
1747 case $ac_arg in
1748 *\'*)
1749 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 as_fn_append ac_configure_args_raw " '$ac_arg'"
1752 done
1753
1754 case $ac_configure_args_raw in
1755 *$as_nl*)
1756 ac_safe_unquote= ;;
1757 *)
1758 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1759 ac_unsafe_a="$ac_unsafe_z#~"
1760 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1761 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1762 esac
1763
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1767
1768 It was created by readline $as_me 1.0, which was
1769 generated by GNU Autoconf 2.72. Invocation command line was
1770
1771 $ $0$ac_configure_args_raw
1772
1773 _ACEOF
1774 exec 5>>config.log
1775 {
1776 cat <<_ASUNAME
1777 ## --------- ##
1778 ## Platform. ##
1779 ## --------- ##
1780
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1789
1790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1797
1798 _ASUNAME
1799
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 case $as_dir in #(((
1805 '') as_dir=./ ;;
1806 */) ;;
1807 *) as_dir=$as_dir/ ;;
1808 esac
1809 printf "%s\n" "PATH: $as_dir"
1810 done
1811 IFS=$as_save_IFS
1812
1813 } >&5
1814
1815 cat >&5 <<_ACEOF
1816
1817
1818 ## ----------- ##
1819 ## Core tests. ##
1820 ## ----------- ##
1821
1822 _ACEOF
1823
1824
1825 # Keep a trace of the command line.
1826 # Strip out --no-create and --no-recursion so they do not pile up.
1827 # Strip out --silent because we don't want to record it for future runs.
1828 # Also quote any args containing shell meta-characters.
1829 # Make two passes to allow for proper duplicate-argument suppression.
1830 ac_configure_args=
1831 ac_configure_args0=
1832 ac_configure_args1=
1833 ac_must_keep_next=false
1834 for ac_pass in 1 2
1835 do
1836 for ac_arg
1837 do
1838 case $ac_arg in
1839 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1841 | -silent | --silent | --silen | --sile | --sil)
1842 continue ;;
1843 *\'*)
1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 esac
1846 case $ac_pass in
1847 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1848 2)
1849 as_fn_append ac_configure_args1 " '$ac_arg'"
1850 if test $ac_must_keep_next = true; then
1851 ac_must_keep_next=false # Got value, back to normal.
1852 else
1853 case $ac_arg in
1854 *=* | --config-cache | -C | -disable-* | --disable-* \
1855 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1856 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1857 | -with-* | --with-* | -without-* | --without-* | --x)
1858 case "$ac_configure_args0 " in
1859 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1860 esac
1861 ;;
1862 -* ) ac_must_keep_next=true ;;
1863 esac
1864 fi
1865 as_fn_append ac_configure_args " '$ac_arg'"
1866 ;;
1867 esac
1868 done
1869 done
1870 { ac_configure_args0=; unset ac_configure_args0;}
1871 { ac_configure_args1=; unset ac_configure_args1;}
1872
1873 # When interrupted or exit'd, cleanup temporary files, and complete
1874 # config.log. We remove comments because anyway the quotes in there
1875 # would cause problems or look ugly.
1876 # WARNING: Use '\'' to represent an apostrophe within the trap.
1877 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1878 trap 'exit_status=$?
1879 # Sanitize IFS.
1880 IFS=" "" $as_nl"
1881 # Save into config.log some information that might help in debugging.
1882 {
1883 echo
1884
1885 printf "%s\n" "## ---------------- ##
1886 ## Cache variables. ##
1887 ## ---------------- ##"
1888 echo
1889 # The following way of writing the cache mishandles newlines in values,
1890 (
1891 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in #(
1894 *${as_nl}*)
1895 case $ac_var in #(
1896 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1897 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1898 esac
1899 case $ac_var in #(
1900 _ | IFS | as_nl) ;; #(
1901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1902 *) { eval $ac_var=; unset $ac_var;} ;;
1903 esac ;;
1904 esac
1905 done
1906 (set) 2>&1 |
1907 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1908 *${as_nl}ac_space=\ *)
1909 sed -n \
1910 "s/'\''/'\''\\\\'\'''\''/g;
1911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1912 ;; #(
1913 *)
1914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1915 ;;
1916 esac |
1917 sort
1918 )
1919 echo
1920
1921 printf "%s\n" "## ----------------- ##
1922 ## Output variables. ##
1923 ## ----------------- ##"
1924 echo
1925 for ac_var in $ac_subst_vars
1926 do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in
1929 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 esac
1931 printf "%s\n" "$ac_var='\''$ac_val'\''"
1932 done | sort
1933 echo
1934
1935 if test -n "$ac_subst_files"; then
1936 printf "%s\n" "## ------------------- ##
1937 ## File substitutions. ##
1938 ## ------------------- ##"
1939 echo
1940 for ac_var in $ac_subst_files
1941 do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 printf "%s\n" "$ac_var='\''$ac_val'\''"
1947 done | sort
1948 echo
1949 fi
1950
1951 if test -s confdefs.h; then
1952 printf "%s\n" "## ----------- ##
1953 ## confdefs.h. ##
1954 ## ----------- ##"
1955 echo
1956 cat confdefs.h
1957 echo
1958 fi
1959 test "$ac_signal" != 0 &&
1960 printf "%s\n" "$as_me: caught signal $ac_signal"
1961 printf "%s\n" "$as_me: exit $exit_status"
1962 } >&5
1963 rm -f core *.core core.conftest.* &&
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965 exit $exit_status
1966 ' 0
1967 for ac_signal in 1 2 13 15; do
1968 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1969 done
1970 ac_signal=0
1971
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1974
1975 printf "%s\n" "/* confdefs.h */" > confdefs.h
1976
1977 # Predefined preprocessor variables.
1978
1979 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1980
1981 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1982
1983 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1984
1985 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1986
1987 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1988
1989 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1990
1991
1992 # Let the site file select an alternate cache file if it wants to.
1993 # Prefer an explicitly selected file to automatically selected ones.
1994 if test -n "$CONFIG_SITE"; then
1995 ac_site_files="$CONFIG_SITE"
1996 elif test "x$prefix" != xNONE; then
1997 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1998 else
1999 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2000 fi
2001
2002 for ac_site_file in $ac_site_files
2003 do
2004 case $ac_site_file in #(
2005 */*) :
2006 ;; #(
2007 *) :
2008 ac_site_file=./$ac_site_file ;;
2009 esac
2010 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2012 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2013 sed 's/^/| /' "$ac_site_file" >&5
2014 . "$ac_site_file" \
2015 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2016 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2017 as_fn_error $? "failed to load site script $ac_site_file
2018 See 'config.log' for more details" "$LINENO" 5; }
2019 fi
2020 done
2021
2022 if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special files
2024 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2025 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2032 fi
2033 else
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2037 fi
2038
2039
2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to remove colons from paths" >&5
2041 printf %s "checking how to remove colons from paths... " >&6; }
2042 if test ${cl_cv_decolonize+y}
2043 then :
2044 printf %s "(cached) " >&6
2045 else case e in #(
2046 e) case `uname -s` in
2047 CYGWIN*)
2048 cl_cv_decolonize='cygpath --unix $x'
2049 ;;
2050 Windows* | MINGW* | MSYS*)
2051 if (type cygpath) > /dev/null 2>&1; then
2052 cl_cv_decolonize='cygpath --unix $x'
2053 else
2054 cl_cv_decolonize="echo \$x | sed -e 's,\\\\,/,g' -e 's,^\\(.\\):,/\1,'"
2055 fi
2056 ;;
2057 *)
2058 cl_cv_decolonize='echo $x'
2059 ;;
2060 esac
2061 ;;
2062 esac
2063 fi
2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_decolonize" >&5
2065 printf "%s\n" "$cl_cv_decolonize" >&6; }
2066 CLISP_DECOLONIZE=$cl_cv_decolonize
2067
2068
2069
2070
2071 # Check whether --with-clisp was given.
2072 if test ${with_clisp+y}
2073 then :
2074 withval=$with_clisp; cl_use_clisp="$withval"
2075 else case e in #(
2076 e) cl_use_clisp=default ;;
2077 esac
2078 fi
2079
2080 cl_have_clisp=no
2081 if test "$cl_use_clisp" != "no"; then
2082 if test "$cl_use_clisp" = default -o "$cl_use_clisp" = yes; then
2083 # Extract the first word of "clisp", so it can be a program name with args.
2084 set dummy clisp; ac_word=$2
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2086 printf %s "checking for $ac_word... " >&6; }
2087 if test ${ac_cv_path_cl_cv_clisp+y}
2088 then :
2089 printf %s "(cached) " >&6
2090 else case e in #(
2091 e) case $cl_cv_clisp in
2092 [\\/]* | ?:[\\/]*)
2093 ac_cv_path_cl_cv_clisp="$cl_cv_clisp" # Let the user override the test with a path.
2094 ;;
2095 *)
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 case $as_dir in #(((
2101 '') as_dir=./ ;;
2102 */) ;;
2103 *) as_dir=$as_dir/ ;;
2104 esac
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2107 ac_cv_path_cl_cv_clisp="$as_dir$ac_word$ac_exec_ext"
2108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2109 break 2
2110 fi
2111 done
2112 done
2113 IFS=$as_save_IFS
2114
2115 ;;
2116 esac ;;
2117 esac
2118 fi
2119 cl_cv_clisp=$ac_cv_path_cl_cv_clisp
2120 if test -n "$cl_cv_clisp"; then
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp" >&5
2122 printf "%s\n" "$cl_cv_clisp" >&6; }
2123 else
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2125 printf "%s\n" "no" >&6; }
2126 fi
2127
2128
2129 else
2130 cl_cv_clisp="$cl_use_clisp"
2131 fi
2132 if test -n "$cl_cv_clisp"; then
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP version" >&5
2134 printf %s "checking for CLISP version... " >&6; }
2135 if test ${cl_cv_clisp_version+y}
2136 then :
2137 printf %s "(cached) " >&6
2138 else case e in #(
2139 e) if $cl_cv_clisp --version 2>/dev/null | head -n 1 | grep "GNU CLISP" >/dev/null 2>&1; then
2140 cl_cv_clisp_version=`$cl_cv_clisp -q -norc -x '(lisp-implementation-version)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2141 else
2142 as_fn_error $? "'$cl_cv_clisp' is not a CLISP" "$LINENO" 5
2143 fi
2144 ;;
2145 esac
2146 fi
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_version" >&5
2148 printf "%s\n" "$cl_cv_clisp_version" >&6; }
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP libdir" >&5
2150 printf %s "checking for CLISP libdir... " >&6; }
2151 if test ${cl_cv_clisp_libdir+y}
2152 then :
2153 printf %s "(cached) " >&6
2154 else case e in #(
2155 e) cl_cv_clisp_libdir=`$cl_cv_clisp -q -norc -x '(namestring *lib-directory*)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2156 x=$cl_cv_clisp_libdir
2157 cl_cv_clisp_libdir=`eval $cl_cv_decolonize`
2158 # cf src/clisp-link.in:linkkitdir
2159 missing=''
2160 for f in modules.c clisp.h; do
2161 test -r "${cl_cv_clisp_libdir}linkkit/$f" || missing=${missing}' '$f
2162 done
2163 test -n "${missing}" \
2164 && as_fn_error $? "missing ${missing} in '${cl_cv_clisp_libdir}linkkit'" "$LINENO" 5
2165 ;;
2166 esac
2167 fi
2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_libdir" >&5
2169 printf "%s\n" "$cl_cv_clisp_libdir" >&6; }
2170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP linking set" >&5
2171 printf %s "checking for CLISP linking set... " >&6; }
2172 if test ${cl_cv_clisp_linkset+y}
2173 then :
2174 printf %s "(cached) " >&6
2175 else case e in #(
2176 e) cl_cv_clisp_linkset=`$cl_cv_clisp -q -norc -x '(sys::program-name)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2177 cl_cv_clisp_linkset=`dirname ${cl_cv_clisp_linkset}`
2178 missing=''
2179 # cf. src/clisp-link.in:check_linkset (we do not need to check for
2180 # lisp.run because cl_cv_clisp_linkset comes from SYS::PROGRAM-NAME)
2181 for f in lisp.a lispinit.mem modules.h modules.o makevars; do
2182 test -r "${cl_cv_clisp_linkset}/$f" || missing=${missing}' '$f
2183 done
2184 test -n "${missing}" \
2185 && as_fn_error $? "missing ${missing} in '${cl_cv_clisp_linkset}'" "$LINENO" 5
2186 ;;
2187 esac
2188 fi
2189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_linkset" >&5
2190 printf "%s\n" "$cl_cv_clisp_linkset" >&6; }
2191 CLISP=$cl_cv_clisp
2192
2193 CLISP_LIBDIR="${cl_cv_clisp_libdir}"
2194
2195 CLISP_LINKKIT="${cl_cv_clisp_libdir}linkkit"
2196
2197 sed 's/^/CLISP_/' ${cl_cv_clisp_linkset}/makevars > conftestvars
2198 . ./conftestvars
2199 rm -f conftestvars
2200
2201
2202
2203
2204 test -d "$cl_cv_clisp_libdir" -a -d "$cl_cv_clisp_linkset" && cl_have_clisp=yes
2205 fi
2206 fi
2207
2208 # Test code for whether the C compiler supports C89 (global declarations)
2209 ac_c_conftest_c89_globals='
2210 /* Does the compiler advertise C89 conformance?
2211 Do not test the value of __STDC__, because some compilers set it to 0
2212 while being otherwise adequately conformant. */
2213 #if !defined __STDC__
2214 # error "Compiler does not advertise C89 conformance"
2215 #endif
2216
2217 #include <stddef.h>
2218 #include <stdarg.h>
2219 struct stat;
2220 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2221 struct buf { int x; };
2222 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2223 static char *e (char **p, int i)
2224 {
2225 return p[i];
2226 }
2227 static char *f (char * (*g) (char **, int), char **p, ...)
2228 {
2229 char *s;
2230 va_list v;
2231 va_start (v,p);
2232 s = g (p, va_arg (v,int));
2233 va_end (v);
2234 return s;
2235 }
2236
2237 /* C89 style stringification. */
2238 #define noexpand_stringify(a) #a
2239 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2240
2241 /* C89 style token pasting. Exercises some of the corner cases that
2242 e.g. old MSVC gets wrong, but not very hard. */
2243 #define noexpand_concat(a,b) a##b
2244 #define expand_concat(a,b) noexpand_concat(a,b)
2245 extern int vA;
2246 extern int vbee;
2247 #define aye A
2248 #define bee B
2249 int *pvA = &expand_concat(v,aye);
2250 int *pvbee = &noexpand_concat(v,bee);
2251
2252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2253 function prototypes and stuff, but not \xHH hex character constants.
2254 These do not provoke an error unfortunately, instead are silently treated
2255 as an "x". The following induces an error, until -std is added to get
2256 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2257 array size at least. It is necessary to write \x00 == 0 to get something
2258 that is true only with -std. */
2259 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2260
2261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2262 inside strings and character constants. */
2263 #define FOO(x) '\''x'\''
2264 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2265
2266 int test (int i, double x);
2267 struct s1 {int (*f) (int a);};
2268 struct s2 {int (*f) (double a);};
2269 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2270 int, int);'
2271
2272 # Test code for whether the C compiler supports C89 (body of main).
2273 ac_c_conftest_c89_main='
2274 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2275 '
2276
2277 # Test code for whether the C compiler supports C99 (global declarations)
2278 ac_c_conftest_c99_globals='
2279 /* Does the compiler advertise C99 conformance? */
2280 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2281 # error "Compiler does not advertise C99 conformance"
2282 #endif
2283
2284 // See if C++-style comments work.
2285
2286 #include <stdbool.h>
2287 extern int puts (const char *);
2288 extern int printf (const char *, ...);
2289 extern int dprintf (int, const char *, ...);
2290 extern void *malloc (size_t);
2291 extern void free (void *);
2292
2293 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2294 // dprintf is used instead of fprintf to avoid needing to declare
2295 // FILE and stderr.
2296 #define debug(...) dprintf (2, __VA_ARGS__)
2297 #define showlist(...) puts (#__VA_ARGS__)
2298 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2299 static void
2300 test_varargs_macros (void)
2301 {
2302 int x = 1234;
2303 int y = 5678;
2304 debug ("Flag");
2305 debug ("X = %d\n", x);
2306 showlist (The first, second, and third items.);
2307 report (x>y, "x is %d but y is %d", x, y);
2308 }
2309
2310 // Check long long types.
2311 #define BIG64 18446744073709551615ull
2312 #define BIG32 4294967295ul
2313 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2314 #if !BIG_OK
2315 #error "your preprocessor is broken"
2316 #endif
2317 #if BIG_OK
2318 #else
2319 #error "your preprocessor is broken"
2320 #endif
2321 static long long int bignum = -9223372036854775807LL;
2322 static unsigned long long int ubignum = BIG64;
2323
2324 struct incomplete_array
2325 {
2326 int datasize;
2327 double data[];
2328 };
2329
2330 struct named_init {
2331 int number;
2332 const wchar_t *name;
2333 double average;
2334 };
2335
2336 typedef const char *ccp;
2337
2338 static inline int
2339 test_restrict (ccp restrict text)
2340 {
2341 // Iterate through items via the restricted pointer.
2342 // Also check for declarations in for loops.
2343 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2344 continue;
2345 return 0;
2346 }
2347
2348 // Check varargs and va_copy.
2349 static bool
2350 test_varargs (const char *format, ...)
2351 {
2352 va_list args;
2353 va_start (args, format);
2354 va_list args_copy;
2355 va_copy (args_copy, args);
2356
2357 const char *str = "";
2358 int number = 0;
2359 float fnumber = 0;
2360
2361 while (*format)
2362 {
2363 switch (*format++)
2364 {
2365 case '\''s'\'': // string
2366 str = va_arg (args_copy, const char *);
2367 break;
2368 case '\''d'\'': // int
2369 number = va_arg (args_copy, int);
2370 break;
2371 case '\''f'\'': // float
2372 fnumber = va_arg (args_copy, double);
2373 break;
2374 default:
2375 break;
2376 }
2377 }
2378 va_end (args_copy);
2379 va_end (args);
2380
2381 return *str && number && fnumber;
2382 }
2383 '
2384
2385 # Test code for whether the C compiler supports C99 (body of main).
2386 ac_c_conftest_c99_main='
2387 // Check bool.
2388 _Bool success = false;
2389 success |= (argc != 0);
2390
2391 // Check restrict.
2392 if (test_restrict ("String literal") == 0)
2393 success = true;
2394 char *restrict newvar = "Another string";
2395
2396 // Check varargs.
2397 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2398 test_varargs_macros ();
2399
2400 // Check flexible array members.
2401 struct incomplete_array *ia =
2402 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2403 ia->datasize = 10;
2404 for (int i = 0; i < ia->datasize; ++i)
2405 ia->data[i] = i * 1.234;
2406 // Work around memory leak warnings.
2407 free (ia);
2408
2409 // Check named initializers.
2410 struct named_init ni = {
2411 .number = 34,
2412 .name = L"Test wide string",
2413 .average = 543.34343,
2414 };
2415
2416 ni.number = 58;
2417
2418 int dynamic_array[ni.number];
2419 dynamic_array[0] = argv[0][0];
2420 dynamic_array[ni.number - 1] = 543;
2421
2422 // work around unused variable warnings
2423 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2424 || dynamic_array[ni.number - 1] != 543);
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (global declarations)
2428 ac_c_conftest_c11_globals='
2429 /* Does the compiler advertise C11 conformance? */
2430 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2431 # error "Compiler does not advertise C11 conformance"
2432 #endif
2433
2434 // Check _Alignas.
2435 char _Alignas (double) aligned_as_double;
2436 char _Alignas (0) no_special_alignment;
2437 extern char aligned_as_int;
2438 char _Alignas (0) _Alignas (int) aligned_as_int;
2439
2440 // Check _Alignof.
2441 enum
2442 {
2443 int_alignment = _Alignof (int),
2444 int_array_alignment = _Alignof (int[100]),
2445 char_alignment = _Alignof (char)
2446 };
2447 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2448
2449 // Check _Noreturn.
2450 int _Noreturn does_not_return (void) { for (;;) continue; }
2451
2452 // Check _Static_assert.
2453 struct test_static_assert
2454 {
2455 int x;
2456 _Static_assert (sizeof (int) <= sizeof (long int),
2457 "_Static_assert does not work in struct");
2458 long int y;
2459 };
2460
2461 // Check UTF-8 literals.
2462 #define u8 syntax error!
2463 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2464
2465 // Check duplicate typedefs.
2466 typedef long *long_ptr;
2467 typedef long int *long_ptr;
2468 typedef long_ptr long_ptr;
2469
2470 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2471 struct anonymous
2472 {
2473 union {
2474 struct { int i; int j; };
2475 struct { int k; long int l; } w;
2476 };
2477 int m;
2478 } v1;
2479 '
2480
2481 # Test code for whether the C compiler supports C11 (body of main).
2482 ac_c_conftest_c11_main='
2483 _Static_assert ((offsetof (struct anonymous, i)
2484 == offsetof (struct anonymous, w.k)),
2485 "Anonymous union alignment botch");
2486 v1.i = 2;
2487 v1.w.k = 5;
2488 ok |= v1.i != 5;
2489 '
2490
2491 # Test code for whether the C compiler supports C11 (complete).
2492 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2493 ${ac_c_conftest_c99_globals}
2494 ${ac_c_conftest_c11_globals}
2495
2496 int
2497 main (int argc, char **argv)
2498 {
2499 int ok = 0;
2500 ${ac_c_conftest_c89_main}
2501 ${ac_c_conftest_c99_main}
2502 ${ac_c_conftest_c11_main}
2503 return ok;
2504 }
2505 "
2506
2507 # Test code for whether the C compiler supports C99 (complete).
2508 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2509 ${ac_c_conftest_c99_globals}
2510
2511 int
2512 main (int argc, char **argv)
2513 {
2514 int ok = 0;
2515 ${ac_c_conftest_c89_main}
2516 ${ac_c_conftest_c99_main}
2517 return ok;
2518 }
2519 "
2520
2521 # Test code for whether the C compiler supports C89 (complete).
2522 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2523
2524 int
2525 main (int argc, char **argv)
2526 {
2527 int ok = 0;
2528 ${ac_c_conftest_c89_main}
2529 return ok;
2530 }
2531 "
2532
2533 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2534 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2535 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2536 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2537 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2538 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2539 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2540 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2541 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2542 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2543 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2544
2545 # Auxiliary files required by this configure script.
2546 ac_aux_files="config.guess config.sub config.rpath compile"
2547
2548 # Locations in which to look for auxiliary files.
2549 ac_aux_dir_candidates="$cl_cv_clisp_libdir/build-aux"
2550
2551 # Search for a directory containing all of the required auxiliary files,
2552 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2553 # If we don't find one directory that contains all the files we need,
2554 # we report the set of missing files from the *first* directory in
2555 # $ac_aux_dir_candidates and give up.
2556 ac_missing_aux_files=""
2557 ac_first_candidate=:
2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 as_found=false
2561 for as_dir in $ac_aux_dir_candidates
2562 do
2563 IFS=$as_save_IFS
2564 case $as_dir in #(((
2565 '') as_dir=./ ;;
2566 */) ;;
2567 *) as_dir=$as_dir/ ;;
2568 esac
2569 as_found=:
2570
2571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2572 ac_aux_dir_found=yes
2573 ac_install_sh=
2574 for ac_aux in $ac_aux_files
2575 do
2576 # As a special case, if "install-sh" is required, that requirement
2577 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2578 # and $ac_install_sh is set appropriately for whichever one is found.
2579 if test x"$ac_aux" = x"install-sh"
2580 then
2581 if test -f "${as_dir}install-sh"; then
2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2583 ac_install_sh="${as_dir}install-sh -c"
2584 elif test -f "${as_dir}install.sh"; then
2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2586 ac_install_sh="${as_dir}install.sh -c"
2587 elif test -f "${as_dir}shtool"; then
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2589 ac_install_sh="${as_dir}shtool install -c"
2590 else
2591 ac_aux_dir_found=no
2592 if $ac_first_candidate; then
2593 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2594 else
2595 break
2596 fi
2597 fi
2598 else
2599 if test -f "${as_dir}${ac_aux}"; then
2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2601 else
2602 ac_aux_dir_found=no
2603 if $ac_first_candidate; then
2604 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2605 else
2606 break
2607 fi
2608 fi
2609 fi
2610 done
2611 if test "$ac_aux_dir_found" = yes; then
2612 ac_aux_dir="$as_dir"
2613 break
2614 fi
2615 ac_first_candidate=false
2616
2617 as_found=false
2618 done
2619 IFS=$as_save_IFS
2620 if $as_found
2621 then :
2622
2623 else case e in #(
2624 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2625 esac
2626 fi
2627
2628
2629 # These three variables are undocumented and unsupported,
2630 # and are intended to be withdrawn in a future Autoconf release.
2631 # They can cause serious problems if a builder's source tree is in a directory
2632 # whose full name contains unusual characters.
2633 if test -f "${ac_aux_dir}config.guess"; then
2634 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2635 fi
2636 if test -f "${ac_aux_dir}config.sub"; then
2637 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2638 fi
2639 if test -f "$ac_aux_dir/configure"; then
2640 ac_configure="$SHELL ${ac_aux_dir}configure"
2641 fi
2642
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2652 set,)
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2654 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,set)
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2658 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2660 ,);;
2661 *)
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2668 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2670 else
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2672 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2674 fi
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2676 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2678 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2679 fi;;
2680 esac
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2683 case $ac_new_val in
2684 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 *) ac_arg=$ac_var=$ac_new_val ;;
2686 esac
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690 esac
2691 fi
2692 done
2693 if $ac_cache_corrupted; then
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2695 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2698 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2699 and start over" "$LINENO" 5
2700 fi
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2704
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710
2711
2712
2713 ac_config_headers="$ac_config_headers config.h"
2714
2715
2716
2717
2718 case $TERM in
2719 # for the most important terminal types we directly know the sequences
2720 xterm*|vt220*|vt100*)
2721 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2722 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2723 ;;
2724 # for all others, we try to use a possibly existing `tput' or `tcout' utility
2725 *)
2726 paths=`echo "$PATH" | sed -e 's/:/ /g'`
2727 for tool in tput tcout; do
2728 for dir in $paths; do
2729 if test -r "$dir/$tool"; then
2730 for seq in bold md smso; do # 'smso' is last
2731 bold="`$dir/$tool $seq 2>/dev/null`"
2732 if test -n "$bold"; then
2733 term_bold="$bold"
2734 break
2735 fi
2736 done
2737 if test -n "$term_bold"; then
2738 for seq in sgr0 me rmso reset; do # 'reset' is last
2739 norm="`$dir/$tool $seq 2>/dev/null`"
2740 if test -n "$norm"; then
2741 term_norm="$norm"
2742 break
2743 fi
2744 done
2745 fi
2746 break
2747 fi
2748 done
2749 if test -n "$term_bold" && test -n "$term_norm"; then
2750 break
2751 fi
2752 done
2753 ;;
2754 esac
2755
2756
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Common)${term_norm}" >&5
2758 printf "%s\n" "$as_me: ${term_bold}** Readline (Common)${term_norm}" >&6;}
2759
2760
2761
2762
2763
2764
2765
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLISP" >&5
2767 printf %s "checking for CLISP... " >&6; }
2768 if test ${cl_cv_have_clisp+y}
2769 then :
2770 printf %s "(cached) " >&6
2771 else case e in #(
2772 e) cl_cv_have_clisp=$cl_have_clisp ;;
2773 esac
2774 fi
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_have_clisp" >&5
2776 printf "%s\n" "$cl_cv_have_clisp" >&6; }
2777 required=true
2778 ${required} && test $cl_cv_have_clisp = no && as_fn_error $? "CLISP not found" "$LINENO" 5
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFI in CLISP" >&5
2780 printf %s "checking for FFI in CLISP... " >&6; }
2781 if test ${cl_cv_clisp_FFI+y}
2782 then :
2783 printf %s "(cached) " >&6
2784 else case e in #(
2785 e) cl_cv_clisp_FFI=`$cl_cv_clisp -q -norc -x '#+FFI "yes" #-FFI "no"' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'` ;;
2786 esac
2787 fi
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_FFI" >&5
2789 printf "%s\n" "$cl_cv_clisp_FFI" >&6; }
2790 ${required} && test $cl_cv_clisp_FFI = no \
2791 && as_fn_error $? "no FFI in CLISP" "$LINENO" 5
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806 # Expand $ac_aux_dir to an absolute path.
2807 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 printf %s "checking for $ac_word... " >&6; }
2819 if test ${ac_cv_prog_CC+y}
2820 then :
2821 printf %s "(cached) " >&6
2822 else case e in #(
2823 e) if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 case $as_dir in #(((
2831 '') as_dir=./ ;;
2832 */) ;;
2833 *) as_dir=$as_dir/ ;;
2834 esac
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi ;;
2846 esac
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 printf "%s\n" "$CC" >&6; }
2852 else
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 printf "%s\n" "no" >&6; }
2855 fi
2856
2857
2858 fi
2859 if test -z "$ac_cv_prog_CC"; then
2860 ac_ct_CC=$CC
2861 # Extract the first word of "gcc", so it can be a program name with args.
2862 set dummy gcc; ac_word=$2
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 printf %s "checking for $ac_word... " >&6; }
2865 if test ${ac_cv_prog_ac_ct_CC+y}
2866 then :
2867 printf %s "(cached) " >&6
2868 else case e in #(
2869 e) if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 case $as_dir in #(((
2877 '') as_dir=./ ;;
2878 */) ;;
2879 *) as_dir=$as_dir/ ;;
2880 esac
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_ac_ct_CC="gcc"
2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi ;;
2892 esac
2893 fi
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897 printf "%s\n" "$ac_ct_CC" >&6; }
2898 else
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 printf "%s\n" "no" >&6; }
2901 fi
2902
2903 if test "x$ac_ct_CC" = x; then
2904 CC=""
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912 CC=$ac_ct_CC
2913 fi
2914 else
2915 CC="$ac_cv_prog_CC"
2916 fi
2917
2918 if test -z "$CC"; then
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 printf %s "checking for $ac_word... " >&6; }
2924 if test ${ac_cv_prog_CC+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else case e in #(
2928 e) if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 case $as_dir in #(((
2936 '') as_dir=./ ;;
2937 */) ;;
2938 *) as_dir=$as_dir/ ;;
2939 esac
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}cc"
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi ;;
2951 esac
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 printf "%s\n" "$CC" >&6; }
2957 else
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 fi
2965 if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967 set dummy cc; ac_word=$2
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 printf %s "checking for $ac_word... " >&6; }
2970 if test ${ac_cv_prog_CC+y}
2971 then :
2972 printf %s "(cached) " >&6
2973 else case e in #(
2974 e) if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 ac_prog_rejected=no
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 case $as_dir in #(((
2983 '') as_dir=./ ;;
2984 */) ;;
2985 *) as_dir=$as_dir/ ;;
2986 esac
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2989 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected=yes
2991 continue
2992 fi
2993 ac_cv_prog_CC="cc"
2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3004 shift
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3009 shift
3010 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3011 fi
3012 fi
3013 fi ;;
3014 esac
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 printf "%s\n" "$CC" >&6; }
3020 else
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 printf "%s\n" "no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3030 do
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 printf %s "checking for $ac_word... " >&6; }
3035 if test ${ac_cv_prog_CC+y}
3036 then :
3037 printf %s "(cached) " >&6
3038 else case e in #(
3039 e) if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 case $as_dir in #(((
3047 '') as_dir=./ ;;
3048 */) ;;
3049 *) as_dir=$as_dir/ ;;
3050 esac
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi ;;
3062 esac
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 printf "%s\n" "$CC" >&6; }
3068 else
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 printf "%s\n" "no" >&6; }
3071 fi
3072
3073
3074 test -n "$CC" && break
3075 done
3076 fi
3077 if test -z "$CC"; then
3078 ac_ct_CC=$CC
3079 for ac_prog in cl.exe
3080 do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 printf %s "checking for $ac_word... " >&6; }
3085 if test ${ac_cv_prog_ac_ct_CC+y}
3086 then :
3087 printf %s "(cached) " >&6
3088 else case e in #(
3089 e) if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 case $as_dir in #(((
3097 '') as_dir=./ ;;
3098 */) ;;
3099 *) as_dir=$as_dir/ ;;
3100 esac
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_CC="$ac_prog"
3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi ;;
3112 esac
3113 fi
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 printf "%s\n" "$ac_ct_CC" >&6; }
3118 else
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 printf "%s\n" "no" >&6; }
3121 fi
3122
3123
3124 test -n "$ac_ct_CC" && break
3125 done
3126
3127 if test "x$ac_ct_CC" = x; then
3128 CC=""
3129 else
3130 case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136 CC=$ac_ct_CC
3137 fi
3138 fi
3139
3140 fi
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}clang; ac_word=$2
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 printf %s "checking for $ac_word... " >&6; }
3147 if test ${ac_cv_prog_CC+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else case e in #(
3151 e) if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_CC="${ac_tool_prefix}clang"
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi ;;
3174 esac
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 printf "%s\n" "$CC" >&6; }
3180 else
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 printf "%s\n" "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$ac_cv_prog_CC"; then
3188 ac_ct_CC=$CC
3189 # Extract the first word of "clang", so it can be a program name with args.
3190 set dummy clang; ac_word=$2
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 printf %s "checking for $ac_word... " >&6; }
3193 if test ${ac_cv_prog_ac_ct_CC+y}
3194 then :
3195 printf %s "(cached) " >&6
3196 else case e in #(
3197 e) if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203 IFS=$as_save_IFS
3204 case $as_dir in #(((
3205 '') as_dir=./ ;;
3206 */) ;;
3207 *) as_dir=$as_dir/ ;;
3208 esac
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_CC="clang"
3212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi ;;
3220 esac
3221 fi
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 printf "%s\n" "$ac_ct_CC" >&6; }
3226 else
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 printf "%s\n" "no" >&6; }
3229 fi
3230
3231 if test "x$ac_ct_CC" = x; then
3232 CC=""
3233 else
3234 case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240 CC=$ac_ct_CC
3241 fi
3242 else
3243 CC="$ac_cv_prog_CC"
3244 fi
3245
3246 fi
3247
3248
3249 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3250 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3251 as_fn_error $? "no acceptable C compiler found in \$PATH
3252 See 'config.log' for more details" "$LINENO" 5; }
3253
3254 # Provide some information about the compiler.
3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3256 set X $ac_compile
3257 ac_compiler=$2
3258 for ac_option in --version -v -V -qversion -version; do
3259 { { ac_try="$ac_compiler $ac_option >&5"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 printf "%s\n" "$ac_try_echo"; } >&5
3266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 ac_status=$?
3268 if test -s conftest.err; then
3269 sed '10a\
3270 ... rest of stderr output deleted ...
3271 10q' conftest.err >conftest.er1
3272 cat conftest.er1 >&5
3273 fi
3274 rm -f conftest.er1 conftest.err
3275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 done
3278
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3281
3282 int
3283 main (void)
3284 {
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 ac_clean_files_save=$ac_clean_files
3291 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3292 # Try to create an executable without -o first, disregard a.out.
3293 # It will help us diagnose broken compilers, and finding out an intuition
3294 # of exeext.
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3296 printf %s "checking whether the C compiler works... " >&6; }
3297 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298
3299 # The possible output files:
3300 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301
3302 ac_rmfiles=
3303 for ac_file in $ac_files
3304 do
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3308 esac
3309 done
3310 rm -f $ac_rmfiles
3311
3312 if { { ac_try="$ac_link_default"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 printf "%s\n" "$ac_try_echo"; } >&5
3319 (eval "$ac_link_default") 2>&5
3320 ac_status=$?
3321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3323 then :
3324 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3325 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3326 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3327 # so that the user can short-circuit this test for compilers unknown to
3328 # Autoconf.
3329 for ac_file in $ac_files ''
3330 do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 ;;
3335 [ab].out )
3336 # We found the default executable, but exeext='' is most
3337 # certainly right.
3338 break;;
3339 *.* )
3340 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3341 then :; else
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 fi
3344 # We set ac_cv_exeext here because the later test for it is not
3345 # safe: cross compilers may not add the suffix if given an '-o'
3346 # argument, so we may need to know it at that point already.
3347 # Even if this section looks crufty: it has the advantage of
3348 # actually working.
3349 break;;
3350 * )
3351 break;;
3352 esac
3353 done
3354 test "$ac_cv_exeext" = no && ac_cv_exeext=
3355
3356 else case e in #(
3357 e) ac_file='' ;;
3358 esac
3359 fi
3360 if test -z "$ac_file"
3361 then :
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 printf "%s\n" "no" >&6; }
3364 printf "%s\n" "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3368 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3369 as_fn_error 77 "C compiler cannot create executables
3370 See 'config.log' for more details" "$LINENO" 5; }
3371 else case e in #(
3372 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 printf "%s\n" "yes" >&6; } ;;
3374 esac
3375 fi
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3377 printf %s "checking for C compiler default output file name... " >&6; }
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3379 printf "%s\n" "$ac_file" >&6; }
3380 ac_exeext=$ac_cv_exeext
3381
3382 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3383 ac_clean_files=$ac_clean_files_save
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3385 printf %s "checking for suffix of executables... " >&6; }
3386 if { { ac_try="$ac_link"
3387 case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 printf "%s\n" "$ac_try_echo"; } >&5
3393 (eval "$ac_link") 2>&5
3394 ac_status=$?
3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }
3397 then :
3398 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3399 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3400 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3401 # 'rm'.
3402 for ac_file in conftest.exe conftest conftest.*; do
3403 test -f "$ac_file" || continue
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 break;;
3408 * ) break;;
3409 esac
3410 done
3411 else case e in #(
3412 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3413 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415 See 'config.log' for more details" "$LINENO" 5; } ;;
3416 esac
3417 fi
3418 rm -f conftest conftest$ac_cv_exeext
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420 printf "%s\n" "$ac_cv_exeext" >&6; }
3421
3422 rm -f conftest.$ac_ext
3423 EXEEXT=$ac_cv_exeext
3424 ac_exeext=$EXEEXT
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 #include <stdio.h>
3428 int
3429 main (void)
3430 {
3431 FILE *f = fopen ("conftest.out", "w");
3432 if (!f)
3433 return 1;
3434 return ferror (f) || fclose (f) != 0;
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 ac_clean_files="$ac_clean_files conftest.out"
3441 # Check that the compiler produces executables we can run. If not, either
3442 # the compiler is broken, or we cross compile.
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3444 printf %s "checking whether we are cross compiling... " >&6; }
3445 if test "$cross_compiling" != yes; then
3446 { { ac_try="$ac_link"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 printf "%s\n" "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3454 ac_status=$?
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3457 if { ac_try='./conftest$ac_cv_exeext'
3458 { { case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 printf "%s\n" "$ac_try_echo"; } >&5
3464 (eval "$ac_try") 2>&5
3465 ac_status=$?
3466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; }; then
3468 cross_compiling=no
3469 else
3470 if test "$cross_compiling" = maybe; then
3471 cross_compiling=yes
3472 else
3473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3474 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3475 as_fn_error 77 "cannot run C compiled programs.
3476 If you meant to cross compile, use '--host'.
3477 See 'config.log' for more details" "$LINENO" 5; }
3478 fi
3479 fi
3480 fi
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3482 printf "%s\n" "$cross_compiling" >&6; }
3483
3484 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3485 conftest.o conftest.obj conftest.out
3486 ac_clean_files=$ac_clean_files_save
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488 printf %s "checking for suffix of object files... " >&6; }
3489 if test ${ac_cv_objext+y}
3490 then :
3491 printf %s "(cached) " >&6
3492 else case e in #(
3493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495
3496 int
3497 main (void)
3498 {
3499
3500 ;
3501 return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.o conftest.obj
3505 if { { ac_try="$ac_compile"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 printf "%s\n" "$ac_try_echo"; } >&5
3512 (eval "$ac_compile") 2>&5
3513 ac_status=$?
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3516 then :
3517 for ac_file in conftest.o conftest.obj conftest.*; do
3518 test -f "$ac_file" || continue;
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522 break;;
3523 esac
3524 done
3525 else case e in #(
3526 e) printf "%s\n" "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3530 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of object files: cannot compile
3532 See 'config.log' for more details" "$LINENO" 5; } ;;
3533 esac
3534 fi
3535 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3536 esac
3537 fi
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3539 printf "%s\n" "$ac_cv_objext" >&6; }
3540 OBJEXT=$ac_cv_objext
3541 ac_objext=$OBJEXT
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3543 printf %s "checking whether the compiler supports GNU C... " >&6; }
3544 if test ${ac_cv_c_compiler_gnu+y}
3545 then :
3546 printf %s "(cached) " >&6
3547 else case e in #(
3548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main (void)
3553 {
3554 #ifndef __GNUC__
3555 choke me
3556 #endif
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"
3563 then :
3564 ac_compiler_gnu=yes
3565 else case e in #(
3566 e) ac_compiler_gnu=no ;;
3567 esac
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 ;;
3572 esac
3573 fi
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3575 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 if test $ac_compiler_gnu = yes; then
3579 GCC=yes
3580 else
3581 GCC=
3582 fi
3583 ac_test_CFLAGS=${CFLAGS+y}
3584 ac_save_CFLAGS=$CFLAGS
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3586 printf %s "checking whether $CC accepts -g... " >&6; }
3587 if test ${ac_cv_prog_cc_g+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else case e in #(
3591 e) ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3593 ac_cv_prog_cc_g=no
3594 CFLAGS="-g"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597
3598 int
3599 main (void)
3600 {
3601
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"
3607 then :
3608 ac_cv_prog_cc_g=yes
3609 else case e in #(
3610 e) CFLAGS=""
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main (void)
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"
3623 then :
3624
3625 else case e in #(
3626 e) ac_c_werror_flag=$ac_save_c_werror_flag
3627 CFLAGS="-g"
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630
3631 int
3632 main (void)
3633 {
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"
3640 then :
3641 ac_cv_prog_cc_g=yes
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3644 esac
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3647 esac
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3650 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3651 esac
3652 fi
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3655 if test $ac_test_CFLAGS; then
3656 CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3659 CFLAGS="-g -O2"
3660 else
3661 CFLAGS="-g"
3662 fi
3663 else
3664 if test "$GCC" = yes; then
3665 CFLAGS="-O2"
3666 else
3667 CFLAGS=
3668 fi
3669 fi
3670 ac_prog_cc_stdc=no
3671 if test x$ac_prog_cc_stdc = xno
3672 then :
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3674 printf %s "checking for $CC option to enable C11 features... " >&6; }
3675 if test ${ac_cv_prog_cc_c11+y}
3676 then :
3677 printf %s "(cached) " >&6
3678 else case e in #(
3679 e) ac_cv_prog_cc_c11=no
3680 ac_save_CC=$CC
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 $ac_c_conftest_c11_program
3684 _ACEOF
3685 for ac_arg in '' -std=gnu11
3686 do
3687 CC="$ac_save_CC $ac_arg"
3688 if ac_fn_c_try_compile "$LINENO"
3689 then :
3690 ac_cv_prog_cc_c11=$ac_arg
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.beam
3693 test "x$ac_cv_prog_cc_c11" != "xno" && break
3694 done
3695 rm -f conftest.$ac_ext
3696 CC=$ac_save_CC ;;
3697 esac
3698 fi
3699
3700 if test "x$ac_cv_prog_cc_c11" = xno
3701 then :
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703 printf "%s\n" "unsupported" >&6; }
3704 else case e in #(
3705 e) if test "x$ac_cv_prog_cc_c11" = x
3706 then :
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708 printf "%s\n" "none needed" >&6; }
3709 else case e in #(
3710 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3711 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3712 CC="$CC $ac_cv_prog_cc_c11" ;;
3713 esac
3714 fi
3715 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3716 ac_prog_cc_stdc=c11 ;;
3717 esac
3718 fi
3719 fi
3720 if test x$ac_prog_cc_stdc = xno
3721 then :
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3723 printf %s "checking for $CC option to enable C99 features... " >&6; }
3724 if test ${ac_cv_prog_cc_c99+y}
3725 then :
3726 printf %s "(cached) " >&6
3727 else case e in #(
3728 e) ac_cv_prog_cc_c99=no
3729 ac_save_CC=$CC
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732 $ac_c_conftest_c99_program
3733 _ACEOF
3734 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3735 do
3736 CC="$ac_save_CC $ac_arg"
3737 if ac_fn_c_try_compile "$LINENO"
3738 then :
3739 ac_cv_prog_cc_c99=$ac_arg
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.beam
3742 test "x$ac_cv_prog_cc_c99" != "xno" && break
3743 done
3744 rm -f conftest.$ac_ext
3745 CC=$ac_save_CC ;;
3746 esac
3747 fi
3748
3749 if test "x$ac_cv_prog_cc_c99" = xno
3750 then :
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3752 printf "%s\n" "unsupported" >&6; }
3753 else case e in #(
3754 e) if test "x$ac_cv_prog_cc_c99" = x
3755 then :
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757 printf "%s\n" "none needed" >&6; }
3758 else case e in #(
3759 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3760 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3761 CC="$CC $ac_cv_prog_cc_c99" ;;
3762 esac
3763 fi
3764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3765 ac_prog_cc_stdc=c99 ;;
3766 esac
3767 fi
3768 fi
3769 if test x$ac_prog_cc_stdc = xno
3770 then :
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3772 printf %s "checking for $CC option to enable C89 features... " >&6; }
3773 if test ${ac_cv_prog_cc_c89+y}
3774 then :
3775 printf %s "(cached) " >&6
3776 else case e in #(
3777 e) ac_cv_prog_cc_c89=no
3778 ac_save_CC=$CC
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 $ac_c_conftest_c89_program
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784 do
3785 CC="$ac_save_CC $ac_arg"
3786 if ac_fn_c_try_compile "$LINENO"
3787 then :
3788 ac_cv_prog_cc_c89=$ac_arg
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.beam
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC ;;
3795 esac
3796 fi
3797
3798 if test "x$ac_cv_prog_cc_c89" = xno
3799 then :
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 printf "%s\n" "unsupported" >&6; }
3802 else case e in #(
3803 e) if test "x$ac_cv_prog_cc_c89" = x
3804 then :
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3806 printf "%s\n" "none needed" >&6; }
3807 else case e in #(
3808 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3810 CC="$CC $ac_cv_prog_cc_c89" ;;
3811 esac
3812 fi
3813 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3814 ac_prog_cc_stdc=c89 ;;
3815 esac
3816 fi
3817 fi
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3832 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3833 if test ${am_cv_prog_cc_c_o+y}
3834 then :
3835 printf %s "(cached) " >&6
3836 else case e in #(
3837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main (void)
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 # Make sure it works both with $CC and with simple cc.
3849 # Following AC_PROG_CC_C_O, we do the test twice because some
3850 # compilers refuse to overwrite an existing .o file with -o,
3851 # though they will create one.
3852 am_cv_prog_cc_c_o=yes
3853 for am_i in 1 2; do
3854 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3855 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } \
3859 && test -f conftest2.$ac_objext; then
3860 : OK
3861 else
3862 am_cv_prog_cc_c_o=no
3863 break
3864 fi
3865 done
3866 rm -f core conftest*
3867 unset am_i ;;
3868 esac
3869 fi
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3871 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3872 if test "$am_cv_prog_cc_c_o" != yes; then
3873 # Losing compiler, so override with the script.
3874 # FIXME: It is wrong to rewrite CC.
3875 # But if we don't then we get into trouble of one sort or another.
3876 # A longer-term fix would be to have automake use am__CC in this case,
3877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3878 CC="$am_aux_dir/compile $CC"
3879 fi
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886
3887
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
3889 printf %s "checking whether the compiler is clang... " >&6; }
3890 if test ${gl_cv_compiler_clang+y}
3891 then :
3892 printf %s "(cached) " >&6
3893 else case e in #(
3894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 #ifdef __clang__
3898 barfbarf
3899 #endif
3900
3901 int
3902 main (void)
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908
3909 _ACEOF
3910 if ac_fn_c_try_compile "$LINENO"
3911 then :
3912 gl_cv_compiler_clang=no
3913 else case e in #(
3914 e) gl_cv_compiler_clang=yes ;;
3915 esac
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3918 ;;
3919 esac
3920 fi
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
3922 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
3923
3924
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
3926 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
3927 if test ${gl_cv_compiler_check_decl_option+y}
3928 then :
3929 printf %s "(cached) " >&6
3930 else case e in #(
3931 e) if test $gl_cv_compiler_clang = yes; then
3932 saved_ac_compile="$ac_compile"
3933 ac_compile="$ac_compile -Werror=implicit-function-declaration"
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936
3937 int
3938 main (void)
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"
3946 then :
3947 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
3948 else case e in #(
3949 e) gl_cv_compiler_check_decl_option=none ;;
3950 esac
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3953 ac_compile="$saved_ac_compile"
3954 else
3955 gl_cv_compiler_check_decl_option=none
3956 fi
3957 ;;
3958 esac
3959 fi
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
3961 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
3962 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
3963 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
3964 else
3965 ac_compile_for_check_decl="$ac_compile"
3966 fi
3967
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3975 printf %s "checking how to run the C preprocessor... " >&6; }
3976 # On Suns, sometimes $CPP names a directory.
3977 if test -n "$CPP" && test -d "$CPP"; then
3978 CPP=
3979 fi
3980 if test -z "$CPP"; then
3981 if test ${ac_cv_prog_CPP+y}
3982 then :
3983 printf %s "(cached) " >&6
3984 else case e in #(
3985 e) # Double quotes because $CC needs to be expanded
3986 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3987 do
3988 ac_preproc_ok=false
3989 for ac_c_preproc_warn_flag in '' yes
3990 do
3991 # Use a header file that comes with gcc, so configuring glibc
3992 # with a fresh cross-compiler works.
3993 # On the NeXT, cc -E runs the code through the compiler's parser,
3994 # not just through cpp. "Syntax error" is here to catch this case.
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <limits.h>
3998 Syntax error
3999 _ACEOF
4000 if ac_fn_c_try_cpp "$LINENO"
4001 then :
4002
4003 else case e in #(
4004 e) # Broken: fails on valid input.
4005 continue ;;
4006 esac
4007 fi
4008 rm -f conftest.err conftest.i conftest.$ac_ext
4009
4010 # OK, works on sane cases. Now check whether nonexistent headers
4011 # can be detected and how.
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014 #include <ac_nonexistent.h>
4015 _ACEOF
4016 if ac_fn_c_try_cpp "$LINENO"
4017 then :
4018 # Broken: success on invalid input.
4019 continue
4020 else case e in #(
4021 e) # Passes both tests.
4022 ac_preproc_ok=:
4023 break ;;
4024 esac
4025 fi
4026 rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 done
4029 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4030 rm -f conftest.i conftest.err conftest.$ac_ext
4031 if $ac_preproc_ok
4032 then :
4033 break
4034 fi
4035
4036 done
4037 ac_cv_prog_CPP=$CPP
4038 ;;
4039 esac
4040 fi
4041 CPP=$ac_cv_prog_CPP
4042 else
4043 ac_cv_prog_CPP=$CPP
4044 fi
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4046 printf "%s\n" "$CPP" >&6; }
4047 ac_preproc_ok=false
4048 for ac_c_preproc_warn_flag in '' yes
4049 do
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # On the NeXT, cc -E runs the code through the compiler's parser,
4053 # not just through cpp. "Syntax error" is here to catch this case.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <limits.h>
4057 Syntax error
4058 _ACEOF
4059 if ac_fn_c_try_cpp "$LINENO"
4060 then :
4061
4062 else case e in #(
4063 e) # Broken: fails on valid input.
4064 continue ;;
4065 esac
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 # OK, works on sane cases. Now check whether nonexistent headers
4070 # can be detected and how.
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <ac_nonexistent.h>
4074 _ACEOF
4075 if ac_fn_c_try_cpp "$LINENO"
4076 then :
4077 # Broken: success on invalid input.
4078 continue
4079 else case e in #(
4080 e) # Passes both tests.
4081 ac_preproc_ok=:
4082 break ;;
4083 esac
4084 fi
4085 rm -f conftest.err conftest.i conftest.$ac_ext
4086
4087 done
4088 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.i conftest.err conftest.$ac_ext
4090 if $ac_preproc_ok
4091 then :
4092
4093 else case e in #(
4094 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4095 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4096 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4097 See 'config.log' for more details" "$LINENO" 5; } ;;
4098 esac
4099 fi
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to make hard links" >&5
4109 printf %s "checking how to make hard links... " >&6; }
4110 if test ${cl_cv_prog_LN+y}
4111 then :
4112 printf %s "(cached) " >&6
4113 else case e in #(
4114 e) rm -f conftestdata conftestfile
4115 echo data > conftestfile
4116 if ln conftestfile conftestdata 2>/dev/null; then
4117 cl_cv_prog_LN=ln
4118 else
4119 cl_cv_prog_LN="cp -p"
4120 fi
4121 rm -f conftestdata conftestfile
4122 ;;
4123 esac
4124 fi
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN" >&5
4126 printf "%s\n" "$cl_cv_prog_LN" >&6; }
4127 LN="$cl_cv_prog_LN"
4128
4129
4130
4131
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4133 printf %s "checking whether ln -s works... " >&6; }
4134 if test ${cl_cv_prog_LN_S_works+y}
4135 then :
4136 printf %s "(cached) " >&6
4137 else case e in #(
4138 e) rm -f conftestdata
4139 if ln -s X conftestdata 2>/dev/null; then
4140 cl_cv_prog_LN_S_works=yes
4141 else
4142 cl_cv_prog_LN_S_works=no
4143 fi
4144 rm -f conftestdata
4145 ;;
4146 esac
4147 fi
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN_S_works" >&5
4149 printf "%s\n" "$cl_cv_prog_LN_S_works" >&6; }
4150 if test $cl_cv_prog_LN_S_works = yes; then
4151 LN_S="ln -s"
4152 else
4153 LN_S="$cl_cv_prog_LN"
4154 fi
4155
4156
4157
4158 ac_header= ac_cache=
4159 for ac_item in $ac_header_c_list
4160 do
4161 if test $ac_cache; then
4162 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4163 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4164 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4165 fi
4166 ac_header= ac_cache=
4167 elif test $ac_header; then
4168 ac_cache=$ac_item
4169 else
4170 ac_header=$ac_item
4171 fi
4172 done
4173
4174
4175
4176
4177
4178
4179
4180
4181 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4182 then :
4183
4184 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4185
4186 fi
4187
4188
4189
4190
4191
4192
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4194 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4195 if test ${ac_cv_safe_to_define___extensions__+y}
4196 then :
4197 printf %s "(cached) " >&6
4198 else case e in #(
4199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201
4202 # define __EXTENSIONS__ 1
4203 $ac_includes_default
4204 int
4205 main (void)
4206 {
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_cv_safe_to_define___extensions__=yes
4215 else case e in #(
4216 e) ac_cv_safe_to_define___extensions__=no ;;
4217 esac
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4220 esac
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4223 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4224
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4226 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4227 if test ${ac_cv_should_define__xopen_source+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else case e in #(
4231 e) ac_cv_should_define__xopen_source=no
4232 if test $ac_cv_header_wchar_h = yes
4233 then :
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236
4237 #include <wchar.h>
4238 mbstate_t x;
4239 int
4240 main (void)
4241 {
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"
4248 then :
4249
4250 else case e in #(
4251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253
4254 #define _XOPEN_SOURCE 500
4255 #include <wchar.h>
4256 mbstate_t x;
4257 int
4258 main (void)
4259 {
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_c_try_compile "$LINENO"
4266 then :
4267 ac_cv_should_define__xopen_source=yes
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4270 esac
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4273 fi ;;
4274 esac
4275 fi
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4277 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4278
4279 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4280
4281 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4282
4283 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4284
4285 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4286
4287 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4288
4289 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4290
4291 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4292
4293 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4294
4295 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4296
4297 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4298
4299 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4300
4301 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4302
4303 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4304
4305 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4306
4307 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4308
4309 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4310
4311 if test $ac_cv_header_minix_config_h = yes
4312 then :
4313 MINIX=yes
4314 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4315
4316 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4317
4318 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4319
4320 else case e in #(
4321 e) MINIX= ;;
4322 esac
4323 fi
4324 if test $ac_cv_safe_to_define___extensions__ = yes
4325 then :
4326 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4327
4328 fi
4329 if test $ac_cv_should_define__xopen_source = yes
4330 then :
4331 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4332
4333 fi
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Headers, Variables & Functions)${term_norm}" >&5
4346 printf "%s\n" "$as_me: ${term_bold}** Readline (Headers, Variables & Functions)${term_norm}" >&6;}
4347
4348
4349 termcap_prefix=""
4350
4351 # Check whether --with-libtermcap-prefix was given.
4352 if test ${with_libtermcap_prefix+y}
4353 then :
4354 withval=$with_libtermcap_prefix; case "$withval" in
4355 /*) termcap_prefix=$withval; ;;
4356 esac
4357
4358 fi
4359
4360 if test x$termcap_prefix != x; then
4361 LDFLAGS_save=$LDFLAGS
4362 LDFLAGS=$LDFLAGS" -L$termcap_prefix/lib"
4363 fi
4364 LIBTERMCAP="broken"
4365 INCTERMCAP=""
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
4367 printf %s "checking for library containing tgetent... " >&6; }
4368 if test ${ac_cv_search_tgetent+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else case e in #(
4372 e) ac_func_search_save_LIBS=$LIBS
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375
4376 /* Override any GCC internal prototype to avoid an error.
4377 Use char because int might match the return type of a GCC
4378 builtin and then its argument prototype would still apply.
4379 The 'extern "C"' is for builds by C++ compilers;
4380 although this is not generally supported in C code supporting it here
4381 has little cost and some practical benefit (sr 110532). */
4382 #ifdef __cplusplus
4383 extern "C"
4384 #endif
4385 char tgetent (void);
4386 int
4387 main (void)
4388 {
4389 return tgetent ();
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 for ac_lib in '' ncurses termcap tinfo
4395 do
4396 if test -z "$ac_lib"; then
4397 ac_res="none required"
4398 else
4399 ac_res=-l$ac_lib
4400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4401 fi
4402 if ac_fn_c_try_link "$LINENO"
4403 then :
4404 ac_cv_search_tgetent=$ac_res
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4407 conftest$ac_exeext
4408 if test ${ac_cv_search_tgetent+y}
4409 then :
4410 break
4411 fi
4412 done
4413 if test ${ac_cv_search_tgetent+y}
4414 then :
4415
4416 else case e in #(
4417 e) ac_cv_search_tgetent=no ;;
4418 esac
4419 fi
4420 rm conftest.$ac_ext
4421 LIBS=$ac_func_search_save_LIBS ;;
4422 esac
4423 fi
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
4425 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
4426 ac_res=$ac_cv_search_tgetent
4427 if test "$ac_res" != no
4428 then :
4429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4430 LIBTERMCAP=""
4431 fi
4432
4433 if test x$termcap_prefix != x; then
4434 LDFLAGS=$LDFLAGS_save
4435 if test x$LIBTERMCAP != xbroken; then
4436 INCTERMCAP=-I$termcap_prefix/include
4437 LIBTERMCAP=-L$termcap_prefix/lib
4438 fi
4439 fi
4440
4441
4442
4443
4444 if test "X$prefix" = "XNONE"; then
4445 acl_final_prefix="$ac_default_prefix"
4446 else
4447 acl_final_prefix="$prefix"
4448 fi
4449 if test "X$exec_prefix" = "XNONE"; then
4450 acl_final_exec_prefix='${prefix}'
4451 else
4452 acl_final_exec_prefix="$exec_prefix"
4453 fi
4454 acl_saved_prefix="$prefix"
4455 prefix="$acl_final_prefix"
4456 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4457 prefix="$acl_saved_prefix"
4458
4459
4460
4461 # Make sure we can run config.sub.
4462 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4463 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4464
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4466 printf %s "checking build system type... " >&6; }
4467 if test ${ac_cv_build+y}
4468 then :
4469 printf %s "(cached) " >&6
4470 else case e in #(
4471 e) ac_build_alias=$build_alias
4472 test "x$ac_build_alias" = x &&
4473 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4474 test "x$ac_build_alias" = x &&
4475 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4477 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4478 ;;
4479 esac
4480 fi
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4482 printf "%s\n" "$ac_cv_build" >&6; }
4483 case $ac_cv_build in
4484 *-*-*) ;;
4485 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4486 esac
4487 build=$ac_cv_build
4488 ac_save_IFS=$IFS; IFS='-'
4489 set x $ac_cv_build
4490 shift
4491 build_cpu=$1
4492 build_vendor=$2
4493 shift; shift
4494 # Remember, the first character of IFS is used to create $*,
4495 # except with old shells:
4496 build_os=$*
4497 IFS=$ac_save_IFS
4498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4499
4500
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4502 printf %s "checking host system type... " >&6; }
4503 if test ${ac_cv_host+y}
4504 then :
4505 printf %s "(cached) " >&6
4506 else case e in #(
4507 e) if test "x$host_alias" = x; then
4508 ac_cv_host=$ac_cv_build
4509 else
4510 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4511 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4512 fi
4513 ;;
4514 esac
4515 fi
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4517 printf "%s\n" "$ac_cv_host" >&6; }
4518 case $ac_cv_host in
4519 *-*-*) ;;
4520 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4521 esac
4522 host=$ac_cv_host
4523 ac_save_IFS=$IFS; IFS='-'
4524 set x $ac_cv_host
4525 shift
4526 host_cpu=$1
4527 host_vendor=$2
4528 shift; shift
4529 # Remember, the first character of IFS is used to create $*,
4530 # except with old shells:
4531 host_os=$*
4532 IFS=$ac_save_IFS
4533 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4534
4535
4536
4537
4538 # Check whether --with-gnu-ld was given.
4539 if test ${with_gnu_ld+y}
4540 then :
4541 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4542 else case e in #(
4543 e) with_gnu_ld=no ;;
4544 esac
4545 fi
4546
4547 # Prepare PATH_SEPARATOR.
4548 # The user is always right.
4549 if test "${PATH_SEPARATOR+set}" != set; then
4550 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4551 # contains only /bin. Note that ksh looks also at the FPATH variable,
4552 # so we have to set that as well for the test.
4553 PATH_SEPARATOR=:
4554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4555 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4556 || PATH_SEPARATOR=';'
4557 }
4558 fi
4559
4560 if test -n "$LD"; then
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
4562 printf %s "checking for ld... " >&6; }
4563 elif test "$GCC" = yes; then
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4565 printf %s "checking for ld used by $CC... " >&6; }
4566 elif test "$with_gnu_ld" = yes; then
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4568 printf %s "checking for GNU ld... " >&6; }
4569 else
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4571 printf %s "checking for non-GNU ld... " >&6; }
4572 fi
4573 if test -n "$LD"; then
4574 # Let the user override the test with a path.
4575 :
4576 else
4577 if test ${acl_cv_path_LD+y}
4578 then :
4579 printf %s "(cached) " >&6
4580 else case e in #(
4581 e)
4582 acl_cv_path_LD= # Final result of this test
4583 ac_prog=ld # Program to search in $PATH
4584 if test "$GCC" = yes; then
4585 # Check if gcc -print-prog-name=ld gives a path.
4586 case $host in
4587 *-*-mingw* | windows*)
4588 # gcc leaves a trailing carriage return which upsets mingw
4589 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4590 *)
4591 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
4592 esac
4593 case $acl_output in
4594 # Accept absolute paths.
4595 [\\/]* | ?:[\\/]*)
4596 re_direlt='/[^/][^/]*/\.\./'
4597 # Canonicalize the pathname of ld
4598 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
4599 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
4600 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
4601 done
4602 # Got the pathname. No search in PATH is needed.
4603 acl_cv_path_LD="$acl_output"
4604 ac_prog=
4605 ;;
4606 "")
4607 # If it fails, then pretend we aren't using GCC.
4608 ;;
4609 *)
4610 # If it is relative, then search for the first ld in PATH.
4611 with_gnu_ld=unknown
4612 ;;
4613 esac
4614 fi
4615 if test -n "$ac_prog"; then
4616 # Search for $ac_prog in $PATH.
4617 acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
4618 for ac_dir in $PATH; do
4619 IFS="$acl_saved_IFS"
4620 test -z "$ac_dir" && ac_dir=.
4621 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4622 acl_cv_path_LD="$ac_dir/$ac_prog"
4623 # Check to see if the program is GNU ld. I'd rather use --version,
4624 # but apparently some variants of GNU ld only accept -v.
4625 # Break only if it was the GNU/non-GNU ld that we prefer.
4626 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4627 *GNU* | *'with BFD'*)
4628 test "$with_gnu_ld" != no && break
4629 ;;
4630 *)
4631 test "$with_gnu_ld" != yes && break
4632 ;;
4633 esac
4634 fi
4635 done
4636 IFS="$acl_saved_IFS"
4637 fi
4638 case $host in
4639 *-*-aix*)
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #if defined __powerpc64__ || defined __LP64__
4643 int ok;
4644 #else
4645 error fail
4646 #endif
4647
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"
4650 then :
4651 # The compiler produces 64-bit code. Add option '-b64' so that the
4652 # linker groks 64-bit object files.
4653 case "$acl_cv_path_LD " in
4654 *" -b64 "*) ;;
4655 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
4656 esac
4657
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4660 ;;
4661 sparc64-*-netbsd*)
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 #if defined __sparcv9 || defined __arch64__
4665 int ok;
4666 #else
4667 error fail
4668 #endif
4669
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673
4674 else case e in #(
4675 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
4676 # so that the linker groks 32-bit object files.
4677 case "$acl_cv_path_LD " in
4678 *" -m elf32_sparc "*) ;;
4679 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
4680 esac
4681 ;;
4682 esac
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 ;;
4686 esac
4687 ;;
4688 esac
4689 fi
4690
4691 LD="$acl_cv_path_LD"
4692 fi
4693 if test -n "$LD"; then
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4695 printf "%s\n" "$LD" >&6; }
4696 else
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 printf "%s\n" "no" >&6; }
4699 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4700 fi
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4702 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4703 if test ${acl_cv_prog_gnu_ld+y}
4704 then :
4705 printf %s "(cached) " >&6
4706 else case e in #(
4707 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
4708 case `$LD -v 2>&1 </dev/null` in
4709 *GNU* | *'with BFD'*)
4710 acl_cv_prog_gnu_ld=yes
4711 ;;
4712 *)
4713 acl_cv_prog_gnu_ld=no
4714 ;;
4715 esac ;;
4716 esac
4717 fi
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4719 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
4720 with_gnu_ld=$acl_cv_prog_gnu_ld
4721
4722
4723
4724
4725
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4727 printf %s "checking for shared library run path origin... " >&6; }
4728 if test ${acl_cv_rpath+y}
4729 then :
4730 printf %s "(cached) " >&6
4731 else case e in #(
4732 e)
4733 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4734 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4735 . ./conftest.sh
4736 rm -f ./conftest.sh
4737 acl_cv_rpath=done
4738 ;;
4739 esac
4740 fi
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4742 printf "%s\n" "$acl_cv_rpath" >&6; }
4743 wl="$acl_cv_wl"
4744 acl_libext="$acl_cv_libext"
4745 acl_shlibext="$acl_cv_shlibext"
4746 acl_libname_spec="$acl_cv_libname_spec"
4747 acl_library_names_spec="$acl_cv_library_names_spec"
4748 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4749 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4750 acl_hardcode_direct="$acl_cv_hardcode_direct"
4751 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4752 # Check whether --enable-rpath was given.
4753 if test ${enable_rpath+y}
4754 then :
4755 enableval=$enable_rpath; :
4756 else case e in #(
4757 e) enable_rpath=yes ;;
4758 esac
4759 fi
4760
4761
4762
4763
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
4765 printf %s "checking 32-bit host C ABI... " >&6; }
4766 if test ${gl_cv_host_cpu_c_abi_32bit+y}
4767 then :
4768 printf %s "(cached) " >&6
4769 else case e in #(
4770 e) case "$host_cpu" in
4771
4772 # CPUs that only support a 32-bit ABI.
4773 arc \
4774 | bfin \
4775 | cris* \
4776 | csky \
4777 | epiphany \
4778 | ft32 \
4779 | h8300 \
4780 | m68k \
4781 | microblaze | microblazeel \
4782 | nds32 | nds32le | nds32be \
4783 | nios2 | nios2eb | nios2el \
4784 | or1k* \
4785 | or32 \
4786 | sh | sh1234 | sh1234elb \
4787 | tic6x \
4788 | xtensa* )
4789 gl_cv_host_cpu_c_abi_32bit=yes
4790 ;;
4791
4792 # CPUs that only support a 64-bit ABI.
4793 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
4794 | mmix )
4795 gl_cv_host_cpu_c_abi_32bit=no
4796 ;;
4797
4798 *)
4799 if test -n "$gl_cv_host_cpu_c_abi"; then
4800 case "$gl_cv_host_cpu_c_abi" in
4801 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
4802 gl_cv_host_cpu_c_abi_32bit=yes ;;
4803 x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
4804 gl_cv_host_cpu_c_abi_32bit=no ;;
4805 *)
4806 gl_cv_host_cpu_c_abi_32bit=unknown ;;
4807 esac
4808 else
4809 gl_cv_host_cpu_c_abi_32bit=unknown
4810 fi
4811 if test $gl_cv_host_cpu_c_abi_32bit = unknown; then
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 int test_pointer_size[sizeof (void *) - 5];
4815
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"
4818 then :
4819 gl_cv_host_cpu_c_abi_32bit=no
4820 else case e in #(
4821 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
4822 esac
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4825 fi
4826 ;;
4827 esac
4828 ;;
4829 esac
4830 fi
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
4832 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
4833
4834 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
4835
4836
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
4838 printf %s "checking for egrep -e... " >&6; }
4839 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
4840 then :
4841 printf %s "(cached) " >&6
4842 else case e in #(
4843 e) if test -z "$EGREP_TRADITIONAL"; then
4844 ac_path_EGREP_TRADITIONAL_found=false
4845 # Loop through the user's path and test for each of PROGNAME-LIST
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4848 do
4849 IFS=$as_save_IFS
4850 case $as_dir in #(((
4851 '') as_dir=./ ;;
4852 */) ;;
4853 *) as_dir=$as_dir/ ;;
4854 esac
4855 for ac_prog in grep ggrep
4856 do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
4859 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
4860 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
4861 # Check for GNU $ac_path_EGREP_TRADITIONAL
4862 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
4863 *GNU*)
4864 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
4865 #(
4866 *)
4867 ac_count=0
4868 printf %s 0123456789 >"conftest.in"
4869 while :
4870 do
4871 cat "conftest.in" "conftest.in" >"conftest.tmp"
4872 mv "conftest.tmp" "conftest.in"
4873 cp "conftest.in" "conftest.nl"
4874 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
4875 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4877 as_fn_arith $ac_count + 1 && ac_count=$as_val
4878 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
4879 # Best one so far, save it but keep looking for a better one
4880 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
4881 ac_path_EGREP_TRADITIONAL_max=$ac_count
4882 fi
4883 # 10*(2^10) chars as input seems more than enough
4884 test $ac_count -gt 10 && break
4885 done
4886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4887 esac
4888
4889 $ac_path_EGREP_TRADITIONAL_found && break 3
4890 done
4891 done
4892 done
4893 IFS=$as_save_IFS
4894 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4895 :
4896 fi
4897 else
4898 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4899 fi
4900
4901 if test "$ac_cv_path_EGREP_TRADITIONAL"
4902 then :
4903 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
4904 else case e in #(
4905 e) if test -z "$EGREP_TRADITIONAL"; then
4906 ac_path_EGREP_TRADITIONAL_found=false
4907 # Loop through the user's path and test for each of PROGNAME-LIST
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4910 do
4911 IFS=$as_save_IFS
4912 case $as_dir in #(((
4913 '') as_dir=./ ;;
4914 */) ;;
4915 *) as_dir=$as_dir/ ;;
4916 esac
4917 for ac_prog in egrep
4918 do
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
4921 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
4922 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
4923 # Check for GNU $ac_path_EGREP_TRADITIONAL
4924 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
4925 *GNU*)
4926 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
4927 #(
4928 *)
4929 ac_count=0
4930 printf %s 0123456789 >"conftest.in"
4931 while :
4932 do
4933 cat "conftest.in" "conftest.in" >"conftest.tmp"
4934 mv "conftest.tmp" "conftest.in"
4935 cp "conftest.in" "conftest.nl"
4936 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
4937 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939 as_fn_arith $ac_count + 1 && ac_count=$as_val
4940 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
4941 # Best one so far, save it but keep looking for a better one
4942 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
4943 ac_path_EGREP_TRADITIONAL_max=$ac_count
4944 fi
4945 # 10*(2^10) chars as input seems more than enough
4946 test $ac_count -gt 10 && break
4947 done
4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 esac
4950
4951 $ac_path_EGREP_TRADITIONAL_found && break 3
4952 done
4953 done
4954 done
4955 IFS=$as_save_IFS
4956 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4957 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4958 fi
4959 else
4960 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4961 fi
4962 ;;
4963 esac
4964 fi ;;
4965 esac
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
4968 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
4969 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
4970
4971
4972
4973
4974
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
4976 printf %s "checking for ELF binary format... " >&6; }
4977 if test ${gl_cv_elf+y}
4978 then :
4979 printf %s "(cached) " >&6
4980 else case e in #(
4981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 #if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
4984 Extensible Linking Format
4985 #endif
4986
4987 _ACEOF
4988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
4990 then :
4991 gl_cv_elf=yes
4992 else case e in #(
4993 e) gl_cv_elf=no ;;
4994 esac
4995 fi
4996 rm -rf conftest*
4997
4998 ;;
4999 esac
5000 fi
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
5002 printf "%s\n" "$gl_cv_elf" >&6; }
5003 if test $gl_cv_elf = yes; then
5004 # Extract the ELF class of a file (5th byte) in decimal.
5005 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
5006 if od -A x < /dev/null >/dev/null 2>/dev/null; then
5007 # Use POSIX od.
5008 func_elfclass ()
5009 {
5010 od -A n -t d1 -j 4 -N 1
5011 }
5012 else
5013 # Use BSD hexdump.
5014 func_elfclass ()
5015 {
5016 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
5017 echo
5018 }
5019 fi
5020 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
5021 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
5022 # not 1 or 2.
5023 case $HOST_CPU_C_ABI_32BIT in
5024 yes)
5025 # 32-bit ABI.
5026 acl_is_expected_elfclass ()
5027 {
5028 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
5029 }
5030 ;;
5031 no)
5032 # 64-bit ABI.
5033 acl_is_expected_elfclass ()
5034 {
5035 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
5036 }
5037 ;;
5038 *)
5039 # Unknown.
5040 acl_is_expected_elfclass ()
5041 {
5042 :
5043 }
5044 ;;
5045 esac
5046 else
5047 acl_is_expected_elfclass ()
5048 {
5049 :
5050 }
5051 fi
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
5054 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
5055 if test ${acl_cv_libdirstems+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else case e in #(
5059 e) acl_libdirstem=lib
5060 acl_libdirstem2=
5061 acl_libdirstem3=
5062 case "$host_os" in
5063 solaris*)
5064 if test $HOST_CPU_C_ABI_32BIT = no; then
5065 acl_libdirstem2=lib/64
5066 case "$host_cpu" in
5067 sparc*) acl_libdirstem3=lib/sparcv9 ;;
5068 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
5069 esac
5070 fi
5071 ;;
5072 netbsd*)
5073 if test $HOST_CPU_C_ABI_32BIT != no; then
5074 case "$host_cpu" in
5075 sparc*) acl_libdirstem2=lib/sparc ;;
5076 esac
5077 fi
5078 ;;
5079 *)
5080 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
5081 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5082 if test $HOST_CPU_C_ABI_32BIT != no; then
5083 # 32-bit or unknown ABI.
5084 if test -d /usr/lib32; then
5085 acl_libdirstem2=lib32
5086 fi
5087 fi
5088 if test $HOST_CPU_C_ABI_32BIT != yes; then
5089 # 64-bit or unknown ABI.
5090 if test -d /usr/lib64; then
5091 acl_libdirstem3=lib64
5092 fi
5093 fi
5094 if test -n "$searchpath"; then
5095 acl_saved_IFS="${IFS= }"; IFS=":"
5096 for searchdir in $searchpath; do
5097 if test -d "$searchdir"; then
5098 case "$searchdir" in
5099 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
5100 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
5101 */../ | */.. )
5102 # Better ignore directories of this form. They are misleading.
5103 ;;
5104 *) searchdir=`cd "$searchdir" && pwd`
5105 case "$searchdir" in
5106 */lib32 ) acl_libdirstem2=lib32 ;;
5107 */lib64 ) acl_libdirstem3=lib64 ;;
5108 esac ;;
5109 esac
5110 fi
5111 done
5112 IFS="$acl_saved_IFS"
5113 if test $HOST_CPU_C_ABI_32BIT = yes; then
5114 # 32-bit ABI.
5115 acl_libdirstem3=
5116 fi
5117 if test $HOST_CPU_C_ABI_32BIT = no; then
5118 # 64-bit ABI.
5119 acl_libdirstem2=
5120 fi
5121 fi
5122 ;;
5123 esac
5124 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5125 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
5126 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
5127 ;;
5128 esac
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
5131 printf "%s\n" "$acl_cv_libdirstems" >&6; }
5132 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
5133 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
5134 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
5135
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5137 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5138 if test ${ac_cv_c_undeclared_builtin_options+y}
5139 then :
5140 printf %s "(cached) " >&6
5141 else case e in #(
5142 e) ac_save_CFLAGS=$CFLAGS
5143 ac_cv_c_undeclared_builtin_options='cannot detect'
5144 for ac_arg in '' -fno-builtin; do
5145 CFLAGS="$ac_save_CFLAGS $ac_arg"
5146 # This test program should *not* compile successfully.
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149
5150 int
5151 main (void)
5152 {
5153 (void) strchr;
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"
5159 then :
5160
5161 else case e in #(
5162 e) # This test program should compile successfully.
5163 # No library function is consistently available on
5164 # freestanding implementations, so test against a dummy
5165 # declaration. Include always-available headers on the
5166 # off chance that they somehow elicit warnings.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #include <float.h>
5170 #include <limits.h>
5171 #include <stdarg.h>
5172 #include <stddef.h>
5173 extern void ac_decl (int, char *);
5174
5175 int
5176 main (void)
5177 {
5178 (void) ac_decl (0, (char *) 0);
5179 (void) ac_decl;
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"
5186 then :
5187 if test x"$ac_arg" = x
5188 then :
5189 ac_cv_c_undeclared_builtin_options='none needed'
5190 else case e in #(
5191 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5192 esac
5193 fi
5194 break
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5197 esac
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5200 done
5201 CFLAGS=$ac_save_CFLAGS
5202 ;;
5203 esac
5204 fi
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5206 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5207 case $ac_cv_c_undeclared_builtin_options in #(
5208 'cannot detect') :
5209 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5210 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5211 as_fn_error $? "cannot make $CC report undeclared builtins
5212 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5213 'none needed') :
5214 ac_c_undeclared_builtin_options='' ;; #(
5215 *) :
5216 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5217 esac
5218
5219
5220
5221 # Check whether --with-readline was given.
5222 if test ${with_readline+y}
5223 then :
5224 withval=$with_readline; ac_cv_use_readline=$withval
5225 else case e in #(
5226 e) ac_cv_use_readline=default ;;
5227 esac
5228 fi
5229
5230 if test "$ac_cv_use_readline" = no; then
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not checking for readline" >&5
5232 printf "%s\n" "$as_me: not checking for readline" >&6;}
5233 ac_cv_have_readline='no, per user request'
5234 else
5235
5236 if test $ac_cv_search_tgetent = no; then
5237 ac_cv_have_readline='no, consider installing GNU ncurses'
5238 else
5239
5240
5241
5242
5243
5244
5245
5246
5247 use_additional=yes
5248
5249 acl_saved_prefix="$prefix"
5250 prefix="$acl_final_prefix"
5251 acl_saved_exec_prefix="$exec_prefix"
5252 exec_prefix="$acl_final_exec_prefix"
5253
5254 eval additional_includedir=\"$includedir\"
5255 eval additional_libdir=\"$libdir\"
5256 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
5257 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
5258
5259 exec_prefix="$acl_saved_exec_prefix"
5260 prefix="$acl_saved_prefix"
5261
5262
5263 # Check whether --with-libreadline-prefix was given.
5264 if test ${with_libreadline_prefix+y}
5265 then :
5266 withval=$with_libreadline_prefix;
5267 if test "X$withval" = "Xno"; then
5268 use_additional=no
5269 else
5270 if test "X$withval" = "X"; then
5271
5272 acl_saved_prefix="$prefix"
5273 prefix="$acl_final_prefix"
5274 acl_saved_exec_prefix="$exec_prefix"
5275 exec_prefix="$acl_final_exec_prefix"
5276
5277 eval additional_includedir=\"$includedir\"
5278 eval additional_libdir=\"$libdir\"
5279 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
5280 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
5281
5282 exec_prefix="$acl_saved_exec_prefix"
5283 prefix="$acl_saved_prefix"
5284
5285 else
5286 additional_includedir="$withval/include"
5287 additional_libdir="$withval/$acl_libdirstem"
5288 additional_libdir2="$withval/$acl_libdirstem2"
5289 additional_libdir3="$withval/$acl_libdirstem3"
5290 fi
5291 fi
5292
5293 fi
5294
5295 if test "X$additional_libdir2" = "X$additional_libdir"; then
5296 additional_libdir2=
5297 fi
5298 if test "X$additional_libdir3" = "X$additional_libdir"; then
5299 additional_libdir3=
5300 fi
5301 LIBREADLINE=
5302 LTLIBREADLINE=
5303 INCREADLINE=
5304 LIBREADLINE_PREFIX=
5305 HAVE_LIBREADLINE=
5306 rpathdirs=
5307 ltrpathdirs=
5308 names_already_handled=
5309 names_next_round='readline '
5310 while test -n "$names_next_round"; do
5311 names_this_round="$names_next_round"
5312 names_next_round=
5313 for name in $names_this_round; do
5314 already_handled=
5315 for n in $names_already_handled; do
5316 if test "$n" = "$name"; then
5317 already_handled=yes
5318 break
5319 fi
5320 done
5321 if test -z "$already_handled"; then
5322 names_already_handled="$names_already_handled $name"
5323 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5324 eval value=\"\$HAVE_LIB$uppername\"
5325 if test -n "$value"; then
5326 if test "$value" = yes; then
5327 eval value=\"\$LIB$uppername\"
5328 test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
5329 eval value=\"\$LTLIB$uppername\"
5330 test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
5331 else
5332 :
5333 fi
5334 else
5335 found_dir=
5336 found_la=
5337 found_so=
5338 found_a=
5339 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5340 if test -n "$acl_shlibext"; then
5341 shrext=".$acl_shlibext" # typically: shrext=.so
5342 else
5343 shrext=
5344 fi
5345 if test $use_additional = yes; then
5346 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
5347 if test "X$found_dir" = "X"; then
5348 eval dir=\$$additional_libdir_variable
5349 if test -n "$dir"; then
5350 if test -n "$acl_shlibext"; then
5351 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
5352 found_dir="$dir"
5353 found_so="$dir/$libname$shrext"
5354 else
5355 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5356 ver=`(cd "$dir" && \
5357 for f in "$libname$shrext".*; do echo "$f"; done \
5358 | sed -e "s,^$libname$shrext\\\\.,," \
5359 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5360 | sed 1q ) 2>/dev/null`
5361 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
5362 found_dir="$dir"
5363 found_so="$dir/$libname$shrext.$ver"
5364 fi
5365 else
5366 eval library_names=\"$acl_library_names_spec\"
5367 for f in $library_names; do
5368 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
5369 found_dir="$dir"
5370 found_so="$dir/$f"
5371 break
5372 fi
5373 done
5374 fi
5375 fi
5376 fi
5377 if test "X$found_dir" = "X"; then
5378 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
5379 found_dir="$dir"
5380 found_a="$dir/$libname.$acl_libext"
5381 fi
5382 fi
5383 if test "X$found_dir" != "X"; then
5384 if test -f "$dir/$libname.la"; then
5385 found_la="$dir/$libname.la"
5386 fi
5387 fi
5388 fi
5389 fi
5390 done
5391 fi
5392 if test "X$found_dir" = "X"; then
5393 for x in $LDFLAGS $LTLIBREADLINE; do
5394
5395 acl_saved_prefix="$prefix"
5396 prefix="$acl_final_prefix"
5397 acl_saved_exec_prefix="$exec_prefix"
5398 exec_prefix="$acl_final_exec_prefix"
5399 eval x=\"$x\"
5400 exec_prefix="$acl_saved_exec_prefix"
5401 prefix="$acl_saved_prefix"
5402
5403 case "$x" in
5404 -L*)
5405 dir=`echo "X$x" | sed -e 's/^X-L//'`
5406 if test -n "$acl_shlibext"; then
5407 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
5408 found_dir="$dir"
5409 found_so="$dir/$libname$shrext"
5410 else
5411 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5412 ver=`(cd "$dir" && \
5413 for f in "$libname$shrext".*; do echo "$f"; done \
5414 | sed -e "s,^$libname$shrext\\\\.,," \
5415 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5416 | sed 1q ) 2>/dev/null`
5417 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
5418 found_dir="$dir"
5419 found_so="$dir/$libname$shrext.$ver"
5420 fi
5421 else
5422 eval library_names=\"$acl_library_names_spec\"
5423 for f in $library_names; do
5424 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
5425 found_dir="$dir"
5426 found_so="$dir/$f"
5427 break
5428 fi
5429 done
5430 fi
5431 fi
5432 fi
5433 if test "X$found_dir" = "X"; then
5434 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
5435 found_dir="$dir"
5436 found_a="$dir/$libname.$acl_libext"
5437 fi
5438 fi
5439 if test "X$found_dir" != "X"; then
5440 if test -f "$dir/$libname.la"; then
5441 found_la="$dir/$libname.la"
5442 fi
5443 fi
5444 ;;
5445 esac
5446 if test "X$found_dir" != "X"; then
5447 break
5448 fi
5449 done
5450 fi
5451 if test "X$found_dir" != "X"; then
5452 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
5453 if test "X$found_so" != "X"; then
5454 if test "$enable_rpath" = no \
5455 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5456 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
5457 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
5458 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
5459 else
5460 haveit=
5461 for x in $ltrpathdirs; do
5462 if test "X$x" = "X$found_dir"; then
5463 haveit=yes
5464 break
5465 fi
5466 done
5467 if test -z "$haveit"; then
5468 ltrpathdirs="$ltrpathdirs $found_dir"
5469 fi
5470 if test "$acl_hardcode_direct" = yes; then
5471 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
5472 else
5473 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5474 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
5475 haveit=
5476 for x in $rpathdirs; do
5477 if test "X$x" = "X$found_dir"; then
5478 haveit=yes
5479 break
5480 fi
5481 done
5482 if test -z "$haveit"; then
5483 rpathdirs="$rpathdirs $found_dir"
5484 fi
5485 else
5486 haveit=
5487 for x in $LDFLAGS $LIBREADLINE; do
5488
5489 acl_saved_prefix="$prefix"
5490 prefix="$acl_final_prefix"
5491 acl_saved_exec_prefix="$exec_prefix"
5492 exec_prefix="$acl_final_exec_prefix"
5493 eval x=\"$x\"
5494 exec_prefix="$acl_saved_exec_prefix"
5495 prefix="$acl_saved_prefix"
5496
5497 if test "X$x" = "X-L$found_dir"; then
5498 haveit=yes
5499 break
5500 fi
5501 done
5502 if test -z "$haveit"; then
5503 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
5504 fi
5505 if test "$acl_hardcode_minus_L" != no; then
5506 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
5507 else
5508 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
5509 fi
5510 fi
5511 fi
5512 fi
5513 else
5514 if test "X$found_a" != "X"; then
5515 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
5516 else
5517 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
5518 fi
5519 fi
5520 additional_includedir=
5521 case "$found_dir" in
5522 */$acl_libdirstem | */$acl_libdirstem/)
5523 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5524 if test "$name" = 'readline'; then
5525 LIBREADLINE_PREFIX="$basedir"
5526 fi
5527 additional_includedir="$basedir/include"
5528 ;;
5529 */$acl_libdirstem2 | */$acl_libdirstem2/)
5530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5531 if test "$name" = 'readline'; then
5532 LIBREADLINE_PREFIX="$basedir"
5533 fi
5534 additional_includedir="$basedir/include"
5535 ;;
5536 */$acl_libdirstem3 | */$acl_libdirstem3/)
5537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
5538 if test "$name" = 'readline'; then
5539 LIBREADLINE_PREFIX="$basedir"
5540 fi
5541 additional_includedir="$basedir/include"
5542 ;;
5543 esac
5544 if test "X$additional_includedir" != "X"; then
5545 if test "X$additional_includedir" != "X/usr/include"; then
5546 haveit=
5547 if test "X$additional_includedir" = "X/usr/local/include"; then
5548 if test -n "$GCC"; then
5549 case $host_os in
5550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5551 esac
5552 fi
5553 fi
5554 if test -z "$haveit"; then
5555 for x in $CPPFLAGS $INCREADLINE; do
5556
5557 acl_saved_prefix="$prefix"
5558 prefix="$acl_final_prefix"
5559 acl_saved_exec_prefix="$exec_prefix"
5560 exec_prefix="$acl_final_exec_prefix"
5561 eval x=\"$x\"
5562 exec_prefix="$acl_saved_exec_prefix"
5563 prefix="$acl_saved_prefix"
5564
5565 if test "X$x" = "X-I$additional_includedir"; then
5566 haveit=yes
5567 break
5568 fi
5569 done
5570 if test -z "$haveit"; then
5571 if test -d "$additional_includedir"; then
5572 INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
5573 fi
5574 fi
5575 fi
5576 fi
5577 fi
5578 if test -n "$found_la"; then
5579 saved_libdir="$libdir"
5580 case "$found_la" in
5581 */* | *\\*) . "$found_la" ;;
5582 *) . "./$found_la" ;;
5583 esac
5584 libdir="$saved_libdir"
5585 for dep in $dependency_libs; do
5586 case "$dep" in
5587 -L*)
5588 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5589 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
5590 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
5591 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
5592 haveit=
5593 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
5594 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
5595 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
5596 if test -n "$GCC"; then
5597 case $host_os in
5598 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5599 esac
5600 fi
5601 fi
5602 if test -z "$haveit"; then
5603 haveit=
5604 for x in $LDFLAGS $LIBREADLINE; do
5605
5606 acl_saved_prefix="$prefix"
5607 prefix="$acl_final_prefix"
5608 acl_saved_exec_prefix="$exec_prefix"
5609 exec_prefix="$acl_final_exec_prefix"
5610 eval x=\"$x\"
5611 exec_prefix="$acl_saved_exec_prefix"
5612 prefix="$acl_saved_prefix"
5613
5614 if test "X$x" = "X-L$dependency_libdir"; then
5615 haveit=yes
5616 break
5617 fi
5618 done
5619 if test -z "$haveit"; then
5620 if test -d "$dependency_libdir"; then
5621 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$dependency_libdir"
5622 fi
5623 fi
5624 haveit=
5625 for x in $LDFLAGS $LTLIBREADLINE; do
5626
5627 acl_saved_prefix="$prefix"
5628 prefix="$acl_final_prefix"
5629 acl_saved_exec_prefix="$exec_prefix"
5630 exec_prefix="$acl_final_exec_prefix"
5631 eval x=\"$x\"
5632 exec_prefix="$acl_saved_exec_prefix"
5633 prefix="$acl_saved_prefix"
5634
5635 if test "X$x" = "X-L$dependency_libdir"; then
5636 haveit=yes
5637 break
5638 fi
5639 done
5640 if test -z "$haveit"; then
5641 if test -d "$dependency_libdir"; then
5642 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$dependency_libdir"
5643 fi
5644 fi
5645 fi
5646 fi
5647 ;;
5648 -R*)
5649 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5650 if test "$enable_rpath" != no; then
5651 haveit=
5652 for x in $rpathdirs; do
5653 if test "X$x" = "X$dir"; then
5654 haveit=yes
5655 break
5656 fi
5657 done
5658 if test -z "$haveit"; then
5659 rpathdirs="$rpathdirs $dir"
5660 fi
5661 haveit=
5662 for x in $ltrpathdirs; do
5663 if test "X$x" = "X$dir"; then
5664 haveit=yes
5665 break
5666 fi
5667 done
5668 if test -z "$haveit"; then
5669 ltrpathdirs="$ltrpathdirs $dir"
5670 fi
5671 fi
5672 ;;
5673 -l*)
5674 dep=`echo "X$dep" | sed -e 's/^X-l//'`
5675 if test "X$dep" != Xc \
5676 || case $host_os in
5677 linux* | gnu* | k*bsd*-gnu) false ;;
5678 *) true ;;
5679 esac; then
5680 names_next_round="$names_next_round $dep"
5681 fi
5682 ;;
5683 *.la)
5684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5685 ;;
5686 *)
5687 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
5688 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
5689 ;;
5690 esac
5691 done
5692 fi
5693 else
5694 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
5695 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
5696 fi
5697 fi
5698 fi
5699 done
5700 done
5701 if test "X$rpathdirs" != "X"; then
5702 if test -n "$acl_hardcode_libdir_separator"; then
5703 alldirs=
5704 for found_dir in $rpathdirs; do
5705 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5706 done
5707 acl_saved_libdir="$libdir"
5708 libdir="$alldirs"
5709 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5710 libdir="$acl_saved_libdir"
5711 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
5712 else
5713 for found_dir in $rpathdirs; do
5714 acl_saved_libdir="$libdir"
5715 libdir="$found_dir"
5716 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5717 libdir="$acl_saved_libdir"
5718 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
5719 done
5720 fi
5721 fi
5722 if test "X$ltrpathdirs" != "X"; then
5723 for found_dir in $ltrpathdirs; do
5724 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
5725 done
5726 fi
5727
5728
5729
5730
5731
5732 ac_save_CPPFLAGS="$CPPFLAGS"
5733 CPPFLAGS="$CPPFLAGS $INCREADLINE"
5734 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
5735 if test "x$ac_cv_header_readline_readline_h" = xyes
5736 then :
5737 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
5738
5739 fi
5740
5741 if test "$ac_cv_header_readline_readline_h" != yes; then
5742 CPPFLAGS="$ac_save_CPPFLAGS"
5743 ac_cv_have_readline='no, consider installing GNU readline and its header files'
5744 else # have <readline/readline.h> => check library
5745 ac_save_LIBS="$LIBS"
5746 LIBS="$LIBREADLINE $LIBS"
5747 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
5748 if test "x$ac_cv_func_readline" = xyes
5749 then :
5750
5751 fi
5752 ac_fn_c_check_func "$LINENO" "rl_filename_completion_function" "ac_cv_func_rl_filename_completion_function"
5753 if test "x$ac_cv_func_rl_filename_completion_function" = xyes
5754 then :
5755 printf "%s\n" "#define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1" >>confdefs.h
5756
5757 fi
5758
5759 if test "$ac_cv_func_readline" != yes; then
5760 LIBS="$ac_save_LIBS"
5761 CPPFLAGS="$ac_save_CPPFLAGS"
5762 ac_cv_have_readline='no, consider installing GNU readline and its header files'
5763 else # have readline => check modern features
5764 if test $ac_cv_func_rl_filename_completion_function = no; then
5765 RL_FCF=filename_completion_function
5766 else
5767 RL_FCF=rl_filename_completion_function
5768 fi
5769
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for filename_completion_function declaration" >&5
5771 printf %s "checking for filename_completion_function declaration... " >&6; }
5772 if test ${cl_cv_proto_filename_completion_function+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else case e in #(
5776 e)
5777
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780
5781
5782 #include <stdio.h>
5783 #include <readline/readline.h>
5784
5785 extern
5786 #ifdef __cplusplus
5787 "C"
5788 #endif
5789
5790 char* ${RL_FCF} (char *, int);
5791
5792 int
5793 main (void)
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"
5801 then :
5802 cl_cv_proto_readline_const=""
5803 else case e in #(
5804 e) cl_cv_proto_readline_const="const" ;;
5805 esac
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5808
5809
5810
5811 cl_cv_proto_filename_completion_function="extern char* ${RL_FCF}($cl_cv_proto_readline_const char*, int);"
5812 ;;
5813 esac
5814 fi
5815
5816 cl_cv_proto_filename_completion_function=`echo "$cl_cv_proto_filename_completion_function" | tr -s ' ' | sed -e 's/( /(/'`
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_proto_filename_completion_function" >&5
5818 printf "%s\n" "$cl_cv_proto_filename_completion_function" >&6; }
5819
5820 ac_fn_check_decl "$LINENO" "rl_already_prompted" "ac_cv_have_decl_rl_already_prompted" "#include <stdio.h>
5821 #include <readline/readline.h>
5822
5823 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5824 if test "x$ac_cv_have_decl_rl_already_prompted" = xyes
5825 then :
5826 ac_have_decl=1
5827 else case e in #(
5828 e) ac_have_decl=0 ;;
5829 esac
5830 fi
5831 printf "%s\n" "#define HAVE_DECL_RL_ALREADY_PROMPTED $ac_have_decl" >>confdefs.h
5832 ac_fn_check_decl "$LINENO" "rl_readline_name" "ac_cv_have_decl_rl_readline_name" "#include <stdio.h>
5833 #include <readline/readline.h>
5834
5835 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5836 if test "x$ac_cv_have_decl_rl_readline_name" = xyes
5837 then :
5838 ac_have_decl=1
5839 else case e in #(
5840 e) ac_have_decl=0 ;;
5841 esac
5842 fi
5843 printf "%s\n" "#define HAVE_DECL_RL_READLINE_NAME $ac_have_decl" >>confdefs.h
5844 ac_fn_check_decl "$LINENO" "rl_gnu_readline_p" "ac_cv_have_decl_rl_gnu_readline_p" "#include <stdio.h>
5845 #include <readline/readline.h>
5846
5847 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5848 if test "x$ac_cv_have_decl_rl_gnu_readline_p" = xyes
5849 then :
5850 ac_have_decl=1
5851 else case e in #(
5852 e) ac_have_decl=0 ;;
5853 esac
5854 fi
5855 printf "%s\n" "#define HAVE_DECL_RL_GNU_READLINE_P $ac_have_decl" >>confdefs.h
5856 ac_fn_check_decl "$LINENO" "rl_deprep_term_function" "ac_cv_have_decl_rl_deprep_term_function" "#include <stdio.h>
5857 #include <readline/readline.h>
5858
5859 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5860 if test "x$ac_cv_have_decl_rl_deprep_term_function" = xyes
5861 then :
5862 ac_have_decl=1
5863 else case e in #(
5864 e) ac_have_decl=0 ;;
5865 esac
5866 fi
5867 printf "%s\n" "#define HAVE_DECL_RL_DEPREP_TERM_FUNCTION $ac_have_decl" >>confdefs.h
5868
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline 4.1 or newer" >&5
5870 printf %s "checking for readline 4.1 or newer... " >&6; }
5871 if test "$ac_cv_have_decl_rl_already_prompted" = yes \
5872 -a "$ac_cv_have_decl_rl_gnu_readline_p" = yes; then
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found GNU readline 4.1 or newer" >&5
5874 printf "%s\n" "found GNU readline 4.1 or newer" >&6; }
5875 ac_cv_have_readline=yes
5876 else
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: readline is too old and will not be used" >&5
5878 printf "%s\n" "readline is too old and will not be used" >&6; }
5879 LIBS="$ac_save_LIBS"
5880 CPPFLAGS="$ac_save_CPPFLAGS"
5881 ac_cv_have_readline='no, consider installing GNU readline 4.1 or newer'
5882 fi
5883 fi
5884 fi
5885 fi
5886 if test "$ac_cv_have_readline" = yes; then
5887
5888 printf "%s\n" "#define READLINE_FILE_COMPLETE ${RL_FCF}" >>confdefs.h
5889
5890
5891 printf "%s\n" "#define READLINE_CONST $cl_cv_proto_readline_const" >>confdefs.h
5892
5893
5894 printf "%s\n" "#define HAVE_READLINE /**/" >>confdefs.h
5895
5896 elif test "$ac_cv_use_readline" = yes; then
5897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5898 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5899 as_fn_error $? "despite --with-readline, GNU readline was not found (try --with-libreadline-prefix)
5900 See 'config.log' for more details" "$LINENO" 5; }
5901 fi
5902 fi
5903
5904 if test "$ac_cv_have_decl_rl_already_prompted" = "no"; then
5905 as_fn_error $? "cannot find a modern gnu readline" "$LINENO" 5
5906 fi
5907 ac_fn_check_decl "$LINENO" "rl_library_version" "ac_cv_have_decl_rl_library_version" "#include <stdio.h>
5908 #include <readline/readline.h>
5909 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5910 if test "x$ac_cv_have_decl_rl_library_version" = xyes
5911 then :
5912 ac_have_decl=1
5913 else case e in #(
5914 e) ac_have_decl=0 ;;
5915 esac
5916 fi
5917 printf "%s\n" "#define HAVE_DECL_RL_LIBRARY_VERSION $ac_have_decl" >>confdefs.h
5918 ac_fn_check_decl "$LINENO" "rl_readline_version" "ac_cv_have_decl_rl_readline_version" "#include <stdio.h>
5919 #include <readline/readline.h>
5920 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5921 if test "x$ac_cv_have_decl_rl_readline_version" = xyes
5922 then :
5923 ac_have_decl=1
5924 else case e in #(
5925 e) ac_have_decl=0 ;;
5926 esac
5927 fi
5928 printf "%s\n" "#define HAVE_DECL_RL_READLINE_VERSION $ac_have_decl" >>confdefs.h
5929 ac_fn_check_decl "$LINENO" "rl_editing_mode" "ac_cv_have_decl_rl_editing_mode" "#include <stdio.h>
5930 #include <readline/readline.h>
5931 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5932 if test "x$ac_cv_have_decl_rl_editing_mode" = xyes
5933 then :
5934 ac_have_decl=1
5935 else case e in #(
5936 e) ac_have_decl=0 ;;
5937 esac
5938 fi
5939 printf "%s\n" "#define HAVE_DECL_RL_EDITING_MODE $ac_have_decl" >>confdefs.h
5940 ac_fn_check_decl "$LINENO" "rl_insert_mode" "ac_cv_have_decl_rl_insert_mode" "#include <stdio.h>
5941 #include <readline/readline.h>
5942 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5943 if test "x$ac_cv_have_decl_rl_insert_mode" = xyes
5944 then :
5945 ac_have_decl=1
5946 else case e in #(
5947 e) ac_have_decl=0 ;;
5948 esac
5949 fi
5950 printf "%s\n" "#define HAVE_DECL_RL_INSERT_MODE $ac_have_decl" >>confdefs.h
5951 ac_fn_check_decl "$LINENO" "rl_readline_state" "ac_cv_have_decl_rl_readline_state" "#include <stdio.h>
5952 #include <readline/readline.h>
5953 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5954 if test "x$ac_cv_have_decl_rl_readline_state" = xyes
5955 then :
5956 ac_have_decl=1
5957 else case e in #(
5958 e) ac_have_decl=0 ;;
5959 esac
5960 fi
5961 printf "%s\n" "#define HAVE_DECL_RL_READLINE_STATE $ac_have_decl" >>confdefs.h
5962 ac_fn_check_decl "$LINENO" "rl_line_buffer" "ac_cv_have_decl_rl_line_buffer" "#include <stdio.h>
5963 #include <readline/readline.h>
5964 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5965 if test "x$ac_cv_have_decl_rl_line_buffer" = xyes
5966 then :
5967 ac_have_decl=1
5968 else case e in #(
5969 e) ac_have_decl=0 ;;
5970 esac
5971 fi
5972 printf "%s\n" "#define HAVE_DECL_RL_LINE_BUFFER $ac_have_decl" >>confdefs.h
5973 ac_fn_check_decl "$LINENO" "rl_point" "ac_cv_have_decl_rl_point" "#include <stdio.h>
5974 #include <readline/readline.h>
5975 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5976 if test "x$ac_cv_have_decl_rl_point" = xyes
5977 then :
5978 ac_have_decl=1
5979 else case e in #(
5980 e) ac_have_decl=0 ;;
5981 esac
5982 fi
5983 printf "%s\n" "#define HAVE_DECL_RL_POINT $ac_have_decl" >>confdefs.h
5984 ac_fn_check_decl "$LINENO" "rl_end" "ac_cv_have_decl_rl_end" "#include <stdio.h>
5985 #include <readline/readline.h>
5986 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5987 if test "x$ac_cv_have_decl_rl_end" = xyes
5988 then :
5989 ac_have_decl=1
5990 else case e in #(
5991 e) ac_have_decl=0 ;;
5992 esac
5993 fi
5994 printf "%s\n" "#define HAVE_DECL_RL_END $ac_have_decl" >>confdefs.h
5995 ac_fn_check_decl "$LINENO" "rl_mark" "ac_cv_have_decl_rl_mark" "#include <stdio.h>
5996 #include <readline/readline.h>
5997 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5998 if test "x$ac_cv_have_decl_rl_mark" = xyes
5999 then :
6000 ac_have_decl=1
6001 else case e in #(
6002 e) ac_have_decl=0 ;;
6003 esac
6004 fi
6005 printf "%s\n" "#define HAVE_DECL_RL_MARK $ac_have_decl" >>confdefs.h
6006 ac_fn_check_decl "$LINENO" "rl_done" "ac_cv_have_decl_rl_done" "#include <stdio.h>
6007 #include <readline/readline.h>
6008 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6009 if test "x$ac_cv_have_decl_rl_done" = xyes
6010 then :
6011 ac_have_decl=1
6012 else case e in #(
6013 e) ac_have_decl=0 ;;
6014 esac
6015 fi
6016 printf "%s\n" "#define HAVE_DECL_RL_DONE $ac_have_decl" >>confdefs.h
6017 ac_fn_check_decl "$LINENO" "rl_num_chars_to_read" "ac_cv_have_decl_rl_num_chars_to_read" "#include <stdio.h>
6018 #include <readline/readline.h>
6019 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6020 if test "x$ac_cv_have_decl_rl_num_chars_to_read" = xyes
6021 then :
6022 ac_have_decl=1
6023 else case e in #(
6024 e) ac_have_decl=0 ;;
6025 esac
6026 fi
6027 printf "%s\n" "#define HAVE_DECL_RL_NUM_CHARS_TO_READ $ac_have_decl" >>confdefs.h
6028 ac_fn_check_decl "$LINENO" "rl_pending_input" "ac_cv_have_decl_rl_pending_input" "#include <stdio.h>
6029 #include <readline/readline.h>
6030 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6031 if test "x$ac_cv_have_decl_rl_pending_input" = xyes
6032 then :
6033 ac_have_decl=1
6034 else case e in #(
6035 e) ac_have_decl=0 ;;
6036 esac
6037 fi
6038 printf "%s\n" "#define HAVE_DECL_RL_PENDING_INPUT $ac_have_decl" >>confdefs.h
6039 ac_fn_check_decl "$LINENO" "rl_dispatching" "ac_cv_have_decl_rl_dispatching" "#include <stdio.h>
6040 #include <readline/readline.h>
6041 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6042 if test "x$ac_cv_have_decl_rl_dispatching" = xyes
6043 then :
6044 ac_have_decl=1
6045 else case e in #(
6046 e) ac_have_decl=0 ;;
6047 esac
6048 fi
6049 printf "%s\n" "#define HAVE_DECL_RL_DISPATCHING $ac_have_decl" >>confdefs.h
6050 ac_fn_check_decl "$LINENO" "rl_erase_empty_line" "ac_cv_have_decl_rl_erase_empty_line" "#include <stdio.h>
6051 #include <readline/readline.h>
6052 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6053 if test "x$ac_cv_have_decl_rl_erase_empty_line" = xyes
6054 then :
6055 ac_have_decl=1
6056 else case e in #(
6057 e) ac_have_decl=0 ;;
6058 esac
6059 fi
6060 printf "%s\n" "#define HAVE_DECL_RL_ERASE_EMPTY_LINE $ac_have_decl" >>confdefs.h
6061 ac_fn_check_decl "$LINENO" "rl_prompt" "ac_cv_have_decl_rl_prompt" "#include <stdio.h>
6062 #include <readline/readline.h>
6063 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6064 if test "x$ac_cv_have_decl_rl_prompt" = xyes
6065 then :
6066 ac_have_decl=1
6067 else case e in #(
6068 e) ac_have_decl=0 ;;
6069 esac
6070 fi
6071 printf "%s\n" "#define HAVE_DECL_RL_PROMPT $ac_have_decl" >>confdefs.h
6072 ac_fn_check_decl "$LINENO" "rl_terminal_name" "ac_cv_have_decl_rl_terminal_name" "#include <stdio.h>
6073 #include <readline/readline.h>
6074 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6075 if test "x$ac_cv_have_decl_rl_terminal_name" = xyes
6076 then :
6077 ac_have_decl=1
6078 else case e in #(
6079 e) ac_have_decl=0 ;;
6080 esac
6081 fi
6082 printf "%s\n" "#define HAVE_DECL_RL_TERMINAL_NAME $ac_have_decl" >>confdefs.h
6083 ac_fn_check_decl "$LINENO" "rl_display_prompt" "ac_cv_have_decl_rl_display_prompt" "#include <stdio.h>
6084 #include <readline/readline.h>
6085 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6086 if test "x$ac_cv_have_decl_rl_display_prompt" = xyes
6087 then :
6088 ac_have_decl=1
6089 else case e in #(
6090 e) ac_have_decl=0 ;;
6091 esac
6092 fi
6093 printf "%s\n" "#define HAVE_DECL_RL_DISPLAY_PROMPT $ac_have_decl" >>confdefs.h
6094 ac_fn_check_decl "$LINENO" "rl_instream" "ac_cv_have_decl_rl_instream" "#include <stdio.h>
6095 #include <readline/readline.h>
6096 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6097 if test "x$ac_cv_have_decl_rl_instream" = xyes
6098 then :
6099 ac_have_decl=1
6100 else case e in #(
6101 e) ac_have_decl=0 ;;
6102 esac
6103 fi
6104 printf "%s\n" "#define HAVE_DECL_RL_INSTREAM $ac_have_decl" >>confdefs.h
6105 ac_fn_check_decl "$LINENO" "rl_outstream" "ac_cv_have_decl_rl_outstream" "#include <stdio.h>
6106 #include <readline/readline.h>
6107 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6108 if test "x$ac_cv_have_decl_rl_outstream" = xyes
6109 then :
6110 ac_have_decl=1
6111 else case e in #(
6112 e) ac_have_decl=0 ;;
6113 esac
6114 fi
6115 printf "%s\n" "#define HAVE_DECL_RL_OUTSTREAM $ac_have_decl" >>confdefs.h
6116 ac_fn_check_decl "$LINENO" "rl_last_func" "ac_cv_have_decl_rl_last_func" "#include <stdio.h>
6117 #include <readline/readline.h>
6118 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6119 if test "x$ac_cv_have_decl_rl_last_func" = xyes
6120 then :
6121 ac_have_decl=1
6122 else case e in #(
6123 e) ac_have_decl=0 ;;
6124 esac
6125 fi
6126 printf "%s\n" "#define HAVE_DECL_RL_LAST_FUNC $ac_have_decl" >>confdefs.h
6127 ac_fn_check_decl "$LINENO" "rl_startup_hook" "ac_cv_have_decl_rl_startup_hook" "#include <stdio.h>
6128 #include <readline/readline.h>
6129 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6130 if test "x$ac_cv_have_decl_rl_startup_hook" = xyes
6131 then :
6132 ac_have_decl=1
6133 else case e in #(
6134 e) ac_have_decl=0 ;;
6135 esac
6136 fi
6137 printf "%s\n" "#define HAVE_DECL_RL_STARTUP_HOOK $ac_have_decl" >>confdefs.h
6138 ac_fn_check_decl "$LINENO" "rl_pre_input_hook" "ac_cv_have_decl_rl_pre_input_hook" "#include <stdio.h>
6139 #include <readline/readline.h>
6140 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6141 if test "x$ac_cv_have_decl_rl_pre_input_hook" = xyes
6142 then :
6143 ac_have_decl=1
6144 else case e in #(
6145 e) ac_have_decl=0 ;;
6146 esac
6147 fi
6148 printf "%s\n" "#define HAVE_DECL_RL_PRE_INPUT_HOOK $ac_have_decl" >>confdefs.h
6149 ac_fn_check_decl "$LINENO" "rl_prefer_env_winsize" "ac_cv_have_decl_rl_prefer_env_winsize" "#include <stdio.h>
6150 #include <readline/readline.h>
6151 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6152 if test "x$ac_cv_have_decl_rl_prefer_env_winsize" = xyes
6153 then :
6154 ac_have_decl=1
6155 else case e in #(
6156 e) ac_have_decl=0 ;;
6157 esac
6158 fi
6159 printf "%s\n" "#define HAVE_DECL_RL_PREFER_ENV_WINSIZE $ac_have_decl" >>confdefs.h
6160 ac_fn_check_decl "$LINENO" "rl_gnu_readline_p" "ac_cv_have_decl_rl_gnu_readline_p" "#include <stdio.h>
6161 #include <readline/readline.h>
6162 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6163 if test "x$ac_cv_have_decl_rl_gnu_readline_p" = xyes
6164 then :
6165 ac_have_decl=1
6166 else case e in #(
6167 e) ac_have_decl=0 ;;
6168 esac
6169 fi
6170 printf "%s\n" "#define HAVE_DECL_RL_GNU_READLINE_P $ac_have_decl" >>confdefs.h
6171 ac_fn_check_decl "$LINENO" "rl_readline_name" "ac_cv_have_decl_rl_readline_name" "#include <stdio.h>
6172 #include <readline/readline.h>
6173 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6174 if test "x$ac_cv_have_decl_rl_readline_name" = xyes
6175 then :
6176 ac_have_decl=1
6177 else case e in #(
6178 e) ac_have_decl=0 ;;
6179 esac
6180 fi
6181 printf "%s\n" "#define HAVE_DECL_RL_READLINE_NAME $ac_have_decl" >>confdefs.h
6182 ac_fn_check_decl "$LINENO" "rl_explicit_arg" "ac_cv_have_decl_rl_explicit_arg" "#include <stdio.h>
6183 #include <readline/readline.h>
6184 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6185 if test "x$ac_cv_have_decl_rl_explicit_arg" = xyes
6186 then :
6187 ac_have_decl=1
6188 else case e in #(
6189 e) ac_have_decl=0 ;;
6190 esac
6191 fi
6192 printf "%s\n" "#define HAVE_DECL_RL_EXPLICIT_ARG $ac_have_decl" >>confdefs.h
6193 ac_fn_check_decl "$LINENO" "rl_numeric_arg" "ac_cv_have_decl_rl_numeric_arg" "#include <stdio.h>
6194 #include <readline/readline.h>
6195 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6196 if test "x$ac_cv_have_decl_rl_numeric_arg" = xyes
6197 then :
6198 ac_have_decl=1
6199 else case e in #(
6200 e) ac_have_decl=0 ;;
6201 esac
6202 fi
6203 printf "%s\n" "#define HAVE_DECL_RL_NUMERIC_ARG $ac_have_decl" >>confdefs.h
6204 ac_fn_check_decl "$LINENO" "rl_executing_macro" "ac_cv_have_decl_rl_executing_macro" "#include <stdio.h>
6205 #include <readline/readline.h>
6206 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6207 if test "x$ac_cv_have_decl_rl_executing_macro" = xyes
6208 then :
6209 ac_have_decl=1
6210 else case e in #(
6211 e) ac_have_decl=0 ;;
6212 esac
6213 fi
6214 printf "%s\n" "#define HAVE_DECL_RL_EXECUTING_MACRO $ac_have_decl" >>confdefs.h
6215 ac_fn_check_decl "$LINENO" "rl_completion_type" "ac_cv_have_decl_rl_completion_type" "#include <stdio.h>
6216 #include <readline/readline.h>
6217 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6218 if test "x$ac_cv_have_decl_rl_completion_type" = xyes
6219 then :
6220 ac_have_decl=1
6221 else case e in #(
6222 e) ac_have_decl=0 ;;
6223 esac
6224 fi
6225 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_TYPE $ac_have_decl" >>confdefs.h
6226 ac_fn_check_decl "$LINENO" "rl_filename_quoting_desired" "ac_cv_have_decl_rl_filename_quoting_desired" "#include <stdio.h>
6227 #include <readline/readline.h>
6228 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6229 if test "x$ac_cv_have_decl_rl_filename_quoting_desired" = xyes
6230 then :
6231 ac_have_decl=1
6232 else case e in #(
6233 e) ac_have_decl=0 ;;
6234 esac
6235 fi
6236 printf "%s\n" "#define HAVE_DECL_RL_FILENAME_QUOTING_DESIRED $ac_have_decl" >>confdefs.h
6237 ac_fn_check_decl "$LINENO" "rl_attempted_completion_over" "ac_cv_have_decl_rl_attempted_completion_over" "#include <stdio.h>
6238 #include <readline/readline.h>
6239 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6240 if test "x$ac_cv_have_decl_rl_attempted_completion_over" = xyes
6241 then :
6242 ac_have_decl=1
6243 else case e in #(
6244 e) ac_have_decl=0 ;;
6245 esac
6246 fi
6247 printf "%s\n" "#define HAVE_DECL_RL_ATTEMPTED_COMPLETION_OVER $ac_have_decl" >>confdefs.h
6248 ac_fn_check_decl "$LINENO" "rl_completion_invoking_key" "ac_cv_have_decl_rl_completion_invoking_key" "#include <stdio.h>
6249 #include <readline/readline.h>
6250 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6251 if test "x$ac_cv_have_decl_rl_completion_invoking_key" = xyes
6252 then :
6253 ac_have_decl=1
6254 else case e in #(
6255 e) ac_have_decl=0 ;;
6256 esac
6257 fi
6258 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_INVOKING_KEY $ac_have_decl" >>confdefs.h
6259 ac_fn_check_decl "$LINENO" "rl_completion_query_items" "ac_cv_have_decl_rl_completion_query_items" "#include <stdio.h>
6260 #include <readline/readline.h>
6261 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6262 if test "x$ac_cv_have_decl_rl_completion_query_items" = xyes
6263 then :
6264 ac_have_decl=1
6265 else case e in #(
6266 e) ac_have_decl=0 ;;
6267 esac
6268 fi
6269 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_QUERY_ITEMS $ac_have_decl" >>confdefs.h
6270 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "#include <stdio.h>
6271 #include <readline/readline.h>
6272 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6273 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
6274 then :
6275 ac_have_decl=1
6276 else case e in #(
6277 e) ac_have_decl=0 ;;
6278 esac
6279 fi
6280 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_APPEND_CHARACTER $ac_have_decl" >>confdefs.h
6281 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "#include <stdio.h>
6282 #include <readline/readline.h>
6283 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6284 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
6285 then :
6286 ac_have_decl=1
6287 else case e in #(
6288 e) ac_have_decl=0 ;;
6289 esac
6290 fi
6291 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_SUPPRESS_APPEND $ac_have_decl" >>confdefs.h
6292 ac_fn_check_decl "$LINENO" "rl_completion_quote_character" "ac_cv_have_decl_rl_completion_quote_character" "#include <stdio.h>
6293 #include <readline/readline.h>
6294 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6295 if test "x$ac_cv_have_decl_rl_completion_quote_character" = xyes
6296 then :
6297 ac_have_decl=1
6298 else case e in #(
6299 e) ac_have_decl=0 ;;
6300 esac
6301 fi
6302 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_QUOTE_CHARACTER $ac_have_decl" >>confdefs.h
6303 ac_fn_check_decl "$LINENO" "rl_completion_found_quote" "ac_cv_have_decl_rl_completion_found_quote" "#include <stdio.h>
6304 #include <readline/readline.h>
6305 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6306 if test "x$ac_cv_have_decl_rl_completion_found_quote" = xyes
6307 then :
6308 ac_have_decl=1
6309 else case e in #(
6310 e) ac_have_decl=0 ;;
6311 esac
6312 fi
6313 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_FOUND_QUOTE $ac_have_decl" >>confdefs.h
6314 ac_fn_check_decl "$LINENO" "rl_completion_suppress_quote" "ac_cv_have_decl_rl_completion_suppress_quote" "#include <stdio.h>
6315 #include <readline/readline.h>
6316 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6317 if test "x$ac_cv_have_decl_rl_completion_suppress_quote" = xyes
6318 then :
6319 ac_have_decl=1
6320 else case e in #(
6321 e) ac_have_decl=0 ;;
6322 esac
6323 fi
6324 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_SUPPRESS_QUOTE $ac_have_decl" >>confdefs.h
6325 ac_fn_check_decl "$LINENO" "rl_sort_completion_matches" "ac_cv_have_decl_rl_sort_completion_matches" "#include <stdio.h>
6326 #include <readline/readline.h>
6327 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6328 if test "x$ac_cv_have_decl_rl_sort_completion_matches" = xyes
6329 then :
6330 ac_have_decl=1
6331 else case e in #(
6332 e) ac_have_decl=0 ;;
6333 esac
6334 fi
6335 printf "%s\n" "#define HAVE_DECL_RL_SORT_COMPLETION_MATCHES $ac_have_decl" >>confdefs.h
6336 ac_fn_check_decl "$LINENO" "rl_completion_mark_symlink_dirs" "ac_cv_have_decl_rl_completion_mark_symlink_dirs" "#include <stdio.h>
6337 #include <readline/readline.h>
6338 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6339 if test "x$ac_cv_have_decl_rl_completion_mark_symlink_dirs" = xyes
6340 then :
6341 ac_have_decl=1
6342 else case e in #(
6343 e) ac_have_decl=0 ;;
6344 esac
6345 fi
6346 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_MARK_SYMLINK_DIRS $ac_have_decl" >>confdefs.h
6347 ac_fn_check_decl "$LINENO" "rl_ignore_completion_duplicates" "ac_cv_have_decl_rl_ignore_completion_duplicates" "#include <stdio.h>
6348 #include <readline/readline.h>
6349 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6350 if test "x$ac_cv_have_decl_rl_ignore_completion_duplicates" = xyes
6351 then :
6352 ac_have_decl=1
6353 else case e in #(
6354 e) ac_have_decl=0 ;;
6355 esac
6356 fi
6357 printf "%s\n" "#define HAVE_DECL_RL_IGNORE_COMPLETION_DUPLICATES $ac_have_decl" >>confdefs.h
6358 ac_fn_check_decl "$LINENO" "rl_inhibit_completion" "ac_cv_have_decl_rl_inhibit_completion" "#include <stdio.h>
6359 #include <readline/readline.h>
6360 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6361 if test "x$ac_cv_have_decl_rl_inhibit_completion" = xyes
6362 then :
6363 ac_have_decl=1
6364 else case e in #(
6365 e) ac_have_decl=0 ;;
6366 esac
6367 fi
6368 printf "%s\n" "#define HAVE_DECL_RL_INHIBIT_COMPLETION $ac_have_decl" >>confdefs.h
6369 ac_fn_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "#include <stdio.h>
6370 #include <readline/readline.h>
6371 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6372 if test "x$ac_cv_have_decl_rl_event_hook" = xyes
6373 then :
6374 ac_have_decl=1
6375 else case e in #(
6376 e) ac_have_decl=0 ;;
6377 esac
6378 fi
6379 printf "%s\n" "#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl" >>confdefs.h
6380 ac_fn_check_decl "$LINENO" "rl_getc_function" "ac_cv_have_decl_rl_getc_function" "#include <stdio.h>
6381 #include <readline/readline.h>
6382 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6383 if test "x$ac_cv_have_decl_rl_getc_function" = xyes
6384 then :
6385 ac_have_decl=1
6386 else case e in #(
6387 e) ac_have_decl=0 ;;
6388 esac
6389 fi
6390 printf "%s\n" "#define HAVE_DECL_RL_GETC_FUNCTION $ac_have_decl" >>confdefs.h
6391 ac_fn_check_decl "$LINENO" "rl_input_available_hook" "ac_cv_have_decl_rl_input_available_hook" "#include <stdio.h>
6392 #include <readline/readline.h>
6393 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6394 if test "x$ac_cv_have_decl_rl_input_available_hook" = xyes
6395 then :
6396 ac_have_decl=1
6397 else case e in #(
6398 e) ac_have_decl=0 ;;
6399 esac
6400 fi
6401 printf "%s\n" "#define HAVE_DECL_RL_INPUT_AVAILABLE_HOOK $ac_have_decl" >>confdefs.h
6402 ac_fn_check_decl "$LINENO" "rl_free_keymap" "ac_cv_have_decl_rl_free_keymap" "#include <stdio.h>
6403 #include <readline/readline.h>
6404 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6405 if test "x$ac_cv_have_decl_rl_free_keymap" = xyes
6406 then :
6407 ac_have_decl=1
6408 else case e in #(
6409 e) ac_have_decl=0 ;;
6410 esac
6411 fi
6412 printf "%s\n" "#define HAVE_DECL_RL_FREE_KEYMAP $ac_have_decl" >>confdefs.h
6413
6414 ac_fn_c_check_func "$LINENO" "rl_set_prompt" "ac_cv_func_rl_set_prompt"
6415 if test "x$ac_cv_func_rl_set_prompt" = xyes
6416 then :
6417 printf "%s\n" "#define HAVE_RL_SET_PROMPT 1" >>confdefs.h
6418
6419 fi
6420 ac_fn_c_check_func "$LINENO" "rl_initialize" "ac_cv_func_rl_initialize"
6421 if test "x$ac_cv_func_rl_initialize" = xyes
6422 then :
6423 printf "%s\n" "#define HAVE_RL_INITIALIZE 1" >>confdefs.h
6424
6425 fi
6426 ac_fn_c_check_func "$LINENO" "rl_read_init_file" "ac_cv_func_rl_read_init_file"
6427 if test "x$ac_cv_func_rl_read_init_file" = xyes
6428 then :
6429 printf "%s\n" "#define HAVE_RL_READ_INIT_FILE 1" >>confdefs.h
6430
6431 fi
6432 ac_fn_c_check_func "$LINENO" "rl_add_defun" "ac_cv_func_rl_add_defun"
6433 if test "x$ac_cv_func_rl_add_defun" = xyes
6434 then :
6435 printf "%s\n" "#define HAVE_RL_ADD_DEFUN 1" >>confdefs.h
6436
6437 fi
6438 ac_fn_c_check_func "$LINENO" "rl_make_bare_keymap" "ac_cv_func_rl_make_bare_keymap"
6439 if test "x$ac_cv_func_rl_make_bare_keymap" = xyes
6440 then :
6441 printf "%s\n" "#define HAVE_RL_MAKE_BARE_KEYMAP 1" >>confdefs.h
6442
6443 fi
6444 ac_fn_c_check_func "$LINENO" "rl_copy_keymap" "ac_cv_func_rl_copy_keymap"
6445 if test "x$ac_cv_func_rl_copy_keymap" = xyes
6446 then :
6447 printf "%s\n" "#define HAVE_RL_COPY_KEYMAP 1" >>confdefs.h
6448
6449 fi
6450 ac_fn_c_check_func "$LINENO" "rl_make_keymap" "ac_cv_func_rl_make_keymap"
6451 if test "x$ac_cv_func_rl_make_keymap" = xyes
6452 then :
6453 printf "%s\n" "#define HAVE_RL_MAKE_KEYMAP 1" >>confdefs.h
6454
6455 fi
6456 ac_fn_c_check_func "$LINENO" "rl_discard_keymap" "ac_cv_func_rl_discard_keymap"
6457 if test "x$ac_cv_func_rl_discard_keymap" = xyes
6458 then :
6459 printf "%s\n" "#define HAVE_RL_DISCARD_KEYMAP 1" >>confdefs.h
6460
6461 fi
6462 ac_fn_c_check_func "$LINENO" "rl_get_keymap" "ac_cv_func_rl_get_keymap"
6463 if test "x$ac_cv_func_rl_get_keymap" = xyes
6464 then :
6465 printf "%s\n" "#define HAVE_RL_GET_KEYMAP 1" >>confdefs.h
6466
6467 fi
6468 ac_fn_c_check_func "$LINENO" "rl_set_keymap" "ac_cv_func_rl_set_keymap"
6469 if test "x$ac_cv_func_rl_set_keymap" = xyes
6470 then :
6471 printf "%s\n" "#define HAVE_RL_SET_KEYMAP 1" >>confdefs.h
6472
6473 fi
6474 ac_fn_c_check_func "$LINENO" "rl_get_keymap_by_name" "ac_cv_func_rl_get_keymap_by_name"
6475 if test "x$ac_cv_func_rl_get_keymap_by_name" = xyes
6476 then :
6477 printf "%s\n" "#define HAVE_RL_GET_KEYMAP_BY_NAME 1" >>confdefs.h
6478
6479 fi
6480 ac_fn_c_check_func "$LINENO" "rl_bind_key" "ac_cv_func_rl_bind_key"
6481 if test "x$ac_cv_func_rl_bind_key" = xyes
6482 then :
6483 printf "%s\n" "#define HAVE_RL_BIND_KEY 1" >>confdefs.h
6484
6485 fi
6486 ac_fn_c_check_func "$LINENO" "rl_bind_key_in_map" "ac_cv_func_rl_bind_key_in_map"
6487 if test "x$ac_cv_func_rl_bind_key_in_map" = xyes
6488 then :
6489 printf "%s\n" "#define HAVE_RL_BIND_KEY_IN_MAP 1" >>confdefs.h
6490
6491 fi
6492 ac_fn_c_check_func "$LINENO" "rl_bind_key_if_unbound" "ac_cv_func_rl_bind_key_if_unbound"
6493 if test "x$ac_cv_func_rl_bind_key_if_unbound" = xyes
6494 then :
6495 printf "%s\n" "#define HAVE_RL_BIND_KEY_IF_UNBOUND 1" >>confdefs.h
6496
6497 fi
6498 ac_fn_c_check_func "$LINENO" "rl_bind_key_if_unbound_in_map" "ac_cv_func_rl_bind_key_if_unbound_in_map"
6499 if test "x$ac_cv_func_rl_bind_key_if_unbound_in_map" = xyes
6500 then :
6501 printf "%s\n" "#define HAVE_RL_BIND_KEY_IF_UNBOUND_IN_MAP 1" >>confdefs.h
6502
6503 fi
6504 ac_fn_c_check_func "$LINENO" "rl_unbind_key" "ac_cv_func_rl_unbind_key"
6505 if test "x$ac_cv_func_rl_unbind_key" = xyes
6506 then :
6507 printf "%s\n" "#define HAVE_RL_UNBIND_KEY 1" >>confdefs.h
6508
6509 fi
6510 ac_fn_c_check_func "$LINENO" "rl_unbind_key_in_map" "ac_cv_func_rl_unbind_key_in_map"
6511 if test "x$ac_cv_func_rl_unbind_key_in_map" = xyes
6512 then :
6513 printf "%s\n" "#define HAVE_RL_UNBIND_KEY_IN_MAP 1" >>confdefs.h
6514
6515 fi
6516 ac_fn_c_check_func "$LINENO" "rl_unbind_function_in_map" "ac_cv_func_rl_unbind_function_in_map"
6517 if test "x$ac_cv_func_rl_unbind_function_in_map" = xyes
6518 then :
6519 printf "%s\n" "#define HAVE_RL_UNBIND_FUNCTION_IN_MAP 1" >>confdefs.h
6520
6521 fi
6522 ac_fn_c_check_func "$LINENO" "rl_unbind_command_in_map" "ac_cv_func_rl_unbind_command_in_map"
6523 if test "x$ac_cv_func_rl_unbind_command_in_map" = xyes
6524 then :
6525 printf "%s\n" "#define HAVE_RL_UNBIND_COMMAND_IN_MAP 1" >>confdefs.h
6526
6527 fi
6528 ac_fn_c_check_func "$LINENO" "rl_bind_keyseq" "ac_cv_func_rl_bind_keyseq"
6529 if test "x$ac_cv_func_rl_bind_keyseq" = xyes
6530 then :
6531 printf "%s\n" "#define HAVE_RL_BIND_KEYSEQ 1" >>confdefs.h
6532
6533 fi
6534 ac_fn_c_check_func "$LINENO" "rl_bind_keyseq_in_map" "ac_cv_func_rl_bind_keyseq_in_map"
6535 if test "x$ac_cv_func_rl_bind_keyseq_in_map" = xyes
6536 then :
6537 printf "%s\n" "#define HAVE_RL_BIND_KEYSEQ_IN_MAP 1" >>confdefs.h
6538
6539 fi
6540 ac_fn_c_check_func "$LINENO" "rl_bind_keyseq_if_unbound" "ac_cv_func_rl_bind_keyseq_if_unbound"
6541 if test "x$ac_cv_func_rl_bind_keyseq_if_unbound" = xyes
6542 then :
6543 printf "%s\n" "#define HAVE_RL_BIND_KEYSEQ_IF_UNBOUND 1" >>confdefs.h
6544
6545 fi
6546 ac_fn_c_check_func "$LINENO" "rl_bind_keyseq_if_unbound_in_map" "ac_cv_func_rl_bind_keyseq_if_unbound_in_map"
6547 if test "x$ac_cv_func_rl_bind_keyseq_if_unbound_in_map" = xyes
6548 then :
6549 printf "%s\n" "#define HAVE_RL_BIND_KEYSEQ_IF_UNBOUND_IN_MAP 1" >>confdefs.h
6550
6551 fi
6552 ac_fn_c_check_func "$LINENO" "rl_generic_bind" "ac_cv_func_rl_generic_bind"
6553 if test "x$ac_cv_func_rl_generic_bind" = xyes
6554 then :
6555 printf "%s\n" "#define HAVE_RL_GENERIC_BIND 1" >>confdefs.h
6556
6557 fi
6558 ac_fn_c_check_func "$LINENO" "rl_parse_and_bind" "ac_cv_func_rl_parse_and_bind"
6559 if test "x$ac_cv_func_rl_parse_and_bind" = xyes
6560 then :
6561 printf "%s\n" "#define HAVE_RL_PARSE_AND_BIND 1" >>confdefs.h
6562
6563 fi
6564 ac_fn_c_check_func "$LINENO" "rl_named_function" "ac_cv_func_rl_named_function"
6565 if test "x$ac_cv_func_rl_named_function" = xyes
6566 then :
6567 printf "%s\n" "#define HAVE_RL_NAMED_FUNCTION 1" >>confdefs.h
6568
6569 fi
6570 ac_fn_c_check_func "$LINENO" "rl_function_of_keyseq" "ac_cv_func_rl_function_of_keyseq"
6571 if test "x$ac_cv_func_rl_function_of_keyseq" = xyes
6572 then :
6573 printf "%s\n" "#define HAVE_RL_FUNCTION_OF_KEYSEQ 1" >>confdefs.h
6574
6575 fi
6576 ac_fn_c_check_func "$LINENO" "rl_invoking_keyseqs" "ac_cv_func_rl_invoking_keyseqs"
6577 if test "x$ac_cv_func_rl_invoking_keyseqs" = xyes
6578 then :
6579 printf "%s\n" "#define HAVE_RL_INVOKING_KEYSEQS 1" >>confdefs.h
6580
6581 fi
6582 ac_fn_c_check_func "$LINENO" "rl_invoking_keyseqs_in_map" "ac_cv_func_rl_invoking_keyseqs_in_map"
6583 if test "x$ac_cv_func_rl_invoking_keyseqs_in_map" = xyes
6584 then :
6585 printf "%s\n" "#define HAVE_RL_INVOKING_KEYSEQS_IN_MAP 1" >>confdefs.h
6586
6587 fi
6588 ac_fn_c_check_func "$LINENO" "rl_function_dumper" "ac_cv_func_rl_function_dumper"
6589 if test "x$ac_cv_func_rl_function_dumper" = xyes
6590 then :
6591 printf "%s\n" "#define HAVE_RL_FUNCTION_DUMPER 1" >>confdefs.h
6592
6593 fi
6594 ac_fn_c_check_func "$LINENO" "rl_list_funmap_names" "ac_cv_func_rl_list_funmap_names"
6595 if test "x$ac_cv_func_rl_list_funmap_names" = xyes
6596 then :
6597 printf "%s\n" "#define HAVE_RL_LIST_FUNMAP_NAMES 1" >>confdefs.h
6598
6599 fi
6600 ac_fn_c_check_func "$LINENO" "rl_funmap_names" "ac_cv_func_rl_funmap_names"
6601 if test "x$ac_cv_func_rl_funmap_names" = xyes
6602 then :
6603 printf "%s\n" "#define HAVE_RL_FUNMAP_NAMES 1" >>confdefs.h
6604
6605 fi
6606 ac_fn_c_check_func "$LINENO" "rl_add_funmap_entry" "ac_cv_func_rl_add_funmap_entry"
6607 if test "x$ac_cv_func_rl_add_funmap_entry" = xyes
6608 then :
6609 printf "%s\n" "#define HAVE_RL_ADD_FUNMAP_ENTRY 1" >>confdefs.h
6610
6611 fi
6612 ac_fn_c_check_func "$LINENO" "rl_begin_undo_group" "ac_cv_func_rl_begin_undo_group"
6613 if test "x$ac_cv_func_rl_begin_undo_group" = xyes
6614 then :
6615 printf "%s\n" "#define HAVE_RL_BEGIN_UNDO_GROUP 1" >>confdefs.h
6616
6617 fi
6618 ac_fn_c_check_func "$LINENO" "rl_end_undo_group" "ac_cv_func_rl_end_undo_group"
6619 if test "x$ac_cv_func_rl_end_undo_group" = xyes
6620 then :
6621 printf "%s\n" "#define HAVE_RL_END_UNDO_GROUP 1" >>confdefs.h
6622
6623 fi
6624 ac_fn_c_check_func "$LINENO" "rl_add_undo" "ac_cv_func_rl_add_undo"
6625 if test "x$ac_cv_func_rl_add_undo" = xyes
6626 then :
6627 printf "%s\n" "#define HAVE_RL_ADD_UNDO 1" >>confdefs.h
6628
6629 fi
6630 ac_fn_c_check_func "$LINENO" "rl_free_undo_list" "ac_cv_func_rl_free_undo_list"
6631 if test "x$ac_cv_func_rl_free_undo_list" = xyes
6632 then :
6633 printf "%s\n" "#define HAVE_RL_FREE_UNDO_LIST 1" >>confdefs.h
6634
6635 fi
6636 ac_fn_c_check_func "$LINENO" "rl_do_undo" "ac_cv_func_rl_do_undo"
6637 if test "x$ac_cv_func_rl_do_undo" = xyes
6638 then :
6639 printf "%s\n" "#define HAVE_RL_DO_UNDO 1" >>confdefs.h
6640
6641 fi
6642 ac_fn_c_check_func "$LINENO" "rl_modifying" "ac_cv_func_rl_modifying"
6643 if test "x$ac_cv_func_rl_modifying" = xyes
6644 then :
6645 printf "%s\n" "#define HAVE_RL_MODIFYING 1" >>confdefs.h
6646
6647 fi
6648 ac_fn_c_check_func "$LINENO" "rl_redisplay" "ac_cv_func_rl_redisplay"
6649 if test "x$ac_cv_func_rl_redisplay" = xyes
6650 then :
6651 printf "%s\n" "#define HAVE_RL_REDISPLAY 1" >>confdefs.h
6652
6653 fi
6654 ac_fn_c_check_func "$LINENO" "rl_forced_update_display" "ac_cv_func_rl_forced_update_display"
6655 if test "x$ac_cv_func_rl_forced_update_display" = xyes
6656 then :
6657 printf "%s\n" "#define HAVE_RL_FORCED_UPDATE_DISPLAY 1" >>confdefs.h
6658
6659 fi
6660 ac_fn_c_check_func "$LINENO" "rl_on_new_line" "ac_cv_func_rl_on_new_line"
6661 if test "x$ac_cv_func_rl_on_new_line" = xyes
6662 then :
6663 printf "%s\n" "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
6664
6665 fi
6666 ac_fn_c_check_func "$LINENO" "rl_on_new_line_with_prompt" "ac_cv_func_rl_on_new_line_with_prompt"
6667 if test "x$ac_cv_func_rl_on_new_line_with_prompt" = xyes
6668 then :
6669 printf "%s\n" "#define HAVE_RL_ON_NEW_LINE_WITH_PROMPT 1" >>confdefs.h
6670
6671 fi
6672 ac_fn_c_check_func "$LINENO" "rl_clear_visible_line" "ac_cv_func_rl_clear_visible_line"
6673 if test "x$ac_cv_func_rl_clear_visible_line" = xyes
6674 then :
6675 printf "%s\n" "#define HAVE_RL_CLEAR_VISIBLE_LINE 1" >>confdefs.h
6676
6677 fi
6678 ac_fn_c_check_func "$LINENO" "rl_reset_line_state" "ac_cv_func_rl_reset_line_state"
6679 if test "x$ac_cv_func_rl_reset_line_state" = xyes
6680 then :
6681 printf "%s\n" "#define HAVE_RL_RESET_LINE_STATE 1" >>confdefs.h
6682
6683 fi
6684 ac_fn_c_check_func "$LINENO" "rl_crlf" "ac_cv_func_rl_crlf"
6685 if test "x$ac_cv_func_rl_crlf" = xyes
6686 then :
6687 printf "%s\n" "#define HAVE_RL_CRLF 1" >>confdefs.h
6688
6689 fi
6690 ac_fn_c_check_func "$LINENO" "rl_show_char" "ac_cv_func_rl_show_char"
6691 if test "x$ac_cv_func_rl_show_char" = xyes
6692 then :
6693 printf "%s\n" "#define HAVE_RL_SHOW_CHAR 1" >>confdefs.h
6694
6695 fi
6696 ac_fn_c_check_func "$LINENO" "rl_message" "ac_cv_func_rl_message"
6697 if test "x$ac_cv_func_rl_message" = xyes
6698 then :
6699 printf "%s\n" "#define HAVE_RL_MESSAGE 1" >>confdefs.h
6700
6701 fi
6702 ac_fn_c_check_func "$LINENO" "rl_clear_message" "ac_cv_func_rl_clear_message"
6703 if test "x$ac_cv_func_rl_clear_message" = xyes
6704 then :
6705 printf "%s\n" "#define HAVE_RL_CLEAR_MESSAGE 1" >>confdefs.h
6706
6707 fi
6708 ac_fn_c_check_func "$LINENO" "rl_save_prompt" "ac_cv_func_rl_save_prompt"
6709 if test "x$ac_cv_func_rl_save_prompt" = xyes
6710 then :
6711 printf "%s\n" "#define HAVE_RL_SAVE_PROMPT 1" >>confdefs.h
6712
6713 fi
6714 ac_fn_c_check_func "$LINENO" "rl_restore_prompt" "ac_cv_func_rl_restore_prompt"
6715 if test "x$ac_cv_func_rl_restore_prompt" = xyes
6716 then :
6717 printf "%s\n" "#define HAVE_RL_RESTORE_PROMPT 1" >>confdefs.h
6718
6719 fi
6720 ac_fn_c_check_func "$LINENO" "rl_expand_prompt" "ac_cv_func_rl_expand_prompt"
6721 if test "x$ac_cv_func_rl_expand_prompt" = xyes
6722 then :
6723 printf "%s\n" "#define HAVE_RL_EXPAND_PROMPT 1" >>confdefs.h
6724
6725 fi
6726 ac_fn_c_check_func "$LINENO" "rl_insert_text" "ac_cv_func_rl_insert_text"
6727 if test "x$ac_cv_func_rl_insert_text" = xyes
6728 then :
6729 printf "%s\n" "#define HAVE_RL_INSERT_TEXT 1" >>confdefs.h
6730
6731 fi
6732 ac_fn_c_check_func "$LINENO" "rl_delete_text" "ac_cv_func_rl_delete_text"
6733 if test "x$ac_cv_func_rl_delete_text" = xyes
6734 then :
6735 printf "%s\n" "#define HAVE_RL_DELETE_TEXT 1" >>confdefs.h
6736
6737 fi
6738 ac_fn_c_check_func "$LINENO" "rl_copy_text" "ac_cv_func_rl_copy_text"
6739 if test "x$ac_cv_func_rl_copy_text" = xyes
6740 then :
6741 printf "%s\n" "#define HAVE_RL_COPY_TEXT 1" >>confdefs.h
6742
6743 fi
6744 ac_fn_c_check_func "$LINENO" "rl_kill_text" "ac_cv_func_rl_kill_text"
6745 if test "x$ac_cv_func_rl_kill_text" = xyes
6746 then :
6747 printf "%s\n" "#define HAVE_RL_KILL_TEXT 1" >>confdefs.h
6748
6749 fi
6750 ac_fn_c_check_func "$LINENO" "rl_push_macro_input" "ac_cv_func_rl_push_macro_input"
6751 if test "x$ac_cv_func_rl_push_macro_input" = xyes
6752 then :
6753 printf "%s\n" "#define HAVE_RL_PUSH_MACRO_INPUT 1" >>confdefs.h
6754
6755 fi
6756 ac_fn_c_check_func "$LINENO" "rl_read_key" "ac_cv_func_rl_read_key"
6757 if test "x$ac_cv_func_rl_read_key" = xyes
6758 then :
6759 printf "%s\n" "#define HAVE_RL_READ_KEY 1" >>confdefs.h
6760
6761 fi
6762 ac_fn_c_check_func "$LINENO" "rl_getc" "ac_cv_func_rl_getc"
6763 if test "x$ac_cv_func_rl_getc" = xyes
6764 then :
6765 printf "%s\n" "#define HAVE_RL_GETC 1" >>confdefs.h
6766
6767 fi
6768 ac_fn_c_check_func "$LINENO" "rl_stuff_char" "ac_cv_func_rl_stuff_char"
6769 if test "x$ac_cv_func_rl_stuff_char" = xyes
6770 then :
6771 printf "%s\n" "#define HAVE_RL_STUFF_CHAR 1" >>confdefs.h
6772
6773 fi
6774 ac_fn_c_check_func "$LINENO" "rl_execute_next" "ac_cv_func_rl_execute_next"
6775 if test "x$ac_cv_func_rl_execute_next" = xyes
6776 then :
6777 printf "%s\n" "#define HAVE_RL_EXECUTE_NEXT 1" >>confdefs.h
6778
6779 fi
6780 ac_fn_c_check_func "$LINENO" "rl_clear_pending_input" "ac_cv_func_rl_clear_pending_input"
6781 if test "x$ac_cv_func_rl_clear_pending_input" = xyes
6782 then :
6783 printf "%s\n" "#define HAVE_RL_CLEAR_PENDING_INPUT 1" >>confdefs.h
6784
6785 fi
6786 ac_fn_c_check_func "$LINENO" "rl_set_keyboard_input_timeout" "ac_cv_func_rl_set_keyboard_input_timeout"
6787 if test "x$ac_cv_func_rl_set_keyboard_input_timeout" = xyes
6788 then :
6789 printf "%s\n" "#define HAVE_RL_SET_KEYBOARD_INPUT_TIMEOUT 1" >>confdefs.h
6790
6791 fi
6792 ac_fn_c_check_func "$LINENO" "rl_prep_terminal" "ac_cv_func_rl_prep_terminal"
6793 if test "x$ac_cv_func_rl_prep_terminal" = xyes
6794 then :
6795 printf "%s\n" "#define HAVE_RL_PREP_TERMINAL 1" >>confdefs.h
6796
6797 fi
6798 ac_fn_c_check_func "$LINENO" "rl_deprep_terminal" "ac_cv_func_rl_deprep_terminal"
6799 if test "x$ac_cv_func_rl_deprep_terminal" = xyes
6800 then :
6801 printf "%s\n" "#define HAVE_RL_DEPREP_TERMINAL 1" >>confdefs.h
6802
6803 fi
6804 ac_fn_c_check_func "$LINENO" "rl_tty_set_default_bindings" "ac_cv_func_rl_tty_set_default_bindings"
6805 if test "x$ac_cv_func_rl_tty_set_default_bindings" = xyes
6806 then :
6807 printf "%s\n" "#define HAVE_RL_TTY_SET_DEFAULT_BINDINGS 1" >>confdefs.h
6808
6809 fi
6810 ac_fn_c_check_func "$LINENO" "rl_reset_terminal" "ac_cv_func_rl_reset_terminal"
6811 if test "x$ac_cv_func_rl_reset_terminal" = xyes
6812 then :
6813 printf "%s\n" "#define HAVE_RL_RESET_TERMINAL 1" >>confdefs.h
6814
6815 fi
6816 ac_fn_c_check_func "$LINENO" "rl_replace_line" "ac_cv_func_rl_replace_line"
6817 if test "x$ac_cv_func_rl_replace_line" = xyes
6818 then :
6819 printf "%s\n" "#define HAVE_RL_REPLACE_LINE 1" >>confdefs.h
6820
6821 fi
6822 ac_fn_c_check_func "$LINENO" "rl_extend_line_buffer" "ac_cv_func_rl_extend_line_buffer"
6823 if test "x$ac_cv_func_rl_extend_line_buffer" = xyes
6824 then :
6825 printf "%s\n" "#define HAVE_RL_EXTEND_LINE_BUFFER 1" >>confdefs.h
6826
6827 fi
6828 ac_fn_c_check_func "$LINENO" "rl_ding" "ac_cv_func_rl_ding"
6829 if test "x$ac_cv_func_rl_ding" = xyes
6830 then :
6831 printf "%s\n" "#define HAVE_RL_DING 1" >>confdefs.h
6832
6833 fi
6834 ac_fn_c_check_func "$LINENO" "rl_alphabetic" "ac_cv_func_rl_alphabetic"
6835 if test "x$ac_cv_func_rl_alphabetic" = xyes
6836 then :
6837 printf "%s\n" "#define HAVE_RL_ALPHABETIC 1" >>confdefs.h
6838
6839 fi
6840 ac_fn_c_check_func "$LINENO" "rl_free" "ac_cv_func_rl_free"
6841 if test "x$ac_cv_func_rl_free" = xyes
6842 then :
6843 printf "%s\n" "#define HAVE_RL_FREE 1" >>confdefs.h
6844
6845 fi
6846 ac_fn_c_check_func "$LINENO" "rl_display_match_list" "ac_cv_func_rl_display_match_list"
6847 if test "x$ac_cv_func_rl_display_match_list" = xyes
6848 then :
6849 printf "%s\n" "#define HAVE_RL_DISPLAY_MATCH_LIST 1" >>confdefs.h
6850
6851 fi
6852 ac_fn_c_check_func "$LINENO" "rl_variable_value" "ac_cv_func_rl_variable_value"
6853 if test "x$ac_cv_func_rl_variable_value" = xyes
6854 then :
6855 printf "%s\n" "#define HAVE_RL_VARIABLE_VALUE 1" >>confdefs.h
6856
6857 fi
6858 ac_fn_c_check_func "$LINENO" "rl_variable_bind" "ac_cv_func_rl_variable_bind"
6859 if test "x$ac_cv_func_rl_variable_bind" = xyes
6860 then :
6861 printf "%s\n" "#define HAVE_RL_VARIABLE_BIND 1" >>confdefs.h
6862
6863 fi
6864 ac_fn_c_check_func "$LINENO" "rl_macro_dumper" "ac_cv_func_rl_macro_dumper"
6865 if test "x$ac_cv_func_rl_macro_dumper" = xyes
6866 then :
6867 printf "%s\n" "#define HAVE_RL_MACRO_DUMPER 1" >>confdefs.h
6868
6869 fi
6870 ac_fn_c_check_func "$LINENO" "rl_variable_dumper" "ac_cv_func_rl_variable_dumper"
6871 if test "x$ac_cv_func_rl_variable_dumper" = xyes
6872 then :
6873 printf "%s\n" "#define HAVE_RL_VARIABLE_DUMPER 1" >>confdefs.h
6874
6875 fi
6876 ac_fn_c_check_func "$LINENO" "rl_echo_signal_char" "ac_cv_func_rl_echo_signal_char"
6877 if test "x$ac_cv_func_rl_echo_signal_char" = xyes
6878 then :
6879 printf "%s\n" "#define HAVE_RL_ECHO_SIGNAL_CHAR 1" >>confdefs.h
6880
6881 fi
6882 ac_fn_c_check_func "$LINENO" "rl_set_paren_blink_timeout" "ac_cv_func_rl_set_paren_blink_timeout"
6883 if test "x$ac_cv_func_rl_set_paren_blink_timeout" = xyes
6884 then :
6885 printf "%s\n" "#define HAVE_RL_SET_PAREN_BLINK_TIMEOUT 1" >>confdefs.h
6886
6887 fi
6888 ac_fn_c_check_func "$LINENO" "rl_clear_history" "ac_cv_func_rl_clear_history"
6889 if test "x$ac_cv_func_rl_clear_history" = xyes
6890 then :
6891 printf "%s\n" "#define HAVE_RL_CLEAR_HISTORY 1" >>confdefs.h
6892
6893 fi
6894 ac_fn_c_check_func "$LINENO" "rl_get_termcap" "ac_cv_func_rl_get_termcap"
6895 if test "x$ac_cv_func_rl_get_termcap" = xyes
6896 then :
6897 printf "%s\n" "#define HAVE_RL_GET_TERMCAP 1" >>confdefs.h
6898
6899 fi
6900 ac_fn_c_check_func "$LINENO" "rl_resize_terminal" "ac_cv_func_rl_resize_terminal"
6901 if test "x$ac_cv_func_rl_resize_terminal" = xyes
6902 then :
6903 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
6904
6905 fi
6906 ac_fn_c_check_func "$LINENO" "rl_set_screen_size" "ac_cv_func_rl_set_screen_size"
6907 if test "x$ac_cv_func_rl_set_screen_size" = xyes
6908 then :
6909 printf "%s\n" "#define HAVE_RL_SET_SCREEN_SIZE 1" >>confdefs.h
6910
6911 fi
6912 ac_fn_c_check_func "$LINENO" "rl_get_screen_size" "ac_cv_func_rl_get_screen_size"
6913 if test "x$ac_cv_func_rl_get_screen_size" = xyes
6914 then :
6915 printf "%s\n" "#define HAVE_RL_GET_SCREEN_SIZE 1" >>confdefs.h
6916
6917 fi
6918 ac_fn_c_check_func "$LINENO" "rl_reset_screen_size" "ac_cv_func_rl_reset_screen_size"
6919 if test "x$ac_cv_func_rl_reset_screen_size" = xyes
6920 then :
6921 printf "%s\n" "#define HAVE_RL_RESET_SCREEN_SIZE 1" >>confdefs.h
6922
6923 fi
6924 ac_fn_c_check_func "$LINENO" "rl_callback_handler_install" "ac_cv_func_rl_callback_handler_install"
6925 if test "x$ac_cv_func_rl_callback_handler_install" = xyes
6926 then :
6927 printf "%s\n" "#define HAVE_RL_CALLBACK_HANDLER_INSTALL 1" >>confdefs.h
6928
6929 fi
6930 ac_fn_c_check_func "$LINENO" "rl_callback_read_char" "ac_cv_func_rl_callback_read_char"
6931 if test "x$ac_cv_func_rl_callback_read_char" = xyes
6932 then :
6933 printf "%s\n" "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
6934
6935 fi
6936 ac_fn_c_check_func "$LINENO" "rl_callback_handler_remove" "ac_cv_func_rl_callback_handler_remove"
6937 if test "x$ac_cv_func_rl_callback_handler_remove" = xyes
6938 then :
6939 printf "%s\n" "#define HAVE_RL_CALLBACK_HANDLER_REMOVE 1" >>confdefs.h
6940
6941 fi
6942 ac_fn_c_check_func "$LINENO" "using_history" "ac_cv_func_using_history"
6943 if test "x$ac_cv_func_using_history" = xyes
6944 then :
6945 printf "%s\n" "#define HAVE_USING_HISTORY 1" >>confdefs.h
6946
6947 fi
6948 ac_fn_c_check_func "$LINENO" "add_history" "ac_cv_func_add_history"
6949 if test "x$ac_cv_func_add_history" = xyes
6950 then :
6951 printf "%s\n" "#define HAVE_ADD_HISTORY 1" >>confdefs.h
6952
6953 fi
6954 ac_fn_c_check_func "$LINENO" "clear_history" "ac_cv_func_clear_history"
6955 if test "x$ac_cv_func_clear_history" = xyes
6956 then :
6957 printf "%s\n" "#define HAVE_CLEAR_HISTORY 1" >>confdefs.h
6958
6959 fi
6960 ac_fn_c_check_func "$LINENO" "stifle_history" "ac_cv_func_stifle_history"
6961 if test "x$ac_cv_func_stifle_history" = xyes
6962 then :
6963 printf "%s\n" "#define HAVE_STIFLE_HISTORY 1" >>confdefs.h
6964
6965 fi
6966 ac_fn_c_check_func "$LINENO" "unstifle_history" "ac_cv_func_unstifle_history"
6967 if test "x$ac_cv_func_unstifle_history" = xyes
6968 then :
6969 printf "%s\n" "#define HAVE_UNSTIFLE_HISTORY 1" >>confdefs.h
6970
6971 fi
6972 ac_fn_c_check_func "$LINENO" "history_is_stifled" "ac_cv_func_history_is_stifled"
6973 if test "x$ac_cv_func_history_is_stifled" = xyes
6974 then :
6975 printf "%s\n" "#define HAVE_HISTORY_IS_STIFLED 1" >>confdefs.h
6976
6977 fi
6978 ac_fn_c_check_func "$LINENO" "where_history" "ac_cv_func_where_history"
6979 if test "x$ac_cv_func_where_history" = xyes
6980 then :
6981 printf "%s\n" "#define HAVE_WHERE_HISTORY 1" >>confdefs.h
6982
6983 fi
6984 ac_fn_c_check_func "$LINENO" "history_total_bytes" "ac_cv_func_history_total_bytes"
6985 if test "x$ac_cv_func_history_total_bytes" = xyes
6986 then :
6987 printf "%s\n" "#define HAVE_HISTORY_TOTAL_BYTES 1" >>confdefs.h
6988
6989 fi
6990 ac_fn_c_check_func "$LINENO" "history_set_pos" "ac_cv_func_history_set_pos"
6991 if test "x$ac_cv_func_history_set_pos" = xyes
6992 then :
6993 printf "%s\n" "#define HAVE_HISTORY_SET_POS 1" >>confdefs.h
6994
6995 fi
6996 ac_fn_c_check_func "$LINENO" "history_search" "ac_cv_func_history_search"
6997 if test "x$ac_cv_func_history_search" = xyes
6998 then :
6999 printf "%s\n" "#define HAVE_HISTORY_SEARCH 1" >>confdefs.h
7000
7001 fi
7002 ac_fn_c_check_func "$LINENO" "history_search_prefix" "ac_cv_func_history_search_prefix"
7003 if test "x$ac_cv_func_history_search_prefix" = xyes
7004 then :
7005 printf "%s\n" "#define HAVE_HISTORY_SEARCH_PREFIX 1" >>confdefs.h
7006
7007 fi
7008 ac_fn_c_check_func "$LINENO" "history_search_pos" "ac_cv_func_history_search_pos"
7009 if test "x$ac_cv_func_history_search_pos" = xyes
7010 then :
7011 printf "%s\n" "#define HAVE_HISTORY_SEARCH_POS 1" >>confdefs.h
7012
7013 fi
7014 ac_fn_c_check_func "$LINENO" "read_history" "ac_cv_func_read_history"
7015 if test "x$ac_cv_func_read_history" = xyes
7016 then :
7017 printf "%s\n" "#define HAVE_READ_HISTORY 1" >>confdefs.h
7018
7019 fi
7020 ac_fn_c_check_func "$LINENO" "read_history_range" "ac_cv_func_read_history_range"
7021 if test "x$ac_cv_func_read_history_range" = xyes
7022 then :
7023 printf "%s\n" "#define HAVE_READ_HISTORY_RANGE 1" >>confdefs.h
7024
7025 fi
7026 ac_fn_c_check_func "$LINENO" "write_history" "ac_cv_func_write_history"
7027 if test "x$ac_cv_func_write_history" = xyes
7028 then :
7029 printf "%s\n" "#define HAVE_WRITE_HISTORY 1" >>confdefs.h
7030
7031 fi
7032 ac_fn_c_check_func "$LINENO" "append_history" "ac_cv_func_append_history"
7033 if test "x$ac_cv_func_append_history" = xyes
7034 then :
7035 printf "%s\n" "#define HAVE_APPEND_HISTORY 1" >>confdefs.h
7036
7037 fi
7038 ac_fn_c_check_func "$LINENO" "history_truncate_file" "ac_cv_func_history_truncate_file"
7039 if test "x$ac_cv_func_history_truncate_file" = xyes
7040 then :
7041 printf "%s\n" "#define HAVE_HISTORY_TRUNCATE_FILE 1" >>confdefs.h
7042
7043 fi
7044 ac_fn_c_check_func "$LINENO" "tilde_expand" "ac_cv_func_tilde_expand"
7045 if test "x$ac_cv_func_tilde_expand" = xyes
7046 then :
7047 printf "%s\n" "#define HAVE_TILDE_EXPAND 1" >>confdefs.h
7048
7049 fi
7050
7051 if test $ac_cv_have_decl_rl_free_keymap = yes; then
7052 ac_fn_c_check_func "$LINENO" "rl_free_keymap" "ac_cv_func_rl_free_keymap"
7053 if test "x$ac_cv_func_rl_free_keymap" = xyes
7054 then :
7055 printf "%s\n" "#define HAVE_RL_FREE_KEYMAP 1" >>confdefs.h
7056
7057 fi
7058
7059 fi
7060
7061
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Output)${term_norm}" >&5
7063 printf "%s\n" "$as_me: ${term_bold}** Readline (Output)${term_norm}" >&6;}
7064
7065 ac_config_files="$ac_config_files Makefile link.sh"
7066
7067 cat >confcache <<\_ACEOF
7068 # This file is a shell script that caches the results of configure
7069 # tests run on this system so they can be shared between configure
7070 # scripts and configure runs, see configure's option --config-cache.
7071 # It is not useful on other systems. If it contains results you don't
7072 # want to keep, you may remove or edit it.
7073 #
7074 # config.status only pays attention to the cache file if you give it
7075 # the --recheck option to rerun configure.
7076 #
7077 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7078 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7079 # following values.
7080
7081 _ACEOF
7082
7083 # The following way of writing the cache mishandles newlines in values,
7084 # but we know of no workaround that is simple, portable, and efficient.
7085 # So, we kill variables containing newlines.
7086 # Ultrix sh set writes to stderr and can't be redirected directly,
7087 # and sets the high bit in the cache file unless we assign to the vars.
7088 (
7089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7090 eval ac_val=\$$ac_var
7091 case $ac_val in #(
7092 *${as_nl}*)
7093 case $ac_var in #(
7094 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7095 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7096 esac
7097 case $ac_var in #(
7098 _ | IFS | as_nl) ;; #(
7099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7100 *) { eval $ac_var=; unset $ac_var;} ;;
7101 esac ;;
7102 esac
7103 done
7104
7105 (set) 2>&1 |
7106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7107 *${as_nl}ac_space=\ *)
7108 # 'set' does not quote correctly, so add quotes: double-quote
7109 # substitution turns \\\\ into \\, and sed turns \\ into \.
7110 sed -n \
7111 "s/'/'\\\\''/g;
7112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7113 ;; #(
7114 *)
7115 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7117 ;;
7118 esac |
7119 sort
7120 ) |
7121 sed '
7122 /^ac_cv_env_/b end
7123 t clear
7124 :clear
7125 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7126 t end
7127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7128 :end' >>confcache
7129 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7130 if test -w "$cache_file"; then
7131 if test "x$cache_file" != "x/dev/null"; then
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7133 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7134 if test ! -f "$cache_file" || test -h "$cache_file"; then
7135 cat confcache >"$cache_file"
7136 else
7137 case $cache_file in #(
7138 */* | ?:*)
7139 mv -f confcache "$cache_file"$$ &&
7140 mv -f "$cache_file"$$ "$cache_file" ;; #(
7141 *)
7142 mv -f confcache "$cache_file" ;;
7143 esac
7144 fi
7145 fi
7146 else
7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7148 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7149 fi
7150 fi
7151 rm -f confcache
7152
7153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7154 # Let make expand exec_prefix.
7155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7156
7157 DEFS=-DHAVE_CONFIG_H
7158
7159 ac_libobjs=
7160 ac_ltlibobjs=
7161 U=
7162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7163 # 1. Remove the extension, and $U if already installed.
7164 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7165 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7167 # will be set to the directory where LIBOBJS objects are built.
7168 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7169 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7170 done
7171 LIBOBJS=$ac_libobjs
7172
7173 LTLIBOBJS=$ac_ltlibobjs
7174
7175
7176
7177 : "${CONFIG_STATUS=./config.status}"
7178 ac_write_fail=0
7179 ac_clean_files_save=$ac_clean_files
7180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7182 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7183 as_write_fail=0
7184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7185 #! $SHELL
7186 # Generated by $as_me.
7187 # Run this file to recreate the current configuration.
7188 # Compiler output produced by configure, useful for debugging
7189 # configure, is in config.log if it exists.
7190
7191 debug=false
7192 ac_cs_recheck=false
7193 ac_cs_silent=false
7194
7195 SHELL=\${CONFIG_SHELL-$SHELL}
7196 export SHELL
7197 _ASEOF
7198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7199 ## -------------------- ##
7200 ## M4sh Initialization. ##
7201 ## -------------------- ##
7202
7203 # Be more Bourne compatible
7204 DUALCASE=1; export DUALCASE # for MKS sh
7205 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7206 then :
7207 emulate sh
7208 NULLCMD=:
7209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7210 # is contrary to our usage. Disable this feature.
7211 alias -g '${1+"$@"}'='"$@"'
7212 setopt NO_GLOB_SUBST
7213 else case e in #(
7214 e) case `(set -o) 2>/dev/null` in #(
7215 *posix*) :
7216 set -o posix ;; #(
7217 *) :
7218 ;;
7219 esac ;;
7220 esac
7221 fi
7222
7223
7224
7225 # Reset variables that may have inherited troublesome values from
7226 # the environment.
7227
7228 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7229 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7230 # side effect of setting IFS to empty, thus disabling word splitting.)
7231 # Quoting is to prevent editors from complaining about space-tab.
7232 as_nl='
7233 '
7234 export as_nl
7235 IFS=" "" $as_nl"
7236
7237 PS1='$ '
7238 PS2='> '
7239 PS4='+ '
7240
7241 # Ensure predictable behavior from utilities with locale-dependent output.
7242 LC_ALL=C
7243 export LC_ALL
7244 LANGUAGE=C
7245 export LANGUAGE
7246
7247 # We cannot yet rely on "unset" to work, but we need these variables
7248 # to be unset--not just set to an empty or harmless value--now, to
7249 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7250 # also avoids known problems related to "unset" and subshell syntax
7251 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7252 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7253 do eval test \${$as_var+y} \
7254 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7255 done
7256
7257 # Ensure that fds 0, 1, and 2 are open.
7258 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7259 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7260 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7261
7262 # The user is always right.
7263 if ${PATH_SEPARATOR+false} :; then
7264 PATH_SEPARATOR=:
7265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7266 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7267 PATH_SEPARATOR=';'
7268 }
7269 fi
7270
7271
7272 # Find who we are. Look in the path if we contain no directory separator.
7273 as_myself=
7274 case $0 in #((
7275 *[\\/]* ) as_myself=$0 ;;
7276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279 IFS=$as_save_IFS
7280 case $as_dir in #(((
7281 '') as_dir=./ ;;
7282 */) ;;
7283 *) as_dir=$as_dir/ ;;
7284 esac
7285 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7286 done
7287 IFS=$as_save_IFS
7288
7289 ;;
7290 esac
7291 # We did not find ourselves, most probably we were run as 'sh COMMAND'
7292 # in which case we are not to be found in the path.
7293 if test "x$as_myself" = x; then
7294 as_myself=$0
7295 fi
7296 if test ! -f "$as_myself"; then
7297 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7298 exit 1
7299 fi
7300
7301
7302
7303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7304 # ----------------------------------------
7305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7307 # script with STATUS, using 1 if that was 0.
7308 as_fn_error ()
7309 {
7310 as_status=$1; test $as_status -eq 0 && as_status=1
7311 if test "$4"; then
7312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7314 fi
7315 printf "%s\n" "$as_me: error: $2" >&2
7316 as_fn_exit $as_status
7317 } # as_fn_error
7318
7319
7320 # as_fn_set_status STATUS
7321 # -----------------------
7322 # Set $? to STATUS, without forking.
7323 as_fn_set_status ()
7324 {
7325 return $1
7326 } # as_fn_set_status
7327
7328 # as_fn_exit STATUS
7329 # -----------------
7330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7331 as_fn_exit ()
7332 {
7333 set +e
7334 as_fn_set_status $1
7335 exit $1
7336 } # as_fn_exit
7337
7338 # as_fn_unset VAR
7339 # ---------------
7340 # Portably unset VAR.
7341 as_fn_unset ()
7342 {
7343 { eval $1=; unset $1;}
7344 }
7345 as_unset=as_fn_unset
7346
7347 # as_fn_append VAR VALUE
7348 # ----------------------
7349 # Append the text in VALUE to the end of the definition contained in VAR. Take
7350 # advantage of any shell optimizations that allow amortized linear growth over
7351 # repeated appends, instead of the typical quadratic growth present in naive
7352 # implementations.
7353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7354 then :
7355 eval 'as_fn_append ()
7356 {
7357 eval $1+=\$2
7358 }'
7359 else case e in #(
7360 e) as_fn_append ()
7361 {
7362 eval $1=\$$1\$2
7363 } ;;
7364 esac
7365 fi # as_fn_append
7366
7367 # as_fn_arith ARG...
7368 # ------------------
7369 # Perform arithmetic evaluation on the ARGs, and store the result in the
7370 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7371 # must be portable across $(()) and expr.
7372 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7373 then :
7374 eval 'as_fn_arith ()
7375 {
7376 as_val=$(( $* ))
7377 }'
7378 else case e in #(
7379 e) as_fn_arith ()
7380 {
7381 as_val=`expr "$@" || test $? -eq 1`
7382 } ;;
7383 esac
7384 fi # as_fn_arith
7385
7386
7387 if expr a : '\(a\)' >/dev/null 2>&1 &&
7388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7389 as_expr=expr
7390 else
7391 as_expr=false
7392 fi
7393
7394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7395 as_basename=basename
7396 else
7397 as_basename=false
7398 fi
7399
7400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7401 as_dirname=dirname
7402 else
7403 as_dirname=false
7404 fi
7405
7406 as_me=`$as_basename -- "$0" ||
7407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7408 X"$0" : 'X\(//\)$' \| \
7409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7410 printf "%s\n" X/"$0" |
7411 sed '/^.*\/\([^/][^/]*\)\/*$/{
7412 s//\1/
7413 q
7414 }
7415 /^X\/\(\/\/\)$/{
7416 s//\1/
7417 q
7418 }
7419 /^X\/\(\/\).*/{
7420 s//\1/
7421 q
7422 }
7423 s/.*/./; q'`
7424
7425 # Avoid depending upon Character Ranges.
7426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7429 as_cr_digits='0123456789'
7430 as_cr_alnum=$as_cr_Letters$as_cr_digits
7431
7432
7433 # Determine whether it's possible to make 'echo' print without a newline.
7434 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7435 # for compatibility with existing Makefiles.
7436 ECHO_C= ECHO_N= ECHO_T=
7437 case `echo -n x` in #(((((
7438 -n*)
7439 case `echo 'xy\c'` in
7440 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7441 xy) ECHO_C='\c';;
7442 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7443 ECHO_T=' ';;
7444 esac;;
7445 *)
7446 ECHO_N='-n';;
7447 esac
7448
7449 # For backward compatibility with old third-party macros, we provide
7450 # the shell variables $as_echo and $as_echo_n. New code should use
7451 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7452 as_echo='printf %s\n'
7453 as_echo_n='printf %s'
7454
7455 rm -f conf$$ conf$$.exe conf$$.file
7456 if test -d conf$$.dir; then
7457 rm -f conf$$.dir/conf$$.file
7458 else
7459 rm -f conf$$.dir
7460 mkdir conf$$.dir 2>/dev/null
7461 fi
7462 if (echo >conf$$.file) 2>/dev/null; then
7463 if ln -s conf$$.file conf$$ 2>/dev/null; then
7464 as_ln_s='ln -s'
7465 # ... but there are two gotchas:
7466 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
7467 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
7468 # In both cases, we have to default to 'cp -pR'.
7469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7470 as_ln_s='cp -pR'
7471 elif ln conf$$.file conf$$ 2>/dev/null; then
7472 as_ln_s=ln
7473 else
7474 as_ln_s='cp -pR'
7475 fi
7476 else
7477 as_ln_s='cp -pR'
7478 fi
7479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7480 rmdir conf$$.dir 2>/dev/null
7481
7482
7483 # as_fn_mkdir_p
7484 # -------------
7485 # Create "$as_dir" as a directory, including parents if necessary.
7486 as_fn_mkdir_p ()
7487 {
7488
7489 case $as_dir in #(
7490 -*) as_dir=./$as_dir;;
7491 esac
7492 test -d "$as_dir" || eval $as_mkdir_p || {
7493 as_dirs=
7494 while :; do
7495 case $as_dir in #(
7496 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7497 *) as_qdir=$as_dir;;
7498 esac
7499 as_dirs="'$as_qdir' $as_dirs"
7500 as_dir=`$as_dirname -- "$as_dir" ||
7501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7502 X"$as_dir" : 'X\(//\)[^/]' \| \
7503 X"$as_dir" : 'X\(//\)$' \| \
7504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7505 printf "%s\n" X"$as_dir" |
7506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7507 s//\1/
7508 q
7509 }
7510 /^X\(\/\/\)[^/].*/{
7511 s//\1/
7512 q
7513 }
7514 /^X\(\/\/\)$/{
7515 s//\1/
7516 q
7517 }
7518 /^X\(\/\).*/{
7519 s//\1/
7520 q
7521 }
7522 s/.*/./; q'`
7523 test -d "$as_dir" && break
7524 done
7525 test -z "$as_dirs" || eval "mkdir $as_dirs"
7526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7527
7528
7529 } # as_fn_mkdir_p
7530 if mkdir -p . 2>/dev/null; then
7531 as_mkdir_p='mkdir -p "$as_dir"'
7532 else
7533 test -d ./-p && rmdir ./-p
7534 as_mkdir_p=false
7535 fi
7536
7537
7538 # as_fn_executable_p FILE
7539 # -----------------------
7540 # Test if FILE is an executable regular file.
7541 as_fn_executable_p ()
7542 {
7543 test -f "$1" && test -x "$1"
7544 } # as_fn_executable_p
7545 as_test_x='test -x'
7546 as_executable_p=as_fn_executable_p
7547
7548 # Sed expression to map a string onto a valid CPP name.
7549 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7550 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7551
7552 # Sed expression to map a string onto a valid variable name.
7553 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7554 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7555
7556
7557 exec 6>&1
7558 ## ----------------------------------- ##
7559 ## Main body of $CONFIG_STATUS script. ##
7560 ## ----------------------------------- ##
7561 _ASEOF
7562 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7563
7564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7565 # Save the log message, to keep $0 and so on meaningful, and to
7566 # report actual input values of CONFIG_FILES etc. instead of their
7567 # values after options handling.
7568 ac_log="
7569 This file was extended by readline $as_me 1.0, which was
7570 generated by GNU Autoconf 2.72. Invocation command line was
7571
7572 CONFIG_FILES = $CONFIG_FILES
7573 CONFIG_HEADERS = $CONFIG_HEADERS
7574 CONFIG_LINKS = $CONFIG_LINKS
7575 CONFIG_COMMANDS = $CONFIG_COMMANDS
7576 $ $0 $@
7577
7578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7579 "
7580
7581 _ACEOF
7582
7583 case $ac_config_files in *"
7584 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7585 esac
7586
7587 case $ac_config_headers in *"
7588 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7589 esac
7590
7591
7592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7593 # Files that config.status was made for.
7594 config_files="$ac_config_files"
7595 config_headers="$ac_config_headers"
7596
7597 _ACEOF
7598
7599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7600 ac_cs_usage="\
7601 '$as_me' instantiates files and other configuration actions
7602 from templates according to the current configuration. Unless the files
7603 and actions are specified as TAGs, all are instantiated by default.
7604
7605 Usage: $0 [OPTION]... [TAG]...
7606
7607 -h, --help print this help, then exit
7608 -V, --version print version number and configuration settings, then exit
7609 --config print configuration, then exit
7610 -q, --quiet, --silent
7611 do not print progress messages
7612 -d, --debug don't remove temporary files
7613 --recheck update $as_me by reconfiguring in the same conditions
7614 --file=FILE[:TEMPLATE]
7615 instantiate the configuration file FILE
7616 --header=FILE[:TEMPLATE]
7617 instantiate the configuration header FILE
7618
7619 Configuration files:
7620 $config_files
7621
7622 Configuration headers:
7623 $config_headers
7624
7625 Report bugs to <clisp-list>."
7626
7627 _ACEOF
7628 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7629 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7631 ac_cs_config='$ac_cs_config_escaped'
7632 ac_cs_version="\\
7633 readline config.status 1.0
7634 configured by $0, generated by GNU Autoconf 2.72,
7635 with options \\"\$ac_cs_config\\"
7636
7637 Copyright (C) 2023 Free Software Foundation, Inc.
7638 This config.status script is free software; the Free Software Foundation
7639 gives unlimited permission to copy, distribute and modify it."
7640
7641 ac_pwd='$ac_pwd'
7642 srcdir='$srcdir'
7643 test -n "\$AWK" || AWK=awk
7644 _ACEOF
7645
7646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7647 # The default lists apply if the user does not specify any file.
7648 ac_need_defaults=:
7649 while test $# != 0
7650 do
7651 case $1 in
7652 --*=?*)
7653 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7654 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7655 ac_shift=:
7656 ;;
7657 --*=)
7658 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7659 ac_optarg=
7660 ac_shift=:
7661 ;;
7662 *)
7663 ac_option=$1
7664 ac_optarg=$2
7665 ac_shift=shift
7666 ;;
7667 esac
7668
7669 case $ac_option in
7670 # Handling of the options.
7671 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7672 ac_cs_recheck=: ;;
7673 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7674 printf "%s\n" "$ac_cs_version"; exit ;;
7675 --config | --confi | --conf | --con | --co | --c )
7676 printf "%s\n" "$ac_cs_config"; exit ;;
7677 --debug | --debu | --deb | --de | --d | -d )
7678 debug=: ;;
7679 --file | --fil | --fi | --f )
7680 $ac_shift
7681 case $ac_optarg in
7682 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7683 '') as_fn_error $? "missing file argument" ;;
7684 esac
7685 as_fn_append CONFIG_FILES " '$ac_optarg'"
7686 ac_need_defaults=false;;
7687 --header | --heade | --head | --hea )
7688 $ac_shift
7689 case $ac_optarg in
7690 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7691 esac
7692 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7693 ac_need_defaults=false;;
7694 --he | --h)
7695 # Conflict between --help and --header
7696 as_fn_error $? "ambiguous option: '$1'
7697 Try '$0 --help' for more information.";;
7698 --help | --hel | -h )
7699 printf "%s\n" "$ac_cs_usage"; exit ;;
7700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7702 ac_cs_silent=: ;;
7703
7704 # This is an error.
7705 -*) as_fn_error $? "unrecognized option: '$1'
7706 Try '$0 --help' for more information." ;;
7707
7708 *) as_fn_append ac_config_targets " $1"
7709 ac_need_defaults=false ;;
7710
7711 esac
7712 shift
7713 done
7714
7715 ac_configure_extra_args=
7716
7717 if $ac_cs_silent; then
7718 exec 6>/dev/null
7719 ac_configure_extra_args="$ac_configure_extra_args --silent"
7720 fi
7721
7722 _ACEOF
7723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7724 if \$ac_cs_recheck; then
7725 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7726 shift
7727 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7728 CONFIG_SHELL='$SHELL'
7729 export CONFIG_SHELL
7730 exec "\$@"
7731 fi
7732
7733 _ACEOF
7734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7735 exec 5>>config.log
7736 {
7737 echo
7738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7739 ## Running $as_me. ##
7740 _ASBOX
7741 printf "%s\n" "$ac_log"
7742 } >&5
7743
7744 _ACEOF
7745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7746 _ACEOF
7747
7748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7749
7750 # Handling of arguments.
7751 for ac_config_target in $ac_config_targets
7752 do
7753 case $ac_config_target in
7754 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7755 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7756 "link.sh") CONFIG_FILES="$CONFIG_FILES link.sh" ;;
7757
7758 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
7759 esac
7760 done
7761
7762
7763 # If the user did not use the arguments to specify the items to instantiate,
7764 # then the envvar interface is used. Set only those that are not.
7765 # We use the long form for the default assignment because of an extremely
7766 # bizarre bug on SunOS 4.1.3.
7767 if $ac_need_defaults; then
7768 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7769 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7770 fi
7771
7772 # Have a temporary directory for convenience. Make it in the build tree
7773 # simply because there is no reason against having it here, and in addition,
7774 # creating and moving files from /tmp can sometimes cause problems.
7775 # Hook for its removal unless debugging.
7776 # Note that there is a small window in which the directory will not be cleaned:
7777 # after its creation but before its name has been assigned to '$tmp'.
7778 $debug ||
7779 {
7780 tmp= ac_tmp=
7781 trap 'exit_status=$?
7782 : "${ac_tmp:=$tmp}"
7783 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7784 ' 0
7785 trap 'as_fn_exit 1' 1 2 13 15
7786 }
7787 # Create a (secure) tmp directory for tmp files.
7788
7789 {
7790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7791 test -d "$tmp"
7792 } ||
7793 {
7794 tmp=./conf$$-$RANDOM
7795 (umask 077 && mkdir "$tmp")
7796 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7797 ac_tmp=$tmp
7798
7799 # Set up the scripts for CONFIG_FILES section.
7800 # No need to generate them if there are no CONFIG_FILES.
7801 # This happens for instance with './config.status config.h'.
7802 if test -n "$CONFIG_FILES"; then
7803
7804
7805 ac_cr=`echo X | tr X '\015'`
7806 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7807 # But we know of no other shell where ac_cr would be empty at this
7808 # point, so we can use a bashism as a fallback.
7809 if test "x$ac_cr" = x; then
7810 eval ac_cr=\$\'\\r\'
7811 fi
7812 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7813 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7814 ac_cs_awk_cr='\\r'
7815 else
7816 ac_cs_awk_cr=$ac_cr
7817 fi
7818
7819 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7820 _ACEOF
7821
7822
7823 {
7824 echo "cat >conf$$subs.awk <<_ACEOF" &&
7825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7826 echo "_ACEOF"
7827 } >conf$$subs.sh ||
7828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7830 ac_delim='%!_!# '
7831 for ac_last_try in false false false false false :; do
7832 . ./conf$$subs.sh ||
7833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7834
7835 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7836 if test $ac_delim_n = $ac_delim_num; then
7837 break
7838 elif $ac_last_try; then
7839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7840 else
7841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7842 fi
7843 done
7844 rm -f conf$$subs.sh
7845
7846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7847 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7848 _ACEOF
7849 sed -n '
7850 h
7851 s/^/S["/; s/!.*/"]=/
7852 p
7853 g
7854 s/^[^!]*!//
7855 :repl
7856 t repl
7857 s/'"$ac_delim"'$//
7858 t delim
7859 :nl
7860 h
7861 s/\(.\{148\}\)..*/\1/
7862 t more1
7863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7864 p
7865 n
7866 b repl
7867 :more1
7868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7869 p
7870 g
7871 s/.\{148\}//
7872 t nl
7873 :delim
7874 h
7875 s/\(.\{148\}\)..*/\1/
7876 t more2
7877 s/["\\]/\\&/g; s/^/"/; s/$/"/
7878 p
7879 b
7880 :more2
7881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7882 p
7883 g
7884 s/.\{148\}//
7885 t delim
7886 ' <conf$$subs.awk | sed '
7887 /^[^""]/{
7888 N
7889 s/\n//
7890 }
7891 ' >>$CONFIG_STATUS || ac_write_fail=1
7892 rm -f conf$$subs.awk
7893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7894 _ACAWK
7895 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7896 for (key in S) S_is_set[key] = 1
7897 FS = ""
7898
7899 }
7900 {
7901 line = $ 0
7902 nfields = split(line, field, "@")
7903 substed = 0
7904 len = length(field[1])
7905 for (i = 2; i < nfields; i++) {
7906 key = field[i]
7907 keylen = length(key)
7908 if (S_is_set[key]) {
7909 value = S[key]
7910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7911 len += length(value) + length(field[++i])
7912 substed = 1
7913 } else
7914 len += 1 + keylen
7915 }
7916
7917 print line
7918 }
7919
7920 _ACAWK
7921 _ACEOF
7922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7924 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7925 else
7926 cat
7927 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7928 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7929 _ACEOF
7930
7931 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7932 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7933 # trailing colons and then remove the whole line if VPATH becomes empty
7934 # (actually we leave an empty line to preserve line numbers).
7935 if test "x$srcdir" = x.; then
7936 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7937 h
7938 s///
7939 s/^/:/
7940 s/[ ]*$/:/
7941 s/:\$(srcdir):/:/g
7942 s/:\${srcdir}:/:/g
7943 s/:@srcdir@:/:/g
7944 s/^:*//
7945 s/:*$//
7946 x
7947 s/\(=[ ]*\).*/\1/
7948 G
7949 s/\n//
7950 s/^[^=]*=[ ]*$//
7951 }'
7952 fi
7953
7954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7955 fi # test -n "$CONFIG_FILES"
7956
7957 # Set up the scripts for CONFIG_HEADERS section.
7958 # No need to generate them if there are no CONFIG_HEADERS.
7959 # This happens for instance with './config.status Makefile'.
7960 if test -n "$CONFIG_HEADERS"; then
7961 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7962 BEGIN {
7963 _ACEOF
7964
7965 # Transform confdefs.h into an awk script 'defines.awk', embedded as
7966 # here-document in config.status, that substitutes the proper values into
7967 # config.h.in to produce config.h.
7968
7969 # Create a delimiter string that does not exist in confdefs.h, to ease
7970 # handling of long lines.
7971 ac_delim='%!_!# '
7972 for ac_last_try in false false :; do
7973 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7974 if test -z "$ac_tt"; then
7975 break
7976 elif $ac_last_try; then
7977 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7978 else
7979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7980 fi
7981 done
7982
7983 # For the awk script, D is an array of macro values keyed by name,
7984 # likewise P contains macro parameters if any. Preserve backslash
7985 # newline sequences.
7986
7987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7988 sed -n '
7989 s/.\{148\}/&'"$ac_delim"'/g
7990 t rset
7991 :rset
7992 s/^[ ]*#[ ]*define[ ][ ]*/ /
7993 t def
7994 d
7995 :def
7996 s/\\$//
7997 t bsnl
7998 s/["\\]/\\&/g
7999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8000 D["\1"]=" \3"/p
8001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8002 d
8003 :bsnl
8004 s/["\\]/\\&/g
8005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8006 D["\1"]=" \3\\\\\\n"\\/p
8007 t cont
8008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8009 t cont
8010 d
8011 :cont
8012 n
8013 s/.\{148\}/&'"$ac_delim"'/g
8014 t clear
8015 :clear
8016 s/\\$//
8017 t bsnlc
8018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8019 d
8020 :bsnlc
8021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8022 b cont
8023 ' <confdefs.h | sed '
8024 s/'"$ac_delim"'/"\\\
8025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8026
8027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8028 for (key in D) D_is_set[key] = 1
8029 FS = ""
8030 }
8031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8032 line = \$ 0
8033 split(line, arg, " ")
8034 if (arg[1] == "#") {
8035 defundef = arg[2]
8036 mac1 = arg[3]
8037 } else {
8038 defundef = substr(arg[1], 2)
8039 mac1 = arg[2]
8040 }
8041 split(mac1, mac2, "(") #)
8042 macro = mac2[1]
8043 prefix = substr(line, 1, index(line, defundef) - 1)
8044 if (D_is_set[macro]) {
8045 # Preserve the white space surrounding the "#".
8046 print prefix "define", macro P[macro] D[macro]
8047 next
8048 } else {
8049 # Replace #undef with comments. This is necessary, for example,
8050 # in the case of _POSIX_SOURCE, which is predefined and required
8051 # on some systems where configure will not decide to define it.
8052 if (defundef == "undef") {
8053 print "/*", prefix defundef, macro, "*/"
8054 next
8055 }
8056 }
8057 }
8058 { print }
8059 _ACAWK
8060 _ACEOF
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8062 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8063 fi # test -n "$CONFIG_HEADERS"
8064
8065
8066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8067 shift
8068 for ac_tag
8069 do
8070 case $ac_tag in
8071 :[FHLC]) ac_mode=$ac_tag; continue;;
8072 esac
8073 case $ac_mode$ac_tag in
8074 :[FHL]*:*);;
8075 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8076 :[FH]-) ac_tag=-:-;;
8077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8078 esac
8079 ac_save_IFS=$IFS
8080 IFS=:
8081 set x $ac_tag
8082 IFS=$ac_save_IFS
8083 shift
8084 ac_file=$1
8085 shift
8086
8087 case $ac_mode in
8088 :L) ac_source=$1;;
8089 :[FH])
8090 ac_file_inputs=
8091 for ac_f
8092 do
8093 case $ac_f in
8094 -) ac_f="$ac_tmp/stdin";;
8095 *) # Look for the file first in the build tree, then in the source tree
8096 # (if the path is not absolute). The absolute path cannot be DOS-style,
8097 # because $ac_f cannot contain ':'.
8098 test -f "$ac_f" ||
8099 case $ac_f in
8100 [\\/$]*) false;;
8101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8102 esac ||
8103 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8104 esac
8105 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8106 as_fn_append ac_file_inputs " '$ac_f'"
8107 done
8108
8109 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8110 # use $as_me), people would be surprised to read:
8111 # /* config.h. Generated by config.status. */
8112 configure_input='Generated from '`
8113 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8114 `' by configure.'
8115 if test x"$ac_file" != x-; then
8116 configure_input="$ac_file. $configure_input"
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8118 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8119 fi
8120 # Neutralize special characters interpreted by sed in replacement strings.
8121 case $configure_input in #(
8122 *\&* | *\|* | *\\* )
8123 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8125 *) ac_sed_conf_input=$configure_input;;
8126 esac
8127
8128 case $ac_tag in
8129 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8131 esac
8132 ;;
8133 esac
8134
8135 ac_dir=`$as_dirname -- "$ac_file" ||
8136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8137 X"$ac_file" : 'X\(//\)[^/]' \| \
8138 X"$ac_file" : 'X\(//\)$' \| \
8139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8140 printf "%s\n" X"$ac_file" |
8141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8142 s//\1/
8143 q
8144 }
8145 /^X\(\/\/\)[^/].*/{
8146 s//\1/
8147 q
8148 }
8149 /^X\(\/\/\)$/{
8150 s//\1/
8151 q
8152 }
8153 /^X\(\/\).*/{
8154 s//\1/
8155 q
8156 }
8157 s/.*/./; q'`
8158 as_dir="$ac_dir"; as_fn_mkdir_p
8159 ac_builddir=.
8160
8161 case "$ac_dir" in
8162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8163 *)
8164 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8165 # A ".." for each directory in $ac_dir_suffix.
8166 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8167 case $ac_top_builddir_sub in
8168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8170 esac ;;
8171 esac
8172 ac_abs_top_builddir=$ac_pwd
8173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8174 # for backward compatibility:
8175 ac_top_builddir=$ac_top_build_prefix
8176
8177 case $srcdir in
8178 .) # We are building in place.
8179 ac_srcdir=.
8180 ac_top_srcdir=$ac_top_builddir_sub
8181 ac_abs_top_srcdir=$ac_pwd ;;
8182 [\\/]* | ?:[\\/]* ) # Absolute name.
8183 ac_srcdir=$srcdir$ac_dir_suffix;
8184 ac_top_srcdir=$srcdir
8185 ac_abs_top_srcdir=$srcdir ;;
8186 *) # Relative name.
8187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8188 ac_top_srcdir=$ac_top_build_prefix$srcdir
8189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8190 esac
8191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8192
8193
8194 case $ac_mode in
8195 :F)
8196 #
8197 # CONFIG_FILE
8198 #
8199
8200 _ACEOF
8201
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203 # If the template does not know about datarootdir, expand it.
8204 # FIXME: This hack should be removed a few years after 2.60.
8205 ac_datarootdir_hack=; ac_datarootdir_seen=
8206 ac_sed_dataroot='
8207 /datarootdir/ {
8208 p
8209 q
8210 }
8211 /@datadir@/p
8212 /@docdir@/p
8213 /@infodir@/p
8214 /@localedir@/p
8215 /@mandir@/p'
8216 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8217 *datarootdir*) ac_datarootdir_seen=yes;;
8218 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8220 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8221 _ACEOF
8222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8223 ac_datarootdir_hack='
8224 s&@datadir@&$datadir&g
8225 s&@docdir@&$docdir&g
8226 s&@infodir@&$infodir&g
8227 s&@localedir@&$localedir&g
8228 s&@mandir@&$mandir&g
8229 s&\\\${datarootdir}&$datarootdir&g' ;;
8230 esac
8231 _ACEOF
8232
8233 # Neutralize VPATH when '$srcdir' = '.'.
8234 # Shell code in configure.ac might set extrasub.
8235 # FIXME: do we really want to maintain this feature?
8236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8237 ac_sed_extra="$ac_vpsub
8238 $extrasub
8239 _ACEOF
8240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8241 :t
8242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8243 s|@configure_input@|$ac_sed_conf_input|;t t
8244 s&@top_builddir@&$ac_top_builddir_sub&;t t
8245 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8246 s&@srcdir@&$ac_srcdir&;t t
8247 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8248 s&@top_srcdir@&$ac_top_srcdir&;t t
8249 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8250 s&@builddir@&$ac_builddir&;t t
8251 s&@abs_builddir@&$ac_abs_builddir&;t t
8252 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8253 $ac_datarootdir_hack
8254 "
8255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8256 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8257
8258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8259 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8261 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8263 which seems to be undefined. Please make sure it is defined" >&5
8264 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8265 which seems to be undefined. Please make sure it is defined" >&2;}
8266
8267 rm -f "$ac_tmp/stdin"
8268 case $ac_file in
8269 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8270 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8271 esac \
8272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8273 ;;
8274 :H)
8275 #
8276 # CONFIG_HEADER
8277 #
8278 if test x"$ac_file" != x-; then
8279 {
8280 printf "%s\n" "/* $configure_input */" >&1 \
8281 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8282 } >"$ac_tmp/config.h" \
8283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8284 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8286 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8287 else
8288 rm -f "$ac_file"
8289 mv "$ac_tmp/config.h" "$ac_file" \
8290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8291 fi
8292 else
8293 printf "%s\n" "/* $configure_input */" >&1 \
8294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8295 || as_fn_error $? "could not create -" "$LINENO" 5
8296 fi
8297 # Compute "$ac_file"'s index in $config_headers.
8298 _am_arg="$ac_file"
8299 _am_stamp_count=1
8300 for _am_header in $config_headers :; do
8301 case $_am_header in
8302 $_am_arg | $_am_arg:* )
8303 break ;;
8304 * )
8305 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8306 esac
8307 done
8308 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8309 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8310 X"$_am_arg" : 'X\(//\)[^/]' \| \
8311 X"$_am_arg" : 'X\(//\)$' \| \
8312 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8313 printf "%s\n" X"$_am_arg" |
8314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8315 s//\1/
8316 q
8317 }
8318 /^X\(\/\/\)[^/].*/{
8319 s//\1/
8320 q
8321 }
8322 /^X\(\/\/\)$/{
8323 s//\1/
8324 q
8325 }
8326 /^X\(\/\).*/{
8327 s//\1/
8328 q
8329 }
8330 s/.*/./; q'`/stamp-h$_am_stamp_count
8331 ;;
8332
8333
8334 esac
8335
8336 done # for ac_tag
8337
8338
8339 as_fn_exit 0
8340 _ACEOF
8341 ac_clean_files=$ac_clean_files_save
8342
8343 test $ac_write_fail = 0 ||
8344 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8345
8346
8347 # configure is writing to config.log, and then calls config.status.
8348 # config.status does its own redirection, appending to config.log.
8349 # Unfortunately, on DOS this fails, as config.log is still kept open
8350 # by configure, so config.status won't be able to write to it; its
8351 # output is simply discarded. So we exec the FD to /dev/null,
8352 # effectively closing config.log, so it can be properly (re)opened and
8353 # appended to by config.status. When coming back to configure, we
8354 # need to make the FD available again.
8355 if test "$no_create" != yes; then
8356 ac_cs_success=:
8357 ac_config_status_args=
8358 test "$silent" = yes &&
8359 ac_config_status_args="$ac_config_status_args --quiet"
8360 exec 5>/dev/null
8361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8362 exec 5>>config.log
8363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8364 # would make configure fail if this is the last instruction.
8365 $ac_cs_success || as_fn_exit 1
8366 fi
8367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8369 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8370 fi
8371
8372
8373
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Done)${term_norm}" >&5
8375 printf "%s\n" "$as_me: ${term_bold}** Readline (Done)${term_norm}" >&6;}
8376
8377