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