Debian Codegraph @

configure

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