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