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