]> git.ipfire.org Git - thirdparty/bash.git/blame - configure
Bash-4.2 direxpand with patch 26
[thirdparty/bash.git] / configure
CommitLineData
ccc6cda3 1#! /bin/sh
495aee44 2# From configure.in for Bash 4.2, version 4.037.
f73dda09 3# Guess values for system-dependent variables and create Makefiles.
495aee44 4# Generated by GNU Autoconf 2.63 for bash 4.2-release.
f73dda09
JA
5#
6# Report bugs to <bug-bash@gnu.org>.
7#
3185942a
JA
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
f73dda09
JA
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
b80f6443
JA
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
ccc6cda3 15
3185942a
JA
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
b80f6443
JA
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
3185942a 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
0628567a
JA
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
3185942a
JA
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (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 }
b80f6443
JA
82fi
83
84# Support unset when possible.
0628567a 85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b80f6443
JA
86 as_unset=unset
87else
88 as_unset=false
89fi
90
0628567a 91
3185942a
JA
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121fi
122
0628567a 123# Work around bugs in pre-3.0 UWIN ksh.
3185942a
JA
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
0628567a
JA
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
3185942a
JA
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
0628567a
JA
136
137# Required to use basename.
3185942a
JA
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
0628567a
JA
140 as_expr=expr
141else
142 as_expr=false
143fi
144
3185942a 145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
0628567a
JA
146 as_basename=basename
147else
148 as_basename=false
149fi
b80f6443
JA
150
151
152# Name of the executable.
3185942a 153as_me=`$as_basename -- "$0" ||
b80f6443
JA
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
3185942a
JA
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157$as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
b80f6443 171
3185942a
JA
172# CDPATH.
173$as_unset CDPATH
0628567a 174
ccc6cda3 175
3185942a
JA
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
b80f6443 181fi
ccc6cda3 182
3185942a
JA
183 if test $as_have_required = yes && (eval ":
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
ccc6cda3 199
3185942a
JA
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
ccc6cda3 207
3185942a
JA
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
b80f6443
JA
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
3185942a 248 case $as_dir in
b80f6443 249 /*)
3185942a
JA
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
b80f6443
JA
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
b80f6443 352 test "x$as_lineno_1" != "x$as_lineno_2" &&
3185942a
JA
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b80f6443
JA
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
3185942a
JA
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
b80f6443 458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3185942a
JA
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
b80f6443 465 sed '
3185942a
JA
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
b80f6443 470 N
3185942a
JA
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b80f6443 473 t loop
3185942a 474 s/-\n.*//
b80f6443 475 ' >$as_me.lineno &&
3185942a
JA
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b80f6443
JA
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
3185942a
JA
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
b80f6443
JA
484 # Exit status is that of the last command.
485 exit
486}
487
488
3185942a
JA
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
ccc6cda3 494
3185942a
JA
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
504esac
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f73dda09
JA
507 as_expr=expr
508else
509 as_expr=false
510fi
ccc6cda3 511
f73dda09 512rm -f conf$$ conf$$.exe conf$$.file
3185942a
JA
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
f73dda09 521 as_ln_s='ln -s'
3185942a
JA
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
f73dda09 532 fi
f73dda09
JA
533else
534 as_ln_s='cp -p'
535fi
3185942a
JA
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
ccc6cda3 538
0628567a
JA
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
545
3185942a
JA
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
b80f6443
JA
568
569# Sed expression to map a string onto a valid CPP name.
0628567a 570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b80f6443
JA
571
572# Sed expression to map a string onto a valid variable name.
0628567a 573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b80f6443 574
f73dda09 575
b80f6443 576
3185942a 577exec 7<&0 </dev/null 6>&1
f73dda09
JA
578
579# Name of the host.
580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
726f6388 584#
f73dda09
JA
585# Initializations.
586#
ccc6cda3 587ac_default_prefix=/usr/local
3185942a 588ac_clean_files=
0628567a 589ac_config_libobj_dir=.
3185942a 590LIBOBJS=
f73dda09
JA
591cross_compiling=no
592subdirs=
b80f6443
JA
593MFLAGS=
594MAKEFLAGS=
f73dda09
JA
595SHELL=${CONFIG_SHELL-/bin/sh}
596
b80f6443
JA
597# Identity of this package.
598PACKAGE_NAME='bash'
599PACKAGE_TARNAME='bash'
495aee44
CR
600PACKAGE_VERSION='4.2-release'
601PACKAGE_STRING='bash 4.2-release'
b80f6443
JA
602PACKAGE_BUGREPORT='bug-bash@gnu.org'
603
f73dda09
JA
604ac_unique_file="shell.h"
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
3185942a 608#ifdef HAVE_SYS_TYPES_H
f73dda09
JA
609# include <sys/types.h>
610#endif
3185942a 611#ifdef HAVE_SYS_STAT_H
f73dda09
JA
612# include <sys/stat.h>
613#endif
3185942a 614#ifdef STDC_HEADERS
f73dda09
JA
615# include <stdlib.h>
616# include <stddef.h>
617#else
3185942a 618# ifdef HAVE_STDLIB_H
f73dda09
JA
619# include <stdlib.h>
620# endif
621#endif
3185942a
JA
622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f73dda09
JA
624# include <memory.h>
625# endif
626# include <string.h>
627#endif
3185942a 628#ifdef HAVE_STRINGS_H
f73dda09
JA
629# include <strings.h>
630#endif
3185942a 631#ifdef HAVE_INTTYPES_H
f73dda09 632# include <inttypes.h>
f73dda09 633#endif
3185942a
JA
634#ifdef HAVE_STDINT_H
635# include <stdint.h>
636#endif
637#ifdef HAVE_UNISTD_H
f73dda09
JA
638# include <unistd.h>
639#endif"
ccc6cda3 640
3185942a
JA
641ac_header_list=
642ac_func_list=
643ac_subst_vars='LTLIBOBJS
644LOCAL_DEFS
645LOCAL_LDFLAGS
646LOCAL_CFLAGS
647LOCAL_LIBS
648MALLOC_DEBUG
649DEBUG
650RELSTATUS
651BASHVERS
652ARFLAGS
653BUILD_DIR
654incdir
655PROFILE_FLAGS
656SHOBJ_STATUS
657SHOBJ_LIBS
658SHOBJ_XLDFLAGS
659SHOBJ_LDFLAGS
660SHOBJ_LD
661SHOBJ_CFLAGS
662SHOBJ_CC
663JOBS_O
664TERMCAP_DEP
665TERMCAP_LIB
666SIGLIST_O
667LIBINTL_H
668INTL_INC
669INTL_DEP
670LIBOBJS
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
683INTLBISON
684LTLIBICONV
685LIBICONV
686GLIBC21
687ALLOCA
688MSGMERGE
689XGETTEXT
690GMSGFMT
691MSGFMT
692USE_NLS
693MKINSTALLDIRS
694SIZE
695MAKE_SHELL
696SET_MAKE
697YFLAGS
698YACC
699RANLIB
700AR
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704TILDE_LIB
705HIST_LIBDIR
706HISTORY_DEP
707HISTORY_LIB
708RL_INCLUDE
709RL_INCLUDEDIR
710RL_LIBDIR
711READLINE_DEP
712READLINE_LIB
713RL_MINOR
714RL_MAJOR
715RL_VERSION
716LDFLAGS_FOR_BUILD
717CPPFLAGS_FOR_BUILD
718CFLAGS_FOR_BUILD
719STATIC_LD
720CC_FOR_BUILD
721SIGNAMES_O
722SIGNAMES_H
723CROSS_COMPILE
724EGREP
725GREP
726CPP
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734HELPSTRINGS
735HELPINSTALL
736HELPDIRDEFINE
737HELPDIR
738MALLOC_DEP
739MALLOC_LDFLAGS
740MALLOC_LIBRARY
741MALLOC_LIB
742MALLOC_SRC
743MALLOC_TARGET
744PURIFY
745TESTSCRIPT
746DEBUGGER_START_FILE
3185942a
JA
747host_os
748host_vendor
749host_cpu
750host
751build_os
752build_vendor
753build_cpu
754build
755target_alias
756host_alias
757build_alias
758LIBS
759ECHO_T
760ECHO_N
761ECHO_C
762DEFS
763mandir
764localedir
765libdir
766psdir
767pdfdir
768dvidir
769htmldir
770infodir
771docdir
772oldincludedir
773includedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
0628567a 792ac_subst_files=''
3185942a
JA
793ac_user_opts='
794enable_option_checking
3185942a
JA
795with_afs
796with_bash_malloc
797with_curses
798with_gnu_malloc
799with_installed_readline
800with_purecov
801with_purify
802enable_minimal_config
803enable_alias
804enable_arith_for_command
805enable_array_variables
806enable_bang_history
807enable_brace_expansion
808enable_casemod_attributes
809enable_casemod_expansions
810enable_command_timing
811enable_cond_command
812enable_cond_regexp
813enable_coprocesses
814enable_debugger
815enable_directory_stack
816enable_disabled_builtins
817enable_dparen_arithmetic
818enable_extended_glob
0001803f 819enable_extended_glob_default
3185942a
JA
820enable_help_builtin
821enable_history
822enable_job_control
823enable_multibyte
824enable_net_redirections
825enable_process_substitution
826enable_progcomp
827enable_prompt_string_decoding
828enable_readline
829enable_restricted
830enable_select
831enable_separate_helpfiles
832enable_single_help_strings
833enable_strict_posix_default
834enable_usg_echo_default
835enable_xpg_echo_default
836enable_mem_scramble
837enable_profiling
838enable_static_link
839enable_largefile
840enable_nls
841with_gnu_ld
842enable_rpath
843with_libiconv_prefix
495aee44 844enable_nls
3185942a
JA
845with_included_gettext
846with_libintl_prefix
847'
848 ac_precious_vars='build_alias
849host_alias
850target_alias
851DEBUGGER_START_FILE
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
495aee44 858CPPFLAGS
3185942a
JA
859YACC
860YFLAGS'
861
b80f6443 862
ccc6cda3 863# Initialize some variables set by options.
f73dda09
JA
864ac_init_help=
865ac_init_version=false
3185942a
JA
866ac_unrecognized_opts=
867ac_unrecognized_sep=
ccc6cda3
JA
868# The variables have the same names as the options, with
869# dashes changed to underlines.
f73dda09 870cache_file=/dev/null
ccc6cda3 871exec_prefix=NONE
ccc6cda3 872no_create=
ccc6cda3
JA
873no_recursion=
874prefix=NONE
875program_prefix=NONE
876program_suffix=NONE
877program_transform_name=s,x,x,
878silent=
879site=
880srcdir=
ccc6cda3
JA
881verbose=
882x_includes=NONE
883x_libraries=NONE
f73dda09
JA
884
885# Installation directory options.
886# These are left unexpanded so users can "make install exec_prefix=/foo"
887# and all the variables that are supposed to be based on exec_prefix
888# by default will actually change.
889# Use braces instead of parens because sh, perl, etc. also accept them.
3185942a 890# (The list follows the same order as the GNU Coding Standards.)
ccc6cda3
JA
891bindir='${exec_prefix}/bin'
892sbindir='${exec_prefix}/sbin'
893libexecdir='${exec_prefix}/libexec'
3185942a
JA
894datarootdir='${prefix}/share'
895datadir='${datarootdir}'
ccc6cda3
JA
896sysconfdir='${prefix}/etc'
897sharedstatedir='${prefix}/com'
898localstatedir='${prefix}/var'
ccc6cda3
JA
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
3185942a
JA
901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
ccc6cda3 910
ccc6cda3 911ac_prev=
3185942a 912ac_dashdash=
ccc6cda3
JA
913for ac_option
914do
ccc6cda3
JA
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
3185942a 917 eval $ac_prev=\$ac_option
ccc6cda3
JA
918 ac_prev=
919 continue
920 fi
921
3185942a
JA
922 case $ac_option in
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *) ac_optarg=yes ;;
925 esac
ccc6cda3
JA
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
3185942a
JA
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
ccc6cda3
JA
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f73dda09 936 bindir=$ac_optarg ;;
ccc6cda3
JA
937
938 -build | --build | --buil | --bui | --bu)
f73dda09 939 ac_prev=build_alias ;;
ccc6cda3 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f73dda09 941 build_alias=$ac_optarg ;;
ccc6cda3
JA
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f73dda09
JA
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
ccc6cda3 952
3185942a 953 -datadir | --datadir | --datadi | --datad)
ccc6cda3 954 ac_prev=datadir ;;
3185942a 955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f73dda09 956 datadir=$ac_optarg ;;
ccc6cda3 957
3185942a
JA
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
ccc6cda3 965 -disable-* | --disable-*)
3185942a 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ccc6cda3 967 # Reject names that are not valid shell variable names.
3185942a
JA
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
f73dda09 970 { (exit 1); exit 1; }; }
3185942a
JA
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
ccc6cda3
JA
991
992 -enable-* | --enable-*)
3185942a 993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ccc6cda3 994 # Reject names that are not valid shell variable names.
3185942a
JA
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
f73dda09 997 { (exit 1); exit 1; }; }
3185942a
JA
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
ccc6cda3 1006 esac
3185942a 1007 eval enable_$ac_useropt=\$ac_optarg ;;
ccc6cda3
JA
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
f73dda09 1016 exec_prefix=$ac_optarg ;;
ccc6cda3
JA
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
f73dda09
JA
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
ccc6cda3
JA
1028
1029 -host | --host | --hos | --ho)
f73dda09 1030 ac_prev=host_alias ;;
ccc6cda3 1031 -host=* | --host=* | --hos=* | --ho=*)
f73dda09 1032 host_alias=$ac_optarg ;;
ccc6cda3 1033
3185942a
JA
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
ccc6cda3
JA
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
f73dda09 1045 includedir=$ac_optarg ;;
ccc6cda3
JA
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f73dda09 1050 infodir=$ac_optarg ;;
ccc6cda3
JA
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f73dda09 1055 libdir=$ac_optarg ;;
ccc6cda3
JA
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
f73dda09 1062 libexecdir=$ac_optarg ;;
ccc6cda3 1063
3185942a
JA
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
ccc6cda3 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
3185942a 1070 | --localstate | --localstat | --localsta | --localst | --locals)
ccc6cda3
JA
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3185942a 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f73dda09 1074 localstatedir=$ac_optarg ;;
ccc6cda3
JA
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f73dda09 1079 mandir=$ac_optarg ;;
ccc6cda3
JA
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b80f6443 1086 | --no-cr | --no-c | -n)
ccc6cda3
JA
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f73dda09 1100 oldincludedir=$ac_optarg ;;
ccc6cda3
JA
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f73dda09 1105 prefix=$ac_optarg ;;
ccc6cda3
JA
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f73dda09 1112 program_prefix=$ac_optarg ;;
ccc6cda3
JA
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f73dda09 1119 program_suffix=$ac_optarg ;;
ccc6cda3
JA
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
f73dda09 1136 program_transform_name=$ac_optarg ;;
ccc6cda3 1137
3185942a
JA
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
ccc6cda3
JA
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
f73dda09 1156 sbindir=$ac_optarg ;;
ccc6cda3
JA
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
f73dda09 1167 sharedstatedir=$ac_optarg ;;
ccc6cda3
JA
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
f73dda09 1172 site=$ac_optarg ;;
ccc6cda3
JA
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f73dda09 1177 srcdir=$ac_optarg ;;
ccc6cda3
JA
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f73dda09 1184 sysconfdir=$ac_optarg ;;
ccc6cda3
JA
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
f73dda09 1187 ac_prev=target_alias ;;
ccc6cda3 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f73dda09 1189 target_alias=$ac_optarg ;;
ccc6cda3
JA
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
f73dda09
JA
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
ccc6cda3
JA
1196
1197 -with-* | --with-*)
3185942a 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ccc6cda3 1199 # Reject names that are not valid shell variable names.
3185942a
JA
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
f73dda09 1202 { (exit 1); exit 1; }; }
3185942a
JA
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207"with_$ac_useropt"
1208"*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
ccc6cda3 1211 esac
3185942a 1212 eval with_$ac_useropt=\$ac_optarg ;;
ccc6cda3
JA
1213
1214 -without-* | --without-*)
3185942a 1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ccc6cda3 1216 # Reject names that are not valid shell variable names.
3185942a
JA
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
f73dda09 1219 { (exit 1); exit 1; }; }
3185942a
JA
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
ccc6cda3
JA
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f73dda09 1240 x_includes=$ac_optarg ;;
ccc6cda3
JA
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f73dda09 1247 x_libraries=$ac_optarg ;;
ccc6cda3 1248
3185942a 1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
f73dda09
JA
1250Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
ccc6cda3
JA
1252 ;;
1253
f73dda09
JA
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
3185942a 1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
f73dda09 1259 { (exit 1); exit 1; }; }
3185942a 1260 eval $ac_envvar=\$ac_optarg
f73dda09
JA
1261 export $ac_envvar ;;
1262
ccc6cda3 1263 *)
f73dda09 1264 # FIXME: should be removed in autoconf 3.0.
3185942a 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
f73dda09 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3185942a 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f73dda09 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ccc6cda3
JA
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
f73dda09 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
3185942a 1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
f73dda09 1277 { (exit 1); exit 1; }; }
ccc6cda3 1278fi
ccc6cda3 1279
3185942a
JA
1280if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
f73dda09 1286 esac
3185942a 1287fi
ccc6cda3 1288
3185942a
JA
1289# Check all directory arguments for consistency.
1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
ccc6cda3 1294do
3185942a
JA
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
f73dda09 1297 case $ac_val in
3185942a
JA
1298 */ )
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
ccc6cda3 1301 esac
3185942a
JA
1302 # Be sure to have absolute directory names.
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
ccc6cda3
JA
1309done
1310
f73dda09
JA
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
b80f6443 1313# FIXME: To remove some day.
f73dda09
JA
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
b80f6443 1318# FIXME: To remove some day.
f73dda09
JA
1319if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
3185942a 1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
f73dda09
JA
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327fi
ccc6cda3 1328
f73dda09
JA
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
ccc6cda3 1331
f73dda09 1332test "$silent" = yes && exec 6>/dev/null
ccc6cda3 1333
b80f6443 1334
3185942a
JA
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1343
1344
ccc6cda3
JA
1345# Find the source files, if location was not specified.
1346if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
3185942a
JA
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354$as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
ccc6cda3 1372 srcdir=$ac_confdir
3185942a 1373 if test ! -r "$srcdir/$ac_unique_file"; then
ccc6cda3
JA
1374 srcdir=..
1375 fi
1376else
1377 ac_srcdir_defaulted=no
1378fi
3185942a
JA
1379if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f73dda09 1382 { (exit 1); exit 1; }; }
ccc6cda3 1383fi
3185942a
JA
1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
0628567a 1387 { (exit 1); exit 1; }; }
3185942a
JA
1388 pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
ccc6cda3 1405
f73dda09
JA
1406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
b80f6443 1412 cat <<_ACEOF
495aee44 1413\`configure' configures bash 4.2-release to adapt to many kinds of systems.
ccc6cda3 1414
f73dda09 1415Usage: $0 [OPTION]... [VAR=VALUE]...
ccc6cda3 1416
f73dda09
JA
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
ccc6cda3 1421
f73dda09
JA
1422Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
ccc6cda3 1432
f73dda09
JA
1433Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
3185942a 1435 [$ac_default_prefix]
f73dda09 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
3185942a 1437 [PREFIX]
ccc6cda3 1438
f73dda09
JA
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
ccc6cda3 1443
f73dda09 1444For better control, use the options below.
ccc6cda3 1445
f73dda09 1446Fine tuning of the installation directories:
3185942a
JA
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
b80f6443 1466_ACEOF
f73dda09 1467
b80f6443 1468 cat <<\_ACEOF
f73dda09
JA
1469
1470System types:
1471 --build=BUILD configure for building on BUILD [guessed]
b80f6443
JA
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
ccc6cda3 1474fi
ccc6cda3 1475
f73dda09
JA
1476if test -n "$ac_init_help"; then
1477 case $ac_init_help in
495aee44 1478 short | recursive ) echo "Configuration of bash 4.2-release:";;
f73dda09 1479 esac
b80f6443 1480 cat <<\_ACEOF
ccc6cda3 1481
f73dda09 1482Optional Features:
3185942a 1483 --disable-option-checking ignore unrecognized --enable/--with options
f73dda09
JA
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7117c2d2
JA
1486 --enable-minimal-config a minimal sh-like configuration
1487 --enable-alias enable shell aliases
1488 --enable-arith-for-command
1489 enable arithmetic for command
1490 --enable-array-variables
1491 include shell array variables
1492 --enable-bang-history turn on csh-style history substitution
1493 --enable-brace-expansion
1494 include brace expansion
3185942a
JA
1495 --enable-casemod-attributes
1496 include case-modifying variable attributes
1497 --enable-casemod-expansions
1498 include case-modifying word expansions
7117c2d2
JA
1499 --enable-command-timing enable the time reserved word and command timing
1500 --enable-cond-command enable the conditional command
3185942a 1501 --enable-cond-regexp enable extended regular expression matching in
b80f6443 1502 conditional commands
3185942a
JA
1503 --enable-coprocesses enable coprocess support and the coproc reserved
1504 word
b80f6443 1505 --enable-debugger enable support for bash debugger
7117c2d2
JA
1506 --enable-directory-stack
1507 enable builtins pushd/popd/dirs
1508 --enable-disabled-builtins
1509 allow disabled builtins to still be invoked
1510 --enable-dparen-arithmetic
1511 include ((...)) command
1512 --enable-extended-glob include ksh-style extended pattern matching
0001803f
CR
1513 --enable-extended-glob-default
1514 force extended pattern matching to be enabled by
1515 default
7117c2d2
JA
1516 --enable-help-builtin include the help builtin
1517 --enable-history turn on command history
1518 --enable-job-control enable job control features
b80f6443 1519 --enable-multibyte enable multibyte characters if OS supports them
7117c2d2
JA
1520 --enable-net-redirections
1521 enable /dev/tcp/host/port redirection
1522 --enable-process-substitution
1523 enable process substitution
1524 --enable-progcomp enable programmable completion and the complete
1525 builtin
1526 --enable-prompt-string-decoding
1527 turn on escape character decoding in prompts
1528 --enable-readline turn on command line editing
1529 --enable-restricted enable a restricted shell
1530 --enable-select include select command
1531 --enable-separate-helpfiles
1532 use external files for help builtin documentation
95732b49
JA
1533 --enable-single-help-strings
1534 store help documentation as a single string to ease
1535 translation
1536 --enable-strict-posix-default
1537 configure bash to be posix-conformant by default
7117c2d2
JA
1538 --enable-usg-echo-default
1539 a synonym for --enable-xpg-echo-default
1540 --enable-xpg-echo-default
1541 make the echo builtin expand escape sequences by
1542 default
1543 --enable-mem-scramble scramble memory on calls to malloc and free
1544 --enable-profiling allow profiling with gprof
1545 --enable-static-link link bash statically, for use as a root shell
f73dda09 1546 --disable-largefile omit support for large files
b80f6443
JA
1547 --disable-nls do not use Native Language Support
1548 --disable-rpath do not hardcode runtime library paths
f73dda09
JA
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
7117c2d2
JA
1553 --with-afs if you are running AFS
1554 --with-bash-malloc use the Bash version of malloc
1555 --with-curses use the curses library instead of the termcap
1556 library
1557 --with-gnu-malloc synonym for --with-bash-malloc
1558 --with-installed-readline
1559 use a version of the readline library that is
1560 already installed
1561 --with-purecov configure to postprocess with pure coverage
1562 --with-purify configure to postprocess with purify
b80f6443
JA
1563 --with-gnu-ld assume the C compiler uses GNU ld default=no
1564 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1565 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1566 --with-included-gettext use the GNU gettext library included here
1567 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1568 --without-libintl-prefix don't search for libintl in includedir and libdir
f73dda09
JA
1569
1570Some influential environment variables:
b80f6443
JA
1571 DEBUGGER_START_FILE
1572 location of bash debugger initialization file
f73dda09
JA
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
3185942a
JA
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
f73dda09 1580 CPP C preprocessor
3185942a
JA
1581 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1582 the first program found out of: `bison -y', `byacc', `yacc'.
1583 YFLAGS The list of arguments that will be passed by default to $YACC.
1584 This script will default YFLAGS to the empty string to avoid a
1585 default value of `-d' given by some make applications.
f73dda09
JA
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <bug-bash@gnu.org>.
b80f6443 1591_ACEOF
3185942a 1592ac_status=$?
f73dda09
JA
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
b80f6443 1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
3185942a
JA
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
b80f6443
JA
1601 ac_builddir=.
1602
3185942a
JA
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
ccc6cda3 1618
b80f6443 1619case $srcdir in
3185942a 1620 .) # We are building in place.
b80f6443 1621 ac_srcdir=.
3185942a
JA
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
b80f6443 1625 ac_srcdir=$srcdir$ac_dir_suffix;
3185942a
JA
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0628567a 1632esac
3185942a
JA
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
f73dda09 1643 else
3185942a
JA
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
f73dda09
JA
1647 done
1648fi
ccc6cda3 1649
3185942a 1650test -n "$ac_init_help" && exit $ac_status
f73dda09 1651if $ac_init_version; then
b80f6443 1652 cat <<\_ACEOF
495aee44 1653bash configure 4.2-release
3185942a 1654generated by GNU Autoconf 2.63
ccc6cda3 1655
3185942a
JA
1656Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16572002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
f73dda09
JA
1658This configure script is free software; the Free Software Foundation
1659gives unlimited permission to copy, distribute and modify it.
b80f6443 1660_ACEOF
3185942a 1661 exit
f73dda09 1662fi
3185942a 1663cat >config.log <<_ACEOF
f73dda09
JA
1664This file contains any messages produced by compilers while
1665running configure, to aid debugging if configure makes a mistake.
ccc6cda3 1666
495aee44 1667It was created by bash $as_me 4.2-release, which was
3185942a 1668generated by GNU Autoconf 2.63. Invocation command line was
ccc6cda3 1669
f73dda09 1670 $ $0 $@
bb70624e 1671
b80f6443 1672_ACEOF
3185942a 1673exec 5>>config.log
f73dda09
JA
1674{
1675cat <<_ASUNAME
b80f6443
JA
1676## --------- ##
1677## Platform. ##
1678## --------- ##
f73dda09
JA
1679
1680hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1688
1689/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3185942a 1692/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
f73dda09
JA
1693/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1696
f73dda09 1697_ASUNAME
b80f6443
JA
1698
1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
3185942a 1704 $as_echo "PATH: $as_dir"
b80f6443 1705done
3185942a 1706IFS=$as_save_IFS
b80f6443 1707
f73dda09
JA
1708} >&5
1709
b80f6443
JA
1710cat >&5 <<_ACEOF
1711
1712
1713## ----------- ##
1714## Core tests. ##
1715## ----------- ##
1716
1717_ACEOF
f73dda09 1718
f73dda09
JA
1719
1720# Keep a trace of the command line.
1721# Strip out --no-create and --no-recursion so they do not pile up.
0628567a 1722# Strip out --silent because we don't want to record it for future runs.
f73dda09 1723# Also quote any args containing shell meta-characters.
0628567a 1724# Make two passes to allow for proper duplicate-argument suppression.
f73dda09 1725ac_configure_args=
0628567a
JA
1726ac_configure_args0=
1727ac_configure_args1=
0628567a
JA
1728ac_must_keep_next=false
1729for ac_pass in 1 2
f73dda09 1730do
0628567a
JA
1731 for ac_arg
1732 do
1733 case $ac_arg in
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1737 continue ;;
3185942a
JA
1738 *\'*)
1739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
0628567a
JA
1740 esac
1741 case $ac_pass in
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743 2)
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1747 else
1748 case $ac_arg in
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 esac
1756 ;;
1757 -* ) ac_must_keep_next=true ;;
1758 esac
1759 fi
3185942a 1760 ac_configure_args="$ac_configure_args '$ac_arg'"
0628567a
JA
1761 ;;
1762 esac
1763 done
f73dda09 1764done
0628567a
JA
1765$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f73dda09
JA
1767
1768# When interrupted or exit'd, cleanup temporary files, and complete
1769# config.log. We remove comments because anyway the quotes in there
1770# would cause problems or look ugly.
3185942a
JA
1771# WARNING: Use '\'' to represent an apostrophe within the trap.
1772# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f73dda09
JA
1773trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
b80f6443
JA
1775 {
1776 echo
0628567a 1777
b80f6443
JA
1778 cat <<\_ASBOX
1779## ---------------- ##
1780## Cache variables. ##
1781## ---------------- ##
1782_ASBOX
1783 echo
1784 # The following way of writing the cache mishandles newlines in values,
3185942a
JA
1785(
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1788 case $ac_val in #(
1789 *${as_nl}*)
1790 case $ac_var in #(
1791 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1792$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1793 esac
1794 case $ac_var in #(
1795 _ | IFS | as_nl) ;; #(
1796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1797 *) $as_unset $ac_var ;;
1798 esac ;;
1799 esac
1800 done
f73dda09 1801 (set) 2>&1 |
3185942a
JA
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
f73dda09 1804 sed -n \
3185942a
JA
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 ;; #(
f73dda09 1808 *)
3185942a 1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f73dda09 1810 ;;
3185942a
JA
1811 esac |
1812 sort
1813)
b80f6443 1814 echo
0628567a
JA
1815
1816 cat <<\_ASBOX
1817## ----------------- ##
1818## Output variables. ##
1819## ----------------- ##
1820_ASBOX
1821 echo
1822 for ac_var in $ac_subst_vars
1823 do
3185942a
JA
1824 eval ac_val=\$$ac_var
1825 case $ac_val in
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 esac
1828 $as_echo "$ac_var='\''$ac_val'\''"
0628567a
JA
1829 done | sort
1830 echo
1831
1832 if test -n "$ac_subst_files"; then
1833 cat <<\_ASBOX
3185942a
JA
1834## ------------------- ##
1835## File substitutions. ##
1836## ------------------- ##
0628567a
JA
1837_ASBOX
1838 echo
1839 for ac_var in $ac_subst_files
1840 do
3185942a
JA
1841 eval ac_val=\$$ac_var
1842 case $ac_val in
1843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 esac
1845 $as_echo "$ac_var='\''$ac_val'\''"
0628567a
JA
1846 done | sort
1847 echo
1848 fi
1849
b80f6443
JA
1850 if test -s confdefs.h; then
1851 cat <<\_ASBOX
1852## ----------- ##
1853## confdefs.h. ##
1854## ----------- ##
1855_ASBOX
1856 echo
3185942a 1857 cat confdefs.h
b80f6443
JA
1858 echo
1859 fi
1860 test "$ac_signal" != 0 &&
3185942a
JA
1861 $as_echo "$as_me: caught signal $ac_signal"
1862 $as_echo "$as_me: exit $exit_status"
b80f6443 1863 } >&5
3185942a
JA
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f73dda09 1866 exit $exit_status
3185942a 1867' 0
f73dda09
JA
1868for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870done
1871ac_signal=0
1872
1873# confdefs.h avoids OS command line length limits that DEFS can exceed.
3185942a 1874rm -f -r conftest* confdefs.h
f73dda09 1875
b80f6443
JA
1876# Predefined preprocessor variables.
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_NAME "$PACKAGE_NAME"
1880_ACEOF
1881
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_VERSION "$PACKAGE_VERSION"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_STRING "$PACKAGE_STRING"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900_ACEOF
1901
1902
f73dda09 1903# Let the site file select an alternate cache file if it wants to.
3185942a
JA
1904# Prefer an explicitly selected file to automatically selected ones.
1905ac_site_file1=NONE
1906ac_site_file2=NONE
1907if test -n "$CONFIG_SITE"; then
1908 ac_site_file1=$CONFIG_SITE
1909elif test "x$prefix" != xNONE; then
1910 ac_site_file1=$prefix/share/config.site
1911 ac_site_file2=$prefix/etc/config.site
1912else
1913 ac_site_file1=$ac_default_prefix/share/config.site
1914 ac_site_file2=$ac_default_prefix/etc/config.site
1915fi
1916for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1917do
1918 test "x$ac_site_file" = xNONE && continue
f73dda09 1919 if test -r "$ac_site_file"; then
3185942a
JA
1920 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b80f6443 1922 sed 's/^/| /' "$ac_site_file" >&5
f73dda09
JA
1923 . "$ac_site_file"
1924 fi
1925done
1926
1927if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
3185942a
JA
1931 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932$as_echo "$as_me: loading cache $cache_file" >&6;}
f73dda09 1933 case $cache_file in
3185942a
JA
1934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935 *) . "./$cache_file";;
f73dda09
JA
1936 esac
1937 fi
1938else
3185942a
JA
1939 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940$as_echo "$as_me: creating cache $cache_file" >&6;}
f73dda09
JA
1941 >$cache_file
1942fi
1943
3185942a
JA
1944ac_header_list="$ac_header_list sys/time.h"
1945ac_header_list="$ac_header_list unistd.h"
1946ac_func_list="$ac_func_list alarm"
1947ac_func_list="$ac_func_list fpurge"
1948ac_func_list="$ac_func_list __fpurge"
0001803f
CR
1949ac_func_list="$ac_func_list snprintf"
1950ac_func_list="$ac_func_list vsnprintf"
f73dda09
JA
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
3185942a 1954for ac_var in $ac_precious_vars; do
f73dda09
JA
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
3185942a
JA
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
f73dda09
JA
1959 case $ac_old_set,$ac_new_set in
1960 set,)
3185942a
JA
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
f73dda09
JA
1963 ac_cache_corrupted=: ;;
1964 ,set)
3185942a
JA
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
f73dda09
JA
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
3185942a
JA
1971 # differences in whitespace do not lead to failure.
1972 ac_old_val_w=`echo x $ac_old_val`
1973 ac_new_val_w=`echo x $ac_new_val`
1974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977 ac_cache_corrupted=:
1978 else
1979 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1980$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1981 eval $ac_var=\$ac_old_val
1982 fi
1983 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1984$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1985 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1986$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
f73dda09
JA
1987 fi;;
1988 esac
b80f6443 1989 # Pass precious variables to config.status.
f73dda09
JA
1990 if test "$ac_new_set" = set; then
1991 case $ac_new_val in
3185942a 1992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b80f6443
JA
1993 *) ac_arg=$ac_var=$ac_new_val ;;
1994 esac
1995 case " $ac_configure_args " in
1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f73dda09
JA
1998 esac
1999 fi
2000done
2001if $ac_cache_corrupted; then
3185942a
JA
2002 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
f73dda09
JA
2008 { (exit 1); exit 1; }; }
2009fi
2010
b80f6443
JA
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
3185942a
JA
2035ac_ext=c
2036ac_cpp='$CPP $CPPFLAGS'
2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
b80f6443
JA
2040
2041
2042
0628567a 2043
b80f6443 2044
f73dda09
JA
2045
2046ac_aux_dir=
3185942a
JA
2047for ac_dir in ./support "$srcdir"/./support; do
2048 if test -f "$ac_dir/install-sh"; then
f73dda09
JA
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
3185942a 2052 elif test -f "$ac_dir/install.sh"; then
f73dda09
JA
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
3185942a 2056 elif test -f "$ac_dir/shtool"; then
f73dda09
JA
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061done
2062if test -z "$ac_aux_dir"; then
3185942a
JA
2063 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2064$as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
f73dda09
JA
2065 { (exit 1); exit 1; }; }
2066fi
f73dda09 2067
3185942a
JA
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
f73dda09 2076
3185942a 2077ac_config_headers="$ac_config_headers config.h"
b80f6443 2078
3185942a 2079
495aee44 2080BASHVERS=4.2
17345e5a 2081RELSTATUS=release
7117c2d2
JA
2082
2083case "$RELSTATUS" in
3185942a 2084alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
7117c2d2
JA
2085*) DEBUG= MALLOC_DEBUG= ;;
2086esac
f73dda09
JA
2087
2088# Make sure we can run config.sub.
3185942a
JA
2089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
f73dda09
JA
2092 { (exit 1); exit 1; }; }
2093
3185942a
JA
2094{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2095$as_echo_n "checking build system type... " >&6; }
f73dda09 2096if test "${ac_cv_build+set}" = set; then
3185942a
JA
2097 $as_echo_n "(cached) " >&6
2098else
2099 ac_build_alias=$build_alias
2100test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102test "x$ac_build_alias" = x &&
2103 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
f73dda09 2105 { (exit 1); exit 1; }; }
3185942a
JA
2106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
f73dda09
JA
2109 { (exit 1); exit 1; }; }
2110
2111fi
3185942a
JA
2112{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113$as_echo "$ac_cv_build" >&6; }
2114case $ac_cv_build in
2115*-*-*) ;;
2116*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2119esac
f73dda09 2120build=$ac_cv_build
3185942a
JA
2121ac_save_IFS=$IFS; IFS='-'
2122set x $ac_cv_build
2123shift
2124build_cpu=$1
2125build_vendor=$2
2126shift; shift
2127# Remember, the first character of IFS is used to create $*,
2128# except with old shells:
2129build_os=$*
2130IFS=$ac_save_IFS
2131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2132
2133
2134{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2135$as_echo_n "checking host system type... " >&6; }
f73dda09 2136if test "${ac_cv_host+set}" = set; then
3185942a
JA
2137 $as_echo_n "(cached) " >&6
2138else
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
f73dda09 2145 { (exit 1); exit 1; }; }
3185942a 2146fi
f73dda09
JA
2147
2148fi
3185942a
JA
2149{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150$as_echo "$ac_cv_host" >&6; }
2151case $ac_cv_host in
2152*-*-*) ;;
2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2156esac
f73dda09 2157host=$ac_cv_host
3185942a
JA
2158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_host
2160shift
2161host_cpu=$1
2162host_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166host_os=$*
2167IFS=$ac_save_IFS
2168case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f73dda09 2169
b80f6443
JA
2170
2171
f73dda09
JA
2172opt_bash_malloc=yes
2173opt_purify=no
2174opt_purecov=no
2175opt_afs=no
2176opt_curses=no
2177opt_with_installed_readline=no
2178
2179#htmldir=
2180
2181case "${host_cpu}-${host_os}" in
2182alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2183*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2184*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2185sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2186sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
bb70624e
JA
2187mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2188m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2189sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
95732b49 2190#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
7117c2d2 2191#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
f73dda09 2192*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
bb70624e
JA
2193*-aix*) opt_bash_malloc=no ;; # AIX machines
2194*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
28ef6c31
JA
2195*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2196*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2197*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
bb70624e 2198*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
95732b49 2199*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
bb70624e
JA
2200*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2201*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2202*-beos*) opt_bash_malloc=no ;; # they say it's suitable
28ef6c31
JA
2203*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2204*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
ccc6cda3
JA
2205esac
2206
7117c2d2
JA
2207# memory scrambling on free()
2208case "${host_os}" in
2209sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2210*) opt_memscramble=yes ;;
2211esac
2212
b80f6443 2213
b80f6443
JA
2214
2215
3185942a 2216# Check whether --with-afs was given.
d166f048 2217if test "${with_afs+set}" = set; then
3185942a
JA
2218 withval=$with_afs; opt_afs=$withval
2219fi
d166f048 2220
3185942a
JA
2221
2222# Check whether --with-bash-malloc was given.
bb70624e 2223if test "${with_bash_malloc+set}" = set; then
3185942a
JA
2224 withval=$with_bash_malloc; opt_bash_malloc=$withval
2225fi
bb70624e 2226
3185942a
JA
2227
2228# Check whether --with-curses was given.
d166f048 2229if test "${with_curses+set}" = set; then
3185942a
JA
2230 withval=$with_curses; opt_curses=$withval
2231fi
ccc6cda3 2232
3185942a
JA
2233
2234# Check whether --with-gnu-malloc was given.
d166f048 2235if test "${with_gnu_malloc+set}" = set; then
3185942a
JA
2236 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2237fi
d166f048 2238
3185942a
JA
2239
2240# Check whether --with-installed-readline was given.
b72432fd 2241if test "${with_installed_readline+set}" = set; then
3185942a
JA
2242 withval=$with_installed_readline; opt_with_installed_readline=$withval
2243fi
b72432fd 2244
3185942a
JA
2245
2246# Check whether --with-purecov was given.
d166f048 2247if test "${with_purecov+set}" = set; then
3185942a
JA
2248 withval=$with_purecov; opt_purecov=$withval
2249fi
d166f048 2250
3185942a
JA
2251
2252# Check whether --with-purify was given.
ccc6cda3 2253if test "${with_purify+set}" = set; then
3185942a
JA
2254 withval=$with_purify; opt_purify=$withval
2255fi
2256
ccc6cda3 2257
f73dda09 2258if test "$opt_bash_malloc" = yes; then
d166f048
JA
2259 MALLOC_TARGET=malloc
2260 MALLOC_SRC=malloc.c
f73dda09
JA
2261
2262 MALLOC_LIB='-lmalloc'
2263 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2264 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2265 MALLOC_DEP='$(MALLOC_LIBRARY)'
2266
b80f6443 2267 cat >>confdefs.h <<\_ACEOF
bb70624e 2268#define USING_BASH_MALLOC 1
b80f6443 2269_ACEOF
bb70624e 2270
ccc6cda3 2271else
f73dda09
JA
2272 MALLOC_LIB=
2273 MALLOC_LIBRARY=
2274 MALLOC_LDFLAGS=
2275 MALLOC_DEP=
ccc6cda3
JA
2276fi
2277
2278if test "$opt_purify" = yes; then
d166f048 2279 PURIFY="purify "
b80f6443 2280 cat >>confdefs.h <<\_ACEOF
7117c2d2 2281#define DISABLE_MALLOC_WRAPPERS 1
b80f6443 2282_ACEOF
7117c2d2 2283
ccc6cda3
JA
2284else
2285 PURIFY=
2286fi
2287
d166f048
JA
2288if test "$opt_purecov" = yes; then
2289 PURIFY="${PURIFY}purecov"
2290fi
2291
ccc6cda3 2292if test "$opt_afs" = yes; then
b80f6443 2293 cat >>confdefs.h <<\_ACEOF
ccc6cda3 2294#define AFS 1
b80f6443 2295_ACEOF
ccc6cda3
JA
2296
2297fi
2298
d166f048
JA
2299if test "$opt_curses" = yes; then
2300 prefer_curses=yes
2301fi
2302
b80f6443 2303if test -z "${DEBUGGER_START_FILE}"; then
3185942a 2304 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
b80f6443
JA
2305fi
2306
ccc6cda3
JA
2307opt_minimal_config=no
2308
2309opt_job_control=yes
2310opt_alias=yes
2311opt_readline=yes
2312opt_history=yes
2313opt_bang_history=yes
2314opt_dirstack=yes
2315opt_restricted=yes
2316opt_process_subst=yes
2317opt_prompt_decoding=yes
2318opt_select=yes
2319opt_help=yes
2320opt_array_variables=yes
2321opt_dparen_arith=yes
cce855bc 2322opt_extended_glob=yes
ccc6cda3
JA
2323opt_brace_expansion=yes
2324opt_disabled_builtins=no
2325opt_command_timing=yes
bb70624e 2326opt_xpg_echo=no
95732b49 2327opt_strict_posix=no
cce855bc 2328opt_cond_command=yes
b80f6443 2329opt_cond_regexp=yes
3185942a 2330opt_coproc=yes
bb70624e
JA
2331opt_arith_for_command=yes
2332opt_net_redirs=yes
2333opt_progcomp=yes
7117c2d2 2334opt_separate_help=no
b80f6443
JA
2335opt_multibyte=yes
2336opt_debugger=yes
95732b49 2337opt_single_longdoc_strings=yes
3185942a
JA
2338opt_casemod_attrs=yes
2339opt_casemod_expansions=yes
0001803f 2340opt_extglob_default=no
cce855bc
JA
2341
2342opt_static_link=no
2343opt_profiling=no
ccc6cda3 2344
3185942a 2345# Check whether --enable-minimal-config was given.
ccc6cda3 2346if test "${enable_minimal_config+set}" = set; then
3185942a
JA
2347 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2348fi
2349
ccc6cda3
JA
2350
2351if test $opt_minimal_config = yes; then
2352 opt_job_control=no opt_alias=no opt_readline=no
2353 opt_history=no opt_bang_history=no opt_dirstack=no
2354 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2355 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2356 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
bb70624e 2357 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
7117c2d2 2358 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3185942a 2359 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
0001803f 2360 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
ccc6cda3
JA
2361fi
2362
3185942a 2363# Check whether --enable-alias was given.
ccc6cda3 2364if test "${enable_alias+set}" = set; then
3185942a
JA
2365 enableval=$enable_alias; opt_alias=$enableval
2366fi
2367
2368# Check whether --enable-arith-for-command was given.
bb70624e 2369if test "${enable_arith_for_command+set}" = set; then
3185942a
JA
2370 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2371fi
2372
2373# Check whether --enable-array-variables was given.
d166f048 2374if test "${enable_array_variables+set}" = set; then
3185942a
JA
2375 enableval=$enable_array_variables; opt_array_variables=$enableval
2376fi
2377
2378# Check whether --enable-bang-history was given.
ccc6cda3 2379if test "${enable_bang_history+set}" = set; then
3185942a
JA
2380 enableval=$enable_bang_history; opt_bang_history=$enableval
2381fi
2382
2383# Check whether --enable-brace-expansion was given.
d166f048 2384if test "${enable_brace_expansion+set}" = set; then
3185942a
JA
2385 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2386fi
2387
2388# Check whether --enable-casemod-attributes was given.
2389if test "${enable_casemod_attributes+set}" = set; then
2390 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2391fi
2392
2393# Check whether --enable-casemod-expansions was given.
2394if test "${enable_casemod_expansions+set}" = set; then
2395 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2396fi
2397
2398# Check whether --enable-command-timing was given.
d166f048 2399if test "${enable_command_timing+set}" = set; then
3185942a
JA
2400 enableval=$enable_command_timing; opt_command_timing=$enableval
2401fi
2402
2403# Check whether --enable-cond-command was given.
cce855bc 2404if test "${enable_cond_command+set}" = set; then
3185942a
JA
2405 enableval=$enable_cond_command; opt_cond_command=$enableval
2406fi
2407
2408# Check whether --enable-cond-regexp was given.
b80f6443 2409if test "${enable_cond_regexp+set}" = set; then
3185942a
JA
2410 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2411fi
2412
2413# Check whether --enable-coprocesses was given.
2414if test "${enable_coprocesses+set}" = set; then
2415 enableval=$enable_coprocesses; opt_coproc=$enableval
2416fi
2417
2418# Check whether --enable-debugger was given.
b80f6443 2419if test "${enable_debugger+set}" = set; then
3185942a
JA
2420 enableval=$enable_debugger; opt_debugger=$enableval
2421fi
2422
2423# Check whether --enable-directory-stack was given.
d166f048 2424if test "${enable_directory_stack+set}" = set; then
3185942a
JA
2425 enableval=$enable_directory_stack; opt_dirstack=$enableval
2426fi
2427
2428# Check whether --enable-disabled-builtins was given.
d166f048 2429if test "${enable_disabled_builtins+set}" = set; then
3185942a
JA
2430 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2431fi
2432
2433# Check whether --enable-dparen-arithmetic was given.
d166f048 2434if test "${enable_dparen_arithmetic+set}" = set; then
3185942a
JA
2435 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2436fi
2437
2438# Check whether --enable-extended-glob was given.
cce855bc 2439if test "${enable_extended_glob+set}" = set; then
3185942a
JA
2440 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2441fi
2442
0001803f
CR
2443# Check whether --enable-extended-glob-default was given.
2444if test "${enable_extended_glob_default+set}" = set; then
2445 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
2446fi
2447
3185942a 2448# Check whether --enable-help-builtin was given.
ccc6cda3 2449if test "${enable_help_builtin+set}" = set; then
3185942a
JA
2450 enableval=$enable_help_builtin; opt_help=$enableval
2451fi
2452
2453# Check whether --enable-history was given.
d166f048 2454if test "${enable_history+set}" = set; then
3185942a
JA
2455 enableval=$enable_history; opt_history=$enableval
2456fi
2457
2458# Check whether --enable-job-control was given.
d166f048 2459if test "${enable_job_control+set}" = set; then
3185942a
JA
2460 enableval=$enable_job_control; opt_job_control=$enableval
2461fi
2462
2463# Check whether --enable-multibyte was given.
b80f6443 2464if test "${enable_multibyte+set}" = set; then
3185942a
JA
2465 enableval=$enable_multibyte; opt_multibyte=$enableval
2466fi
2467
2468# Check whether --enable-net-redirections was given.
bb70624e 2469if test "${enable_net_redirections+set}" = set; then
3185942a
JA
2470 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2471fi
2472
2473# Check whether --enable-process-substitution was given.
d166f048 2474if test "${enable_process_substitution+set}" = set; then
3185942a
JA
2475 enableval=$enable_process_substitution; opt_process_subst=$enableval
2476fi
2477
2478# Check whether --enable-progcomp was given.
bb70624e 2479if test "${enable_progcomp+set}" = set; then
3185942a
JA
2480 enableval=$enable_progcomp; opt_progcomp=$enableval
2481fi
2482
2483# Check whether --enable-prompt-string-decoding was given.
d166f048 2484if test "${enable_prompt_string_decoding+set}" = set; then
3185942a
JA
2485 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2486fi
2487
2488# Check whether --enable-readline was given.
d166f048 2489if test "${enable_readline+set}" = set; then
3185942a
JA
2490 enableval=$enable_readline; opt_readline=$enableval
2491fi
2492
2493# Check whether --enable-restricted was given.
d166f048 2494if test "${enable_restricted+set}" = set; then
3185942a
JA
2495 enableval=$enable_restricted; opt_restricted=$enableval
2496fi
2497
2498# Check whether --enable-select was given.
d166f048 2499if test "${enable_select+set}" = set; then
3185942a
JA
2500 enableval=$enable_select; opt_select=$enableval
2501fi
2502
2503# Check whether --enable-separate-helpfiles was given.
7117c2d2 2504if test "${enable_separate_helpfiles+set}" = set; then
3185942a
JA
2505 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2506fi
2507
2508# Check whether --enable-single-help-strings was given.
95732b49 2509if test "${enable_single_help_strings+set}" = set; then
3185942a
JA
2510 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2511fi
2512
2513# Check whether --enable-strict-posix-default was given.
95732b49 2514if test "${enable_strict_posix_default+set}" = set; then
3185942a
JA
2515 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2516fi
2517
2518# Check whether --enable-usg-echo-default was given.
ccc6cda3 2519if test "${enable_usg_echo_default+set}" = set; then
3185942a
JA
2520 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2521fi
2522
2523# Check whether --enable-xpg-echo-default was given.
bb70624e 2524if test "${enable_xpg_echo_default+set}" = set; then
3185942a
JA
2525 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2526fi
ccc6cda3 2527
3185942a
JA
2528
2529# Check whether --enable-mem-scramble was given.
7117c2d2 2530if test "${enable_mem_scramble+set}" = set; then
3185942a
JA
2531 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2532fi
2533
2534# Check whether --enable-profiling was given.
cce855bc 2535if test "${enable_profiling+set}" = set; then
3185942a
JA
2536 enableval=$enable_profiling; opt_profiling=$enableval
2537fi
2538
2539# Check whether --enable-static-link was given.
cce855bc 2540if test "${enable_static_link+set}" = set; then
3185942a
JA
2541 enableval=$enable_static_link; opt_static_link=$enableval
2542fi
2543
b72432fd 2544
b80f6443
JA
2545
2546
ccc6cda3 2547if test $opt_alias = yes; then
b80f6443 2548cat >>confdefs.h <<\_ACEOF
ccc6cda3 2549#define ALIAS 1
b80f6443 2550_ACEOF
ccc6cda3 2551
ccc6cda3
JA
2552fi
2553if test $opt_dirstack = yes; then
b80f6443 2554cat >>confdefs.h <<\_ACEOF
ccc6cda3 2555#define PUSHD_AND_POPD 1
b80f6443 2556_ACEOF
ccc6cda3
JA
2557
2558fi
2559if test $opt_restricted = yes; then
b80f6443 2560cat >>confdefs.h <<\_ACEOF
ccc6cda3 2561#define RESTRICTED_SHELL 1
b80f6443 2562_ACEOF
ccc6cda3
JA
2563
2564fi
2565if test $opt_process_subst = yes; then
b80f6443 2566cat >>confdefs.h <<\_ACEOF
ccc6cda3 2567#define PROCESS_SUBSTITUTION 1
b80f6443 2568_ACEOF
ccc6cda3
JA
2569
2570fi
2571if test $opt_prompt_decoding = yes; then
b80f6443 2572cat >>confdefs.h <<\_ACEOF
ccc6cda3 2573#define PROMPT_STRING_DECODE 1
b80f6443 2574_ACEOF
ccc6cda3
JA
2575
2576fi
2577if test $opt_select = yes; then
b80f6443 2578cat >>confdefs.h <<\_ACEOF
ccc6cda3 2579#define SELECT_COMMAND 1
b80f6443 2580_ACEOF
ccc6cda3
JA
2581
2582fi
2583if test $opt_help = yes; then
b80f6443 2584cat >>confdefs.h <<\_ACEOF
ccc6cda3 2585#define HELP_BUILTIN 1
b80f6443 2586_ACEOF
ccc6cda3
JA
2587
2588fi
2589if test $opt_array_variables = yes; then
b80f6443 2590cat >>confdefs.h <<\_ACEOF
ccc6cda3 2591#define ARRAY_VARS 1
b80f6443 2592_ACEOF
ccc6cda3
JA
2593
2594fi
2595if test $opt_dparen_arith = yes; then
b80f6443 2596cat >>confdefs.h <<\_ACEOF
ccc6cda3 2597#define DPAREN_ARITHMETIC 1
b80f6443 2598_ACEOF
ccc6cda3
JA
2599
2600fi
2601if test $opt_brace_expansion = yes; then
b80f6443 2602cat >>confdefs.h <<\_ACEOF
ccc6cda3 2603#define BRACE_EXPANSION 1
b80f6443 2604_ACEOF
ccc6cda3
JA
2605
2606fi
2607if test $opt_disabled_builtins = yes; then
b80f6443 2608cat >>confdefs.h <<\_ACEOF
ccc6cda3 2609#define DISABLED_BUILTINS 1
b80f6443 2610_ACEOF
ccc6cda3
JA
2611
2612fi
2613if test $opt_command_timing = yes; then
b80f6443 2614cat >>confdefs.h <<\_ACEOF
ccc6cda3 2615#define COMMAND_TIMING 1
b80f6443 2616_ACEOF
ccc6cda3
JA
2617
2618fi
bb70624e 2619if test $opt_xpg_echo = yes ; then
b80f6443 2620cat >>confdefs.h <<\_ACEOF
bb70624e 2621#define DEFAULT_ECHO_TO_XPG 1
b80f6443 2622_ACEOF
ccc6cda3 2623
95732b49
JA
2624fi
2625if test $opt_strict_posix = yes; then
2626cat >>confdefs.h <<\_ACEOF
2627#define STRICT_POSIX 1
2628_ACEOF
2629
cce855bc
JA
2630fi
2631if test $opt_extended_glob = yes ; then
b80f6443 2632cat >>confdefs.h <<\_ACEOF
cce855bc 2633#define EXTENDED_GLOB 1
b80f6443 2634_ACEOF
cce855bc 2635
0001803f
CR
2636fi
2637if test $opt_extglob_default = yes; then
2638cat >>confdefs.h <<\_ACEOF
2639#define EXTGLOB_DEFAULT 1
2640_ACEOF
2641
2642else
2643cat >>confdefs.h <<\_ACEOF
2644#define EXTGLOB_DEFAULT 0
2645_ACEOF
2646
cce855bc
JA
2647fi
2648if test $opt_cond_command = yes ; then
b80f6443 2649cat >>confdefs.h <<\_ACEOF
cce855bc 2650#define COND_COMMAND 1
b80f6443
JA
2651_ACEOF
2652
2653fi
2654if test $opt_cond_regexp = yes ; then
2655cat >>confdefs.h <<\_ACEOF
2656#define COND_REGEXP 1
2657_ACEOF
cce855bc 2658
3185942a
JA
2659fi
2660if test $opt_coproc = yes; then
2661cat >>confdefs.h <<\_ACEOF
2662#define COPROCESS_SUPPORT 1
2663_ACEOF
2664
bb70624e
JA
2665fi
2666if test $opt_arith_for_command = yes; then
b80f6443 2667cat >>confdefs.h <<\_ACEOF
bb70624e 2668#define ARITH_FOR_COMMAND 1
b80f6443 2669_ACEOF
bb70624e
JA
2670
2671fi
2672if test $opt_net_redirs = yes; then
b80f6443 2673cat >>confdefs.h <<\_ACEOF
bb70624e 2674#define NETWORK_REDIRECTIONS 1
b80f6443 2675_ACEOF
bb70624e
JA
2676
2677fi
2678if test $opt_progcomp = yes; then
b80f6443 2679cat >>confdefs.h <<\_ACEOF
bb70624e 2680#define PROGRAMMABLE_COMPLETION 1
b80f6443
JA
2681_ACEOF
2682
2683fi
2684if test $opt_multibyte = no; then
2685cat >>confdefs.h <<\_ACEOF
2686#define NO_MULTIBYTE_SUPPORT 1
2687_ACEOF
2688
2689fi
2690if test $opt_debugger = yes; then
2691cat >>confdefs.h <<\_ACEOF
2692#define DEBUGGER 1
2693_ACEOF
bb70624e 2694
3185942a
JA
2695fi
2696if test $opt_casemod_attrs = yes; then
2697cat >>confdefs.h <<\_ACEOF
2698#define CASEMOD_ATTRS 1
2699_ACEOF
2700
2701fi
2702if test $opt_casemod_expansions = yes; then
2703cat >>confdefs.h <<\_ACEOF
2704#define CASEMOD_EXPANSIONS 1
2705_ACEOF
2706
ccc6cda3
JA
2707fi
2708
7117c2d2 2709if test $opt_memscramble = yes; then
b80f6443 2710cat >>confdefs.h <<\_ACEOF
7117c2d2 2711#define MEMSCRAMBLE 1
b80f6443 2712_ACEOF
7117c2d2
JA
2713
2714fi
2715
d166f048
JA
2716if test "$opt_minimal_config" = yes; then
2717 TESTSCRIPT=run-minimal
2718else
2719 TESTSCRIPT=run-all
2720fi
2721
7117c2d2
JA
2722HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2723if test "$opt_separate_help" != no; then
2724 if test "$opt_separate_help" = "yes" ; then
2725 HELPDIR='${datadir}/bash'
2726 else
2727 HELPDIR=$opt_separate_help
2728 fi
2729 HELPDIRDEFINE='-H ${HELPDIR}'
2730 HELPINSTALL='install-help'
2731fi
95732b49
JA
2732HELPSTRINGS=
2733if test "$opt_single_longdoc_strings" != "yes"; then
2734 HELPSTRINGS='-S'
2735fi
2736
7117c2d2 2737
b80f6443
JA
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
f73dda09 2754echo ""
7117c2d2 2755echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
f73dda09 2756echo ""
d166f048 2757
f73dda09
JA
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}gcc; ac_word=$2
3185942a
JA
2766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2768if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2769 $as_echo_n "(cached) " >&6
f73dda09
JA
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
b80f6443
JA
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3185942a 2782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2783 break 2
2784 fi
2785done
f73dda09 2786done
3185942a 2787IFS=$as_save_IFS
ccc6cda3 2788
f73dda09
JA
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
3185942a
JA
2793 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2794$as_echo "$CC" >&6; }
f73dda09 2795else
3185942a
JA
2796 { $as_echo "$as_me:$LINENO: result: no" >&5
2797$as_echo "no" >&6; }
f73dda09 2798fi
ccc6cda3 2799
3185942a 2800
f73dda09
JA
2801fi
2802if test -z "$ac_cv_prog_CC"; then
2803 ac_ct_CC=$CC
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805set dummy gcc; ac_word=$2
3185942a
JA
2806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185942a 2809 $as_echo_n "(cached) " >&6
f73dda09
JA
2810else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813else
b80f6443
JA
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2821 ac_cv_prog_ac_ct_CC="gcc"
3185942a 2822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2823 break 2
2824 fi
2825done
f73dda09 2826done
3185942a 2827IFS=$as_save_IFS
ccc6cda3 2828
f73dda09
JA
2829fi
2830fi
2831ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832if test -n "$ac_ct_CC"; then
3185942a
JA
2833 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2834$as_echo "$ac_ct_CC" >&6; }
f73dda09 2835else
3185942a
JA
2836 { $as_echo "$as_me:$LINENO: result: no" >&5
2837$as_echo "no" >&6; }
f73dda09 2838fi
ccc6cda3 2839
3185942a
JA
2840 if test "x$ac_ct_CC" = x; then
2841 CC=""
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
2848esac
2849 CC=$ac_ct_CC
2850 fi
f73dda09
JA
2851else
2852 CC="$ac_cv_prog_CC"
2853fi
bb70624e 2854
f73dda09 2855if test -z "$CC"; then
3185942a
JA
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f73dda09 2858set dummy ${ac_tool_prefix}cc; ac_word=$2
3185942a
JA
2859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2861if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2862 $as_echo_n "(cached) " >&6
ccc6cda3
JA
2863else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866else
b80f6443
JA
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185942a 2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2876 break 2
2877 fi
2878done
f73dda09 2879done
3185942a 2880IFS=$as_save_IFS
f73dda09 2881
ccc6cda3
JA
2882fi
2883fi
f73dda09 2884CC=$ac_cv_prog_CC
ccc6cda3 2885if test -n "$CC"; then
3185942a
JA
2886 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2887$as_echo "$CC" >&6; }
f73dda09 2888else
3185942a
JA
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890$as_echo "no" >&6; }
f73dda09
JA
2891fi
2892
ccc6cda3 2893
3185942a 2894 fi
f73dda09 2895fi
ccc6cda3
JA
2896if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898set dummy cc; ac_word=$2
3185942a
JA
2899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2901if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2902 $as_echo_n "(cached) " >&6
ccc6cda3
JA
2903else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
ccc6cda3 2907 ac_prog_rejected=no
b80f6443
JA
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443
JA
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2917 continue
2918 fi
2919 ac_cv_prog_CC="cc"
3185942a 2920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2921 break 2
2922 fi
2923done
f73dda09 2924done
3185942a 2925IFS=$as_save_IFS
f73dda09 2926
ccc6cda3
JA
2927if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2930 shift
f73dda09 2931 if test $# != 0; then
ccc6cda3
JA
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2935 shift
0628567a 2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ccc6cda3
JA
2937 fi
2938fi
2939fi
2940fi
f73dda09 2941CC=$ac_cv_prog_CC
ccc6cda3 2942if test -n "$CC"; then
3185942a
JA
2943 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2944$as_echo "$CC" >&6; }
ccc6cda3 2945else
3185942a
JA
2946 { $as_echo "$as_me:$LINENO: result: no" >&5
2947$as_echo "no" >&6; }
ccc6cda3
JA
2948fi
2949
3185942a 2950
f73dda09
JA
2951fi
2952if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
3185942a 2954 for ac_prog in cl.exe
f73dda09
JA
2955 do
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3185942a
JA
2958{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2960if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2961 $as_echo_n "(cached) " >&6
bb70624e
JA
2962else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965else
b80f6443
JA
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3185942a 2974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2975 break 2
2976 fi
2977done
f73dda09 2978done
3185942a 2979IFS=$as_save_IFS
f73dda09 2980
bb70624e
JA
2981fi
2982fi
f73dda09 2983CC=$ac_cv_prog_CC
bb70624e 2984if test -n "$CC"; then
3185942a
JA
2985 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2986$as_echo "$CC" >&6; }
bb70624e 2987else
3185942a
JA
2988 { $as_echo "$as_me:$LINENO: result: no" >&5
2989$as_echo "no" >&6; }
bb70624e 2990fi
ccc6cda3 2991
3185942a 2992
f73dda09
JA
2993 test -n "$CC" && break
2994 done
ccc6cda3 2995fi
f73dda09
JA
2996if test -z "$CC"; then
2997 ac_ct_CC=$CC
3185942a 2998 for ac_prog in cl.exe
f73dda09
JA
2999do
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001set dummy $ac_prog; ac_word=$2
3185942a
JA
3002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 3004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185942a 3005 $as_echo_n "(cached) " >&6
f73dda09
JA
3006else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009else
b80f6443
JA
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 3017 ac_cv_prog_ac_ct_CC="$ac_prog"
3185942a 3018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
3019 break 2
3020 fi
3021done
f73dda09 3022done
3185942a 3023IFS=$as_save_IFS
ccc6cda3 3024
ccc6cda3 3025fi
ccc6cda3 3026fi
f73dda09
JA
3027ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028if test -n "$ac_ct_CC"; then
3185942a
JA
3029 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3030$as_echo "$ac_ct_CC" >&6; }
f73dda09 3031else
3185942a
JA
3032 { $as_echo "$as_me:$LINENO: result: no" >&5
3033$as_echo "no" >&6; }
ccc6cda3
JA
3034fi
3035
3185942a 3036
f73dda09
JA
3037 test -n "$ac_ct_CC" && break
3038done
ccc6cda3 3039
3185942a
JA
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044yes:)
3045{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047ac_tool_warned=yes ;;
3048esac
3049 CC=$ac_ct_CC
3050 fi
bb70624e
JA
3051fi
3052
f73dda09
JA
3053fi
3054
b80f6443 3055
3185942a
JA
3056test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
0628567a 3059See \`config.log' for more details." >&5
3185942a 3060$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
0628567a 3061See \`config.log' for more details." >&2;}
3185942a 3062 { (exit 1); exit 1; }; }; }
f73dda09
JA
3063
3064# Provide some information about the compiler.
3185942a
JA
3065$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3066set X $ac_compile
3067ac_compiler=$2
3068{ (ac_try="$ac_compiler --version >&5"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074$as_echo "$ac_try_echo") >&5
3075 (eval "$ac_compiler --version >&5") 2>&5
f73dda09 3076 ac_status=$?
3185942a 3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3078 (exit $ac_status); }
3185942a
JA
3079{ (ac_try="$ac_compiler -v >&5"
3080case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085$as_echo "$ac_try_echo") >&5
3086 (eval "$ac_compiler -v >&5") 2>&5
f73dda09 3087 ac_status=$?
3185942a 3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3089 (exit $ac_status); }
3185942a
JA
3090{ (ac_try="$ac_compiler -V >&5"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
3097 (eval "$ac_compiler -V >&5") 2>&5
f73dda09 3098 ac_status=$?
3185942a 3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3100 (exit $ac_status); }
3101
3102cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h. */
f73dda09
JA
3108
3109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
3117ac_clean_files_save=$ac_clean_files
3185942a 3118ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
f73dda09
JA
3119# Try to create an executable without -o first, disregard a.out.
3120# It will help us diagnose broken compilers, and finding out an intuition
3121# of exeext.
3185942a
JA
3122{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3123$as_echo_n "checking for C compiler default output file name... " >&6; }
3124ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126# The possible output files:
3127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129ac_rmfiles=
3130for ac_file in $ac_files
3131do
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 esac
3136done
3137rm -f $ac_rmfiles
3138
3139if { (ac_try="$ac_link_default"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3145$as_echo "$ac_try_echo") >&5
3146 (eval "$ac_link_default") 2>&5
f73dda09 3147 ac_status=$?
3185942a 3148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3149 (exit $ac_status); }; then
3185942a
JA
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152# in a Makefile. We should not override ac_cv_exeext if it was cached,
3153# so that the user can short-circuit this test for compilers unknown to
3154# Autoconf.
3155for ac_file in $ac_files ''
0628567a
JA
3156do
3157 test -f "$ac_file" || continue
f73dda09 3158 case $ac_file in
3185942a 3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
0628567a
JA
3160 ;;
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
3185942a
JA
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 then :; else
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 fi
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3174 # actually working.
0628567a
JA
3175 break;;
3176 * )
3177 break;;
f73dda09
JA
3178 esac
3179done
3185942a
JA
3180test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
ccc6cda3 3182else
3185942a
JA
3183 ac_file=''
3184fi
3185
3186{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3187$as_echo "$ac_file" >&6; }
3188if test -z "$ac_file"; then
3189 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3185942a
JA
3192{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
0628567a 3195See \`config.log' for more details." >&5
3185942a 3196$as_echo "$as_me: error: C compiler cannot create executables
0628567a 3197See \`config.log' for more details." >&2;}
3185942a 3198 { (exit 77); exit 77; }; }; }
f73dda09
JA
3199fi
3200
3201ac_exeext=$ac_cv_exeext
f73dda09 3202
3185942a 3203# Check that the compiler produces executables we can run. If not, either
f73dda09 3204# the compiler is broken, or we cross compile.
3185942a
JA
3205{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3206$as_echo_n "checking whether the C compiler works... " >&6; }
f73dda09
JA
3207# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3208# If not cross compiling, check that we can run a simple program.
3209if test "$cross_compiling" != yes; then
3210 if { ac_try='./$ac_file'
3185942a
JA
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216$as_echo "$ac_try_echo") >&5
3217 (eval "$ac_try") 2>&5
f73dda09 3218 ac_status=$?
3185942a 3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3220 (exit $ac_status); }; }; then
3221 cross_compiling=no
3222 else
3223 if test "$cross_compiling" = maybe; then
3224 cross_compiling=yes
3225 else
3185942a
JA
3226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
0628567a
JA
3229If you meant to cross compile, use \`--host'.
3230See \`config.log' for more details." >&5
3185942a 3231$as_echo "$as_me: error: cannot run C compiled programs.
0628567a
JA
3232If you meant to cross compile, use \`--host'.
3233See \`config.log' for more details." >&2;}
3185942a 3234 { (exit 1); exit 1; }; }; }
f73dda09
JA
3235 fi
3236 fi
3237fi
3185942a
JA
3238{ $as_echo "$as_me:$LINENO: result: yes" >&5
3239$as_echo "yes" >&6; }
f73dda09 3240
3185942a 3241rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
f73dda09 3242ac_clean_files=$ac_clean_files_save
3185942a 3243# Check that the compiler produces executables we can run. If not, either
f73dda09 3244# the compiler is broken, or we cross compile.
3185942a
JA
3245{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3246$as_echo_n "checking whether we are cross compiling... " >&6; }
3247{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3248$as_echo "$cross_compiling" >&6; }
3249
3250{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3251$as_echo_n "checking for suffix of executables... " >&6; }
3252if { (ac_try="$ac_link"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258$as_echo "$ac_try_echo") >&5
3259 (eval "$ac_link") 2>&5
f73dda09 3260 ac_status=$?
3185942a 3261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3262 (exit $ac_status); }; then
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265# work properly (i.e., refer to `conftest.exe'), while it won't with
3266# `rm'.
0628567a
JA
3267for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
f73dda09 3269 case $ac_file in
3185942a 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
f73dda09 3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
0628567a 3272 break;;
f73dda09
JA
3273 * ) break;;
3274 esac
3275done
ccc6cda3 3276else
3185942a
JA
3277 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
0628567a 3280See \`config.log' for more details." >&5
3185942a 3281$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
0628567a 3282See \`config.log' for more details." >&2;}
3185942a 3283 { (exit 1); exit 1; }; }; }
f73dda09
JA
3284fi
3285
3286rm -f conftest$ac_cv_exeext
3185942a
JA
3287{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3288$as_echo "$ac_cv_exeext" >&6; }
f73dda09
JA
3289
3290rm -f conftest.$ac_ext
3291EXEEXT=$ac_cv_exeext
3292ac_exeext=$EXEEXT
3185942a
JA
3293{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3294$as_echo_n "checking for suffix of object files... " >&6; }
f73dda09 3295if test "${ac_cv_objext+set}" = set; then
3185942a 3296 $as_echo_n "(cached) " >&6
f73dda09
JA
3297else
3298 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
f73dda09
JA
3304
3305int
3306main ()
3307{
3308
3309 ;
3310 return 0;
3311}
3312_ACEOF
3313rm -f conftest.o conftest.obj
3185942a
JA
3314if { (ac_try="$ac_compile"
3315case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320$as_echo "$ac_try_echo") >&5
3321 (eval "$ac_compile") 2>&5
f73dda09 3322 ac_status=$?
3185942a 3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3324 (exit $ac_status); }; then
3185942a
JA
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
f73dda09 3327 case $ac_file in
3185942a 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
f73dda09
JA
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
3333else
3185942a 3334 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3185942a
JA
3337{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
0628567a 3340See \`config.log' for more details." >&5
3185942a 3341$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
0628567a 3342See \`config.log' for more details." >&2;}
3185942a 3343 { (exit 1); exit 1; }; }; }
ccc6cda3 3344fi
ccc6cda3 3345
f73dda09 3346rm -f conftest.$ac_cv_objext conftest.$ac_ext
ccc6cda3 3347fi
3185942a
JA
3348{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3349$as_echo "$ac_cv_objext" >&6; }
f73dda09
JA
3350OBJEXT=$ac_cv_objext
3351ac_objext=$OBJEXT
3185942a
JA
3352{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3353$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f73dda09 3354if test "${ac_cv_c_compiler_gnu+set}" = set; then
3185942a 3355 $as_echo_n "(cached) " >&6
f73dda09
JA
3356else
3357 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3358/* confdefs.h. */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h. */
f73dda09
JA
3363
3364int
3365main ()
3366{
3367#ifndef __GNUC__
3368 choke me
3369#endif
3370
3371 ;
3372 return 0;
3373}
3374_ACEOF
3375rm -f conftest.$ac_objext
3185942a
JA
3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
3383 (eval "$ac_compile") 2>conftest.er1
f73dda09 3384 ac_status=$?
0628567a
JA
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3185942a
JA
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.$ac_objext; then
f73dda09
JA
3393 ac_compiler_gnu=yes
3394else
3185942a 3395 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3185942a 3398 ac_compiler_gnu=no
f73dda09 3399fi
3185942a
JA
3400
3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3402ac_cv_c_compiler_gnu=$ac_compiler_gnu
3403
3404fi
3185942a
JA
3405{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3406$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3407if test $ac_compiler_gnu = yes; then
3408 GCC=yes
3409else
3410 GCC=
3411fi
f73dda09
JA
3412ac_test_CFLAGS=${CFLAGS+set}
3413ac_save_CFLAGS=$CFLAGS
3185942a
JA
3414{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3415$as_echo_n "checking whether $CC accepts -g... " >&6; }
f73dda09 3416if test "${ac_cv_prog_cc_g+set}" = set; then
3185942a 3417 $as_echo_n "(cached) " >&6
f73dda09 3418else
3185942a
JA
3419 ac_save_c_werror_flag=$ac_c_werror_flag
3420 ac_c_werror_flag=yes
3421 ac_cv_prog_cc_g=no
3422 CFLAGS="-g"
3423 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
f73dda09
JA
3429
3430int
3431main ()
3432{
ccc6cda3 3433
f73dda09
JA
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
3185942a
JA
3439if { (ac_try="$ac_compile"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445$as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
f73dda09 3447 ac_status=$?
0628567a
JA
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3185942a
JA
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3456 ac_cv_prog_cc_g=yes
3457else
3458 $as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 CFLAGS=""
3462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h. */
3468
3469int
3470main ()
3471{
3472
3473 ;
3474 return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (ac_try="$ac_compile"
3479case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484$as_echo "$ac_try_echo") >&5
3485 (eval "$ac_compile") 2>conftest.er1
0628567a 3486 ac_status=$?
3185942a
JA
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 :
3496else
3497 $as_echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 ac_c_werror_flag=$ac_save_c_werror_flag
3501 CFLAGS="-g"
3502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h. */
3508
3509int
3510main ()
3511{
3512
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext
3518if { (ac_try="$ac_compile"
3519case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524$as_echo "$ac_try_echo") >&5
3525 (eval "$ac_compile") 2>conftest.er1
f73dda09 3526 ac_status=$?
3185942a
JA
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
f73dda09
JA
3535 ac_cv_prog_cc_g=yes
3536else
3185942a 3537 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3185942a
JA
3540
3541fi
3542
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544fi
3545
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 3547fi
3185942a
JA
3548
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_c_werror_flag=$ac_save_c_werror_flag
f73dda09 3551fi
3185942a
JA
3552{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3553$as_echo "$ac_cv_prog_cc_g" >&6; }
bb70624e 3554if test "$ac_test_CFLAGS" = set; then
f73dda09 3555 CFLAGS=$ac_save_CFLAGS
bb70624e
JA
3556elif test $ac_cv_prog_cc_g = yes; then
3557 if test "$GCC" = yes; then
ccc6cda3
JA
3558 CFLAGS="-g -O2"
3559 else
bb70624e 3560 CFLAGS="-g"
ccc6cda3
JA
3561 fi
3562else
bb70624e
JA
3563 if test "$GCC" = yes; then
3564 CFLAGS="-O2"
3565 else
3566 CFLAGS=
3567 fi
ccc6cda3 3568fi
3185942a
JA
3569{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3570$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571if test "${ac_cv_prog_cc_c89+set}" = set; then
3572 $as_echo_n "(cached) " >&6
0628567a 3573else
3185942a 3574 ac_cv_prog_cc_c89=no
0628567a
JA
3575ac_save_CC=$CC
3576cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#include <stdarg.h>
3583#include <stdio.h>
3584#include <sys/types.h>
3585#include <sys/stat.h>
3586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587struct buf { int x; };
3588FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589static char *e (p, i)
3590 char **p;
3591 int i;
3592{
3593 return p[i];
3594}
3595static char *f (char * (*g) (char **, int), char **p, ...)
3596{
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603}
3604
3605/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3185942a 3608 as 'x'. The following induces an error, until -std is added to get
0628567a
JA
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3185942a 3611 that's true only with -std. */
0628567a
JA
3612int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3185942a
JA
3614/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616#define FOO(x) 'x'
3617int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
0628567a
JA
3619int test (int i, double x);
3620struct s1 {int (*f) (int a);};
3621struct s2 {int (*f) (double a);};
3622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623int argc;
3624char **argv;
3625int
3626main ()
3627{
3628return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631}
3632_ACEOF
3185942a
JA
3633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
0628567a
JA
3635do
3636 CC="$ac_save_CC $ac_arg"
3637 rm -f conftest.$ac_objext
3185942a
JA
3638if { (ac_try="$ac_compile"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644$as_echo "$ac_try_echo") >&5
3645 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3185942a
JA
3650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3655 ac_cv_prog_cc_c89=$ac_arg
0628567a 3656else
3185942a 3657 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3185942a 3660
0628567a 3661fi
3185942a
JA
3662
3663rm -f core conftest.err conftest.$ac_objext
3664 test "x$ac_cv_prog_cc_c89" != "xno" && break
0628567a 3665done
3185942a 3666rm -f conftest.$ac_ext
0628567a
JA
3667CC=$ac_save_CC
3668
3669fi
3185942a
JA
3670# AC_CACHE_VAL
3671case "x$ac_cv_prog_cc_c89" in
3672 x)
3673 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3674$as_echo "none needed" >&6; } ;;
3675 xno)
3676 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3677$as_echo "unsupported" >&6; } ;;
0628567a 3678 *)
3185942a
JA
3679 CC="$CC $ac_cv_prog_cc_c89"
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3681$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
0628567a
JA
3682esac
3683
0628567a 3684
f73dda09
JA
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
bb70624e 3690
f73dda09 3691
ccc6cda3 3692
b80f6443 3693
3185942a
JA
3694 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3695$as_echo_n "checking for strerror in -lcposix... " >&6; }
b80f6443 3696if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3185942a 3697 $as_echo_n "(cached) " >&6
ccc6cda3 3698else
b80f6443
JA
3699 ac_check_lib_save_LIBS=$LIBS
3700LIBS="-lcposix $LIBS"
3701cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
b80f6443 3707
3185942a
JA
3708/* Override any GCC internal prototype to avoid an error.
3709 Use char because int might match the return type of a GCC
3710 builtin and then its argument prototype would still apply. */
b80f6443
JA
3711#ifdef __cplusplus
3712extern "C"
3713#endif
b80f6443
JA
3714char strerror ();
3715int
3716main ()
3717{
3185942a 3718return strerror ();
b80f6443
JA
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
3724if { (ac_try="$ac_link"
3725case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728esac
3729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3730$as_echo "$ac_try_echo") >&5
3731 (eval "$ac_link") 2>conftest.er1
b80f6443 3732 ac_status=$?
0628567a
JA
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3185942a
JA
3736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest$ac_exeext && {
3741 test "$cross_compiling" = yes ||
3742 $as_test_x conftest$ac_exeext
3743 }; then
b80f6443
JA
3744 ac_cv_lib_cposix_strerror=yes
3745else
3185942a 3746 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3185942a 3749 ac_cv_lib_cposix_strerror=no
b80f6443 3750fi
3185942a
JA
3751
3752rm -rf conftest.dSYM
3753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 3754 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
3755LIBS=$ac_check_lib_save_LIBS
3756fi
3185942a
JA
3757{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3758$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3759if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
b80f6443 3760 LIBS="$LIBS -lcposix"
ccc6cda3
JA
3761fi
3762
b80f6443
JA
3763
3764
f73dda09
JA
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185942a
JA
3770{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3771$as_echo_n "checking how to run the C preprocessor... " >&6; }
ccc6cda3
JA
3772# On Suns, sometimes $CPP names a directory.
3773if test -n "$CPP" && test -d "$CPP"; then
3774 CPP=
3775fi
3776if test -z "$CPP"; then
f73dda09 3777 if test "${ac_cv_prog_CPP+set}" = set; then
3185942a 3778 $as_echo_n "(cached) " >&6
f73dda09
JA
3779else
3780 # Double quotes because CPP needs to be expanded
3781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 do
3783 ac_preproc_ok=false
3784for ac_c_preproc_warn_flag in '' yes
3785do
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
0628567a
JA
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
ccc6cda3 3790 # On the NeXT, cc -E runs the code through the compiler's parser,
f73dda09
JA
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798#ifdef __STDC__
3799# include <limits.h>
3800#else
3801# include <assert.h>
3802#endif
3803 Syntax error
f73dda09 3804_ACEOF
3185942a
JA
3805if { (ac_try="$ac_cpp conftest.$ac_ext"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811$as_echo "$ac_try_echo") >&5
3812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3813 ac_status=$?
0628567a 3814 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3185942a
JA
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 }; then
ccc6cda3
JA
3822 :
3823else
3185942a 3824 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
f73dda09
JA
3827 # Broken: fails on valid input.
3828continue
3829fi
3185942a 3830
f73dda09
JA
3831rm -f conftest.err conftest.$ac_ext
3832
3185942a 3833 # OK, works on sane cases. Now check whether nonexistent headers
f73dda09
JA
3834 # can be detected and how.
3835 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h. */
f73dda09
JA
3841#include <ac_nonexistent.h>
3842_ACEOF
3185942a
JA
3843if { (ac_try="$ac_cpp conftest.$ac_ext"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
3848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849$as_echo "$ac_try_echo") >&5
3850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3851 ac_status=$?
0628567a 3852 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3185942a
JA
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null && {
3857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 }; then
f73dda09
JA
3860 # Broken: success on invalid input.
3861continue
bb70624e 3862else
3185942a 3863 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
f73dda09
JA
3866 # Passes both tests.
3867ac_preproc_ok=:
3868break
3869fi
3185942a 3870
f73dda09
JA
3871rm -f conftest.err conftest.$ac_ext
3872
3873done
3874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875rm -f conftest.err conftest.$ac_ext
3876if $ac_preproc_ok; then
3877 break
3878fi
3879
3880 done
3881 ac_cv_prog_CPP=$CPP
3882
3883fi
3884 CPP=$ac_cv_prog_CPP
3885else
3886 ac_cv_prog_CPP=$CPP
3887fi
3185942a
JA
3888{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3889$as_echo "$CPP" >&6; }
f73dda09
JA
3890ac_preproc_ok=false
3891for ac_c_preproc_warn_flag in '' yes
3892do
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
0628567a
JA
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
f73dda09
JA
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
3905#ifdef __STDC__
3906# include <limits.h>
3907#else
3908# include <assert.h>
3909#endif
3910 Syntax error
f73dda09 3911_ACEOF
3185942a
JA
3912if { (ac_try="$ac_cpp conftest.$ac_ext"
3913case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916esac
3917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918$as_echo "$ac_try_echo") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3920 ac_status=$?
0628567a 3921 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3185942a
JA
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 }; then
ccc6cda3
JA
3929 :
3930else
3185942a 3931 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
f73dda09
JA
3934 # Broken: fails on valid input.
3935continue
3936fi
3185942a 3937
f73dda09
JA
3938rm -f conftest.err conftest.$ac_ext
3939
3185942a 3940 # OK, works on sane cases. Now check whether nonexistent headers
f73dda09
JA
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
f73dda09
JA
3948#include <ac_nonexistent.h>
3949_ACEOF
3185942a
JA
3950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956$as_echo "$ac_try_echo") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3958 ac_status=$?
0628567a 3959 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3185942a
JA
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null && {
3964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 }; then
f73dda09
JA
3967 # Broken: success on invalid input.
3968continue
3969else
3185942a 3970 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
f73dda09
JA
3973 # Passes both tests.
3974ac_preproc_ok=:
3975break
ccc6cda3 3976fi
3185942a 3977
f73dda09
JA
3978rm -f conftest.err conftest.$ac_ext
3979
3980done
3981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982rm -f conftest.err conftest.$ac_ext
3983if $ac_preproc_ok; then
3984 :
ccc6cda3 3985else
3185942a
JA
3986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
0628567a 3989See \`config.log' for more details." >&5
3185942a 3990$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
0628567a 3991See \`config.log' for more details." >&2;}
3185942a 3992 { (exit 1); exit 1; }; }; }
ccc6cda3 3993fi
ccc6cda3 3994
f73dda09
JA
3995ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
b80f6443 4001
3185942a
JA
4002{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4003$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4004if test "${ac_cv_path_GREP+set}" = set; then
4005 $as_echo_n "(cached) " >&6
4006else
4007 if test -z "$GREP"; then
4008 ac_path_GREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in grep ggrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4019# Check for GNU ac_path_GREP and select it if it is found.
4020 # Check for GNU $ac_path_GREP
4021case `"$ac_path_GREP" --version 2>&1` in
4022*GNU*)
4023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4024*)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'GREP' >> "conftest.nl"
4033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 ac_count=`expr $ac_count + 1`
4036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_GREP="$ac_path_GREP"
4039 ac_path_GREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045esac
4046
4047 $ac_path_GREP_found && break 3
4048 done
4049 done
4050done
4051IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_GREP"; then
4053 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4056 fi
4057else
4058 ac_cv_path_GREP=$GREP
4059fi
4060
4061fi
4062{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4063$as_echo "$ac_cv_path_GREP" >&6; }
4064 GREP="$ac_cv_path_GREP"
4065
4066
4067{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4068$as_echo_n "checking for egrep... " >&6; }
4069if test "${ac_cv_path_EGREP+set}" = set; then
4070 $as_echo_n "(cached) " >&6
0628567a 4071else
3185942a
JA
4072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073 then ac_cv_path_EGREP="$GREP -E"
4074 else
4075 if test -z "$EGREP"; then
4076 ac_path_EGREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in egrep; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4086 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4087# Check for GNU ac_path_EGREP and select it if it is found.
4088 # Check for GNU $ac_path_EGREP
4089case `"$ac_path_EGREP" --version 2>&1` in
4090*GNU*)
4091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4092*)
4093 ac_count=0
4094 $as_echo_n 0123456789 >"conftest.in"
4095 while :
4096 do
4097 cat "conftest.in" "conftest.in" >"conftest.tmp"
4098 mv "conftest.tmp" "conftest.in"
4099 cp "conftest.in" "conftest.nl"
4100 $as_echo 'EGREP' >> "conftest.nl"
4101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103 ac_count=`expr $ac_count + 1`
4104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4105 # Best one so far, save it but keep looking for a better one
4106 ac_cv_path_EGREP="$ac_path_EGREP"
4107 ac_path_EGREP_max=$ac_count
0628567a 4108 fi
3185942a
JA
4109 # 10*(2^10) chars as input seems more than enough
4110 test $ac_count -gt 10 && break
4111 done
4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113esac
4114
4115 $ac_path_EGREP_found && break 3
4116 done
4117 done
4118done
4119IFS=$as_save_IFS
4120 if test -z "$ac_cv_path_EGREP"; then
4121 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4124 fi
4125else
4126 ac_cv_path_EGREP=$EGREP
0628567a 4127fi
0628567a 4128
3185942a
JA
4129 fi
4130fi
4131{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4132$as_echo "$ac_cv_path_EGREP" >&6; }
4133 EGREP="$ac_cv_path_EGREP"
0628567a 4134
3185942a
JA
4135
4136{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4137$as_echo_n "checking for ANSI C header files... " >&6; }
b80f6443 4138if test "${ac_cv_header_stdc+set}" = set; then
3185942a 4139 $as_echo_n "(cached) " >&6
ccc6cda3 4140else
f73dda09 4141 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
b80f6443
JA
4147#include <stdlib.h>
4148#include <stdarg.h>
4149#include <string.h>
4150#include <float.h>
4151
0628567a
JA
4152int
4153main ()
4154{
4155
4156 ;
4157 return 0;
4158}
b80f6443 4159_ACEOF
0628567a 4160rm -f conftest.$ac_objext
3185942a
JA
4161if { (ac_try="$ac_compile"
4162case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167$as_echo "$ac_try_echo") >&5
4168 (eval "$ac_compile") 2>conftest.er1
b80f6443 4169 ac_status=$?
0628567a 4170 grep -v '^ *+' conftest.er1 >conftest.err
95732b49
JA
4171 rm -f conftest.er1
4172 cat conftest.err >&5
3185942a
JA
4173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
b80f6443
JA
4178 ac_cv_header_stdc=yes
4179else
3185942a 4180 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
3185942a 4183 ac_cv_header_stdc=no
b80f6443 4184fi
3185942a
JA
4185
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
4187
4188if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
b80f6443
JA
4196#include <string.h>
4197
4198_ACEOF
4199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 4200 $EGREP "memchr" >/dev/null 2>&1; then
b80f6443
JA
4201 :
4202else
4203 ac_cv_header_stdc=no
4204fi
4205rm -f conftest*
4206
4207fi
4208
4209if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4212/* confdefs.h. */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h. */
b80f6443
JA
4217#include <stdlib.h>
4218
4219_ACEOF
4220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 4221 $EGREP "free" >/dev/null 2>&1; then
b80f6443
JA
4222 :
4223else
4224 ac_cv_header_stdc=no
4225fi
4226rm -f conftest*
4227
4228fi
4229
4230if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then
4233 :
4234else
4235 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h. */
b80f6443 4241#include <ctype.h>
3185942a 4242#include <stdlib.h>
b80f6443
JA
4243#if ((' ' & 0x0FF) == 0x020)
4244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246#else
0628567a
JA
4247# define ISLOWER(c) \
4248 (('a' <= (c) && (c) <= 'i') \
4249 || ('j' <= (c) && (c) <= 'r') \
4250 || ('s' <= (c) && (c) <= 'z'))
b80f6443
JA
4251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252#endif
4253
4254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255int
4256main ()
4257{
4258 int i;
4259 for (i = 0; i < 256; i++)
4260 if (XOR (islower (i), ISLOWER (i))
0628567a 4261 || toupper (i) != TOUPPER (i))
3185942a
JA
4262 return 2;
4263 return 0;
b80f6443
JA
4264}
4265_ACEOF
4266rm -f conftest$ac_exeext
3185942a
JA
4267if { (ac_try="$ac_link"
4268case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273$as_echo "$ac_try_echo") >&5
4274 (eval "$ac_link") 2>&5
b80f6443 4275 ac_status=$?
3185942a 4276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283$as_echo "$ac_try_echo") >&5
4284 (eval "$ac_try") 2>&5
b80f6443 4285 ac_status=$?
3185942a 4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
4287 (exit $ac_status); }; }; then
4288 :
4289else
3185942a
JA
4290 $as_echo "$as_me: program exited with status $ac_status" >&5
4291$as_echo "$as_me: failed program was:" >&5
0628567a
JA
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
b80f6443
JA
4294( exit $ac_status )
4295ac_cv_header_stdc=no
4296fi
3185942a
JA
4297rm -rf conftest.dSYM
4298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 4299fi
3185942a
JA
4300
4301
b80f6443
JA
4302fi
4303fi
3185942a
JA
4304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4305$as_echo "$ac_cv_header_stdc" >&6; }
b80f6443
JA
4306if test $ac_cv_header_stdc = yes; then
4307
4308cat >>confdefs.h <<\_ACEOF
4309#define STDC_HEADERS 1
4310_ACEOF
4311
4312fi
4313
4314# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
0628567a 4325 inttypes.h stdint.h unistd.h
b80f6443 4326do
3185942a
JA
4327as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4329$as_echo_n "checking for $ac_header... " >&6; }
4330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331 $as_echo_n "(cached) " >&6
b80f6443
JA
4332else
4333 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4334/* confdefs.h. */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h. */
b80f6443
JA
4339$ac_includes_default
4340
4341#include <$ac_header>
4342_ACEOF
4343rm -f conftest.$ac_objext
3185942a
JA
4344if { (ac_try="$ac_compile"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350$as_echo "$ac_try_echo") >&5
4351 (eval "$ac_compile") 2>conftest.er1
b80f6443 4352 ac_status=$?
0628567a
JA
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
3185942a
JA
4356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
b80f6443
JA
4361 eval "$as_ac_Header=yes"
4362else
3185942a 4363 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
3185942a 4366 eval "$as_ac_Header=no"
b80f6443 4367fi
3185942a
JA
4368
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 4370fi
3185942a
JA
4371ac_res=`eval 'as_val=${'$as_ac_Header'}
4372 $as_echo "$as_val"'`
4373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4374$as_echo "$ac_res" >&6; }
4375as_val=`eval 'as_val=${'$as_ac_Header'}
4376 $as_echo "$as_val"'`
4377 if test "x$as_val" = x""yes; then
b80f6443 4378 cat >>confdefs.h <<_ACEOF
3185942a 4379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
4380_ACEOF
4381
4382fi
4383
4384done
4385
4386
3185942a
JA
4387
4388 if test "${ac_cv_header_minix_config_h+set}" = set; then
4389 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4390$as_echo_n "checking for minix/config.h... " >&6; }
b80f6443 4391if test "${ac_cv_header_minix_config_h+set}" = set; then
3185942a 4392 $as_echo_n "(cached) " >&6
b80f6443 4393fi
3185942a
JA
4394{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4395$as_echo "$ac_cv_header_minix_config_h" >&6; }
b80f6443
JA
4396else
4397 # Is the header compilable?
3185942a
JA
4398{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4399$as_echo_n "checking minix/config.h usability... " >&6; }
b80f6443 4400cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
b80f6443
JA
4406$ac_includes_default
4407#include <minix/config.h>
4408_ACEOF
4409rm -f conftest.$ac_objext
3185942a
JA
4410if { (ac_try="$ac_compile"
4411case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414esac
4415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416$as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
b80f6443 4418 ac_status=$?
0628567a
JA
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
3185942a
JA
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
b80f6443
JA
4427 ac_header_compiler=yes
4428else
3185942a 4429 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
3185942a 4432 ac_header_compiler=no
b80f6443 4433fi
3185942a
JA
4434
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
4438
4439# Is the header present?
3185942a
JA
4440{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4441$as_echo_n "checking minix/config.h presence... " >&6; }
b80f6443 4442cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h. */
b80f6443
JA
4448#include <minix/config.h>
4449_ACEOF
3185942a
JA
4450if { (ac_try="$ac_cpp conftest.$ac_ext"
4451case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4456$as_echo "$ac_try_echo") >&5
4457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 4458 ac_status=$?
0628567a 4459 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
4460 rm -f conftest.er1
4461 cat conftest.err >&5
3185942a
JA
4462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } >/dev/null && {
4464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 }; then
b80f6443 4467 ac_header_preproc=yes
ccc6cda3 4468else
3185942a 4469 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
b80f6443 4472 ac_header_preproc=no
ccc6cda3 4473fi
3185942a 4474
f73dda09 4475rm -f conftest.err conftest.$ac_ext
3185942a
JA
4476{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
4478
4479# So? What about this header?
0628567a
JA
4480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481 yes:no: )
3185942a
JA
4482 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4483$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4485$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
0628567a
JA
4486 ac_header_preproc=yes
4487 ;;
4488 no:yes:* )
3185942a
JA
4489 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4490$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4491 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4492$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4493 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4494$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4495 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4496$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4497 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4498$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4499 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4500$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4501 ( cat <<\_ASBOX
0628567a
JA
4502## ------------------------------- ##
4503## Report this to bug-bash@gnu.org ##
4504## ------------------------------- ##
4505_ASBOX
3185942a 4506 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 4507 ;;
b80f6443 4508esac
3185942a
JA
4509{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4510$as_echo_n "checking for minix/config.h... " >&6; }
b80f6443 4511if test "${ac_cv_header_minix_config_h+set}" = set; then
3185942a 4512 $as_echo_n "(cached) " >&6
b80f6443
JA
4513else
4514 ac_cv_header_minix_config_h=$ac_header_preproc
ccc6cda3 4515fi
3185942a
JA
4516{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4517$as_echo "$ac_cv_header_minix_config_h" >&6; }
b80f6443
JA
4518
4519fi
3185942a 4520if test "x$ac_cv_header_minix_config_h" = x""yes; then
ccc6cda3
JA
4521 MINIX=yes
4522else
f73dda09 4523 MINIX=
ccc6cda3
JA
4524fi
4525
b80f6443 4526
3185942a 4527 if test "$MINIX" = yes; then
f73dda09 4528
b80f6443 4529cat >>confdefs.h <<\_ACEOF
ccc6cda3 4530#define _POSIX_SOURCE 1
b80f6443
JA
4531_ACEOF
4532
ccc6cda3 4533
b80f6443 4534cat >>confdefs.h <<\_ACEOF
ccc6cda3 4535#define _POSIX_1_SOURCE 2
b80f6443
JA
4536_ACEOF
4537
ccc6cda3 4538
b80f6443 4539cat >>confdefs.h <<\_ACEOF
ccc6cda3 4540#define _MINIX 1
b80f6443 4541_ACEOF
ccc6cda3 4542
3185942a 4543 fi
ccc6cda3 4544
b80f6443 4545
3185942a
JA
4546
4547 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4548$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4549if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4550 $as_echo_n "(cached) " >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
4558
4559# define __EXTENSIONS__ 1
4560 $ac_includes_default
4561int
4562main ()
4563{
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext
4570if { (ac_try="$ac_compile"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576$as_echo "$ac_try_echo") >&5
4577 (eval "$ac_compile") 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } && {
4584 test -z "$ac_c_werror_flag" ||
4585 test ! -s conftest.err
4586 } && test -s conftest.$ac_objext; then
4587 ac_cv_safe_to_define___extensions__=yes
4588else
4589 $as_echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 ac_cv_safe_to_define___extensions__=no
4593fi
4594
4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596fi
4597{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4598$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4599 test $ac_cv_safe_to_define___extensions__ = yes &&
4600 cat >>confdefs.h <<\_ACEOF
4601#define __EXTENSIONS__ 1
4602_ACEOF
4603
4604 cat >>confdefs.h <<\_ACEOF
4605#define _ALL_SOURCE 1
4606_ACEOF
4607
4608 cat >>confdefs.h <<\_ACEOF
4609#define _GNU_SOURCE 1
4610_ACEOF
4611
4612 cat >>confdefs.h <<\_ACEOF
4613#define _POSIX_PTHREAD_SEMANTICS 1
4614_ACEOF
4615
4616 cat >>confdefs.h <<\_ACEOF
4617#define _TANDEM_SOURCE 1
4618_ACEOF
4619
4620
4621
4622# Check whether --enable-largefile was given.
f73dda09 4623if test "${enable_largefile+set}" = set; then
3185942a
JA
4624 enableval=$enable_largefile;
4625fi
f73dda09 4626
f73dda09 4627if test "$enable_largefile" != no; then
ccc6cda3 4628
3185942a
JA
4629 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4630$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
f73dda09 4631if test "${ac_cv_sys_largefile_CC+set}" = set; then
3185942a 4632 $as_echo_n "(cached) " >&6
bb70624e 4633else
f73dda09
JA
4634 ac_cv_sys_largefile_CC=no
4635 if test "$GCC" != yes; then
4636 ac_save_CC=$CC
4637 while :; do
3185942a
JA
4638 # IRIX 6.2 and later do not support large files by default,
4639 # so use the C compiler's -n32 option if that helps.
0628567a
JA
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
f73dda09
JA
4646#include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4654 ? 1 : -1];
4655int
4656main ()
4657{
bb70624e 4658
f73dda09
JA
4659 ;
4660 return 0;
4661}
4662_ACEOF
3185942a
JA
4663 rm -f conftest.$ac_objext
4664if { (ac_try="$ac_compile"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670$as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compile") 2>conftest.er1
f73dda09 4672 ac_status=$?
0628567a
JA
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
3185942a
JA
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
f73dda09 4681 break
bb70624e 4682else
3185942a 4683 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
3185942a 4686
f73dda09 4687fi
3185942a
JA
4688
4689rm -f core conftest.err conftest.$ac_objext
4690 CC="$CC -n32"
4691 rm -f conftest.$ac_objext
4692if { (ac_try="$ac_compile"
4693case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
4697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698$as_echo "$ac_try_echo") >&5
4699 (eval "$ac_compile") 2>conftest.er1
f73dda09 4700 ac_status=$?
0628567a
JA
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
3185942a
JA
4704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && {
4706 test -z "$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 } && test -s conftest.$ac_objext; then
f73dda09
JA
4709 ac_cv_sys_largefile_CC=' -n32'; break
4710else
3185942a 4711 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
3185942a 4714
f73dda09 4715fi
3185942a
JA
4716
4717rm -f core conftest.err conftest.$ac_objext
0628567a 4718 break
f73dda09
JA
4719 done
4720 CC=$ac_save_CC
4721 rm -f conftest.$ac_ext
4722 fi
bb70624e 4723fi
3185942a
JA
4724{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4725$as_echo "$ac_cv_sys_largefile_CC" >&6; }
f73dda09
JA
4726 if test "$ac_cv_sys_largefile_CC" != no; then
4727 CC=$CC$ac_cv_sys_largefile_CC
4728 fi
bb70624e 4729
3185942a
JA
4730 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4731$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
f73dda09 4732if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3185942a 4733 $as_echo_n "(cached) " >&6
bb70624e 4734else
f73dda09 4735 while :; do
f73dda09 4736 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
f73dda09
JA
4742#include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745 since some C++ compilers masquerading as C compilers
4746 incorrectly reject 9223372036854775807. */
4747#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749 && LARGE_OFF_T % 2147483647 == 1)
4750 ? 1 : -1];
4751int
4752main ()
4753{
bb70624e 4754
f73dda09
JA
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759rm -f conftest.$ac_objext
3185942a
JA
4760if { (ac_try="$ac_compile"
4761case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764esac
4765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4766$as_echo "$ac_try_echo") >&5
4767 (eval "$ac_compile") 2>conftest.er1
f73dda09 4768 ac_status=$?
0628567a
JA
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
3185942a
JA
4772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && {
4774 test -z "$ac_c_werror_flag" ||
4775 test ! -s conftest.err
4776 } && test -s conftest.$ac_objext; then
4777 ac_cv_sys_file_offset_bits=no; break
bb70624e 4778else
3185942a 4779 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4780sed 's/^/| /' conftest.$ac_ext >&5
4781
3185942a 4782
bb70624e 4783fi
3185942a
JA
4784
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 4786 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4787/* confdefs.h. */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h. */
f73dda09
JA
4792#define _FILE_OFFSET_BITS 64
4793#include <sys/types.h>
4794 /* Check that off_t can represent 2**63 - 1 correctly.
4795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4796 since some C++ compilers masquerading as C compilers
4797 incorrectly reject 9223372036854775807. */
4798#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4800 && LARGE_OFF_T % 2147483647 == 1)
4801 ? 1 : -1];
4802int
4803main ()
4804{
bb70624e 4805
f73dda09
JA
4806 ;
4807 return 0;
4808}
4809_ACEOF
4810rm -f conftest.$ac_objext
3185942a
JA
4811if { (ac_try="$ac_compile"
4812case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815esac
4816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4817$as_echo "$ac_try_echo") >&5
4818 (eval "$ac_compile") 2>conftest.er1
f73dda09 4819 ac_status=$?
0628567a
JA
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
3185942a
JA
4823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } && {
4825 test -z "$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 } && test -s conftest.$ac_objext; then
f73dda09
JA
4828 ac_cv_sys_file_offset_bits=64; break
4829else
3185942a 4830 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
3185942a 4833
f73dda09 4834fi
3185942a
JA
4835
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 ac_cv_sys_file_offset_bits=unknown
f73dda09
JA
4838 break
4839done
4840fi
3185942a
JA
4841{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4842$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4843case $ac_cv_sys_file_offset_bits in #(
4844 no | unknown) ;;
4845 *)
b80f6443 4846cat >>confdefs.h <<_ACEOF
f73dda09 4847#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
b80f6443 4848_ACEOF
3185942a
JA
4849;;
4850esac
4851rm -rf conftest*
4852 if test $ac_cv_sys_file_offset_bits = unknown; then
4853 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4854$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
f73dda09 4855if test "${ac_cv_sys_large_files+set}" = set; then
3185942a 4856 $as_echo_n "(cached) " >&6
bb70624e 4857else
f73dda09 4858 while :; do
f73dda09 4859 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
f73dda09
JA
4865#include <sys/types.h>
4866 /* Check that off_t can represent 2**63 - 1 correctly.
4867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4868 since some C++ compilers masquerading as C compilers
4869 incorrectly reject 9223372036854775807. */
4870#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4872 && LARGE_OFF_T % 2147483647 == 1)
4873 ? 1 : -1];
4874int
4875main ()
4876{
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
3185942a
JA
4883if { (ac_try="$ac_compile"
4884case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887esac
4888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889$as_echo "$ac_try_echo") >&5
4890 (eval "$ac_compile") 2>conftest.er1
f73dda09 4891 ac_status=$?
0628567a
JA
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
3185942a
JA
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest.$ac_objext; then
4900 ac_cv_sys_large_files=no; break
bb70624e 4901else
3185942a 4902 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
3185942a 4905
bb70624e 4906fi
3185942a
JA
4907
4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 4909 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4910/* confdefs.h. */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h. */
f73dda09
JA
4915#define _LARGE_FILES 1
4916#include <sys/types.h>
4917 /* Check that off_t can represent 2**63 - 1 correctly.
4918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4919 since some C++ compilers masquerading as C compilers
4920 incorrectly reject 9223372036854775807. */
4921#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4923 && LARGE_OFF_T % 2147483647 == 1)
4924 ? 1 : -1];
4925int
4926main ()
4927{
bb70624e 4928
f73dda09
JA
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933rm -f conftest.$ac_objext
3185942a
JA
4934if { (ac_try="$ac_compile"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940$as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
f73dda09 4942 ac_status=$?
0628567a
JA
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
3185942a
JA
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
f73dda09
JA
4951 ac_cv_sys_large_files=1; break
4952else
3185942a 4953 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
3185942a 4956
f73dda09 4957fi
3185942a
JA
4958
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_cv_sys_large_files=unknown
f73dda09
JA
4961 break
4962done
4963fi
3185942a
JA
4964{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4965$as_echo "$ac_cv_sys_large_files" >&6; }
4966case $ac_cv_sys_large_files in #(
4967 no | unknown) ;;
4968 *)
b80f6443 4969cat >>confdefs.h <<_ACEOF
f73dda09 4970#define _LARGE_FILES $ac_cv_sys_large_files
b80f6443 4971_ACEOF
3185942a
JA
4972;;
4973esac
4974rm -rf conftest*
4975 fi
f73dda09 4976fi
cce855bc 4977
b80f6443
JA
4978
4979
0628567a 4980SIGNAMES_O=
b72432fd
JA
4981SIGNAMES_H=lsignames.h
4982
b80f6443
JA
4983
4984
0628567a 4985CROSS_COMPILE=
cce855bc
JA
4986if test "x$cross_compiling" = "xyes"; then
4987 case "${host}" in
28ef6c31 4988 *-cygwin*)
cce855bc 4989 cross_cache=${srcdir}/cross-build/cygwin32.cache
cce855bc 4990 ;;
95732b49
JA
4991 *-mingw*)
4992 cross_cache=${srcdir}/cross-build/cygwin32.cache
4993 ;;
b72432fd
JA
4994 i[3456]86-*-beos*)
4995 cross_cache=${srcdir}/cross-build/x86-beos.cache
b72432fd
JA
4996 ;;
4997 *) echo "configure: cross-compiling for $host is not supported" >&2
cce855bc
JA
4998 ;;
4999 esac
b72432fd
JA
5000 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5001 echo "loading cross-build cache file ${cross_cache}"
5002 . ${cross_cache}
5003 fi
5004 unset cross_cache
0628567a 5005 SIGNAMES_O='signames.o'
95732b49
JA
5006 CROSS_COMPILE='-DCROSS_COMPILING'
5007
cce855bc
JA
5008fi
5009
b80f6443 5010
0628567a 5011
cce855bc
JA
5012if test -z "$CC_FOR_BUILD"; then
5013 if test "x$cross_compiling" = "xno"; then
5014 CC_FOR_BUILD='$(CC)'
5015 else
5016 CC_FOR_BUILD=gcc
5017 fi
5018fi
5019
b80f6443
JA
5020
5021
ccc6cda3
JA
5022test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5023
5024test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5025
cce855bc
JA
5026if test "$opt_profiling" = "yes"; then
5027 PROFILE_FLAGS=-pg
b72432fd
JA
5028 case "$host_os" in
5029 solaris2*) ;;
5030 *) opt_static_link=yes ;;
5031 esac
7117c2d2 5032 DEBUG= MALLOC_DEBUG=
cce855bc
JA
5033fi
5034
5035if test "$opt_static_link" = yes; then
f73dda09
JA
5036 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5037 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
b72432fd 5038 STATIC_LD="-static"
f73dda09
JA
5039 case "$host_os" in
5040 solaris2*) ;;
5041 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5042 esac
cce855bc
JA
5043 fi
5044fi
5045
b80f6443
JA
5046if test "X$cross_compiling" = "Xno"; then
5047 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5048 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5049else
5050 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5051 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5052fi
5053
7117c2d2
JA
5054test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5055
b80f6443
JA
5056
5057
5058
5059
5060
5061
5062
5063
5064
f73dda09 5065if test $ac_cv_c_compiler_gnu = yes; then
3185942a
JA
5066 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5067$as_echo_n "checking whether $CC needs -traditional... " >&6; }
f73dda09 5068if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3185942a 5069 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5070else
5071 ac_pattern="Autoconf.*'x'"
f73dda09 5072 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
ccc6cda3
JA
5078#include <sgtty.h>
5079Autoconf TIOCGETP
f73dda09 5080_ACEOF
ccc6cda3 5081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 5082 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
5083 ac_cv_prog_gcc_traditional=yes
5084else
ccc6cda3
JA
5085 ac_cv_prog_gcc_traditional=no
5086fi
5087rm -f conftest*
5088
b80f6443 5089
ccc6cda3 5090 if test $ac_cv_prog_gcc_traditional = no; then
f73dda09 5091 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5092/* confdefs.h. */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h. */
ccc6cda3
JA
5097#include <termio.h>
5098Autoconf TCGETA
f73dda09 5099_ACEOF
ccc6cda3 5100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 5101 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
5102 ac_cv_prog_gcc_traditional=yes
5103fi
5104rm -f conftest*
5105
5106 fi
5107fi
3185942a
JA
5108{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5109$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
ccc6cda3
JA
5110 if test $ac_cv_prog_gcc_traditional = yes; then
5111 CC="$CC -traditional"
5112 fi
5113fi
5114
b80f6443
JA
5115
5116
f73dda09 5117if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
b72432fd 5118then
f73dda09
JA
5119 # If the user specified --with-installed-readline=PREFIX and PREFIX
5120 # is not `yes', set ac_cv_rl_prefix to PREFIX
5121 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
b72432fd 5122
b80f6443 5123
bb70624e
JA
5124if test "X$bash_cv_termcap_lib" = "X"; then
5125_bash_needmsg=yes
5126else
3185942a
JA
5127{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5128$as_echo_n "checking which library has the termcap functions... " >&6; }
bb70624e
JA
5129_bash_needmsg=
5130fi
f73dda09 5131if test "${bash_cv_termcap_lib+set}" = set; then
3185942a 5132 $as_echo_n "(cached) " >&6
bb70624e 5133else
3185942a
JA
5134 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5135$as_echo_n "checking for tgetent... " >&6; }
b80f6443 5136if test "${ac_cv_func_tgetent+set}" = set; then
3185942a 5137 $as_echo_n "(cached) " >&6
b80f6443
JA
5138else
5139 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
5145/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5147#define tgetent innocuous_tgetent
5148
b80f6443 5149/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
5150 which can conflict with char tgetent (); below.
5151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 <limits.h> exists even on freestanding compilers. */
5153
5154#ifdef __STDC__
5155# include <limits.h>
5156#else
5157# include <assert.h>
5158#endif
5159
5160#undef tgetent
5161
3185942a
JA
5162/* Override any GCC internal prototype to avoid an error.
5163 Use char because int might match the return type of a GCC
5164 builtin and then its argument prototype would still apply. */
b80f6443
JA
5165#ifdef __cplusplus
5166extern "C"
b80f6443 5167#endif
b80f6443
JA
5168char tgetent ();
5169/* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
3185942a 5172#if defined __stub_tgetent || defined __stub___tgetent
b80f6443 5173choke me
b80f6443
JA
5174#endif
5175
0628567a
JA
5176int
5177main ()
5178{
3185942a 5179return tgetent ();
b80f6443
JA
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5185if { (ac_try="$ac_link"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191$as_echo "$ac_try_echo") >&5
5192 (eval "$ac_link") 2>conftest.er1
b80f6443 5193 ac_status=$?
0628567a
JA
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
3185942a
JA
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest$ac_exeext && {
5202 test "$cross_compiling" = yes ||
5203 $as_test_x conftest$ac_exeext
5204 }; then
b80f6443
JA
5205 ac_cv_func_tgetent=yes
5206else
3185942a 5207 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
3185942a 5210 ac_cv_func_tgetent=no
b80f6443 5211fi
3185942a
JA
5212
5213rm -rf conftest.dSYM
5214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5215 conftest$ac_exeext conftest.$ac_ext
b80f6443 5216fi
3185942a
JA
5217{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5218$as_echo "$ac_cv_func_tgetent" >&6; }
5219if test "x$ac_cv_func_tgetent" = x""yes; then
b80f6443
JA
5220 bash_cv_termcap_lib=libc
5221else
3185942a
JA
5222 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5223$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
f73dda09 5224if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3185942a 5225 $as_echo_n "(cached) " >&6
bb70624e 5226else
f73dda09 5227 ac_check_lib_save_LIBS=$LIBS
bb70624e 5228LIBS="-ltermcap $LIBS"
f73dda09 5229cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
f73dda09 5235
3185942a
JA
5236/* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
f73dda09
JA
5239#ifdef __cplusplus
5240extern "C"
5241#endif
f73dda09
JA
5242char tgetent ();
5243int
5244main ()
5245{
3185942a 5246return tgetent ();
f73dda09
JA
5247 ;
5248 return 0;
5249}
5250_ACEOF
5251rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5252if { (ac_try="$ac_link"
5253case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
5257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258$as_echo "$ac_try_echo") >&5
5259 (eval "$ac_link") 2>conftest.er1
f73dda09 5260 ac_status=$?
0628567a
JA
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
3185942a
JA
5264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest$ac_exeext && {
5269 test "$cross_compiling" = yes ||
5270 $as_test_x conftest$ac_exeext
5271 }; then
f73dda09
JA
5272 ac_cv_lib_termcap_tgetent=yes
5273else
3185942a 5274 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
3185942a 5277 ac_cv_lib_termcap_tgetent=no
f73dda09 5278fi
3185942a
JA
5279
5280rm -rf conftest.dSYM
5281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5282 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5283LIBS=$ac_check_lib_save_LIBS
5284fi
3185942a
JA
5285{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5286$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5287if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
bb70624e
JA
5288 bash_cv_termcap_lib=libtermcap
5289else
3185942a
JA
5290 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5291$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
f73dda09 5292if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3185942a 5293 $as_echo_n "(cached) " >&6
bb70624e 5294else
f73dda09
JA
5295 ac_check_lib_save_LIBS=$LIBS
5296LIBS="-ltinfo $LIBS"
5297cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5298/* confdefs.h. */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h. */
f73dda09 5303
3185942a
JA
5304/* Override any GCC internal prototype to avoid an error.
5305 Use char because int might match the return type of a GCC
5306 builtin and then its argument prototype would still apply. */
f73dda09
JA
5307#ifdef __cplusplus
5308extern "C"
5309#endif
f73dda09
JA
5310char tgetent ();
5311int
5312main ()
5313{
3185942a 5314return tgetent ();
f73dda09
JA
5315 ;
5316 return 0;
5317}
5318_ACEOF
5319rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5320if { (ac_try="$ac_link"
5321case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
5325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5326$as_echo "$ac_try_echo") >&5
5327 (eval "$ac_link") 2>conftest.er1
f73dda09 5328 ac_status=$?
0628567a
JA
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
3185942a
JA
5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_c_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest$ac_exeext && {
5337 test "$cross_compiling" = yes ||
5338 $as_test_x conftest$ac_exeext
5339 }; then
f73dda09
JA
5340 ac_cv_lib_tinfo_tgetent=yes
5341else
3185942a 5342 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
3185942a 5345 ac_cv_lib_tinfo_tgetent=no
f73dda09 5346fi
3185942a
JA
5347
5348rm -rf conftest.dSYM
5349rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5350 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5351LIBS=$ac_check_lib_save_LIBS
5352fi
3185942a
JA
5353{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5354$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5355if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
7117c2d2 5356 bash_cv_termcap_lib=libtinfo
f73dda09 5357else
3185942a
JA
5358 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5359$as_echo_n "checking for tgetent in -lcurses... " >&6; }
f73dda09 5360if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3185942a 5361 $as_echo_n "(cached) " >&6
f73dda09
JA
5362else
5363 ac_check_lib_save_LIBS=$LIBS
5364LIBS="-lcurses $LIBS"
5365cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5366/* confdefs.h. */
5367_ACEOF
5368cat confdefs.h >>conftest.$ac_ext
5369cat >>conftest.$ac_ext <<_ACEOF
5370/* end confdefs.h. */
b72432fd 5371
3185942a
JA
5372/* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
f73dda09
JA
5375#ifdef __cplusplus
5376extern "C"
5377#endif
f73dda09
JA
5378char tgetent ();
5379int
5380main ()
5381{
3185942a 5382return tgetent ();
f73dda09
JA
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5388if { (ac_try="$ac_link"
5389case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392esac
5393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5394$as_echo "$ac_try_echo") >&5
5395 (eval "$ac_link") 2>conftest.er1
f73dda09 5396 ac_status=$?
0628567a
JA
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
3185942a
JA
5400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest$ac_exeext && {
5405 test "$cross_compiling" = yes ||
5406 $as_test_x conftest$ac_exeext
5407 }; then
f73dda09
JA
5408 ac_cv_lib_curses_tgetent=yes
5409else
3185942a 5410 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
3185942a 5413 ac_cv_lib_curses_tgetent=no
f73dda09 5414fi
3185942a
JA
5415
5416rm -rf conftest.dSYM
5417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5418 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5419LIBS=$ac_check_lib_save_LIBS
5420fi
3185942a
JA
5421{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5422$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5423if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
bb70624e
JA
5424 bash_cv_termcap_lib=libcurses
5425else
3185942a
JA
5426 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5427$as_echo_n "checking for tgetent in -lncurses... " >&6; }
f73dda09 5428if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3185942a 5429 $as_echo_n "(cached) " >&6
bb70624e 5430else
f73dda09 5431 ac_check_lib_save_LIBS=$LIBS
bb70624e 5432LIBS="-lncurses $LIBS"
f73dda09 5433cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5434/* confdefs.h. */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h. */
f73dda09 5439
3185942a
JA
5440/* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
f73dda09
JA
5443#ifdef __cplusplus
5444extern "C"
5445#endif
f73dda09
JA
5446char tgetent ();
5447int
5448main ()
5449{
3185942a 5450return tgetent ();
f73dda09
JA
5451 ;
5452 return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5456if { (ac_try="$ac_link"
5457case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5462$as_echo "$ac_try_echo") >&5
5463 (eval "$ac_link") 2>conftest.er1
f73dda09 5464 ac_status=$?
0628567a
JA
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
3185942a
JA
5468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_c_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest$ac_exeext && {
5473 test "$cross_compiling" = yes ||
5474 $as_test_x conftest$ac_exeext
5475 }; then
f73dda09
JA
5476 ac_cv_lib_ncurses_tgetent=yes
5477else
3185942a 5478 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
3185942a 5481 ac_cv_lib_ncurses_tgetent=no
f73dda09 5482fi
3185942a
JA
5483
5484rm -rf conftest.dSYM
5485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5486 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5487LIBS=$ac_check_lib_save_LIBS
5488fi
3185942a
JA
5489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5490$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5491if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
f73dda09 5492 bash_cv_termcap_lib=libncurses
bb70624e 5493else
f73dda09 5494 bash_cv_termcap_lib=gnutermcap
bb70624e 5495fi
bb70624e 5496
bb70624e
JA
5497fi
5498
5499fi
5500
5501fi
5502
5503fi
5504
b80f6443
JA
5505fi
5506
bb70624e 5507if test "X$_bash_needmsg" = "Xyes"; then
3185942a
JA
5508{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5509$as_echo_n "checking which library has the termcap functions... " >&6; }
bb70624e 5510fi
3185942a
JA
5511{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5512$as_echo "using $bash_cv_termcap_lib" >&6; }
bb70624e
JA
5513if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5514LDFLAGS="$LDFLAGS -L./lib/termcap"
5515TERMCAP_LIB="./lib/termcap/libtermcap.a"
5516TERMCAP_DEP="./lib/termcap/libtermcap.a"
5517elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5518TERMCAP_LIB=-ltermcap
5519TERMCAP_DEP=
f73dda09
JA
5520elif test $bash_cv_termcap_lib = libtinfo; then
5521TERMCAP_LIB=-ltinfo
5522TERMCAP_DEP=
bb70624e
JA
5523elif test $bash_cv_termcap_lib = libncurses; then
5524TERMCAP_LIB=-lncurses
5525TERMCAP_DEP=
b80f6443
JA
5526elif test $bash_cv_termcap_lib = libc; then
5527TERMCAP_LIB=
5528TERMCAP_DEP=
bb70624e
JA
5529else
5530TERMCAP_LIB=-lcurses
5531TERMCAP_DEP=
5532fi
5533
b80f6443
JA
5534
5535
5536
3185942a
JA
5537{ $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5538$as_echo_n "checking version of installed readline library... " >&6; }
f73dda09
JA
5539
5540# What a pain in the ass this is.
5541
5542# save cpp and ld options
5543_save_CFLAGS="$CFLAGS"
5544_save_LDFLAGS="$LDFLAGS"
5545_save_LIBS="$LIBS"
5546
5547# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5548# allows the caller to do something like $_rl_prefix=$withval if the user
5549# specifies --with-installed-readline=PREFIX as an argument to configure
5550
5551if test -z "$ac_cv_rl_prefix"; then
5552test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5553fi
5554
5555eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5556eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5557
5558LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5559CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5560LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5561
b80f6443 5562if test "${ac_cv_rl_version+set}" = set; then
3185942a 5563 $as_echo_n "(cached) " >&6
b80f6443
JA
5564else
5565 if test "$cross_compiling" = yes; then
f73dda09
JA
5566 ac_cv_rl_version='4.2'
5567else
5568 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5569/* confdefs.h. */
5570_ACEOF
5571cat confdefs.h >>conftest.$ac_ext
5572cat >>conftest.$ac_ext <<_ACEOF
5573/* end confdefs.h. */
f73dda09
JA
5574
5575#include <stdio.h>
5576#include <readline/readline.h>
5577
95732b49
JA
5578extern int rl_gnu_readline_p;
5579
f73dda09
JA
5580main()
5581{
5582 FILE *fp;
5583 fp = fopen("conftest.rlv", "w");
95732b49
JA
5584 if (fp == 0)
5585 exit(1);
5586 if (rl_gnu_readline_p != 1)
5587 fprintf(fp, "0.0\n");
5588 else
5589 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
f73dda09
JA
5590 fclose(fp);
5591 exit(0);
5592}
5593
5594_ACEOF
5595rm -f conftest$ac_exeext
3185942a
JA
5596if { (ac_try="$ac_link"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602$as_echo "$ac_try_echo") >&5
5603 (eval "$ac_link") 2>&5
f73dda09 5604 ac_status=$?
3185942a 5605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612$as_echo "$ac_try_echo") >&5
5613 (eval "$ac_try") 2>&5
f73dda09 5614 ac_status=$?
3185942a 5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5616 (exit $ac_status); }; }; then
5617 ac_cv_rl_version=`cat conftest.rlv`
5618else
3185942a
JA
5619 $as_echo "$as_me: program exited with status $ac_status" >&5
5620$as_echo "$as_me: failed program was:" >&5
0628567a
JA
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
b80f6443 5623( exit $ac_status )
f73dda09
JA
5624ac_cv_rl_version='0.0'
5625fi
3185942a
JA
5626rm -rf conftest.dSYM
5627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 5628fi
3185942a
JA
5629
5630
b80f6443
JA
5631fi
5632
f73dda09
JA
5633
5634CFLAGS="$_save_CFLAGS"
5635LDFLAGS="$_save_LDFLAGS"
5636LIBS="$_save_LIBS"
5637
5638RL_MAJOR=0
5639RL_MINOR=0
5640
5641# (
5642case "$ac_cv_rl_version" in
56432*|3*|4*|5*|6*|7*|8*|9*)
5644 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
7117c2d2 5645 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
f73dda09
JA
5646 ;;
5647esac
5648
5649# (((
5650case $RL_MAJOR in
5651[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5652[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5653*) _RL_MAJOR=00 ;;
5654esac
5655
5656# (((
5657case $RL_MINOR in
5658[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5659[0-9]) _RL_MINOR=0$RL_MINOR ;;
5660*) _RL_MINOR=00 ;;
5661esac
5662
5663RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5664
5665# Readline versions greater than 4.2 have these defines in readline.h
5666
5667if test $ac_cv_rl_version = '0.0' ; then
3185942a
JA
5668 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5669$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
f73dda09
JA
5670elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5671 # set these for use by the caller
5672 RL_PREFIX=$ac_cv_rl_prefix
5673 RL_LIBDIR=$ac_cv_rl_libdir
5674 RL_INCLUDEDIR=$ac_cv_rl_includedir
3185942a
JA
5675 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5676$as_echo "$ac_cv_rl_version" >&6; }
f73dda09
JA
5677else
5678
b80f6443
JA
5679
5680cat >>confdefs.h <<_ACEOF
f73dda09 5681#define RL_READLINE_VERSION $RL_VERSION
b80f6443 5682_ACEOF
f73dda09 5683
b80f6443
JA
5684
5685cat >>confdefs.h <<_ACEOF
f73dda09 5686#define RL_VERSION_MAJOR $RL_MAJOR
b80f6443 5687_ACEOF
f73dda09 5688
b80f6443
JA
5689
5690cat >>confdefs.h <<_ACEOF
f73dda09 5691#define RL_VERSION_MINOR $RL_MINOR
b80f6443
JA
5692_ACEOF
5693
5694
5695
5696
5697
f73dda09
JA
5698
5699# set these for use by the caller
5700RL_PREFIX=$ac_cv_rl_prefix
5701RL_LIBDIR=$ac_cv_rl_libdir
5702RL_INCLUDEDIR=$ac_cv_rl_includedir
bb70624e 5703
3185942a
JA
5704{ $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5705$as_echo "$ac_cv_rl_version" >&6; }
bb70624e 5706
f73dda09 5707fi
bb70624e 5708
b80f6443 5709
f73dda09 5710 case "$ac_cv_rl_version" in
b80f6443 5711 5*|6*|7*|8*|9*) ;;
f73dda09 5712 *) opt_with_installed_readline=no
3185942a
JA
5713 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5714$as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5715 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5716$as_echo "$as_me: WARNING: using private bash version" >&2;}
bb70624e
JA
5717 ;;
5718 esac
bb70624e
JA
5719fi
5720
95732b49 5721TILDE_LIB=-ltilde
bb70624e 5722if test $opt_readline = yes; then
b80f6443 5723 cat >>confdefs.h <<\_ACEOF
bb70624e 5724#define READLINE 1
b80f6443 5725_ACEOF
bb70624e 5726
f73dda09 5727 if test "$opt_with_installed_readline" != "no" ; then
b80f6443
JA
5728 case "$opt_with_installed_readline" in
5729 yes) RL_INCLUDE= ;;
5730 *) case "$RL_INCLUDEDIR" in
5731 /usr/include) ;;
5732 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5733 esac
5734 ;;
f73dda09 5735 esac
bb70624e 5736 READLINE_DEP=
95732b49
JA
5737 READLINE_LIB=-lreadline
5738 # section for OS versions that don't allow unresolved symbols
5739 # to be compiled into dynamic libraries.
5740 case "$host_os" in
5741 cygwin*) TILDE_LIB= ;;
5742 esac
bb70624e
JA
5743 else
5744 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5745 READLINE_DEP='$(READLINE_LIBRARY)'
95732b49
JA
5746 # section for OS versions that ship an older/broken version of
5747 # readline as a standard dynamic library and don't allow a
5748 # static version specified as -llibname to override the
5749 # dynamic version
5750 case "${host_os}" in
89a92869 5751 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
95732b49
JA
5752 *) READLINE_LIB=-lreadline ;;
5753 esac
bb70624e
JA
5754 fi
5755else
5756 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5757 READLINE_LIB= READLINE_DEP=
5758fi
5759if test $opt_history = yes || test $opt_bang_history = yes; then
5760 if test $opt_history = yes; then
b80f6443 5761 cat >>confdefs.h <<\_ACEOF
bb70624e 5762#define HISTORY 1
b80f6443 5763_ACEOF
bb70624e
JA
5764
5765 fi
5766 if test $opt_bang_history = yes; then
b80f6443 5767 cat >>confdefs.h <<\_ACEOF
bb70624e 5768#define BANG_HISTORY 1
b80f6443 5769_ACEOF
b72432fd
JA
5770
5771 fi
f73dda09
JA
5772 if test "$opt_with_installed_readline" != "no"; then
5773 HIST_LIBDIR=$RL_LIBDIR
b72432fd 5774 HISTORY_DEP=
95732b49 5775 HISTORY_LIB=-lhistory
b80f6443
JA
5776 case "$opt_with_installed_readline" in
5777 yes) RL_INCLUDE= ;;
5778 *) case "$RL_INCLUDEDIR" in
5779 /usr/include) ;;
5780 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5781 esac
5782 ;;
f73dda09 5783 esac
b72432fd
JA
5784 else
5785 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5786 HISTORY_DEP='$(HISTORY_LIBRARY)'
95732b49
JA
5787 # section for OS versions that ship an older version of
5788 # readline as a standard dynamic library and don't allow a
5789 # static version specified as -llibname to override the
5790 # dynamic version
5791 case "${host_os}" in
89a92869 5792 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
95732b49
JA
5793 *) HISTORY_LIB=-lhistory ;;
5794 esac
b72432fd
JA
5795 fi
5796else
5797 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5798 HISTORY_LIB= HISTORY_DEP=
5799fi
5800
b80f6443
JA
5801
5802
5803
5804
5805
5806
5807
5808
5809
95732b49 5810
ccc6cda3
JA
5811# Find a good install program. We prefer a C program (faster),
5812# so one script is as good as another. But avoid the broken or
5813# incompatible versions:
5814# SysV /etc/install, /usr/sbin/install
5815# SunOS /usr/etc/install
5816# IRIX /sbin/install
5817# AIX /bin/install
f73dda09 5818# AmigaOS /C/install, which installs bootblocks on floppy discs
bb70624e 5819# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccc6cda3
JA
5820# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5821# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0628567a 5822# OS/2's system install, which has a completely different semantic
ccc6cda3 5823# ./install, which can be erroneously created by make from ./install.sh.
3185942a
JA
5824# Reject install programs that cannot install multiple files.
5825{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5826$as_echo_n "checking for a BSD-compatible install... " >&6; }
ccc6cda3 5827if test -z "$INSTALL"; then
f73dda09 5828if test "${ac_cv_path_install+set}" = set; then
3185942a 5829 $as_echo_n "(cached) " >&6
ccc6cda3 5830else
b80f6443
JA
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 # Account for people who put trailing slashes in PATH elements.
5837case $as_dir/ in
5838 ./ | .// | /cC/* | \
5839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0628567a 5840 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
b80f6443
JA
5841 /usr/ucb/* ) ;;
5842 *)
5843 # OSF1 and SCO ODT 3.0 have their own names for install.
5844 # Don't use installbsd from OSF since it installs stuff as root
5845 # by default.
5846 for ac_prog in ginstall scoinst install; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 5848 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
0628567a
JA
5849 if test $ac_prog = install &&
5850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5851 # AIX install. It has an incompatible calling convention.
5852 :
5853 elif test $ac_prog = install &&
5854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5855 # program-specific install script used by HP pwplus--don't use.
5856 :
5857 else
3185942a
JA
5858 rm -rf conftest.one conftest.two conftest.dir
5859 echo one > conftest.one
5860 echo two > conftest.two
5861 mkdir conftest.dir
5862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5863 test -s conftest.one && test -s conftest.two &&
5864 test -s conftest.dir/conftest.one &&
5865 test -s conftest.dir/conftest.two
5866 then
5867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5868 break 3
5869 fi
0628567a
JA
5870 fi
5871 fi
ccc6cda3 5872 done
b80f6443
JA
5873 done
5874 ;;
5875esac
3185942a 5876
b80f6443 5877done
3185942a 5878IFS=$as_save_IFS
b80f6443 5879
3185942a 5880rm -rf conftest.one conftest.two conftest.dir
ccc6cda3
JA
5881
5882fi
5883 if test "${ac_cv_path_install+set}" = set; then
f73dda09 5884 INSTALL=$ac_cv_path_install
ccc6cda3 5885 else
3185942a
JA
5886 # As a last resort, use the slow shell script. Don't cache a
5887 # value for INSTALL within a source directory, because that will
ccc6cda3 5888 # break other packages using the cache if that directory is
3185942a 5889 # removed, or if the value is a relative name.
f73dda09 5890 INSTALL=$ac_install_sh
ccc6cda3
JA
5891 fi
5892fi
3185942a
JA
5893{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5894$as_echo "$INSTALL" >&6; }
ccc6cda3
JA
5895
5896# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5897# It thinks the first close brace ends the variable substitution.
5898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5899
f73dda09 5900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
bb70624e 5901
ccc6cda3
JA
5902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5903
5904# Extract the first word of "ar", so it can be a program name with args.
5905set dummy ar; ac_word=$2
3185942a
JA
5906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 5908if test "${ac_cv_prog_AR+set}" = set; then
3185942a 5909 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5910else
5911 if test -n "$AR"; then
5912 ac_cv_prog_AR="$AR" # Let the user override the test.
5913else
b80f6443
JA
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 5921 ac_cv_prog_AR=""
3185942a 5922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
5923 break 2
5924 fi
5925done
f73dda09 5926done
3185942a 5927IFS=$as_save_IFS
f73dda09
JA
5928
5929 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
ccc6cda3
JA
5930fi
5931fi
f73dda09 5932AR=$ac_cv_prog_AR
ccc6cda3 5933if test -n "$AR"; then
3185942a
JA
5934 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5935$as_echo "$AR" >&6; }
ccc6cda3 5936else
3185942a
JA
5937 { $as_echo "$as_me:$LINENO: result: no" >&5
5938$as_echo "no" >&6; }
ccc6cda3
JA
5939fi
5940
3185942a 5941
b72432fd 5942test -n "$ARFLAGS" || ARFLAGS="cr"
f73dda09
JA
5943if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5945set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3185942a
JA
5946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 5948if test "${ac_cv_prog_RANLIB+set}" = set; then
3185942a 5949 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5950else
5951 if test -n "$RANLIB"; then
5952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5953else
b80f6443
JA
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 5961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3185942a 5962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
5963 break 2
5964 fi
5965done
f73dda09 5966done
3185942a 5967IFS=$as_save_IFS
f73dda09 5968
ccc6cda3
JA
5969fi
5970fi
f73dda09 5971RANLIB=$ac_cv_prog_RANLIB
ccc6cda3 5972if test -n "$RANLIB"; then
3185942a
JA
5973 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5974$as_echo "$RANLIB" >&6; }
f73dda09 5975else
3185942a
JA
5976 { $as_echo "$as_me:$LINENO: result: no" >&5
5977$as_echo "no" >&6; }
f73dda09
JA
5978fi
5979
3185942a 5980
f73dda09
JA
5981fi
5982if test -z "$ac_cv_prog_RANLIB"; then
5983 ac_ct_RANLIB=$RANLIB
5984 # Extract the first word of "ranlib", so it can be a program name with args.
5985set dummy ranlib; ac_word=$2
3185942a
JA
5986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 5988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3185942a 5989 $as_echo_n "(cached) " >&6
f73dda09
JA
5990else
5991 if test -n "$ac_ct_RANLIB"; then
5992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5993else
b80f6443
JA
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 6001 ac_cv_prog_ac_ct_RANLIB="ranlib"
3185942a 6002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
6003 break 2
6004 fi
6005done
f73dda09 6006done
3185942a 6007IFS=$as_save_IFS
f73dda09 6008
f73dda09
JA
6009fi
6010fi
6011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6012if test -n "$ac_ct_RANLIB"; then
3185942a
JA
6013 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6014$as_echo "$ac_ct_RANLIB" >&6; }
ccc6cda3 6015else
3185942a
JA
6016 { $as_echo "$as_me:$LINENO: result: no" >&5
6017$as_echo "no" >&6; }
f73dda09
JA
6018fi
6019
3185942a
JA
6020 if test "x$ac_ct_RANLIB" = x; then
6021 RANLIB=":"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027ac_tool_warned=yes ;;
6028esac
6029 RANLIB=$ac_ct_RANLIB
6030 fi
f73dda09
JA
6031else
6032 RANLIB="$ac_cv_prog_RANLIB"
ccc6cda3
JA
6033fi
6034
6035for ac_prog in 'bison -y' byacc
6036do
f73dda09 6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
ccc6cda3 6038set dummy $ac_prog; ac_word=$2
3185942a
JA
6039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 6041if test "${ac_cv_prog_YACC+set}" = set; then
3185942a 6042 $as_echo_n "(cached) " >&6
ccc6cda3
JA
6043else
6044 if test -n "$YACC"; then
6045 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6046else
b80f6443
JA
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 6054 ac_cv_prog_YACC="$ac_prog"
3185942a 6055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
6056 break 2
6057 fi
6058done
f73dda09 6059done
3185942a 6060IFS=$as_save_IFS
f73dda09 6061
ccc6cda3
JA
6062fi
6063fi
f73dda09 6064YACC=$ac_cv_prog_YACC
ccc6cda3 6065if test -n "$YACC"; then
3185942a
JA
6066 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6067$as_echo "$YACC" >&6; }
ccc6cda3 6068else
3185942a
JA
6069 { $as_echo "$as_me:$LINENO: result: no" >&5
6070$as_echo "no" >&6; }
ccc6cda3
JA
6071fi
6072
3185942a 6073
f73dda09 6074 test -n "$YACC" && break
ccc6cda3
JA
6075done
6076test -n "$YACC" || YACC="yacc"
6077
3185942a
JA
6078{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6079$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6080set x ${MAKE-make}
6081ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6082if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6083 $as_echo_n "(cached) " >&6
ccc6cda3 6084else
b80f6443 6085 cat >conftest.make <<\_ACEOF
3185942a 6086SHELL = /bin/sh
ccc6cda3 6087all:
3185942a 6088 @echo '@@@%%%=$(MAKE)=@@@%%%'
b80f6443 6089_ACEOF
ccc6cda3 6090# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3185942a
JA
6091case `${MAKE-make} -f conftest.make 2>/dev/null` in
6092 *@@@%%%=?*=@@@%%%*)
6093 eval ac_cv_prog_make_${ac_make}_set=yes;;
6094 *)
6095 eval ac_cv_prog_make_${ac_make}_set=no;;
6096esac
f73dda09 6097rm -f conftest.make
ccc6cda3 6098fi
3185942a
JA
6099if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6100 { $as_echo "$as_me:$LINENO: result: yes" >&5
6101$as_echo "yes" >&6; }
ccc6cda3
JA
6102 SET_MAKE=
6103else
3185942a
JA
6104 { $as_echo "$as_me:$LINENO: result: no" >&5
6105$as_echo "no" >&6; }
ccc6cda3
JA
6106 SET_MAKE="MAKE=${MAKE-make}"
6107fi
6108
b80f6443 6109
b72432fd 6110case "$host_os" in
bb70624e 6111opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
b72432fd
JA
6112*) MAKE_SHELL=/bin/sh ;;
6113esac
6114
6115
95732b49
JA
6116if test x$SIZE = x; then
6117 if test x$ac_tool_prefix = x; then
6118 SIZE=size
6119 else
6120 SIZE=${ac_tool_prefix}size
6121 save_IFS=$IFS ; IFS=:
6122 size_found=0
6123 for dir in $PATH; do
6124 if test -x $dir/$SIZE ; then
6125 size_found=1
6126 break
6127 fi
6128 done
6129 if test $size_found -eq 0; then
6130 SIZE=:
6131 fi
6132 IFS=$save_IFS
6133 fi
6134fi
6135
6136
b80f6443
JA
6137cat >>confdefs.h <<\_ACEOF
6138#define _GNU_SOURCE 1
f73dda09 6139_ACEOF
ccc6cda3 6140
f73dda09 6141
3185942a
JA
6142{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6143$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
0628567a 6144if test "${ac_cv_c_const+set}" = set; then
3185942a 6145 $as_echo_n "(cached) " >&6
95732b49 6146else
0628567a
JA
6147 cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153
6154int
6155main ()
f73dda09
JA
6156{
6157/* FIXME: Include the comments suggested by Paul. */
6158#ifndef __cplusplus
6159 /* Ultrix mips cc rejects this. */
6160 typedef int charset[2];
3185942a 6161 const charset cs;
f73dda09 6162 /* SunOS 4.1.1 cc rejects this. */
3185942a
JA
6163 char const *const *pcpcc;
6164 char **ppc;
f73dda09
JA
6165 /* NEC SVR4.0.2 mips cc rejects this. */
6166 struct point {int x, y;};
6167 static struct point const zero = {0,0};
6168 /* AIX XL C 1.02.0.0 rejects this.
6169 It does not let you subtract one const X* pointer from another in
6170 an arm of an if-expression whose if-part is not a constant
6171 expression */
6172 const char *g = "string";
3185942a 6173 pcpcc = &g + (g ? g-g : 0);
f73dda09 6174 /* HPUX 7.0 cc rejects these. */
3185942a
JA
6175 ++pcpcc;
6176 ppc = (char**) pcpcc;
6177 pcpcc = (char const *const *) ppc;
f73dda09
JA
6178 { /* SCO 3.2v4 cc rejects this. */
6179 char *t;
6180 char const *s = 0 ? (char *) 0 : (char const *) 0;
6181
6182 *t++ = 0;
3185942a 6183 if (s) return 0;
f73dda09
JA
6184 }
6185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6186 int x[] = {25, 17};
6187 const int *foo = &x[0];
6188 ++foo;
6189 }
6190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6191 typedef const int *iptr;
6192 iptr p = 0;
6193 ++p;
6194 }
6195 { /* AIX XL C 1.02.0.0 rejects this saying
6196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6197 struct s { int j; const int *ap[3]; };
6198 struct s *b; b->j = 5;
6199 }
6200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6201 const int foo = 10;
3185942a 6202 if (!foo) return 0;
f73dda09 6203 }
3185942a 6204 return !cs[0] && !zero.x;
ccc6cda3
JA
6205#endif
6206
f73dda09
JA
6207 ;
6208 return 0;
6209}
6210_ACEOF
6211rm -f conftest.$ac_objext
3185942a
JA
6212if { (ac_try="$ac_compile"
6213case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216esac
6217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218$as_echo "$ac_try_echo") >&5
6219 (eval "$ac_compile") 2>conftest.er1
f73dda09 6220 ac_status=$?
0628567a
JA
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
3185942a
JA
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
f73dda09
JA
6229 ac_cv_c_const=yes
6230else
3185942a 6231 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
3185942a 6234 ac_cv_c_const=no
f73dda09 6235fi
3185942a
JA
6236
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 6238fi
3185942a
JA
6239{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6240$as_echo "$ac_cv_c_const" >&6; }
f73dda09
JA
6241if test $ac_cv_c_const = no; then
6242
b80f6443 6243cat >>confdefs.h <<\_ACEOF
3185942a 6244#define const /**/
b80f6443 6245_ACEOF
ccc6cda3
JA
6246
6247fi
6248
3185942a
JA
6249{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6250$as_echo_n "checking for inline... " >&6; }
f73dda09 6251if test "${ac_cv_c_inline+set}" = set; then
3185942a 6252 $as_echo_n "(cached) " >&6
ccc6cda3 6253else
f73dda09
JA
6254 ac_cv_c_inline=no
6255for ac_kw in inline __inline__ __inline; do
6256 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
f73dda09 6262#ifndef __cplusplus
0628567a
JA
6263typedef int foo_t;
6264static $ac_kw foo_t static_foo () {return 0; }
6265$ac_kw foo_t foo () {return 0; }
ccc6cda3
JA
6266#endif
6267
f73dda09
JA
6268_ACEOF
6269rm -f conftest.$ac_objext
3185942a
JA
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276$as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
f73dda09 6278 ac_status=$?
0628567a
JA
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
3185942a
JA
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287 ac_cv_c_inline=$ac_kw
f73dda09 6288else
3185942a 6289 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
3185942a 6292
f73dda09 6293fi
3185942a
JA
6294
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 test "$ac_cv_c_inline" != no && break
f73dda09 6297done
ccc6cda3
JA
6298
6299fi
3185942a
JA
6300{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6301$as_echo "$ac_cv_c_inline" >&6; }
0628567a
JA
6302
6303
f73dda09
JA
6304case $ac_cv_c_inline in
6305 inline | yes) ;;
0628567a
JA
6306 *)
6307 case $ac_cv_c_inline in
6308 no) ac_val=;;
6309 *) ac_val=$ac_cv_c_inline;;
6310 esac
6311 cat >>confdefs.h <<_ACEOF
6312#ifndef __cplusplus
6313#define inline $ac_val
6314#endif
b80f6443 6315_ACEOF
0628567a 6316 ;;
f73dda09 6317esac
ccc6cda3 6318
3185942a
JA
6319
6320 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6321$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
f73dda09 6322if test "${ac_cv_c_bigendian+set}" = set; then
3185942a 6323 $as_echo_n "(cached) " >&6
ccc6cda3 6324else
3185942a
JA
6325 ac_cv_c_bigendian=unknown
6326 # See if we're dealing with a universal compiler.
6327 cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h. */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h. */
6333#ifndef __APPLE_CC__
6334 not a universal capable compiler
6335 #endif
6336 typedef int dummy;
6337
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (ac_try="$ac_compile"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6346$as_echo "$ac_try_echo") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest.$ac_objext; then
6357
6358 # Check for potential -arch flags. It is not universal unless
6359 # there are some -arch flags. Note that *ppc* also matches
6360 # ppc64. This check is also rather less than ideal.
6361 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6362 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6363 esac
6364else
6365 $as_echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368
6369fi
6370
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 if test $ac_cv_c_bigendian = unknown; then
6373 # See if sys/param.h defines the BYTE_ORDER macro.
6374 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
f73dda09 6380#include <sys/types.h>
3185942a 6381 #include <sys/param.h>
ccc6cda3 6382
f73dda09
JA
6383int
6384main ()
6385{
3185942a
JA
6386#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6388 && LITTLE_ENDIAN)
6389 bogus endian macros
6390 #endif
ccc6cda3 6391
f73dda09
JA
6392 ;
6393 return 0;
6394}
6395_ACEOF
6396rm -f conftest.$ac_objext
3185942a
JA
6397if { (ac_try="$ac_compile"
6398case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401esac
6402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403$as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
f73dda09 6405 ac_status=$?
0628567a
JA
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
3185942a
JA
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
f73dda09 6414 # It does; now see whether it defined to BIG_ENDIAN or not.
3185942a 6415 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6416/* confdefs.h. */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h. */
f73dda09 6421#include <sys/types.h>
3185942a 6422 #include <sys/param.h>
ccc6cda3 6423
f73dda09
JA
6424int
6425main ()
6426{
6427#if BYTE_ORDER != BIG_ENDIAN
3185942a
JA
6428 not big endian
6429 #endif
ccc6cda3 6430
f73dda09
JA
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
3185942a
JA
6436if { (ac_try="$ac_compile"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6442$as_echo "$ac_try_echo") >&5
6443 (eval "$ac_compile") 2>conftest.er1
f73dda09 6444 ac_status=$?
0628567a
JA
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
3185942a
JA
6448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
f73dda09 6453 ac_cv_c_bigendian=yes
ccc6cda3 6454else
3185942a 6455 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
3185942a 6458 ac_cv_c_bigendian=no
ccc6cda3 6459fi
3185942a
JA
6460
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6462else
3185942a 6463 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
3185942a
JA
6466
6467fi
6468
6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 fi
6471 if test $ac_cv_c_bigendian = unknown; then
6472 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6473 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
3185942a
JA
6479#include <limits.h>
6480
b80f6443
JA
6481int
6482main ()
6483{
3185942a
JA
6484#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6485 bogus endian macros
6486 #endif
6487
b80f6443
JA
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext
3185942a
JA
6493if { (ac_try="$ac_compile"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499$as_echo "$ac_try_echo") >&5
6500 (eval "$ac_compile") 2>conftest.er1
b80f6443 6501 ac_status=$?
0628567a
JA
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
3185942a
JA
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 # It does; now see whether it defined to _BIG_ENDIAN or not.
6511 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6512/* confdefs.h. */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h. */
3185942a
JA
6517#include <limits.h>
6518
f73dda09
JA
6519int
6520main ()
ccc6cda3 6521{
3185942a
JA
6522#ifndef _BIG_ENDIAN
6523 not big endian
6524 #endif
6525
6526 ;
6527 return 0;
ccc6cda3 6528}
f73dda09 6529_ACEOF
3185942a
JA
6530rm -f conftest.$ac_objext
6531if { (ac_try="$ac_compile"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6537$as_echo "$ac_try_echo") >&5
6538 (eval "$ac_compile") 2>conftest.er1
f73dda09 6539 ac_status=$?
3185942a
JA
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_c_bigendian=yes
ccc6cda3 6549else
3185942a 6550 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
3185942a 6553 ac_cv_c_bigendian=no
f73dda09 6554fi
3185942a
JA
6555
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557else
6558 $as_echo "$as_me: failed program was:" >&5
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561
ccc6cda3
JA
6562fi
6563
3185942a
JA
6564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 fi
6566 if test $ac_cv_c_bigendian = unknown; then
6567 # Compile a test program.
6568 if test "$cross_compiling" = yes; then
6569 # Try to guess by grepping values from an object file.
6570 cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
6576short int ascii_mm[] =
6577 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6578 short int ascii_ii[] =
6579 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6580 int use_ascii (int i) {
6581 return ascii_mm[i] + ascii_ii[i];
6582 }
6583 short int ebcdic_ii[] =
6584 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6585 short int ebcdic_mm[] =
6586 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6587 int use_ebcdic (int i) {
6588 return ebcdic_mm[i] + ebcdic_ii[i];
6589 }
6590 extern int foo;
6591
6592int
6593main ()
6594{
6595return use_ascii (foo) == use_ebcdic (foo);
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext
6601if { (ac_try="$ac_compile"
6602case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605esac
6606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6607$as_echo "$ac_try_echo") >&5
6608 (eval "$ac_compile") 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
6612 cat conftest.err >&5
6613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest.$ac_objext; then
6618 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6619 ac_cv_c_bigendian=yes
6620 fi
6621 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6622 if test "$ac_cv_c_bigendian" = unknown; then
6623 ac_cv_c_bigendian=no
6624 else
6625 # finding both strings is unlikely to happen, but who knows?
6626 ac_cv_c_bigendian=unknown
6627 fi
6628 fi
6629else
6630 $as_echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633
6634fi
6635
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637else
6638 cat >conftest.$ac_ext <<_ACEOF
6639/* confdefs.h. */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h. */
6644$ac_includes_default
6645int
6646main ()
6647{
6648
6649 /* Are we little or big endian? From Harbison&Steele. */
6650 union
6651 {
6652 long int l;
6653 char c[sizeof (long int)];
6654 } u;
6655 u.l = 1;
6656 return u.c[sizeof (long int) - 1] == 1;
6657
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662rm -f conftest$ac_exeext
6663if { (ac_try="$ac_link"
6664case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667esac
6668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669$as_echo "$ac_try_echo") >&5
6670 (eval "$ac_link") 2>&5
6671 ac_status=$?
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6674 { (case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677esac
6678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679$as_echo "$ac_try_echo") >&5
6680 (eval "$ac_try") 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6684 ac_cv_c_bigendian=no
6685else
6686 $as_echo "$as_me: program exited with status $ac_status" >&5
6687$as_echo "$as_me: failed program was:" >&5
6688sed 's/^/| /' conftest.$ac_ext >&5
6689
6690( exit $ac_status )
6691ac_cv_c_bigendian=yes
6692fi
6693rm -rf conftest.dSYM
6694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6695fi
6696
6697
6698 fi
6699fi
6700{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6701$as_echo "$ac_cv_c_bigendian" >&6; }
6702 case $ac_cv_c_bigendian in #(
6703 yes)
6704 cat >>confdefs.h <<\_ACEOF
f73dda09 6705#define WORDS_BIGENDIAN 1
b80f6443 6706_ACEOF
3185942a
JA
6707;; #(
6708 no)
6709 ;; #(
6710 universal)
6711
6712cat >>confdefs.h <<\_ACEOF
6713#define AC_APPLE_UNIVERSAL_BUILD 1
6714_ACEOF
6715
6716 ;; #(
6717 *)
6718 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6719 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6720$as_echo "$as_me: error: unknown endianness
6721 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
b80f6443 6722 { (exit 1); exit 1; }; } ;;
3185942a 6723 esac
b80f6443 6724
3185942a
JA
6725{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6726$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
b80f6443 6727if test "${ac_cv_c_stringize+set}" = set; then
3185942a 6728 $as_echo_n "(cached) " >&6
ccc6cda3 6729else
f73dda09 6730 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6731/* confdefs.h. */
6732_ACEOF
6733cat confdefs.h >>conftest.$ac_ext
6734cat >>conftest.$ac_ext <<_ACEOF
6735/* end confdefs.h. */
f73dda09 6736#define x(y) #y
ccc6cda3 6737
f73dda09
JA
6738char *s = x(teststring);
6739_ACEOF
6740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 6741 $EGREP "#teststring" >/dev/null 2>&1; then
f73dda09 6742 ac_cv_c_stringize=no
ccc6cda3 6743else
f73dda09 6744 ac_cv_c_stringize=yes
ccc6cda3 6745fi
f73dda09 6746rm -f conftest*
ccc6cda3
JA
6747
6748fi
3185942a
JA
6749{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6750$as_echo "$ac_cv_c_stringize" >&6; }
f73dda09 6751if test $ac_cv_c_stringize = yes; then
ccc6cda3 6752
b80f6443 6753cat >>confdefs.h <<\_ACEOF
f73dda09 6754#define HAVE_STRINGIZE 1
b80f6443 6755_ACEOF
ccc6cda3
JA
6756
6757fi
6758
3185942a
JA
6759
6760
6761 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6762$as_echo_n "checking for long double with more range or precision than double... " >&6; }
6763if test "${ac_cv_type_long_double_wider+set}" = set; then
6764 $as_echo_n "(cached) " >&6
ccc6cda3 6765else
f73dda09 6766 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6767/* confdefs.h. */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h. */
b80f6443 6772#include <float.h>
3185942a
JA
6773 long double const a[] =
6774 {
6775 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6776 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6777 };
6778 long double
6779 f (long double x)
6780 {
6781 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6782 + (x ? f (x) : 'c'));
6783 }
6784
f73dda09
JA
6785int
6786main ()
6787{
3185942a
JA
6788static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6789 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6790 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6791 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6792 && (int) LDBL_EPSILON == 0
6793 )];
b80f6443
JA
6794test_array [0] = 0
6795
6796 ;
6797 return 0;
ccc6cda3 6798}
f73dda09 6799_ACEOF
b80f6443 6800rm -f conftest.$ac_objext
3185942a
JA
6801if { (ac_try="$ac_compile"
6802case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805esac
6806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6807$as_echo "$ac_try_echo") >&5
6808 (eval "$ac_compile") 2>conftest.er1
f73dda09 6809 ac_status=$?
0628567a
JA
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
3185942a
JA
6813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && {
6815 test -z "$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 } && test -s conftest.$ac_objext; then
6818 ac_cv_type_long_double_wider=yes
ccc6cda3 6819else
3185942a 6820 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
3185942a 6823 ac_cv_type_long_double_wider=no
f73dda09 6824fi
3185942a
JA
6825
6826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6827fi
3185942a
JA
6828{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6829$as_echo "$ac_cv_type_long_double_wider" >&6; }
6830 if test $ac_cv_type_long_double_wider = yes; then
6831
6832cat >>confdefs.h <<\_ACEOF
6833#define HAVE_LONG_DOUBLE_WIDER 1
6834_ACEOF
6835
6836 fi
6837
6838 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6839 if test $ac_cv_c_long_double = yes; then
ccc6cda3 6840
b80f6443 6841cat >>confdefs.h <<\_ACEOF
f73dda09 6842#define HAVE_LONG_DOUBLE 1
b80f6443 6843_ACEOF
ccc6cda3 6844
3185942a 6845 fi
ccc6cda3 6846
3185942a
JA
6847{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6848$as_echo_n "checking for function prototypes... " >&6; }
6849if test "$ac_cv_prog_cc_c89" != no; then
6850 { $as_echo "$as_me:$LINENO: result: yes" >&5
6851$as_echo "yes" >&6; }
ccc6cda3 6852
b80f6443 6853cat >>confdefs.h <<\_ACEOF
f73dda09 6854#define PROTOTYPES 1
f73dda09 6855_ACEOF
ccc6cda3 6856
f73dda09 6857
b80f6443
JA
6858cat >>confdefs.h <<\_ACEOF
6859#define __PROTOTYPES 1
f73dda09 6860_ACEOF
f73dda09 6861
f73dda09 6862else
3185942a
JA
6863 { $as_echo "$as_me:$LINENO: result: no" >&5
6864$as_echo "no" >&6; }
f73dda09 6865fi
ccc6cda3 6866
ccc6cda3 6867
3185942a
JA
6868{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6869$as_echo_n "checking whether char is unsigned... " >&6; }
f73dda09 6870if test "${ac_cv_c_char_unsigned+set}" = set; then
3185942a 6871 $as_echo_n "(cached) " >&6
ccc6cda3 6872else
f73dda09 6873 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
f73dda09
JA
6879$ac_includes_default
6880int
ccc6cda3
JA
6881main ()
6882{
b80f6443
JA
6883static int test_array [1 - 2 * !(((char) -1) < 0)];
6884test_array [0] = 0
6885
f73dda09
JA
6886 ;
6887 return 0;
ccc6cda3 6888}
f73dda09
JA
6889_ACEOF
6890rm -f conftest.$ac_objext
3185942a
JA
6891if { (ac_try="$ac_compile"
6892case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895esac
6896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897$as_echo "$ac_try_echo") >&5
6898 (eval "$ac_compile") 2>conftest.er1
f73dda09 6899 ac_status=$?
0628567a
JA
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
3185942a
JA
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest.$ac_objext; then
f73dda09 6908 ac_cv_c_char_unsigned=no
ccc6cda3 6909else
3185942a 6910 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6911sed 's/^/| /' conftest.$ac_ext >&5
6912
3185942a 6913 ac_cv_c_char_unsigned=yes
ccc6cda3 6914fi
3185942a
JA
6915
6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6917fi
3185942a
JA
6918{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6919$as_echo "$ac_cv_c_char_unsigned" >&6; }
f73dda09 6920if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
b80f6443 6921 cat >>confdefs.h <<\_ACEOF
f73dda09 6922#define __CHAR_UNSIGNED__ 1
b80f6443 6923_ACEOF
ccc6cda3 6924
ccc6cda3
JA
6925fi
6926
17345e5a
JA
6927{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6928$as_echo_n "checking for working volatile... " >&6; }
6929if test "${ac_cv_c_volatile+set}" = set; then
6930 $as_echo_n "(cached) " >&6
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938
6939int
6940main ()
6941{
6942
6943volatile int x;
6944int * volatile y = (int *) 0;
6945return !x && !y;
6946 ;
6947 return 0;
6948}
6949_ACEOF
6950rm -f conftest.$ac_objext
6951if { (ac_try="$ac_compile"
6952case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955esac
6956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957$as_echo "$ac_try_echo") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_c_volatile=yes
6969else
6970 $as_echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ac_cv_c_volatile=no
6974fi
6975
6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977fi
6978{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6979$as_echo "$ac_cv_c_volatile" >&6; }
6980if test $ac_cv_c_volatile = no; then
6981
6982cat >>confdefs.h <<\_ACEOF
6983#define volatile /**/
6984_ACEOF
6985
6986fi
6987
6988{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6989$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6990if test "${ac_cv_c_restrict+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6992else
6993 ac_cv_c_restrict=no
6994 # The order here caters to the fact that C++ does not require restrict.
6995 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6996 cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h. */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h. */
7002typedef int * int_ptr;
7003 int foo (int_ptr $ac_kw ip) {
7004 return ip[0];
7005 }
7006int
7007main ()
7008{
7009int s[1];
7010 int * $ac_kw t = s;
7011 t[0] = 0;
7012 return foo(t)
7013 ;
7014 return 0;
7015}
7016_ACEOF
7017rm -f conftest.$ac_objext
7018if { (ac_try="$ac_compile"
7019case "(($ac_try" in
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7022esac
7023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7024$as_echo "$ac_try_echo") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.$ac_objext; then
7035 ac_cv_c_restrict=$ac_kw
7036else
7037 $as_echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040
7041fi
7042
7043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 test "$ac_cv_c_restrict" != no && break
7045 done
7046
7047fi
7048{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7049$as_echo "$ac_cv_c_restrict" >&6; }
7050
7051
7052 case $ac_cv_c_restrict in
7053 restrict) ;;
7054 no) cat >>confdefs.h <<\_ACEOF
7055#define restrict /**/
7056_ACEOF
7057 ;;
7058 *) cat >>confdefs.h <<_ACEOF
7059#define restrict $ac_cv_c_restrict
7060_ACEOF
7061 ;;
7062 esac
7063
ccc6cda3 7064
b80f6443
JA
7065
7066 MKINSTALLDIRS=
7067 if test -n "$ac_aux_dir"; then
7068 case "$ac_aux_dir" in
7069 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7070 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7071 esac
7072 fi
7073 if test -z "$MKINSTALLDIRS"; then
7074 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7075 fi
7076
7077
7078
3185942a
JA
7079 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7080$as_echo_n "checking whether NLS is requested... " >&6; }
7081 # Check whether --enable-nls was given.
b80f6443 7082if test "${enable_nls+set}" = set; then
3185942a 7083 enableval=$enable_nls; USE_NLS=$enableval
ccc6cda3 7084else
b80f6443 7085 USE_NLS=yes
3185942a
JA
7086fi
7087
7088 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7089$as_echo "$USE_NLS" >&6; }
b80f6443
JA
7090
7091
7092
7093
7094
7095
7096# Prepare PATH_SEPARATOR.
7097# The user is always right.
7098if test "${PATH_SEPARATOR+set}" != set; then
7099 echo "#! /bin/sh" >conf$$.sh
7100 echo "exit 0" >>conf$$.sh
7101 chmod +x conf$$.sh
7102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7103 PATH_SEPARATOR=';'
7104 else
7105 PATH_SEPARATOR=:
7106 fi
7107 rm -f conf$$.sh
ccc6cda3 7108fi
ccc6cda3 7109
b80f6443
JA
7110# Find out how to test for executable files. Don't use a zero-byte file,
7111# as systems may use methods other than mode bits to determine executability.
7112cat >conf$$.file <<_ASEOF
7113#! /bin/sh
7114exit 0
7115_ASEOF
7116chmod +x conf$$.file
7117if test -x conf$$.file >/dev/null 2>&1; then
7118 ac_executable_p="test -x"
7119else
7120 ac_executable_p="test -f"
f73dda09 7121fi
b80f6443 7122rm -f conf$$.file
ccc6cda3 7123
b80f6443
JA
7124# Extract the first word of "msgfmt", so it can be a program name with args.
7125set dummy msgfmt; ac_word=$2
3185942a
JA
7126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7128if test "${ac_cv_path_MSGFMT+set}" = set; then
3185942a 7129 $as_echo_n "(cached) " >&6
ccc6cda3 7130else
b80f6443
JA
7131 case "$MSGFMT" in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7134 ;;
7135 *)
7136 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7137 for ac_dir in $PATH; do
7138 IFS="$ac_save_IFS"
7139 test -z "$ac_dir" && ac_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7142 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7143 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7144 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7145 break 2
7146 fi
7147 fi
7148 done
7149 done
7150 IFS="$ac_save_IFS"
7151 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7152 ;;
7153esac
7154fi
7155MSGFMT="$ac_cv_path_MSGFMT"
7156if test "$MSGFMT" != ":"; then
3185942a
JA
7157 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7158$as_echo "$MSGFMT" >&6; }
f73dda09 7159else
3185942a
JA
7160 { $as_echo "$as_me:$LINENO: result: no" >&5
7161$as_echo "no" >&6; }
f73dda09 7162fi
b80f6443
JA
7163
7164 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7165set dummy gmsgfmt; ac_word=$2
3185942a
JA
7166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7168if test "${ac_cv_path_GMSGFMT+set}" = set; then
3185942a 7169 $as_echo_n "(cached) " >&6
b80f6443
JA
7170else
7171 case $GMSGFMT in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7174 ;;
7175 *)
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 7183 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3185942a 7184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
7185 break 2
7186 fi
7187done
7188done
3185942a 7189IFS=$as_save_IFS
b80f6443
JA
7190
7191 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7192 ;;
7193esac
7194fi
7195GMSGFMT=$ac_cv_path_GMSGFMT
b80f6443 7196if test -n "$GMSGFMT"; then
3185942a
JA
7197 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7198$as_echo "$GMSGFMT" >&6; }
b80f6443 7199else
3185942a
JA
7200 { $as_echo "$as_me:$LINENO: result: no" >&5
7201$as_echo "no" >&6; }
f73dda09 7202fi
b80f6443
JA
7203
7204
7205
3185942a 7206
b80f6443
JA
7207# Prepare PATH_SEPARATOR.
7208# The user is always right.
7209if test "${PATH_SEPARATOR+set}" != set; then
7210 echo "#! /bin/sh" >conf$$.sh
7211 echo "exit 0" >>conf$$.sh
7212 chmod +x conf$$.sh
7213 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7214 PATH_SEPARATOR=';'
7215 else
7216 PATH_SEPARATOR=:
7217 fi
7218 rm -f conf$$.sh
f73dda09 7219fi
ccc6cda3 7220
b80f6443
JA
7221# Find out how to test for executable files. Don't use a zero-byte file,
7222# as systems may use methods other than mode bits to determine executability.
7223cat >conf$$.file <<_ASEOF
7224#! /bin/sh
7225exit 0
7226_ASEOF
7227chmod +x conf$$.file
7228if test -x conf$$.file >/dev/null 2>&1; then
7229 ac_executable_p="test -x"
ccc6cda3 7230else
b80f6443
JA
7231 ac_executable_p="test -f"
7232fi
7233rm -f conf$$.file
7234
7235# Extract the first word of "xgettext", so it can be a program name with args.
7236set dummy xgettext; ac_word=$2
3185942a
JA
7237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7239if test "${ac_cv_path_XGETTEXT+set}" = set; then
3185942a 7240 $as_echo_n "(cached) " >&6
ccc6cda3 7241else
b80f6443
JA
7242 case "$XGETTEXT" in
7243 [\\/]* | ?:[\\/]*)
7244 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7245 ;;
7246 *)
7247 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7248 for ac_dir in $PATH; do
7249 IFS="$ac_save_IFS"
7250 test -z "$ac_dir" && ac_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7253 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7254 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7255 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7256 break 2
7257 fi
7258 fi
7259 done
7260 done
7261 IFS="$ac_save_IFS"
7262 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7263 ;;
7264esac
7265fi
7266XGETTEXT="$ac_cv_path_XGETTEXT"
7267if test "$XGETTEXT" != ":"; then
3185942a
JA
7268 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7269$as_echo "$XGETTEXT" >&6; }
b80f6443 7270else
3185942a
JA
7271 { $as_echo "$as_me:$LINENO: result: no" >&5
7272$as_echo "no" >&6; }
b80f6443 7273fi
f73dda09 7274
b80f6443
JA
7275 rm -f messages.po
7276
7277
7278# Prepare PATH_SEPARATOR.
7279# The user is always right.
7280if test "${PATH_SEPARATOR+set}" != set; then
7281 echo "#! /bin/sh" >conf$$.sh
7282 echo "exit 0" >>conf$$.sh
7283 chmod +x conf$$.sh
7284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7285 PATH_SEPARATOR=';'
7286 else
7287 PATH_SEPARATOR=:
7288 fi
7289 rm -f conf$$.sh
7290fi
7291
7292# Find out how to test for executable files. Don't use a zero-byte file,
7293# as systems may use methods other than mode bits to determine executability.
7294cat >conf$$.file <<_ASEOF
7295#! /bin/sh
7296exit 0
7297_ASEOF
7298chmod +x conf$$.file
7299if test -x conf$$.file >/dev/null 2>&1; then
7300 ac_executable_p="test -x"
7301else
7302 ac_executable_p="test -f"
7303fi
7304rm -f conf$$.file
7305
7306# Extract the first word of "msgmerge", so it can be a program name with args.
7307set dummy msgmerge; ac_word=$2
3185942a
JA
7308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7310if test "${ac_cv_path_MSGMERGE+set}" = set; then
3185942a 7311 $as_echo_n "(cached) " >&6
b80f6443
JA
7312else
7313 case "$MSGMERGE" in
7314 [\\/]* | ?:[\\/]*)
7315 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7316 ;;
7317 *)
7318 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7319 for ac_dir in $PATH; do
7320 IFS="$ac_save_IFS"
7321 test -z "$ac_dir" && ac_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7324 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7325 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7326 break 2
7327 fi
7328 fi
7329 done
7330 done
7331 IFS="$ac_save_IFS"
7332 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7333 ;;
7334esac
7335fi
7336MSGMERGE="$ac_cv_path_MSGMERGE"
7337if test "$MSGMERGE" != ":"; then
3185942a
JA
7338 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7339$as_echo "$MSGMERGE" >&6; }
b80f6443 7340else
3185942a
JA
7341 { $as_echo "$as_me:$LINENO: result: no" >&5
7342$as_echo "no" >&6; }
b80f6443
JA
7343fi
7344
7345
7346 if test "$GMSGFMT" != ":"; then
7347 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7348 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7349 : ;
7350 else
7351 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3185942a
JA
7352 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7353$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
b80f6443
JA
7354 GMSGFMT=":"
7355 fi
7356 fi
7357
7358 if test "$XGETTEXT" != ":"; then
7359 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7360 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7361 : ;
7362 else
3185942a
JA
7363 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7364$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
b80f6443
JA
7365 XGETTEXT=":"
7366 fi
7367 rm -f messages.po
7368 fi
7369
3185942a 7370 ac_config_commands="$ac_config_commands default-1"
b80f6443
JA
7371
7372
3185942a
JA
7373{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
7374$as_echo_n "checking for off_t... " >&6; }
b80f6443 7375if test "${ac_cv_type_off_t+set}" = set; then
3185942a 7376 $as_echo_n "(cached) " >&6
b80f6443 7377else
3185942a
JA
7378 ac_cv_type_off_t=no
7379cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
b80f6443 7385$ac_includes_default
f73dda09
JA
7386int
7387main ()
7388{
b80f6443 7389if (sizeof (off_t))
3185942a 7390 return 0;
f73dda09
JA
7391 ;
7392 return 0;
7393}
7394_ACEOF
b80f6443 7395rm -f conftest.$ac_objext
3185942a
JA
7396if { (ac_try="$ac_compile"
7397case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400esac
7401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7402$as_echo "$ac_try_echo") >&5
7403 (eval "$ac_compile") 2>conftest.er1
f73dda09 7404 ac_status=$?
0628567a
JA
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
3185942a
JA
7408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7413 cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h. */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h. */
7419$ac_includes_default
7420int
7421main ()
7422{
7423if (sizeof ((off_t)))
7424 return 0;
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext
7430if { (ac_try="$ac_compile"
7431case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7436$as_echo "$ac_try_echo") >&5
7437 (eval "$ac_compile") 2>conftest.er1
f73dda09 7438 ac_status=$?
3185942a
JA
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest.$ac_objext; then
7447 :
7448else
7449 $as_echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ac_cv_type_off_t=yes
7453fi
7454
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 7456else
3185942a 7457 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
3185942a 7460
f73dda09 7461fi
3185942a
JA
7462
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 7464fi
3185942a
JA
7465{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7466$as_echo "$ac_cv_type_off_t" >&6; }
7467if test "x$ac_cv_type_off_t" = x""yes; then
b80f6443
JA
7468 :
7469else
7470
7471cat >>confdefs.h <<_ACEOF
3185942a 7472#define off_t long int
b80f6443 7473_ACEOF
ccc6cda3 7474
f73dda09 7475fi
ccc6cda3 7476
3185942a
JA
7477{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
7478$as_echo_n "checking for size_t... " >&6; }
b80f6443 7479if test "${ac_cv_type_size_t+set}" = set; then
3185942a 7480 $as_echo_n "(cached) " >&6
f73dda09 7481else
3185942a
JA
7482 ac_cv_type_size_t=no
7483cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7484/* confdefs.h. */
7485_ACEOF
7486cat confdefs.h >>conftest.$ac_ext
7487cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h. */
b80f6443 7489$ac_includes_default
f73dda09
JA
7490int
7491main ()
7492{
b80f6443 7493if (sizeof (size_t))
3185942a 7494 return 0;
f73dda09
JA
7495 ;
7496 return 0;
7497}
7498_ACEOF
7499rm -f conftest.$ac_objext
3185942a
JA
7500if { (ac_try="$ac_compile"
7501case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504esac
7505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506$as_echo "$ac_try_echo") >&5
7507 (eval "$ac_compile") 2>conftest.er1
f73dda09 7508 ac_status=$?
0628567a
JA
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
3185942a
JA
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
7523$ac_includes_default
7524int
7525main ()
7526{
7527if (sizeof ((size_t)))
7528 return 0;
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533rm -f conftest.$ac_objext
7534if { (ac_try="$ac_compile"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
7539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540$as_echo "$ac_try_echo") >&5
7541 (eval "$ac_compile") 2>conftest.er1
f73dda09 7542 ac_status=$?
3185942a
JA
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 :
7552else
7553 $as_echo "$as_me: failed program was:" >&5
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
7556 ac_cv_type_size_t=yes
7557fi
7558
7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7560else
3185942a 7561 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
3185942a 7564
ccc6cda3 7565fi
3185942a
JA
7566
7567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7568fi
3185942a
JA
7569{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7570$as_echo "$ac_cv_type_size_t" >&6; }
7571if test "x$ac_cv_type_size_t" = x""yes; then
b80f6443
JA
7572 :
7573else
ccc6cda3 7574
b80f6443 7575cat >>confdefs.h <<_ACEOF
3185942a 7576#define size_t unsigned int
b80f6443 7577_ACEOF
ccc6cda3 7578
ccc6cda3
JA
7579fi
7580
b80f6443
JA
7581# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7582# for constant arguments. Useless!
3185942a
JA
7583{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7584$as_echo_n "checking for working alloca.h... " >&6; }
b80f6443 7585if test "${ac_cv_working_alloca_h+set}" = set; then
3185942a 7586 $as_echo_n "(cached) " >&6
f73dda09
JA
7587else
7588 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7589/* confdefs.h. */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h. */
b80f6443
JA
7594#include <alloca.h>
7595int
7596main ()
7597{
7598char *p = (char *) alloca (2 * sizeof (int));
3185942a 7599 if (p) return 0;
b80f6443
JA
7600 ;
7601 return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
7605if { (ac_try="$ac_link"
7606case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609esac
7610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7611$as_echo "$ac_try_echo") >&5
7612 (eval "$ac_link") 2>conftest.er1
f73dda09 7613 ac_status=$?
0628567a
JA
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
3185942a
JA
7617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest$ac_exeext && {
7622 test "$cross_compiling" = yes ||
7623 $as_test_x conftest$ac_exeext
7624 }; then
b80f6443 7625 ac_cv_working_alloca_h=yes
ccc6cda3 7626else
3185942a 7627 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
3185942a 7630 ac_cv_working_alloca_h=no
ccc6cda3 7631fi
3185942a
JA
7632
7633rm -rf conftest.dSYM
7634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 7635 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 7636fi
3185942a
JA
7637{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7638$as_echo "$ac_cv_working_alloca_h" >&6; }
b80f6443
JA
7639if test $ac_cv_working_alloca_h = yes; then
7640
7641cat >>confdefs.h <<\_ACEOF
7642#define HAVE_ALLOCA_H 1
7643_ACEOF
ccc6cda3
JA
7644
7645fi
7646
3185942a
JA
7647{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
7648$as_echo_n "checking for alloca... " >&6; }
b80f6443 7649if test "${ac_cv_func_alloca_works+set}" = set; then
3185942a 7650 $as_echo_n "(cached) " >&6
f73dda09
JA
7651else
7652 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
f73dda09
JA
7658#ifdef __GNUC__
7659# define alloca __builtin_alloca
ccc6cda3 7660#else
f73dda09
JA
7661# ifdef _MSC_VER
7662# include <malloc.h>
7663# define alloca _alloca
7664# else
3185942a 7665# ifdef HAVE_ALLOCA_H
f73dda09
JA
7666# include <alloca.h>
7667# else
7668# ifdef _AIX
7669 #pragma alloca
7670# else
7671# ifndef alloca /* predefined by HP cc +Olibcalls */
7672char *alloca ();
7673# endif
7674# endif
7675# endif
7676# endif
ccc6cda3
JA
7677#endif
7678
f73dda09
JA
7679int
7680main ()
7681{
7682char *p = (char *) alloca (1);
3185942a 7683 if (p) return 0;
f73dda09
JA
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
7689if { (ac_try="$ac_link"
7690case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693esac
7694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695$as_echo "$ac_try_echo") >&5
7696 (eval "$ac_link") 2>conftest.er1
f73dda09 7697 ac_status=$?
0628567a
JA
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
3185942a
JA
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest$ac_exeext && {
7706 test "$cross_compiling" = yes ||
7707 $as_test_x conftest$ac_exeext
7708 }; then
f73dda09 7709 ac_cv_func_alloca_works=yes
ccc6cda3 7710else
3185942a 7711 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
3185942a 7714 ac_cv_func_alloca_works=no
ccc6cda3 7715fi
3185942a
JA
7716
7717rm -rf conftest.dSYM
7718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 7719 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 7720fi
3185942a
JA
7721{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7722$as_echo "$ac_cv_func_alloca_works" >&6; }
f73dda09
JA
7723
7724if test $ac_cv_func_alloca_works = yes; then
ccc6cda3 7725
b80f6443 7726cat >>confdefs.h <<\_ACEOF
f73dda09 7727#define HAVE_ALLOCA 1
b80f6443 7728_ACEOF
f73dda09 7729
ccc6cda3 7730else
f73dda09
JA
7731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7732# that cause trouble. Some versions do not even contain alloca or
7733# contain a buggy version. If you still want to use their alloca,
7734# use ar to extract alloca.o from them instead of compiling alloca.c.
ccc6cda3 7735
3185942a 7736ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ccc6cda3 7737
b80f6443 7738cat >>confdefs.h <<\_ACEOF
f73dda09 7739#define C_ALLOCA 1
b80f6443 7740_ACEOF
f73dda09 7741
b80f6443 7742
3185942a
JA
7743{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7744$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
f73dda09 7745if test "${ac_cv_os_cray+set}" = set; then
3185942a 7746 $as_echo_n "(cached) " >&6
ccc6cda3 7747else
f73dda09 7748 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
3185942a 7754#if defined CRAY && ! defined CRAY2
f73dda09
JA
7755webecray
7756#else
7757wenotbecray
7758#endif
ccc6cda3 7759
f73dda09
JA
7760_ACEOF
7761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 7762 $EGREP "webecray" >/dev/null 2>&1; then
f73dda09 7763 ac_cv_os_cray=yes
ccc6cda3 7764else
f73dda09 7765 ac_cv_os_cray=no
ccc6cda3
JA
7766fi
7767rm -f conftest*
ccc6cda3
JA
7768
7769fi
3185942a
JA
7770{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7771$as_echo "$ac_cv_os_cray" >&6; }
f73dda09
JA
7772if test $ac_cv_os_cray = yes; then
7773 for ac_func in _getb67 GETB67 getb67; do
3185942a
JA
7774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7775{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7776$as_echo_n "checking for $ac_func... " >&6; }
7777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7778 $as_echo_n "(cached) " >&6
ccc6cda3 7779else
f73dda09 7780 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7781/* confdefs.h. */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h. */
7786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7788#define $ac_func innocuous_$ac_func
7789
ccc6cda3 7790/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
7791 which can conflict with char $ac_func (); below.
7792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793 <limits.h> exists even on freestanding compilers. */
7794
7795#ifdef __STDC__
7796# include <limits.h>
7797#else
7798# include <assert.h>
7799#endif
7800
7801#undef $ac_func
7802
3185942a
JA
7803/* Override any GCC internal prototype to avoid an error.
7804 Use char because int might match the return type of a GCC
7805 builtin and then its argument prototype would still apply. */
f73dda09
JA
7806#ifdef __cplusplus
7807extern "C"
7808#endif
f73dda09 7809char $ac_func ();
ccc6cda3
JA
7810/* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
3185942a 7813#if defined __stub_$ac_func || defined __stub___$ac_func
ccc6cda3 7814choke me
ccc6cda3
JA
7815#endif
7816
0628567a
JA
7817int
7818main ()
7819{
3185942a 7820return $ac_func ();
f73dda09
JA
7821 ;
7822 return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
7826if { (ac_try="$ac_link"
7827case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7832$as_echo "$ac_try_echo") >&5
7833 (eval "$ac_link") 2>conftest.er1
f73dda09 7834 ac_status=$?
0628567a
JA
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
3185942a
JA
7838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest$ac_exeext && {
7843 test "$cross_compiling" = yes ||
7844 $as_test_x conftest$ac_exeext
7845 }; then
f73dda09
JA
7846 eval "$as_ac_var=yes"
7847else
3185942a 7848 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7849sed 's/^/| /' conftest.$ac_ext >&5
7850
3185942a 7851 eval "$as_ac_var=no"
f73dda09 7852fi
3185942a
JA
7853
7854rm -rf conftest.dSYM
7855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 7856 conftest$ac_exeext conftest.$ac_ext
f73dda09 7857fi
3185942a
JA
7858ac_res=`eval 'as_val=${'$as_ac_var'}
7859 $as_echo "$as_val"'`
7860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7861$as_echo "$ac_res" >&6; }
7862as_val=`eval 'as_val=${'$as_ac_var'}
7863 $as_echo "$as_val"'`
7864 if test "x$as_val" = x""yes; then
f73dda09 7865
b80f6443 7866cat >>confdefs.h <<_ACEOF
f73dda09 7867#define CRAY_STACKSEG_END $ac_func
b80f6443 7868_ACEOF
ccc6cda3 7869
f73dda09 7870 break
ccc6cda3 7871fi
ccc6cda3 7872
f73dda09 7873 done
ccc6cda3
JA
7874fi
7875
3185942a
JA
7876{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7877$as_echo_n "checking stack direction for C alloca... " >&6; }
f73dda09 7878if test "${ac_cv_c_stack_direction+set}" = set; then
3185942a 7879 $as_echo_n "(cached) " >&6
ccc6cda3 7880else
f73dda09
JA
7881 if test "$cross_compiling" = yes; then
7882 ac_cv_c_stack_direction=0
7883else
7884 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h. */
3185942a 7890$ac_includes_default
f73dda09
JA
7891int
7892find_stack_direction ()
7893{
7894 static char *addr = 0;
7895 auto char dummy;
7896 if (addr == 0)
7897 {
7898 addr = &dummy;
7899 return find_stack_direction ();
7900 }
7901 else
7902 return (&dummy > addr) ? 1 : -1;
7903}
ccc6cda3 7904
f73dda09
JA
7905int
7906main ()
7907{
3185942a 7908 return find_stack_direction () < 0;
f73dda09
JA
7909}
7910_ACEOF
7911rm -f conftest$ac_exeext
3185942a
JA
7912if { (ac_try="$ac_link"
7913case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916esac
7917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7918$as_echo "$ac_try_echo") >&5
7919 (eval "$ac_link") 2>&5
f73dda09 7920 ac_status=$?
3185942a 7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
7923 { (case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7928$as_echo "$ac_try_echo") >&5
7929 (eval "$ac_try") 2>&5
f73dda09 7930 ac_status=$?
3185942a 7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
7932 (exit $ac_status); }; }; then
7933 ac_cv_c_stack_direction=1
ccc6cda3 7934else
3185942a
JA
7935 $as_echo "$as_me: program exited with status $ac_status" >&5
7936$as_echo "$as_me: failed program was:" >&5
0628567a
JA
7937sed 's/^/| /' conftest.$ac_ext >&5
7938
b80f6443 7939( exit $ac_status )
f73dda09 7940ac_cv_c_stack_direction=-1
ccc6cda3 7941fi
3185942a
JA
7942rm -rf conftest.dSYM
7943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7944fi
3185942a
JA
7945
7946
f73dda09 7947fi
3185942a
JA
7948{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7949$as_echo "$ac_cv_c_stack_direction" >&6; }
ccc6cda3 7950
b80f6443 7951cat >>confdefs.h <<_ACEOF
f73dda09 7952#define STACK_DIRECTION $ac_cv_c_stack_direction
b80f6443
JA
7953_ACEOF
7954
ccc6cda3 7955
ccc6cda3
JA
7956fi
7957
b80f6443
JA
7958
7959
7960for ac_header in stdlib.h unistd.h
7961do
3185942a
JA
7962as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7965$as_echo_n "checking for $ac_header... " >&6; }
7966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7967 $as_echo_n "(cached) " >&6
7968fi
7969ac_res=`eval 'as_val=${'$as_ac_Header'}
7970 $as_echo "$as_val"'`
7971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7972$as_echo "$ac_res" >&6; }
ccc6cda3 7973else
b80f6443 7974 # Is the header compilable?
3185942a
JA
7975{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976$as_echo_n "checking $ac_header usability... " >&6; }
f73dda09 7977cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
f73dda09 7983$ac_includes_default
b80f6443 7984#include <$ac_header>
f73dda09
JA
7985_ACEOF
7986rm -f conftest.$ac_objext
3185942a
JA
7987if { (ac_try="$ac_compile"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7993$as_echo "$ac_try_echo") >&5
7994 (eval "$ac_compile") 2>conftest.er1
f73dda09 7995 ac_status=$?
0628567a
JA
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
3185942a
JA
7999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
b80f6443 8004 ac_header_compiler=yes
f73dda09 8005else
3185942a 8006 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
3185942a 8009 ac_header_compiler=no
f73dda09 8010fi
3185942a
JA
8011
8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8014$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
8015
8016# Is the header present?
3185942a
JA
8017{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8018$as_echo_n "checking $ac_header presence... " >&6; }
f73dda09 8019cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
b80f6443
JA
8025#include <$ac_header>
8026_ACEOF
3185942a
JA
8027if { (ac_try="$ac_cpp conftest.$ac_ext"
8028case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031esac
8032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8033$as_echo "$ac_try_echo") >&5
8034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 8035 ac_status=$?
0628567a 8036 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
8037 rm -f conftest.er1
8038 cat conftest.err >&5
3185942a
JA
8039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev/null && {
8041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 }; then
b80f6443 8044 ac_header_preproc=yes
f73dda09 8045else
3185942a 8046 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
b80f6443
JA
8049 ac_header_preproc=no
8050fi
3185942a 8051
b80f6443 8052rm -f conftest.err conftest.$ac_ext
3185942a
JA
8053{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
8055
8056# So? What about this header?
0628567a
JA
8057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8058 yes:no: )
3185942a
JA
8059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
8063 ac_header_preproc=yes
8064 ;;
8065 no:yes:* )
3185942a
JA
8066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8073$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8078 ( cat <<\_ASBOX
0628567a
JA
8079## ------------------------------- ##
8080## Report this to bug-bash@gnu.org ##
8081## ------------------------------- ##
8082_ASBOX
3185942a 8083 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 8084 ;;
b80f6443 8085esac
3185942a
JA
8086{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8087$as_echo_n "checking for $ac_header... " >&6; }
8088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8089 $as_echo_n "(cached) " >&6
ccc6cda3 8090else
0628567a 8091 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 8092fi
3185942a
JA
8093ac_res=`eval 'as_val=${'$as_ac_Header'}
8094 $as_echo "$as_val"'`
8095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8096$as_echo "$ac_res" >&6; }
f73dda09 8097
ccc6cda3 8098fi
3185942a
JA
8099as_val=`eval 'as_val=${'$as_ac_Header'}
8100 $as_echo "$as_val"'`
8101 if test "x$as_val" = x""yes; then
b80f6443 8102 cat >>confdefs.h <<_ACEOF
3185942a 8103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 8104_ACEOF
ccc6cda3 8105
cce855bc 8106fi
ccc6cda3 8107
b80f6443
JA
8108done
8109
8110
8111for ac_func in getpagesize
8112do
3185942a
JA
8113as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8114{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8115$as_echo_n "checking for $ac_func... " >&6; }
8116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8117 $as_echo_n "(cached) " >&6
f73dda09
JA
8118else
8119 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127#define $ac_func innocuous_$ac_func
8128
f73dda09 8129/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
8130 which can conflict with char $ac_func (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8133
8134#ifdef __STDC__
8135# include <limits.h>
8136#else
8137# include <assert.h>
8138#endif
8139
8140#undef $ac_func
8141
3185942a
JA
8142/* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
f73dda09
JA
8145#ifdef __cplusplus
8146extern "C"
8147#endif
f73dda09 8148char $ac_func ();
f73dda09
JA
8149/* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
3185942a 8152#if defined __stub_$ac_func || defined __stub___$ac_func
f73dda09 8153choke me
f73dda09
JA
8154#endif
8155
0628567a
JA
8156int
8157main ()
8158{
3185942a 8159return $ac_func ();
f73dda09
JA
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
8165if { (ac_try="$ac_link"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8171$as_echo "$ac_try_echo") >&5
8172 (eval "$ac_link") 2>conftest.er1
f73dda09 8173 ac_status=$?
0628567a
JA
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
3185942a
JA
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext && {
8182 test "$cross_compiling" = yes ||
8183 $as_test_x conftest$ac_exeext
8184 }; then
f73dda09
JA
8185 eval "$as_ac_var=yes"
8186else
3185942a 8187 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
3185942a 8190 eval "$as_ac_var=no"
f73dda09 8191fi
3185942a
JA
8192
8193rm -rf conftest.dSYM
8194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 8195 conftest$ac_exeext conftest.$ac_ext
f73dda09 8196fi
3185942a
JA
8197ac_res=`eval 'as_val=${'$as_ac_var'}
8198 $as_echo "$as_val"'`
8199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8200$as_echo "$ac_res" >&6; }
8201as_val=`eval 'as_val=${'$as_ac_var'}
8202 $as_echo "$as_val"'`
8203 if test "x$as_val" = x""yes; then
b80f6443 8204 cat >>confdefs.h <<_ACEOF
3185942a 8205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 8206_ACEOF
f73dda09 8207
b80f6443
JA
8208fi
8209done
8210
3185942a
JA
8211{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8212$as_echo_n "checking for working mmap... " >&6; }
b80f6443 8213if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3185942a 8214 $as_echo_n "(cached) " >&6
b80f6443
JA
8215else
8216 if test "$cross_compiling" = yes; then
8217 ac_cv_func_mmap_fixed_mapped=no
f73dda09
JA
8218else
8219 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8220/* confdefs.h. */
8221_ACEOF
8222cat confdefs.h >>conftest.$ac_ext
8223cat >>conftest.$ac_ext <<_ACEOF
8224/* end confdefs.h. */
b80f6443
JA
8225$ac_includes_default
8226/* malloc might have been renamed as rpl_malloc. */
8227#undef malloc
8228
8229/* Thanks to Mike Haertel and Jim Avera for this test.
8230 Here is a matrix of mmap possibilities:
8231 mmap private not fixed
8232 mmap private fixed at somewhere currently unmapped
8233 mmap private fixed at somewhere already mapped
8234 mmap shared not fixed
8235 mmap shared fixed at somewhere currently unmapped
8236 mmap shared fixed at somewhere already mapped
8237 For private mappings, we should verify that changes cannot be read()
8238 back from the file, nor mmap's back from the file at a different
8239 address. (There have been systems where private was not correctly
8240 implemented like the infamous i386 svr4.0, and systems where the
8241 VM page cache was not coherent with the file system buffer cache
8242 like early versions of FreeBSD and possibly contemporary NetBSD.)
8243 For shared mappings, we should conversely verify that changes get
8244 propagated back to all the places they're supposed to be.
8245
8246 Grep wants private fixed already mapped.
8247 The main things grep needs to know about mmap are:
8248 * does it exist and is it safe to write into the mmap'd area
8249 * how to use it (BSD variants) */
8250
8251#include <fcntl.h>
8252#include <sys/mman.h>
8253
3185942a 8254#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b80f6443 8255char *malloc ();
f73dda09 8256#endif
b80f6443
JA
8257
8258/* This mess was copied from the GNU getpagesize.h. */
3185942a 8259#ifndef HAVE_GETPAGESIZE
b80f6443 8260/* Assume that all systems that can run configure have sys/param.h. */
3185942a 8261# ifndef HAVE_SYS_PARAM_H
b80f6443
JA
8262# define HAVE_SYS_PARAM_H 1
8263# endif
8264
8265# ifdef _SC_PAGESIZE
8266# define getpagesize() sysconf(_SC_PAGESIZE)
8267# else /* no _SC_PAGESIZE */
3185942a 8268# ifdef HAVE_SYS_PARAM_H
b80f6443
JA
8269# include <sys/param.h>
8270# ifdef EXEC_PAGESIZE
8271# define getpagesize() EXEC_PAGESIZE
8272# else /* no EXEC_PAGESIZE */
8273# ifdef NBPG
8274# define getpagesize() NBPG * CLSIZE
8275# ifndef CLSIZE
8276# define CLSIZE 1
8277# endif /* no CLSIZE */
8278# else /* no NBPG */
8279# ifdef NBPC
8280# define getpagesize() NBPC
8281# else /* no NBPC */
8282# ifdef PAGESIZE
8283# define getpagesize() PAGESIZE
8284# endif /* PAGESIZE */
8285# endif /* no NBPC */
8286# endif /* no NBPG */
8287# endif /* no EXEC_PAGESIZE */
8288# else /* no HAVE_SYS_PARAM_H */
8289# define getpagesize() 8192 /* punt totally */
8290# endif /* no HAVE_SYS_PARAM_H */
8291# endif /* no _SC_PAGESIZE */
8292
8293#endif /* no HAVE_GETPAGESIZE */
ccc6cda3 8294
f73dda09
JA
8295int
8296main ()
8297{
b80f6443
JA
8298 char *data, *data2, *data3;
8299 int i, pagesize;
8300 int fd;
f73dda09 8301
b80f6443
JA
8302 pagesize = getpagesize ();
8303
8304 /* First, make a file with some known garbage in it. */
8305 data = (char *) malloc (pagesize);
8306 if (!data)
3185942a 8307 return 1;
b80f6443
JA
8308 for (i = 0; i < pagesize; ++i)
8309 *(data + i) = rand ();
8310 umask (0);
8311 fd = creat ("conftest.mmap", 0600);
8312 if (fd < 0)
3185942a 8313 return 1;
b80f6443 8314 if (write (fd, data, pagesize) != pagesize)
3185942a 8315 return 1;
b80f6443
JA
8316 close (fd);
8317
8318 /* Next, try to mmap the file at a fixed address which already has
8319 something else allocated at it. If we can, also make sure that
8320 we see the same garbage. */
8321 fd = open ("conftest.mmap", O_RDWR);
8322 if (fd < 0)
3185942a 8323 return 1;
b80f6443
JA
8324 data2 = (char *) malloc (2 * pagesize);
8325 if (!data2)
3185942a
JA
8326 return 1;
8327 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b80f6443 8328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
0628567a 8329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3185942a 8330 return 1;
b80f6443
JA
8331 for (i = 0; i < pagesize; ++i)
8332 if (*(data + i) != *(data2 + i))
3185942a 8333 return 1;
b80f6443
JA
8334
8335 /* Finally, make sure that changes to the mapped area do not
8336 percolate back to the file as seen by read(). (This is a bug on
8337 some variants of i386 svr4.0.) */
8338 for (i = 0; i < pagesize; ++i)
8339 *(data2 + i) = *(data2 + i) + 1;
8340 data3 = (char *) malloc (pagesize);
8341 if (!data3)
3185942a 8342 return 1;
b80f6443 8343 if (read (fd, data3, pagesize) != pagesize)
3185942a 8344 return 1;
b80f6443
JA
8345 for (i = 0; i < pagesize; ++i)
8346 if (*(data + i) != *(data3 + i))
3185942a 8347 return 1;
b80f6443 8348 close (fd);
3185942a 8349 return 0;
f73dda09
JA
8350}
8351_ACEOF
b80f6443 8352rm -f conftest$ac_exeext
3185942a
JA
8353if { (ac_try="$ac_link"
8354case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357esac
8358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359$as_echo "$ac_try_echo") >&5
8360 (eval "$ac_link") 2>&5
f73dda09 8361 ac_status=$?
3185942a 8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 8363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369$as_echo "$ac_try_echo") >&5
8370 (eval "$ac_try") 2>&5
f73dda09 8371 ac_status=$?
3185942a 8372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8373 (exit $ac_status); }; }; then
b80f6443 8374 ac_cv_func_mmap_fixed_mapped=yes
f73dda09 8375else
3185942a
JA
8376 $as_echo "$as_me: program exited with status $ac_status" >&5
8377$as_echo "$as_me: failed program was:" >&5
0628567a
JA
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
b80f6443
JA
8380( exit $ac_status )
8381ac_cv_func_mmap_fixed_mapped=no
f73dda09 8382fi
3185942a
JA
8383rm -rf conftest.dSYM
8384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 8385fi
3185942a
JA
8386
8387
b80f6443 8388fi
3185942a
JA
8389{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8390$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b80f6443 8391if test $ac_cv_func_mmap_fixed_mapped = yes; then
f73dda09 8392
b80f6443
JA
8393cat >>confdefs.h <<\_ACEOF
8394#define HAVE_MMAP 1
8395_ACEOF
8396
8397fi
8398rm -f conftest.mmap
8399
8400
3185942a
JA
8401 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8402$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
b80f6443 8403if test "${ac_cv_gnu_library_2_1+set}" = set; then
3185942a 8404 $as_echo_n "(cached) " >&6
b80f6443
JA
8405else
8406 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8407/* confdefs.h. */
8408_ACEOF
8409cat confdefs.h >>conftest.$ac_ext
8410cat >>conftest.$ac_ext <<_ACEOF
8411/* end confdefs.h. */
b80f6443
JA
8412
8413#include <features.h>
8414#ifdef __GNU_LIBRARY__
8415 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8416 Lucky GNU user
8417 #endif
8418#endif
ccc6cda3 8419
b80f6443
JA
8420_ACEOF
8421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 8422 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
b80f6443
JA
8423 ac_cv_gnu_library_2_1=yes
8424else
8425 ac_cv_gnu_library_2_1=no
ccc6cda3 8426fi
b80f6443
JA
8427rm -f conftest*
8428
8429
f73dda09 8430
ccc6cda3 8431fi
3185942a
JA
8432{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8433$as_echo "$ac_cv_gnu_library_2_1" >&6; }
ccc6cda3 8434
b80f6443
JA
8435 GLIBC21="$ac_cv_gnu_library_2_1"
8436
8437
8438
8439
3185942a
JA
8440 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8441$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
b80f6443 8442if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
3185942a 8443 $as_echo_n "(cached) " >&6
ccc6cda3 8444else
b80f6443
JA
8445
8446 if test "$cross_compiling" = yes; then
8447
8448 # Guess based on the CPU.
8449 case "$host_cpu" in
8450 alpha* | i3456786 | m68k | s390*)
8451 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8452 *)
8453 gt_cv_int_divbyzero_sigfpe="guessing no";;
8454 esac
8455
ccc6cda3 8456else
f73dda09 8457 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
b80f6443
JA
8463
8464#include <stdlib.h>
8465#include <signal.h>
8466
8467static void
8468#ifdef __cplusplus
8469sigfpe_handler (int sig)
8470#else
8471sigfpe_handler (sig) int sig;
8472#endif
f73dda09 8473{
b80f6443
JA
8474 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8475 exit (sig != SIGFPE);
8476}
8477
8478int x = 1;
8479int y = 0;
8480int z;
8481int nan;
8482
8483int main ()
8484{
8485 signal (SIGFPE, sigfpe_handler);
8486/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8487#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8488 signal (SIGTRAP, sigfpe_handler);
8489#endif
8490/* Linux/SPARC yields signal SIGILL. */
8491#if defined (__sparc__) && defined (__linux__)
8492 signal (SIGILL, sigfpe_handler);
8493#endif
8494
8495 z = x / y;
8496 nan = y / y;
8497 exit (1);
f73dda09 8498}
b80f6443 8499
f73dda09
JA
8500_ACEOF
8501rm -f conftest$ac_exeext
3185942a
JA
8502if { (ac_try="$ac_link"
8503case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
8507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508$as_echo "$ac_try_echo") >&5
8509 (eval "$ac_link") 2>&5
f73dda09 8510 ac_status=$?
3185942a 8511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
8513 { (case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
8517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518$as_echo "$ac_try_echo") >&5
8519 (eval "$ac_try") 2>&5
f73dda09 8520 ac_status=$?
3185942a 8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8522 (exit $ac_status); }; }; then
b80f6443 8523 gt_cv_int_divbyzero_sigfpe=yes
ccc6cda3 8524else
3185942a
JA
8525 $as_echo "$as_me: program exited with status $ac_status" >&5
8526$as_echo "$as_me: failed program was:" >&5
0628567a
JA
8527sed 's/^/| /' conftest.$ac_ext >&5
8528
b80f6443
JA
8529( exit $ac_status )
8530gt_cv_int_divbyzero_sigfpe=no
ccc6cda3 8531fi
3185942a
JA
8532rm -rf conftest.dSYM
8533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
8534fi
8535
3185942a
JA
8536
8537
ccc6cda3 8538fi
3185942a
JA
8539{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8540$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
b80f6443
JA
8541 case "$gt_cv_int_divbyzero_sigfpe" in
8542 *yes) value=1;;
8543 *) value=0;;
8544 esac
ccc6cda3 8545
b80f6443
JA
8546cat >>confdefs.h <<_ACEOF
8547#define INTDIV0_RAISES_SIGFPE $value
8548_ACEOF
ccc6cda3 8549
ccc6cda3
JA
8550
8551
3185942a
JA
8552 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8553$as_echo_n "checking for inttypes.h... " >&6; }
b80f6443 8554if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
3185942a 8555 $as_echo_n "(cached) " >&6
ccc6cda3 8556else
f73dda09 8557 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
f73dda09 8563#include <sys/types.h>
b80f6443 8564#include <inttypes.h>
f73dda09
JA
8565int
8566main ()
8567{
b80f6443 8568uintmax_t i = (uintmax_t) -1;
f73dda09
JA
8569 ;
8570 return 0;
8571}
8572_ACEOF
8573rm -f conftest.$ac_objext
3185942a
JA
8574if { (ac_try="$ac_compile"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580$as_echo "$ac_try_echo") >&5
8581 (eval "$ac_compile") 2>conftest.er1
f73dda09 8582 ac_status=$?
0628567a
JA
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
3185942a
JA
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
b80f6443 8591 jm_ac_cv_header_inttypes_h=yes
ccc6cda3 8592else
3185942a 8593 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
3185942a 8596 jm_ac_cv_header_inttypes_h=no
ccc6cda3 8597fi
3185942a
JA
8598
8599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 8600fi
3185942a
JA
8601{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8602$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
b80f6443 8603 if test $jm_ac_cv_header_inttypes_h = yes; then
f73dda09 8604
b80f6443
JA
8605cat >>confdefs.h <<_ACEOF
8606#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8607_ACEOF
ccc6cda3 8608
b80f6443
JA
8609 fi
8610
8611
3185942a
JA
8612 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8613$as_echo_n "checking for stdint.h... " >&6; }
b80f6443 8614if test "${jm_ac_cv_header_stdint_h+set}" = set; then
3185942a 8615 $as_echo_n "(cached) " >&6
ccc6cda3 8616else
f73dda09 8617 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
b80f6443
JA
8623#include <sys/types.h>
8624#include <stdint.h>
f73dda09
JA
8625int
8626main ()
8627{
b80f6443 8628uintmax_t i = (uintmax_t) -1;
f73dda09
JA
8629 ;
8630 return 0;
8631}
8632_ACEOF
b80f6443 8633rm -f conftest.$ac_objext
3185942a
JA
8634if { (ac_try="$ac_compile"
8635case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640$as_echo "$ac_try_echo") >&5
8641 (eval "$ac_compile") 2>conftest.er1
f73dda09 8642 ac_status=$?
0628567a
JA
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
3185942a
JA
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
b80f6443 8651 jm_ac_cv_header_stdint_h=yes
f73dda09 8652else
3185942a 8653 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
3185942a 8656 jm_ac_cv_header_stdint_h=no
f73dda09 8657fi
3185942a
JA
8658
8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 8660fi
3185942a
JA
8661{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8662$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
b80f6443 8663 if test $jm_ac_cv_header_stdint_h = yes; then
f73dda09 8664
b80f6443
JA
8665cat >>confdefs.h <<_ACEOF
8666#define HAVE_STDINT_H_WITH_UINTMAX 1
8667_ACEOF
f73dda09 8668
b80f6443
JA
8669 fi
8670
8671
3185942a
JA
8672 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8673$as_echo_n "checking for unsigned long long... " >&6; }
b80f6443 8674if test "${ac_cv_type_unsigned_long_long+set}" = set; then
3185942a 8675 $as_echo_n "(cached) " >&6
f73dda09
JA
8676else
8677 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
b80f6443 8683unsigned long long ull = 1; int i = 63;
f73dda09
JA
8684int
8685main ()
8686{
b80f6443
JA
8687unsigned long long ullmax = (unsigned long long) -1;
8688 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
f73dda09
JA
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
8694if { (ac_try="$ac_link"
8695case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8700$as_echo "$ac_try_echo") >&5
8701 (eval "$ac_link") 2>conftest.er1
f73dda09 8702 ac_status=$?
0628567a
JA
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
3185942a
JA
8706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest$ac_exeext && {
8711 test "$cross_compiling" = yes ||
8712 $as_test_x conftest$ac_exeext
8713 }; then
b80f6443 8714 ac_cv_type_unsigned_long_long=yes
f73dda09 8715else
3185942a 8716 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
3185942a 8719 ac_cv_type_unsigned_long_long=no
f73dda09 8720fi
3185942a
JA
8721
8722rm -rf conftest.dSYM
8723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 8724 conftest$ac_exeext conftest.$ac_ext
f73dda09 8725fi
3185942a
JA
8726{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8727$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
b80f6443 8728 if test $ac_cv_type_unsigned_long_long = yes; then
f73dda09 8729
b80f6443
JA
8730cat >>confdefs.h <<\_ACEOF
8731#define HAVE_UNSIGNED_LONG_LONG 1
8732_ACEOF
f73dda09 8733
b80f6443 8734 fi
7117c2d2 8735
7117c2d2 8736
b80f6443
JA
8737
8738
8739 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8740
8741 test $ac_cv_type_unsigned_long_long = yes \
8742 && ac_type='unsigned long long' \
8743 || ac_type='unsigned long'
8744
8745cat >>confdefs.h <<_ACEOF
8746#define uintmax_t $ac_type
7117c2d2 8747_ACEOF
7117c2d2 8748
b80f6443 8749 else
7117c2d2 8750
b80f6443
JA
8751cat >>confdefs.h <<\_ACEOF
8752#define HAVE_UINTMAX_T 1
8753_ACEOF
8754
8755 fi
8756
8757
3185942a
JA
8758 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8759$as_echo_n "checking for inttypes.h... " >&6; }
b80f6443 8760if test "${gt_cv_header_inttypes_h+set}" = set; then
3185942a 8761 $as_echo_n "(cached) " >&6
f73dda09 8762else
f73dda09 8763
b80f6443 8764 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8765/* confdefs.h. */
8766_ACEOF
8767cat confdefs.h >>conftest.$ac_ext
8768cat >>conftest.$ac_ext <<_ACEOF
8769/* end confdefs.h. */
b80f6443
JA
8770#include <sys/types.h>
8771#include <inttypes.h>
f73dda09
JA
8772int
8773main ()
8774{
f73dda09
JA
8775
8776 ;
8777 return 0;
8778}
8779_ACEOF
b80f6443 8780rm -f conftest.$ac_objext
3185942a
JA
8781if { (ac_try="$ac_compile"
8782case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785esac
8786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8787$as_echo "$ac_try_echo") >&5
8788 (eval "$ac_compile") 2>conftest.er1
f73dda09 8789 ac_status=$?
0628567a
JA
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
3185942a
JA
8793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
b80f6443 8798 gt_cv_header_inttypes_h=yes
f73dda09 8799else
3185942a 8800 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
3185942a 8803 gt_cv_header_inttypes_h=no
f73dda09 8804fi
3185942a
JA
8805
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 8807
f73dda09 8808fi
3185942a
JA
8809{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8810$as_echo "$gt_cv_header_inttypes_h" >&6; }
b80f6443 8811 if test $gt_cv_header_inttypes_h = yes; then
f73dda09 8812
b80f6443
JA
8813cat >>confdefs.h <<_ACEOF
8814#define HAVE_INTTYPES_H 1
8815_ACEOF
f73dda09 8816
b80f6443 8817 fi
f73dda09 8818
b80f6443
JA
8819
8820
8821 if test $gt_cv_header_inttypes_h = yes; then
3185942a
JA
8822 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8823$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
b80f6443 8824if test "${gt_cv_inttypes_pri_broken+set}" = set; then
3185942a 8825 $as_echo_n "(cached) " >&6
f73dda09 8826else
b80f6443
JA
8827
8828 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8829/* confdefs.h. */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h. */
b80f6443
JA
8834#include <inttypes.h>
8835#ifdef PRId32
8836char *p = PRId32;
f73dda09 8837#endif
f73dda09
JA
8838
8839int
8840main ()
8841{
f73dda09
JA
8842
8843 ;
8844 return 0;
8845}
8846_ACEOF
b80f6443 8847rm -f conftest.$ac_objext
3185942a
JA
8848if { (ac_try="$ac_compile"
8849case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8854$as_echo "$ac_try_echo") >&5
8855 (eval "$ac_compile") 2>conftest.er1
f73dda09 8856 ac_status=$?
0628567a
JA
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
3185942a
JA
8860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.$ac_objext; then
b80f6443 8865 gt_cv_inttypes_pri_broken=no
f73dda09 8866else
3185942a 8867 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
3185942a 8870 gt_cv_inttypes_pri_broken=yes
f73dda09 8871fi
3185942a
JA
8872
8873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
8874
8875fi
3185942a
JA
8876{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8877$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
b80f6443
JA
8878 fi
8879 if test "$gt_cv_inttypes_pri_broken" = yes; then
f73dda09 8880
b80f6443
JA
8881cat >>confdefs.h <<_ACEOF
8882#define PRI_MACROS_BROKEN 1
8883_ACEOF
f73dda09 8884
b80f6443 8885 fi
f73dda09 8886
b80f6443
JA
8887
8888 if test "X$prefix" = "XNONE"; then
8889 acl_final_prefix="$ac_default_prefix"
8890 else
8891 acl_final_prefix="$prefix"
8892 fi
8893 if test "X$exec_prefix" = "XNONE"; then
8894 acl_final_exec_prefix='${prefix}'
8895 else
8896 acl_final_exec_prefix="$exec_prefix"
8897 fi
8898 acl_save_prefix="$prefix"
8899 prefix="$acl_final_prefix"
8900 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8901 prefix="$acl_save_prefix"
8902
8903
3185942a 8904# Check whether --with-gnu-ld was given.
b80f6443 8905if test "${with_gnu_ld+set}" = set; then
3185942a 8906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
f73dda09 8907else
b80f6443 8908 with_gnu_ld=no
3185942a
JA
8909fi
8910
b80f6443
JA
8911# Prepare PATH_SEPARATOR.
8912# The user is always right.
8913if test "${PATH_SEPARATOR+set}" != set; then
8914 echo "#! /bin/sh" >conf$$.sh
8915 echo "exit 0" >>conf$$.sh
8916 chmod +x conf$$.sh
8917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8918 PATH_SEPARATOR=';'
8919 else
8920 PATH_SEPARATOR=:
8921 fi
8922 rm -f conf$$.sh
8923fi
8924ac_prog=ld
8925if test "$GCC" = yes; then
8926 # Check if gcc -print-prog-name=ld gives a path.
3185942a
JA
8927 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8928$as_echo_n "checking for ld used by GCC... " >&6; }
b80f6443
JA
8929 case $host in
8930 *-*-mingw*)
8931 # gcc leaves a trailing carriage return which upsets mingw
8932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8933 *)
8934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8935 esac
8936 case $ac_prog in
8937 # Accept absolute paths.
8938 [\\/]* | [A-Za-z]:[\\/]*)
8939 re_direlt='/[^/][^/]*/\.\./'
8940 # Canonicalize the path of ld
8941 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8943 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8944 done
8945 test -z "$LD" && LD="$ac_prog"
8946 ;;
8947 "")
8948 # If it fails, then pretend we aren't using GCC.
8949 ac_prog=ld
8950 ;;
8951 *)
8952 # If it is relative, then search for the first ld in PATH.
8953 with_gnu_ld=unknown
8954 ;;
8955 esac
8956elif test "$with_gnu_ld" = yes; then
3185942a
JA
8957 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8958$as_echo_n "checking for GNU ld... " >&6; }
b80f6443 8959else
3185942a
JA
8960 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8961$as_echo_n "checking for non-GNU ld... " >&6; }
b80f6443
JA
8962fi
8963if test "${acl_cv_path_LD+set}" = set; then
3185942a 8964 $as_echo_n "(cached) " >&6
b80f6443
JA
8965else
8966 if test -z "$LD"; then
8967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8968 for ac_dir in $PATH; do
8969 test -z "$ac_dir" && ac_dir=.
8970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8971 acl_cv_path_LD="$ac_dir/$ac_prog"
8972 # Check to see if the program is GNU ld. I'd rather use --version,
8973 # but apparently some GNU ld's only accept -v.
8974 # Break only if it was the GNU/non-GNU ld that we prefer.
8975 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8976 test "$with_gnu_ld" != no && break
8977 else
8978 test "$with_gnu_ld" != yes && break
8979 fi
8980 fi
8981 done
8982 IFS="$ac_save_ifs"
8983else
8984 acl_cv_path_LD="$LD" # Let the user override the test with a path.
f73dda09 8985fi
f73dda09 8986fi
f73dda09 8987
b80f6443
JA
8988LD="$acl_cv_path_LD"
8989if test -n "$LD"; then
3185942a
JA
8990 { $as_echo "$as_me:$LINENO: result: $LD" >&5
8991$as_echo "$LD" >&6; }
f73dda09 8992else
3185942a
JA
8993 { $as_echo "$as_me:$LINENO: result: no" >&5
8994$as_echo "no" >&6; }
f73dda09 8995fi
3185942a
JA
8996test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
b80f6443 8998 { (exit 1); exit 1; }; }
3185942a
JA
8999{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b80f6443 9001if test "${acl_cv_prog_gnu_ld+set}" = set; then
3185942a 9002 $as_echo_n "(cached) " >&6
b80f6443
JA
9003else
9004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9006 acl_cv_prog_gnu_ld=yes
9007else
9008 acl_cv_prog_gnu_ld=no
9009fi
9010fi
3185942a
JA
9011{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9012$as_echo "$acl_cv_prog_gnu_ld" >&6; }
b80f6443
JA
9013with_gnu_ld=$acl_cv_prog_gnu_ld
9014
9015
9016
3185942a
JA
9017 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9018$as_echo_n "checking for shared library run path origin... " >&6; }
b80f6443 9019if test "${acl_cv_rpath+set}" = set; then
3185942a 9020 $as_echo_n "(cached) " >&6
b80f6443
JA
9021else
9022
9023 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9024 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9025 . ./conftest.sh
9026 rm -f ./conftest.sh
9027 acl_cv_rpath=done
9028
9029fi
3185942a
JA
9030{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9031$as_echo "$acl_cv_rpath" >&6; }
b80f6443
JA
9032 wl="$acl_cv_wl"
9033 libext="$acl_cv_libext"
9034 shlibext="$acl_cv_shlibext"
9035 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9036 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9037 hardcode_direct="$acl_cv_hardcode_direct"
9038 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3185942a 9039 # Check whether --enable-rpath was given.
b80f6443 9040if test "${enable_rpath+set}" = set; then
3185942a 9041 enableval=$enable_rpath; :
b80f6443
JA
9042else
9043 enable_rpath=yes
3185942a
JA
9044fi
9045
b80f6443
JA
9046
9047
9048
9049
9050
9051
9052
9053 use_additional=yes
9054
9055 acl_save_prefix="$prefix"
9056 prefix="$acl_final_prefix"
9057 acl_save_exec_prefix="$exec_prefix"
9058 exec_prefix="$acl_final_exec_prefix"
9059
9060 eval additional_includedir=\"$includedir\"
9061 eval additional_libdir=\"$libdir\"
9062
9063 exec_prefix="$acl_save_exec_prefix"
9064 prefix="$acl_save_prefix"
9065
9066
3185942a 9067# Check whether --with-libiconv-prefix was given.
b80f6443 9068if test "${with_libiconv_prefix+set}" = set; then
3185942a 9069 withval=$with_libiconv_prefix;
b80f6443
JA
9070 if test "X$withval" = "Xno"; then
9071 use_additional=no
9072 else
9073 if test "X$withval" = "X"; then
9074
9075 acl_save_prefix="$prefix"
9076 prefix="$acl_final_prefix"
9077 acl_save_exec_prefix="$exec_prefix"
9078 exec_prefix="$acl_final_exec_prefix"
9079
9080 eval additional_includedir=\"$includedir\"
9081 eval additional_libdir=\"$libdir\"
9082
9083 exec_prefix="$acl_save_exec_prefix"
9084 prefix="$acl_save_prefix"
9085
9086 else
9087 additional_includedir="$withval/include"
9088 additional_libdir="$withval/lib"
9089 fi
9090 fi
9091
3185942a
JA
9092fi
9093
b80f6443
JA
9094 LIBICONV=
9095 LTLIBICONV=
9096 INCICONV=
9097 rpathdirs=
9098 ltrpathdirs=
9099 names_already_handled=
9100 names_next_round='iconv '
9101 while test -n "$names_next_round"; do
9102 names_this_round="$names_next_round"
9103 names_next_round=
9104 for name in $names_this_round; do
9105 already_handled=
9106 for n in $names_already_handled; do
9107 if test "$n" = "$name"; then
9108 already_handled=yes
9109 break
9110 fi
9111 done
9112 if test -z "$already_handled"; then
9113 names_already_handled="$names_already_handled $name"
9114 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9115 eval value=\"\$HAVE_LIB$uppername\"
9116 if test -n "$value"; then
9117 if test "$value" = yes; then
9118 eval value=\"\$LIB$uppername\"
9119 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9120 eval value=\"\$LTLIB$uppername\"
9121 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9122 else
9123 :
9124 fi
9125 else
9126 found_dir=
9127 found_la=
9128 found_so=
9129 found_a=
9130 if test $use_additional = yes; then
9131 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9132 found_dir="$additional_libdir"
9133 found_so="$additional_libdir/lib$name.$shlibext"
9134 if test -f "$additional_libdir/lib$name.la"; then
9135 found_la="$additional_libdir/lib$name.la"
9136 fi
9137 else
9138 if test -f "$additional_libdir/lib$name.$libext"; then
9139 found_dir="$additional_libdir"
9140 found_a="$additional_libdir/lib$name.$libext"
9141 if test -f "$additional_libdir/lib$name.la"; then
9142 found_la="$additional_libdir/lib$name.la"
9143 fi
9144 fi
9145 fi
9146 fi
9147 if test "X$found_dir" = "X"; then
9148 for x in $LDFLAGS $LTLIBICONV; do
9149
9150 acl_save_prefix="$prefix"
9151 prefix="$acl_final_prefix"
9152 acl_save_exec_prefix="$exec_prefix"
9153 exec_prefix="$acl_final_exec_prefix"
9154 eval x=\"$x\"
9155 exec_prefix="$acl_save_exec_prefix"
9156 prefix="$acl_save_prefix"
9157
9158 case "$x" in
9159 -L*)
9160 dir=`echo "X$x" | sed -e 's/^X-L//'`
9161 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9162 found_dir="$dir"
9163 found_so="$dir/lib$name.$shlibext"
9164 if test -f "$dir/lib$name.la"; then
9165 found_la="$dir/lib$name.la"
9166 fi
9167 else
9168 if test -f "$dir/lib$name.$libext"; then
9169 found_dir="$dir"
9170 found_a="$dir/lib$name.$libext"
9171 if test -f "$dir/lib$name.la"; then
9172 found_la="$dir/lib$name.la"
9173 fi
9174 fi
9175 fi
9176 ;;
9177 esac
9178 if test "X$found_dir" != "X"; then
9179 break
9180 fi
9181 done
9182 fi
9183 if test "X$found_dir" != "X"; then
9184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9185 if test "X$found_so" != "X"; then
9186 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9187 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9188 else
9189 haveit=
9190 for x in $ltrpathdirs; do
9191 if test "X$x" = "X$found_dir"; then
9192 haveit=yes
9193 break
9194 fi
9195 done
9196 if test -z "$haveit"; then
9197 ltrpathdirs="$ltrpathdirs $found_dir"
9198 fi
9199 if test "$hardcode_direct" = yes; then
9200 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9201 else
9202 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9203 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9204 haveit=
9205 for x in $rpathdirs; do
9206 if test "X$x" = "X$found_dir"; then
9207 haveit=yes
9208 break
9209 fi
9210 done
9211 if test -z "$haveit"; then
9212 rpathdirs="$rpathdirs $found_dir"
9213 fi
9214 else
9215 haveit=
9216 for x in $LDFLAGS $LIBICONV; do
9217
9218 acl_save_prefix="$prefix"
9219 prefix="$acl_final_prefix"
9220 acl_save_exec_prefix="$exec_prefix"
9221 exec_prefix="$acl_final_exec_prefix"
9222 eval x=\"$x\"
9223 exec_prefix="$acl_save_exec_prefix"
9224 prefix="$acl_save_prefix"
9225
9226 if test "X$x" = "X-L$found_dir"; then
9227 haveit=yes
9228 break
9229 fi
9230 done
9231 if test -z "$haveit"; then
9232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9233 fi
9234 if test "$hardcode_minus_L" != no; then
9235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9236 else
9237 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9238 fi
9239 fi
9240 fi
9241 fi
9242 else
9243 if test "X$found_a" != "X"; then
9244 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9245 else
9246 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9247 fi
9248 fi
9249 additional_includedir=
9250 case "$found_dir" in
9251 */lib | */lib/)
9252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9253 additional_includedir="$basedir/include"
9254 ;;
9255 esac
9256 if test "X$additional_includedir" != "X"; then
9257 if test "X$additional_includedir" != "X/usr/include"; then
9258 haveit=
9259 if test "X$additional_includedir" = "X/usr/local/include"; then
9260 if test -n "$GCC"; then
9261 case $host_os in
9262 linux*) haveit=yes;;
9263 esac
9264 fi
9265 fi
9266 if test -z "$haveit"; then
9267 for x in $CPPFLAGS $INCICONV; do
9268
9269 acl_save_prefix="$prefix"
9270 prefix="$acl_final_prefix"
9271 acl_save_exec_prefix="$exec_prefix"
9272 exec_prefix="$acl_final_exec_prefix"
9273 eval x=\"$x\"
9274 exec_prefix="$acl_save_exec_prefix"
9275 prefix="$acl_save_prefix"
9276
9277 if test "X$x" = "X-I$additional_includedir"; then
9278 haveit=yes
9279 break
9280 fi
9281 done
9282 if test -z "$haveit"; then
9283 if test -d "$additional_includedir"; then
9284 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9285 fi
9286 fi
9287 fi
9288 fi
9289 fi
9290 if test -n "$found_la"; then
9291 save_libdir="$libdir"
9292 case "$found_la" in
9293 */* | *\\*) . "$found_la" ;;
9294 *) . "./$found_la" ;;
9295 esac
9296 libdir="$save_libdir"
9297 for dep in $dependency_libs; do
9298 case "$dep" in
9299 -L*)
9300 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9301 if test "X$additional_libdir" != "X/usr/lib"; then
9302 haveit=
9303 if test "X$additional_libdir" = "X/usr/local/lib"; then
9304 if test -n "$GCC"; then
9305 case $host_os in
9306 linux*) haveit=yes;;
9307 esac
9308 fi
9309 fi
9310 if test -z "$haveit"; then
9311 haveit=
9312 for x in $LDFLAGS $LIBICONV; do
9313
9314 acl_save_prefix="$prefix"
9315 prefix="$acl_final_prefix"
9316 acl_save_exec_prefix="$exec_prefix"
9317 exec_prefix="$acl_final_exec_prefix"
9318 eval x=\"$x\"
9319 exec_prefix="$acl_save_exec_prefix"
9320 prefix="$acl_save_prefix"
9321
9322 if test "X$x" = "X-L$additional_libdir"; then
9323 haveit=yes
9324 break
9325 fi
9326 done
9327 if test -z "$haveit"; then
9328 if test -d "$additional_libdir"; then
9329 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9330 fi
9331 fi
9332 haveit=
9333 for x in $LDFLAGS $LTLIBICONV; do
9334
9335 acl_save_prefix="$prefix"
9336 prefix="$acl_final_prefix"
9337 acl_save_exec_prefix="$exec_prefix"
9338 exec_prefix="$acl_final_exec_prefix"
9339 eval x=\"$x\"
9340 exec_prefix="$acl_save_exec_prefix"
9341 prefix="$acl_save_prefix"
9342
9343 if test "X$x" = "X-L$additional_libdir"; then
9344 haveit=yes
9345 break
9346 fi
9347 done
9348 if test -z "$haveit"; then
9349 if test -d "$additional_libdir"; then
9350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9351 fi
9352 fi
9353 fi
9354 fi
9355 ;;
9356 -R*)
9357 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9358 if test "$enable_rpath" != no; then
9359 haveit=
9360 for x in $rpathdirs; do
9361 if test "X$x" = "X$dir"; then
9362 haveit=yes
9363 break
9364 fi
9365 done
9366 if test -z "$haveit"; then
9367 rpathdirs="$rpathdirs $dir"
9368 fi
9369 haveit=
9370 for x in $ltrpathdirs; do
9371 if test "X$x" = "X$dir"; then
9372 haveit=yes
9373 break
9374 fi
9375 done
9376 if test -z "$haveit"; then
9377 ltrpathdirs="$ltrpathdirs $dir"
9378 fi
9379 fi
9380 ;;
9381 -l*)
9382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9383 ;;
9384 *.la)
9385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9386 ;;
9387 *)
9388 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9390 ;;
9391 esac
9392 done
9393 fi
9394 else
9395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9397 fi
9398 fi
9399 fi
9400 done
9401 done
9402 if test "X$rpathdirs" != "X"; then
9403 if test -n "$hardcode_libdir_separator"; then
9404 alldirs=
9405 for found_dir in $rpathdirs; do
9406 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9407 done
9408 acl_save_libdir="$libdir"
9409 libdir="$alldirs"
9410 eval flag=\"$hardcode_libdir_flag_spec\"
9411 libdir="$acl_save_libdir"
9412 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9413 else
9414 for found_dir in $rpathdirs; do
9415 acl_save_libdir="$libdir"
9416 libdir="$found_dir"
9417 eval flag=\"$hardcode_libdir_flag_spec\"
9418 libdir="$acl_save_libdir"
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9420 done
9421 fi
9422 fi
9423 if test "X$ltrpathdirs" != "X"; then
9424 for found_dir in $ltrpathdirs; do
9425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9426 done
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9443stdlib.h string.h unistd.h sys/param.h
9444do
3185942a
JA
9445as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9448$as_echo_n "checking for $ac_header... " >&6; }
9449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 $as_echo_n "(cached) " >&6
9451fi
9452ac_res=`eval 'as_val=${'$as_ac_Header'}
9453 $as_echo "$as_val"'`
9454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9455$as_echo "$ac_res" >&6; }
b80f6443
JA
9456else
9457 # Is the header compilable?
3185942a
JA
9458{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 9460cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9461/* confdefs.h. */
9462_ACEOF
9463cat confdefs.h >>conftest.$ac_ext
9464cat >>conftest.$ac_ext <<_ACEOF
9465/* end confdefs.h. */
b80f6443
JA
9466$ac_includes_default
9467#include <$ac_header>
9468_ACEOF
9469rm -f conftest.$ac_objext
3185942a
JA
9470if { (ac_try="$ac_compile"
9471case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474esac
9475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476$as_echo "$ac_try_echo") >&5
9477 (eval "$ac_compile") 2>conftest.er1
b80f6443 9478 ac_status=$?
0628567a
JA
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
3185942a
JA
9482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest.$ac_objext; then
b80f6443
JA
9487 ac_header_compiler=yes
9488else
3185942a 9489 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9490sed 's/^/| /' conftest.$ac_ext >&5
9491
3185942a 9492 ac_header_compiler=no
b80f6443 9493fi
3185942a
JA
9494
9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9497$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
9498
9499# Is the header present?
3185942a
JA
9500{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9501$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 9502cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9503/* confdefs.h. */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h. */
b80f6443
JA
9508#include <$ac_header>
9509_ACEOF
3185942a
JA
9510if { (ac_try="$ac_cpp conftest.$ac_ext"
9511case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514esac
9515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9516$as_echo "$ac_try_echo") >&5
9517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 9518 ac_status=$?
0628567a 9519 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
9520 rm -f conftest.er1
9521 cat conftest.err >&5
3185942a
JA
9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null && {
9524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9526 }; then
b80f6443
JA
9527 ac_header_preproc=yes
9528else
3185942a 9529 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9530sed 's/^/| /' conftest.$ac_ext >&5
9531
b80f6443
JA
9532 ac_header_preproc=no
9533fi
3185942a 9534
b80f6443 9535rm -f conftest.err conftest.$ac_ext
3185942a
JA
9536{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9537$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
9538
9539# So? What about this header?
0628567a
JA
9540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9541 yes:no: )
3185942a
JA
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9543$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9545$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
9546 ac_header_preproc=yes
9547 ;;
9548 no:yes:* )
3185942a
JA
9549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9550$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9552$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9554$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9556$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9560$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9561 ( cat <<\_ASBOX
0628567a
JA
9562## ------------------------------- ##
9563## Report this to bug-bash@gnu.org ##
9564## ------------------------------- ##
9565_ASBOX
3185942a 9566 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 9567 ;;
b80f6443 9568esac
3185942a
JA
9569{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9570$as_echo_n "checking for $ac_header... " >&6; }
9571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 $as_echo_n "(cached) " >&6
b80f6443 9573else
0628567a 9574 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 9575fi
3185942a
JA
9576ac_res=`eval 'as_val=${'$as_ac_Header'}
9577 $as_echo "$as_val"'`
9578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9579$as_echo "$ac_res" >&6; }
b80f6443
JA
9580
9581fi
3185942a
JA
9582as_val=`eval 'as_val=${'$as_ac_Header'}
9583 $as_echo "$as_val"'`
9584 if test "x$as_val" = x""yes; then
b80f6443 9585 cat >>confdefs.h <<_ACEOF
3185942a 9586#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
9587_ACEOF
9588
9589fi
9590
f73dda09
JA
9591done
9592
b80f6443
JA
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
3185942a 9613
b80f6443
JA
9614
9615
9616for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3185942a 9617geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
b80f6443
JA
9618strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9619__fsetlocking
f73dda09 9620do
3185942a
JA
9621as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9623$as_echo_n "checking for $ac_func... " >&6; }
9624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
f73dda09
JA
9626else
9627 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9635#define $ac_func innocuous_$ac_func
9636
f73dda09 9637/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
9638 which can conflict with char $ac_func (); below.
9639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9640 <limits.h> exists even on freestanding compilers. */
9641
9642#ifdef __STDC__
9643# include <limits.h>
9644#else
9645# include <assert.h>
9646#endif
9647
9648#undef $ac_func
9649
3185942a
JA
9650/* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
f73dda09
JA
9653#ifdef __cplusplus
9654extern "C"
9655#endif
f73dda09 9656char $ac_func ();
f73dda09
JA
9657/* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
3185942a 9660#if defined __stub_$ac_func || defined __stub___$ac_func
f73dda09 9661choke me
f73dda09
JA
9662#endif
9663
0628567a
JA
9664int
9665main ()
9666{
3185942a 9667return $ac_func ();
f73dda09
JA
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9673if { (ac_try="$ac_link"
9674case "(($ac_try" in
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9677esac
9678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679$as_echo "$ac_try_echo") >&5
9680 (eval "$ac_link") 2>conftest.er1
f73dda09 9681 ac_status=$?
0628567a
JA
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
3185942a
JA
9685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext && {
9690 test "$cross_compiling" = yes ||
9691 $as_test_x conftest$ac_exeext
9692 }; then
f73dda09
JA
9693 eval "$as_ac_var=yes"
9694else
3185942a 9695 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9696sed 's/^/| /' conftest.$ac_ext >&5
9697
3185942a 9698 eval "$as_ac_var=no"
f73dda09 9699fi
3185942a
JA
9700
9701rm -rf conftest.dSYM
9702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9703 conftest$ac_exeext conftest.$ac_ext
f73dda09 9704fi
3185942a
JA
9705ac_res=`eval 'as_val=${'$as_ac_var'}
9706 $as_echo "$as_val"'`
9707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9708$as_echo "$ac_res" >&6; }
9709as_val=`eval 'as_val=${'$as_ac_var'}
9710 $as_echo "$as_val"'`
9711 if test "x$as_val" = x""yes; then
b80f6443 9712 cat >>confdefs.h <<_ACEOF
3185942a 9713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 9714_ACEOF
f73dda09
JA
9715
9716fi
9717done
9718
b80f6443
JA
9719
9720
9721
9722
9723
9724
9725 am_save_CPPFLAGS="$CPPFLAGS"
9726
9727 for element in $INCICONV; do
9728 haveit=
9729 for x in $CPPFLAGS; do
9730
9731 acl_save_prefix="$prefix"
9732 prefix="$acl_final_prefix"
9733 acl_save_exec_prefix="$exec_prefix"
9734 exec_prefix="$acl_final_exec_prefix"
9735 eval x=\"$x\"
9736 exec_prefix="$acl_save_exec_prefix"
9737 prefix="$acl_save_prefix"
9738
9739 if test "X$x" = "X$element"; then
9740 haveit=yes
9741 break
9742 fi
9743 done
9744 if test -z "$haveit"; then
9745 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9746 fi
9747 done
9748
9749
3185942a
JA
9750 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9751$as_echo_n "checking for iconv... " >&6; }
b80f6443 9752if test "${am_cv_func_iconv+set}" = set; then
3185942a 9753 $as_echo_n "(cached) " >&6
f73dda09 9754else
f73dda09 9755
b80f6443
JA
9756 am_cv_func_iconv="no, consider installing GNU libiconv"
9757 am_cv_lib_iconv=no
9758 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
b80f6443
JA
9764#include <stdlib.h>
9765#include <iconv.h>
f73dda09
JA
9766int
9767main ()
9768{
b80f6443
JA
9769iconv_t cd = iconv_open("","");
9770 iconv(cd,NULL,NULL,NULL,NULL);
9771 iconv_close(cd);
f73dda09
JA
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
9782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783$as_echo "$ac_try_echo") >&5
9784 (eval "$ac_link") 2>conftest.er1
f73dda09 9785 ac_status=$?
0628567a
JA
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
3185942a
JA
9789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest$ac_exeext && {
9794 test "$cross_compiling" = yes ||
9795 $as_test_x conftest$ac_exeext
9796 }; then
b80f6443 9797 am_cv_func_iconv=yes
f73dda09 9798else
3185942a 9799 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
3185942a 9802
f73dda09 9803fi
3185942a
JA
9804
9805rm -rf conftest.dSYM
9806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9807 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9808 if test "$am_cv_func_iconv" != yes; then
9809 am_save_LIBS="$LIBS"
9810 LIBS="$LIBS $LIBICONV"
9811 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h. */
b80f6443
JA
9817#include <stdlib.h>
9818#include <iconv.h>
f73dda09
JA
9819int
9820main ()
9821{
b80f6443
JA
9822iconv_t cd = iconv_open("","");
9823 iconv(cd,NULL,NULL,NULL,NULL);
9824 iconv_close(cd);
f73dda09
JA
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9830if { (ac_try="$ac_link"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836$as_echo "$ac_try_echo") >&5
9837 (eval "$ac_link") 2>conftest.er1
f73dda09 9838 ac_status=$?
0628567a
JA
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
3185942a
JA
9842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest$ac_exeext && {
9847 test "$cross_compiling" = yes ||
9848 $as_test_x conftest$ac_exeext
9849 }; then
b80f6443
JA
9850 am_cv_lib_iconv=yes
9851 am_cv_func_iconv=yes
f73dda09 9852else
3185942a 9853 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
3185942a 9856
f73dda09 9857fi
3185942a
JA
9858
9859rm -rf conftest.dSYM
9860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9861 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9862 LIBS="$am_save_LIBS"
9863 fi
9864
f73dda09 9865fi
3185942a
JA
9866{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9867$as_echo "$am_cv_func_iconv" >&6; }
b80f6443 9868 if test "$am_cv_func_iconv" = yes; then
f73dda09 9869
b80f6443
JA
9870cat >>confdefs.h <<\_ACEOF
9871#define HAVE_ICONV 1
9872_ACEOF
f73dda09 9873
b80f6443
JA
9874 fi
9875 if test "$am_cv_lib_iconv" = yes; then
3185942a
JA
9876 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9877$as_echo_n "checking how to link with libiconv... " >&6; }
9878 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9879$as_echo "$LIBICONV" >&6; }
b80f6443
JA
9880 else
9881 CPPFLAGS="$am_save_CPPFLAGS"
9882 LIBICONV=
9883 LTLIBICONV=
9884 fi
9885
9886
9887
9888 if test "$am_cv_func_iconv" = yes; then
3185942a
JA
9889 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9890$as_echo_n "checking for iconv declaration... " >&6; }
b80f6443 9891 if test "${am_cv_proto_iconv+set}" = set; then
3185942a 9892 $as_echo_n "(cached) " >&6
f73dda09 9893else
b80f6443
JA
9894
9895 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9896/* confdefs.h. */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h. */
b80f6443
JA
9901
9902#include <stdlib.h>
9903#include <iconv.h>
9904extern
f73dda09 9905#ifdef __cplusplus
b80f6443
JA
9906"C"
9907#endif
9908#if defined(__STDC__) || defined(__cplusplus)
9909size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9910#else
9911size_t iconv();
f73dda09 9912#endif
f73dda09
JA
9913
9914int
9915main ()
9916{
f73dda09
JA
9917
9918 ;
9919 return 0;
9920}
9921_ACEOF
b80f6443 9922rm -f conftest.$ac_objext
3185942a
JA
9923if { (ac_try="$ac_compile"
9924case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
9928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929$as_echo "$ac_try_echo") >&5
9930 (eval "$ac_compile") 2>conftest.er1
f73dda09 9931 ac_status=$?
0628567a
JA
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
3185942a
JA
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
b80f6443 9940 am_cv_proto_iconv_arg1=""
f73dda09 9941else
3185942a 9942 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9943sed 's/^/| /' conftest.$ac_ext >&5
9944
3185942a 9945 am_cv_proto_iconv_arg1="const"
f73dda09 9946fi
3185942a
JA
9947
9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 9949 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
f73dda09 9950fi
f73dda09 9951
b80f6443 9952 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3185942a 9953 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
b80f6443 9954 }$am_cv_proto_iconv" >&5
3185942a
JA
9955$as_echo "${ac_t:-
9956 }$am_cv_proto_iconv" >&6; }
f73dda09 9957
b80f6443
JA
9958cat >>confdefs.h <<_ACEOF
9959#define ICONV_CONST $am_cv_proto_iconv_arg1
9960_ACEOF
9961
9962 fi
9963
9964
3185942a
JA
9965 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9966$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
b80f6443 9967if test "${am_cv_langinfo_codeset+set}" = set; then
3185942a 9968 $as_echo_n "(cached) " >&6
f73dda09
JA
9969else
9970 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
b80f6443 9976#include <langinfo.h>
f73dda09
JA
9977int
9978main ()
9979{
b80f6443 9980char* cs = nl_langinfo(CODESET);
f73dda09
JA
9981 ;
9982 return 0;
9983}
9984_ACEOF
b80f6443 9985rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9986if { (ac_try="$ac_link"
9987case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990esac
9991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992$as_echo "$ac_try_echo") >&5
9993 (eval "$ac_link") 2>conftest.er1
f73dda09 9994 ac_status=$?
0628567a
JA
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
3185942a
JA
9998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest$ac_exeext && {
10003 test "$cross_compiling" = yes ||
10004 $as_test_x conftest$ac_exeext
10005 }; then
b80f6443 10006 am_cv_langinfo_codeset=yes
f73dda09 10007else
3185942a 10008 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
3185942a 10011 am_cv_langinfo_codeset=no
f73dda09 10012fi
3185942a
JA
10013
10014rm -rf conftest.dSYM
10015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10016 conftest$ac_exeext conftest.$ac_ext
b80f6443 10017
f73dda09 10018fi
3185942a
JA
10019{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10020$as_echo "$am_cv_langinfo_codeset" >&6; }
b80f6443 10021 if test $am_cv_langinfo_codeset = yes; then
f73dda09 10022
b80f6443
JA
10023cat >>confdefs.h <<\_ACEOF
10024#define HAVE_LANGINFO_CODESET 1
10025_ACEOF
f73dda09 10026
b80f6443 10027 fi
f73dda09 10028
b80f6443 10029 if test $ac_cv_header_locale_h = yes; then
f73dda09 10030
3185942a
JA
10031 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10032$as_echo_n "checking for LC_MESSAGES... " >&6; }
b80f6443 10033if test "${am_cv_val_LC_MESSAGES+set}" = set; then
3185942a 10034 $as_echo_n "(cached) " >&6
f73dda09
JA
10035else
10036 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h. */
b80f6443 10042#include <locale.h>
f73dda09
JA
10043int
10044main ()
10045{
b80f6443 10046return LC_MESSAGES
f73dda09
JA
10047 ;
10048 return 0;
10049}
10050_ACEOF
b80f6443 10051rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10052if { (ac_try="$ac_link"
10053case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056esac
10057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10058$as_echo "$ac_try_echo") >&5
10059 (eval "$ac_link") 2>conftest.er1
f73dda09 10060 ac_status=$?
0628567a
JA
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
3185942a
JA
10064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } && {
10066 test -z "$ac_c_werror_flag" ||
10067 test ! -s conftest.err
10068 } && test -s conftest$ac_exeext && {
10069 test "$cross_compiling" = yes ||
10070 $as_test_x conftest$ac_exeext
10071 }; then
b80f6443 10072 am_cv_val_LC_MESSAGES=yes
f73dda09 10073else
3185942a 10074 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
3185942a 10077 am_cv_val_LC_MESSAGES=no
f73dda09 10078fi
3185942a
JA
10079
10080rm -rf conftest.dSYM
10081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10082 conftest$ac_exeext conftest.$ac_ext
f73dda09 10083fi
3185942a
JA
10084{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10085$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
b80f6443 10086 if test $am_cv_val_LC_MESSAGES = yes; then
f73dda09 10087
b80f6443
JA
10088cat >>confdefs.h <<\_ACEOF
10089#define HAVE_LC_MESSAGES 1
10090_ACEOF
10091
10092 fi
10093
10094 fi
f73dda09 10095
b80f6443
JA
10096 for ac_prog in bison
10097do
10098 # Extract the first word of "$ac_prog", so it can be a program name with args.
10099set dummy $ac_prog; ac_word=$2
3185942a
JA
10100{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10101$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 10102if test "${ac_cv_prog_INTLBISON+set}" = set; then
3185942a 10103 $as_echo_n "(cached) " >&6
f73dda09 10104else
b80f6443
JA
10105 if test -n "$INTLBISON"; then
10106 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10107else
10108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 10115 ac_cv_prog_INTLBISON="$ac_prog"
3185942a 10116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
10117 break 2
10118 fi
10119done
10120done
3185942a 10121IFS=$as_save_IFS
f73dda09 10122
b80f6443
JA
10123fi
10124fi
10125INTLBISON=$ac_cv_prog_INTLBISON
10126if test -n "$INTLBISON"; then
3185942a
JA
10127 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10128$as_echo "$INTLBISON" >&6; }
b80f6443 10129else
3185942a
JA
10130 { $as_echo "$as_me:$LINENO: result: no" >&5
10131$as_echo "no" >&6; }
f73dda09
JA
10132fi
10133
3185942a 10134
b80f6443
JA
10135 test -n "$INTLBISON" && break
10136done
10137
10138 if test -z "$INTLBISON"; then
10139 ac_verc_fail=yes
10140 else
3185942a
JA
10141 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10142$as_echo_n "checking version of bison... " >&6; }
b80f6443
JA
10143 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10144 case $ac_prog_version in
10145 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10146 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10147 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10148 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10149 esac
3185942a
JA
10150 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10151$as_echo "$ac_prog_version" >&6; }
b80f6443
JA
10152 fi
10153 if test $ac_verc_fail = yes; then
10154 INTLBISON=:
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
3185942a
JA
10172 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10173$as_echo_n "checking whether NLS is requested... " >&6; }
10174 # Check whether --enable-nls was given.
b80f6443 10175if test "${enable_nls+set}" = set; then
3185942a 10176 enableval=$enable_nls; USE_NLS=$enableval
b80f6443
JA
10177else
10178 USE_NLS=yes
3185942a
JA
10179fi
10180
10181 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10182$as_echo "$USE_NLS" >&6; }
b80f6443
JA
10183
10184
10185
10186
10187 BUILD_INCLUDED_LIBINTL=no
10188 USE_INCLUDED_LIBINTL=no
10189
10190 LIBINTL=
10191 LTLIBINTL=
10192 POSUB=
10193
10194 if test "$USE_NLS" = "yes"; then
10195 gt_use_preinstalled_gnugettext=no
10196
3185942a
JA
10197 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10198$as_echo_n "checking whether included gettext is requested... " >&6; }
b80f6443 10199
3185942a 10200# Check whether --with-included-gettext was given.
b80f6443 10201if test "${with_included_gettext+set}" = set; then
3185942a 10202 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
b80f6443
JA
10203else
10204 nls_cv_force_use_gnu_gettext=no
3185942a
JA
10205fi
10206
10207 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10208$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b80f6443
JA
10209
10210 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10211 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10212
10213
10214
10215
10216
10217
3185942a
JA
10218 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10219$as_echo_n "checking for GNU gettext in libc... " >&6; }
b80f6443 10220if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
3185942a 10221 $as_echo_n "(cached) " >&6
f73dda09
JA
10222else
10223 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
b80f6443
JA
10229#include <libintl.h>
10230extern int _nl_msg_cat_cntr;
10231extern int *_nl_domain_bindings;
f73dda09
JA
10232int
10233main ()
10234{
b80f6443
JA
10235bindtextdomain ("", "");
10236return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
f73dda09
JA
10237 ;
10238 return 0;
10239}
10240_ACEOF
b80f6443 10241rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10242if { (ac_try="$ac_link"
10243case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246esac
10247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248$as_echo "$ac_try_echo") >&5
10249 (eval "$ac_link") 2>conftest.er1
f73dda09 10250 ac_status=$?
0628567a
JA
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
3185942a
JA
10254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest$ac_exeext && {
10259 test "$cross_compiling" = yes ||
10260 $as_test_x conftest$ac_exeext
10261 }; then
b80f6443 10262 gt_cv_func_gnugettext2_libc=yes
f73dda09 10263else
3185942a 10264 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
3185942a 10267 gt_cv_func_gnugettext2_libc=no
f73dda09 10268fi
3185942a
JA
10269
10270rm -rf conftest.dSYM
10271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10272 conftest$ac_exeext conftest.$ac_ext
f73dda09 10273fi
3185942a
JA
10274{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10275$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
f73dda09 10276
b80f6443 10277 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
f73dda09 10278
f73dda09 10279
f73dda09 10280
b80f6443
JA
10281 use_additional=yes
10282
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10287
10288 eval additional_includedir=\"$includedir\"
10289 eval additional_libdir=\"$libdir\"
10290
10291 exec_prefix="$acl_save_exec_prefix"
10292 prefix="$acl_save_prefix"
10293
10294
3185942a 10295# Check whether --with-libintl-prefix was given.
b80f6443 10296if test "${with_libintl_prefix+set}" = set; then
3185942a 10297 withval=$with_libintl_prefix;
b80f6443
JA
10298 if test "X$withval" = "Xno"; then
10299 use_additional=no
10300 else
10301 if test "X$withval" = "X"; then
10302
10303 acl_save_prefix="$prefix"
10304 prefix="$acl_final_prefix"
10305 acl_save_exec_prefix="$exec_prefix"
10306 exec_prefix="$acl_final_exec_prefix"
10307
10308 eval additional_includedir=\"$includedir\"
10309 eval additional_libdir=\"$libdir\"
10310
10311 exec_prefix="$acl_save_exec_prefix"
10312 prefix="$acl_save_prefix"
10313
10314 else
10315 additional_includedir="$withval/include"
10316 additional_libdir="$withval/lib"
10317 fi
10318 fi
10319
3185942a
JA
10320fi
10321
b80f6443
JA
10322 LIBINTL=
10323 LTLIBINTL=
10324 INCINTL=
10325 rpathdirs=
10326 ltrpathdirs=
10327 names_already_handled=
10328 names_next_round='intl '
10329 while test -n "$names_next_round"; do
10330 names_this_round="$names_next_round"
10331 names_next_round=
10332 for name in $names_this_round; do
10333 already_handled=
10334 for n in $names_already_handled; do
10335 if test "$n" = "$name"; then
10336 already_handled=yes
10337 break
10338 fi
10339 done
10340 if test -z "$already_handled"; then
10341 names_already_handled="$names_already_handled $name"
10342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10343 eval value=\"\$HAVE_LIB$uppername\"
10344 if test -n "$value"; then
10345 if test "$value" = yes; then
10346 eval value=\"\$LIB$uppername\"
10347 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10348 eval value=\"\$LTLIB$uppername\"
10349 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10350 else
10351 :
10352 fi
10353 else
10354 found_dir=
10355 found_la=
10356 found_so=
10357 found_a=
10358 if test $use_additional = yes; then
10359 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10360 found_dir="$additional_libdir"
10361 found_so="$additional_libdir/lib$name.$shlibext"
10362 if test -f "$additional_libdir/lib$name.la"; then
10363 found_la="$additional_libdir/lib$name.la"
10364 fi
10365 else
10366 if test -f "$additional_libdir/lib$name.$libext"; then
10367 found_dir="$additional_libdir"
10368 found_a="$additional_libdir/lib$name.$libext"
10369 if test -f "$additional_libdir/lib$name.la"; then
10370 found_la="$additional_libdir/lib$name.la"
10371 fi
10372 fi
10373 fi
10374 fi
10375 if test "X$found_dir" = "X"; then
10376 for x in $LDFLAGS $LTLIBINTL; do
10377
10378 acl_save_prefix="$prefix"
10379 prefix="$acl_final_prefix"
10380 acl_save_exec_prefix="$exec_prefix"
10381 exec_prefix="$acl_final_exec_prefix"
10382 eval x=\"$x\"
10383 exec_prefix="$acl_save_exec_prefix"
10384 prefix="$acl_save_prefix"
10385
10386 case "$x" in
10387 -L*)
10388 dir=`echo "X$x" | sed -e 's/^X-L//'`
10389 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10390 found_dir="$dir"
10391 found_so="$dir/lib$name.$shlibext"
10392 if test -f "$dir/lib$name.la"; then
10393 found_la="$dir/lib$name.la"
10394 fi
10395 else
10396 if test -f "$dir/lib$name.$libext"; then
10397 found_dir="$dir"
10398 found_a="$dir/lib$name.$libext"
10399 if test -f "$dir/lib$name.la"; then
10400 found_la="$dir/lib$name.la"
10401 fi
10402 fi
10403 fi
10404 ;;
10405 esac
10406 if test "X$found_dir" != "X"; then
10407 break
10408 fi
10409 done
10410 fi
10411 if test "X$found_dir" != "X"; then
10412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10413 if test "X$found_so" != "X"; then
10414 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10416 else
10417 haveit=
10418 for x in $ltrpathdirs; do
10419 if test "X$x" = "X$found_dir"; then
10420 haveit=yes
10421 break
10422 fi
10423 done
10424 if test -z "$haveit"; then
10425 ltrpathdirs="$ltrpathdirs $found_dir"
10426 fi
10427 if test "$hardcode_direct" = yes; then
10428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10429 else
10430 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10432 haveit=
10433 for x in $rpathdirs; do
10434 if test "X$x" = "X$found_dir"; then
10435 haveit=yes
10436 break
10437 fi
10438 done
10439 if test -z "$haveit"; then
10440 rpathdirs="$rpathdirs $found_dir"
10441 fi
10442 else
10443 haveit=
10444 for x in $LDFLAGS $LIBINTL; do
10445
10446 acl_save_prefix="$prefix"
10447 prefix="$acl_final_prefix"
10448 acl_save_exec_prefix="$exec_prefix"
10449 exec_prefix="$acl_final_exec_prefix"
10450 eval x=\"$x\"
10451 exec_prefix="$acl_save_exec_prefix"
10452 prefix="$acl_save_prefix"
10453
10454 if test "X$x" = "X-L$found_dir"; then
10455 haveit=yes
10456 break
10457 fi
10458 done
10459 if test -z "$haveit"; then
10460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10461 fi
10462 if test "$hardcode_minus_L" != no; then
10463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10464 else
10465 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10466 fi
10467 fi
10468 fi
10469 fi
10470 else
10471 if test "X$found_a" != "X"; then
10472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10473 else
10474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10475 fi
10476 fi
10477 additional_includedir=
10478 case "$found_dir" in
10479 */lib | */lib/)
10480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10481 additional_includedir="$basedir/include"
10482 ;;
10483 esac
10484 if test "X$additional_includedir" != "X"; then
10485 if test "X$additional_includedir" != "X/usr/include"; then
10486 haveit=
10487 if test "X$additional_includedir" = "X/usr/local/include"; then
10488 if test -n "$GCC"; then
10489 case $host_os in
10490 linux*) haveit=yes;;
10491 esac
10492 fi
10493 fi
10494 if test -z "$haveit"; then
10495 for x in $CPPFLAGS $INCINTL; do
10496
10497 acl_save_prefix="$prefix"
10498 prefix="$acl_final_prefix"
10499 acl_save_exec_prefix="$exec_prefix"
10500 exec_prefix="$acl_final_exec_prefix"
10501 eval x=\"$x\"
10502 exec_prefix="$acl_save_exec_prefix"
10503 prefix="$acl_save_prefix"
10504
10505 if test "X$x" = "X-I$additional_includedir"; then
10506 haveit=yes
10507 break
10508 fi
10509 done
10510 if test -z "$haveit"; then
10511 if test -d "$additional_includedir"; then
10512 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10513 fi
10514 fi
10515 fi
10516 fi
10517 fi
10518 if test -n "$found_la"; then
10519 save_libdir="$libdir"
10520 case "$found_la" in
10521 */* | *\\*) . "$found_la" ;;
10522 *) . "./$found_la" ;;
10523 esac
10524 libdir="$save_libdir"
10525 for dep in $dependency_libs; do
10526 case "$dep" in
10527 -L*)
10528 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10529 if test "X$additional_libdir" != "X/usr/lib"; then
10530 haveit=
10531 if test "X$additional_libdir" = "X/usr/local/lib"; then
10532 if test -n "$GCC"; then
10533 case $host_os in
10534 linux*) haveit=yes;;
10535 esac
10536 fi
10537 fi
10538 if test -z "$haveit"; then
10539 haveit=
10540 for x in $LDFLAGS $LIBINTL; do
10541
10542 acl_save_prefix="$prefix"
10543 prefix="$acl_final_prefix"
10544 acl_save_exec_prefix="$exec_prefix"
10545 exec_prefix="$acl_final_exec_prefix"
10546 eval x=\"$x\"
10547 exec_prefix="$acl_save_exec_prefix"
10548 prefix="$acl_save_prefix"
10549
10550 if test "X$x" = "X-L$additional_libdir"; then
10551 haveit=yes
10552 break
10553 fi
10554 done
10555 if test -z "$haveit"; then
10556 if test -d "$additional_libdir"; then
10557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10558 fi
10559 fi
10560 haveit=
10561 for x in $LDFLAGS $LTLIBINTL; do
10562
10563 acl_save_prefix="$prefix"
10564 prefix="$acl_final_prefix"
10565 acl_save_exec_prefix="$exec_prefix"
10566 exec_prefix="$acl_final_exec_prefix"
10567 eval x=\"$x\"
10568 exec_prefix="$acl_save_exec_prefix"
10569 prefix="$acl_save_prefix"
10570
10571 if test "X$x" = "X-L$additional_libdir"; then
10572 haveit=yes
10573 break
10574 fi
10575 done
10576 if test -z "$haveit"; then
10577 if test -d "$additional_libdir"; then
10578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10579 fi
10580 fi
10581 fi
10582 fi
10583 ;;
10584 -R*)
10585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10586 if test "$enable_rpath" != no; then
10587 haveit=
10588 for x in $rpathdirs; do
10589 if test "X$x" = "X$dir"; then
10590 haveit=yes
10591 break
10592 fi
10593 done
10594 if test -z "$haveit"; then
10595 rpathdirs="$rpathdirs $dir"
10596 fi
10597 haveit=
10598 for x in $ltrpathdirs; do
10599 if test "X$x" = "X$dir"; then
10600 haveit=yes
10601 break
10602 fi
10603 done
10604 if test -z "$haveit"; then
10605 ltrpathdirs="$ltrpathdirs $dir"
10606 fi
10607 fi
10608 ;;
10609 -l*)
10610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10611 ;;
10612 *.la)
10613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10614 ;;
10615 *)
10616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10618 ;;
10619 esac
10620 done
10621 fi
10622 else
10623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10625 fi
10626 fi
10627 fi
10628 done
10629 done
10630 if test "X$rpathdirs" != "X"; then
10631 if test -n "$hardcode_libdir_separator"; then
10632 alldirs=
10633 for found_dir in $rpathdirs; do
10634 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10635 done
10636 acl_save_libdir="$libdir"
10637 libdir="$alldirs"
10638 eval flag=\"$hardcode_libdir_flag_spec\"
10639 libdir="$acl_save_libdir"
10640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10641 else
10642 for found_dir in $rpathdirs; do
10643 acl_save_libdir="$libdir"
10644 libdir="$found_dir"
10645 eval flag=\"$hardcode_libdir_flag_spec\"
10646 libdir="$acl_save_libdir"
10647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10648 done
10649 fi
10650 fi
10651 if test "X$ltrpathdirs" != "X"; then
10652 for found_dir in $ltrpathdirs; do
10653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10654 done
10655 fi
10656
3185942a
JA
10657 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10658$as_echo_n "checking for GNU gettext in libintl... " >&6; }
b80f6443 10659if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
3185942a 10660 $as_echo_n "(cached) " >&6
f73dda09 10661else
b80f6443
JA
10662 gt_save_CPPFLAGS="$CPPFLAGS"
10663 CPPFLAGS="$CPPFLAGS $INCINTL"
10664 gt_save_LIBS="$LIBS"
10665 LIBS="$LIBS $LIBINTL"
10666 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
b80f6443
JA
10672#include <libintl.h>
10673extern int _nl_msg_cat_cntr;
10674extern
10675#ifdef __cplusplus
10676"C"
10677#endif
10678const char *_nl_expand_alias ();
f73dda09
JA
10679int
10680main ()
10681{
b80f6443
JA
10682bindtextdomain ("", "");
10683return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
f73dda09
JA
10684 ;
10685 return 0;
10686}
10687_ACEOF
b80f6443 10688rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10689if { (ac_try="$ac_link"
10690case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693esac
10694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10695$as_echo "$ac_try_echo") >&5
10696 (eval "$ac_link") 2>conftest.er1
f73dda09 10697 ac_status=$?
0628567a
JA
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
3185942a
JA
10701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext && {
10706 test "$cross_compiling" = yes ||
10707 $as_test_x conftest$ac_exeext
10708 }; then
b80f6443 10709 gt_cv_func_gnugettext2_libintl=yes
f73dda09 10710else
3185942a 10711 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
3185942a 10714 gt_cv_func_gnugettext2_libintl=no
f73dda09 10715fi
3185942a
JA
10716
10717rm -rf conftest.dSYM
10718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10719 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10720 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10721 LIBS="$LIBS $LIBICONV"
10722 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10723/* confdefs.h. */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h. */
b80f6443
JA
10728#include <libintl.h>
10729extern int _nl_msg_cat_cntr;
10730extern
10731#ifdef __cplusplus
10732"C"
10733#endif
10734const char *_nl_expand_alias ();
f73dda09
JA
10735int
10736main ()
10737{
b80f6443
JA
10738bindtextdomain ("", "");
10739return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
f73dda09
JA
10740 ;
10741 return 0;
10742}
10743_ACEOF
b80f6443 10744rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10745if { (ac_try="$ac_link"
10746case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751$as_echo "$ac_try_echo") >&5
10752 (eval "$ac_link") 2>conftest.er1
f73dda09 10753 ac_status=$?
0628567a
JA
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
3185942a
JA
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest$ac_exeext && {
10762 test "$cross_compiling" = yes ||
10763 $as_test_x conftest$ac_exeext
10764 }; then
b80f6443
JA
10765 LIBINTL="$LIBINTL $LIBICONV"
10766 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10767 gt_cv_func_gnugettext2_libintl=yes
10768
f73dda09 10769else
3185942a 10770 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10771sed 's/^/| /' conftest.$ac_ext >&5
10772
3185942a 10773
f73dda09 10774fi
3185942a
JA
10775
10776rm -rf conftest.dSYM
10777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10778 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10779 fi
10780 CPPFLAGS="$gt_save_CPPFLAGS"
10781 LIBS="$gt_save_LIBS"
10782fi
3185942a
JA
10783{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10784$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
b80f6443
JA
10785 fi
10786
10787 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10788 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10789 && test "$PACKAGE" != gettext-runtime \
10790 && test "$PACKAGE" != gettext-tools; }; then
10791 gt_use_preinstalled_gnugettext=yes
10792 else
10793 LIBINTL=
10794 LTLIBINTL=
10795 INCINTL=
10796 fi
10797
10798
10799 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10800 nls_cv_use_gnu_gettext=yes
10801 fi
10802 fi
f73dda09 10803
b80f6443
JA
10804 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10805 BUILD_INCLUDED_LIBINTL=yes
10806 USE_INCLUDED_LIBINTL=yes
10807 LIBINTL="lib/intl/libintl.a $LIBICONV"
10808 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10809 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10810 fi
f73dda09 10811
b80f6443
JA
10812 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10813 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10814 CATOBJEXT=.gmo
10815 fi
f73dda09 10816
f73dda09 10817
b80f6443
JA
10818 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10819 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10820
10821cat >>confdefs.h <<\_ACEOF
10822#define ENABLE_NLS 1
10823_ACEOF
10824
10825 else
10826 USE_NLS=no
10827 fi
10828 fi
10829
3185942a
JA
10830 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10831$as_echo_n "checking whether to use NLS... " >&6; }
10832 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10833$as_echo "$USE_NLS" >&6; }
b80f6443 10834 if test "$USE_NLS" = "yes"; then
3185942a
JA
10835 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10836$as_echo_n "checking where the gettext function comes from... " >&6; }
b80f6443
JA
10837 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10838 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10839 gt_source="external libintl"
10840 else
10841 gt_source="libc"
10842 fi
10843 else
10844 gt_source="included intl directory"
10845 fi
3185942a
JA
10846 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10847$as_echo "$gt_source" >&6; }
b80f6443
JA
10848 fi
10849
10850 if test "$USE_NLS" = "yes"; then
10851
10852 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10853 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
3185942a
JA
10854 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10855$as_echo_n "checking how to link with libintl... " >&6; }
10856 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10857$as_echo "$LIBINTL" >&6; }
b80f6443
JA
10858
10859 for element in $INCINTL; do
10860 haveit=
10861 for x in $CPPFLAGS; do
10862
10863 acl_save_prefix="$prefix"
10864 prefix="$acl_final_prefix"
10865 acl_save_exec_prefix="$exec_prefix"
10866 exec_prefix="$acl_final_exec_prefix"
10867 eval x=\"$x\"
10868 exec_prefix="$acl_save_exec_prefix"
10869 prefix="$acl_save_prefix"
10870
10871 if test "X$x" = "X$element"; then
10872 haveit=yes
10873 break
10874 fi
10875 done
10876 if test -z "$haveit"; then
10877 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10878 fi
10879 done
10880
10881 fi
10882
10883
10884cat >>confdefs.h <<\_ACEOF
10885#define HAVE_GETTEXT 1
10886_ACEOF
10887
10888
10889cat >>confdefs.h <<\_ACEOF
10890#define HAVE_DCGETTEXT 1
10891_ACEOF
10892
10893 fi
10894
10895 POSUB=po
10896 fi
10897
10898
10899 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10900 BUILD_INCLUDED_LIBINTL=yes
10901 fi
10902
10903
10904
10905
10906
10907 nls_cv_header_intl=
10908 nls_cv_header_libgt=
10909
10910 DATADIRNAME=share
10911
10912
10913 INSTOBJEXT=.mo
10914
10915
10916 GENCAT=gencat
10917
10918
10919 if test "$USE_INCLUDED_LIBINTL" = yes; then
10920 INTLOBJS="\$(GETTOBJS)"
10921 fi
10922
10923
10924 INTL_LIBTOOL_SUFFIX_PREFIX=
10925
10926
10927
10928 INTLLIBS="$LIBINTL"
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941ac_header_dirent=no
10942for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3185942a
JA
10943 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10944{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10945$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947 $as_echo_n "(cached) " >&6
7117c2d2
JA
10948else
10949 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10950/* confdefs.h. */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h. */
b80f6443
JA
10955#include <sys/types.h>
10956#include <$ac_hdr>
10957
7117c2d2
JA
10958int
10959main ()
10960{
b80f6443
JA
10961if ((DIR *) 0)
10962return 0;
7117c2d2
JA
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967rm -f conftest.$ac_objext
3185942a
JA
10968if { (ac_try="$ac_compile"
10969case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972esac
10973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10974$as_echo "$ac_try_echo") >&5
10975 (eval "$ac_compile") 2>conftest.er1
7117c2d2 10976 ac_status=$?
0628567a
JA
10977 grep -v '^ *+' conftest.er1 >conftest.err
10978 rm -f conftest.er1
10979 cat conftest.err >&5
3185942a
JA
10980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && {
10982 test -z "$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10984 } && test -s conftest.$ac_objext; then
b80f6443 10985 eval "$as_ac_Header=yes"
7117c2d2 10986else
3185942a 10987 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10988sed 's/^/| /' conftest.$ac_ext >&5
10989
3185942a 10990 eval "$as_ac_Header=no"
7117c2d2 10991fi
3185942a
JA
10992
10993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 10994fi
3185942a
JA
10995ac_res=`eval 'as_val=${'$as_ac_Header'}
10996 $as_echo "$as_val"'`
10997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998$as_echo "$ac_res" >&6; }
10999as_val=`eval 'as_val=${'$as_ac_Header'}
11000 $as_echo "$as_val"'`
11001 if test "x$as_val" = x""yes; then
b80f6443 11002 cat >>confdefs.h <<_ACEOF
3185942a 11003#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
b80f6443 11004_ACEOF
7117c2d2 11005
b80f6443 11006ac_header_dirent=$ac_hdr; break
7117c2d2
JA
11007fi
11008
b80f6443
JA
11009done
11010# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11011if test $ac_header_dirent = dirent.h; then
3185942a
JA
11012 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11013$as_echo_n "checking for library containing opendir... " >&6; }
b80f6443 11014if test "${ac_cv_search_opendir+set}" = set; then
3185942a 11015 $as_echo_n "(cached) " >&6
f73dda09 11016else
b80f6443 11017 ac_func_search_save_LIBS=$LIBS
b80f6443 11018cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
f73dda09 11024
3185942a
JA
11025/* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
b80f6443
JA
11028#ifdef __cplusplus
11029extern "C"
f73dda09 11030#endif
b80f6443 11031char opendir ();
f73dda09
JA
11032int
11033main ()
11034{
3185942a 11035return opendir ();
f73dda09
JA
11036 ;
11037 return 0;
11038}
11039_ACEOF
3185942a
JA
11040for ac_lib in '' dir; do
11041 if test -z "$ac_lib"; then
11042 ac_res="none required"
11043 else
11044 ac_res=-l$ac_lib
11045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11046 fi
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048if { (ac_try="$ac_link"
11049case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052esac
11053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054$as_echo "$ac_try_echo") >&5
11055 (eval "$ac_link") 2>conftest.er1
f73dda09 11056 ac_status=$?
0628567a
JA
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
3185942a
JA
11060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext && {
11065 test "$cross_compiling" = yes ||
11066 $as_test_x conftest$ac_exeext
11067 }; then
11068 ac_cv_search_opendir=$ac_res
f73dda09 11069else
3185942a 11070 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
f73dda09 11073
3185942a 11074fi
0628567a 11075
3185942a
JA
11076rm -rf conftest.dSYM
11077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext
11079 if test "${ac_cv_search_opendir+set}" = set; then
11080 break
f73dda09 11081fi
3185942a
JA
11082done
11083if test "${ac_cv_search_opendir+set}" = set; then
11084 :
11085else
11086 ac_cv_search_opendir=no
f73dda09 11087fi
3185942a 11088rm conftest.$ac_ext
b80f6443
JA
11089LIBS=$ac_func_search_save_LIBS
11090fi
3185942a
JA
11091{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11092$as_echo "$ac_cv_search_opendir" >&6; }
11093ac_res=$ac_cv_search_opendir
11094if test "$ac_res" != no; then
11095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f73dda09
JA
11096
11097fi
11098
b80f6443 11099else
3185942a
JA
11100 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11101$as_echo_n "checking for library containing opendir... " >&6; }
b80f6443 11102if test "${ac_cv_search_opendir+set}" = set; then
3185942a 11103 $as_echo_n "(cached) " >&6
f73dda09 11104else
b80f6443 11105 ac_func_search_save_LIBS=$LIBS
b80f6443 11106cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
f73dda09 11112
3185942a
JA
11113/* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
b80f6443
JA
11116#ifdef __cplusplus
11117extern "C"
f73dda09 11118#endif
b80f6443 11119char opendir ();
f73dda09
JA
11120int
11121main ()
11122{
3185942a 11123return opendir ();
f73dda09
JA
11124 ;
11125 return 0;
11126}
11127_ACEOF
3185942a
JA
11128for ac_lib in '' x; do
11129 if test -z "$ac_lib"; then
11130 ac_res="none required"
11131 else
11132 ac_res=-l$ac_lib
11133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11134 fi
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (ac_try="$ac_link"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142$as_echo "$ac_try_echo") >&5
11143 (eval "$ac_link") 2>conftest.er1
f73dda09 11144 ac_status=$?
0628567a
JA
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
3185942a
JA
11148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest$ac_exeext && {
11153 test "$cross_compiling" = yes ||
11154 $as_test_x conftest$ac_exeext
11155 }; then
11156 ac_cv_search_opendir=$ac_res
f73dda09 11157else
3185942a 11158 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11159sed 's/^/| /' conftest.$ac_ext >&5
11160
f73dda09 11161
3185942a 11162fi
0628567a 11163
3185942a
JA
11164rm -rf conftest.dSYM
11165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11166 conftest$ac_exeext
11167 if test "${ac_cv_search_opendir+set}" = set; then
11168 break
f73dda09 11169fi
3185942a
JA
11170done
11171if test "${ac_cv_search_opendir+set}" = set; then
11172 :
11173else
11174 ac_cv_search_opendir=no
f73dda09 11175fi
3185942a 11176rm conftest.$ac_ext
b80f6443
JA
11177LIBS=$ac_func_search_save_LIBS
11178fi
3185942a
JA
11179{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11180$as_echo "$ac_cv_search_opendir" >&6; }
11181ac_res=$ac_cv_search_opendir
11182if test "$ac_res" != no; then
11183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f73dda09 11184
b80f6443 11185fi
f73dda09
JA
11186
11187fi
11188
3185942a
JA
11189{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11190$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
b80f6443 11191if test "${ac_cv_header_time+set}" = set; then
3185942a 11192 $as_echo_n "(cached) " >&6
f73dda09
JA
11193else
11194 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
b80f6443
JA
11200#include <sys/types.h>
11201#include <sys/time.h>
11202#include <time.h>
f73dda09
JA
11203
11204int
11205main ()
11206{
b80f6443
JA
11207if ((struct tm *) 0)
11208return 0;
f73dda09
JA
11209 ;
11210 return 0;
11211}
11212_ACEOF
b80f6443 11213rm -f conftest.$ac_objext
3185942a
JA
11214if { (ac_try="$ac_compile"
11215case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11220$as_echo "$ac_try_echo") >&5
11221 (eval "$ac_compile") 2>conftest.er1
f73dda09 11222 ac_status=$?
0628567a
JA
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
3185942a
JA
11226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && {
11228 test -z "$ac_c_werror_flag" ||
11229 test ! -s conftest.err
11230 } && test -s conftest.$ac_objext; then
b80f6443 11231 ac_cv_header_time=yes
f73dda09 11232else
3185942a 11233 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
3185942a 11236 ac_cv_header_time=no
f73dda09 11237fi
3185942a
JA
11238
11239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 11240fi
3185942a
JA
11241{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11242$as_echo "$ac_cv_header_time" >&6; }
b80f6443 11243if test $ac_cv_header_time = yes; then
f73dda09 11244
b80f6443
JA
11245cat >>confdefs.h <<\_ACEOF
11246#define TIME_WITH_SYS_TIME 1
11247_ACEOF
f73dda09
JA
11248
11249fi
11250
f73dda09 11251
f73dda09 11252
b80f6443
JA
11253
11254for ac_header in inttypes.h
11255do
3185942a
JA
11256as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11259$as_echo_n "checking for $ac_header... " >&6; }
11260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261 $as_echo_n "(cached) " >&6
11262fi
11263ac_res=`eval 'as_val=${'$as_ac_Header'}
11264 $as_echo "$as_val"'`
11265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11266$as_echo "$ac_res" >&6; }
b80f6443
JA
11267else
11268 # Is the header compilable?
3185942a
JA
11269{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11271cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
b80f6443
JA
11277$ac_includes_default
11278#include <$ac_header>
11279_ACEOF
11280rm -f conftest.$ac_objext
3185942a
JA
11281if { (ac_try="$ac_compile"
11282case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285esac
11286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11287$as_echo "$ac_try_echo") >&5
11288 (eval "$ac_compile") 2>conftest.er1
f73dda09 11289 ac_status=$?
0628567a
JA
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
3185942a
JA
11293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && {
11295 test -z "$ac_c_werror_flag" ||
11296 test ! -s conftest.err
11297 } && test -s conftest.$ac_objext; then
b80f6443 11298 ac_header_compiler=yes
f73dda09 11299else
3185942a 11300 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11301sed 's/^/| /' conftest.$ac_ext >&5
11302
3185942a 11303 ac_header_compiler=no
f73dda09 11304fi
3185942a
JA
11305
11306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11307{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11308$as_echo "$ac_header_compiler" >&6; }
f73dda09 11309
b80f6443 11310# Is the header present?
3185942a
JA
11311{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11312$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11313cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
f73dda09
JA
11319#include <$ac_header>
11320_ACEOF
3185942a
JA
11321if { (ac_try="$ac_cpp conftest.$ac_ext"
11322case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325esac
11326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327$as_echo "$ac_try_echo") >&5
11328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 11329 ac_status=$?
0628567a 11330 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
11331 rm -f conftest.er1
11332 cat conftest.err >&5
3185942a
JA
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } >/dev/null && {
11335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 }; then
b80f6443 11338 ac_header_preproc=yes
f73dda09 11339else
3185942a 11340 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
b80f6443 11343 ac_header_preproc=no
f73dda09 11344fi
3185942a 11345
f73dda09 11346rm -f conftest.err conftest.$ac_ext
3185942a
JA
11347{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11349
11350# So? What about this header?
0628567a
JA
11351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 yes:no: )
3185942a
JA
11353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11357 ac_header_preproc=yes
11358 ;;
11359 no:yes:* )
3185942a
JA
11360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372 ( cat <<\_ASBOX
0628567a
JA
11373## ------------------------------- ##
11374## Report this to bug-bash@gnu.org ##
11375## ------------------------------- ##
11376_ASBOX
3185942a 11377 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11378 ;;
b80f6443 11379esac
3185942a
JA
11380{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11381$as_echo_n "checking for $ac_header... " >&6; }
11382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383 $as_echo_n "(cached) " >&6
b80f6443 11384else
0628567a 11385 eval "$as_ac_Header=\$ac_header_preproc"
f73dda09 11386fi
3185942a
JA
11387ac_res=`eval 'as_val=${'$as_ac_Header'}
11388 $as_echo "$as_val"'`
11389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11390$as_echo "$ac_res" >&6; }
b80f6443
JA
11391
11392fi
3185942a
JA
11393as_val=`eval 'as_val=${'$as_ac_Header'}
11394 $as_echo "$as_val"'`
11395 if test "x$as_val" = x""yes; then
b80f6443 11396 cat >>confdefs.h <<_ACEOF
3185942a 11397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 11398_ACEOF
f73dda09
JA
11399
11400fi
b80f6443 11401
f73dda09
JA
11402done
11403
b80f6443
JA
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
95732b49 11422
0001803f 11423
495aee44 11424
b80f6443
JA
11425
11426
11427for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11428 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
0001803f 11429 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
495aee44 11430 syslog.h ulimit.h
f73dda09 11431do
3185942a
JA
11432as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11435$as_echo_n "checking for $ac_header... " >&6; }
11436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 $as_echo_n "(cached) " >&6
11438fi
11439ac_res=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11442$as_echo "$ac_res" >&6; }
f73dda09 11443else
b80f6443 11444 # Is the header compilable?
3185942a
JA
11445{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11447cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
b80f6443
JA
11453$ac_includes_default
11454#include <$ac_header>
11455_ACEOF
11456rm -f conftest.$ac_objext
3185942a
JA
11457if { (ac_try="$ac_compile"
11458case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461esac
11462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463$as_echo "$ac_try_echo") >&5
11464 (eval "$ac_compile") 2>conftest.er1
f73dda09 11465 ac_status=$?
0628567a
JA
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
3185942a
JA
11469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
b80f6443 11474 ac_header_compiler=yes
f73dda09 11475else
3185942a 11476 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11477sed 's/^/| /' conftest.$ac_ext >&5
11478
3185942a 11479 ac_header_compiler=no
f73dda09 11480fi
3185942a
JA
11481
11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11484$as_echo "$ac_header_compiler" >&6; }
f73dda09 11485
b80f6443 11486# Is the header present?
3185942a
JA
11487{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11488$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11489cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
b80f6443
JA
11495#include <$ac_header>
11496_ACEOF
3185942a
JA
11497if { (ac_try="$ac_cpp conftest.$ac_ext"
11498case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501esac
11502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503$as_echo "$ac_try_echo") >&5
11504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 11505 ac_status=$?
0628567a 11506 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
11507 rm -f conftest.er1
11508 cat conftest.err >&5
3185942a
JA
11509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev/null && {
11511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 }; then
b80f6443 11514 ac_header_preproc=yes
7117c2d2 11515else
3185942a 11516 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11517sed 's/^/| /' conftest.$ac_ext >&5
11518
b80f6443
JA
11519 ac_header_preproc=no
11520fi
3185942a 11521
b80f6443 11522rm -f conftest.err conftest.$ac_ext
3185942a
JA
11523{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11524$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11525
11526# So? What about this header?
0628567a
JA
11527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11528 yes:no: )
3185942a
JA
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11530$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11532$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11533 ac_header_preproc=yes
11534 ;;
11535 no:yes:* )
3185942a
JA
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11537$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11539$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11541$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11543$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11545$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11547$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11548 ( cat <<\_ASBOX
0628567a
JA
11549## ------------------------------- ##
11550## Report this to bug-bash@gnu.org ##
11551## ------------------------------- ##
11552_ASBOX
3185942a 11553 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11554 ;;
b80f6443 11555esac
3185942a
JA
11556{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11557$as_echo_n "checking for $ac_header... " >&6; }
11558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11559 $as_echo_n "(cached) " >&6
b80f6443 11560else
0628567a 11561 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 11562fi
3185942a
JA
11563ac_res=`eval 'as_val=${'$as_ac_Header'}
11564 $as_echo "$as_val"'`
11565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11566$as_echo "$ac_res" >&6; }
b80f6443
JA
11567
11568fi
3185942a
JA
11569as_val=`eval 'as_val=${'$as_ac_Header'}
11570 $as_echo "$as_val"'`
11571 if test "x$as_val" = x""yes; then
b80f6443 11572 cat >>confdefs.h <<_ACEOF
3185942a 11573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
11574_ACEOF
11575
11576fi
11577
11578done
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
95732b49 11592for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
b80f6443
JA
11593 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11594 sys/time.h sys/times.h sys/types.h sys/wait.h
11595do
3185942a
JA
11596as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11599$as_echo_n "checking for $ac_header... " >&6; }
11600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601 $as_echo_n "(cached) " >&6
11602fi
11603ac_res=`eval 'as_val=${'$as_ac_Header'}
11604 $as_echo "$as_val"'`
11605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11606$as_echo "$ac_res" >&6; }
b80f6443
JA
11607else
11608 # Is the header compilable?
3185942a
JA
11609{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11610$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11611cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11612/* confdefs.h. */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h. */
b80f6443
JA
11617$ac_includes_default
11618#include <$ac_header>
11619_ACEOF
11620rm -f conftest.$ac_objext
3185942a
JA
11621if { (ac_try="$ac_compile"
11622case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11627$as_echo "$ac_try_echo") >&5
11628 (eval "$ac_compile") 2>conftest.er1
b80f6443 11629 ac_status=$?
0628567a
JA
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
3185942a
JA
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest.$ac_objext; then
b80f6443
JA
11638 ac_header_compiler=yes
11639else
3185942a 11640 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11641sed 's/^/| /' conftest.$ac_ext >&5
11642
3185942a 11643 ac_header_compiler=no
b80f6443 11644fi
3185942a
JA
11645
11646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11648$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
11649
11650# Is the header present?
3185942a
JA
11651{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11652$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11653cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
b80f6443
JA
11659#include <$ac_header>
11660_ACEOF
3185942a
JA
11661if { (ac_try="$ac_cpp conftest.$ac_ext"
11662case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667$as_echo "$ac_try_echo") >&5
11668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 11669 ac_status=$?
0628567a 11670 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
11671 rm -f conftest.er1
11672 cat conftest.err >&5
3185942a
JA
11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null && {
11675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 }; then
b80f6443
JA
11678 ac_header_preproc=yes
11679else
3185942a 11680 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11681sed 's/^/| /' conftest.$ac_ext >&5
11682
b80f6443
JA
11683 ac_header_preproc=no
11684fi
3185942a 11685
b80f6443 11686rm -f conftest.err conftest.$ac_ext
3185942a
JA
11687{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11688$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11689
11690# So? What about this header?
0628567a
JA
11691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11692 yes:no: )
3185942a
JA
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11694$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11696$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11697 ac_header_preproc=yes
11698 ;;
11699 no:yes:* )
3185942a
JA
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11701$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11703$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11705$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11707$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11709$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11711$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11712 ( cat <<\_ASBOX
0628567a
JA
11713## ------------------------------- ##
11714## Report this to bug-bash@gnu.org ##
11715## ------------------------------- ##
11716_ASBOX
3185942a 11717 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11718 ;;
b80f6443 11719esac
3185942a
JA
11720{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11721$as_echo_n "checking for $ac_header... " >&6; }
11722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 $as_echo_n "(cached) " >&6
b80f6443 11724else
0628567a 11725 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 11726fi
3185942a
JA
11727ac_res=`eval 'as_val=${'$as_ac_Header'}
11728 $as_echo "$as_val"'`
11729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11730$as_echo "$ac_res" >&6; }
b80f6443
JA
11731
11732fi
3185942a
JA
11733as_val=`eval 'as_val=${'$as_ac_Header'}
11734 $as_echo "$as_val"'`
11735 if test "x$as_val" = x""yes; then
b80f6443 11736 cat >>confdefs.h <<_ACEOF
3185942a 11737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
11738_ACEOF
11739
11740fi
11741
11742done
11743
11744
11745
11746for ac_header in netinet/in.h arpa/inet.h
11747do
3185942a
JA
11748as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11751$as_echo_n "checking for $ac_header... " >&6; }
11752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 $as_echo_n "(cached) " >&6
11754fi
11755ac_res=`eval 'as_val=${'$as_ac_Header'}
11756 $as_echo "$as_val"'`
11757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11758$as_echo "$ac_res" >&6; }
b80f6443
JA
11759else
11760 # Is the header compilable?
3185942a
JA
11761{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11762$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11763cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11764/* confdefs.h. */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h. */
b80f6443
JA
11769$ac_includes_default
11770#include <$ac_header>
11771_ACEOF
11772rm -f conftest.$ac_objext
3185942a
JA
11773if { (ac_try="$ac_compile"
11774case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777esac
11778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779$as_echo "$ac_try_echo") >&5
11780 (eval "$ac_compile") 2>conftest.er1
b80f6443 11781 ac_status=$?
0628567a
JA
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
3185942a
JA
11785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
b80f6443
JA
11790 ac_header_compiler=yes
11791else
3185942a 11792 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
3185942a 11795 ac_header_compiler=no
b80f6443 11796fi
3185942a
JA
11797
11798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
11801
11802# Is the header present?
3185942a
JA
11803{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11804$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11805cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11806/* confdefs.h. */
11807_ACEOF
11808cat confdefs.h >>conftest.$ac_ext
11809cat >>conftest.$ac_ext <<_ACEOF
11810/* end confdefs.h. */
b80f6443
JA
11811#include <$ac_header>
11812_ACEOF
3185942a
JA
11813if { (ac_try="$ac_cpp conftest.$ac_ext"
11814case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11819$as_echo "$ac_try_echo") >&5
11820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 11821 ac_status=$?
0628567a 11822 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
11823 rm -f conftest.er1
11824 cat conftest.err >&5
3185942a
JA
11825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } >/dev/null && {
11827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 }; then
b80f6443
JA
11830 ac_header_preproc=yes
11831else
3185942a 11832 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11833sed 's/^/| /' conftest.$ac_ext >&5
11834
b80f6443
JA
11835 ac_header_preproc=no
11836fi
3185942a 11837
b80f6443 11838rm -f conftest.err conftest.$ac_ext
3185942a
JA
11839{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11841
11842# So? What about this header?
0628567a
JA
11843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 yes:no: )
3185942a
JA
11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11849 ac_header_preproc=yes
11850 ;;
11851 no:yes:* )
3185942a
JA
11852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11855$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11859$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11864 ( cat <<\_ASBOX
0628567a
JA
11865## ------------------------------- ##
11866## Report this to bug-bash@gnu.org ##
11867## ------------------------------- ##
11868_ASBOX
3185942a 11869 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11870 ;;
b80f6443 11871esac
3185942a
JA
11872{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11873$as_echo_n "checking for $ac_header... " >&6; }
11874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 $as_echo_n "(cached) " >&6
b80f6443 11876else
0628567a 11877 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 11878fi
3185942a
JA
11879ac_res=`eval 'as_val=${'$as_ac_Header'}
11880 $as_echo "$as_val"'`
11881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11882$as_echo "$ac_res" >&6; }
b80f6443
JA
11883
11884fi
3185942a
JA
11885as_val=`eval 'as_val=${'$as_ac_Header'}
11886 $as_echo "$as_val"'`
11887 if test "x$as_val" = x""yes; then
b80f6443 11888 cat >>confdefs.h <<_ACEOF
3185942a 11889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
11890_ACEOF
11891
11892fi
11893
11894done
11895
11896
3185942a
JA
11897{ $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11898$as_echo_n "checking for sys/ptem.h... " >&6; }
95732b49 11899if test "${ac_cv_header_sys_ptem_h+set}" = set; then
3185942a 11900 $as_echo_n "(cached) " >&6
95732b49
JA
11901else
11902 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
95732b49
JA
11908
11909#if HAVE_SYS_STREAM_H
11910# include <sys/stream.h>
11911#endif
11912
11913
11914#include <sys/ptem.h>
11915_ACEOF
11916rm -f conftest.$ac_objext
3185942a
JA
11917if { (ac_try="$ac_compile"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923$as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
95732b49 11925 ac_status=$?
0628567a
JA
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
3185942a
JA
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
95732b49
JA
11934 ac_cv_header_sys_ptem_h=yes
11935else
3185942a 11936 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
3185942a 11939 ac_cv_header_sys_ptem_h=no
95732b49 11940fi
3185942a
JA
11941
11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95732b49 11943fi
3185942a
JA
11944{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11945$as_echo "$ac_cv_header_sys_ptem_h" >&6; }
95732b49
JA
11946
11947
11948
b80f6443
JA
11949# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11950# for constant arguments. Useless!
3185942a
JA
11951{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11952$as_echo_n "checking for working alloca.h... " >&6; }
b80f6443 11953if test "${ac_cv_working_alloca_h+set}" = set; then
3185942a 11954 $as_echo_n "(cached) " >&6
b80f6443
JA
11955else
11956 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
b80f6443
JA
11962#include <alloca.h>
11963int
11964main ()
11965{
11966char *p = (char *) alloca (2 * sizeof (int));
3185942a 11967 if (p) return 0;
b80f6443
JA
11968 ;
11969 return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
11973if { (ac_try="$ac_link"
11974case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977esac
11978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11979$as_echo "$ac_try_echo") >&5
11980 (eval "$ac_link") 2>conftest.er1
b80f6443 11981 ac_status=$?
0628567a
JA
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
3185942a
JA
11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest$ac_exeext && {
11990 test "$cross_compiling" = yes ||
11991 $as_test_x conftest$ac_exeext
11992 }; then
b80f6443
JA
11993 ac_cv_working_alloca_h=yes
11994else
3185942a 11995 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
3185942a 11998 ac_cv_working_alloca_h=no
b80f6443 11999fi
3185942a
JA
12000
12001rm -rf conftest.dSYM
12002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12003 conftest$ac_exeext conftest.$ac_ext
b80f6443 12004fi
3185942a
JA
12005{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12006$as_echo "$ac_cv_working_alloca_h" >&6; }
b80f6443
JA
12007if test $ac_cv_working_alloca_h = yes; then
12008
12009cat >>confdefs.h <<\_ACEOF
12010#define HAVE_ALLOCA_H 1
12011_ACEOF
12012
12013fi
12014
3185942a
JA
12015{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
12016$as_echo_n "checking for alloca... " >&6; }
b80f6443 12017if test "${ac_cv_func_alloca_works+set}" = set; then
3185942a 12018 $as_echo_n "(cached) " >&6
b80f6443
JA
12019else
12020 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
b80f6443
JA
12026#ifdef __GNUC__
12027# define alloca __builtin_alloca
12028#else
12029# ifdef _MSC_VER
12030# include <malloc.h>
12031# define alloca _alloca
12032# else
3185942a 12033# ifdef HAVE_ALLOCA_H
b80f6443
JA
12034# include <alloca.h>
12035# else
12036# ifdef _AIX
12037 #pragma alloca
12038# else
12039# ifndef alloca /* predefined by HP cc +Olibcalls */
12040char *alloca ();
12041# endif
12042# endif
12043# endif
12044# endif
12045#endif
12046
12047int
12048main ()
12049{
12050char *p = (char *) alloca (1);
3185942a 12051 if (p) return 0;
b80f6443
JA
12052 ;
12053 return 0;
12054}
12055_ACEOF
12056rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12057if { (ac_try="$ac_link"
12058case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061esac
12062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12063$as_echo "$ac_try_echo") >&5
12064 (eval "$ac_link") 2>conftest.er1
b80f6443 12065 ac_status=$?
0628567a
JA
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
3185942a
JA
12069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest$ac_exeext && {
12074 test "$cross_compiling" = yes ||
12075 $as_test_x conftest$ac_exeext
12076 }; then
b80f6443
JA
12077 ac_cv_func_alloca_works=yes
12078else
3185942a 12079 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
3185942a 12082 ac_cv_func_alloca_works=no
b80f6443 12083fi
3185942a
JA
12084
12085rm -rf conftest.dSYM
12086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12087 conftest$ac_exeext conftest.$ac_ext
b80f6443 12088fi
3185942a
JA
12089{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12090$as_echo "$ac_cv_func_alloca_works" >&6; }
b80f6443
JA
12091
12092if test $ac_cv_func_alloca_works = yes; then
12093
12094cat >>confdefs.h <<\_ACEOF
12095#define HAVE_ALLOCA 1
12096_ACEOF
12097
12098else
12099 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12100# that cause trouble. Some versions do not even contain alloca or
12101# contain a buggy version. If you still want to use their alloca,
12102# use ar to extract alloca.o from them instead of compiling alloca.c.
12103
3185942a 12104ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b80f6443
JA
12105
12106cat >>confdefs.h <<\_ACEOF
12107#define C_ALLOCA 1
12108_ACEOF
12109
12110
3185942a
JA
12111{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12112$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b80f6443 12113if test "${ac_cv_os_cray+set}" = set; then
3185942a 12114 $as_echo_n "(cached) " >&6
b80f6443
JA
12115else
12116 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
3185942a 12122#if defined CRAY && ! defined CRAY2
b80f6443
JA
12123webecray
12124#else
12125wenotbecray
12126#endif
12127
12128_ACEOF
12129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 12130 $EGREP "webecray" >/dev/null 2>&1; then
b80f6443
JA
12131 ac_cv_os_cray=yes
12132else
12133 ac_cv_os_cray=no
12134fi
12135rm -f conftest*
12136
12137fi
3185942a
JA
12138{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12139$as_echo "$ac_cv_os_cray" >&6; }
b80f6443
JA
12140if test $ac_cv_os_cray = yes; then
12141 for ac_func in _getb67 GETB67 getb67; do
3185942a
JA
12142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12144$as_echo_n "checking for $ac_func... " >&6; }
12145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146 $as_echo_n "(cached) " >&6
b80f6443
JA
12147else
12148 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12149/* confdefs.h. */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h. */
12154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12156#define $ac_func innocuous_$ac_func
12157
b80f6443 12158/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12159 which can conflict with char $ac_func (); below.
12160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161 <limits.h> exists even on freestanding compilers. */
12162
12163#ifdef __STDC__
12164# include <limits.h>
12165#else
12166# include <assert.h>
12167#endif
12168
12169#undef $ac_func
12170
3185942a
JA
12171/* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
b80f6443
JA
12174#ifdef __cplusplus
12175extern "C"
b80f6443 12176#endif
b80f6443
JA
12177char $ac_func ();
12178/* The GNU C library defines this for functions which it implements
12179 to always fail with ENOSYS. Some functions are actually named
12180 something starting with __ and the normal name is an alias. */
3185942a 12181#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 12182choke me
b80f6443
JA
12183#endif
12184
0628567a
JA
12185int
12186main ()
12187{
3185942a 12188return $ac_func ();
b80f6443
JA
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12194if { (ac_try="$ac_link"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12200$as_echo "$ac_try_echo") >&5
12201 (eval "$ac_link") 2>conftest.er1
b80f6443 12202 ac_status=$?
0628567a
JA
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
3185942a
JA
12206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest$ac_exeext && {
12211 test "$cross_compiling" = yes ||
12212 $as_test_x conftest$ac_exeext
12213 }; then
b80f6443
JA
12214 eval "$as_ac_var=yes"
12215else
3185942a 12216 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
3185942a 12219 eval "$as_ac_var=no"
b80f6443 12220fi
3185942a
JA
12221
12222rm -rf conftest.dSYM
12223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12224 conftest$ac_exeext conftest.$ac_ext
b80f6443 12225fi
3185942a
JA
12226ac_res=`eval 'as_val=${'$as_ac_var'}
12227 $as_echo "$as_val"'`
12228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12229$as_echo "$ac_res" >&6; }
12230as_val=`eval 'as_val=${'$as_ac_var'}
12231 $as_echo "$as_val"'`
12232 if test "x$as_val" = x""yes; then
b80f6443
JA
12233
12234cat >>confdefs.h <<_ACEOF
12235#define CRAY_STACKSEG_END $ac_func
12236_ACEOF
12237
12238 break
12239fi
12240
12241 done
12242fi
12243
3185942a
JA
12244{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12245$as_echo_n "checking stack direction for C alloca... " >&6; }
b80f6443 12246if test "${ac_cv_c_stack_direction+set}" = set; then
3185942a 12247 $as_echo_n "(cached) " >&6
b80f6443
JA
12248else
12249 if test "$cross_compiling" = yes; then
12250 ac_cv_c_stack_direction=0
12251else
12252 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12253/* confdefs.h. */
12254_ACEOF
12255cat confdefs.h >>conftest.$ac_ext
12256cat >>conftest.$ac_ext <<_ACEOF
12257/* end confdefs.h. */
3185942a 12258$ac_includes_default
b80f6443
JA
12259int
12260find_stack_direction ()
12261{
12262 static char *addr = 0;
12263 auto char dummy;
12264 if (addr == 0)
12265 {
12266 addr = &dummy;
12267 return find_stack_direction ();
12268 }
12269 else
12270 return (&dummy > addr) ? 1 : -1;
12271}
12272
12273int
12274main ()
12275{
3185942a 12276 return find_stack_direction () < 0;
b80f6443
JA
12277}
12278_ACEOF
12279rm -f conftest$ac_exeext
3185942a
JA
12280if { (ac_try="$ac_link"
12281case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12286$as_echo "$ac_try_echo") >&5
12287 (eval "$ac_link") 2>&5
b80f6443 12288 ac_status=$?
3185942a 12289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 12290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12296$as_echo "$ac_try_echo") >&5
12297 (eval "$ac_try") 2>&5
b80f6443 12298 ac_status=$?
3185942a 12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
12300 (exit $ac_status); }; }; then
12301 ac_cv_c_stack_direction=1
12302else
3185942a
JA
12303 $as_echo "$as_me: program exited with status $ac_status" >&5
12304$as_echo "$as_me: failed program was:" >&5
0628567a
JA
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
b80f6443
JA
12307( exit $ac_status )
12308ac_cv_c_stack_direction=-1
12309fi
3185942a
JA
12310rm -rf conftest.dSYM
12311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 12312fi
3185942a
JA
12313
12314
b80f6443 12315fi
3185942a
JA
12316{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12317$as_echo "$ac_cv_c_stack_direction" >&6; }
b80f6443
JA
12318
12319cat >>confdefs.h <<_ACEOF
12320#define STACK_DIRECTION $ac_cv_c_stack_direction
12321_ACEOF
12322
12323
12324fi
12325
3185942a
JA
12326{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12327$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
b80f6443 12328if test "${ac_cv_func_getpgrp_void+set}" = set; then
3185942a 12329 $as_echo_n "(cached) " >&6
b80f6443
JA
12330else
12331 # Use it with a single arg.
12332cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
b80f6443
JA
12338$ac_includes_default
12339int
12340main ()
12341{
12342getpgrp (0);
12343 ;
12344 return 0;
12345}
12346_ACEOF
12347rm -f conftest.$ac_objext
3185942a
JA
12348if { (ac_try="$ac_compile"
12349case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
12353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354$as_echo "$ac_try_echo") >&5
12355 (eval "$ac_compile") 2>conftest.er1
b80f6443 12356 ac_status=$?
0628567a
JA
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
3185942a
JA
12360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 } && test -s conftest.$ac_objext; then
b80f6443
JA
12365 ac_cv_func_getpgrp_void=no
12366else
3185942a 12367 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
3185942a 12370 ac_cv_func_getpgrp_void=yes
b80f6443 12371fi
3185942a
JA
12372
12373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
12374
12375fi
3185942a
JA
12376{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12377$as_echo "$ac_cv_func_getpgrp_void" >&6; }
b80f6443
JA
12378if test $ac_cv_func_getpgrp_void = yes; then
12379
12380cat >>confdefs.h <<\_ACEOF
12381#define GETPGRP_VOID 1
12382_ACEOF
12383
12384fi
12385
b80f6443 12386if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
3185942a 12387 $as_echo_n "(cached) " >&6
b80f6443 12388else
0628567a 12389 ac_cv_func_setvbuf_reversed=no
0628567a 12390fi
b80f6443 12391
b80f6443
JA
12392
12393
12394for ac_func in vprintf
12395do
3185942a
JA
12396as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12397{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12398$as_echo_n "checking for $ac_func... " >&6; }
12399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12400 $as_echo_n "(cached) " >&6
b80f6443
JA
12401else
12402 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
12408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12410#define $ac_func innocuous_$ac_func
12411
b80f6443 12412/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12413 which can conflict with char $ac_func (); below.
12414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 <limits.h> exists even on freestanding compilers. */
12416
12417#ifdef __STDC__
12418# include <limits.h>
12419#else
12420# include <assert.h>
12421#endif
12422
12423#undef $ac_func
12424
3185942a
JA
12425/* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
b80f6443
JA
12428#ifdef __cplusplus
12429extern "C"
b80f6443 12430#endif
b80f6443
JA
12431char $ac_func ();
12432/* The GNU C library defines this for functions which it implements
12433 to always fail with ENOSYS. Some functions are actually named
12434 something starting with __ and the normal name is an alias. */
3185942a 12435#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 12436choke me
b80f6443
JA
12437#endif
12438
0628567a
JA
12439int
12440main ()
12441{
3185942a 12442return $ac_func ();
b80f6443
JA
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12448if { (ac_try="$ac_link"
12449case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12454$as_echo "$ac_try_echo") >&5
12455 (eval "$ac_link") 2>conftest.er1
b80f6443 12456 ac_status=$?
0628567a
JA
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
3185942a
JA
12460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && {
12462 test -z "$ac_c_werror_flag" ||
12463 test ! -s conftest.err
12464 } && test -s conftest$ac_exeext && {
12465 test "$cross_compiling" = yes ||
12466 $as_test_x conftest$ac_exeext
12467 }; then
b80f6443
JA
12468 eval "$as_ac_var=yes"
12469else
3185942a 12470 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
3185942a 12473 eval "$as_ac_var=no"
b80f6443 12474fi
3185942a
JA
12475
12476rm -rf conftest.dSYM
12477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12478 conftest$ac_exeext conftest.$ac_ext
b80f6443 12479fi
3185942a
JA
12480ac_res=`eval 'as_val=${'$as_ac_var'}
12481 $as_echo "$as_val"'`
12482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12483$as_echo "$ac_res" >&6; }
12484as_val=`eval 'as_val=${'$as_ac_var'}
12485 $as_echo "$as_val"'`
12486 if test "x$as_val" = x""yes; then
b80f6443 12487 cat >>confdefs.h <<_ACEOF
3185942a 12488#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
12489_ACEOF
12490
3185942a
JA
12491{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12492$as_echo_n "checking for _doprnt... " >&6; }
b80f6443 12493if test "${ac_cv_func__doprnt+set}" = set; then
3185942a 12494 $as_echo_n "(cached) " >&6
b80f6443
JA
12495else
12496 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504#define _doprnt innocuous__doprnt
12505
b80f6443 12506/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12507 which can conflict with char _doprnt (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12510
12511#ifdef __STDC__
12512# include <limits.h>
12513#else
12514# include <assert.h>
12515#endif
12516
12517#undef _doprnt
12518
3185942a
JA
12519/* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
0628567a
JA
12522#ifdef __cplusplus
12523extern "C"
b80f6443 12524#endif
b80f6443
JA
12525char _doprnt ();
12526/* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
3185942a 12529#if defined __stub__doprnt || defined __stub____doprnt
b80f6443 12530choke me
b80f6443
JA
12531#endif
12532
0628567a
JA
12533int
12534main ()
12535{
3185942a 12536return _doprnt ();
b80f6443
JA
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12542if { (ac_try="$ac_link"
12543case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548$as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
b80f6443 12550 ac_status=$?
0628567a
JA
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
3185942a
JA
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest$ac_exeext
12561 }; then
b80f6443
JA
12562 ac_cv_func__doprnt=yes
12563else
3185942a 12564 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
3185942a 12567 ac_cv_func__doprnt=no
b80f6443 12568fi
3185942a
JA
12569
12570rm -rf conftest.dSYM
12571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12572 conftest$ac_exeext conftest.$ac_ext
b80f6443 12573fi
3185942a
JA
12574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12575$as_echo "$ac_cv_func__doprnt" >&6; }
12576if test "x$ac_cv_func__doprnt" = x""yes; then
b80f6443
JA
12577
12578cat >>confdefs.h <<\_ACEOF
12579#define HAVE_DOPRNT 1
12580_ACEOF
12581
12582fi
12583
12584fi
12585done
12586
12587
3185942a
JA
12588{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12589$as_echo_n "checking for working strcoll... " >&6; }
b80f6443 12590if test "${ac_cv_func_strcoll_works+set}" = set; then
3185942a 12591 $as_echo_n "(cached) " >&6
b80f6443
JA
12592else
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_strcoll_works=no
12595else
12596 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
b80f6443
JA
12602$ac_includes_default
12603int
12604main ()
12605{
3185942a 12606return (strcoll ("abc", "def") >= 0 ||
b80f6443
JA
12607 strcoll ("ABC", "DEF") >= 0 ||
12608 strcoll ("123", "456") >= 0)
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest$ac_exeext
3185942a
JA
12614if { (ac_try="$ac_link"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620$as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>&5
b80f6443 12622 ac_status=$?
3185942a 12623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 12624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628esac
12629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12630$as_echo "$ac_try_echo") >&5
12631 (eval "$ac_try") 2>&5
b80f6443 12632 ac_status=$?
3185942a 12633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
12634 (exit $ac_status); }; }; then
12635 ac_cv_func_strcoll_works=yes
12636else
3185942a
JA
12637 $as_echo "$as_me: program exited with status $ac_status" >&5
12638$as_echo "$as_me: failed program was:" >&5
0628567a
JA
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
b80f6443
JA
12641( exit $ac_status )
12642ac_cv_func_strcoll_works=no
12643fi
3185942a
JA
12644rm -rf conftest.dSYM
12645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 12646fi
3185942a
JA
12647
12648
b80f6443 12649fi
3185942a
JA
12650{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12651$as_echo "$ac_cv_func_strcoll_works" >&6; }
b80f6443
JA
12652if test $ac_cv_func_strcoll_works = yes; then
12653
12654cat >>confdefs.h <<\_ACEOF
12655#define HAVE_STRCOLL 1
12656_ACEOF
12657
12658fi
12659
12660
12661
12662if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12663 MALLOC_TARGET=alloca
12664 MALLOC_SRC=alloca.c
12665
12666 MALLOC_LIB='-lmalloc'
12667 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12668 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12669 MALLOC_DEP='$(MALLOC_LIBRARY)'
12670fi
12671
12672if test "$ac_cv_func_vprintf" = no; then
3185942a
JA
12673 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12674$as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
b80f6443 12675 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
b80f6443
JA
12681#include <stdio.h>
12682
12683_ACEOF
12684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 12685 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
b80f6443
JA
12686 ac_cv_func_vprintf=yes
12687fi
12688rm -f conftest*
12689
3185942a
JA
12690 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12691$as_echo "$ac_cv_func_vprintf" >&6; }
b80f6443
JA
12692 if test $ac_cv_func_vprintf = yes; then
12693 cat >>confdefs.h <<\_ACEOF
12694#define HAVE_VPRINTF 1
12695_ACEOF
12696
12697 fi
12698fi
12699
12700if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
3185942a 12701 case " $LIBOBJS " in
0628567a 12702 *" vprint.$ac_objext "* ) ;;
3185942a
JA
12703 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12704 ;;
0628567a
JA
12705esac
12706
b80f6443
JA
12707fi
12708
3185942a
JA
12709{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12710$as_echo_n "checking return type of signal handlers... " >&6; }
b80f6443 12711if test "${ac_cv_type_signal+set}" = set; then
3185942a 12712 $as_echo_n "(cached) " >&6
b80f6443
JA
12713else
12714 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
b80f6443
JA
12720#include <sys/types.h>
12721#include <signal.h>
b80f6443
JA
12722
12723int
12724main ()
12725{
3185942a 12726return *(signal (0, 0)) (0) == 1;
b80f6443
JA
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext
3185942a
JA
12732if { (ac_try="$ac_compile"
12733case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12738$as_echo "$ac_try_echo") >&5
12739 (eval "$ac_compile") 2>conftest.er1
b80f6443 12740 ac_status=$?
0628567a
JA
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
3185942a
JA
12744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest.$ac_objext; then
12749 ac_cv_type_signal=int
b80f6443 12750else
3185942a 12751 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
3185942a 12754 ac_cv_type_signal=void
b80f6443 12755fi
3185942a
JA
12756
12757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 12758fi
3185942a
JA
12759{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12760$as_echo "$ac_cv_type_signal" >&6; }
b80f6443
JA
12761
12762cat >>confdefs.h <<_ACEOF
12763#define RETSIGTYPE $ac_cv_type_signal
12764_ACEOF
12765
12766
12767
3185942a
JA
12768{ $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12769$as_echo_n "checking for __setostype... " >&6; }
b80f6443 12770if test "${ac_cv_func___setostype+set}" = set; then
3185942a 12771 $as_echo_n "(cached) " >&6
b80f6443
JA
12772else
12773 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12781#define __setostype innocuous___setostype
12782
b80f6443 12783/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12784 which can conflict with char __setostype (); below.
12785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 <limits.h> exists even on freestanding compilers. */
12787
12788#ifdef __STDC__
12789# include <limits.h>
12790#else
12791# include <assert.h>
12792#endif
12793
12794#undef __setostype
12795
3185942a
JA
12796/* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
b80f6443
JA
12799#ifdef __cplusplus
12800extern "C"
b80f6443 12801#endif
b80f6443
JA
12802char __setostype ();
12803/* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
3185942a 12806#if defined __stub___setostype || defined __stub_____setostype
b80f6443 12807choke me
b80f6443
JA
12808#endif
12809
0628567a
JA
12810int
12811main ()
12812{
3185942a 12813return __setostype ();
b80f6443
JA
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12819if { (ac_try="$ac_link"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825$as_echo "$ac_try_echo") >&5
12826 (eval "$ac_link") 2>conftest.er1
b80f6443 12827 ac_status=$?
0628567a
JA
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
3185942a
JA
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest$ac_exeext && {
12836 test "$cross_compiling" = yes ||
12837 $as_test_x conftest$ac_exeext
12838 }; then
b80f6443
JA
12839 ac_cv_func___setostype=yes
12840else
3185942a 12841 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
3185942a 12844 ac_cv_func___setostype=no
b80f6443 12845fi
3185942a
JA
12846
12847rm -rf conftest.dSYM
12848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12849 conftest$ac_exeext conftest.$ac_ext
b80f6443 12850fi
3185942a
JA
12851{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12852$as_echo "$ac_cv_func___setostype" >&6; }
12853if test "x$ac_cv_func___setostype" = x""yes; then
b80f6443
JA
12854 cat >>confdefs.h <<\_ACEOF
12855#define HAVE_SETOSTYPE 1
12856_ACEOF
12857
12858fi
12859
3185942a
JA
12860{ $as_echo "$as_me:$LINENO: checking for wait3" >&5
12861$as_echo_n "checking for wait3... " >&6; }
b80f6443 12862if test "${ac_cv_func_wait3+set}" = set; then
3185942a 12863 $as_echo_n "(cached) " >&6
b80f6443
JA
12864else
12865 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12873#define wait3 innocuous_wait3
12874
b80f6443 12875/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12876 which can conflict with char wait3 (); below.
12877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12878 <limits.h> exists even on freestanding compilers. */
12879
12880#ifdef __STDC__
12881# include <limits.h>
12882#else
12883# include <assert.h>
12884#endif
12885
12886#undef wait3
12887
3185942a
JA
12888/* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
b80f6443
JA
12891#ifdef __cplusplus
12892extern "C"
b80f6443 12893#endif
b80f6443
JA
12894char wait3 ();
12895/* The GNU C library defines this for functions which it implements
12896 to always fail with ENOSYS. Some functions are actually named
12897 something starting with __ and the normal name is an alias. */
3185942a 12898#if defined __stub_wait3 || defined __stub___wait3
b80f6443 12899choke me
b80f6443
JA
12900#endif
12901
0628567a
JA
12902int
12903main ()
12904{
3185942a 12905return wait3 ();
b80f6443
JA
12906 ;
12907 return 0;
12908}
12909_ACEOF
12910rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12911if { (ac_try="$ac_link"
12912case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12917$as_echo "$ac_try_echo") >&5
12918 (eval "$ac_link") 2>conftest.er1
b80f6443 12919 ac_status=$?
0628567a
JA
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
3185942a
JA
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext && {
12928 test "$cross_compiling" = yes ||
12929 $as_test_x conftest$ac_exeext
12930 }; then
b80f6443
JA
12931 ac_cv_func_wait3=yes
12932else
3185942a 12933 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
3185942a 12936 ac_cv_func_wait3=no
b80f6443 12937fi
3185942a
JA
12938
12939rm -rf conftest.dSYM
12940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12941 conftest$ac_exeext conftest.$ac_ext
b80f6443 12942fi
3185942a
JA
12943{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12944$as_echo "$ac_cv_func_wait3" >&6; }
12945if test "x$ac_cv_func_wait3" = x""yes; then
b80f6443
JA
12946 cat >>confdefs.h <<\_ACEOF
12947#define HAVE_WAIT3 1
12948_ACEOF
12949
12950fi
12951
3185942a
JA
12952{ $as_echo "$as_me:$LINENO: checking for isinf" >&5
12953$as_echo_n "checking for isinf... " >&6; }
b80f6443 12954if test "${ac_cv_func_isinf+set}" = set; then
3185942a 12955 $as_echo_n "(cached) " >&6
b80f6443
JA
12956else
12957 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12958/* confdefs.h. */
12959_ACEOF
12960cat confdefs.h >>conftest.$ac_ext
12961cat >>conftest.$ac_ext <<_ACEOF
12962/* end confdefs.h. */
12963/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
12964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12965#define isinf innocuous_isinf
12966
b80f6443 12967/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12968 which can conflict with char isinf (); below.
12969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12970 <limits.h> exists even on freestanding compilers. */
12971
12972#ifdef __STDC__
12973# include <limits.h>
12974#else
12975# include <assert.h>
12976#endif
12977
12978#undef isinf
12979
3185942a
JA
12980/* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
b80f6443
JA
12983#ifdef __cplusplus
12984extern "C"
b80f6443 12985#endif
b80f6443
JA
12986char isinf ();
12987/* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
3185942a 12990#if defined __stub_isinf || defined __stub___isinf
b80f6443 12991choke me
b80f6443
JA
12992#endif
12993
0628567a
JA
12994int
12995main ()
12996{
3185942a 12997return isinf ();
b80f6443
JA
12998 ;
12999 return 0;
13000}
13001_ACEOF
13002rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13003if { (ac_try="$ac_link"
13004case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007esac
13008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13009$as_echo "$ac_try_echo") >&5
13010 (eval "$ac_link") 2>conftest.er1
b80f6443 13011 ac_status=$?
0628567a
JA
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
3185942a
JA
13015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest$ac_exeext && {
13020 test "$cross_compiling" = yes ||
13021 $as_test_x conftest$ac_exeext
13022 }; then
b80f6443
JA
13023 ac_cv_func_isinf=yes
13024else
3185942a 13025 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13026sed 's/^/| /' conftest.$ac_ext >&5
13027
3185942a 13028 ac_cv_func_isinf=no
b80f6443 13029fi
3185942a
JA
13030
13031rm -rf conftest.dSYM
13032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13033 conftest$ac_exeext conftest.$ac_ext
b80f6443 13034fi
3185942a
JA
13035{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13036$as_echo "$ac_cv_func_isinf" >&6; }
13037if test "x$ac_cv_func_isinf" = x""yes; then
b80f6443
JA
13038 cat >>confdefs.h <<\_ACEOF
13039#define HAVE_ISINF_IN_LIBC 1
13040_ACEOF
13041
13042fi
13043
3185942a
JA
13044{ $as_echo "$as_me:$LINENO: checking for isnan" >&5
13045$as_echo_n "checking for isnan... " >&6; }
0628567a 13046if test "${ac_cv_func_isnan+set}" = set; then
3185942a 13047 $as_echo_n "(cached) " >&6
0628567a
JA
13048else
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055/* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13057#define isnan innocuous_isnan
13058
13059/* System header to define __stub macros and hopefully few prototypes,
13060 which can conflict with char isnan (); below.
13061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13062 <limits.h> exists even on freestanding compilers. */
13063
13064#ifdef __STDC__
13065# include <limits.h>
13066#else
13067# include <assert.h>
13068#endif
13069
13070#undef isnan
13071
3185942a
JA
13072/* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
0628567a
JA
13075#ifdef __cplusplus
13076extern "C"
0628567a 13077#endif
0628567a
JA
13078char isnan ();
13079/* The GNU C library defines this for functions which it implements
13080 to always fail with ENOSYS. Some functions are actually named
13081 something starting with __ and the normal name is an alias. */
3185942a 13082#if defined __stub_isnan || defined __stub___isnan
0628567a 13083choke me
0628567a
JA
13084#endif
13085
13086int
13087main ()
13088{
3185942a 13089return isnan ();
0628567a
JA
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13095if { (ac_try="$ac_link"
13096case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099esac
13100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101$as_echo "$ac_try_echo") >&5
13102 (eval "$ac_link") 2>conftest.er1
0628567a
JA
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
3185942a
JA
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext && {
13112 test "$cross_compiling" = yes ||
13113 $as_test_x conftest$ac_exeext
13114 }; then
0628567a
JA
13115 ac_cv_func_isnan=yes
13116else
3185942a 13117 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
3185942a 13120 ac_cv_func_isnan=no
0628567a 13121fi
3185942a
JA
13122
13123rm -rf conftest.dSYM
13124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
13125 conftest$ac_exeext conftest.$ac_ext
13126fi
3185942a
JA
13127{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13128$as_echo "$ac_cv_func_isnan" >&6; }
13129if test "x$ac_cv_func_isnan" = x""yes; then
0628567a
JA
13130 cat >>confdefs.h <<\_ACEOF
13131#define HAVE_ISNAN_IN_LIBC 1
13132_ACEOF
13133
13134fi
13135
b80f6443 13136
3185942a
JA
13137{ $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13138$as_echo_n "checking for mkfifo... " >&6; }
b80f6443 13139if test "${ac_cv_func_mkfifo+set}" = set; then
3185942a 13140 $as_echo_n "(cached) " >&6
b80f6443
JA
13141else
13142 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
13148/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13150#define mkfifo innocuous_mkfifo
13151
b80f6443 13152/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13153 which can conflict with char mkfifo (); below.
13154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13155 <limits.h> exists even on freestanding compilers. */
13156
13157#ifdef __STDC__
13158# include <limits.h>
13159#else
13160# include <assert.h>
13161#endif
13162
13163#undef mkfifo
13164
3185942a
JA
13165/* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
b80f6443
JA
13168#ifdef __cplusplus
13169extern "C"
b80f6443 13170#endif
b80f6443
JA
13171char mkfifo ();
13172/* The GNU C library defines this for functions which it implements
13173 to always fail with ENOSYS. Some functions are actually named
13174 something starting with __ and the normal name is an alias. */
3185942a 13175#if defined __stub_mkfifo || defined __stub___mkfifo
b80f6443 13176choke me
b80f6443
JA
13177#endif
13178
0628567a
JA
13179int
13180main ()
13181{
3185942a 13182return mkfifo ();
b80f6443
JA
13183 ;
13184 return 0;
13185}
13186_ACEOF
13187rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13188if { (ac_try="$ac_link"
13189case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192esac
13193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194$as_echo "$ac_try_echo") >&5
13195 (eval "$ac_link") 2>conftest.er1
b80f6443 13196 ac_status=$?
0628567a
JA
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
3185942a
JA
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest$ac_exeext && {
13205 test "$cross_compiling" = yes ||
13206 $as_test_x conftest$ac_exeext
13207 }; then
b80f6443
JA
13208 ac_cv_func_mkfifo=yes
13209else
3185942a 13210 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
3185942a 13213 ac_cv_func_mkfifo=no
b80f6443 13214fi
3185942a
JA
13215
13216rm -rf conftest.dSYM
13217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13218 conftest$ac_exeext conftest.$ac_ext
b80f6443 13219fi
3185942a
JA
13220{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13221$as_echo "$ac_cv_func_mkfifo" >&6; }
13222if test "x$ac_cv_func_mkfifo" = x""yes; then
b80f6443
JA
13223 cat >>confdefs.h <<\_ACEOF
13224#define HAVE_MKFIFO 1
13225_ACEOF
13226
13227else
13228 cat >>confdefs.h <<\_ACEOF
13229#define MKFIFO_MISSING 1
13230_ACEOF
13231
13232fi
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
95732b49
JA
13252
13253
13254
3185942a 13255
95732b49 13256
0628567a
JA
13257
13258for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13259 getpagesize getpeername getrlimit getrusage gettimeofday \
13260 kill killpg lstat readlink sbrk select setdtablesize \
3185942a 13261 setitimer tcgetpgrp uname ulimit waitpid
b80f6443 13262do
3185942a
JA
13263as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13264{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13265$as_echo_n "checking for $ac_func... " >&6; }
13266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13267 $as_echo_n "(cached) " >&6
b80f6443
JA
13268else
13269 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13277#define $ac_func innocuous_$ac_func
13278
b80f6443 13279/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13280 which can conflict with char $ac_func (); below.
13281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13282 <limits.h> exists even on freestanding compilers. */
13283
13284#ifdef __STDC__
13285# include <limits.h>
13286#else
13287# include <assert.h>
13288#endif
13289
13290#undef $ac_func
13291
3185942a
JA
13292/* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
95732b49
JA
13295#ifdef __cplusplus
13296extern "C"
13297#endif
95732b49 13298char $ac_func ();
95732b49
JA
13299/* The GNU C library defines this for functions which it implements
13300 to always fail with ENOSYS. Some functions are actually named
13301 something starting with __ and the normal name is an alias. */
3185942a 13302#if defined __stub_$ac_func || defined __stub___$ac_func
95732b49 13303choke me
b80f6443 13304#endif
95732b49 13305
0628567a
JA
13306int
13307main ()
13308{
3185942a 13309return $ac_func ();
95732b49
JA
13310 ;
13311 return 0;
13312}
13313_ACEOF
13314rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13315if { (ac_try="$ac_link"
13316case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
13320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13321$as_echo "$ac_try_echo") >&5
13322 (eval "$ac_link") 2>conftest.er1
95732b49 13323 ac_status=$?
0628567a
JA
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
3185942a
JA
13327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest$ac_exeext && {
13332 test "$cross_compiling" = yes ||
13333 $as_test_x conftest$ac_exeext
13334 }; then
95732b49
JA
13335 eval "$as_ac_var=yes"
13336else
3185942a 13337 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
3185942a 13340 eval "$as_ac_var=no"
95732b49 13341fi
3185942a
JA
13342
13343rm -rf conftest.dSYM
13344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13345 conftest$ac_exeext conftest.$ac_ext
95732b49 13346fi
3185942a
JA
13347ac_res=`eval 'as_val=${'$as_ac_var'}
13348 $as_echo "$as_val"'`
13349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13350$as_echo "$ac_res" >&6; }
13351as_val=`eval 'as_val=${'$as_ac_var'}
13352 $as_echo "$as_val"'`
13353 if test "x$as_val" = x""yes; then
95732b49 13354 cat >>confdefs.h <<_ACEOF
3185942a 13355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
95732b49
JA
13356_ACEOF
13357
13358fi
13359done
13360
13361
13362for ac_func in rename
13363do
3185942a
JA
13364as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13365{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13366$as_echo_n "checking for $ac_func... " >&6; }
13367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13368 $as_echo_n "(cached) " >&6
95732b49
JA
13369else
13370 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
13376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13378#define $ac_func innocuous_$ac_func
13379
95732b49 13380/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13381 which can conflict with char $ac_func (); below.
13382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13383 <limits.h> exists even on freestanding compilers. */
13384
13385#ifdef __STDC__
13386# include <limits.h>
13387#else
13388# include <assert.h>
13389#endif
13390
13391#undef $ac_func
13392
3185942a
JA
13393/* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
b80f6443
JA
13396#ifdef __cplusplus
13397extern "C"
b80f6443 13398#endif
b80f6443
JA
13399char $ac_func ();
13400/* The GNU C library defines this for functions which it implements
13401 to always fail with ENOSYS. Some functions are actually named
13402 something starting with __ and the normal name is an alias. */
3185942a 13403#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13404choke me
b80f6443 13405#endif
95732b49 13406
0628567a
JA
13407int
13408main ()
13409{
3185942a 13410return $ac_func ();
95732b49
JA
13411 ;
13412 return 0;
b80f6443 13413}
95732b49
JA
13414_ACEOF
13415rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13416if { (ac_try="$ac_link"
13417case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13422$as_echo "$ac_try_echo") >&5
13423 (eval "$ac_link") 2>conftest.er1
95732b49 13424 ac_status=$?
0628567a
JA
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
3185942a
JA
13428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest$ac_exeext && {
13433 test "$cross_compiling" = yes ||
13434 $as_test_x conftest$ac_exeext
13435 }; then
95732b49
JA
13436 eval "$as_ac_var=yes"
13437else
3185942a 13438 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
3185942a 13441 eval "$as_ac_var=no"
95732b49 13442fi
3185942a
JA
13443
13444rm -rf conftest.dSYM
13445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13446 conftest$ac_exeext conftest.$ac_ext
95732b49 13447fi
3185942a
JA
13448ac_res=`eval 'as_val=${'$as_ac_var'}
13449 $as_echo "$as_val"'`
13450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13451$as_echo "$ac_res" >&6; }
13452as_val=`eval 'as_val=${'$as_ac_var'}
13453 $as_echo "$as_val"'`
13454 if test "x$as_val" = x""yes; then
95732b49 13455 cat >>confdefs.h <<_ACEOF
3185942a 13456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
95732b49
JA
13457_ACEOF
13458
13459else
3185942a 13460 case " $LIBOBJS " in
0628567a 13461 *" $ac_func.$ac_objext "* ) ;;
3185942a
JA
13462 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13463 ;;
0628567a
JA
13464esac
13465
95732b49
JA
13466fi
13467done
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
0001803f 13496
95732b49
JA
13497
13498
495aee44
CR
13499
13500for ac_func in bcopy bzero confstr faccessat fnmatch \
95732b49
JA
13501 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13502 memmove pathconf putenv raise regcomp regexec \
13503 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
0001803f 13504 sysconf syslog tcgetattr times ttyname tzset unsetenv
95732b49 13505do
3185942a
JA
13506as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13507{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13508$as_echo_n "checking for $ac_func... " >&6; }
13509if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13510 $as_echo_n "(cached) " >&6
95732b49
JA
13511else
13512 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13520#define $ac_func innocuous_$ac_func
13521
95732b49 13522/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13523 which can conflict with char $ac_func (); below.
13524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13525 <limits.h> exists even on freestanding compilers. */
13526
13527#ifdef __STDC__
13528# include <limits.h>
13529#else
13530# include <assert.h>
13531#endif
13532
13533#undef $ac_func
13534
3185942a
JA
13535/* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
95732b49
JA
13538#ifdef __cplusplus
13539extern "C"
b80f6443 13540#endif
95732b49 13541char $ac_func ();
95732b49
JA
13542/* The GNU C library defines this for functions which it implements
13543 to always fail with ENOSYS. Some functions are actually named
13544 something starting with __ and the normal name is an alias. */
3185942a 13545#if defined __stub_$ac_func || defined __stub___$ac_func
95732b49 13546choke me
95732b49
JA
13547#endif
13548
0628567a
JA
13549int
13550main ()
13551{
3185942a 13552return $ac_func ();
b80f6443
JA
13553 ;
13554 return 0;
13555}
13556_ACEOF
13557rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13558if { (ac_try="$ac_link"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13564$as_echo "$ac_try_echo") >&5
13565 (eval "$ac_link") 2>conftest.er1
b80f6443 13566 ac_status=$?
0628567a
JA
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
3185942a
JA
13570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest$ac_exeext && {
13575 test "$cross_compiling" = yes ||
13576 $as_test_x conftest$ac_exeext
13577 }; then
b80f6443
JA
13578 eval "$as_ac_var=yes"
13579else
3185942a 13580 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
3185942a 13583 eval "$as_ac_var=no"
b80f6443 13584fi
3185942a
JA
13585
13586rm -rf conftest.dSYM
13587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13588 conftest$ac_exeext conftest.$ac_ext
b80f6443 13589fi
3185942a
JA
13590ac_res=`eval 'as_val=${'$as_ac_var'}
13591 $as_echo "$as_val"'`
13592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13593$as_echo "$ac_res" >&6; }
13594as_val=`eval 'as_val=${'$as_ac_var'}
13595 $as_echo "$as_val"'`
13596 if test "x$as_val" = x""yes; then
b80f6443 13597 cat >>confdefs.h <<_ACEOF
3185942a 13598#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13599_ACEOF
13600
13601fi
13602done
13603
13604
95732b49
JA
13605
13606
0001803f 13607for ac_func in vasprintf asprintf
b80f6443 13608do
3185942a
JA
13609as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13610{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13611$as_echo_n "checking for $ac_func... " >&6; }
13612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13613 $as_echo_n "(cached) " >&6
b80f6443
JA
13614else
13615 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13623#define $ac_func innocuous_$ac_func
13624
b80f6443 13625/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13626 which can conflict with char $ac_func (); below.
13627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13628 <limits.h> exists even on freestanding compilers. */
13629
13630#ifdef __STDC__
13631# include <limits.h>
13632#else
13633# include <assert.h>
13634#endif
13635
13636#undef $ac_func
13637
3185942a
JA
13638/* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
b80f6443
JA
13641#ifdef __cplusplus
13642extern "C"
b80f6443 13643#endif
b80f6443
JA
13644char $ac_func ();
13645/* The GNU C library defines this for functions which it implements
13646 to always fail with ENOSYS. Some functions are actually named
13647 something starting with __ and the normal name is an alias. */
3185942a 13648#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13649choke me
b80f6443
JA
13650#endif
13651
0628567a
JA
13652int
13653main ()
13654{
3185942a 13655return $ac_func ();
b80f6443
JA
13656 ;
13657 return 0;
13658}
13659_ACEOF
13660rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13661if { (ac_try="$ac_link"
13662case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13667$as_echo "$ac_try_echo") >&5
13668 (eval "$ac_link") 2>conftest.er1
b80f6443 13669 ac_status=$?
0628567a
JA
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
3185942a
JA
13673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest$ac_exeext && {
13678 test "$cross_compiling" = yes ||
13679 $as_test_x conftest$ac_exeext
13680 }; then
b80f6443
JA
13681 eval "$as_ac_var=yes"
13682else
3185942a 13683 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
3185942a 13686 eval "$as_ac_var=no"
b80f6443 13687fi
3185942a
JA
13688
13689rm -rf conftest.dSYM
13690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13691 conftest$ac_exeext conftest.$ac_ext
b80f6443 13692fi
3185942a
JA
13693ac_res=`eval 'as_val=${'$as_ac_var'}
13694 $as_echo "$as_val"'`
13695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13696$as_echo "$ac_res" >&6; }
13697as_val=`eval 'as_val=${'$as_ac_var'}
13698 $as_echo "$as_val"'`
13699 if test "x$as_val" = x""yes; then
b80f6443 13700 cat >>confdefs.h <<_ACEOF
3185942a 13701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13702_ACEOF
13703
b80f6443
JA
13704fi
13705done
13706
13707
13708
13709
13710
13711
13712
95732b49 13713for ac_func in isascii isblank isgraph isprint isspace isxdigit
b80f6443 13714do
3185942a
JA
13715as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13716{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13717$as_echo_n "checking for $ac_func... " >&6; }
13718if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13719 $as_echo_n "(cached) " >&6
b80f6443
JA
13720else
13721 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
13727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13729#define $ac_func innocuous_$ac_func
13730
b80f6443 13731/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13732 which can conflict with char $ac_func (); below.
13733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13734 <limits.h> exists even on freestanding compilers. */
13735
13736#ifdef __STDC__
13737# include <limits.h>
13738#else
13739# include <assert.h>
13740#endif
13741
13742#undef $ac_func
13743
3185942a
JA
13744/* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
b80f6443
JA
13747#ifdef __cplusplus
13748extern "C"
b80f6443 13749#endif
b80f6443
JA
13750char $ac_func ();
13751/* The GNU C library defines this for functions which it implements
13752 to always fail with ENOSYS. Some functions are actually named
13753 something starting with __ and the normal name is an alias. */
3185942a 13754#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13755choke me
b80f6443
JA
13756#endif
13757
0628567a
JA
13758int
13759main ()
13760{
3185942a 13761return $ac_func ();
b80f6443
JA
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13767if { (ac_try="$ac_link"
13768case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13773$as_echo "$ac_try_echo") >&5
13774 (eval "$ac_link") 2>conftest.er1
b80f6443 13775 ac_status=$?
0628567a
JA
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
3185942a
JA
13779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest$ac_exeext && {
13784 test "$cross_compiling" = yes ||
13785 $as_test_x conftest$ac_exeext
13786 }; then
b80f6443
JA
13787 eval "$as_ac_var=yes"
13788else
3185942a 13789 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
3185942a 13792 eval "$as_ac_var=no"
b80f6443 13793fi
3185942a
JA
13794
13795rm -rf conftest.dSYM
13796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13797 conftest$ac_exeext conftest.$ac_ext
b80f6443 13798fi
3185942a
JA
13799ac_res=`eval 'as_val=${'$as_ac_var'}
13800 $as_echo "$as_val"'`
13801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13802$as_echo "$ac_res" >&6; }
13803as_val=`eval 'as_val=${'$as_ac_var'}
13804 $as_echo "$as_val"'`
13805 if test "x$as_val" = x""yes; then
b80f6443 13806 cat >>confdefs.h <<_ACEOF
3185942a 13807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13808_ACEOF
13809
13810fi
13811done
13812
13813
13814
13815
95732b49 13816for ac_func in getpwent getpwnam getpwuid
b80f6443 13817do
3185942a
JA
13818as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13820$as_echo_n "checking for $ac_func... " >&6; }
13821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13822 $as_echo_n "(cached) " >&6
b80f6443
JA
13823else
13824 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
13830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832#define $ac_func innocuous_$ac_func
13833
b80f6443 13834/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13838
13839#ifdef __STDC__
13840# include <limits.h>
13841#else
13842# include <assert.h>
13843#endif
13844
13845#undef $ac_func
13846
3185942a
JA
13847/* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
b80f6443
JA
13850#ifdef __cplusplus
13851extern "C"
b80f6443 13852#endif
b80f6443
JA
13853char $ac_func ();
13854/* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
3185942a 13857#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13858choke me
b80f6443
JA
13859#endif
13860
0628567a
JA
13861int
13862main ()
13863{
3185942a 13864return $ac_func ();
b80f6443
JA
13865 ;
13866 return 0;
13867}
13868_ACEOF
13869rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13870if { (ac_try="$ac_link"
13871case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874esac
13875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13876$as_echo "$ac_try_echo") >&5
13877 (eval "$ac_link") 2>conftest.er1
b80f6443 13878 ac_status=$?
0628567a
JA
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
3185942a
JA
13882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext && {
13887 test "$cross_compiling" = yes ||
13888 $as_test_x conftest$ac_exeext
13889 }; then
b80f6443
JA
13890 eval "$as_ac_var=yes"
13891else
3185942a 13892 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13893sed 's/^/| /' conftest.$ac_ext >&5
13894
3185942a 13895 eval "$as_ac_var=no"
b80f6443 13896fi
3185942a
JA
13897
13898rm -rf conftest.dSYM
13899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13900 conftest$ac_exeext conftest.$ac_ext
b80f6443 13901fi
3185942a
JA
13902ac_res=`eval 'as_val=${'$as_ac_var'}
13903 $as_echo "$as_val"'`
13904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13905$as_echo "$ac_res" >&6; }
13906as_val=`eval 'as_val=${'$as_ac_var'}
13907 $as_echo "$as_val"'`
13908 if test "x$as_val" = x""yes; then
b80f6443 13909 cat >>confdefs.h <<_ACEOF
3185942a 13910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13911_ACEOF
13912
13913fi
13914done
13915
13916
13917
0001803f
CR
13918for ac_func in getcwd memset
13919do
13920as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13921{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13922$as_echo_n "checking for $ac_func... " >&6; }
13923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13924 $as_echo_n "(cached) " >&6
13925else
13926 cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13934#define $ac_func innocuous_$ac_func
13935
13936/* System header to define __stub macros and hopefully few prototypes,
13937 which can conflict with char $ac_func (); below.
13938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13939 <limits.h> exists even on freestanding compilers. */
13940
13941#ifdef __STDC__
13942# include <limits.h>
13943#else
13944# include <assert.h>
13945#endif
13946
13947#undef $ac_func
13948
13949/* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952#ifdef __cplusplus
13953extern "C"
13954#endif
13955char $ac_func ();
13956/* The GNU C library defines this for functions which it implements
13957 to always fail with ENOSYS. Some functions are actually named
13958 something starting with __ and the normal name is an alias. */
13959#if defined __stub_$ac_func || defined __stub___$ac_func
13960choke me
13961#endif
13962
13963int
13964main ()
13965{
13966return $ac_func ();
13967 ;
13968 return 0;
13969}
13970_ACEOF
13971rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (ac_try="$ac_link"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13978$as_echo "$ac_try_echo") >&5
13979 (eval "$ac_link") 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && {
13986 test -z "$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 } && test -s conftest$ac_exeext && {
13989 test "$cross_compiling" = yes ||
13990 $as_test_x conftest$ac_exeext
13991 }; then
13992 eval "$as_ac_var=yes"
13993else
13994 $as_echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
13997 eval "$as_ac_var=no"
13998fi
13999
14000rm -rf conftest.dSYM
14001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14002 conftest$ac_exeext conftest.$ac_ext
14003fi
14004ac_res=`eval 'as_val=${'$as_ac_var'}
14005 $as_echo "$as_val"'`
14006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14007$as_echo "$ac_res" >&6; }
14008as_val=`eval 'as_val=${'$as_ac_var'}
14009 $as_echo "$as_val"'`
14010 if test "x$as_val" = x""yes; then
14011 cat >>confdefs.h <<_ACEOF
14012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14013_ACEOF
14014
14015else
14016 case " $LIBOBJS " in
14017 *" $ac_func.$ac_objext "* ) ;;
14018 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14019 ;;
14020esac
14021
14022fi
14023done
14024
14025
14026
b80f6443
JA
14027
14028
14029
14030
14031
95732b49 14032
0001803f 14033for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
b80f6443 14034do
3185942a
JA
14035as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14036{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14037$as_echo_n "checking for $ac_func... " >&6; }
14038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14039 $as_echo_n "(cached) " >&6
b80f6443
JA
14040else
14041 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14049#define $ac_func innocuous_$ac_func
14050
b80f6443 14051/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
14052 which can conflict with char $ac_func (); below.
14053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054 <limits.h> exists even on freestanding compilers. */
14055
14056#ifdef __STDC__
14057# include <limits.h>
14058#else
14059# include <assert.h>
14060#endif
14061
14062#undef $ac_func
14063
3185942a
JA
14064/* Override any GCC internal prototype to avoid an error.
14065 Use char because int might match the return type of a GCC
14066 builtin and then its argument prototype would still apply. */
b80f6443
JA
14067#ifdef __cplusplus
14068extern "C"
b80f6443 14069#endif
b80f6443
JA
14070char $ac_func ();
14071/* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
3185942a 14074#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 14075choke me
b80f6443
JA
14076#endif
14077
0628567a
JA
14078int
14079main ()
14080{
3185942a 14081return $ac_func ();
b80f6443
JA
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14087if { (ac_try="$ac_link"
14088case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091esac
14092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093$as_echo "$ac_try_echo") >&5
14094 (eval "$ac_link") 2>conftest.er1
b80f6443 14095 ac_status=$?
0628567a
JA
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
3185942a
JA
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest$ac_exeext && {
14104 test "$cross_compiling" = yes ||
14105 $as_test_x conftest$ac_exeext
14106 }; then
b80f6443
JA
14107 eval "$as_ac_var=yes"
14108else
3185942a 14109 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14110sed 's/^/| /' conftest.$ac_ext >&5
14111
3185942a 14112 eval "$as_ac_var=no"
b80f6443 14113fi
3185942a
JA
14114
14115rm -rf conftest.dSYM
14116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 14117 conftest$ac_exeext conftest.$ac_ext
b80f6443 14118fi
3185942a
JA
14119ac_res=`eval 'as_val=${'$as_ac_var'}
14120 $as_echo "$as_val"'`
14121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14122$as_echo "$ac_res" >&6; }
14123as_val=`eval 'as_val=${'$as_ac_var'}
14124 $as_echo "$as_val"'`
14125 if test "x$as_val" = x""yes; then
b80f6443 14126 cat >>confdefs.h <<_ACEOF
3185942a 14127#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
14128_ACEOF
14129
14130else
3185942a 14131 case " $LIBOBJS " in
0628567a 14132 *" $ac_func.$ac_objext "* ) ;;
3185942a
JA
14133 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14134 ;;
0628567a
JA
14135esac
14136
b80f6443
JA
14137fi
14138done
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14149do
3185942a
JA
14150as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14151{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14152$as_echo_n "checking for $ac_func... " >&6; }
14153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14154 $as_echo_n "(cached) " >&6
b80f6443
JA
14155else
14156 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14164#define $ac_func innocuous_$ac_func
14165
b80f6443 14166/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
14167 which can conflict with char $ac_func (); below.
14168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169 <limits.h> exists even on freestanding compilers. */
14170
14171#ifdef __STDC__
14172# include <limits.h>
14173#else
14174# include <assert.h>
14175#endif
14176
14177#undef $ac_func
14178
3185942a
JA
14179/* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
b80f6443
JA
14182#ifdef __cplusplus
14183extern "C"
b80f6443 14184#endif
b80f6443
JA
14185char $ac_func ();
14186/* The GNU C library defines this for functions which it implements
14187 to always fail with ENOSYS. Some functions are actually named
14188 something starting with __ and the normal name is an alias. */
3185942a 14189#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 14190choke me
3185942a
JA
14191#endif
14192
14193int
14194main ()
14195{
14196return $ac_func ();
14197 ;
14198 return 0;
14199}
14200_ACEOF
14201rm -f conftest.$ac_objext conftest$ac_exeext
14202if { (ac_try="$ac_link"
14203case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206esac
14207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14208$as_echo "$ac_try_echo") >&5
14209 (eval "$ac_link") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest$ac_exeext && {
14219 test "$cross_compiling" = yes ||
14220 $as_test_x conftest$ac_exeext
14221 }; then
14222 eval "$as_ac_var=yes"
14223else
14224 $as_echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 eval "$as_ac_var=no"
14228fi
14229
14230rm -rf conftest.dSYM
14231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233fi
14234ac_res=`eval 'as_val=${'$as_ac_var'}
14235 $as_echo "$as_val"'`
14236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14237$as_echo "$ac_res" >&6; }
14238as_val=`eval 'as_val=${'$as_ac_var'}
14239 $as_echo "$as_val"'`
14240 if test "x$as_val" = x""yes; then
14241 cat >>confdefs.h <<_ACEOF
14242#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14243_ACEOF
14244
14245else
14246 case " $LIBOBJS " in
14247 *" $ac_func.$ac_objext "* ) ;;
14248 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14249 ;;
14250esac
14251
14252fi
14253done
14254
14255
14256
495aee44
CR
14257for ac_func in dprintf
14258do
14259as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14261$as_echo_n "checking for $ac_func... " >&6; }
14262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14263 $as_echo_n "(cached) " >&6
14264else
14265 cat >conftest.$ac_ext <<_ACEOF
14266/* confdefs.h. */
14267_ACEOF
14268cat confdefs.h >>conftest.$ac_ext
14269cat >>conftest.$ac_ext <<_ACEOF
14270/* end confdefs.h. */
14271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14273#define $ac_func innocuous_$ac_func
14274
14275/* System header to define __stub macros and hopefully few prototypes,
14276 which can conflict with char $ac_func (); below.
14277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14278 <limits.h> exists even on freestanding compilers. */
14279
14280#ifdef __STDC__
14281# include <limits.h>
14282#else
14283# include <assert.h>
14284#endif
14285
14286#undef $ac_func
14287
14288/* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14291#ifdef __cplusplus
14292extern "C"
14293#endif
14294char $ac_func ();
14295/* The GNU C library defines this for functions which it implements
14296 to always fail with ENOSYS. Some functions are actually named
14297 something starting with __ and the normal name is an alias. */
14298#if defined __stub_$ac_func || defined __stub___$ac_func
14299choke me
14300#endif
14301
14302int
14303main ()
14304{
14305return $ac_func ();
14306 ;
14307 return 0;
14308}
14309_ACEOF
14310rm -f conftest.$ac_objext conftest$ac_exeext
14311if { (ac_try="$ac_link"
14312case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14315esac
14316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14317$as_echo "$ac_try_echo") >&5
14318 (eval "$ac_link") 2>conftest.er1
14319 ac_status=$?
14320 grep -v '^ *+' conftest.er1 >conftest.err
14321 rm -f conftest.er1
14322 cat conftest.err >&5
14323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && {
14325 test -z "$ac_c_werror_flag" ||
14326 test ! -s conftest.err
14327 } && test -s conftest$ac_exeext && {
14328 test "$cross_compiling" = yes ||
14329 $as_test_x conftest$ac_exeext
14330 }; then
14331 eval "$as_ac_var=yes"
14332else
14333 $as_echo "$as_me: failed program was:" >&5
14334sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 eval "$as_ac_var=no"
14337fi
14338
14339rm -rf conftest.dSYM
14340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14341 conftest$ac_exeext conftest.$ac_ext
14342fi
14343ac_res=`eval 'as_val=${'$as_ac_var'}
14344 $as_echo "$as_val"'`
14345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14346$as_echo "$ac_res" >&6; }
14347as_val=`eval 'as_val=${'$as_ac_var'}
14348 $as_echo "$as_val"'`
14349 if test "x$as_val" = x""yes; then
14350 cat >>confdefs.h <<_ACEOF
14351#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14352_ACEOF
14353
14354else
14355 case " $LIBOBJS " in
14356 *" $ac_func.$ac_objext "* ) ;;
14357 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14358 ;;
14359esac
14360
14361fi
14362done
14363
14364
14365
14366for ac_func in strchrnul
3185942a
JA
14367do
14368as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14370$as_echo_n "checking for $ac_func... " >&6; }
14371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14372 $as_echo_n "(cached) " >&6
14373else
14374 cat >conftest.$ac_ext <<_ACEOF
14375/* confdefs.h. */
14376_ACEOF
14377cat confdefs.h >>conftest.$ac_ext
14378cat >>conftest.$ac_ext <<_ACEOF
14379/* end confdefs.h. */
14380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14382#define $ac_func innocuous_$ac_func
14383
14384/* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14388
14389#ifdef __STDC__
14390# include <limits.h>
b80f6443 14391#else
3185942a 14392# include <assert.h>
0628567a 14393#endif
3185942a
JA
14394
14395#undef $ac_func
14396
14397/* Override any GCC internal prototype to avoid an error.
14398 Use char because int might match the return type of a GCC
14399 builtin and then its argument prototype would still apply. */
0628567a 14400#ifdef __cplusplus
3185942a
JA
14401extern "C"
14402#endif
14403char $ac_func ();
14404/* The GNU C library defines this for functions which it implements
14405 to always fail with ENOSYS. Some functions are actually named
14406 something starting with __ and the normal name is an alias. */
14407#if defined __stub_$ac_func || defined __stub___$ac_func
14408choke me
b80f6443
JA
14409#endif
14410
0628567a
JA
14411int
14412main ()
14413{
3185942a 14414return $ac_func ();
b80f6443
JA
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14420if { (ac_try="$ac_link"
14421case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426$as_echo "$ac_try_echo") >&5
14427 (eval "$ac_link") 2>conftest.er1
b80f6443 14428 ac_status=$?
0628567a
JA
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
3185942a
JA
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_c_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest$ac_exeext && {
14437 test "$cross_compiling" = yes ||
14438 $as_test_x conftest$ac_exeext
14439 }; then
b80f6443
JA
14440 eval "$as_ac_var=yes"
14441else
3185942a 14442 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
3185942a 14445 eval "$as_ac_var=no"
b80f6443 14446fi
3185942a
JA
14447
14448rm -rf conftest.dSYM
14449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 14450 conftest$ac_exeext conftest.$ac_ext
b80f6443 14451fi
3185942a
JA
14452ac_res=`eval 'as_val=${'$as_ac_var'}
14453 $as_echo "$as_val"'`
14454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14455$as_echo "$ac_res" >&6; }
14456as_val=`eval 'as_val=${'$as_ac_var'}
14457 $as_echo "$as_val"'`
14458 if test "x$as_val" = x""yes; then
b80f6443 14459 cat >>confdefs.h <<_ACEOF
3185942a 14460#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
14461_ACEOF
14462
14463else
3185942a 14464 case " $LIBOBJS " in
0628567a 14465 *" $ac_func.$ac_objext "* ) ;;
3185942a
JA
14466 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14467 ;;
0628567a
JA
14468esac
14469
b80f6443
JA
14470fi
14471done
14472
14473
14474
3185942a
JA
14475{ $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14476$as_echo_n "checking whether confstr is declared... " >&6; }
b80f6443 14477if test "${ac_cv_have_decl_confstr+set}" = set; then
3185942a 14478 $as_echo_n "(cached) " >&6
b80f6443
JA
14479else
14480 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
b80f6443
JA
14486$ac_includes_default
14487int
14488main ()
14489{
14490#ifndef confstr
3185942a 14491 (void) confstr;
b80f6443
JA
14492#endif
14493
14494 ;
14495 return 0;
14496}
14497_ACEOF
14498rm -f conftest.$ac_objext
3185942a
JA
14499if { (ac_try="$ac_compile"
14500case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
14504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505$as_echo "$ac_try_echo") >&5
14506 (eval "$ac_compile") 2>conftest.er1
b80f6443 14507 ac_status=$?
0628567a
JA
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
3185942a
JA
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest.$ac_objext; then
b80f6443
JA
14516 ac_cv_have_decl_confstr=yes
14517else
3185942a 14518 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14519sed 's/^/| /' conftest.$ac_ext >&5
14520
3185942a 14521 ac_cv_have_decl_confstr=no
b80f6443 14522fi
3185942a
JA
14523
14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14525fi
3185942a
JA
14526{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14527$as_echo "$ac_cv_have_decl_confstr" >&6; }
14528if test "x$ac_cv_have_decl_confstr" = x""yes; then
b80f6443
JA
14529
14530cat >>confdefs.h <<_ACEOF
14531#define HAVE_DECL_CONFSTR 1
14532_ACEOF
14533
14534
14535else
14536 cat >>confdefs.h <<_ACEOF
14537#define HAVE_DECL_CONFSTR 0
14538_ACEOF
14539
14540
14541fi
14542
14543
3185942a
JA
14544{ $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14545$as_echo_n "checking whether printf is declared... " >&6; }
b80f6443 14546if test "${ac_cv_have_decl_printf+set}" = set; then
3185942a 14547 $as_echo_n "(cached) " >&6
b80f6443
JA
14548else
14549 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
b80f6443
JA
14555$ac_includes_default
14556int
14557main ()
14558{
14559#ifndef printf
3185942a 14560 (void) printf;
b80f6443
JA
14561#endif
14562
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext
3185942a
JA
14568if { (ac_try="$ac_compile"
14569case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572esac
14573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14574$as_echo "$ac_try_echo") >&5
14575 (eval "$ac_compile") 2>conftest.er1
b80f6443 14576 ac_status=$?
0628567a
JA
14577 grep -v '^ *+' conftest.er1 >conftest.err
14578 rm -f conftest.er1
14579 cat conftest.err >&5
3185942a
JA
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest.$ac_objext; then
b80f6443
JA
14585 ac_cv_have_decl_printf=yes
14586else
3185942a 14587 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14588sed 's/^/| /' conftest.$ac_ext >&5
14589
3185942a 14590 ac_cv_have_decl_printf=no
b80f6443 14591fi
3185942a
JA
14592
14593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14594fi
3185942a
JA
14595{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14596$as_echo "$ac_cv_have_decl_printf" >&6; }
14597if test "x$ac_cv_have_decl_printf" = x""yes; then
b80f6443
JA
14598
14599cat >>confdefs.h <<_ACEOF
14600#define HAVE_DECL_PRINTF 1
14601_ACEOF
14602
14603
14604else
14605 cat >>confdefs.h <<_ACEOF
14606#define HAVE_DECL_PRINTF 0
14607_ACEOF
14608
14609
14610fi
14611
14612
3185942a
JA
14613{ $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14614$as_echo_n "checking whether sbrk is declared... " >&6; }
b80f6443 14615if test "${ac_cv_have_decl_sbrk+set}" = set; then
3185942a 14616 $as_echo_n "(cached) " >&6
b80f6443
JA
14617else
14618 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14619/* confdefs.h. */
14620_ACEOF
14621cat confdefs.h >>conftest.$ac_ext
14622cat >>conftest.$ac_ext <<_ACEOF
14623/* end confdefs.h. */
b80f6443
JA
14624$ac_includes_default
14625int
14626main ()
14627{
14628#ifndef sbrk
3185942a 14629 (void) sbrk;
b80f6443
JA
14630#endif
14631
14632 ;
14633 return 0;
14634}
14635_ACEOF
14636rm -f conftest.$ac_objext
3185942a
JA
14637if { (ac_try="$ac_compile"
14638case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14643$as_echo "$ac_try_echo") >&5
14644 (eval "$ac_compile") 2>conftest.er1
b80f6443 14645 ac_status=$?
0628567a
JA
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
3185942a
JA
14649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } && {
14651 test -z "$ac_c_werror_flag" ||
14652 test ! -s conftest.err
14653 } && test -s conftest.$ac_objext; then
b80f6443
JA
14654 ac_cv_have_decl_sbrk=yes
14655else
3185942a 14656 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
3185942a 14659 ac_cv_have_decl_sbrk=no
b80f6443 14660fi
3185942a
JA
14661
14662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14663fi
3185942a
JA
14664{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14665$as_echo "$ac_cv_have_decl_sbrk" >&6; }
14666if test "x$ac_cv_have_decl_sbrk" = x""yes; then
b80f6443
JA
14667
14668cat >>confdefs.h <<_ACEOF
14669#define HAVE_DECL_SBRK 1
14670_ACEOF
14671
14672
14673else
14674 cat >>confdefs.h <<_ACEOF
14675#define HAVE_DECL_SBRK 0
14676_ACEOF
14677
14678
14679fi
14680
14681
3185942a
JA
14682{ $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14683$as_echo_n "checking whether setregid is declared... " >&6; }
0628567a 14684if test "${ac_cv_have_decl_setregid+set}" = set; then
3185942a 14685 $as_echo_n "(cached) " >&6
b80f6443
JA
14686else
14687 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14688/* confdefs.h. */
14689_ACEOF
14690cat confdefs.h >>conftest.$ac_ext
14691cat >>conftest.$ac_ext <<_ACEOF
14692/* end confdefs.h. */
b80f6443
JA
14693$ac_includes_default
14694int
14695main ()
14696{
0628567a 14697#ifndef setregid
3185942a 14698 (void) setregid;
b80f6443
JA
14699#endif
14700
14701 ;
14702 return 0;
14703}
14704_ACEOF
14705rm -f conftest.$ac_objext
3185942a
JA
14706if { (ac_try="$ac_compile"
14707case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710esac
14711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14712$as_echo "$ac_try_echo") >&5
14713 (eval "$ac_compile") 2>conftest.er1
b80f6443 14714 ac_status=$?
0628567a
JA
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
3185942a
JA
14718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } && {
14720 test -z "$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 } && test -s conftest.$ac_objext; then
0628567a 14723 ac_cv_have_decl_setregid=yes
b80f6443 14724else
3185942a 14725 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
3185942a 14728 ac_cv_have_decl_setregid=no
b80f6443 14729fi
3185942a
JA
14730
14731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14732fi
3185942a
JA
14733{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14734$as_echo "$ac_cv_have_decl_setregid" >&6; }
14735if test "x$ac_cv_have_decl_setregid" = x""yes; then
b80f6443
JA
14736
14737cat >>confdefs.h <<_ACEOF
0628567a 14738#define HAVE_DECL_SETREGID 1
b80f6443
JA
14739_ACEOF
14740
14741
14742else
14743 cat >>confdefs.h <<_ACEOF
0628567a 14744#define HAVE_DECL_SETREGID 0
b80f6443
JA
14745_ACEOF
14746
14747
14748fi
14749
14750
3185942a
JA
14751{ $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14752$as_echo_n "checking whether strcpy is declared... " >&6; }
0628567a 14753if test "${ac_cv_have_decl_strcpy+set}" = set; then
3185942a 14754 $as_echo_n "(cached) " >&6
0628567a 14755else
b80f6443 14756 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
b80f6443 14762$ac_includes_default
0628567a
JA
14763int
14764main ()
14765{
14766#ifndef strcpy
3185942a 14767 (void) strcpy;
95732b49 14768#endif
0628567a
JA
14769
14770 ;
14771 return 0;
14772}
14773_ACEOF
14774rm -f conftest.$ac_objext
3185942a
JA
14775if { (ac_try="$ac_compile"
14776case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14779esac
14780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14781$as_echo "$ac_try_echo") >&5
14782 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
3185942a
JA
14787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest.$ac_objext; then
0628567a
JA
14792 ac_cv_have_decl_strcpy=yes
14793else
3185942a 14794 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14795sed 's/^/| /' conftest.$ac_ext >&5
14796
3185942a 14797 ac_cv_have_decl_strcpy=no
0628567a 14798fi
3185942a
JA
14799
14800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 14801fi
3185942a
JA
14802{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14803$as_echo "$ac_cv_have_decl_strcpy" >&6; }
14804if test "x$ac_cv_have_decl_strcpy" = x""yes; then
0628567a
JA
14805
14806cat >>confdefs.h <<_ACEOF
14807#define HAVE_DECL_STRCPY 1
14808_ACEOF
14809
14810
14811else
14812 cat >>confdefs.h <<_ACEOF
14813#define HAVE_DECL_STRCPY 0
14814_ACEOF
14815
14816
14817fi
14818
14819
3185942a
JA
14820{ $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14821$as_echo_n "checking whether strsignal is declared... " >&6; }
0628567a 14822if test "${ac_cv_have_decl_strsignal+set}" = set; then
3185942a 14823 $as_echo_n "(cached) " >&6
0628567a
JA
14824else
14825 cat >conftest.$ac_ext <<_ACEOF
14826/* confdefs.h. */
14827_ACEOF
14828cat confdefs.h >>conftest.$ac_ext
14829cat >>conftest.$ac_ext <<_ACEOF
14830/* end confdefs.h. */
14831$ac_includes_default
b80f6443
JA
14832int
14833main ()
14834{
14835#ifndef strsignal
3185942a 14836 (void) strsignal;
b80f6443
JA
14837#endif
14838
14839 ;
14840 return 0;
14841}
14842_ACEOF
14843rm -f conftest.$ac_objext
3185942a
JA
14844if { (ac_try="$ac_compile"
14845case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848esac
14849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14850$as_echo "$ac_try_echo") >&5
14851 (eval "$ac_compile") 2>conftest.er1
b80f6443 14852 ac_status=$?
0628567a
JA
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
3185942a
JA
14856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest.$ac_objext; then
b80f6443
JA
14861 ac_cv_have_decl_strsignal=yes
14862else
3185942a 14863 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14864sed 's/^/| /' conftest.$ac_ext >&5
14865
3185942a 14866 ac_cv_have_decl_strsignal=no
b80f6443 14867fi
3185942a
JA
14868
14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14870fi
3185942a
JA
14871{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14872$as_echo "$ac_cv_have_decl_strsignal" >&6; }
14873if test "x$ac_cv_have_decl_strsignal" = x""yes; then
b80f6443
JA
14874
14875cat >>confdefs.h <<_ACEOF
14876#define HAVE_DECL_STRSIGNAL 1
14877_ACEOF
14878
14879
14880else
14881 cat >>confdefs.h <<_ACEOF
14882#define HAVE_DECL_STRSIGNAL 0
14883_ACEOF
14884
14885
14886fi
14887
14888
14889
3185942a
JA
14890{ $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14891$as_echo_n "checking whether strtold is declared... " >&6; }
b80f6443 14892if test "${ac_cv_have_decl_strtold+set}" = set; then
3185942a 14893 $as_echo_n "(cached) " >&6
b80f6443
JA
14894else
14895 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14896/* confdefs.h. */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h. */
b80f6443
JA
14901$ac_includes_default
14902int
14903main ()
14904{
14905#ifndef strtold
3185942a 14906 (void) strtold;
b80f6443
JA
14907#endif
14908
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913rm -f conftest.$ac_objext
3185942a
JA
14914if { (ac_try="$ac_compile"
14915case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918esac
14919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920$as_echo "$ac_try_echo") >&5
14921 (eval "$ac_compile") 2>conftest.er1
b80f6443 14922 ac_status=$?
0628567a
JA
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
3185942a
JA
14926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.$ac_objext; then
b80f6443
JA
14931 ac_cv_have_decl_strtold=yes
14932else
3185942a 14933 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
3185942a 14936 ac_cv_have_decl_strtold=no
b80f6443 14937fi
3185942a
JA
14938
14939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14940fi
3185942a
JA
14941{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14942$as_echo "$ac_cv_have_decl_strtold" >&6; }
14943if test "x$ac_cv_have_decl_strtold" = x""yes; then
b80f6443
JA
14944
14945cat >>confdefs.h <<_ACEOF
14946#define HAVE_DECL_STRTOLD 1
14947_ACEOF
14948
14949
3185942a
JA
14950 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14951$as_echo_n "checking for broken strtold... " >&6; }
b80f6443 14952 if test "${bash_cv_strtold_broken+set}" = set; then
3185942a 14953 $as_echo_n "(cached) " >&6
b80f6443
JA
14954else
14955 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
b80f6443
JA
14961#include <stdlib.h>
14962int
14963main ()
14964{
14965int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970rm -f conftest.$ac_objext
3185942a
JA
14971if { (ac_try="$ac_compile"
14972case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975esac
14976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14977$as_echo "$ac_try_echo") >&5
14978 (eval "$ac_compile") 2>conftest.er1
b80f6443 14979 ac_status=$?
0628567a
JA
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
3185942a
JA
14983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest.$ac_objext; then
b80f6443
JA
14988 bash_cv_strtold_broken=no
14989else
3185942a 14990 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
3185942a 14993 bash_cv_strtold_broken=yes
b80f6443 14994fi
3185942a
JA
14995
14996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
14997
14998
14999fi
15000
3185942a
JA
15001 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15002$as_echo "$bash_cv_strtold_broken" >&6; }
b80f6443
JA
15003 if test "$bash_cv_strtold_broken" = "yes" ; then
15004 cat >>confdefs.h <<\_ACEOF
15005#define STRTOLD_BROKEN 1
15006_ACEOF
15007
15008 fi
15009
15010else
15011 cat >>confdefs.h <<_ACEOF
15012#define HAVE_DECL_STRTOLD 0
15013_ACEOF
15014
15015
15016fi
15017
15018
15019
15020
15021
15022
15023
3185942a
JA
15024{ $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15025$as_echo_n "checking for declaration of strtoimax... " >&6; }
b80f6443 15026if test "${bash_cv_decl_strtoimax+set}" = set; then
3185942a 15027 $as_echo_n "(cached) " >&6
b80f6443
JA
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
b80f6443
JA
15035
15036#if STDC_HEADERS
15037# include <stdlib.h>
15038#endif
15039#if HAVE_INTTYPES_H
15040# include <inttypes.h>
15041#endif
15042
15043int
15044main ()
15045{
15046return !strtoimax;
15047 ;
15048 return 0;
15049}
15050_ACEOF
15051rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15052if { (ac_try="$ac_link"
15053case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056esac
15057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15058$as_echo "$ac_try_echo") >&5
15059 (eval "$ac_link") 2>conftest.er1
b80f6443 15060 ac_status=$?
0628567a
JA
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
3185942a
JA
15064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest$ac_exeext && {
15069 test "$cross_compiling" = yes ||
15070 $as_test_x conftest$ac_exeext
15071 }; then
b80f6443
JA
15072 bash_cv_decl_strtoimax=yes
15073else
3185942a 15074 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15075sed 's/^/| /' conftest.$ac_ext >&5
15076
3185942a 15077 bash_cv_decl_strtoimax=no
b80f6443 15078fi
3185942a
JA
15079
15080rm -rf conftest.dSYM
15081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15082 conftest$ac_exeext conftest.$ac_ext
b80f6443 15083fi
3185942a
JA
15084{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15085$as_echo "$bash_cv_decl_strtoimax" >&6; }
b80f6443
JA
15086bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15087if test $bash_cv_decl_strtoimax = yes; then
15088 cat >>confdefs.h <<_ACEOF
15089#define $bash_tr_func 1
15090_ACEOF
15091
15092else
15093 cat >>confdefs.h <<_ACEOF
15094#define $bash_tr_func 0
15095_ACEOF
15096
15097fi
15098
15099
15100
15101
3185942a
JA
15102{ $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15103$as_echo_n "checking for declaration of strtol... " >&6; }
b80f6443 15104if test "${bash_cv_decl_strtol+set}" = set; then
3185942a 15105 $as_echo_n "(cached) " >&6
b80f6443
JA
15106else
15107 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
b80f6443
JA
15113
15114#if STDC_HEADERS
15115# include <stdlib.h>
15116#endif
15117#if HAVE_INTTYPES_H
15118# include <inttypes.h>
15119#endif
15120
15121int
15122main ()
15123{
15124return !strtol;
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15130if { (ac_try="$ac_link"
15131case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15136$as_echo "$ac_try_echo") >&5
15137 (eval "$ac_link") 2>conftest.er1
b80f6443 15138 ac_status=$?
0628567a
JA
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
3185942a
JA
15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest$ac_exeext
15149 }; then
b80f6443
JA
15150 bash_cv_decl_strtol=yes
15151else
3185942a 15152 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
3185942a 15155 bash_cv_decl_strtol=no
b80f6443 15156fi
3185942a
JA
15157
15158rm -rf conftest.dSYM
15159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15160 conftest$ac_exeext conftest.$ac_ext
b80f6443 15161fi
3185942a
JA
15162{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15163$as_echo "$bash_cv_decl_strtol" >&6; }
b80f6443
JA
15164bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15165if test $bash_cv_decl_strtol = yes; then
15166 cat >>confdefs.h <<_ACEOF
15167#define $bash_tr_func 1
15168_ACEOF
15169
15170else
15171 cat >>confdefs.h <<_ACEOF
15172#define $bash_tr_func 0
15173_ACEOF
15174
15175fi
15176
15177
15178
15179
3185942a
JA
15180{ $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15181$as_echo_n "checking for declaration of strtoll... " >&6; }
b80f6443 15182if test "${bash_cv_decl_strtoll+set}" = set; then
3185942a 15183 $as_echo_n "(cached) " >&6
b80f6443
JA
15184else
15185 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
b80f6443
JA
15191
15192#if STDC_HEADERS
15193# include <stdlib.h>
15194#endif
15195#if HAVE_INTTYPES_H
15196# include <inttypes.h>
15197#endif
15198
15199int
15200main ()
15201{
15202return !strtoll;
15203 ;
15204 return 0;
15205}
15206_ACEOF
15207rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15208if { (ac_try="$ac_link"
15209case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15212esac
15213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15214$as_echo "$ac_try_echo") >&5
15215 (eval "$ac_link") 2>conftest.er1
b80f6443 15216 ac_status=$?
0628567a
JA
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
3185942a
JA
15220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext && {
15225 test "$cross_compiling" = yes ||
15226 $as_test_x conftest$ac_exeext
15227 }; then
b80f6443
JA
15228 bash_cv_decl_strtoll=yes
15229else
3185942a 15230 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15231sed 's/^/| /' conftest.$ac_ext >&5
15232
3185942a 15233 bash_cv_decl_strtoll=no
b80f6443 15234fi
3185942a
JA
15235
15236rm -rf conftest.dSYM
15237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15238 conftest$ac_exeext conftest.$ac_ext
b80f6443 15239fi
3185942a
JA
15240{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15241$as_echo "$bash_cv_decl_strtoll" >&6; }
b80f6443
JA
15242bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15243if test $bash_cv_decl_strtoll = yes; then
15244 cat >>confdefs.h <<_ACEOF
15245#define $bash_tr_func 1
15246_ACEOF
15247
15248else
15249 cat >>confdefs.h <<_ACEOF
15250#define $bash_tr_func 0
15251_ACEOF
15252
15253fi
15254
15255
15256
15257
3185942a
JA
15258{ $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15259$as_echo_n "checking for declaration of strtoul... " >&6; }
b80f6443 15260if test "${bash_cv_decl_strtoul+set}" = set; then
3185942a 15261 $as_echo_n "(cached) " >&6
b80f6443
JA
15262else
15263 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h. */
b80f6443
JA
15269
15270#if STDC_HEADERS
15271# include <stdlib.h>
15272#endif
15273#if HAVE_INTTYPES_H
15274# include <inttypes.h>
15275#endif
15276
15277int
15278main ()
15279{
15280return !strtoul;
15281 ;
15282 return 0;
15283}
15284_ACEOF
15285rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15286if { (ac_try="$ac_link"
15287case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290esac
15291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15292$as_echo "$ac_try_echo") >&5
15293 (eval "$ac_link") 2>conftest.er1
b80f6443 15294 ac_status=$?
0628567a
JA
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
3185942a
JA
15298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext && {
15303 test "$cross_compiling" = yes ||
15304 $as_test_x conftest$ac_exeext
15305 }; then
b80f6443
JA
15306 bash_cv_decl_strtoul=yes
15307else
3185942a 15308 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15309sed 's/^/| /' conftest.$ac_ext >&5
15310
3185942a 15311 bash_cv_decl_strtoul=no
b80f6443 15312fi
3185942a
JA
15313
15314rm -rf conftest.dSYM
15315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15316 conftest$ac_exeext conftest.$ac_ext
b80f6443 15317fi
3185942a
JA
15318{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15319$as_echo "$bash_cv_decl_strtoul" >&6; }
b80f6443
JA
15320bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15321if test $bash_cv_decl_strtoul = yes; then
15322 cat >>confdefs.h <<_ACEOF
15323#define $bash_tr_func 1
15324_ACEOF
15325
15326else
15327 cat >>confdefs.h <<_ACEOF
15328#define $bash_tr_func 0
15329_ACEOF
15330
15331fi
15332
15333
15334
15335
3185942a
JA
15336{ $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15337$as_echo_n "checking for declaration of strtoull... " >&6; }
b80f6443 15338if test "${bash_cv_decl_strtoull+set}" = set; then
3185942a 15339 $as_echo_n "(cached) " >&6
b80f6443
JA
15340else
15341 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
b80f6443
JA
15347
15348#if STDC_HEADERS
15349# include <stdlib.h>
15350#endif
15351#if HAVE_INTTYPES_H
15352# include <inttypes.h>
15353#endif
15354
15355int
15356main ()
15357{
15358return !strtoull;
15359 ;
15360 return 0;
15361}
15362_ACEOF
15363rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15364if { (ac_try="$ac_link"
15365case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370$as_echo "$ac_try_echo") >&5
15371 (eval "$ac_link") 2>conftest.er1
b80f6443 15372 ac_status=$?
0628567a
JA
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
3185942a
JA
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext && {
15381 test "$cross_compiling" = yes ||
15382 $as_test_x conftest$ac_exeext
15383 }; then
b80f6443
JA
15384 bash_cv_decl_strtoull=yes
15385else
3185942a 15386 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15387sed 's/^/| /' conftest.$ac_ext >&5
15388
3185942a 15389 bash_cv_decl_strtoull=no
b80f6443 15390fi
3185942a
JA
15391
15392rm -rf conftest.dSYM
15393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15394 conftest$ac_exeext conftest.$ac_ext
b80f6443 15395fi
3185942a
JA
15396{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15397$as_echo "$bash_cv_decl_strtoull" >&6; }
b80f6443
JA
15398bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15399if test $bash_cv_decl_strtoull = yes; then
15400 cat >>confdefs.h <<_ACEOF
15401#define $bash_tr_func 1
15402_ACEOF
15403
15404else
15405 cat >>confdefs.h <<_ACEOF
15406#define $bash_tr_func 0
15407_ACEOF
15408
15409fi
15410
15411
15412
15413
3185942a
JA
15414{ $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15415$as_echo_n "checking for declaration of strtoumax... " >&6; }
b80f6443 15416if test "${bash_cv_decl_strtoumax+set}" = set; then
3185942a 15417 $as_echo_n "(cached) " >&6
b80f6443
JA
15418else
15419 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
b80f6443
JA
15425
15426#if STDC_HEADERS
15427# include <stdlib.h>
15428#endif
15429#if HAVE_INTTYPES_H
15430# include <inttypes.h>
15431#endif
15432
15433int
15434main ()
15435{
15436return !strtoumax;
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15442if { (ac_try="$ac_link"
15443case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15448$as_echo "$ac_try_echo") >&5
15449 (eval "$ac_link") 2>conftest.er1
b80f6443 15450 ac_status=$?
0628567a
JA
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
3185942a
JA
15454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && {
15456 test -z "$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15458 } && test -s conftest$ac_exeext && {
15459 test "$cross_compiling" = yes ||
15460 $as_test_x conftest$ac_exeext
15461 }; then
b80f6443
JA
15462 bash_cv_decl_strtoumax=yes
15463else
3185942a 15464 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
3185942a 15467 bash_cv_decl_strtoumax=no
b80f6443 15468fi
3185942a
JA
15469
15470rm -rf conftest.dSYM
15471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15472 conftest$ac_exeext conftest.$ac_ext
b80f6443 15473fi
3185942a
JA
15474{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15475$as_echo "$bash_cv_decl_strtoumax" >&6; }
b80f6443
JA
15476bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15477if test $bash_cv_decl_strtoumax = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479#define $bash_tr_func 1
15480_ACEOF
15481
15482else
15483 cat >>confdefs.h <<_ACEOF
15484#define $bash_tr_func 0
15485_ACEOF
15486
15487fi
15488
15489
15490
15491
0628567a 15492
3185942a
JA
15493
15494for ac_header in $ac_header_list
b80f6443 15495do
3185942a
JA
15496as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15499$as_echo_n "checking for $ac_header... " >&6; }
15500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 $as_echo_n "(cached) " >&6
15502fi
15503ac_res=`eval 'as_val=${'$as_ac_Header'}
15504 $as_echo "$as_val"'`
15505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15506$as_echo "$ac_res" >&6; }
b80f6443
JA
15507else
15508 # Is the header compilable?
3185942a
JA
15509{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15510$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 15511cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
b80f6443
JA
15517$ac_includes_default
15518#include <$ac_header>
15519_ACEOF
15520rm -f conftest.$ac_objext
3185942a
JA
15521if { (ac_try="$ac_compile"
15522case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525esac
15526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15527$as_echo "$ac_try_echo") >&5
15528 (eval "$ac_compile") 2>conftest.er1
b80f6443 15529 ac_status=$?
0628567a
JA
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
3185942a
JA
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest.$ac_objext; then
b80f6443
JA
15538 ac_header_compiler=yes
15539else
3185942a 15540 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
3185942a 15543 ac_header_compiler=no
b80f6443 15544fi
3185942a
JA
15545
15546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15548$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
15549
15550# Is the header present?
3185942a
JA
15551{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15552$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 15553cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15554/* confdefs.h. */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h. */
b80f6443
JA
15559#include <$ac_header>
15560_ACEOF
3185942a
JA
15561if { (ac_try="$ac_cpp conftest.$ac_ext"
15562case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15567$as_echo "$ac_try_echo") >&5
15568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 15569 ac_status=$?
0628567a 15570 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
15571 rm -f conftest.er1
15572 cat conftest.err >&5
3185942a
JA
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } >/dev/null && {
15575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15576 test ! -s conftest.err
15577 }; then
b80f6443
JA
15578 ac_header_preproc=yes
15579else
3185942a 15580 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
b80f6443
JA
15583 ac_header_preproc=no
15584fi
3185942a 15585
b80f6443 15586rm -f conftest.err conftest.$ac_ext
3185942a
JA
15587{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15588$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
15589
15590# So? What about this header?
0628567a
JA
15591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 yes:no: )
3185942a
JA
15593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15594$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15596$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
15597 ac_header_preproc=yes
15598 ;;
15599 no:yes:* )
3185942a
JA
15600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15601$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15603$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15605$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15607$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15609$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15611$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ( cat <<\_ASBOX
0628567a
JA
15613## ------------------------------- ##
15614## Report this to bug-bash@gnu.org ##
15615## ------------------------------- ##
15616_ASBOX
3185942a 15617 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 15618 ;;
b80f6443 15619esac
3185942a
JA
15620{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15621$as_echo_n "checking for $ac_header... " >&6; }
15622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 $as_echo_n "(cached) " >&6
b80f6443 15624else
0628567a 15625 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 15626fi
3185942a
JA
15627ac_res=`eval 'as_val=${'$as_ac_Header'}
15628 $as_echo "$as_val"'`
15629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15630$as_echo "$ac_res" >&6; }
b80f6443
JA
15631
15632fi
3185942a
JA
15633as_val=`eval 'as_val=${'$as_ac_Header'}
15634 $as_echo "$as_val"'`
15635 if test "x$as_val" = x""yes; then
b80f6443 15636 cat >>confdefs.h <<_ACEOF
3185942a 15637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
15638_ACEOF
15639
15640fi
15641
15642done
15643
15644
3185942a
JA
15645
15646
15647
15648
15649
15650
15651
15652for ac_func in $ac_func_list
b80f6443 15653do
3185942a
JA
15654as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15655{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15656$as_echo_n "checking for $ac_func... " >&6; }
15657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15658 $as_echo_n "(cached) " >&6
b80f6443
JA
15659else
15660 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15661/* confdefs.h. */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h. */
15666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15668#define $ac_func innocuous_$ac_func
15669
b80f6443 15670/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
15671 which can conflict with char $ac_func (); below.
15672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15673 <limits.h> exists even on freestanding compilers. */
15674
15675#ifdef __STDC__
15676# include <limits.h>
15677#else
15678# include <assert.h>
15679#endif
15680
15681#undef $ac_func
15682
3185942a
JA
15683/* Override any GCC internal prototype to avoid an error.
15684 Use char because int might match the return type of a GCC
15685 builtin and then its argument prototype would still apply. */
b80f6443
JA
15686#ifdef __cplusplus
15687extern "C"
b80f6443 15688#endif
b80f6443
JA
15689char $ac_func ();
15690/* The GNU C library defines this for functions which it implements
15691 to always fail with ENOSYS. Some functions are actually named
15692 something starting with __ and the normal name is an alias. */
3185942a 15693#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 15694choke me
b80f6443
JA
15695#endif
15696
0628567a
JA
15697int
15698main ()
15699{
3185942a 15700return $ac_func ();
b80f6443
JA
15701 ;
15702 return 0;
15703}
15704_ACEOF
15705rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15706if { (ac_try="$ac_link"
15707case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710esac
15711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712$as_echo "$ac_try_echo") >&5
15713 (eval "$ac_link") 2>conftest.er1
b80f6443 15714 ac_status=$?
0628567a
JA
15715 grep -v '^ *+' conftest.er1 >conftest.err
15716 rm -f conftest.er1
15717 cat conftest.err >&5
3185942a
JA
15718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && {
15720 test -z "$ac_c_werror_flag" ||
15721 test ! -s conftest.err
15722 } && test -s conftest$ac_exeext && {
15723 test "$cross_compiling" = yes ||
15724 $as_test_x conftest$ac_exeext
15725 }; then
b80f6443
JA
15726 eval "$as_ac_var=yes"
15727else
3185942a 15728 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15729sed 's/^/| /' conftest.$ac_ext >&5
15730
3185942a 15731 eval "$as_ac_var=no"
b80f6443 15732fi
3185942a
JA
15733
15734rm -rf conftest.dSYM
15735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15736 conftest$ac_exeext conftest.$ac_ext
b80f6443 15737fi
3185942a
JA
15738ac_res=`eval 'as_val=${'$as_ac_var'}
15739 $as_echo "$as_val"'`
15740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15741$as_echo "$ac_res" >&6; }
15742as_val=`eval 'as_val=${'$as_ac_var'}
15743 $as_echo "$as_val"'`
15744 if test "x$as_val" = x""yes; then
b80f6443 15745 cat >>confdefs.h <<_ACEOF
3185942a 15746#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
15747_ACEOF
15748
15749fi
15750done
15751
3185942a
JA
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15769$as_echo_n "checking for working mktime... " >&6; }
b80f6443 15770if test "${ac_cv_func_working_mktime+set}" = set; then
3185942a 15771 $as_echo_n "(cached) " >&6
b80f6443
JA
15772else
15773 if test "$cross_compiling" = yes; then
15774 ac_cv_func_working_mktime=no
15775else
15776 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
b80f6443 15782/* Test program from Paul Eggert and Tony Leneis. */
3185942a 15783#ifdef TIME_WITH_SYS_TIME
b80f6443
JA
15784# include <sys/time.h>
15785# include <time.h>
15786#else
3185942a 15787# ifdef HAVE_SYS_TIME_H
b80f6443
JA
15788# include <sys/time.h>
15789# else
15790# include <time.h>
15791# endif
15792#endif
15793
3185942a
JA
15794#include <limits.h>
15795#include <stdlib.h>
0628567a 15796
3185942a 15797#ifdef HAVE_UNISTD_H
b80f6443
JA
15798# include <unistd.h>
15799#endif
15800
3185942a 15801#ifndef HAVE_ALARM
b80f6443
JA
15802# define alarm(X) /* empty */
15803#endif
7117c2d2
JA
15804
15805/* Work around redefinition to rpl_putenv by other config tests. */
15806#undef putenv
15807
b80f6443 15808static time_t time_t_max;
0628567a 15809static time_t time_t_min;
b80f6443
JA
15810
15811/* Values we'll use to set the TZ environment variable. */
0628567a
JA
15812static char *tz_strings[] = {
15813 (char *) 0, "TZ=GMT0", "TZ=JST-9",
b80f6443
JA
15814 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15815};
15816#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15817
3185942a 15818/* Return 0 if mktime fails to convert a date in the spring-forward gap.
b80f6443 15819 Based on a problem report from Andreas Jaeger. */
3185942a 15820static int
b80f6443
JA
15821spring_forward_gap ()
15822{
15823 /* glibc (up to about 1998-10-07) failed this test. */
15824 struct tm tm;
15825
15826 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15827 instead of "TZ=America/Vancouver" in order to detect the bug even
15828 on systems that don't support the Olson extension, or don't have the
15829 full zoneinfo tables installed. */
15830 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15831
15832 tm.tm_year = 98;
15833 tm.tm_mon = 3;
15834 tm.tm_mday = 5;
15835 tm.tm_hour = 2;
15836 tm.tm_min = 0;
15837 tm.tm_sec = 0;
15838 tm.tm_isdst = -1;
3185942a 15839 return mktime (&tm) != (time_t) -1;
b80f6443
JA
15840}
15841
3185942a 15842static int
0628567a 15843mktime_test1 (now)
b80f6443
JA
15844 time_t now;
15845{
15846 struct tm *lt;
3185942a 15847 return ! (lt = localtime (&now)) || mktime (lt) == now;
0628567a
JA
15848}
15849
3185942a 15850static int
0628567a
JA
15851mktime_test (now)
15852 time_t now;
15853{
3185942a
JA
15854 return (mktime_test1 (now)
15855 && mktime_test1 ((time_t) (time_t_max - now))
15856 && mktime_test1 ((time_t) (time_t_min + now)));
b80f6443
JA
15857}
15858
3185942a 15859static int
b80f6443
JA
15860irix_6_4_bug ()
15861{
15862 /* Based on code from Ariel Faigon. */
15863 struct tm tm;
15864 tm.tm_year = 96;
15865 tm.tm_mon = 3;
15866 tm.tm_mday = 0;
15867 tm.tm_hour = 0;
15868 tm.tm_min = 0;
15869 tm.tm_sec = 0;
15870 tm.tm_isdst = -1;
15871 mktime (&tm);
3185942a 15872 return tm.tm_mon == 2 && tm.tm_mday == 31;
b80f6443
JA
15873}
15874
3185942a 15875static int
b80f6443
JA
15876bigtime_test (j)
15877 int j;
15878{
15879 struct tm tm;
15880 time_t now;
15881 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15882 now = mktime (&tm);
15883 if (now != (time_t) -1)
15884 {
15885 struct tm *lt = localtime (&now);
15886 if (! (lt
15887 && lt->tm_year == tm.tm_year
15888 && lt->tm_mon == tm.tm_mon
15889 && lt->tm_mday == tm.tm_mday
15890 && lt->tm_hour == tm.tm_hour
15891 && lt->tm_min == tm.tm_min
15892 && lt->tm_sec == tm.tm_sec
15893 && lt->tm_yday == tm.tm_yday
15894 && lt->tm_wday == tm.tm_wday
15895 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15896 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
3185942a 15897 return 0;
b80f6443 15898 }
3185942a 15899 return 1;
b80f6443
JA
15900}
15901
3185942a
JA
15902static int
15903year_2050_test ()
b80f6443 15904{
3185942a
JA
15905 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15906 ignoring leap seconds. */
15907 unsigned long int answer = 2527315200UL;
b80f6443 15908
3185942a
JA
15909 struct tm tm;
15910 time_t t;
15911 tm.tm_year = 2050 - 1900;
15912 tm.tm_mon = 2 - 1;
15913 tm.tm_mday = 1;
15914 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15915 tm.tm_isdst = -1;
b80f6443 15916
3185942a
JA
15917 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15918 instead of "TZ=America/Vancouver" in order to detect the bug even
15919 on systems that don't support the Olson extension, or don't have the
15920 full zoneinfo tables installed. */
15921 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15922
15923 t = mktime (&tm);
15924
15925 /* Check that the result is either a failure, or close enough
15926 to the correct answer that we can assume the discrepancy is
15927 due to leap seconds. */
15928 return (t == (time_t) -1
15929 || (0 < t && answer - 120 <= t && t <= answer + 120));
15930}
15931
15932int
15933main ()
15934{
15935 time_t t, delta;
15936 int i, j;
15937
15938 /* This test makes some buggy mktime implementations loop.
15939 Give up after 60 seconds; a mktime slower than that
15940 isn't worth using anyway. */
15941 alarm (60);
15942
15943 for (;;)
15944 {
15945 t = (time_t_max << 1) + 1;
15946 if (t <= time_t_max)
15947 break;
15948 time_t_max = t;
15949 }
15950 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15951
15952 delta = time_t_max / 997; /* a suitable prime number */
15953 for (i = 0; i < N_STRINGS; i++)
b80f6443
JA
15954 {
15955 if (tz_strings[i])
15956 putenv (tz_strings[i]);
15957
15958 for (t = 0; t <= time_t_max - delta; t += delta)
3185942a
JA
15959 if (! mktime_test (t))
15960 return 1;
15961 if (! (mktime_test ((time_t) 1)
15962 && mktime_test ((time_t) (60 * 60))
15963 && mktime_test ((time_t) (60 * 60 * 24))))
15964 return 1;
15965
15966 for (j = 1; ; j <<= 1)
15967 if (! bigtime_test (j))
15968 return 1;
15969 else if (INT_MAX / 2 < j)
15970 break;
15971 if (! bigtime_test (INT_MAX))
15972 return 1;
b80f6443 15973 }
3185942a 15974 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
b80f6443
JA
15975}
15976_ACEOF
15977rm -f conftest$ac_exeext
3185942a
JA
15978if { (ac_try="$ac_link"
15979case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982esac
15983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15984$as_echo "$ac_try_echo") >&5
15985 (eval "$ac_link") 2>&5
b80f6443 15986 ac_status=$?
3185942a 15987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 15988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
15989 { (case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992esac
15993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994$as_echo "$ac_try_echo") >&5
15995 (eval "$ac_try") 2>&5
b80f6443 15996 ac_status=$?
3185942a 15997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
15998 (exit $ac_status); }; }; then
15999 ac_cv_func_working_mktime=yes
16000else
3185942a
JA
16001 $as_echo "$as_me: program exited with status $ac_status" >&5
16002$as_echo "$as_me: failed program was:" >&5
0628567a
JA
16003sed 's/^/| /' conftest.$ac_ext >&5
16004
b80f6443
JA
16005( exit $ac_status )
16006ac_cv_func_working_mktime=no
16007fi
3185942a
JA
16008rm -rf conftest.dSYM
16009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 16010fi
3185942a
JA
16011
16012
b80f6443 16013fi
3185942a
JA
16014{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16015$as_echo "$ac_cv_func_working_mktime" >&6; }
b80f6443 16016if test $ac_cv_func_working_mktime = no; then
3185942a 16017 case " $LIBOBJS " in
0628567a 16018 *" mktime.$ac_objext "* ) ;;
3185942a
JA
16019 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16020 ;;
0628567a
JA
16021esac
16022
b80f6443
JA
16023fi
16024
16025
16026
16027
16028
16029
16030
16031
16032for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16033do
3185942a
JA
16034as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16037$as_echo_n "checking for $ac_header... " >&6; }
16038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 $as_echo_n "(cached) " >&6
16040fi
16041ac_res=`eval 'as_val=${'$as_ac_Header'}
16042 $as_echo "$as_val"'`
16043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16044$as_echo "$ac_res" >&6; }
b80f6443
JA
16045else
16046 # Is the header compilable?
3185942a
JA
16047{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16049cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
b80f6443
JA
16055$ac_includes_default
16056#include <$ac_header>
16057_ACEOF
16058rm -f conftest.$ac_objext
3185942a
JA
16059if { (ac_try="$ac_compile"
16060case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065$as_echo "$ac_try_echo") >&5
16066 (eval "$ac_compile") 2>conftest.er1
b80f6443 16067 ac_status=$?
0628567a
JA
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
3185942a
JA
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest.$ac_objext; then
b80f6443
JA
16076 ac_header_compiler=yes
16077else
3185942a 16078 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16079sed 's/^/| /' conftest.$ac_ext >&5
16080
3185942a 16081 ac_header_compiler=no
b80f6443 16082fi
3185942a
JA
16083
16084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16086$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
16087
16088# Is the header present?
3185942a
JA
16089{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16090$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16091cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
b80f6443
JA
16097#include <$ac_header>
16098_ACEOF
3185942a
JA
16099if { (ac_try="$ac_cpp conftest.$ac_ext"
16100case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103esac
16104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16105$as_echo "$ac_try_echo") >&5
16106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 16107 ac_status=$?
0628567a 16108 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
16109 rm -f conftest.er1
16110 cat conftest.err >&5
3185942a
JA
16111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } >/dev/null && {
16113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 }; then
b80f6443
JA
16116 ac_header_preproc=yes
16117else
3185942a 16118 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16119sed 's/^/| /' conftest.$ac_ext >&5
16120
b80f6443
JA
16121 ac_header_preproc=no
16122fi
3185942a 16123
b80f6443 16124rm -f conftest.err conftest.$ac_ext
3185942a
JA
16125{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16127
16128# So? What about this header?
0628567a
JA
16129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16130 yes:no: )
3185942a
JA
16131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16132$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16134$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
16135 ac_header_preproc=yes
16136 ;;
16137 no:yes:* )
3185942a
JA
16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16139$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16141$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16143$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16145$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16147$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16149$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16150 ( cat <<\_ASBOX
0628567a
JA
16151## ------------------------------- ##
16152## Report this to bug-bash@gnu.org ##
16153## ------------------------------- ##
16154_ASBOX
3185942a 16155 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16156 ;;
b80f6443 16157esac
3185942a
JA
16158{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16159$as_echo_n "checking for $ac_header... " >&6; }
16160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 $as_echo_n "(cached) " >&6
b80f6443 16162else
0628567a 16163 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 16164fi
3185942a
JA
16165ac_res=`eval 'as_val=${'$as_ac_Header'}
16166 $as_echo "$as_val"'`
16167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16168$as_echo "$ac_res" >&6; }
b80f6443
JA
16169
16170fi
3185942a
JA
16171as_val=`eval 'as_val=${'$as_ac_Header'}
16172 $as_echo "$as_val"'`
16173 if test "x$as_val" = x""yes; then
b80f6443 16174 cat >>confdefs.h <<_ACEOF
3185942a 16175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
16176_ACEOF
16177
16178fi
16179
16180done
16181
16182
16183
16184
16185for ac_header in stdlib.h unistd.h
16186do
3185942a
JA
16187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16190$as_echo_n "checking for $ac_header... " >&6; }
16191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16192 $as_echo_n "(cached) " >&6
16193fi
16194ac_res=`eval 'as_val=${'$as_ac_Header'}
16195 $as_echo "$as_val"'`
16196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16197$as_echo "$ac_res" >&6; }
b80f6443
JA
16198else
16199 # Is the header compilable?
3185942a
JA
16200{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16201$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16202cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16203/* confdefs.h. */
16204_ACEOF
16205cat confdefs.h >>conftest.$ac_ext
16206cat >>conftest.$ac_ext <<_ACEOF
16207/* end confdefs.h. */
b80f6443
JA
16208$ac_includes_default
16209#include <$ac_header>
16210_ACEOF
16211rm -f conftest.$ac_objext
3185942a
JA
16212if { (ac_try="$ac_compile"
16213case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216esac
16217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218$as_echo "$ac_try_echo") >&5
16219 (eval "$ac_compile") 2>conftest.er1
b80f6443 16220 ac_status=$?
0628567a
JA
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
3185942a
JA
16224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } && {
16226 test -z "$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 } && test -s conftest.$ac_objext; then
b80f6443
JA
16229 ac_header_compiler=yes
16230else
3185942a 16231 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
3185942a 16234 ac_header_compiler=no
b80f6443 16235fi
3185942a
JA
16236
16237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16239$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
16240
16241# Is the header present?
3185942a
JA
16242{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16243$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16244cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16245/* confdefs.h. */
16246_ACEOF
16247cat confdefs.h >>conftest.$ac_ext
16248cat >>conftest.$ac_ext <<_ACEOF
16249/* end confdefs.h. */
b80f6443
JA
16250#include <$ac_header>
16251_ACEOF
3185942a
JA
16252if { (ac_try="$ac_cpp conftest.$ac_ext"
16253case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16256esac
16257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16258$as_echo "$ac_try_echo") >&5
16259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 16260 ac_status=$?
0628567a 16261 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
16262 rm -f conftest.er1
16263 cat conftest.err >&5
3185942a
JA
16264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } >/dev/null && {
16266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 }; then
b80f6443
JA
16269 ac_header_preproc=yes
16270else
3185942a 16271 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
b80f6443
JA
16274 ac_header_preproc=no
16275fi
3185942a 16276
b80f6443 16277rm -f conftest.err conftest.$ac_ext
3185942a
JA
16278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16279$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16280
16281# So? What about this header?
0628567a
JA
16282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16283 yes:no: )
3185942a
JA
16284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16285$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16287$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
16288 ac_header_preproc=yes
16289 ;;
16290 no:yes:* )
3185942a
JA
16291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16292$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16294$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16296$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16298$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16300$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16302$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16303 ( cat <<\_ASBOX
0628567a
JA
16304## ------------------------------- ##
16305## Report this to bug-bash@gnu.org ##
16306## ------------------------------- ##
16307_ASBOX
3185942a 16308 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16309 ;;
b80f6443 16310esac
3185942a
JA
16311{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16312$as_echo_n "checking for $ac_header... " >&6; }
16313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 $as_echo_n "(cached) " >&6
b80f6443 16315else
0628567a 16316 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 16317fi
3185942a
JA
16318ac_res=`eval 'as_val=${'$as_ac_Header'}
16319 $as_echo "$as_val"'`
16320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16321$as_echo "$ac_res" >&6; }
b80f6443
JA
16322
16323fi
3185942a
JA
16324as_val=`eval 'as_val=${'$as_ac_Header'}
16325 $as_echo "$as_val"'`
16326 if test "x$as_val" = x""yes; then
b80f6443 16327 cat >>confdefs.h <<_ACEOF
3185942a 16328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
16329_ACEOF
16330
16331fi
16332
16333done
16334
16335
16336for ac_func in getpagesize
16337do
3185942a
JA
16338as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16339{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16340$as_echo_n "checking for $ac_func... " >&6; }
16341if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16342 $as_echo_n "(cached) " >&6
b80f6443
JA
16343else
16344 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
16350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352#define $ac_func innocuous_$ac_func
16353
16354/* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16358
16359#ifdef __STDC__
16360# include <limits.h>
16361#else
16362# include <assert.h>
16363#endif
16364
16365#undef $ac_func
16366
3185942a
JA
16367/* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
b80f6443
JA
16370#ifdef __cplusplus
16371extern "C"
b80f6443 16372#endif
b80f6443
JA
16373char $ac_func ();
16374/* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
3185942a 16377#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 16378choke me
b80f6443
JA
16379#endif
16380
0628567a
JA
16381int
16382main ()
16383{
3185942a 16384return $ac_func ();
b80f6443
JA
16385 ;
16386 return 0;
16387}
16388_ACEOF
16389rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
16390if { (ac_try="$ac_link"
16391case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16396$as_echo "$ac_try_echo") >&5
16397 (eval "$ac_link") 2>conftest.er1
b80f6443 16398 ac_status=$?
0628567a
JA
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
3185942a
JA
16402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } && {
16404 test -z "$ac_c_werror_flag" ||
16405 test ! -s conftest.err
16406 } && test -s conftest$ac_exeext && {
16407 test "$cross_compiling" = yes ||
16408 $as_test_x conftest$ac_exeext
16409 }; then
b80f6443
JA
16410 eval "$as_ac_var=yes"
16411else
3185942a 16412 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
3185942a 16415 eval "$as_ac_var=no"
b80f6443 16416fi
3185942a
JA
16417
16418rm -rf conftest.dSYM
16419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 16420 conftest$ac_exeext conftest.$ac_ext
b80f6443 16421fi
3185942a
JA
16422ac_res=`eval 'as_val=${'$as_ac_var'}
16423 $as_echo "$as_val"'`
16424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16425$as_echo "$ac_res" >&6; }
16426as_val=`eval 'as_val=${'$as_ac_var'}
16427 $as_echo "$as_val"'`
16428 if test "x$as_val" = x""yes; then
b80f6443 16429 cat >>confdefs.h <<_ACEOF
3185942a 16430#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
16431_ACEOF
16432
16433fi
16434done
16435
3185942a
JA
16436{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16437$as_echo_n "checking for working mmap... " >&6; }
b80f6443 16438if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3185942a 16439 $as_echo_n "(cached) " >&6
b80f6443
JA
16440else
16441 if test "$cross_compiling" = yes; then
16442 ac_cv_func_mmap_fixed_mapped=no
16443else
16444 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16445/* confdefs.h. */
16446_ACEOF
16447cat confdefs.h >>conftest.$ac_ext
16448cat >>conftest.$ac_ext <<_ACEOF
16449/* end confdefs.h. */
b80f6443
JA
16450$ac_includes_default
16451/* malloc might have been renamed as rpl_malloc. */
16452#undef malloc
16453
16454/* Thanks to Mike Haertel and Jim Avera for this test.
16455 Here is a matrix of mmap possibilities:
16456 mmap private not fixed
16457 mmap private fixed at somewhere currently unmapped
16458 mmap private fixed at somewhere already mapped
16459 mmap shared not fixed
16460 mmap shared fixed at somewhere currently unmapped
16461 mmap shared fixed at somewhere already mapped
16462 For private mappings, we should verify that changes cannot be read()
16463 back from the file, nor mmap's back from the file at a different
16464 address. (There have been systems where private was not correctly
16465 implemented like the infamous i386 svr4.0, and systems where the
16466 VM page cache was not coherent with the file system buffer cache
16467 like early versions of FreeBSD and possibly contemporary NetBSD.)
16468 For shared mappings, we should conversely verify that changes get
16469 propagated back to all the places they're supposed to be.
16470
16471 Grep wants private fixed already mapped.
16472 The main things grep needs to know about mmap are:
16473 * does it exist and is it safe to write into the mmap'd area
16474 * how to use it (BSD variants) */
16475
16476#include <fcntl.h>
16477#include <sys/mman.h>
16478
3185942a 16479#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b80f6443
JA
16480char *malloc ();
16481#endif
16482
16483/* This mess was copied from the GNU getpagesize.h. */
3185942a 16484#ifndef HAVE_GETPAGESIZE
b80f6443 16485/* Assume that all systems that can run configure have sys/param.h. */
3185942a 16486# ifndef HAVE_SYS_PARAM_H
b80f6443
JA
16487# define HAVE_SYS_PARAM_H 1
16488# endif
16489
16490# ifdef _SC_PAGESIZE
16491# define getpagesize() sysconf(_SC_PAGESIZE)
16492# else /* no _SC_PAGESIZE */
3185942a 16493# ifdef HAVE_SYS_PARAM_H
b80f6443
JA
16494# include <sys/param.h>
16495# ifdef EXEC_PAGESIZE
16496# define getpagesize() EXEC_PAGESIZE
16497# else /* no EXEC_PAGESIZE */
16498# ifdef NBPG
16499# define getpagesize() NBPG * CLSIZE
16500# ifndef CLSIZE
16501# define CLSIZE 1
16502# endif /* no CLSIZE */
16503# else /* no NBPG */
16504# ifdef NBPC
16505# define getpagesize() NBPC
16506# else /* no NBPC */
16507# ifdef PAGESIZE
16508# define getpagesize() PAGESIZE
16509# endif /* PAGESIZE */
16510# endif /* no NBPC */
16511# endif /* no NBPG */
16512# endif /* no EXEC_PAGESIZE */
16513# else /* no HAVE_SYS_PARAM_H */
16514# define getpagesize() 8192 /* punt totally */
16515# endif /* no HAVE_SYS_PARAM_H */
16516# endif /* no _SC_PAGESIZE */
16517
16518#endif /* no HAVE_GETPAGESIZE */
16519
16520int
16521main ()
16522{
16523 char *data, *data2, *data3;
16524 int i, pagesize;
16525 int fd;
16526
16527 pagesize = getpagesize ();
16528
16529 /* First, make a file with some known garbage in it. */
16530 data = (char *) malloc (pagesize);
16531 if (!data)
3185942a 16532 return 1;
b80f6443
JA
16533 for (i = 0; i < pagesize; ++i)
16534 *(data + i) = rand ();
16535 umask (0);
16536 fd = creat ("conftest.mmap", 0600);
16537 if (fd < 0)
3185942a 16538 return 1;
b80f6443 16539 if (write (fd, data, pagesize) != pagesize)
3185942a 16540 return 1;
b80f6443
JA
16541 close (fd);
16542
16543 /* Next, try to mmap the file at a fixed address which already has
16544 something else allocated at it. If we can, also make sure that
16545 we see the same garbage. */
16546 fd = open ("conftest.mmap", O_RDWR);
16547 if (fd < 0)
3185942a 16548 return 1;
b80f6443
JA
16549 data2 = (char *) malloc (2 * pagesize);
16550 if (!data2)
3185942a
JA
16551 return 1;
16552 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b80f6443 16553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
0628567a 16554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3185942a 16555 return 1;
b80f6443
JA
16556 for (i = 0; i < pagesize; ++i)
16557 if (*(data + i) != *(data2 + i))
3185942a 16558 return 1;
b80f6443
JA
16559
16560 /* Finally, make sure that changes to the mapped area do not
16561 percolate back to the file as seen by read(). (This is a bug on
16562 some variants of i386 svr4.0.) */
16563 for (i = 0; i < pagesize; ++i)
16564 *(data2 + i) = *(data2 + i) + 1;
16565 data3 = (char *) malloc (pagesize);
16566 if (!data3)
3185942a 16567 return 1;
b80f6443 16568 if (read (fd, data3, pagesize) != pagesize)
3185942a 16569 return 1;
b80f6443
JA
16570 for (i = 0; i < pagesize; ++i)
16571 if (*(data + i) != *(data3 + i))
3185942a 16572 return 1;
b80f6443 16573 close (fd);
3185942a 16574 return 0;
b80f6443
JA
16575}
16576_ACEOF
16577rm -f conftest$ac_exeext
3185942a
JA
16578if { (ac_try="$ac_link"
16579case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16584$as_echo "$ac_try_echo") >&5
16585 (eval "$ac_link") 2>&5
b80f6443 16586 ac_status=$?
3185942a 16587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 16588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
16593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16594$as_echo "$ac_try_echo") >&5
16595 (eval "$ac_try") 2>&5
b80f6443 16596 ac_status=$?
3185942a 16597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
16598 (exit $ac_status); }; }; then
16599 ac_cv_func_mmap_fixed_mapped=yes
16600else
3185942a
JA
16601 $as_echo "$as_me: program exited with status $ac_status" >&5
16602$as_echo "$as_me: failed program was:" >&5
0628567a
JA
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
b80f6443
JA
16605( exit $ac_status )
16606ac_cv_func_mmap_fixed_mapped=no
16607fi
3185942a
JA
16608rm -rf conftest.dSYM
16609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 16610fi
3185942a
JA
16611
16612
b80f6443 16613fi
3185942a
JA
16614{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16615$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b80f6443
JA
16616if test $ac_cv_func_mmap_fixed_mapped = yes; then
16617
16618cat >>confdefs.h <<\_ACEOF
16619#define HAVE_MMAP 1
16620_ACEOF
16621
16622fi
16623rm -f conftest.mmap
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16635 munmap stpcpy strcspn strdup
16636do
3185942a
JA
16637as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16638{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16639$as_echo_n "checking for $ac_func... " >&6; }
16640if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16641 $as_echo_n "(cached) " >&6
b80f6443
JA
16642else
16643 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16644/* confdefs.h. */
16645_ACEOF
16646cat confdefs.h >>conftest.$ac_ext
16647cat >>conftest.$ac_ext <<_ACEOF
16648/* end confdefs.h. */
16649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16651#define $ac_func innocuous_$ac_func
16652
b80f6443 16653/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
16654 which can conflict with char $ac_func (); below.
16655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16656 <limits.h> exists even on freestanding compilers. */
16657
16658#ifdef __STDC__
16659# include <limits.h>
16660#else
16661# include <assert.h>
16662#endif
16663
16664#undef $ac_func
16665
3185942a
JA
16666/* Override any GCC internal prototype to avoid an error.
16667 Use char because int might match the return type of a GCC
16668 builtin and then its argument prototype would still apply. */
b80f6443
JA
16669#ifdef __cplusplus
16670extern "C"
b80f6443 16671#endif
b80f6443
JA
16672char $ac_func ();
16673/* The GNU C library defines this for functions which it implements
16674 to always fail with ENOSYS. Some functions are actually named
16675 something starting with __ and the normal name is an alias. */
3185942a 16676#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 16677choke me
b80f6443
JA
16678#endif
16679
0628567a
JA
16680int
16681main ()
16682{
3185942a 16683return $ac_func ();
b80f6443
JA
16684 ;
16685 return 0;
16686}
16687_ACEOF
16688rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
16689if { (ac_try="$ac_link"
16690case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693esac
16694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16695$as_echo "$ac_try_echo") >&5
16696 (eval "$ac_link") 2>conftest.er1
b80f6443 16697 ac_status=$?
0628567a
JA
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
3185942a
JA
16701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } && {
16703 test -z "$ac_c_werror_flag" ||
16704 test ! -s conftest.err
16705 } && test -s conftest$ac_exeext && {
16706 test "$cross_compiling" = yes ||
16707 $as_test_x conftest$ac_exeext
16708 }; then
b80f6443
JA
16709 eval "$as_ac_var=yes"
16710else
3185942a 16711 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
3185942a 16714 eval "$as_ac_var=no"
b80f6443 16715fi
3185942a
JA
16716
16717rm -rf conftest.dSYM
16718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 16719 conftest$ac_exeext conftest.$ac_ext
b80f6443 16720fi
3185942a
JA
16721ac_res=`eval 'as_val=${'$as_ac_var'}
16722 $as_echo "$as_val"'`
16723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16724$as_echo "$ac_res" >&6; }
16725as_val=`eval 'as_val=${'$as_ac_var'}
16726 $as_echo "$as_val"'`
16727 if test "x$as_val" = x""yes; then
b80f6443 16728 cat >>confdefs.h <<_ACEOF
3185942a 16729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 16730_ACEOF
7117c2d2 16731
b80f6443
JA
16732fi
16733done
7117c2d2 16734
7117c2d2 16735
b80f6443
JA
16736INTL_DEP= INTL_INC= LIBINTL_H=
16737if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16738 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16739 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16740 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16741fi
7117c2d2 16742
7117c2d2 16743
7117c2d2 16744
7117c2d2 16745
7117c2d2 16746
7117c2d2 16747
7117c2d2 16748
b80f6443
JA
16749for ac_header in wctype.h
16750do
3185942a
JA
16751as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16754$as_echo_n "checking for $ac_header... " >&6; }
16755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 $as_echo_n "(cached) " >&6
16757fi
16758ac_res=`eval 'as_val=${'$as_ac_Header'}
16759 $as_echo "$as_val"'`
16760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16761$as_echo "$ac_res" >&6; }
b80f6443
JA
16762else
16763 # Is the header compilable?
3185942a
JA
16764{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16765$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16766cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16767/* confdefs.h. */
16768_ACEOF
16769cat confdefs.h >>conftest.$ac_ext
16770cat >>conftest.$ac_ext <<_ACEOF
16771/* end confdefs.h. */
b80f6443
JA
16772$ac_includes_default
16773#include <$ac_header>
16774_ACEOF
16775rm -f conftest.$ac_objext
3185942a
JA
16776if { (ac_try="$ac_compile"
16777case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780esac
16781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16782$as_echo "$ac_try_echo") >&5
16783 (eval "$ac_compile") 2>conftest.er1
b80f6443 16784 ac_status=$?
0628567a
JA
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
3185942a
JA
16788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } && {
16790 test -z "$ac_c_werror_flag" ||
16791 test ! -s conftest.err
16792 } && test -s conftest.$ac_objext; then
b80f6443
JA
16793 ac_header_compiler=yes
16794else
3185942a 16795 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
3185942a 16798 ac_header_compiler=no
b80f6443 16799fi
3185942a
JA
16800
16801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16803$as_echo "$ac_header_compiler" >&6; }
7117c2d2 16804
b80f6443 16805# Is the header present?
3185942a
JA
16806{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16807$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16808cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
b80f6443
JA
16814#include <$ac_header>
16815_ACEOF
3185942a
JA
16816if { (ac_try="$ac_cpp conftest.$ac_ext"
16817case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16822$as_echo "$ac_try_echo") >&5
16823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 16824 ac_status=$?
0628567a 16825 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
16826 rm -f conftest.er1
16827 cat conftest.err >&5
3185942a
JA
16828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } >/dev/null && {
16830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 }; then
b80f6443
JA
16833 ac_header_preproc=yes
16834else
3185942a 16835 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16836sed 's/^/| /' conftest.$ac_ext >&5
16837
b80f6443
JA
16838 ac_header_preproc=no
16839fi
3185942a 16840
b80f6443 16841rm -f conftest.err conftest.$ac_ext
3185942a
JA
16842{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16843$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16844
16845# So? What about this header?
0628567a
JA
16846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16847 yes:no: )
3185942a
JA
16848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16849$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16851$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
16852 ac_header_preproc=yes
16853 ;;
16854 no:yes:* )
3185942a
JA
16855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16856$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16858$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16860$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16862$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16864$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16866$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16867 ( cat <<\_ASBOX
0628567a
JA
16868## ------------------------------- ##
16869## Report this to bug-bash@gnu.org ##
16870## ------------------------------- ##
16871_ASBOX
3185942a 16872 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16873 ;;
b80f6443 16874esac
3185942a
JA
16875{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16876$as_echo_n "checking for $ac_header... " >&6; }
16877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16878 $as_echo_n "(cached) " >&6
b80f6443 16879else
0628567a 16880 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 16881fi
3185942a
JA
16882ac_res=`eval 'as_val=${'$as_ac_Header'}
16883 $as_echo "$as_val"'`
16884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16885$as_echo "$ac_res" >&6; }
b80f6443
JA
16886
16887fi
3185942a
JA
16888as_val=`eval 'as_val=${'$as_ac_Header'}
16889 $as_echo "$as_val"'`
16890 if test "x$as_val" = x""yes; then
b80f6443 16891 cat >>confdefs.h <<_ACEOF
3185942a 16892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
16893_ACEOF
16894
16895fi
16896
16897done
16898
16899
16900for ac_header in wchar.h
16901do
3185942a
JA
16902as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16905$as_echo_n "checking for $ac_header... " >&6; }
16906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16907 $as_echo_n "(cached) " >&6
16908fi
16909ac_res=`eval 'as_val=${'$as_ac_Header'}
16910 $as_echo "$as_val"'`
16911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16912$as_echo "$ac_res" >&6; }
b80f6443
JA
16913else
16914 # Is the header compilable?
3185942a
JA
16915{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16916$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16917cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16918/* confdefs.h. */
16919_ACEOF
16920cat confdefs.h >>conftest.$ac_ext
16921cat >>conftest.$ac_ext <<_ACEOF
16922/* end confdefs.h. */
b80f6443
JA
16923$ac_includes_default
16924#include <$ac_header>
16925_ACEOF
16926rm -f conftest.$ac_objext
3185942a
JA
16927if { (ac_try="$ac_compile"
16928case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931esac
16932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16933$as_echo "$ac_try_echo") >&5
16934 (eval "$ac_compile") 2>conftest.er1
b80f6443 16935 ac_status=$?
0628567a
JA
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
3185942a
JA
16939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest.$ac_objext; then
b80f6443
JA
16944 ac_header_compiler=yes
16945else
3185942a 16946 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
3185942a 16949 ac_header_compiler=no
b80f6443 16950fi
3185942a
JA
16951
16952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16954$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
16955
16956# Is the header present?
3185942a
JA
16957{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16958$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16959cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
b80f6443
JA
16965#include <$ac_header>
16966_ACEOF
3185942a
JA
16967if { (ac_try="$ac_cpp conftest.$ac_ext"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973$as_echo "$ac_try_echo") >&5
16974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 16975 ac_status=$?
0628567a 16976 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
16977 rm -f conftest.er1
16978 cat conftest.err >&5
3185942a
JA
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } >/dev/null && {
16981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 }; then
b80f6443
JA
16984 ac_header_preproc=yes
16985else
3185942a 16986 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
b80f6443
JA
16989 ac_header_preproc=no
16990fi
3185942a 16991
b80f6443 16992rm -f conftest.err conftest.$ac_ext
3185942a
JA
16993{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16994$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16995
16996# So? What about this header?
0628567a
JA
16997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16998 yes:no: )
3185942a
JA
16999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17000$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17002$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
17003 ac_header_preproc=yes
17004 ;;
17005 no:yes:* )
3185942a
JA
17006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17007$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17009$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17011$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17013$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17015$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17017$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17018 ( cat <<\_ASBOX
0628567a
JA
17019## ------------------------------- ##
17020## Report this to bug-bash@gnu.org ##
17021## ------------------------------- ##
17022_ASBOX
3185942a 17023 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 17024 ;;
b80f6443 17025esac
3185942a
JA
17026{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17027$as_echo_n "checking for $ac_header... " >&6; }
17028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029 $as_echo_n "(cached) " >&6
7117c2d2 17030else
0628567a 17031 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 17032fi
3185942a
JA
17033ac_res=`eval 'as_val=${'$as_ac_Header'}
17034 $as_echo "$as_val"'`
17035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17036$as_echo "$ac_res" >&6; }
b80f6443 17037
7117c2d2 17038fi
3185942a
JA
17039as_val=`eval 'as_val=${'$as_ac_Header'}
17040 $as_echo "$as_val"'`
17041 if test "x$as_val" = x""yes; then
b80f6443 17042 cat >>confdefs.h <<_ACEOF
3185942a 17043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
17044_ACEOF
17045
7117c2d2
JA
17046fi
17047
b80f6443
JA
17048done
17049
17050
17051for ac_header in langinfo.h
7117c2d2 17052do
3185942a
JA
17053as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17056$as_echo_n "checking for $ac_header... " >&6; }
17057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17058 $as_echo_n "(cached) " >&6
17059fi
17060ac_res=`eval 'as_val=${'$as_ac_Header'}
17061 $as_echo "$as_val"'`
17062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17063$as_echo "$ac_res" >&6; }
7117c2d2 17064else
b80f6443 17065 # Is the header compilable?
3185942a
JA
17066{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17067$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 17068cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
b80f6443
JA
17074$ac_includes_default
17075#include <$ac_header>
17076_ACEOF
17077rm -f conftest.$ac_objext
3185942a
JA
17078if { (ac_try="$ac_compile"
17079case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17084$as_echo "$ac_try_echo") >&5
17085 (eval "$ac_compile") 2>conftest.er1
b80f6443 17086 ac_status=$?
0628567a
JA
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
3185942a
JA
17090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest.$ac_objext; then
b80f6443
JA
17095 ac_header_compiler=yes
17096else
3185942a 17097 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
3185942a 17100 ac_header_compiler=no
b80f6443 17101fi
3185942a
JA
17102
17103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17105$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
17106
17107# Is the header present?
3185942a
JA
17108{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17109$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 17110cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
7117c2d2
JA
17116#include <$ac_header>
17117_ACEOF
3185942a
JA
17118if { (ac_try="$ac_cpp conftest.$ac_ext"
17119case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122esac
17123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17124$as_echo "$ac_try_echo") >&5
17125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7117c2d2 17126 ac_status=$?
0628567a 17127 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
17128 rm -f conftest.er1
17129 cat conftest.err >&5
3185942a
JA
17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } >/dev/null && {
17132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 }; then
b80f6443 17135 ac_header_preproc=yes
7117c2d2 17136else
3185942a 17137 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
b80f6443 17140 ac_header_preproc=no
7117c2d2 17141fi
3185942a 17142
7117c2d2 17143rm -f conftest.err conftest.$ac_ext
3185942a
JA
17144{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17145$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
17146
17147# So? What about this header?
0628567a
JA
17148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17149 yes:no: )
3185942a
JA
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17151$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17153$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
17154 ac_header_preproc=yes
17155 ;;
17156 no:yes:* )
3185942a
JA
17157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17158$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17160$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17162$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17164$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17166$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17168$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17169 ( cat <<\_ASBOX
0628567a
JA
17170## ------------------------------- ##
17171## Report this to bug-bash@gnu.org ##
17172## ------------------------------- ##
17173_ASBOX
3185942a 17174 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 17175 ;;
b80f6443 17176esac
3185942a
JA
17177{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17178$as_echo_n "checking for $ac_header... " >&6; }
17179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17180 $as_echo_n "(cached) " >&6
b80f6443 17181else
0628567a 17182 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 17183fi
3185942a
JA
17184ac_res=`eval 'as_val=${'$as_ac_Header'}
17185 $as_echo "$as_val"'`
17186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17187$as_echo "$ac_res" >&6; }
b80f6443
JA
17188
17189fi
3185942a
JA
17190as_val=`eval 'as_val=${'$as_ac_Header'}
17191 $as_echo "$as_val"'`
17192 if test "x$as_val" = x""yes; then
b80f6443 17193 cat >>confdefs.h <<_ACEOF
3185942a 17194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 17195_ACEOF
7117c2d2
JA
17196
17197fi
b80f6443 17198
7117c2d2
JA
17199done
17200
b80f6443 17201
3185942a
JA
17202{ $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17203$as_echo_n "checking for mbrlen... " >&6; }
17204if test "${ac_cv_func_mbrlen+set}" = set; then
17205 $as_echo_n "(cached) " >&6
7117c2d2
JA
17206else
17207 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
3185942a 17213/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
0628567a 17214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3185942a 17215#define mbrlen innocuous_mbrlen
0628567a 17216
7117c2d2 17217/* System header to define __stub macros and hopefully few prototypes,
3185942a 17218 which can conflict with char mbrlen (); below.
0628567a
JA
17219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17220 <limits.h> exists even on freestanding compilers. */
17221
17222#ifdef __STDC__
17223# include <limits.h>
17224#else
17225# include <assert.h>
17226#endif
17227
3185942a 17228#undef mbrlen
0628567a 17229
3185942a
JA
17230/* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
7117c2d2
JA
17233#ifdef __cplusplus
17234extern "C"
17235#endif
3185942a 17236char mbrlen ();
7117c2d2
JA
17237/* The GNU C library defines this for functions which it implements
17238 to always fail with ENOSYS. Some functions are actually named
17239 something starting with __ and the normal name is an alias. */
3185942a 17240#if defined __stub_mbrlen || defined __stub___mbrlen
7117c2d2 17241choke me
7117c2d2
JA
17242#endif
17243
0628567a
JA
17244int
17245main ()
17246{
3185942a 17247return mbrlen ();
7117c2d2
JA
17248 ;
17249 return 0;
17250}
17251_ACEOF
17252rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17253if { (ac_try="$ac_link"
17254case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17259$as_echo "$ac_try_echo") >&5
17260 (eval "$ac_link") 2>conftest.er1
7117c2d2 17261 ac_status=$?
0628567a
JA
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
3185942a
JA
17265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } && {
17267 test -z "$ac_c_werror_flag" ||
17268 test ! -s conftest.err
17269 } && test -s conftest$ac_exeext && {
17270 test "$cross_compiling" = yes ||
17271 $as_test_x conftest$ac_exeext
17272 }; then
17273 ac_cv_func_mbrlen=yes
7117c2d2 17274else
3185942a 17275 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
3185942a 17278 ac_cv_func_mbrlen=no
7117c2d2 17279fi
3185942a
JA
17280
17281rm -rf conftest.dSYM
17282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17283 conftest$ac_exeext conftest.$ac_ext
7117c2d2 17284fi
3185942a
JA
17285{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17286$as_echo "$ac_cv_func_mbrlen" >&6; }
17287if test "x$ac_cv_func_mbrlen" = x""yes; then
b80f6443 17288 cat >>confdefs.h <<\_ACEOF
3185942a 17289#define HAVE_MBRLEN 1
b80f6443 17290_ACEOF
7117c2d2
JA
17291
17292fi
7117c2d2 17293
0001803f
CR
17294{ $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17295$as_echo_n "checking for mbscasecmp... " >&6; }
17296if test "${ac_cv_func_mbscasecmp+set}" = set; then
3185942a 17297 $as_echo_n "(cached) " >&6
7117c2d2 17298else
b80f6443 17299 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17300/* confdefs.h. */
17301_ACEOF
17302cat confdefs.h >>conftest.$ac_ext
17303cat >>conftest.$ac_ext <<_ACEOF
17304/* end confdefs.h. */
0001803f 17305/* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
0628567a 17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
0001803f 17307#define mbscasecmp innocuous_mbscasecmp
0628567a 17308
b80f6443 17309/* System header to define __stub macros and hopefully few prototypes,
0001803f 17310 which can conflict with char mbscasecmp (); below.
0628567a
JA
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17313
17314#ifdef __STDC__
17315# include <limits.h>
17316#else
17317# include <assert.h>
17318#endif
17319
0001803f 17320#undef mbscasecmp
0628567a 17321
3185942a
JA
17322/* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
7117c2d2
JA
17325#ifdef __cplusplus
17326extern "C"
17327#endif
0001803f 17328char mbscasecmp ();
b80f6443
JA
17329/* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
0001803f 17332#if defined __stub_mbscasecmp || defined __stub___mbscasecmp
b80f6443 17333choke me
3185942a
JA
17334#endif
17335
17336int
17337main ()
17338{
0001803f 17339return mbscasecmp ();
3185942a
JA
17340 ;
17341 return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext conftest$ac_exeext
17345if { (ac_try="$ac_link"
17346case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
17350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351$as_echo "$ac_try_echo") >&5
17352 (eval "$ac_link") 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext && {
17362 test "$cross_compiling" = yes ||
17363 $as_test_x conftest$ac_exeext
17364 }; then
0001803f 17365 ac_cv_func_mbscasecmp=yes
3185942a
JA
17366else
17367 $as_echo "$as_me: failed program was:" >&5
17368sed 's/^/| /' conftest.$ac_ext >&5
17369
0001803f 17370 ac_cv_func_mbscasecmp=no
3185942a
JA
17371fi
17372
17373rm -rf conftest.dSYM
17374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17375 conftest$ac_exeext conftest.$ac_ext
17376fi
0001803f
CR
17377{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17378$as_echo "$ac_cv_func_mbscasecmp" >&6; }
17379if test "x$ac_cv_func_mbscasecmp" = x""yes; then
3185942a
JA
17380 cat >>confdefs.h <<\_ACEOF
17381#define HAVE_MBSCMP 1
17382_ACEOF
17383
17384fi
17385
0001803f
CR
17386{ $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17387$as_echo_n "checking for mbscmp... " >&6; }
17388if test "${ac_cv_func_mbscmp+set}" = set; then
3185942a
JA
17389 $as_echo_n "(cached) " >&6
17390else
17391 cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
0001803f 17397/* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
3185942a 17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
0001803f 17399#define mbscmp innocuous_mbscmp
3185942a
JA
17400
17401/* System header to define __stub macros and hopefully few prototypes,
0001803f 17402 which can conflict with char mbscmp (); below.
3185942a
JA
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17405
17406#ifdef __STDC__
17407# include <limits.h>
b80f6443 17408#else
3185942a 17409# include <assert.h>
0628567a 17410#endif
3185942a 17411
0001803f 17412#undef mbscmp
3185942a
JA
17413
17414/* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
0628567a 17417#ifdef __cplusplus
3185942a
JA
17418extern "C"
17419#endif
0001803f 17420char mbscmp ();
3185942a
JA
17421/* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
0001803f 17424#if defined __stub_mbscmp || defined __stub___mbscmp
3185942a 17425choke me
b80f6443
JA
17426#endif
17427
0628567a
JA
17428int
17429main ()
17430{
0001803f 17431return mbscmp ();
7117c2d2
JA
17432 ;
17433 return 0;
17434}
17435_ACEOF
17436rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17437if { (ac_try="$ac_link"
17438case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17443$as_echo "$ac_try_echo") >&5
17444 (eval "$ac_link") 2>conftest.er1
7117c2d2 17445 ac_status=$?
0628567a
JA
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
3185942a
JA
17449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && {
17451 test -z "$ac_c_werror_flag" ||
17452 test ! -s conftest.err
17453 } && test -s conftest$ac_exeext && {
17454 test "$cross_compiling" = yes ||
17455 $as_test_x conftest$ac_exeext
17456 }; then
0001803f 17457 ac_cv_func_mbscmp=yes
f73dda09 17458else
3185942a 17459 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
0001803f 17462 ac_cv_func_mbscmp=no
f73dda09 17463fi
3185942a
JA
17464
17465rm -rf conftest.dSYM
17466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17467 conftest$ac_exeext conftest.$ac_ext
f73dda09 17468fi
0001803f
CR
17469{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17470$as_echo "$ac_cv_func_mbscmp" >&6; }
17471if test "x$ac_cv_func_mbscmp" = x""yes; then
b80f6443 17472 cat >>confdefs.h <<\_ACEOF
0001803f 17473#define HAVE_MBSCMP 1
b80f6443 17474_ACEOF
f73dda09
JA
17475
17476fi
17477
495aee44
CR
17478{ $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17479$as_echo_n "checking for mbsnrtowcs... " >&6; }
17480if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17481 $as_echo_n "(cached) " >&6
17482else
17483 cat >conftest.$ac_ext <<_ACEOF
17484/* confdefs.h. */
17485_ACEOF
17486cat confdefs.h >>conftest.$ac_ext
17487cat >>conftest.$ac_ext <<_ACEOF
17488/* end confdefs.h. */
17489/* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17491#define mbsnrtowcs innocuous_mbsnrtowcs
17492
17493/* System header to define __stub macros and hopefully few prototypes,
17494 which can conflict with char mbsnrtowcs (); below.
17495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17496 <limits.h> exists even on freestanding compilers. */
17497
17498#ifdef __STDC__
17499# include <limits.h>
17500#else
17501# include <assert.h>
17502#endif
17503
17504#undef mbsnrtowcs
17505
17506/* Override any GCC internal prototype to avoid an error.
17507 Use char because int might match the return type of a GCC
17508 builtin and then its argument prototype would still apply. */
17509#ifdef __cplusplus
17510extern "C"
17511#endif
17512char mbsnrtowcs ();
17513/* The GNU C library defines this for functions which it implements
17514 to always fail with ENOSYS. Some functions are actually named
17515 something starting with __ and the normal name is an alias. */
17516#if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17517choke me
17518#endif
17519
17520int
17521main ()
17522{
17523return mbsnrtowcs ();
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext conftest$ac_exeext
17529if { (ac_try="$ac_link"
17530case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17535$as_echo "$ac_try_echo") >&5
17536 (eval "$ac_link") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest$ac_exeext && {
17546 test "$cross_compiling" = yes ||
17547 $as_test_x conftest$ac_exeext
17548 }; then
17549 ac_cv_func_mbsnrtowcs=yes
17550else
17551 $as_echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554 ac_cv_func_mbsnrtowcs=no
17555fi
17556
17557rm -rf conftest.dSYM
17558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559 conftest$ac_exeext conftest.$ac_ext
17560fi
17561{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17562$as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17563if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
17564 cat >>confdefs.h <<\_ACEOF
17565#define HAVE_MBSNRTOWCS 1
17566_ACEOF
17567
17568fi
17569
0001803f
CR
17570{ $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17571$as_echo_n "checking for mbsrtowcs... " >&6; }
17572if test "${ac_cv_func_mbsrtowcs+set}" = set; then
3185942a 17573 $as_echo_n "(cached) " >&6
f73dda09
JA
17574else
17575 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17576/* confdefs.h. */
17577_ACEOF
17578cat confdefs.h >>conftest.$ac_ext
17579cat >>conftest.$ac_ext <<_ACEOF
17580/* end confdefs.h. */
0001803f 17581/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
0628567a 17582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
0001803f 17583#define mbsrtowcs innocuous_mbsrtowcs
0628567a 17584
f73dda09 17585/* System header to define __stub macros and hopefully few prototypes,
0001803f 17586 which can conflict with char mbsrtowcs (); below.
0628567a
JA
17587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17588 <limits.h> exists even on freestanding compilers. */
17589
17590#ifdef __STDC__
17591# include <limits.h>
17592#else
17593# include <assert.h>
17594#endif
17595
0001803f 17596#undef mbsrtowcs
0628567a 17597
3185942a
JA
17598/* Override any GCC internal prototype to avoid an error.
17599 Use char because int might match the return type of a GCC
17600 builtin and then its argument prototype would still apply. */
f73dda09
JA
17601#ifdef __cplusplus
17602extern "C"
17603#endif
0001803f 17604char mbsrtowcs ();
f73dda09
JA
17605/* The GNU C library defines this for functions which it implements
17606 to always fail with ENOSYS. Some functions are actually named
17607 something starting with __ and the normal name is an alias. */
0001803f 17608#if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
f73dda09 17609choke me
f73dda09
JA
17610#endif
17611
0628567a
JA
17612int
17613main ()
17614{
0001803f 17615return mbsrtowcs ();
f73dda09
JA
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17621if { (ac_try="$ac_link"
17622case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625esac
17626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17627$as_echo "$ac_try_echo") >&5
17628 (eval "$ac_link") 2>conftest.er1
f73dda09 17629 ac_status=$?
0628567a
JA
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
3185942a
JA
17633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && {
17635 test -z "$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17637 } && test -s conftest$ac_exeext && {
17638 test "$cross_compiling" = yes ||
17639 $as_test_x conftest$ac_exeext
17640 }; then
0001803f 17641 ac_cv_func_mbsrtowcs=yes
f73dda09 17642else
3185942a 17643 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17644sed 's/^/| /' conftest.$ac_ext >&5
17645
0001803f 17646 ac_cv_func_mbsrtowcs=no
ccc6cda3 17647fi
3185942a
JA
17648
17649rm -rf conftest.dSYM
17650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17651 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 17652fi
0001803f
CR
17653{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17654$as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17655if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
b80f6443 17656 cat >>confdefs.h <<\_ACEOF
0001803f 17657#define HAVE_MBSRTOWCS 1
7117c2d2 17658_ACEOF
7117c2d2
JA
17659
17660fi
7117c2d2 17661
0001803f
CR
17662
17663
495aee44 17664
0001803f
CR
17665for ac_func in mbschr
17666do
17667as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17669$as_echo_n "checking for $ac_func... " >&6; }
17670if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3185942a 17671 $as_echo_n "(cached) " >&6
7117c2d2
JA
17672else
17673 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
0001803f 17679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
0628567a 17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
0001803f 17681#define $ac_func innocuous_$ac_func
0628567a 17682
b80f6443 17683/* System header to define __stub macros and hopefully few prototypes,
0001803f 17684 which can conflict with char $ac_func (); below.
0628567a
JA
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17687
17688#ifdef __STDC__
17689# include <limits.h>
17690#else
17691# include <assert.h>
17692#endif
17693
0001803f 17694#undef $ac_func
0628567a 17695
3185942a
JA
17696/* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
b80f6443
JA
17699#ifdef __cplusplus
17700extern "C"
b80f6443 17701#endif
0001803f 17702char $ac_func ();
b80f6443
JA
17703/* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
0001803f 17706#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 17707choke me
b80f6443 17708#endif
7117c2d2 17709
0628567a
JA
17710int
17711main ()
17712{
0001803f 17713return $ac_func ();
b80f6443
JA
17714 ;
17715 return 0;
17716}
7117c2d2 17717_ACEOF
b80f6443 17718rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17719if { (ac_try="$ac_link"
17720case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17725$as_echo "$ac_try_echo") >&5
17726 (eval "$ac_link") 2>conftest.er1
b80f6443 17727 ac_status=$?
0628567a
JA
17728 grep -v '^ *+' conftest.er1 >conftest.err
17729 rm -f conftest.er1
17730 cat conftest.err >&5
3185942a
JA
17731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest$ac_exeext && {
17736 test "$cross_compiling" = yes ||
17737 $as_test_x conftest$ac_exeext
17738 }; then
0001803f 17739 eval "$as_ac_var=yes"
7117c2d2 17740else
3185942a 17741 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
0001803f 17744 eval "$as_ac_var=no"
7117c2d2 17745fi
3185942a
JA
17746
17747rm -rf conftest.dSYM
17748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17749 conftest$ac_exeext conftest.$ac_ext
7117c2d2 17750fi
0001803f
CR
17751ac_res=`eval 'as_val=${'$as_ac_var'}
17752 $as_echo "$as_val"'`
17753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17754$as_echo "$ac_res" >&6; }
17755as_val=`eval 'as_val=${'$as_ac_var'}
17756 $as_echo "$as_val"'`
17757 if test "x$as_val" = x""yes; then
17758 cat >>confdefs.h <<_ACEOF
17759#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 17760_ACEOF
7117c2d2 17761
0001803f
CR
17762else
17763 case " $LIBOBJS " in
17764 *" $ac_func.$ac_objext "* ) ;;
17765 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17766 ;;
17767esac
17768
7117c2d2 17769fi
0001803f 17770done
7117c2d2 17771
0001803f
CR
17772
17773
17774{ $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17775$as_echo_n "checking for wcrtomb... " >&6; }
17776if test "${ac_cv_func_wcrtomb+set}" = set; then
17777 $as_echo_n "(cached) " >&6
17778else
17779 cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17787#define wcrtomb innocuous_wcrtomb
17788
17789/* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char wcrtomb (); below.
17791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17792 <limits.h> exists even on freestanding compilers. */
17793
17794#ifdef __STDC__
17795# include <limits.h>
17796#else
17797# include <assert.h>
17798#endif
17799
17800#undef wcrtomb
17801
17802/* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805#ifdef __cplusplus
17806extern "C"
17807#endif
17808char wcrtomb ();
17809/* The GNU C library defines this for functions which it implements
17810 to always fail with ENOSYS. Some functions are actually named
17811 something starting with __ and the normal name is an alias. */
17812#if defined __stub_wcrtomb || defined __stub___wcrtomb
17813choke me
17814#endif
17815
17816int
17817main ()
17818{
17819return wcrtomb ();
17820 ;
17821 return 0;
17822}
17823_ACEOF
17824rm -f conftest.$ac_objext conftest$ac_exeext
17825if { (ac_try="$ac_link"
17826case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831$as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17833 ac_status=$?
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17844 }; then
17845 ac_cv_func_wcrtomb=yes
17846else
17847 $as_echo "$as_me: failed program was:" >&5
17848sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 ac_cv_func_wcrtomb=no
17851fi
17852
17853rm -rf conftest.dSYM
17854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17856fi
17857{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17858$as_echo "$ac_cv_func_wcrtomb" >&6; }
17859if test "x$ac_cv_func_wcrtomb" = x""yes; then
17860 cat >>confdefs.h <<\_ACEOF
17861#define HAVE_WCRTOMB 1
17862_ACEOF
17863
17864fi
17865
17866{ $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17867$as_echo_n "checking for wcscoll... " >&6; }
17868if test "${ac_cv_func_wcscoll+set}" = set; then
17869 $as_echo_n "(cached) " >&6
17870else
17871 cat >conftest.$ac_ext <<_ACEOF
17872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
17877/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17879#define wcscoll innocuous_wcscoll
17880
17881/* System header to define __stub macros and hopefully few prototypes,
17882 which can conflict with char wcscoll (); below.
17883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17884 <limits.h> exists even on freestanding compilers. */
17885
17886#ifdef __STDC__
17887# include <limits.h>
17888#else
17889# include <assert.h>
17890#endif
17891
17892#undef wcscoll
17893
17894/* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897#ifdef __cplusplus
17898extern "C"
17899#endif
17900char wcscoll ();
17901/* The GNU C library defines this for functions which it implements
17902 to always fail with ENOSYS. Some functions are actually named
17903 something starting with __ and the normal name is an alias. */
17904#if defined __stub_wcscoll || defined __stub___wcscoll
17905choke me
17906#endif
17907
17908int
17909main ()
17910{
17911return wcscoll ();
17912 ;
17913 return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext conftest$ac_exeext
17917if { (ac_try="$ac_link"
17918case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17923$as_echo "$ac_try_echo") >&5
17924 (eval "$ac_link") 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && {
17931 test -z "$ac_c_werror_flag" ||
17932 test ! -s conftest.err
17933 } && test -s conftest$ac_exeext && {
17934 test "$cross_compiling" = yes ||
17935 $as_test_x conftest$ac_exeext
17936 }; then
17937 ac_cv_func_wcscoll=yes
17938else
17939 $as_echo "$as_me: failed program was:" >&5
17940sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 ac_cv_func_wcscoll=no
17943fi
17944
17945rm -rf conftest.dSYM
17946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17947 conftest$ac_exeext conftest.$ac_ext
17948fi
17949{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17950$as_echo "$ac_cv_func_wcscoll" >&6; }
17951if test "x$ac_cv_func_wcscoll" = x""yes; then
17952 cat >>confdefs.h <<\_ACEOF
17953#define HAVE_WCSCOLL 1
17954_ACEOF
17955
17956fi
17957
17958{ $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17959$as_echo_n "checking for wcsdup... " >&6; }
17960if test "${ac_cv_func_wcsdup+set}" = set; then
3185942a 17961 $as_echo_n "(cached) " >&6
7117c2d2
JA
17962else
17963 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
17969/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971#define wcsdup innocuous_wcsdup
17972
17973/* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char wcsdup (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17977
17978#ifdef __STDC__
17979# include <limits.h>
17980#else
17981# include <assert.h>
17982#endif
17983
17984#undef wcsdup
17985
3185942a
JA
17986/* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
7117c2d2
JA
17989#ifdef __cplusplus
17990extern "C"
17991#endif
0628567a
JA
17992char wcsdup ();
17993/* The GNU C library defines this for functions which it implements
17994 to always fail with ENOSYS. Some functions are actually named
17995 something starting with __ and the normal name is an alias. */
3185942a 17996#if defined __stub_wcsdup || defined __stub___wcsdup
0628567a 17997choke me
95732b49 17998#endif
0628567a 17999
95732b49
JA
18000int
18001main ()
18002{
3185942a 18003return wcsdup ();
0628567a
JA
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18009if { (ac_try="$ac_link"
18010case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013esac
18014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18015$as_echo "$ac_try_echo") >&5
18016 (eval "$ac_link") 2>conftest.er1
0628567a
JA
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
3185942a
JA
18021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } && {
18023 test -z "$ac_c_werror_flag" ||
18024 test ! -s conftest.err
18025 } && test -s conftest$ac_exeext && {
18026 test "$cross_compiling" = yes ||
18027 $as_test_x conftest$ac_exeext
18028 }; then
0628567a
JA
18029 ac_cv_func_wcsdup=yes
18030else
3185942a 18031 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18032sed 's/^/| /' conftest.$ac_ext >&5
18033
3185942a 18034 ac_cv_func_wcsdup=no
0628567a 18035fi
3185942a
JA
18036
18037rm -rf conftest.dSYM
18038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
18039 conftest$ac_exeext conftest.$ac_ext
18040fi
3185942a
JA
18041{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18042$as_echo "$ac_cv_func_wcsdup" >&6; }
18043if test "x$ac_cv_func_wcsdup" = x""yes; then
0628567a
JA
18044 cat >>confdefs.h <<\_ACEOF
18045#define HAVE_WCSDUP 1
18046_ACEOF
18047
18048fi
18049
3185942a
JA
18050{ $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
18051$as_echo_n "checking for wcwidth... " >&6; }
0628567a 18052if test "${ac_cv_func_wcwidth+set}" = set; then
3185942a 18053 $as_echo_n "(cached) " >&6
0628567a
JA
18054else
18055 cat >conftest.$ac_ext <<_ACEOF
18056/* confdefs.h. */
18057_ACEOF
18058cat confdefs.h >>conftest.$ac_ext
18059cat >>conftest.$ac_ext <<_ACEOF
18060/* end confdefs.h. */
18061/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18063#define wcwidth innocuous_wcwidth
18064
18065/* System header to define __stub macros and hopefully few prototypes,
18066 which can conflict with char wcwidth (); below.
18067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068 <limits.h> exists even on freestanding compilers. */
18069
18070#ifdef __STDC__
18071# include <limits.h>
18072#else
18073# include <assert.h>
18074#endif
18075
18076#undef wcwidth
18077
3185942a
JA
18078/* Override any GCC internal prototype to avoid an error.
18079 Use char because int might match the return type of a GCC
18080 builtin and then its argument prototype would still apply. */
0628567a
JA
18081#ifdef __cplusplus
18082extern "C"
0628567a 18083#endif
0628567a 18084char wcwidth ();
7117c2d2
JA
18085/* The GNU C library defines this for functions which it implements
18086 to always fail with ENOSYS. Some functions are actually named
18087 something starting with __ and the normal name is an alias. */
3185942a 18088#if defined __stub_wcwidth || defined __stub___wcwidth
7117c2d2 18089choke me
7117c2d2
JA
18090#endif
18091
0628567a
JA
18092int
18093main ()
18094{
3185942a 18095return wcwidth ();
7117c2d2
JA
18096 ;
18097 return 0;
18098}
18099_ACEOF
18100rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18101if { (ac_try="$ac_link"
18102case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18107$as_echo "$ac_try_echo") >&5
18108 (eval "$ac_link") 2>conftest.er1
7117c2d2 18109 ac_status=$?
0628567a
JA
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
3185942a
JA
18113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } && {
18115 test -z "$ac_c_werror_flag" ||
18116 test ! -s conftest.err
18117 } && test -s conftest$ac_exeext && {
18118 test "$cross_compiling" = yes ||
18119 $as_test_x conftest$ac_exeext
18120 }; then
b80f6443 18121 ac_cv_func_wcwidth=yes
7117c2d2 18122else
3185942a 18123 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
3185942a 18126 ac_cv_func_wcwidth=no
7117c2d2 18127fi
3185942a
JA
18128
18129rm -rf conftest.dSYM
18130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18131 conftest$ac_exeext conftest.$ac_ext
7117c2d2 18132fi
3185942a
JA
18133{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18134$as_echo "$ac_cv_func_wcwidth" >&6; }
18135if test "x$ac_cv_func_wcwidth" = x""yes; then
b80f6443
JA
18136 cat >>confdefs.h <<\_ACEOF
18137#define HAVE_WCWIDTH 1
18138_ACEOF
7117c2d2
JA
18139
18140fi
18141
3185942a
JA
18142{ $as_echo "$as_me:$LINENO: checking for wctype" >&5
18143$as_echo_n "checking for wctype... " >&6; }
0628567a 18144if test "${ac_cv_func_wctype+set}" = set; then
3185942a 18145 $as_echo_n "(cached) " >&6
7117c2d2
JA
18146else
18147 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18148/* confdefs.h. */
18149_ACEOF
18150cat confdefs.h >>conftest.$ac_ext
18151cat >>conftest.$ac_ext <<_ACEOF
18152/* end confdefs.h. */
18153/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18155#define wctype innocuous_wctype
18156
7117c2d2 18157/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
18158 which can conflict with char wctype (); below.
18159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18160 <limits.h> exists even on freestanding compilers. */
18161
18162#ifdef __STDC__
18163# include <limits.h>
18164#else
18165# include <assert.h>
18166#endif
18167
18168#undef wctype
18169
3185942a
JA
18170/* Override any GCC internal prototype to avoid an error.
18171 Use char because int might match the return type of a GCC
18172 builtin and then its argument prototype would still apply. */
7117c2d2
JA
18173#ifdef __cplusplus
18174extern "C"
18175#endif
0628567a
JA
18176char wctype ();
18177/* The GNU C library defines this for functions which it implements
18178 to always fail with ENOSYS. Some functions are actually named
18179 something starting with __ and the normal name is an alias. */
3185942a 18180#if defined __stub_wctype || defined __stub___wctype
0628567a 18181choke me
0628567a
JA
18182#endif
18183
95732b49
JA
18184int
18185main ()
18186{
3185942a 18187return wctype ();
0628567a
JA
18188 ;
18189 return 0;
18190}
18191_ACEOF
18192rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18193if { (ac_try="$ac_link"
18194case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197esac
18198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199$as_echo "$ac_try_echo") >&5
18200 (eval "$ac_link") 2>conftest.er1
0628567a
JA
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
3185942a
JA
18205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest$ac_exeext && {
18210 test "$cross_compiling" = yes ||
18211 $as_test_x conftest$ac_exeext
18212 }; then
0628567a
JA
18213 ac_cv_func_wctype=yes
18214else
3185942a 18215 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
3185942a 18218 ac_cv_func_wctype=no
0628567a 18219fi
3185942a
JA
18220
18221rm -rf conftest.dSYM
18222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
18223 conftest$ac_exeext conftest.$ac_ext
18224fi
3185942a
JA
18225{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18226$as_echo "$ac_cv_func_wctype" >&6; }
18227if test "x$ac_cv_func_wctype" = x""yes; then
0628567a
JA
18228 cat >>confdefs.h <<\_ACEOF
18229#define HAVE_WCTYPE 1
18230_ACEOF
18231
18232fi
18233
18234
18235
495aee44
CR
18236for ac_func in wcswidth
18237do
18238as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18239{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18240$as_echo_n "checking for $ac_func... " >&6; }
18241if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3185942a 18242 $as_echo_n "(cached) " >&6
0628567a
JA
18243else
18244 cat >conftest.$ac_ext <<_ACEOF
18245/* confdefs.h. */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h. */
495aee44
CR
18250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18252#define $ac_func innocuous_$ac_func
18253
18254/* System header to define __stub macros and hopefully few prototypes,
18255 which can conflict with char $ac_func (); below.
18256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18257 <limits.h> exists even on freestanding compilers. */
18258
18259#ifdef __STDC__
18260# include <limits.h>
18261#else
18262# include <assert.h>
18263#endif
18264
18265#undef $ac_func
18266
18267/* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18270#ifdef __cplusplus
18271extern "C"
18272#endif
18273char $ac_func ();
18274/* The GNU C library defines this for functions which it implements
18275 to always fail with ENOSYS. Some functions are actually named
18276 something starting with __ and the normal name is an alias. */
18277#if defined __stub_$ac_func || defined __stub___$ac_func
18278choke me
18279#endif
18280
18281int
18282main ()
18283{
18284return $ac_func ();
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest.$ac_objext conftest$ac_exeext
18290if { (ac_try="$ac_link"
18291case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18296$as_echo "$ac_try_echo") >&5
18297 (eval "$ac_link") 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && {
18304 test -z "$ac_c_werror_flag" ||
18305 test ! -s conftest.err
18306 } && test -s conftest$ac_exeext && {
18307 test "$cross_compiling" = yes ||
18308 $as_test_x conftest$ac_exeext
18309 }; then
18310 eval "$as_ac_var=yes"
18311else
18312 $as_echo "$as_me: failed program was:" >&5
18313sed 's/^/| /' conftest.$ac_ext >&5
18314
18315 eval "$as_ac_var=no"
18316fi
18317
18318rm -rf conftest.dSYM
18319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18320 conftest$ac_exeext conftest.$ac_ext
18321fi
18322ac_res=`eval 'as_val=${'$as_ac_var'}
18323 $as_echo "$as_val"'`
18324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18325$as_echo "$ac_res" >&6; }
18326as_val=`eval 'as_val=${'$as_ac_var'}
18327 $as_echo "$as_val"'`
18328 if test "x$as_val" = x""yes; then
18329 cat >>confdefs.h <<_ACEOF
18330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18331_ACEOF
18332
18333else
18334 case " $LIBOBJS " in
18335 *" $ac_func.$ac_objext "* ) ;;
18336 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18337 ;;
18338esac
18339
18340fi
18341done
18342
18343
18344
18345
18346 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18347$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18348if test "${ac_cv_func_mbrtowc+set}" = set; then
18349 $as_echo_n "(cached) " >&6
18350else
18351 cat >conftest.$ac_ext <<_ACEOF
18352/* confdefs.h. */
18353_ACEOF
18354cat confdefs.h >>conftest.$ac_ext
18355cat >>conftest.$ac_ext <<_ACEOF
18356/* end confdefs.h. */
18357#include <wchar.h>
18358int
18359main ()
18360{
18361wchar_t wc;
18362 char const s[] = "";
18363 size_t n = 1;
18364 mbstate_t state;
18365 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18366 ;
18367 return 0;
18368}
0628567a
JA
18369_ACEOF
18370rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18371if { (ac_try="$ac_link"
18372case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375esac
18376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18377$as_echo "$ac_try_echo") >&5
18378 (eval "$ac_link") 2>conftest.er1
0628567a
JA
18379 ac_status=$?
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
3185942a
JA
18383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest$ac_exeext && {
18388 test "$cross_compiling" = yes ||
18389 $as_test_x conftest$ac_exeext
18390 }; then
0628567a
JA
18391 ac_cv_func_mbrtowc=yes
18392else
3185942a 18393 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
3185942a 18396 ac_cv_func_mbrtowc=no
0628567a 18397fi
3185942a
JA
18398
18399rm -rf conftest.dSYM
18400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
18401 conftest$ac_exeext conftest.$ac_ext
18402fi
3185942a
JA
18403{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18404$as_echo "$ac_cv_func_mbrtowc" >&6; }
0628567a
JA
18405 if test $ac_cv_func_mbrtowc = yes; then
18406
18407cat >>confdefs.h <<\_ACEOF
18408#define HAVE_MBRTOWC 1
18409_ACEOF
18410
18411 fi
18412
18413if test $ac_cv_func_mbrtowc = yes; then
18414 cat >>confdefs.h <<\_ACEOF
18415#define HAVE_MBSTATE_T 1
18416_ACEOF
18417
18418fi
18419
18420
18421
18422
18423
18424
18425for ac_func in iswlower iswupper towlower towupper iswctype
18426do
3185942a
JA
18427as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18428{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18429$as_echo_n "checking for $ac_func... " >&6; }
18430if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18431 $as_echo_n "(cached) " >&6
0628567a
JA
18432else
18433 cat >conftest.$ac_ext <<_ACEOF
18434/* confdefs.h. */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h. */
18439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18441#define $ac_func innocuous_$ac_func
18442
18443/* System header to define __stub macros and hopefully few prototypes,
18444 which can conflict with char $ac_func (); below.
18445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18446 <limits.h> exists even on freestanding compilers. */
18447
18448#ifdef __STDC__
18449# include <limits.h>
18450#else
18451# include <assert.h>
18452#endif
18453
18454#undef $ac_func
18455
3185942a
JA
18456/* Override any GCC internal prototype to avoid an error.
18457 Use char because int might match the return type of a GCC
18458 builtin and then its argument prototype would still apply. */
0628567a
JA
18459#ifdef __cplusplus
18460extern "C"
0628567a 18461#endif
0628567a 18462char $ac_func ();
7117c2d2
JA
18463/* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
3185942a 18466#if defined __stub_$ac_func || defined __stub___$ac_func
7117c2d2 18467choke me
7117c2d2
JA
18468#endif
18469
0628567a
JA
18470int
18471main ()
18472{
3185942a 18473return $ac_func ();
0628567a
JA
18474 ;
18475 return 0;
18476}
18477_ACEOF
18478rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18479if { (ac_try="$ac_link"
18480case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483esac
18484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18485$as_echo "$ac_try_echo") >&5
18486 (eval "$ac_link") 2>conftest.er1
0628567a
JA
18487 ac_status=$?
18488 grep -v '^ *+' conftest.er1 >conftest.err
18489 rm -f conftest.er1
18490 cat conftest.err >&5
3185942a
JA
18491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest$ac_exeext && {
18496 test "$cross_compiling" = yes ||
18497 $as_test_x conftest$ac_exeext
18498 }; then
0628567a
JA
18499 eval "$as_ac_var=yes"
18500else
3185942a 18501 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18502sed 's/^/| /' conftest.$ac_ext >&5
18503
3185942a 18504 eval "$as_ac_var=no"
0628567a 18505fi
3185942a
JA
18506
18507rm -rf conftest.dSYM
18508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
18509 conftest$ac_exeext conftest.$ac_ext
18510fi
3185942a
JA
18511ac_res=`eval 'as_val=${'$as_ac_var'}
18512 $as_echo "$as_val"'`
18513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18514$as_echo "$ac_res" >&6; }
18515as_val=`eval 'as_val=${'$as_ac_var'}
18516 $as_echo "$as_val"'`
18517 if test "x$as_val" = x""yes; then
0628567a 18518 cat >>confdefs.h <<_ACEOF
3185942a 18519#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
0628567a
JA
18520_ACEOF
18521
18522fi
18523done
18524
18525
3185942a
JA
18526{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18527$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
0628567a 18528if test "${bash_cv_langinfo_codeset+set}" = set; then
3185942a 18529 $as_echo_n "(cached) " >&6
0628567a
JA
18530else
18531 cat >conftest.$ac_ext <<_ACEOF
18532/* confdefs.h. */
18533_ACEOF
18534cat confdefs.h >>conftest.$ac_ext
18535cat >>conftest.$ac_ext <<_ACEOF
18536/* end confdefs.h. */
18537#include <langinfo.h>
18538int
18539main ()
18540{
18541char* cs = nl_langinfo(CODESET);
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18547if { (ac_try="$ac_link"
18548case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18553$as_echo "$ac_try_echo") >&5
18554 (eval "$ac_link") 2>conftest.er1
0628567a
JA
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
3185942a
JA
18559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest$ac_exeext && {
18564 test "$cross_compiling" = yes ||
18565 $as_test_x conftest$ac_exeext
18566 }; then
0628567a
JA
18567 bash_cv_langinfo_codeset=yes
18568else
3185942a 18569 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18570sed 's/^/| /' conftest.$ac_ext >&5
18571
3185942a 18572 bash_cv_langinfo_codeset=no
0628567a 18573fi
3185942a
JA
18574
18575rm -rf conftest.dSYM
18576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
18577 conftest$ac_exeext conftest.$ac_ext
18578fi
3185942a
JA
18579{ $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18580$as_echo "$bash_cv_langinfo_codeset" >&6; }
0628567a
JA
18581if test $bash_cv_langinfo_codeset = yes; then
18582 cat >>confdefs.h <<\_ACEOF
18583#define HAVE_LANGINFO_CODESET 1
18584_ACEOF
18585
18586fi
18587
3185942a
JA
18588{ $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18589$as_echo_n "checking for wchar_t in wchar.h... " >&6; }
0628567a 18590if test "${bash_cv_type_wchar_t+set}" = set; then
3185942a 18591 $as_echo_n "(cached) " >&6
0628567a
JA
18592else
18593 cat >conftest.$ac_ext <<_ACEOF
18594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
18599#include <wchar.h>
18600
18601int
18602main ()
18603{
18604
18605 wchar_t foo;
18606 foo = 0;
18607
7117c2d2
JA
18608 ;
18609 return 0;
18610}
18611_ACEOF
0628567a 18612rm -f conftest.$ac_objext
3185942a
JA
18613if { (ac_try="$ac_compile"
18614case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617esac
18618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18619$as_echo "$ac_try_echo") >&5
18620 (eval "$ac_compile") 2>conftest.er1
7117c2d2 18621 ac_status=$?
0628567a
JA
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
3185942a
JA
18625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest.$ac_objext; then
0628567a 18630 bash_cv_type_wchar_t=yes
7117c2d2 18631else
3185942a 18632 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
3185942a 18635 bash_cv_type_wchar_t=no
7117c2d2 18636fi
3185942a
JA
18637
18638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 18639fi
3185942a
JA
18640{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18641$as_echo "$bash_cv_type_wchar_t" >&6; }
0628567a
JA
18642if test $bash_cv_type_wchar_t = yes; then
18643
18644cat >>confdefs.h <<\_ACEOF
18645#define HAVE_WCHAR_T 1
b80f6443 18646_ACEOF
7117c2d2
JA
18647
18648fi
18649
3185942a
JA
18650{ $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18651$as_echo_n "checking for wctype_t in wctype.h... " >&6; }
0628567a 18652if test "${bash_cv_type_wctype_t+set}" = set; then
3185942a 18653 $as_echo_n "(cached) " >&6
7117c2d2
JA
18654else
18655 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18656/* confdefs.h. */
18657_ACEOF
18658cat confdefs.h >>conftest.$ac_ext
18659cat >>conftest.$ac_ext <<_ACEOF
18660/* end confdefs.h. */
18661#include <wctype.h>
7117c2d2
JA
18662int
18663main ()
18664{
b80f6443 18665
0628567a
JA
18666 wctype_t foo;
18667 foo = 0;
b80f6443
JA
18668
18669 ;
7117c2d2
JA
18670 return 0;
18671}
18672_ACEOF
b80f6443 18673rm -f conftest.$ac_objext
3185942a
JA
18674if { (ac_try="$ac_compile"
18675case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678esac
18679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18680$as_echo "$ac_try_echo") >&5
18681 (eval "$ac_compile") 2>conftest.er1
7117c2d2 18682 ac_status=$?
0628567a
JA
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
3185942a
JA
18686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest.$ac_objext; then
0628567a 18691 bash_cv_type_wctype_t=yes
7117c2d2 18692else
3185942a 18693 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
3185942a 18696 bash_cv_type_wctype_t=no
7117c2d2 18697fi
3185942a
JA
18698
18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 18700fi
3185942a
JA
18701{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18702$as_echo "$bash_cv_type_wctype_t" >&6; }
0628567a
JA
18703if test $bash_cv_type_wctype_t = yes; then
18704
18705cat >>confdefs.h <<\_ACEOF
18706#define HAVE_WCTYPE_T 1
b80f6443 18707_ACEOF
7117c2d2
JA
18708
18709fi
18710
3185942a
JA
18711{ $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18712$as_echo_n "checking for wint_t in wctype.h... " >&6; }
0628567a 18713if test "${bash_cv_type_wint_t+set}" = set; then
3185942a 18714 $as_echo_n "(cached) " >&6
7117c2d2
JA
18715else
18716 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722#include <wctype.h>
7117c2d2
JA
18723int
18724main ()
18725{
0628567a
JA
18726
18727 wint_t foo;
18728 foo = 0;
18729
7117c2d2
JA
18730 ;
18731 return 0;
18732}
18733_ACEOF
0628567a 18734rm -f conftest.$ac_objext
3185942a
JA
18735if { (ac_try="$ac_compile"
18736case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739esac
18740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18741$as_echo "$ac_try_echo") >&5
18742 (eval "$ac_compile") 2>conftest.er1
7117c2d2 18743 ac_status=$?
0628567a
JA
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
3185942a
JA
18747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } && {
18749 test -z "$ac_c_werror_flag" ||
18750 test ! -s conftest.err
18751 } && test -s conftest.$ac_objext; then
0628567a 18752 bash_cv_type_wint_t=yes
7117c2d2 18753else
3185942a 18754 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
3185942a 18757 bash_cv_type_wint_t=no
7117c2d2 18758fi
3185942a
JA
18759
18760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 18761fi
3185942a
JA
18762{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18763$as_echo "$bash_cv_type_wint_t" >&6; }
0628567a
JA
18764if test $bash_cv_type_wint_t = yes; then
18765
18766cat >>confdefs.h <<\_ACEOF
18767#define HAVE_WINT_T 1
b80f6443 18768_ACEOF
7117c2d2
JA
18769
18770fi
18771
0001803f
CR
18772if test "$am_cv_func_iconv" = yes; then
18773 OLDLIBS="$LIBS"
18774 LIBS="$LIBS $LIBICONV"
18775
18776for ac_func in locale_charset
18777do
18778as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18779{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18780$as_echo_n "checking for $ac_func... " >&6; }
18781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18782 $as_echo_n "(cached) " >&6
18783else
18784 cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h. */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h. */
18790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18792#define $ac_func innocuous_$ac_func
18793
18794/* System header to define __stub macros and hopefully few prototypes,
18795 which can conflict with char $ac_func (); below.
18796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797 <limits.h> exists even on freestanding compilers. */
18798
18799#ifdef __STDC__
18800# include <limits.h>
18801#else
18802# include <assert.h>
18803#endif
18804
18805#undef $ac_func
18806
18807/* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810#ifdef __cplusplus
18811extern "C"
18812#endif
18813char $ac_func ();
18814/* The GNU C library defines this for functions which it implements
18815 to always fail with ENOSYS. Some functions are actually named
18816 something starting with __ and the normal name is an alias. */
18817#if defined __stub_$ac_func || defined __stub___$ac_func
18818choke me
18819#endif
18820
18821int
18822main ()
18823{
18824return $ac_func ();
18825 ;
18826 return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext conftest$ac_exeext
18830if { (ac_try="$ac_link"
18831case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834esac
18835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18836$as_echo "$ac_try_echo") >&5
18837 (eval "$ac_link") 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext && {
18847 test "$cross_compiling" = yes ||
18848 $as_test_x conftest$ac_exeext
18849 }; then
18850 eval "$as_ac_var=yes"
18851else
18852 $as_echo "$as_me: failed program was:" >&5
18853sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 eval "$as_ac_var=no"
18856fi
18857
18858rm -rf conftest.dSYM
18859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18860 conftest$ac_exeext conftest.$ac_ext
18861fi
18862ac_res=`eval 'as_val=${'$as_ac_var'}
18863 $as_echo "$as_val"'`
18864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18865$as_echo "$ac_res" >&6; }
18866as_val=`eval 'as_val=${'$as_ac_var'}
18867 $as_echo "$as_val"'`
18868 if test "x$as_val" = x""yes; then
18869 cat >>confdefs.h <<_ACEOF
18870#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18871_ACEOF
18872
18873fi
18874done
18875
18876 LIBS="$OLDLIBS"
18877fi
18878
b80f6443
JA
18879
18880
f73dda09
JA
18881if test "$opt_static_link" != yes; then
18882
3185942a
JA
18883{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18884$as_echo_n "checking for dlopen in -ldl... " >&6; }
f73dda09 18885if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3185942a 18886 $as_echo_n "(cached) " >&6
ccc6cda3 18887else
f73dda09
JA
18888 ac_check_lib_save_LIBS=$LIBS
18889LIBS="-ldl $LIBS"
18890cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18891/* confdefs.h. */
18892_ACEOF
18893cat confdefs.h >>conftest.$ac_ext
18894cat >>conftest.$ac_ext <<_ACEOF
18895/* end confdefs.h. */
f73dda09 18896
3185942a
JA
18897/* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
f73dda09
JA
18900#ifdef __cplusplus
18901extern "C"
18902#endif
f73dda09
JA
18903char dlopen ();
18904int
18905main ()
18906{
3185942a 18907return dlopen ();
f73dda09
JA
18908 ;
18909 return 0;
18910}
18911_ACEOF
18912rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18913if { (ac_try="$ac_link"
18914case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917esac
18918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18919$as_echo "$ac_try_echo") >&5
18920 (eval "$ac_link") 2>conftest.er1
f73dda09 18921 ac_status=$?
0628567a
JA
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
3185942a
JA
18925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest$ac_exeext && {
18930 test "$cross_compiling" = yes ||
18931 $as_test_x conftest$ac_exeext
18932 }; then
f73dda09
JA
18933 ac_cv_lib_dl_dlopen=yes
18934else
3185942a 18935 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18936sed 's/^/| /' conftest.$ac_ext >&5
18937
3185942a 18938 ac_cv_lib_dl_dlopen=no
f73dda09 18939fi
3185942a
JA
18940
18941rm -rf conftest.dSYM
18942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18943 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
18944LIBS=$ac_check_lib_save_LIBS
18945fi
3185942a
JA
18946{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18947$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18948if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
b80f6443 18949 cat >>confdefs.h <<_ACEOF
f73dda09 18950#define HAVE_LIBDL 1
b80f6443 18951_ACEOF
f73dda09
JA
18952
18953 LIBS="-ldl $LIBS"
18954
ccc6cda3 18955fi
ccc6cda3 18956
b80f6443
JA
18957
18958
18959
f73dda09 18960for ac_func in dlopen dlclose dlsym
bb70624e 18961do
3185942a
JA
18962as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18964$as_echo_n "checking for $ac_func... " >&6; }
18965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966 $as_echo_n "(cached) " >&6
bb70624e 18967else
f73dda09 18968 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18969/* confdefs.h. */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h. */
18974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976#define $ac_func innocuous_$ac_func
18977
f73dda09 18978/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18982
18983#ifdef __STDC__
18984# include <limits.h>
18985#else
18986# include <assert.h>
18987#endif
18988
18989#undef $ac_func
18990
3185942a
JA
18991/* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
f73dda09
JA
18994#ifdef __cplusplus
18995extern "C"
18996#endif
f73dda09 18997char $ac_func ();
f73dda09
JA
18998/* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
3185942a 19001#if defined __stub_$ac_func || defined __stub___$ac_func
f73dda09 19002choke me
f73dda09
JA
19003#endif
19004
0628567a
JA
19005int
19006main ()
19007{
3185942a 19008return $ac_func ();
f73dda09
JA
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19014if { (ac_try="$ac_link"
19015case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020$as_echo "$ac_try_echo") >&5
19021 (eval "$ac_link") 2>conftest.er1
f73dda09 19022 ac_status=$?
0628567a
JA
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
3185942a
JA
19026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext && {
19031 test "$cross_compiling" = yes ||
19032 $as_test_x conftest$ac_exeext
19033 }; then
f73dda09
JA
19034 eval "$as_ac_var=yes"
19035else
3185942a 19036 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
3185942a 19039 eval "$as_ac_var=no"
f73dda09 19040fi
3185942a
JA
19041
19042rm -rf conftest.dSYM
19043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19044 conftest$ac_exeext conftest.$ac_ext
f73dda09 19045fi
3185942a
JA
19046ac_res=`eval 'as_val=${'$as_ac_var'}
19047 $as_echo "$as_val"'`
19048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19049$as_echo "$ac_res" >&6; }
19050as_val=`eval 'as_val=${'$as_ac_var'}
19051 $as_echo "$as_val"'`
19052 if test "x$as_val" = x""yes; then
b80f6443 19053 cat >>confdefs.h <<_ACEOF
3185942a 19054#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 19055_ACEOF
f73dda09 19056
bb70624e 19057fi
f73dda09
JA
19058done
19059
bb70624e 19060fi
f73dda09 19061
3185942a
JA
19062{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19063$as_echo_n "checking whether sys_siglist is declared... " >&6; }
0628567a 19064if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
3185942a 19065 $as_echo_n "(cached) " >&6
f73dda09
JA
19066else
19067 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
95732b49
JA
19073#include <signal.h>
19074/* NetBSD declares sys_siglist in unistd.h. */
3185942a 19075#ifdef HAVE_UNISTD_H
95732b49
JA
19076# include <unistd.h>
19077#endif
19078
0628567a 19079
f73dda09
JA
19080int
19081main ()
19082{
0628567a 19083#ifndef sys_siglist
3185942a 19084 (void) sys_siglist;
0628567a
JA
19085#endif
19086
f73dda09
JA
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
3185942a
JA
19092if { (ac_try="$ac_compile"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19098$as_echo "$ac_try_echo") >&5
19099 (eval "$ac_compile") 2>conftest.er1
f73dda09 19100 ac_status=$?
0628567a
JA
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
3185942a
JA
19104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && {
19106 test -z "$ac_c_werror_flag" ||
19107 test ! -s conftest.err
19108 } && test -s conftest.$ac_objext; then
0628567a 19109 ac_cv_have_decl_sys_siglist=yes
bb70624e 19110else
3185942a 19111 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
3185942a 19114 ac_cv_have_decl_sys_siglist=no
bb70624e 19115fi
3185942a
JA
19116
19117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19118fi
3185942a
JA
19119{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19120$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19121if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
b80f6443 19122
0628567a
JA
19123cat >>confdefs.h <<_ACEOF
19124#define HAVE_DECL_SYS_SIGLIST 1
19125_ACEOF
19126
19127
19128else
19129 cat >>confdefs.h <<_ACEOF
19130#define HAVE_DECL_SYS_SIGLIST 0
b80f6443 19131_ACEOF
bb70624e 19132
0628567a 19133
f73dda09 19134fi
bb70624e 19135
b80f6443 19136
0628567a
JA
19137
19138
bb70624e
JA
19139if test "$ac_cv_func_inet_aton" != 'yes'; then
19140
3185942a
JA
19141{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19142$as_echo_n "checking for inet_aton... " >&6; }
f73dda09 19143if test "${bash_cv_func_inet_aton+set}" = set; then
3185942a 19144 $as_echo_n "(cached) " >&6
bb70624e 19145else
f73dda09 19146 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19147/* confdefs.h. */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
19151/* end confdefs.h. */
bb70624e
JA
19152
19153#include <sys/types.h>
19154#include <netinet/in.h>
19155#include <arpa/inet.h>
19156struct in_addr ap;
f73dda09
JA
19157int
19158main ()
19159{
19160 inet_aton("127.0.0.1", &ap);
19161 ;
19162 return 0;
19163}
19164_ACEOF
19165rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19166if { (ac_try="$ac_link"
19167case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170esac
19171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172$as_echo "$ac_try_echo") >&5
19173 (eval "$ac_link") 2>conftest.er1
f73dda09 19174 ac_status=$?
0628567a
JA
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
3185942a
JA
19178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest$ac_exeext && {
19183 test "$cross_compiling" = yes ||
19184 $as_test_x conftest$ac_exeext
19185 }; then
bb70624e
JA
19186 bash_cv_func_inet_aton=yes
19187else
3185942a 19188 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19189sed 's/^/| /' conftest.$ac_ext >&5
19190
3185942a 19191 bash_cv_func_inet_aton=no
bb70624e 19192fi
3185942a
JA
19193
19194rm -rf conftest.dSYM
19195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19196 conftest$ac_exeext conftest.$ac_ext
bb70624e 19197fi
3185942a
JA
19198{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19199$as_echo "$bash_cv_func_inet_aton" >&6; }
bb70624e 19200if test $bash_cv_func_inet_aton = yes; then
b80f6443 19201 cat >>confdefs.h <<\_ACEOF
bb70624e 19202#define HAVE_INET_ATON 1
b80f6443 19203_ACEOF
bb70624e 19204
f73dda09 19205else
3185942a 19206 case " $LIBOBJS " in
0628567a 19207 *" inet_aton.$ac_objext "* ) ;;
3185942a
JA
19208 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19209 ;;
0628567a
JA
19210esac
19211
bb70624e
JA
19212fi
19213
19214fi
19215
19216case "$host_os" in
f73dda09 19217irix4*)
3185942a
JA
19218{ $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19219$as_echo_n "checking for getpwent in -lsun... " >&6; }
f73dda09 19220if test "${ac_cv_lib_sun_getpwent+set}" = set; then
3185942a 19221 $as_echo_n "(cached) " >&6
bb70624e 19222else
f73dda09 19223 ac_check_lib_save_LIBS=$LIBS
bb70624e 19224LIBS="-lsun $LIBS"
f73dda09 19225cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19226/* confdefs.h. */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
19230/* end confdefs.h. */
f73dda09 19231
3185942a
JA
19232/* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
f73dda09
JA
19235#ifdef __cplusplus
19236extern "C"
19237#endif
f73dda09
JA
19238char getpwent ();
19239int
19240main ()
19241{
3185942a 19242return getpwent ();
f73dda09
JA
19243 ;
19244 return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19248if { (ac_try="$ac_link"
19249case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19252esac
19253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254$as_echo "$ac_try_echo") >&5
19255 (eval "$ac_link") 2>conftest.er1
f73dda09 19256 ac_status=$?
0628567a
JA
19257 grep -v '^ *+' conftest.er1 >conftest.err
19258 rm -f conftest.er1
19259 cat conftest.err >&5
3185942a
JA
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest$ac_exeext && {
19265 test "$cross_compiling" = yes ||
19266 $as_test_x conftest$ac_exeext
19267 }; then
f73dda09
JA
19268 ac_cv_lib_sun_getpwent=yes
19269else
3185942a 19270 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19271sed 's/^/| /' conftest.$ac_ext >&5
19272
3185942a 19273 ac_cv_lib_sun_getpwent=no
f73dda09 19274fi
3185942a
JA
19275
19276rm -rf conftest.dSYM
19277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19278 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
19279LIBS=$ac_check_lib_save_LIBS
19280fi
3185942a
JA
19281{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19282$as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19283if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
b80f6443 19284 cat >>confdefs.h <<_ACEOF
f73dda09 19285#define HAVE_LIBSUN 1
b80f6443 19286_ACEOF
bb70624e
JA
19287
19288 LIBS="-lsun $LIBS"
19289
bb70624e
JA
19290fi
19291 ;;
19292esac
ccc6cda3 19293
d166f048 19294if test "$ac_cv_func_getpeername" = no; then
f73dda09 19295
ccc6cda3
JA
19296if test "X$bash_cv_have_socklib" = "X"; then
19297_bash_needmsg=
19298else
3185942a
JA
19299{ $as_echo "$as_me:$LINENO: checking for socket library" >&5
19300$as_echo_n "checking for socket library... " >&6; }
ccc6cda3
JA
19301_bash_needmsg=yes
19302fi
f73dda09 19303if test "${bash_cv_have_socklib+set}" = set; then
3185942a 19304 $as_echo_n "(cached) " >&6
ccc6cda3 19305else
3185942a
JA
19306 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19307$as_echo_n "checking for getpeername in -lsocket... " >&6; }
f73dda09 19308if test "${ac_cv_lib_socket_getpeername+set}" = set; then
3185942a 19309 $as_echo_n "(cached) " >&6
ccc6cda3 19310else
f73dda09 19311 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 19312LIBS="-lsocket -lnsl $LIBS"
f73dda09 19313cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19314/* confdefs.h. */
19315_ACEOF
19316cat confdefs.h >>conftest.$ac_ext
19317cat >>conftest.$ac_ext <<_ACEOF
19318/* end confdefs.h. */
f73dda09 19319
3185942a
JA
19320/* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
f73dda09
JA
19323#ifdef __cplusplus
19324extern "C"
19325#endif
f73dda09
JA
19326char getpeername ();
19327int
19328main ()
19329{
3185942a 19330return getpeername ();
f73dda09
JA
19331 ;
19332 return 0;
19333}
19334_ACEOF
19335rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19336if { (ac_try="$ac_link"
19337case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19340esac
19341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19342$as_echo "$ac_try_echo") >&5
19343 (eval "$ac_link") 2>conftest.er1
f73dda09 19344 ac_status=$?
0628567a
JA
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
3185942a
JA
19348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext && {
19353 test "$cross_compiling" = yes ||
19354 $as_test_x conftest$ac_exeext
19355 }; then
f73dda09
JA
19356 ac_cv_lib_socket_getpeername=yes
19357else
3185942a 19358 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
3185942a 19361 ac_cv_lib_socket_getpeername=no
f73dda09 19362fi
3185942a
JA
19363
19364rm -rf conftest.dSYM
19365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19366 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
19367LIBS=$ac_check_lib_save_LIBS
19368fi
3185942a
JA
19369{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19370$as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19371if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
ccc6cda3
JA
19372 bash_cv_have_socklib=yes
19373else
f73dda09 19374 bash_cv_have_socklib=no
ccc6cda3
JA
19375fi
19376
19377fi
19378
19379if test "X$_bash_needmsg" = Xyes; then
3185942a
JA
19380 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19381$as_echo "$bash_cv_have_socklib" >&6; }
ccc6cda3
JA
19382 _bash_needmsg=
19383fi
19384if test $bash_cv_have_socklib = yes; then
19385 # check for libnsl, add it to LIBS if present
19386 if test "X$bash_cv_have_libnsl" = "X"; then
19387 _bash_needmsg=
19388 else
3185942a
JA
19389 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19390$as_echo_n "checking for libnsl... " >&6; }
ccc6cda3
JA
19391 _bash_needmsg=yes
19392 fi
f73dda09 19393 if test "${bash_cv_have_libnsl+set}" = set; then
3185942a 19394 $as_echo_n "(cached) " >&6
ccc6cda3 19395else
3185942a
JA
19396 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19397$as_echo_n "checking for t_open in -lnsl... " >&6; }
f73dda09 19398if test "${ac_cv_lib_nsl_t_open+set}" = set; then
3185942a 19399 $as_echo_n "(cached) " >&6
ccc6cda3 19400else
f73dda09 19401 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 19402LIBS="-lnsl $LIBS"
f73dda09 19403cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19404/* confdefs.h. */
19405_ACEOF
19406cat confdefs.h >>conftest.$ac_ext
19407cat >>conftest.$ac_ext <<_ACEOF
19408/* end confdefs.h. */
f73dda09 19409
3185942a
JA
19410/* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
f73dda09
JA
19413#ifdef __cplusplus
19414extern "C"
19415#endif
f73dda09
JA
19416char t_open ();
19417int
19418main ()
19419{
3185942a 19420return t_open ();
f73dda09
JA
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19426if { (ac_try="$ac_link"
19427case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430esac
19431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19432$as_echo "$ac_try_echo") >&5
19433 (eval "$ac_link") 2>conftest.er1
f73dda09 19434 ac_status=$?
0628567a
JA
19435 grep -v '^ *+' conftest.er1 >conftest.err
19436 rm -f conftest.er1
19437 cat conftest.err >&5
3185942a
JA
19438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } && {
19440 test -z "$ac_c_werror_flag" ||
19441 test ! -s conftest.err
19442 } && test -s conftest$ac_exeext && {
19443 test "$cross_compiling" = yes ||
19444 $as_test_x conftest$ac_exeext
19445 }; then
f73dda09
JA
19446 ac_cv_lib_nsl_t_open=yes
19447else
3185942a 19448 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
3185942a 19451 ac_cv_lib_nsl_t_open=no
f73dda09 19452fi
3185942a
JA
19453
19454rm -rf conftest.dSYM
19455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19456 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
19457LIBS=$ac_check_lib_save_LIBS
19458fi
3185942a
JA
19459{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19460$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19461if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
ccc6cda3
JA
19462 bash_cv_have_libnsl=yes
19463else
f73dda09 19464 bash_cv_have_libnsl=no
ccc6cda3
JA
19465fi
19466
19467fi
19468
19469 if test "X$_bash_needmsg" = Xyes; then
3185942a
JA
19470 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19471$as_echo "$bash_cv_have_libnsl" >&6; }
ccc6cda3
JA
19472 _bash_needmsg=
19473 fi
19474 if test $bash_cv_have_libnsl = yes; then
19475 LIBS="-lsocket -lnsl $LIBS"
19476 else
19477 LIBS="-lsocket $LIBS"
19478 fi
b80f6443 19479 cat >>confdefs.h <<\_ACEOF
ccc6cda3 19480#define HAVE_LIBSOCKET 1
b80f6443 19481_ACEOF
ccc6cda3 19482
b80f6443 19483 cat >>confdefs.h <<\_ACEOF
ccc6cda3 19484#define HAVE_GETPEERNAME 1
b80f6443 19485_ACEOF
ccc6cda3
JA
19486
19487fi
19488
bb70624e
JA
19489fi
19490if test "$ac_cv_func_gethostbyname" = no; then
19491 if test "X$bash_cv_have_gethostbyname" = "X"; then
19492_bash_needmsg=yes
19493else
3185942a
JA
19494{ $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19495$as_echo_n "checking for gethostbyname in socket library... " >&6; }
bb70624e
JA
19496_bash_needmsg=
19497fi
f73dda09 19498if test "${bash_cv_have_gethostbyname+set}" = set; then
3185942a 19499 $as_echo_n "(cached) " >&6
bb70624e 19500else
f73dda09 19501 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19502/* confdefs.h. */
19503_ACEOF
19504cat confdefs.h >>conftest.$ac_ext
19505cat >>conftest.$ac_ext <<_ACEOF
19506/* end confdefs.h. */
bb70624e 19507#include <netdb.h>
f73dda09
JA
19508int
19509main ()
19510{
bb70624e
JA
19511 struct hostent *hp;
19512 hp = gethostbyname("localhost");
19513
f73dda09
JA
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19519if { (ac_try="$ac_link"
19520case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19523esac
19524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19525$as_echo "$ac_try_echo") >&5
19526 (eval "$ac_link") 2>conftest.er1
f73dda09 19527 ac_status=$?
0628567a
JA
19528 grep -v '^ *+' conftest.er1 >conftest.err
19529 rm -f conftest.er1
19530 cat conftest.err >&5
3185942a
JA
19531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest$ac_exeext && {
19536 test "$cross_compiling" = yes ||
19537 $as_test_x conftest$ac_exeext
19538 }; then
bb70624e
JA
19539 bash_cv_have_gethostbyname=yes
19540else
3185942a 19541 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
3185942a 19544 bash_cv_have_gethostbyname=no
f73dda09 19545fi
3185942a
JA
19546
19547rm -rf conftest.dSYM
19548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19549 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
19550
19551fi
19552
19553if test "X$_bash_needmsg" = Xyes; then
3185942a
JA
19554 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19555$as_echo_n "checking for gethostbyname in socket library... " >&6; }
f73dda09 19556fi
3185942a
JA
19557{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19558$as_echo "$bash_cv_have_gethostbyname" >&6; }
f73dda09 19559if test "$bash_cv_have_gethostbyname" = yes; then
b80f6443 19560cat >>confdefs.h <<\_ACEOF
f73dda09 19561#define HAVE_GETHOSTBYNAME 1
b80f6443 19562_ACEOF
f73dda09
JA
19563
19564fi
19565
19566fi
19567
3185942a
JA
19568{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19569$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
f73dda09 19570if test "${ac_cv_type_uid_t+set}" = set; then
3185942a 19571 $as_echo_n "(cached) " >&6
f73dda09
JA
19572else
19573 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
f73dda09
JA
19579#include <sys/types.h>
19580
19581_ACEOF
19582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 19583 $EGREP "uid_t" >/dev/null 2>&1; then
f73dda09
JA
19584 ac_cv_type_uid_t=yes
19585else
19586 ac_cv_type_uid_t=no
19587fi
19588rm -f conftest*
19589
19590fi
3185942a
JA
19591{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19592$as_echo "$ac_cv_type_uid_t" >&6; }
f73dda09
JA
19593if test $ac_cv_type_uid_t = no; then
19594
b80f6443 19595cat >>confdefs.h <<\_ACEOF
f73dda09 19596#define uid_t int
b80f6443
JA
19597_ACEOF
19598
f73dda09 19599
b80f6443 19600cat >>confdefs.h <<\_ACEOF
f73dda09 19601#define gid_t int
b80f6443 19602_ACEOF
f73dda09
JA
19603
19604fi
19605
3185942a
JA
19606{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19607$as_echo_n "checking type of array argument to getgroups... " >&6; }
f73dda09 19608if test "${ac_cv_type_getgroups+set}" = set; then
3185942a 19609 $as_echo_n "(cached) " >&6
f73dda09
JA
19610else
19611 if test "$cross_compiling" = yes; then
19612 ac_cv_type_getgroups=cross
19613else
19614 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
f73dda09 19620/* Thanks to Mike Rendell for this test. */
3185942a 19621$ac_includes_default
f73dda09
JA
19622#define NGID 256
19623#undef MAX
19624#define MAX(x, y) ((x) > (y) ? (x) : (y))
19625
19626int
19627main ()
19628{
19629 gid_t gidset[NGID];
19630 int i, n;
3185942a 19631 union { gid_t gval; long int lval; } val;
f73dda09
JA
19632
19633 val.lval = -1;
19634 for (i = 0; i < NGID; i++)
19635 gidset[i] = val.gval;
19636 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
0628567a 19637 gidset);
f73dda09 19638 /* Exit non-zero if getgroups seems to require an array of ints. This
3185942a
JA
19639 happens when gid_t is short int but getgroups modifies an array
19640 of ints. */
19641 return n > 0 && gidset[n] != val.gval;
f73dda09
JA
19642}
19643_ACEOF
19644rm -f conftest$ac_exeext
3185942a
JA
19645if { (ac_try="$ac_link"
19646case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19651$as_echo "$ac_try_echo") >&5
19652 (eval "$ac_link") 2>&5
f73dda09 19653 ac_status=$?
3185942a 19654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659esac
19660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19661$as_echo "$ac_try_echo") >&5
19662 (eval "$ac_try") 2>&5
f73dda09 19663 ac_status=$?
3185942a 19664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19665 (exit $ac_status); }; }; then
19666 ac_cv_type_getgroups=gid_t
19667else
3185942a
JA
19668 $as_echo "$as_me: program exited with status $ac_status" >&5
19669$as_echo "$as_me: failed program was:" >&5
0628567a
JA
19670sed 's/^/| /' conftest.$ac_ext >&5
19671
b80f6443 19672( exit $ac_status )
f73dda09
JA
19673ac_cv_type_getgroups=int
19674fi
3185942a
JA
19675rm -rf conftest.dSYM
19676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 19677fi
3185942a
JA
19678
19679
f73dda09
JA
19680if test $ac_cv_type_getgroups = cross; then
19681 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19682/* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h. */
f73dda09
JA
19687#include <unistd.h>
19688
19689_ACEOF
19690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 19691 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
f73dda09
JA
19692 ac_cv_type_getgroups=gid_t
19693else
19694 ac_cv_type_getgroups=int
bb70624e
JA
19695fi
19696rm -f conftest*
19697
19698fi
f73dda09 19699fi
3185942a
JA
19700{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19701$as_echo "$ac_cv_type_getgroups" >&6; }
f73dda09 19702
b80f6443 19703cat >>confdefs.h <<_ACEOF
f73dda09 19704#define GETGROUPS_T $ac_cv_type_getgroups
b80f6443
JA
19705_ACEOF
19706
f73dda09 19707
3185942a
JA
19708{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
19709$as_echo_n "checking for off_t... " >&6; }
f73dda09 19710if test "${ac_cv_type_off_t+set}" = set; then
3185942a 19711 $as_echo_n "(cached) " >&6
f73dda09 19712else
3185942a
JA
19713 ac_cv_type_off_t=no
19714cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
f73dda09
JA
19720$ac_includes_default
19721int
19722main ()
19723{
f73dda09 19724if (sizeof (off_t))
3185942a 19725 return 0;
f73dda09
JA
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
3185942a
JA
19731if { (ac_try="$ac_compile"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737$as_echo "$ac_try_echo") >&5
19738 (eval "$ac_compile") 2>conftest.er1
f73dda09 19739 ac_status=$?
0628567a
JA
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
3185942a
JA
19743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest.$ac_objext; then
19748 cat >conftest.$ac_ext <<_ACEOF
19749/* confdefs.h. */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
19753/* end confdefs.h. */
19754$ac_includes_default
19755int
19756main ()
19757{
19758if (sizeof ((off_t)))
19759 return 0;
19760 ;
19761 return 0;
19762}
19763_ACEOF
19764rm -f conftest.$ac_objext
19765if { (ac_try="$ac_compile"
19766case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769esac
19770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19771$as_echo "$ac_try_echo") >&5
19772 (eval "$ac_compile") 2>conftest.er1
f73dda09 19773 ac_status=$?
3185942a
JA
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.$ac_objext; then
19782 :
f73dda09 19783else
3185942a 19784 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19785sed 's/^/| /' conftest.$ac_ext >&5
19786
3185942a 19787 ac_cv_type_off_t=yes
f73dda09 19788fi
3185942a
JA
19789
19790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791else
19792 $as_echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795
19796fi
19797
19798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19799fi
3185942a
JA
19800{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19801$as_echo "$ac_cv_type_off_t" >&6; }
19802if test "x$ac_cv_type_off_t" = x""yes; then
f73dda09
JA
19803 :
19804else
19805
b80f6443 19806cat >>confdefs.h <<_ACEOF
3185942a 19807#define off_t long int
b80f6443 19808_ACEOF
f73dda09
JA
19809
19810fi
19811
3185942a
JA
19812{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19813$as_echo_n "checking for mode_t... " >&6; }
f73dda09 19814if test "${ac_cv_type_mode_t+set}" = set; then
3185942a 19815 $as_echo_n "(cached) " >&6
f73dda09 19816else
3185942a
JA
19817 ac_cv_type_mode_t=no
19818cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
f73dda09
JA
19824$ac_includes_default
19825int
19826main ()
19827{
f73dda09 19828if (sizeof (mode_t))
3185942a 19829 return 0;
f73dda09
JA
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
3185942a
JA
19835if { (ac_try="$ac_compile"
19836case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19841$as_echo "$ac_try_echo") >&5
19842 (eval "$ac_compile") 2>conftest.er1
f73dda09 19843 ac_status=$?
0628567a
JA
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
3185942a
JA
19847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 cat >conftest.$ac_ext <<_ACEOF
19853/* confdefs.h. */
19854_ACEOF
19855cat confdefs.h >>conftest.$ac_ext
19856cat >>conftest.$ac_ext <<_ACEOF
19857/* end confdefs.h. */
19858$ac_includes_default
19859int
19860main ()
19861{
19862if (sizeof ((mode_t)))
19863 return 0;
19864 ;
19865 return 0;
19866}
19867_ACEOF
19868rm -f conftest.$ac_objext
19869if { (ac_try="$ac_compile"
19870case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873esac
19874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19875$as_echo "$ac_try_echo") >&5
19876 (eval "$ac_compile") 2>conftest.er1
f73dda09 19877 ac_status=$?
3185942a
JA
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.$ac_objext; then
19886 :
19887else
19888 $as_echo "$as_me: failed program was:" >&5
19889sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ac_cv_type_mode_t=yes
19892fi
19893
19894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19895else
3185942a 19896 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
3185942a 19899
f73dda09 19900fi
3185942a
JA
19901
19902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19903fi
3185942a
JA
19904{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19905$as_echo "$ac_cv_type_mode_t" >&6; }
19906if test "x$ac_cv_type_mode_t" = x""yes; then
f73dda09
JA
19907 :
19908else
bb70624e 19909
b80f6443 19910cat >>confdefs.h <<_ACEOF
f73dda09 19911#define mode_t int
b80f6443 19912_ACEOF
bb70624e
JA
19913
19914fi
19915
3185942a
JA
19916{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19917$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
f73dda09 19918if test "${ac_cv_type_uid_t+set}" = set; then
3185942a 19919 $as_echo_n "(cached) " >&6
ccc6cda3 19920else
f73dda09 19921 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
ccc6cda3 19927#include <sys/types.h>
f73dda09
JA
19928
19929_ACEOF
ccc6cda3 19930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 19931 $EGREP "uid_t" >/dev/null 2>&1; then
ccc6cda3
JA
19932 ac_cv_type_uid_t=yes
19933else
ccc6cda3
JA
19934 ac_cv_type_uid_t=no
19935fi
19936rm -f conftest*
19937
19938fi
3185942a
JA
19939{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19940$as_echo "$ac_cv_type_uid_t" >&6; }
ccc6cda3 19941if test $ac_cv_type_uid_t = no; then
f73dda09 19942
b80f6443 19943cat >>confdefs.h <<\_ACEOF
ccc6cda3 19944#define uid_t int
b80f6443 19945_ACEOF
ccc6cda3 19946
b80f6443
JA
19947
19948cat >>confdefs.h <<\_ACEOF
ccc6cda3 19949#define gid_t int
b80f6443 19950_ACEOF
ccc6cda3
JA
19951
19952fi
19953
3185942a
JA
19954{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19955$as_echo_n "checking for pid_t... " >&6; }
f73dda09 19956if test "${ac_cv_type_pid_t+set}" = set; then
3185942a 19957 $as_echo_n "(cached) " >&6
ccc6cda3 19958else
3185942a
JA
19959 ac_cv_type_pid_t=no
19960cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
f73dda09
JA
19966$ac_includes_default
19967int
19968main ()
ccc6cda3 19969{
f73dda09 19970if (sizeof (pid_t))
3185942a 19971 return 0;
f73dda09
JA
19972 ;
19973 return 0;
ccc6cda3 19974}
f73dda09
JA
19975_ACEOF
19976rm -f conftest.$ac_objext
3185942a
JA
19977if { (ac_try="$ac_compile"
19978case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981esac
19982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983$as_echo "$ac_try_echo") >&5
19984 (eval "$ac_compile") 2>conftest.er1
f73dda09 19985 ac_status=$?
0628567a
JA
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
3185942a
JA
19989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest.$ac_objext; then
f73dda09 19994 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19995/* confdefs.h. */
19996_ACEOF
19997cat confdefs.h >>conftest.$ac_ext
19998cat >>conftest.$ac_ext <<_ACEOF
19999/* end confdefs.h. */
f73dda09
JA
20000$ac_includes_default
20001int
20002main ()
20003{
3185942a
JA
20004if (sizeof ((pid_t)))
20005 return 0;
f73dda09
JA
20006 ;
20007 return 0;
20008}
20009_ACEOF
20010rm -f conftest.$ac_objext
3185942a
JA
20011if { (ac_try="$ac_compile"
20012case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015esac
20016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20017$as_echo "$ac_try_echo") >&5
20018 (eval "$ac_compile") 2>conftest.er1
f73dda09 20019 ac_status=$?
0628567a
JA
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
3185942a
JA
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.$ac_objext; then
20028 :
20029else
20030 $as_echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_cv_type_pid_t=yes
20034fi
20035
20036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20037else
3185942a 20038 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20039sed 's/^/| /' conftest.$ac_ext >&5
20040
3185942a 20041
ccc6cda3 20042fi
3185942a
JA
20043
20044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20045fi
3185942a
JA
20046{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20047$as_echo "$ac_cv_type_pid_t" >&6; }
20048if test "x$ac_cv_type_pid_t" = x""yes; then
f73dda09
JA
20049 :
20050else
ccc6cda3 20051
b80f6443 20052cat >>confdefs.h <<_ACEOF
3185942a 20053#define pid_t int
b80f6443 20054_ACEOF
ccc6cda3 20055
f73dda09 20056fi
ccc6cda3 20057
3185942a
JA
20058{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20059$as_echo_n "checking for size_t... " >&6; }
20060if test "${ac_cv_type_size_t+set}" = set; then
20061 $as_echo_n "(cached) " >&6
ccc6cda3 20062else
3185942a
JA
20063 ac_cv_type_size_t=no
20064cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
f73dda09
JA
20070$ac_includes_default
20071int
20072main ()
20073{
3185942a
JA
20074if (sizeof (size_t))
20075 return 0;
f73dda09
JA
20076 ;
20077 return 0;
20078}
20079_ACEOF
20080rm -f conftest.$ac_objext
3185942a
JA
20081if { (ac_try="$ac_compile"
20082case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085esac
20086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20087$as_echo "$ac_try_echo") >&5
20088 (eval "$ac_compile") 2>conftest.er1
f73dda09 20089 ac_status=$?
0628567a
JA
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
3185942a
JA
20093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } && {
20095 test -z "$ac_c_werror_flag" ||
20096 test ! -s conftest.err
20097 } && test -s conftest.$ac_objext; then
20098 cat >conftest.$ac_ext <<_ACEOF
20099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
20104$ac_includes_default
20105int
20106main ()
20107{
20108if (sizeof ((size_t)))
20109 return 0;
20110 ;
20111 return 0;
20112}
20113_ACEOF
20114rm -f conftest.$ac_objext
20115if { (ac_try="$ac_compile"
20116case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119esac
20120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20121$as_echo "$ac_try_echo") >&5
20122 (eval "$ac_compile") 2>conftest.er1
20123 ac_status=$?
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
20127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest.$ac_objext; then
20132 :
20133else
20134 $as_echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_cv_type_size_t=yes
f73dda09 20138fi
3185942a
JA
20139
20140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141else
20142 $as_echo "$as_me: failed program was:" >&5
20143sed 's/^/| /' conftest.$ac_ext >&5
20144
20145
20146fi
20147
20148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20149fi
3185942a
JA
20150{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20151$as_echo "$ac_cv_type_size_t" >&6; }
20152if test "x$ac_cv_type_size_t" = x""yes; then
f73dda09 20153 :
ccc6cda3 20154else
ccc6cda3 20155
b80f6443 20156cat >>confdefs.h <<_ACEOF
3185942a 20157#define size_t unsigned int
b80f6443 20158_ACEOF
ccc6cda3
JA
20159
20160fi
20161
3185942a
JA
20162{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20163$as_echo_n "checking for ssize_t... " >&6; }
20164if test "${ac_cv_type_ssize_t+set}" = set; then
20165 $as_echo_n "(cached) " >&6
f73dda09 20166else
3185942a
JA
20167 ac_cv_type_ssize_t=no
20168cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174$ac_includes_default
20175int
20176main ()
20177{
20178if (sizeof (ssize_t))
20179 return 0;
20180 ;
20181 return 0;
20182}
20183_ACEOF
20184rm -f conftest.$ac_objext
20185if { (ac_try="$ac_compile"
20186case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189esac
20190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191$as_echo "$ac_try_echo") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
f73dda09 20202 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
f73dda09
JA
20208$ac_includes_default
20209int
20210main ()
20211{
3185942a
JA
20212if (sizeof ((ssize_t)))
20213 return 0;
20214 ;
f73dda09 20215 return 0;
3185942a
JA
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (ac_try="$ac_compile"
20220case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225$as_echo "$ac_try_echo") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20236 :
20237else
20238 $as_echo "$as_me: failed program was:" >&5
20239sed 's/^/| /' conftest.$ac_ext >&5
20240
20241 ac_cv_type_ssize_t=yes
20242fi
20243
20244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245else
20246 $as_echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249
20250fi
20251
20252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253fi
20254{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20255$as_echo "$ac_cv_type_ssize_t" >&6; }
20256if test "x$ac_cv_type_ssize_t" = x""yes; then
20257 :
20258else
20259
20260cat >>confdefs.h <<_ACEOF
20261#define ssize_t int
20262_ACEOF
20263
20264fi
20265
20266{ $as_echo "$as_me:$LINENO: checking for time_t" >&5
20267$as_echo_n "checking for time_t... " >&6; }
20268if test "${ac_cv_type_time_t+set}" = set; then
20269 $as_echo_n "(cached) " >&6
20270else
20271 ac_cv_type_time_t=no
20272cat >conftest.$ac_ext <<_ACEOF
20273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
20278$ac_includes_default
20279int
20280main ()
20281{
f73dda09 20282if (sizeof (time_t))
3185942a 20283 return 0;
f73dda09
JA
20284 ;
20285 return 0;
20286}
20287_ACEOF
20288rm -f conftest.$ac_objext
3185942a
JA
20289if { (ac_try="$ac_compile"
20290case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293esac
20294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20295$as_echo "$ac_try_echo") >&5
20296 (eval "$ac_compile") 2>conftest.er1
f73dda09 20297 ac_status=$?
0628567a
JA
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
3185942a
JA
20301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } && {
20303 test -z "$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20305 } && test -s conftest.$ac_objext; then
20306 cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312$ac_includes_default
20313int
20314main ()
20315{
20316if (sizeof ((time_t)))
20317 return 0;
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (ac_try="$ac_compile"
20324case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329$as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
f73dda09 20331 ac_status=$?
3185942a
JA
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 :
20341else
20342 $as_echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_type_time_t=yes
20346fi
20347
20348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20349else
3185942a 20350 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
3185942a 20353
ccc6cda3 20354fi
3185942a
JA
20355
20356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20357fi
3185942a
JA
20358{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20359$as_echo "$ac_cv_type_time_t" >&6; }
20360if test "x$ac_cv_type_time_t" = x""yes; then
f73dda09
JA
20361 :
20362else
20363
b80f6443 20364cat >>confdefs.h <<_ACEOF
f73dda09 20365#define time_t long
b80f6443 20366_ACEOF
ccc6cda3
JA
20367
20368fi
20369
b80f6443
JA
20370
20371
3185942a
JA
20372{ $as_echo "$as_me:$LINENO: checking for long long" >&5
20373$as_echo_n "checking for long long... " >&6; }
f73dda09 20374if test "${bash_cv_type_long_long+set}" = set; then
3185942a 20375 $as_echo_n "(cached) " >&6
ccc6cda3 20376else
f73dda09 20377 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h. */
ccc6cda3 20383
f73dda09
JA
20384long long ll = 1; int i = 63;
20385int
20386main ()
20387{
20388
20389long long llm = (long long) -1;
20390return ll << i | ll >> i | llm / ll | llm % ll;
20391
20392 ;
20393 return 0;
20394}
20395_ACEOF
20396rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
20397if { (ac_try="$ac_link"
20398case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401esac
20402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20403$as_echo "$ac_try_echo") >&5
20404 (eval "$ac_link") 2>conftest.er1
f73dda09 20405 ac_status=$?
0628567a
JA
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
3185942a
JA
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest$ac_exeext && {
20414 test "$cross_compiling" = yes ||
20415 $as_test_x conftest$ac_exeext
20416 }; then
f73dda09 20417 bash_cv_type_long_long='long long'
ccc6cda3 20418else
3185942a 20419 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20420sed 's/^/| /' conftest.$ac_ext >&5
20421
3185942a 20422 bash_cv_type_long_long='long'
ccc6cda3 20423fi
3185942a
JA
20424
20425rm -rf conftest.dSYM
20426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 20427 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 20428fi
3185942a
JA
20429{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20430$as_echo "$bash_cv_type_long_long" >&6; }
f73dda09 20431if test "$bash_cv_type_long_long" = 'long long'; then
b80f6443 20432 cat >>confdefs.h <<\_ACEOF
f73dda09 20433#define HAVE_LONG_LONG 1
b80f6443 20434_ACEOF
ccc6cda3 20435
ccc6cda3
JA
20436fi
20437
b80f6443 20438
3185942a
JA
20439{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20440$as_echo_n "checking for unsigned long long... " >&6; }
f73dda09 20441if test "${bash_cv_type_unsigned_long_long+set}" = set; then
3185942a 20442 $as_echo_n "(cached) " >&6
f73dda09
JA
20443else
20444 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20445/* confdefs.h. */
20446_ACEOF
20447cat confdefs.h >>conftest.$ac_ext
20448cat >>conftest.$ac_ext <<_ACEOF
20449/* end confdefs.h. */
f73dda09
JA
20450
20451unsigned long long ull = 1; int i = 63;
20452int
20453main ()
20454{
20455
20456unsigned long long ullmax = (unsigned long long) -1;
20457return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20458
20459 ;
20460 return 0;
20461}
20462_ACEOF
20463rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
20464if { (ac_try="$ac_link"
20465case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468esac
20469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20470$as_echo "$ac_try_echo") >&5
20471 (eval "$ac_link") 2>conftest.er1
f73dda09 20472 ac_status=$?
0628567a
JA
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
3185942a
JA
20476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext && {
20481 test "$cross_compiling" = yes ||
20482 $as_test_x conftest$ac_exeext
20483 }; then
f73dda09
JA
20484 bash_cv_type_unsigned_long_long='unsigned long long'
20485else
3185942a 20486 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20487sed 's/^/| /' conftest.$ac_ext >&5
20488
3185942a 20489 bash_cv_type_unsigned_long_long='unsigned long'
f73dda09 20490fi
3185942a
JA
20491
20492rm -rf conftest.dSYM
20493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 20494 conftest$ac_exeext conftest.$ac_ext
f73dda09 20495fi
3185942a
JA
20496{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20497$as_echo "$bash_cv_type_unsigned_long_long" >&6; }
f73dda09 20498if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
b80f6443 20499 cat >>confdefs.h <<\_ACEOF
f73dda09 20500#define HAVE_UNSIGNED_LONG_LONG 1
b80f6443 20501_ACEOF
ccc6cda3
JA
20502
20503fi
20504
b80f6443 20505
3185942a
JA
20506{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20507$as_echo_n "checking return type of signal handlers... " >&6; }
f73dda09 20508if test "${ac_cv_type_signal+set}" = set; then
3185942a 20509 $as_echo_n "(cached) " >&6
ccc6cda3 20510else
f73dda09 20511 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20512/* confdefs.h. */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h. */
ccc6cda3 20517#include <sys/types.h>
f73dda09 20518#include <signal.h>
f73dda09
JA
20519
20520int
20521main ()
20522{
3185942a 20523return *(signal (0, 0)) (0) == 1;
f73dda09
JA
20524 ;
20525 return 0;
20526}
20527_ACEOF
20528rm -f conftest.$ac_objext
3185942a
JA
20529if { (ac_try="$ac_compile"
20530case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20533esac
20534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20535$as_echo "$ac_try_echo") >&5
20536 (eval "$ac_compile") 2>conftest.er1
f73dda09 20537 ac_status=$?
0628567a
JA
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
3185942a
JA
20541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest.$ac_objext; then
20546 ac_cv_type_signal=int
ccc6cda3 20547else
3185942a 20548 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20549sed 's/^/| /' conftest.$ac_ext >&5
20550
3185942a 20551 ac_cv_type_signal=void
ccc6cda3 20552fi
3185942a
JA
20553
20554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20555fi
3185942a
JA
20556{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20557$as_echo "$ac_cv_type_signal" >&6; }
f73dda09 20558
b80f6443 20559cat >>confdefs.h <<_ACEOF
f73dda09 20560#define RETSIGTYPE $ac_cv_type_signal
b80f6443
JA
20561_ACEOF
20562
ccc6cda3 20563
17345e5a
JA
20564{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20565$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20566if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20567 $as_echo_n "(cached) " >&6
20568else
20569 cat >conftest.$ac_ext <<_ACEOF
20570/* confdefs.h. */
20571_ACEOF
20572cat confdefs.h >>conftest.$ac_ext
20573cat >>conftest.$ac_ext <<_ACEOF
20574/* end confdefs.h. */
20575
20576#include <signal.h>
20577
20578int
20579main ()
20580{
20581 sig_atomic_t x;
20582 ;
20583 return 0;
20584}
20585_ACEOF
20586rm -f conftest.$ac_objext conftest$ac_exeext
20587if { (ac_try="$ac_link"
20588case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591esac
20592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20593$as_echo "$ac_try_echo") >&5
20594 (eval "$ac_link") 2>conftest.er1
20595 ac_status=$?
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
20599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest$ac_exeext && {
20604 test "$cross_compiling" = yes ||
20605 $as_test_x conftest$ac_exeext
20606 }; then
20607 ac_cv_have_sig_atomic_t=yes
20608else
20609 $as_echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ac_cv_have_sig_atomic_t=no
20613fi
20614
20615rm -rf conftest.dSYM
20616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617 conftest$ac_exeext conftest.$ac_ext
20618fi
20619{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20620$as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20621if test "$ac_cv_have_sig_atomic_t" = "no"
20622then
20623 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20624$as_echo_n "checking for sig_atomic_t... " >&6; }
20625if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20626 $as_echo_n "(cached) " >&6
20627else
20628 ac_cv_type_sig_atomic_t=no
20629cat >conftest.$ac_ext <<_ACEOF
20630/* confdefs.h. */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h. */
20635$ac_includes_default
20636int
20637main ()
20638{
20639if (sizeof (sig_atomic_t))
20640 return 0;
20641 ;
20642 return 0;
20643}
20644_ACEOF
20645rm -f conftest.$ac_objext
20646if { (ac_try="$ac_compile"
20647case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650esac
20651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20652$as_echo "$ac_try_echo") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest.$ac_objext; then
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669$ac_includes_default
20670int
20671main ()
20672{
20673if (sizeof ((sig_atomic_t)))
20674 return 0;
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext
20680if { (ac_try="$ac_compile"
20681case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684esac
20685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20686$as_echo "$ac_try_echo") >&5
20687 (eval "$ac_compile") 2>conftest.er1
20688 ac_status=$?
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
20692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest.$ac_objext; then
20697 :
20698else
20699 $as_echo "$as_me: failed program was:" >&5
20700sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 ac_cv_type_sig_atomic_t=yes
20703fi
20704
20705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20706else
20707 $as_echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
20710
20711fi
20712
20713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714fi
20715{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20716$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20717if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20718 :
20719else
20720
20721cat >>confdefs.h <<_ACEOF
20722#define sig_atomic_t int
20723_ACEOF
20724
20725fi
20726
20727fi
20728
b80f6443 20729
3185942a
JA
20730# The cast to long int works around a bug in the HP C Compiler
20731# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20732# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20733# This bug is HP SR number 8606223364.
20734{ $as_echo "$as_me:$LINENO: checking size of char" >&5
20735$as_echo_n "checking size of char... " >&6; }
f73dda09 20736if test "${ac_cv_sizeof_char+set}" = set; then
3185942a 20737 $as_echo_n "(cached) " >&6
f73dda09 20738else
f73dda09
JA
20739 if test "$cross_compiling" = yes; then
20740 # Depending upon the size, compute the lo and hi bounds.
20741cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
f73dda09
JA
20747$ac_includes_default
20748int
20749main ()
20750{
3185942a 20751static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
b80f6443
JA
20752test_array [0] = 0
20753
f73dda09
JA
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
3185942a
JA
20759if { (ac_try="$ac_compile"
20760case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20763esac
20764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20765$as_echo "$ac_try_echo") >&5
20766 (eval "$ac_compile") 2>conftest.er1
f73dda09 20767 ac_status=$?
0628567a
JA
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
3185942a
JA
20771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && {
20773 test -z "$ac_c_werror_flag" ||
20774 test ! -s conftest.err
20775 } && test -s conftest.$ac_objext; then
f73dda09
JA
20776 ac_lo=0 ac_mid=0
20777 while :; do
20778 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20779/* confdefs.h. */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h. */
f73dda09
JA
20784$ac_includes_default
20785int
20786main ()
20787{
3185942a 20788static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
b80f6443
JA
20789test_array [0] = 0
20790
f73dda09
JA
20791 ;
20792 return 0;
20793}
20794_ACEOF
20795rm -f conftest.$ac_objext
3185942a
JA
20796if { (ac_try="$ac_compile"
20797case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800esac
20801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20802$as_echo "$ac_try_echo") >&5
20803 (eval "$ac_compile") 2>conftest.er1
f73dda09 20804 ac_status=$?
0628567a
JA
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
3185942a
JA
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest.$ac_objext; then
f73dda09
JA
20813 ac_hi=$ac_mid; break
20814else
3185942a 20815 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
3185942a
JA
20818 ac_lo=`expr $ac_mid + 1`
20819 if test $ac_lo -le $ac_mid; then
20820 ac_lo= ac_hi=
20821 break
20822 fi
20823 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20824fi
3185942a
JA
20825
20826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20827 done
20828else
3185942a 20829 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20830sed 's/^/| /' conftest.$ac_ext >&5
20831
3185942a 20832 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
b80f6443
JA
20838$ac_includes_default
20839int
20840main ()
20841{
3185942a 20842static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
b80f6443
JA
20843test_array [0] = 0
20844
20845 ;
20846 return 0;
20847}
20848_ACEOF
20849rm -f conftest.$ac_objext
3185942a
JA
20850if { (ac_try="$ac_compile"
20851case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854esac
20855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856$as_echo "$ac_try_echo") >&5
20857 (eval "$ac_compile") 2>conftest.er1
b80f6443 20858 ac_status=$?
0628567a
JA
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
3185942a
JA
20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
b80f6443 20867 ac_hi=-1 ac_mid=-1
f73dda09
JA
20868 while :; do
20869 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
f73dda09
JA
20875$ac_includes_default
20876int
20877main ()
20878{
3185942a 20879static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
b80f6443
JA
20880test_array [0] = 0
20881
f73dda09
JA
20882 ;
20883 return 0;
20884}
20885_ACEOF
20886rm -f conftest.$ac_objext
3185942a
JA
20887if { (ac_try="$ac_compile"
20888case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891esac
20892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20893$as_echo "$ac_try_echo") >&5
20894 (eval "$ac_compile") 2>conftest.er1
f73dda09 20895 ac_status=$?
0628567a
JA
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
3185942a
JA
20899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest.$ac_objext; then
f73dda09
JA
20904 ac_lo=$ac_mid; break
20905else
3185942a 20906 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
3185942a
JA
20909 ac_hi=`expr '(' $ac_mid ')' - 1`
20910 if test $ac_mid -le $ac_hi; then
20911 ac_lo= ac_hi=
20912 break
20913 fi
20914 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20915fi
3185942a
JA
20916
20917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20918 done
b80f6443 20919else
3185942a 20920 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20921sed 's/^/| /' conftest.$ac_ext >&5
20922
3185942a 20923 ac_lo= ac_hi=
b80f6443 20924fi
3185942a
JA
20925
20926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20927fi
3185942a
JA
20928
20929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20930# Binary search between lo and hi bounds.
20931while test "x$ac_lo" != "x$ac_hi"; do
20932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20933 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
f73dda09
JA
20939$ac_includes_default
20940int
20941main ()
20942{
3185942a 20943static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
b80f6443
JA
20944test_array [0] = 0
20945
f73dda09
JA
20946 ;
20947 return 0;
20948}
20949_ACEOF
20950rm -f conftest.$ac_objext
3185942a
JA
20951if { (ac_try="$ac_compile"
20952case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955esac
20956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20957$as_echo "$ac_try_echo") >&5
20958 (eval "$ac_compile") 2>conftest.er1
f73dda09 20959 ac_status=$?
0628567a
JA
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
3185942a
JA
20963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && {
20965 test -z "$ac_c_werror_flag" ||
20966 test ! -s conftest.err
20967 } && test -s conftest.$ac_objext; then
f73dda09
JA
20968 ac_hi=$ac_mid
20969else
3185942a 20970 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20971sed 's/^/| /' conftest.$ac_ext >&5
20972
3185942a 20973 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20974fi
3185942a
JA
20975
20976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20977done
b80f6443
JA
20978case $ac_lo in
20979?*) ac_cv_sizeof_char=$ac_lo;;
3185942a
JA
20980'') if test "$ac_cv_type_char" = yes; then
20981 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20983{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
0628567a 20984See \`config.log' for more details." >&5
3185942a 20985$as_echo "$as_me: error: cannot compute sizeof (char)
0628567a 20986See \`config.log' for more details." >&2;}
3185942a
JA
20987 { (exit 77); exit 77; }; }; }
20988 else
20989 ac_cv_sizeof_char=0
20990 fi ;;
b80f6443 20991esac
f73dda09
JA
20992else
20993 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20994/* confdefs.h. */
20995_ACEOF
20996cat confdefs.h >>conftest.$ac_ext
20997cat >>conftest.$ac_ext <<_ACEOF
20998/* end confdefs.h. */
f73dda09 20999$ac_includes_default
3185942a
JA
21000static long int longval () { return (long int) (sizeof (char)); }
21001static unsigned long int ulongval () { return (long int) (sizeof (char)); }
b80f6443
JA
21002#include <stdio.h>
21003#include <stdlib.h>
f73dda09
JA
21004int
21005main ()
21006{
b80f6443
JA
21007
21008 FILE *f = fopen ("conftest.val", "w");
21009 if (! f)
3185942a
JA
21010 return 1;
21011 if (((long int) (sizeof (char))) < 0)
b80f6443 21012 {
3185942a
JA
21013 long int i = longval ();
21014 if (i != ((long int) (sizeof (char))))
21015 return 1;
21016 fprintf (f, "%ld", i);
b80f6443
JA
21017 }
21018 else
21019 {
3185942a
JA
21020 unsigned long int i = ulongval ();
21021 if (i != ((long int) (sizeof (char))))
21022 return 1;
21023 fprintf (f, "%lu", i);
b80f6443 21024 }
3185942a
JA
21025 /* Do not output a trailing newline, as this causes \r\n confusion
21026 on some platforms. */
21027 return ferror (f) || fclose (f) != 0;
b80f6443 21028
f73dda09
JA
21029 ;
21030 return 0;
21031}
21032_ACEOF
21033rm -f conftest$ac_exeext
3185942a
JA
21034if { (ac_try="$ac_link"
21035case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21038esac
21039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21040$as_echo "$ac_try_echo") >&5
21041 (eval "$ac_link") 2>&5
f73dda09 21042 ac_status=$?
3185942a 21043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048esac
21049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21050$as_echo "$ac_try_echo") >&5
21051 (eval "$ac_try") 2>&5
f73dda09 21052 ac_status=$?
3185942a 21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21054 (exit $ac_status); }; }; then
21055 ac_cv_sizeof_char=`cat conftest.val`
ccc6cda3 21056else
3185942a
JA
21057 $as_echo "$as_me: program exited with status $ac_status" >&5
21058$as_echo "$as_me: failed program was:" >&5
0628567a
JA
21059sed 's/^/| /' conftest.$ac_ext >&5
21060
b80f6443 21061( exit $ac_status )
3185942a
JA
21062if test "$ac_cv_type_char" = yes; then
21063 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21065{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
0628567a 21066See \`config.log' for more details." >&5
3185942a 21067$as_echo "$as_me: error: cannot compute sizeof (char)
0628567a 21068See \`config.log' for more details." >&2;}
3185942a
JA
21069 { (exit 77); exit 77; }; }; }
21070 else
21071 ac_cv_sizeof_char=0
21072 fi
ccc6cda3 21073fi
3185942a
JA
21074rm -rf conftest.dSYM
21075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21076fi
21077rm -f conftest.val
f73dda09 21078fi
3185942a
JA
21079{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21080$as_echo "$ac_cv_sizeof_char" >&6; }
21081
21082
21083
b80f6443 21084cat >>confdefs.h <<_ACEOF
f73dda09 21085#define SIZEOF_CHAR $ac_cv_sizeof_char
b80f6443 21086_ACEOF
ccc6cda3 21087
b80f6443 21088
3185942a
JA
21089# The cast to long int works around a bug in the HP C Compiler
21090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21092# This bug is HP SR number 8606223364.
21093{ $as_echo "$as_me:$LINENO: checking size of short" >&5
21094$as_echo_n "checking size of short... " >&6; }
21095if test "${ac_cv_sizeof_short+set}" = set; then
21096 $as_echo_n "(cached) " >&6
f73dda09 21097else
3185942a
JA
21098 if test "$cross_compiling" = yes; then
21099 # Depending upon the size, compute the lo and hi bounds.
21100cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21101/* confdefs.h. */
21102_ACEOF
21103cat confdefs.h >>conftest.$ac_ext
21104cat >>conftest.$ac_ext <<_ACEOF
21105/* end confdefs.h. */
f73dda09
JA
21106$ac_includes_default
21107int
21108main ()
21109{
3185942a
JA
21110static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
21111test_array [0] = 0
21112
f73dda09
JA
21113 ;
21114 return 0;
21115}
21116_ACEOF
21117rm -f conftest.$ac_objext
3185942a
JA
21118if { (ac_try="$ac_compile"
21119case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21122esac
21123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21124$as_echo "$ac_try_echo") >&5
21125 (eval "$ac_compile") 2>conftest.er1
f73dda09 21126 ac_status=$?
0628567a
JA
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
3185942a
JA
21130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.$ac_objext; then
21135 ac_lo=0 ac_mid=0
21136 while :; do
21137 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21138/* confdefs.h. */
21139_ACEOF
21140cat confdefs.h >>conftest.$ac_ext
21141cat >>conftest.$ac_ext <<_ACEOF
21142/* end confdefs.h. */
f73dda09
JA
21143$ac_includes_default
21144int
21145main ()
21146{
3185942a 21147static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
b80f6443
JA
21148test_array [0] = 0
21149
f73dda09
JA
21150 ;
21151 return 0;
21152}
21153_ACEOF
21154rm -f conftest.$ac_objext
3185942a
JA
21155if { (ac_try="$ac_compile"
21156case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21159esac
21160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21161$as_echo "$ac_try_echo") >&5
21162 (eval "$ac_compile") 2>conftest.er1
f73dda09 21163 ac_status=$?
0628567a
JA
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
3185942a
JA
21167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest.$ac_objext; then
f73dda09
JA
21172 ac_hi=$ac_mid; break
21173else
3185942a 21174 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
3185942a
JA
21177 ac_lo=`expr $ac_mid + 1`
21178 if test $ac_lo -le $ac_mid; then
21179 ac_lo= ac_hi=
21180 break
21181 fi
21182 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 21183fi
3185942a
JA
21184
21185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21186 done
21187else
3185942a 21188 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
3185942a 21191 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21192/* confdefs.h. */
21193_ACEOF
21194cat confdefs.h >>conftest.$ac_ext
21195cat >>conftest.$ac_ext <<_ACEOF
21196/* end confdefs.h. */
b80f6443
JA
21197$ac_includes_default
21198int
21199main ()
21200{
3185942a 21201static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
b80f6443
JA
21202test_array [0] = 0
21203
21204 ;
21205 return 0;
21206}
21207_ACEOF
21208rm -f conftest.$ac_objext
3185942a
JA
21209if { (ac_try="$ac_compile"
21210case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21213esac
21214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21215$as_echo "$ac_try_echo") >&5
21216 (eval "$ac_compile") 2>conftest.er1
b80f6443 21217 ac_status=$?
0628567a
JA
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
3185942a
JA
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
b80f6443 21226 ac_hi=-1 ac_mid=-1
f73dda09
JA
21227 while :; do
21228 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
f73dda09
JA
21234$ac_includes_default
21235int
21236main ()
21237{
3185942a 21238static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
b80f6443
JA
21239test_array [0] = 0
21240
f73dda09
JA
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext
3185942a
JA
21246if { (ac_try="$ac_compile"
21247case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21250esac
21251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21252$as_echo "$ac_try_echo") >&5
21253 (eval "$ac_compile") 2>conftest.er1
f73dda09 21254 ac_status=$?
0628567a
JA
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
3185942a
JA
21258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest.$ac_objext; then
f73dda09
JA
21263 ac_lo=$ac_mid; break
21264else
3185942a 21265 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21266sed 's/^/| /' conftest.$ac_ext >&5
21267
3185942a
JA
21268 ac_hi=`expr '(' $ac_mid ')' - 1`
21269 if test $ac_mid -le $ac_hi; then
21270 ac_lo= ac_hi=
21271 break
21272 fi
21273 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21274fi
3185942a
JA
21275
21276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21277 done
b80f6443 21278else
3185942a 21279 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21280sed 's/^/| /' conftest.$ac_ext >&5
21281
3185942a 21282 ac_lo= ac_hi=
b80f6443 21283fi
3185942a
JA
21284
21285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 21286fi
3185942a
JA
21287
21288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21289# Binary search between lo and hi bounds.
21290while test "x$ac_lo" != "x$ac_hi"; do
21291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21292 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21293/* confdefs.h. */
21294_ACEOF
21295cat confdefs.h >>conftest.$ac_ext
21296cat >>conftest.$ac_ext <<_ACEOF
21297/* end confdefs.h. */
f73dda09
JA
21298$ac_includes_default
21299int
21300main ()
21301{
3185942a 21302static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
b80f6443
JA
21303test_array [0] = 0
21304
f73dda09
JA
21305 ;
21306 return 0;
21307}
21308_ACEOF
21309rm -f conftest.$ac_objext
3185942a
JA
21310if { (ac_try="$ac_compile"
21311case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21314esac
21315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21316$as_echo "$ac_try_echo") >&5
21317 (eval "$ac_compile") 2>conftest.er1
f73dda09 21318 ac_status=$?
0628567a
JA
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
3185942a
JA
21322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest.$ac_objext; then
f73dda09
JA
21327 ac_hi=$ac_mid
21328else
3185942a 21329 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21330sed 's/^/| /' conftest.$ac_ext >&5
21331
3185942a 21332 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 21333fi
3185942a
JA
21334
21335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21336done
b80f6443
JA
21337case $ac_lo in
21338?*) ac_cv_sizeof_short=$ac_lo;;
3185942a
JA
21339'') if test "$ac_cv_type_short" = yes; then
21340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21342{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
0628567a 21343See \`config.log' for more details." >&5
3185942a 21344$as_echo "$as_me: error: cannot compute sizeof (short)
0628567a 21345See \`config.log' for more details." >&2;}
3185942a
JA
21346 { (exit 77); exit 77; }; }; }
21347 else
21348 ac_cv_sizeof_short=0
21349 fi ;;
b80f6443 21350esac
ccc6cda3 21351else
f73dda09 21352 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21353/* confdefs.h. */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h. */
f73dda09 21358$ac_includes_default
3185942a
JA
21359static long int longval () { return (long int) (sizeof (short)); }
21360static unsigned long int ulongval () { return (long int) (sizeof (short)); }
b80f6443
JA
21361#include <stdio.h>
21362#include <stdlib.h>
f73dda09
JA
21363int
21364main ()
21365{
b80f6443
JA
21366
21367 FILE *f = fopen ("conftest.val", "w");
21368 if (! f)
3185942a
JA
21369 return 1;
21370 if (((long int) (sizeof (short))) < 0)
b80f6443 21371 {
3185942a
JA
21372 long int i = longval ();
21373 if (i != ((long int) (sizeof (short))))
21374 return 1;
21375 fprintf (f, "%ld", i);
b80f6443
JA
21376 }
21377 else
21378 {
3185942a
JA
21379 unsigned long int i = ulongval ();
21380 if (i != ((long int) (sizeof (short))))
21381 return 1;
21382 fprintf (f, "%lu", i);
b80f6443 21383 }
3185942a
JA
21384 /* Do not output a trailing newline, as this causes \r\n confusion
21385 on some platforms. */
21386 return ferror (f) || fclose (f) != 0;
b80f6443 21387
f73dda09
JA
21388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest$ac_exeext
3185942a
JA
21393if { (ac_try="$ac_link"
21394case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397esac
21398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21399$as_echo "$ac_try_echo") >&5
21400 (eval "$ac_link") 2>&5
f73dda09 21401 ac_status=$?
3185942a 21402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
21404 { (case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407esac
21408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409$as_echo "$ac_try_echo") >&5
21410 (eval "$ac_try") 2>&5
f73dda09 21411 ac_status=$?
3185942a 21412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21413 (exit $ac_status); }; }; then
21414 ac_cv_sizeof_short=`cat conftest.val`
ccc6cda3 21415else
3185942a
JA
21416 $as_echo "$as_me: program exited with status $ac_status" >&5
21417$as_echo "$as_me: failed program was:" >&5
0628567a
JA
21418sed 's/^/| /' conftest.$ac_ext >&5
21419
b80f6443 21420( exit $ac_status )
3185942a
JA
21421if test "$ac_cv_type_short" = yes; then
21422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21424{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
0628567a 21425See \`config.log' for more details." >&5
3185942a 21426$as_echo "$as_me: error: cannot compute sizeof (short)
0628567a 21427See \`config.log' for more details." >&2;}
3185942a
JA
21428 { (exit 77); exit 77; }; }; }
21429 else
21430 ac_cv_sizeof_short=0
21431 fi
ccc6cda3 21432fi
3185942a
JA
21433rm -rf conftest.dSYM
21434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 21435fi
f73dda09 21436rm -f conftest.val
ccc6cda3 21437fi
3185942a
JA
21438{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21439$as_echo "$ac_cv_sizeof_short" >&6; }
ccc6cda3 21440
b80f6443 21441
3185942a
JA
21442
21443cat >>confdefs.h <<_ACEOF
21444#define SIZEOF_SHORT $ac_cv_sizeof_short
f73dda09 21445_ACEOF
0628567a 21446
f73dda09 21447
3185942a
JA
21448# The cast to long int works around a bug in the HP C Compiler
21449# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21450# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21451# This bug is HP SR number 8606223364.
21452{ $as_echo "$as_me:$LINENO: checking size of int" >&5
21453$as_echo_n "checking size of int... " >&6; }
f73dda09 21454if test "${ac_cv_sizeof_int+set}" = set; then
3185942a 21455 $as_echo_n "(cached) " >&6
f73dda09 21456else
f73dda09
JA
21457 if test "$cross_compiling" = yes; then
21458 # Depending upon the size, compute the lo and hi bounds.
21459cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21460/* confdefs.h. */
21461_ACEOF
21462cat confdefs.h >>conftest.$ac_ext
21463cat >>conftest.$ac_ext <<_ACEOF
21464/* end confdefs.h. */
f73dda09
JA
21465$ac_includes_default
21466int
21467main ()
21468{
3185942a 21469static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
b80f6443
JA
21470test_array [0] = 0
21471
f73dda09
JA
21472 ;
21473 return 0;
21474}
21475_ACEOF
21476rm -f conftest.$ac_objext
3185942a
JA
21477if { (ac_try="$ac_compile"
21478case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21481esac
21482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483$as_echo "$ac_try_echo") >&5
21484 (eval "$ac_compile") 2>conftest.er1
f73dda09 21485 ac_status=$?
0628567a
JA
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
3185942a
JA
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
f73dda09
JA
21494 ac_lo=0 ac_mid=0
21495 while :; do
21496 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21497/* confdefs.h. */
21498_ACEOF
21499cat confdefs.h >>conftest.$ac_ext
21500cat >>conftest.$ac_ext <<_ACEOF
21501/* end confdefs.h. */
f73dda09
JA
21502$ac_includes_default
21503int
21504main ()
21505{
3185942a 21506static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
b80f6443
JA
21507test_array [0] = 0
21508
f73dda09
JA
21509 ;
21510 return 0;
21511}
21512_ACEOF
21513rm -f conftest.$ac_objext
3185942a
JA
21514if { (ac_try="$ac_compile"
21515case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518esac
21519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520$as_echo "$ac_try_echo") >&5
21521 (eval "$ac_compile") 2>conftest.er1
f73dda09 21522 ac_status=$?
0628567a
JA
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
3185942a
JA
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest.$ac_objext; then
f73dda09
JA
21531 ac_hi=$ac_mid; break
21532else
3185942a 21533 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21534sed 's/^/| /' conftest.$ac_ext >&5
21535
3185942a
JA
21536 ac_lo=`expr $ac_mid + 1`
21537 if test $ac_lo -le $ac_mid; then
21538 ac_lo= ac_hi=
21539 break
21540 fi
21541 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 21542fi
3185942a
JA
21543
21544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21545 done
21546else
3185942a 21547 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21548sed 's/^/| /' conftest.$ac_ext >&5
21549
3185942a 21550 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
b80f6443
JA
21556$ac_includes_default
21557int
21558main ()
21559{
3185942a 21560static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
b80f6443
JA
21561test_array [0] = 0
21562
21563 ;
21564 return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext
3185942a
JA
21568if { (ac_try="$ac_compile"
21569case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572esac
21573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574$as_echo "$ac_try_echo") >&5
21575 (eval "$ac_compile") 2>conftest.er1
b80f6443 21576 ac_status=$?
0628567a
JA
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
3185942a
JA
21580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.$ac_objext; then
b80f6443 21585 ac_hi=-1 ac_mid=-1
f73dda09
JA
21586 while :; do
21587 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21588/* confdefs.h. */
21589_ACEOF
21590cat confdefs.h >>conftest.$ac_ext
21591cat >>conftest.$ac_ext <<_ACEOF
21592/* end confdefs.h. */
f73dda09
JA
21593$ac_includes_default
21594int
21595main ()
21596{
3185942a 21597static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
b80f6443
JA
21598test_array [0] = 0
21599
f73dda09
JA
21600 ;
21601 return 0;
21602}
21603_ACEOF
21604rm -f conftest.$ac_objext
3185942a
JA
21605if { (ac_try="$ac_compile"
21606case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609esac
21610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611$as_echo "$ac_try_echo") >&5
21612 (eval "$ac_compile") 2>conftest.er1
f73dda09 21613 ac_status=$?
0628567a
JA
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
3185942a
JA
21617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest.$ac_objext; then
f73dda09
JA
21622 ac_lo=$ac_mid; break
21623else
3185942a 21624 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
3185942a
JA
21627 ac_hi=`expr '(' $ac_mid ')' - 1`
21628 if test $ac_mid -le $ac_hi; then
21629 ac_lo= ac_hi=
21630 break
21631 fi
21632 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21633fi
3185942a
JA
21634
21635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21636 done
b80f6443 21637else
3185942a 21638 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21639sed 's/^/| /' conftest.$ac_ext >&5
21640
3185942a 21641 ac_lo= ac_hi=
b80f6443 21642fi
3185942a
JA
21643
21644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 21645fi
3185942a
JA
21646
21647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21648# Binary search between lo and hi bounds.
21649while test "x$ac_lo" != "x$ac_hi"; do
21650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21651 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21652/* confdefs.h. */
21653_ACEOF
21654cat confdefs.h >>conftest.$ac_ext
21655cat >>conftest.$ac_ext <<_ACEOF
21656/* end confdefs.h. */
f73dda09
JA
21657$ac_includes_default
21658int
21659main ()
21660{
3185942a 21661static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
b80f6443
JA
21662test_array [0] = 0
21663
f73dda09
JA
21664 ;
21665 return 0;
21666}
21667_ACEOF
21668rm -f conftest.$ac_objext
3185942a
JA
21669if { (ac_try="$ac_compile"
21670case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21673esac
21674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21675$as_echo "$ac_try_echo") >&5
21676 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
21677 ac_status=$?
21678 grep -v '^ *+' conftest.er1 >conftest.err
21679 rm -f conftest.er1
21680 cat conftest.err >&5
3185942a
JA
21681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } && {
21683 test -z "$ac_c_werror_flag" ||
21684 test ! -s conftest.err
21685 } && test -s conftest.$ac_objext; then
f73dda09
JA
21686 ac_hi=$ac_mid
21687else
3185942a 21688 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21689sed 's/^/| /' conftest.$ac_ext >&5
21690
3185942a 21691 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 21692fi
3185942a
JA
21693
21694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21695done
b80f6443
JA
21696case $ac_lo in
21697?*) ac_cv_sizeof_int=$ac_lo;;
3185942a
JA
21698'') if test "$ac_cv_type_int" = yes; then
21699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21701{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
0628567a 21702See \`config.log' for more details." >&5
3185942a 21703$as_echo "$as_me: error: cannot compute sizeof (int)
0628567a 21704See \`config.log' for more details." >&2;}
3185942a
JA
21705 { (exit 77); exit 77; }; }; }
21706 else
21707 ac_cv_sizeof_int=0
21708 fi ;;
b80f6443 21709esac
ccc6cda3 21710else
f73dda09 21711 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21712/* confdefs.h. */
21713_ACEOF
21714cat confdefs.h >>conftest.$ac_ext
21715cat >>conftest.$ac_ext <<_ACEOF
21716/* end confdefs.h. */
f73dda09 21717$ac_includes_default
3185942a
JA
21718static long int longval () { return (long int) (sizeof (int)); }
21719static unsigned long int ulongval () { return (long int) (sizeof (int)); }
b80f6443
JA
21720#include <stdio.h>
21721#include <stdlib.h>
f73dda09
JA
21722int
21723main ()
21724{
b80f6443
JA
21725
21726 FILE *f = fopen ("conftest.val", "w");
21727 if (! f)
3185942a
JA
21728 return 1;
21729 if (((long int) (sizeof (int))) < 0)
b80f6443 21730 {
3185942a
JA
21731 long int i = longval ();
21732 if (i != ((long int) (sizeof (int))))
21733 return 1;
21734 fprintf (f, "%ld", i);
b80f6443
JA
21735 }
21736 else
21737 {
3185942a
JA
21738 unsigned long int i = ulongval ();
21739 if (i != ((long int) (sizeof (int))))
21740 return 1;
21741 fprintf (f, "%lu", i);
b80f6443 21742 }
3185942a
JA
21743 /* Do not output a trailing newline, as this causes \r\n confusion
21744 on some platforms. */
21745 return ferror (f) || fclose (f) != 0;
b80f6443 21746
f73dda09
JA
21747 ;
21748 return 0;
21749}
21750_ACEOF
21751rm -f conftest$ac_exeext
3185942a
JA
21752if { (ac_try="$ac_link"
21753case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756esac
21757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758$as_echo "$ac_try_echo") >&5
21759 (eval "$ac_link") 2>&5
f73dda09 21760 ac_status=$?
3185942a 21761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
21763 { (case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21766esac
21767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21768$as_echo "$ac_try_echo") >&5
21769 (eval "$ac_try") 2>&5
f73dda09 21770 ac_status=$?
3185942a 21771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21772 (exit $ac_status); }; }; then
21773 ac_cv_sizeof_int=`cat conftest.val`
ccc6cda3 21774else
3185942a
JA
21775 $as_echo "$as_me: program exited with status $ac_status" >&5
21776$as_echo "$as_me: failed program was:" >&5
0628567a
JA
21777sed 's/^/| /' conftest.$ac_ext >&5
21778
b80f6443 21779( exit $ac_status )
3185942a
JA
21780if test "$ac_cv_type_int" = yes; then
21781 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21783{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
0628567a 21784See \`config.log' for more details." >&5
3185942a 21785$as_echo "$as_me: error: cannot compute sizeof (int)
0628567a 21786See \`config.log' for more details." >&2;}
3185942a
JA
21787 { (exit 77); exit 77; }; }; }
21788 else
21789 ac_cv_sizeof_int=0
21790 fi
ccc6cda3 21791fi
3185942a
JA
21792rm -rf conftest.dSYM
21793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 21794fi
f73dda09 21795rm -f conftest.val
ccc6cda3 21796fi
3185942a
JA
21797{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21798$as_echo "$ac_cv_sizeof_int" >&6; }
ccc6cda3 21799
b80f6443 21800
3185942a
JA
21801
21802cat >>confdefs.h <<_ACEOF
21803#define SIZEOF_INT $ac_cv_sizeof_int
f73dda09 21804_ACEOF
0628567a 21805
f73dda09 21806
3185942a
JA
21807# The cast to long int works around a bug in the HP C Compiler
21808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21810# This bug is HP SR number 8606223364.
21811{ $as_echo "$as_me:$LINENO: checking size of long" >&5
21812$as_echo_n "checking size of long... " >&6; }
f73dda09 21813if test "${ac_cv_sizeof_long+set}" = set; then
3185942a 21814 $as_echo_n "(cached) " >&6
f73dda09 21815else
f73dda09
JA
21816 if test "$cross_compiling" = yes; then
21817 # Depending upon the size, compute the lo and hi bounds.
21818cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
f73dda09
JA
21824$ac_includes_default
21825int
21826main ()
21827{
3185942a 21828static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
b80f6443
JA
21829test_array [0] = 0
21830
f73dda09
JA
21831 ;
21832 return 0;
21833}
21834_ACEOF
21835rm -f conftest.$ac_objext
3185942a
JA
21836if { (ac_try="$ac_compile"
21837case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21840esac
21841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21842$as_echo "$ac_try_echo") >&5
21843 (eval "$ac_compile") 2>conftest.er1
f73dda09 21844 ac_status=$?
0628567a
JA
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
3185942a
JA
21848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
f73dda09
JA
21853 ac_lo=0 ac_mid=0
21854 while :; do
21855 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
f73dda09
JA
21861$ac_includes_default
21862int
21863main ()
21864{
3185942a 21865static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
b80f6443
JA
21866test_array [0] = 0
21867
f73dda09
JA
21868 ;
21869 return 0;
21870}
21871_ACEOF
21872rm -f conftest.$ac_objext
3185942a
JA
21873if { (ac_try="$ac_compile"
21874case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21877esac
21878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21879$as_echo "$ac_try_echo") >&5
21880 (eval "$ac_compile") 2>conftest.er1
f73dda09 21881 ac_status=$?
0628567a
JA
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
3185942a
JA
21885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest.$ac_objext; then
f73dda09
JA
21890 ac_hi=$ac_mid; break
21891else
3185942a 21892 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21893sed 's/^/| /' conftest.$ac_ext >&5
21894
3185942a
JA
21895 ac_lo=`expr $ac_mid + 1`
21896 if test $ac_lo -le $ac_mid; then
21897 ac_lo= ac_hi=
21898 break
21899 fi
21900 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 21901fi
3185942a
JA
21902
21903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21904 done
ccc6cda3 21905else
3185942a 21906 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21907sed 's/^/| /' conftest.$ac_ext >&5
21908
3185942a 21909 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21910/* confdefs.h. */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h. */
b80f6443
JA
21915$ac_includes_default
21916int
21917main ()
21918{
3185942a 21919static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
b80f6443
JA
21920test_array [0] = 0
21921
21922 ;
21923 return 0;
21924}
21925_ACEOF
21926rm -f conftest.$ac_objext
3185942a
JA
21927if { (ac_try="$ac_compile"
21928case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21931esac
21932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21933$as_echo "$ac_try_echo") >&5
21934 (eval "$ac_compile") 2>conftest.er1
b80f6443 21935 ac_status=$?
0628567a
JA
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
3185942a
JA
21939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && {
21941 test -z "$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 } && test -s conftest.$ac_objext; then
b80f6443 21944 ac_hi=-1 ac_mid=-1
f73dda09
JA
21945 while :; do
21946 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
f73dda09
JA
21952$ac_includes_default
21953int
21954main ()
21955{
3185942a 21956static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
b80f6443
JA
21957test_array [0] = 0
21958
f73dda09
JA
21959 ;
21960 return 0;
21961}
21962_ACEOF
21963rm -f conftest.$ac_objext
3185942a
JA
21964if { (ac_try="$ac_compile"
21965case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968esac
21969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21970$as_echo "$ac_try_echo") >&5
21971 (eval "$ac_compile") 2>conftest.er1
f73dda09 21972 ac_status=$?
0628567a
JA
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
3185942a
JA
21976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
f73dda09
JA
21981 ac_lo=$ac_mid; break
21982else
3185942a 21983 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21984sed 's/^/| /' conftest.$ac_ext >&5
21985
3185942a
JA
21986 ac_hi=`expr '(' $ac_mid ')' - 1`
21987 if test $ac_mid -le $ac_hi; then
21988 ac_lo= ac_hi=
21989 break
21990 fi
21991 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21992fi
3185942a
JA
21993
21994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21995 done
b80f6443 21996else
3185942a 21997 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21998sed 's/^/| /' conftest.$ac_ext >&5
21999
3185942a 22000 ac_lo= ac_hi=
b80f6443 22001fi
3185942a
JA
22002
22003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 22004fi
3185942a
JA
22005
22006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
22007# Binary search between lo and hi bounds.
22008while test "x$ac_lo" != "x$ac_hi"; do
22009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22010 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22011/* confdefs.h. */
22012_ACEOF
22013cat confdefs.h >>conftest.$ac_ext
22014cat >>conftest.$ac_ext <<_ACEOF
22015/* end confdefs.h. */
f73dda09
JA
22016$ac_includes_default
22017int
22018main ()
22019{
3185942a 22020static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
b80f6443
JA
22021test_array [0] = 0
22022
f73dda09
JA
22023 ;
22024 return 0;
22025}
22026_ACEOF
22027rm -f conftest.$ac_objext
3185942a
JA
22028if { (ac_try="$ac_compile"
22029case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032esac
22033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034$as_echo "$ac_try_echo") >&5
22035 (eval "$ac_compile") 2>conftest.er1
f73dda09 22036 ac_status=$?
0628567a
JA
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
3185942a
JA
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && {
22042 test -z "$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 } && test -s conftest.$ac_objext; then
f73dda09
JA
22045 ac_hi=$ac_mid
22046else
3185942a 22047 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22048sed 's/^/| /' conftest.$ac_ext >&5
22049
3185942a 22050 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 22051fi
3185942a
JA
22052
22053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22054done
b80f6443
JA
22055case $ac_lo in
22056?*) ac_cv_sizeof_long=$ac_lo;;
3185942a
JA
22057'') if test "$ac_cv_type_long" = yes; then
22058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22060{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
0628567a 22061See \`config.log' for more details." >&5
3185942a 22062$as_echo "$as_me: error: cannot compute sizeof (long)
0628567a 22063See \`config.log' for more details." >&2;}
3185942a
JA
22064 { (exit 77); exit 77; }; }; }
22065 else
22066 ac_cv_sizeof_long=0
22067 fi ;;
b80f6443 22068esac
bb70624e 22069else
f73dda09 22070 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22071/* confdefs.h. */
22072_ACEOF
22073cat confdefs.h >>conftest.$ac_ext
22074cat >>conftest.$ac_ext <<_ACEOF
22075/* end confdefs.h. */
f73dda09 22076$ac_includes_default
3185942a
JA
22077static long int longval () { return (long int) (sizeof (long)); }
22078static unsigned long int ulongval () { return (long int) (sizeof (long)); }
b80f6443
JA
22079#include <stdio.h>
22080#include <stdlib.h>
f73dda09
JA
22081int
22082main ()
bb70624e 22083{
b80f6443
JA
22084
22085 FILE *f = fopen ("conftest.val", "w");
22086 if (! f)
3185942a
JA
22087 return 1;
22088 if (((long int) (sizeof (long))) < 0)
b80f6443 22089 {
3185942a
JA
22090 long int i = longval ();
22091 if (i != ((long int) (sizeof (long))))
22092 return 1;
22093 fprintf (f, "%ld", i);
b80f6443
JA
22094 }
22095 else
22096 {
3185942a
JA
22097 unsigned long int i = ulongval ();
22098 if (i != ((long int) (sizeof (long))))
22099 return 1;
22100 fprintf (f, "%lu", i);
b80f6443 22101 }
3185942a
JA
22102 /* Do not output a trailing newline, as this causes \r\n confusion
22103 on some platforms. */
22104 return ferror (f) || fclose (f) != 0;
b80f6443 22105
f73dda09
JA
22106 ;
22107 return 0;
bb70624e 22108}
f73dda09
JA
22109_ACEOF
22110rm -f conftest$ac_exeext
3185942a
JA
22111if { (ac_try="$ac_link"
22112case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115esac
22116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22117$as_echo "$ac_try_echo") >&5
22118 (eval "$ac_link") 2>&5
f73dda09 22119 ac_status=$?
3185942a 22120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
22122 { (case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125esac
22126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22127$as_echo "$ac_try_echo") >&5
22128 (eval "$ac_try") 2>&5
f73dda09 22129 ac_status=$?
3185942a 22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22131 (exit $ac_status); }; }; then
22132 ac_cv_sizeof_long=`cat conftest.val`
bb70624e 22133else
3185942a
JA
22134 $as_echo "$as_me: program exited with status $ac_status" >&5
22135$as_echo "$as_me: failed program was:" >&5
0628567a
JA
22136sed 's/^/| /' conftest.$ac_ext >&5
22137
b80f6443 22138( exit $ac_status )
3185942a
JA
22139if test "$ac_cv_type_long" = yes; then
22140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22142{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
0628567a 22143See \`config.log' for more details." >&5
3185942a 22144$as_echo "$as_me: error: cannot compute sizeof (long)
0628567a 22145See \`config.log' for more details." >&2;}
3185942a
JA
22146 { (exit 77); exit 77; }; }; }
22147 else
22148 ac_cv_sizeof_long=0
22149 fi
bb70624e 22150fi
3185942a
JA
22151rm -rf conftest.dSYM
22152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 22153fi
f73dda09 22154rm -f conftest.val
f73dda09 22155fi
3185942a
JA
22156{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22157$as_echo "$ac_cv_sizeof_long" >&6; }
bb70624e 22158
b80f6443 22159
3185942a
JA
22160
22161cat >>confdefs.h <<_ACEOF
22162#define SIZEOF_LONG $ac_cv_sizeof_long
f73dda09 22163_ACEOF
0628567a 22164
f73dda09 22165
3185942a
JA
22166# The cast to long int works around a bug in the HP C Compiler
22167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22169# This bug is HP SR number 8606223364.
22170{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
22171$as_echo_n "checking size of char *... " >&6; }
f73dda09 22172if test "${ac_cv_sizeof_char_p+set}" = set; then
3185942a 22173 $as_echo_n "(cached) " >&6
f73dda09 22174else
f73dda09
JA
22175 if test "$cross_compiling" = yes; then
22176 # Depending upon the size, compute the lo and hi bounds.
22177cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22178/* confdefs.h. */
22179_ACEOF
22180cat confdefs.h >>conftest.$ac_ext
22181cat >>conftest.$ac_ext <<_ACEOF
22182/* end confdefs.h. */
f73dda09
JA
22183$ac_includes_default
22184int
22185main ()
22186{
3185942a 22187static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
b80f6443
JA
22188test_array [0] = 0
22189
f73dda09
JA
22190 ;
22191 return 0;
22192}
22193_ACEOF
22194rm -f conftest.$ac_objext
3185942a
JA
22195if { (ac_try="$ac_compile"
22196case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199esac
22200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22201$as_echo "$ac_try_echo") >&5
22202 (eval "$ac_compile") 2>conftest.er1
f73dda09 22203 ac_status=$?
0628567a
JA
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
3185942a
JA
22207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } && {
22209 test -z "$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 } && test -s conftest.$ac_objext; then
f73dda09
JA
22212 ac_lo=0 ac_mid=0
22213 while :; do
22214 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22215/* confdefs.h. */
22216_ACEOF
22217cat confdefs.h >>conftest.$ac_ext
22218cat >>conftest.$ac_ext <<_ACEOF
22219/* end confdefs.h. */
f73dda09
JA
22220$ac_includes_default
22221int
22222main ()
22223{
3185942a 22224static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
b80f6443
JA
22225test_array [0] = 0
22226
f73dda09
JA
22227 ;
22228 return 0;
22229}
22230_ACEOF
22231rm -f conftest.$ac_objext
3185942a
JA
22232if { (ac_try="$ac_compile"
22233case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22236esac
22237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22238$as_echo "$ac_try_echo") >&5
22239 (eval "$ac_compile") 2>conftest.er1
f73dda09 22240 ac_status=$?
0628567a
JA
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
3185942a
JA
22244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
f73dda09
JA
22249 ac_hi=$ac_mid; break
22250else
3185942a 22251 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22252sed 's/^/| /' conftest.$ac_ext >&5
22253
3185942a
JA
22254 ac_lo=`expr $ac_mid + 1`
22255 if test $ac_lo -le $ac_mid; then
22256 ac_lo= ac_hi=
22257 break
22258 fi
22259 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 22260fi
3185942a
JA
22261
22262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
22263 done
22264else
3185942a 22265 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22266sed 's/^/| /' conftest.$ac_ext >&5
22267
3185942a 22268 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
b80f6443
JA
22274$ac_includes_default
22275int
22276main ()
22277{
3185942a 22278static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
b80f6443
JA
22279test_array [0] = 0
22280
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext
3185942a
JA
22286if { (ac_try="$ac_compile"
22287case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22290esac
22291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22292$as_echo "$ac_try_echo") >&5
22293 (eval "$ac_compile") 2>conftest.er1
b80f6443 22294 ac_status=$?
0628567a
JA
22295 grep -v '^ *+' conftest.er1 >conftest.err
22296 rm -f conftest.er1
22297 cat conftest.err >&5
3185942a
JA
22298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest.$ac_objext; then
b80f6443 22303 ac_hi=-1 ac_mid=-1
f73dda09
JA
22304 while :; do
22305 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22306/* confdefs.h. */
22307_ACEOF
22308cat confdefs.h >>conftest.$ac_ext
22309cat >>conftest.$ac_ext <<_ACEOF
22310/* end confdefs.h. */
f73dda09
JA
22311$ac_includes_default
22312int
22313main ()
22314{
3185942a 22315static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
b80f6443
JA
22316test_array [0] = 0
22317
f73dda09
JA
22318 ;
22319 return 0;
22320}
22321_ACEOF
22322rm -f conftest.$ac_objext
3185942a
JA
22323if { (ac_try="$ac_compile"
22324case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22327esac
22328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22329$as_echo "$ac_try_echo") >&5
22330 (eval "$ac_compile") 2>conftest.er1
f73dda09 22331 ac_status=$?
0628567a
JA
22332 grep -v '^ *+' conftest.er1 >conftest.err
22333 rm -f conftest.er1
22334 cat conftest.err >&5
3185942a
JA
22335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest.$ac_objext; then
f73dda09
JA
22340 ac_lo=$ac_mid; break
22341else
3185942a 22342 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22343sed 's/^/| /' conftest.$ac_ext >&5
22344
3185942a
JA
22345 ac_hi=`expr '(' $ac_mid ')' - 1`
22346 if test $ac_mid -le $ac_hi; then
22347 ac_lo= ac_hi=
22348 break
22349 fi
22350 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 22351fi
3185942a
JA
22352
22353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22354 done
b80f6443 22355else
3185942a 22356 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22357sed 's/^/| /' conftest.$ac_ext >&5
22358
3185942a 22359 ac_lo= ac_hi=
b80f6443 22360fi
3185942a
JA
22361
22362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22363fi
3185942a
JA
22364
22365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
22366# Binary search between lo and hi bounds.
22367while test "x$ac_lo" != "x$ac_hi"; do
22368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22369 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22370/* confdefs.h. */
22371_ACEOF
22372cat confdefs.h >>conftest.$ac_ext
22373cat >>conftest.$ac_ext <<_ACEOF
22374/* end confdefs.h. */
f73dda09
JA
22375$ac_includes_default
22376int
22377main ()
22378{
3185942a 22379static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
b80f6443
JA
22380test_array [0] = 0
22381
f73dda09
JA
22382 ;
22383 return 0;
22384}
22385_ACEOF
22386rm -f conftest.$ac_objext
3185942a
JA
22387if { (ac_try="$ac_compile"
22388case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391esac
22392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22393$as_echo "$ac_try_echo") >&5
22394 (eval "$ac_compile") 2>conftest.er1
f73dda09 22395 ac_status=$?
0628567a
JA
22396 grep -v '^ *+' conftest.er1 >conftest.err
22397 rm -f conftest.er1
22398 cat conftest.err >&5
3185942a
JA
22399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest.$ac_objext; then
f73dda09
JA
22404 ac_hi=$ac_mid
22405else
3185942a 22406 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22407sed 's/^/| /' conftest.$ac_ext >&5
22408
3185942a 22409 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 22410fi
3185942a
JA
22411
22412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22413done
b80f6443
JA
22414case $ac_lo in
22415?*) ac_cv_sizeof_char_p=$ac_lo;;
3185942a
JA
22416'') if test "$ac_cv_type_char_p" = yes; then
22417 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22419{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
0628567a 22420See \`config.log' for more details." >&5
3185942a 22421$as_echo "$as_me: error: cannot compute sizeof (char *)
0628567a 22422See \`config.log' for more details." >&2;}
3185942a
JA
22423 { (exit 77); exit 77; }; }; }
22424 else
22425 ac_cv_sizeof_char_p=0
22426 fi ;;
b80f6443 22427esac
bb70624e 22428else
f73dda09 22429 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22430/* confdefs.h. */
22431_ACEOF
22432cat confdefs.h >>conftest.$ac_ext
22433cat >>conftest.$ac_ext <<_ACEOF
22434/* end confdefs.h. */
f73dda09 22435$ac_includes_default
3185942a
JA
22436static long int longval () { return (long int) (sizeof (char *)); }
22437static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
b80f6443
JA
22438#include <stdio.h>
22439#include <stdlib.h>
f73dda09
JA
22440int
22441main ()
bb70624e 22442{
b80f6443
JA
22443
22444 FILE *f = fopen ("conftest.val", "w");
22445 if (! f)
3185942a
JA
22446 return 1;
22447 if (((long int) (sizeof (char *))) < 0)
b80f6443 22448 {
3185942a
JA
22449 long int i = longval ();
22450 if (i != ((long int) (sizeof (char *))))
22451 return 1;
22452 fprintf (f, "%ld", i);
b80f6443
JA
22453 }
22454 else
22455 {
3185942a
JA
22456 unsigned long int i = ulongval ();
22457 if (i != ((long int) (sizeof (char *))))
22458 return 1;
22459 fprintf (f, "%lu", i);
b80f6443 22460 }
3185942a
JA
22461 /* Do not output a trailing newline, as this causes \r\n confusion
22462 on some platforms. */
22463 return ferror (f) || fclose (f) != 0;
b80f6443 22464
f73dda09
JA
22465 ;
22466 return 0;
bb70624e 22467}
f73dda09
JA
22468_ACEOF
22469rm -f conftest$ac_exeext
3185942a
JA
22470if { (ac_try="$ac_link"
22471case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22474esac
22475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22476$as_echo "$ac_try_echo") >&5
22477 (eval "$ac_link") 2>&5
f73dda09 22478 ac_status=$?
3185942a 22479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
22481 { (case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22484esac
22485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22486$as_echo "$ac_try_echo") >&5
22487 (eval "$ac_try") 2>&5
f73dda09 22488 ac_status=$?
3185942a 22489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22490 (exit $ac_status); }; }; then
22491 ac_cv_sizeof_char_p=`cat conftest.val`
bb70624e 22492else
3185942a
JA
22493 $as_echo "$as_me: program exited with status $ac_status" >&5
22494$as_echo "$as_me: failed program was:" >&5
0628567a
JA
22495sed 's/^/| /' conftest.$ac_ext >&5
22496
b80f6443 22497( exit $ac_status )
3185942a
JA
22498if test "$ac_cv_type_char_p" = yes; then
22499 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22501{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
0628567a 22502See \`config.log' for more details." >&5
3185942a 22503$as_echo "$as_me: error: cannot compute sizeof (char *)
0628567a 22504See \`config.log' for more details." >&2;}
3185942a
JA
22505 { (exit 77); exit 77; }; }; }
22506 else
22507 ac_cv_sizeof_char_p=0
22508 fi
bb70624e 22509fi
3185942a
JA
22510rm -rf conftest.dSYM
22511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 22512fi
f73dda09 22513rm -f conftest.val
f73dda09 22514fi
3185942a
JA
22515{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22516$as_echo "$ac_cv_sizeof_char_p" >&6; }
bb70624e 22517
b80f6443 22518
3185942a
JA
22519
22520cat >>confdefs.h <<_ACEOF
22521#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
f73dda09 22522_ACEOF
0628567a 22523
f73dda09 22524
3185942a
JA
22525# The cast to long int works around a bug in the HP C Compiler
22526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22528# This bug is HP SR number 8606223364.
22529{ $as_echo "$as_me:$LINENO: checking size of double" >&5
22530$as_echo_n "checking size of double... " >&6; }
f73dda09 22531if test "${ac_cv_sizeof_double+set}" = set; then
3185942a 22532 $as_echo_n "(cached) " >&6
f73dda09 22533else
cce855bc 22534 if test "$cross_compiling" = yes; then
f73dda09
JA
22535 # Depending upon the size, compute the lo and hi bounds.
22536cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22537/* confdefs.h. */
22538_ACEOF
22539cat confdefs.h >>conftest.$ac_ext
22540cat >>conftest.$ac_ext <<_ACEOF
22541/* end confdefs.h. */
f73dda09
JA
22542$ac_includes_default
22543int
22544main ()
cce855bc 22545{
3185942a 22546static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
b80f6443
JA
22547test_array [0] = 0
22548
f73dda09
JA
22549 ;
22550 return 0;
cce855bc 22551}
f73dda09
JA
22552_ACEOF
22553rm -f conftest.$ac_objext
3185942a
JA
22554if { (ac_try="$ac_compile"
22555case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558esac
22559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22560$as_echo "$ac_try_echo") >&5
22561 (eval "$ac_compile") 2>conftest.er1
f73dda09 22562 ac_status=$?
0628567a
JA
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
3185942a
JA
22566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
f73dda09
JA
22571 ac_lo=0 ac_mid=0
22572 while :; do
22573 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22574/* confdefs.h. */
22575_ACEOF
22576cat confdefs.h >>conftest.$ac_ext
22577cat >>conftest.$ac_ext <<_ACEOF
22578/* end confdefs.h. */
f73dda09
JA
22579$ac_includes_default
22580int
22581main ()
22582{
3185942a 22583static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
b80f6443
JA
22584test_array [0] = 0
22585
f73dda09
JA
22586 ;
22587 return 0;
22588}
22589_ACEOF
22590rm -f conftest.$ac_objext
3185942a
JA
22591if { (ac_try="$ac_compile"
22592case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595esac
22596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597$as_echo "$ac_try_echo") >&5
22598 (eval "$ac_compile") 2>conftest.er1
f73dda09 22599 ac_status=$?
0628567a
JA
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
3185942a
JA
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
f73dda09
JA
22608 ac_hi=$ac_mid; break
22609else
3185942a 22610 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22611sed 's/^/| /' conftest.$ac_ext >&5
22612
3185942a
JA
22613 ac_lo=`expr $ac_mid + 1`
22614 if test $ac_lo -le $ac_mid; then
22615 ac_lo= ac_hi=
22616 break
22617 fi
22618 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 22619fi
3185942a
JA
22620
22621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22622 done
cce855bc 22623else
3185942a 22624 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22625sed 's/^/| /' conftest.$ac_ext >&5
22626
3185942a 22627 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22628/* confdefs.h. */
22629_ACEOF
22630cat confdefs.h >>conftest.$ac_ext
22631cat >>conftest.$ac_ext <<_ACEOF
22632/* end confdefs.h. */
b80f6443
JA
22633$ac_includes_default
22634int
22635main ()
22636{
3185942a 22637static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
b80f6443
JA
22638test_array [0] = 0
22639
22640 ;
22641 return 0;
22642}
22643_ACEOF
22644rm -f conftest.$ac_objext
3185942a
JA
22645if { (ac_try="$ac_compile"
22646case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22649esac
22650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22651$as_echo "$ac_try_echo") >&5
22652 (eval "$ac_compile") 2>conftest.er1
b80f6443 22653 ac_status=$?
0628567a
JA
22654 grep -v '^ *+' conftest.er1 >conftest.err
22655 rm -f conftest.er1
22656 cat conftest.err >&5
3185942a
JA
22657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest.$ac_objext; then
b80f6443 22662 ac_hi=-1 ac_mid=-1
f73dda09
JA
22663 while :; do
22664 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22665/* confdefs.h. */
22666_ACEOF
22667cat confdefs.h >>conftest.$ac_ext
22668cat >>conftest.$ac_ext <<_ACEOF
22669/* end confdefs.h. */
f73dda09
JA
22670$ac_includes_default
22671int
22672main ()
22673{
3185942a 22674static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
b80f6443
JA
22675test_array [0] = 0
22676
f73dda09
JA
22677 ;
22678 return 0;
22679}
22680_ACEOF
22681rm -f conftest.$ac_objext
3185942a
JA
22682if { (ac_try="$ac_compile"
22683case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22686esac
22687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22688$as_echo "$ac_try_echo") >&5
22689 (eval "$ac_compile") 2>conftest.er1
f73dda09 22690 ac_status=$?
0628567a
JA
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
3185942a
JA
22694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
f73dda09
JA
22699 ac_lo=$ac_mid; break
22700else
3185942a 22701 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22702sed 's/^/| /' conftest.$ac_ext >&5
22703
3185942a
JA
22704 ac_hi=`expr '(' $ac_mid ')' - 1`
22705 if test $ac_mid -le $ac_hi; then
22706 ac_lo= ac_hi=
22707 break
22708 fi
22709 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 22710fi
3185942a
JA
22711
22712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22713 done
b80f6443 22714else
3185942a 22715 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22716sed 's/^/| /' conftest.$ac_ext >&5
22717
3185942a 22718 ac_lo= ac_hi=
b80f6443 22719fi
3185942a
JA
22720
22721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22722fi
3185942a
JA
22723
22724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
22725# Binary search between lo and hi bounds.
22726while test "x$ac_lo" != "x$ac_hi"; do
22727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22728 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22729/* confdefs.h. */
22730_ACEOF
22731cat confdefs.h >>conftest.$ac_ext
22732cat >>conftest.$ac_ext <<_ACEOF
22733/* end confdefs.h. */
f73dda09
JA
22734$ac_includes_default
22735int
22736main ()
22737{
3185942a 22738static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
b80f6443
JA
22739test_array [0] = 0
22740
f73dda09
JA
22741 ;
22742 return 0;
22743}
22744_ACEOF
22745rm -f conftest.$ac_objext
3185942a
JA
22746if { (ac_try="$ac_compile"
22747case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22750esac
22751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22752$as_echo "$ac_try_echo") >&5
22753 (eval "$ac_compile") 2>conftest.er1
f73dda09 22754 ac_status=$?
0628567a
JA
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
3185942a
JA
22758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest.$ac_objext; then
f73dda09
JA
22763 ac_hi=$ac_mid
22764else
3185942a 22765 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22766sed 's/^/| /' conftest.$ac_ext >&5
22767
3185942a 22768 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 22769fi
3185942a
JA
22770
22771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22772done
b80f6443
JA
22773case $ac_lo in
22774?*) ac_cv_sizeof_double=$ac_lo;;
3185942a
JA
22775'') if test "$ac_cv_type_double" = yes; then
22776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22778{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
0628567a 22779See \`config.log' for more details." >&5
3185942a 22780$as_echo "$as_me: error: cannot compute sizeof (double)
0628567a 22781See \`config.log' for more details." >&2;}
3185942a
JA
22782 { (exit 77); exit 77; }; }; }
22783 else
22784 ac_cv_sizeof_double=0
22785 fi ;;
b80f6443 22786esac
cce855bc 22787else
f73dda09 22788 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22789/* confdefs.h. */
22790_ACEOF
22791cat confdefs.h >>conftest.$ac_ext
22792cat >>conftest.$ac_ext <<_ACEOF
22793/* end confdefs.h. */
f73dda09 22794$ac_includes_default
3185942a
JA
22795static long int longval () { return (long int) (sizeof (double)); }
22796static unsigned long int ulongval () { return (long int) (sizeof (double)); }
b80f6443
JA
22797#include <stdio.h>
22798#include <stdlib.h>
f73dda09
JA
22799int
22800main ()
cce855bc 22801{
b80f6443
JA
22802
22803 FILE *f = fopen ("conftest.val", "w");
22804 if (! f)
3185942a
JA
22805 return 1;
22806 if (((long int) (sizeof (double))) < 0)
b80f6443 22807 {
3185942a
JA
22808 long int i = longval ();
22809 if (i != ((long int) (sizeof (double))))
22810 return 1;
22811 fprintf (f, "%ld", i);
b80f6443
JA
22812 }
22813 else
22814 {
3185942a
JA
22815 unsigned long int i = ulongval ();
22816 if (i != ((long int) (sizeof (double))))
22817 return 1;
22818 fprintf (f, "%lu", i);
b80f6443 22819 }
3185942a
JA
22820 /* Do not output a trailing newline, as this causes \r\n confusion
22821 on some platforms. */
22822 return ferror (f) || fclose (f) != 0;
b80f6443 22823
f73dda09
JA
22824 ;
22825 return 0;
cce855bc 22826}
f73dda09
JA
22827_ACEOF
22828rm -f conftest$ac_exeext
3185942a
JA
22829if { (ac_try="$ac_link"
22830case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22833esac
22834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22835$as_echo "$ac_try_echo") >&5
22836 (eval "$ac_link") 2>&5
f73dda09 22837 ac_status=$?
3185942a 22838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843esac
22844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22845$as_echo "$ac_try_echo") >&5
22846 (eval "$ac_try") 2>&5
f73dda09 22847 ac_status=$?
3185942a 22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22849 (exit $ac_status); }; }; then
22850 ac_cv_sizeof_double=`cat conftest.val`
cce855bc 22851else
3185942a
JA
22852 $as_echo "$as_me: program exited with status $ac_status" >&5
22853$as_echo "$as_me: failed program was:" >&5
0628567a
JA
22854sed 's/^/| /' conftest.$ac_ext >&5
22855
b80f6443 22856( exit $ac_status )
3185942a
JA
22857if test "$ac_cv_type_double" = yes; then
22858 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22860{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
0628567a 22861See \`config.log' for more details." >&5
3185942a 22862$as_echo "$as_me: error: cannot compute sizeof (double)
0628567a 22863See \`config.log' for more details." >&2;}
3185942a
JA
22864 { (exit 77); exit 77; }; }; }
22865 else
22866 ac_cv_sizeof_double=0
22867 fi
cce855bc 22868fi
3185942a
JA
22869rm -rf conftest.dSYM
22870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cce855bc 22871fi
f73dda09 22872rm -f conftest.val
f73dda09 22873fi
3185942a
JA
22874{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22875$as_echo "$ac_cv_sizeof_double" >&6; }
cce855bc 22876
b80f6443 22877
3185942a
JA
22878
22879cat >>confdefs.h <<_ACEOF
22880#define SIZEOF_DOUBLE $ac_cv_sizeof_double
f73dda09 22881_ACEOF
0628567a 22882
f73dda09 22883
3185942a
JA
22884# The cast to long int works around a bug in the HP C Compiler
22885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22887# This bug is HP SR number 8606223364.
22888{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
22889$as_echo_n "checking size of long long... " >&6; }
f73dda09 22890if test "${ac_cv_sizeof_long_long+set}" = set; then
3185942a 22891 $as_echo_n "(cached) " >&6
f73dda09 22892else
cce855bc 22893 if test "$cross_compiling" = yes; then
f73dda09
JA
22894 # Depending upon the size, compute the lo and hi bounds.
22895cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22896/* confdefs.h. */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h. */
f73dda09
JA
22901$ac_includes_default
22902int
22903main ()
cce855bc 22904{
3185942a 22905static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
b80f6443
JA
22906test_array [0] = 0
22907
f73dda09
JA
22908 ;
22909 return 0;
cce855bc 22910}
f73dda09
JA
22911_ACEOF
22912rm -f conftest.$ac_objext
3185942a
JA
22913if { (ac_try="$ac_compile"
22914case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917esac
22918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22919$as_echo "$ac_try_echo") >&5
22920 (eval "$ac_compile") 2>conftest.er1
f73dda09 22921 ac_status=$?
0628567a
JA
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
3185942a
JA
22925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
f73dda09
JA
22930 ac_lo=0 ac_mid=0
22931 while :; do
22932 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22933/* confdefs.h. */
22934_ACEOF
22935cat confdefs.h >>conftest.$ac_ext
22936cat >>conftest.$ac_ext <<_ACEOF
22937/* end confdefs.h. */
f73dda09
JA
22938$ac_includes_default
22939int
22940main ()
22941{
3185942a 22942static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
b80f6443
JA
22943test_array [0] = 0
22944
f73dda09
JA
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext
3185942a
JA
22950if { (ac_try="$ac_compile"
22951case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954esac
22955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956$as_echo "$ac_try_echo") >&5
22957 (eval "$ac_compile") 2>conftest.er1
f73dda09 22958 ac_status=$?
0628567a
JA
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
3185942a
JA
22962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
f73dda09
JA
22967 ac_hi=$ac_mid; break
22968else
3185942a 22969 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
3185942a
JA
22972 ac_lo=`expr $ac_mid + 1`
22973 if test $ac_lo -le $ac_mid; then
22974 ac_lo= ac_hi=
22975 break
22976 fi
22977 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 22978fi
3185942a
JA
22979
22980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22981 done
cce855bc 22982else
3185942a 22983 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
3185942a 22986 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22987/* confdefs.h. */
22988_ACEOF
22989cat confdefs.h >>conftest.$ac_ext
22990cat >>conftest.$ac_ext <<_ACEOF
22991/* end confdefs.h. */
b80f6443
JA
22992$ac_includes_default
22993int
22994main ()
22995{
3185942a 22996static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
b80f6443
JA
22997test_array [0] = 0
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext
3185942a
JA
23004if { (ac_try="$ac_compile"
23005case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008esac
23009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010$as_echo "$ac_try_echo") >&5
23011 (eval "$ac_compile") 2>conftest.er1
b80f6443 23012 ac_status=$?
0628567a
JA
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
3185942a
JA
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
b80f6443 23021 ac_hi=-1 ac_mid=-1
f73dda09
JA
23022 while :; do
23023 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23024/* confdefs.h. */
23025_ACEOF
23026cat confdefs.h >>conftest.$ac_ext
23027cat >>conftest.$ac_ext <<_ACEOF
23028/* end confdefs.h. */
f73dda09
JA
23029$ac_includes_default
23030int
23031main ()
23032{
3185942a 23033static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
b80f6443
JA
23034test_array [0] = 0
23035
f73dda09
JA
23036 ;
23037 return 0;
23038}
23039_ACEOF
23040rm -f conftest.$ac_objext
3185942a
JA
23041if { (ac_try="$ac_compile"
23042case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23045esac
23046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047$as_echo "$ac_try_echo") >&5
23048 (eval "$ac_compile") 2>conftest.er1
f73dda09 23049 ac_status=$?
0628567a
JA
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
3185942a
JA
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest.$ac_objext; then
f73dda09
JA
23058 ac_lo=$ac_mid; break
23059else
3185942a 23060 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23061sed 's/^/| /' conftest.$ac_ext >&5
23062
3185942a
JA
23063 ac_hi=`expr '(' $ac_mid ')' - 1`
23064 if test $ac_mid -le $ac_hi; then
23065 ac_lo= ac_hi=
23066 break
23067 fi
23068 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 23069fi
3185942a
JA
23070
23071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 23072 done
b80f6443 23073else
3185942a 23074 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23075sed 's/^/| /' conftest.$ac_ext >&5
23076
3185942a 23077 ac_lo= ac_hi=
b80f6443 23078fi
3185942a
JA
23079
23080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 23081fi
3185942a
JA
23082
23083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
23084# Binary search between lo and hi bounds.
23085while test "x$ac_lo" != "x$ac_hi"; do
23086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23087 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
f73dda09
JA
23093$ac_includes_default
23094int
23095main ()
23096{
3185942a 23097static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
b80f6443
JA
23098test_array [0] = 0
23099
f73dda09
JA
23100 ;
23101 return 0;
23102}
23103_ACEOF
23104rm -f conftest.$ac_objext
3185942a
JA
23105if { (ac_try="$ac_compile"
23106case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109esac
23110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23111$as_echo "$ac_try_echo") >&5
23112 (eval "$ac_compile") 2>conftest.er1
f73dda09 23113 ac_status=$?
0628567a
JA
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
3185942a
JA
23117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
f73dda09
JA
23122 ac_hi=$ac_mid
23123else
3185942a 23124 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23125sed 's/^/| /' conftest.$ac_ext >&5
23126
3185942a 23127 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 23128fi
3185942a
JA
23129
23130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 23131done
b80f6443
JA
23132case $ac_lo in
23133?*) ac_cv_sizeof_long_long=$ac_lo;;
3185942a
JA
23134'') if test "$ac_cv_type_long_long" = yes; then
23135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23137{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
0628567a 23138See \`config.log' for more details." >&5
3185942a 23139$as_echo "$as_me: error: cannot compute sizeof (long long)
0628567a 23140See \`config.log' for more details." >&2;}
3185942a
JA
23141 { (exit 77); exit 77; }; }; }
23142 else
23143 ac_cv_sizeof_long_long=0
23144 fi ;;
b80f6443 23145esac
bb70624e 23146else
f73dda09 23147 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23148/* confdefs.h. */
23149_ACEOF
23150cat confdefs.h >>conftest.$ac_ext
23151cat >>conftest.$ac_ext <<_ACEOF
23152/* end confdefs.h. */
f73dda09 23153$ac_includes_default
3185942a
JA
23154static long int longval () { return (long int) (sizeof (long long)); }
23155static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
b80f6443
JA
23156#include <stdio.h>
23157#include <stdlib.h>
f73dda09
JA
23158int
23159main ()
bb70624e 23160{
b80f6443
JA
23161
23162 FILE *f = fopen ("conftest.val", "w");
23163 if (! f)
3185942a
JA
23164 return 1;
23165 if (((long int) (sizeof (long long))) < 0)
b80f6443 23166 {
3185942a
JA
23167 long int i = longval ();
23168 if (i != ((long int) (sizeof (long long))))
23169 return 1;
23170 fprintf (f, "%ld", i);
b80f6443
JA
23171 }
23172 else
23173 {
3185942a
JA
23174 unsigned long int i = ulongval ();
23175 if (i != ((long int) (sizeof (long long))))
23176 return 1;
23177 fprintf (f, "%lu", i);
b80f6443 23178 }
3185942a
JA
23179 /* Do not output a trailing newline, as this causes \r\n confusion
23180 on some platforms. */
23181 return ferror (f) || fclose (f) != 0;
b80f6443 23182
f73dda09
JA
23183 ;
23184 return 0;
bb70624e 23185}
f73dda09
JA
23186_ACEOF
23187rm -f conftest$ac_exeext
3185942a
JA
23188if { (ac_try="$ac_link"
23189case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192esac
23193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194$as_echo "$ac_try_echo") >&5
23195 (eval "$ac_link") 2>&5
f73dda09 23196 ac_status=$?
3185942a 23197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
23199 { (case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202esac
23203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23204$as_echo "$ac_try_echo") >&5
23205 (eval "$ac_try") 2>&5
f73dda09 23206 ac_status=$?
3185942a 23207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
23208 (exit $ac_status); }; }; then
23209 ac_cv_sizeof_long_long=`cat conftest.val`
bb70624e 23210else
3185942a
JA
23211 $as_echo "$as_me: program exited with status $ac_status" >&5
23212$as_echo "$as_me: failed program was:" >&5
0628567a
JA
23213sed 's/^/| /' conftest.$ac_ext >&5
23214
b80f6443 23215( exit $ac_status )
3185942a
JA
23216if test "$ac_cv_type_long_long" = yes; then
23217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23219{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
0628567a 23220See \`config.log' for more details." >&5
3185942a 23221$as_echo "$as_me: error: cannot compute sizeof (long long)
0628567a 23222See \`config.log' for more details." >&2;}
3185942a
JA
23223 { (exit 77); exit 77; }; }; }
23224 else
23225 ac_cv_sizeof_long_long=0
23226 fi
bb70624e 23227fi
3185942a
JA
23228rm -rf conftest.dSYM
23229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 23230fi
f73dda09 23231rm -f conftest.val
f73dda09 23232fi
3185942a
JA
23233{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23234$as_echo "$ac_cv_sizeof_long_long" >&6; }
23235
23236
23237
b80f6443 23238cat >>confdefs.h <<_ACEOF
f73dda09 23239#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
b80f6443 23240_ACEOF
bb70624e 23241
b80f6443
JA
23242
23243
3185942a
JA
23244{ $as_echo "$as_me:$LINENO: checking for u_int" >&5
23245$as_echo_n "checking for u_int... " >&6; }
f73dda09 23246if test "${ac_cv_type_u_int+set}" = set; then
3185942a 23247 $as_echo_n "(cached) " >&6
bb70624e 23248else
3185942a
JA
23249 ac_cv_type_u_int=no
23250cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
f73dda09
JA
23256$ac_includes_default
23257int
23258main ()
23259{
f73dda09 23260if (sizeof (u_int))
3185942a 23261 return 0;
f73dda09
JA
23262 ;
23263 return 0;
23264}
23265_ACEOF
23266rm -f conftest.$ac_objext
3185942a
JA
23267if { (ac_try="$ac_compile"
23268case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271esac
23272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23273$as_echo "$ac_try_echo") >&5
23274 (eval "$ac_compile") 2>conftest.er1
f73dda09 23275 ac_status=$?
0628567a
JA
23276 grep -v '^ *+' conftest.er1 >conftest.err
23277 rm -f conftest.er1
23278 cat conftest.err >&5
3185942a
JA
23279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
f73dda09 23284 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23285/* confdefs.h. */
23286_ACEOF
23287cat confdefs.h >>conftest.$ac_ext
23288cat >>conftest.$ac_ext <<_ACEOF
23289/* end confdefs.h. */
f73dda09
JA
23290$ac_includes_default
23291int
23292main ()
23293{
3185942a
JA
23294if (sizeof ((u_int)))
23295 return 0;
f73dda09
JA
23296 ;
23297 return 0;
23298}
23299_ACEOF
23300rm -f conftest.$ac_objext
3185942a
JA
23301if { (ac_try="$ac_compile"
23302case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23305esac
23306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23307$as_echo "$ac_try_echo") >&5
23308 (eval "$ac_compile") 2>conftest.er1
f73dda09 23309 ac_status=$?
0628567a
JA
23310 grep -v '^ *+' conftest.er1 >conftest.err
23311 rm -f conftest.er1
23312 cat conftest.err >&5
3185942a
JA
23313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } && {
23315 test -z "$ac_c_werror_flag" ||
23316 test ! -s conftest.err
23317 } && test -s conftest.$ac_objext; then
23318 :
23319else
23320 $as_echo "$as_me: failed program was:" >&5
23321sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ac_cv_type_u_int=yes
23324fi
23325
23326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 23327else
3185942a 23328 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23329sed 's/^/| /' conftest.$ac_ext >&5
23330
3185942a 23331
bb70624e 23332fi
3185942a
JA
23333
23334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 23335fi
3185942a
JA
23336{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23337$as_echo "$ac_cv_type_u_int" >&6; }
23338if test "x$ac_cv_type_u_int" = x""yes; then
f73dda09
JA
23339 :
23340else
23341
b80f6443 23342cat >>confdefs.h <<_ACEOF
3185942a 23343#define u_int unsigned int
b80f6443 23344_ACEOF
bb70624e
JA
23345
23346fi
23347
3185942a
JA
23348{ $as_echo "$as_me:$LINENO: checking for u_long" >&5
23349$as_echo_n "checking for u_long... " >&6; }
23350if test "${ac_cv_type_u_long+set}" = set; then
23351 $as_echo_n "(cached) " >&6
bb70624e 23352else
3185942a
JA
23353 ac_cv_type_u_long=no
23354cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23355/* confdefs.h. */
23356_ACEOF
23357cat confdefs.h >>conftest.$ac_ext
23358cat >>conftest.$ac_ext <<_ACEOF
23359/* end confdefs.h. */
f73dda09
JA
23360$ac_includes_default
23361int
23362main ()
23363{
3185942a
JA
23364if (sizeof (u_long))
23365 return 0;
f73dda09
JA
23366 ;
23367 return 0;
23368}
23369_ACEOF
23370rm -f conftest.$ac_objext
3185942a
JA
23371if { (ac_try="$ac_compile"
23372case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375esac
23376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23377$as_echo "$ac_try_echo") >&5
23378 (eval "$ac_compile") 2>conftest.er1
f73dda09 23379 ac_status=$?
0628567a
JA
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
3185942a
JA
23383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
f73dda09 23388 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23389/* confdefs.h. */
23390_ACEOF
23391cat confdefs.h >>conftest.$ac_ext
23392cat >>conftest.$ac_ext <<_ACEOF
23393/* end confdefs.h. */
f73dda09
JA
23394$ac_includes_default
23395int
23396main ()
23397{
3185942a
JA
23398if (sizeof ((u_long)))
23399 return 0;
f73dda09
JA
23400 ;
23401 return 0;
23402}
23403_ACEOF
23404rm -f conftest.$ac_objext
3185942a
JA
23405if { (ac_try="$ac_compile"
23406case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23409esac
23410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23411$as_echo "$ac_try_echo") >&5
23412 (eval "$ac_compile") 2>conftest.er1
f73dda09 23413 ac_status=$?
0628567a
JA
23414 grep -v '^ *+' conftest.er1 >conftest.err
23415 rm -f conftest.er1
23416 cat conftest.err >&5
3185942a
JA
23417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest.$ac_objext; then
23422 :
23423else
23424 $as_echo "$as_me: failed program was:" >&5
23425sed 's/^/| /' conftest.$ac_ext >&5
23426
23427 ac_cv_type_u_long=yes
23428fi
23429
23430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 23431else
3185942a 23432 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23433sed 's/^/| /' conftest.$ac_ext >&5
23434
3185942a 23435
bb70624e 23436fi
3185942a
JA
23437
23438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 23439fi
3185942a
JA
23440{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23441$as_echo "$ac_cv_type_u_long" >&6; }
23442if test "x$ac_cv_type_u_long" = x""yes; then
f73dda09
JA
23443 :
23444else
23445
b80f6443 23446cat >>confdefs.h <<_ACEOF
3185942a 23447#define u_long unsigned long
b80f6443 23448_ACEOF
bb70624e
JA
23449
23450fi
23451
3185942a
JA
23452
23453
23454if test "$ac_cv_sizeof_short" = 2; then
23455 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23456$as_echo_n "checking for bits16_t... " >&6; }
f73dda09 23457if test "${ac_cv_type_bits16_t+set}" = set; then
3185942a 23458 $as_echo_n "(cached) " >&6
b72432fd 23459else
3185942a
JA
23460 ac_cv_type_bits16_t=no
23461cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23462/* confdefs.h. */
23463_ACEOF
23464cat confdefs.h >>conftest.$ac_ext
23465cat >>conftest.$ac_ext <<_ACEOF
23466/* end confdefs.h. */
f73dda09
JA
23467$ac_includes_default
23468int
23469main ()
23470{
f73dda09 23471if (sizeof (bits16_t))
3185942a 23472 return 0;
f73dda09
JA
23473 ;
23474 return 0;
23475}
23476_ACEOF
23477rm -f conftest.$ac_objext
3185942a
JA
23478if { (ac_try="$ac_compile"
23479case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23482esac
23483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23484$as_echo "$ac_try_echo") >&5
23485 (eval "$ac_compile") 2>conftest.er1
f73dda09 23486 ac_status=$?
0628567a
JA
23487 grep -v '^ *+' conftest.er1 >conftest.err
23488 rm -f conftest.er1
23489 cat conftest.err >&5
3185942a
JA
23490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } && {
23492 test -z "$ac_c_werror_flag" ||
23493 test ! -s conftest.err
23494 } && test -s conftest.$ac_objext; then
f73dda09 23495 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23496/* confdefs.h. */
23497_ACEOF
23498cat confdefs.h >>conftest.$ac_ext
23499cat >>conftest.$ac_ext <<_ACEOF
23500/* end confdefs.h. */
f73dda09
JA
23501$ac_includes_default
23502int
23503main ()
23504{
3185942a
JA
23505if (sizeof ((bits16_t)))
23506 return 0;
f73dda09
JA
23507 ;
23508 return 0;
23509}
23510_ACEOF
23511rm -f conftest.$ac_objext
3185942a
JA
23512if { (ac_try="$ac_compile"
23513case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516esac
23517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23518$as_echo "$ac_try_echo") >&5
23519 (eval "$ac_compile") 2>conftest.er1
f73dda09 23520 ac_status=$?
0628567a
JA
23521 grep -v '^ *+' conftest.er1 >conftest.err
23522 rm -f conftest.er1
23523 cat conftest.err >&5
3185942a
JA
23524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && {
23526 test -z "$ac_c_werror_flag" ||
23527 test ! -s conftest.err
23528 } && test -s conftest.$ac_objext; then
23529 :
23530else
23531 $as_echo "$as_me: failed program was:" >&5
23532sed 's/^/| /' conftest.$ac_ext >&5
23533
23534 ac_cv_type_bits16_t=yes
23535fi
23536
23537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 23538else
3185942a 23539 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23540sed 's/^/| /' conftest.$ac_ext >&5
23541
3185942a 23542
cce855bc 23543fi
3185942a
JA
23544
23545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 23546fi
3185942a
JA
23547{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23548$as_echo "$ac_cv_type_bits16_t" >&6; }
23549if test "x$ac_cv_type_bits16_t" = x""yes; then
f73dda09
JA
23550 :
23551else
23552
b80f6443 23553cat >>confdefs.h <<_ACEOF
3185942a 23554#define bits16_t short
b80f6443 23555_ACEOF
cce855bc
JA
23556
23557fi
23558
bb70624e 23559elif test "$ac_cv_sizeof_char" = 2; then
3185942a
JA
23560 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23561$as_echo_n "checking for bits16_t... " >&6; }
23562if test "${ac_cv_type_bits16_t+set}" = set; then
23563 $as_echo_n "(cached) " >&6
cce855bc 23564else
3185942a
JA
23565 ac_cv_type_bits16_t=no
23566cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23567/* confdefs.h. */
23568_ACEOF
23569cat confdefs.h >>conftest.$ac_ext
23570cat >>conftest.$ac_ext <<_ACEOF
23571/* end confdefs.h. */
f73dda09
JA
23572$ac_includes_default
23573int
23574main ()
23575{
3185942a
JA
23576if (sizeof (bits16_t))
23577 return 0;
f73dda09
JA
23578 ;
23579 return 0;
23580}
23581_ACEOF
23582rm -f conftest.$ac_objext
3185942a
JA
23583if { (ac_try="$ac_compile"
23584case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587esac
23588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589$as_echo "$ac_try_echo") >&5
23590 (eval "$ac_compile") 2>conftest.er1
f73dda09 23591 ac_status=$?
0628567a
JA
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
3185942a
JA
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
f73dda09 23600 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23601/* confdefs.h. */
23602_ACEOF
23603cat confdefs.h >>conftest.$ac_ext
23604cat >>conftest.$ac_ext <<_ACEOF
23605/* end confdefs.h. */
f73dda09
JA
23606$ac_includes_default
23607int
23608main ()
23609{
3185942a
JA
23610if (sizeof ((bits16_t)))
23611 return 0;
f73dda09
JA
23612 ;
23613 return 0;
23614}
23615_ACEOF
23616rm -f conftest.$ac_objext
3185942a
JA
23617if { (ac_try="$ac_compile"
23618case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621esac
23622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23623$as_echo "$ac_try_echo") >&5
23624 (eval "$ac_compile") 2>conftest.er1
f73dda09 23625 ac_status=$?
0628567a
JA
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
3185942a
JA
23629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 :
23635else
23636 $as_echo "$as_me: failed program was:" >&5
23637sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 ac_cv_type_bits16_t=yes
23640fi
23641
23642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 23643else
3185942a 23644 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
3185942a 23647
cce855bc 23648fi
3185942a
JA
23649
23650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 23651fi
3185942a
JA
23652{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23653$as_echo "$ac_cv_type_bits16_t" >&6; }
23654if test "x$ac_cv_type_bits16_t" = x""yes; then
f73dda09
JA
23655 :
23656else
23657
b80f6443 23658cat >>confdefs.h <<_ACEOF
3185942a 23659#define bits16_t char
b80f6443 23660_ACEOF
cce855bc 23661
b72432fd
JA
23662fi
23663
cce855bc 23664else
3185942a
JA
23665 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23666$as_echo_n "checking for bits16_t... " >&6; }
23667if test "${ac_cv_type_bits16_t+set}" = set; then
23668 $as_echo_n "(cached) " >&6
23669else
23670 ac_cv_type_bits16_t=no
23671cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23672/* confdefs.h. */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h. */
f73dda09
JA
23677$ac_includes_default
23678int
23679main ()
23680{
3185942a
JA
23681if (sizeof (bits16_t))
23682 return 0;
f73dda09
JA
23683 ;
23684 return 0;
23685}
23686_ACEOF
23687rm -f conftest.$ac_objext
3185942a
JA
23688if { (ac_try="$ac_compile"
23689case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23692esac
23693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23694$as_echo "$ac_try_echo") >&5
23695 (eval "$ac_compile") 2>conftest.er1
f73dda09 23696 ac_status=$?
0628567a
JA
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
3185942a
JA
23700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
f73dda09 23705 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23706/* confdefs.h. */
23707_ACEOF
23708cat confdefs.h >>conftest.$ac_ext
23709cat >>conftest.$ac_ext <<_ACEOF
23710/* end confdefs.h. */
f73dda09
JA
23711$ac_includes_default
23712int
23713main ()
23714{
3185942a
JA
23715if (sizeof ((bits16_t)))
23716 return 0;
f73dda09
JA
23717 ;
23718 return 0;
23719}
23720_ACEOF
23721rm -f conftest.$ac_objext
3185942a
JA
23722if { (ac_try="$ac_compile"
23723case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23726esac
23727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23728$as_echo "$ac_try_echo") >&5
23729 (eval "$ac_compile") 2>conftest.er1
f73dda09 23730 ac_status=$?
0628567a
JA
23731 grep -v '^ *+' conftest.er1 >conftest.err
23732 rm -f conftest.er1
23733 cat conftest.err >&5
3185942a
JA
23734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23739 :
23740else
23741 $as_echo "$as_me: failed program was:" >&5
23742sed 's/^/| /' conftest.$ac_ext >&5
23743
23744 ac_cv_type_bits16_t=yes
23745fi
23746
23747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 23748else
3185942a 23749 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
3185942a 23752
cce855bc 23753fi
3185942a
JA
23754
23755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 23756fi
3185942a
JA
23757{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23758$as_echo "$ac_cv_type_bits16_t" >&6; }
23759if test "x$ac_cv_type_bits16_t" = x""yes; then
f73dda09
JA
23760 :
23761else
23762
b80f6443 23763cat >>confdefs.h <<_ACEOF
3185942a 23764#define bits16_t short
b80f6443 23765_ACEOF
cce855bc
JA
23766
23767fi
23768
3185942a
JA
23769fi
23770
23771
23772if test "$ac_cv_sizeof_short" = 2; then
23773 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23774$as_echo_n "checking for u_bits16_t... " >&6; }
23775if test "${ac_cv_type_u_bits16_t+set}" = set; then
23776 $as_echo_n "(cached) " >&6
cce855bc 23777else
3185942a
JA
23778 ac_cv_type_u_bits16_t=no
23779cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23780/* confdefs.h. */
23781_ACEOF
23782cat confdefs.h >>conftest.$ac_ext
23783cat >>conftest.$ac_ext <<_ACEOF
23784/* end confdefs.h. */
f73dda09
JA
23785$ac_includes_default
23786int
23787main ()
23788{
3185942a
JA
23789if (sizeof (u_bits16_t))
23790 return 0;
f73dda09
JA
23791 ;
23792 return 0;
23793}
23794_ACEOF
23795rm -f conftest.$ac_objext
3185942a
JA
23796if { (ac_try="$ac_compile"
23797case "(($ac_try" in
23798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799 *) ac_try_echo=$ac_try;;
23800esac
23801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23802$as_echo "$ac_try_echo") >&5
23803 (eval "$ac_compile") 2>conftest.er1
f73dda09 23804 ac_status=$?
0628567a
JA
23805 grep -v '^ *+' conftest.er1 >conftest.err
23806 rm -f conftest.er1
23807 cat conftest.err >&5
3185942a
JA
23808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } && {
23810 test -z "$ac_c_werror_flag" ||
23811 test ! -s conftest.err
23812 } && test -s conftest.$ac_objext; then
f73dda09 23813 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23814/* confdefs.h. */
23815_ACEOF
23816cat confdefs.h >>conftest.$ac_ext
23817cat >>conftest.$ac_ext <<_ACEOF
23818/* end confdefs.h. */
f73dda09
JA
23819$ac_includes_default
23820int
23821main ()
23822{
3185942a
JA
23823if (sizeof ((u_bits16_t)))
23824 return 0;
f73dda09
JA
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829rm -f conftest.$ac_objext
3185942a
JA
23830if { (ac_try="$ac_compile"
23831case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834esac
23835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836$as_echo "$ac_try_echo") >&5
23837 (eval "$ac_compile") 2>conftest.er1
f73dda09 23838 ac_status=$?
0628567a
JA
23839 grep -v '^ *+' conftest.er1 >conftest.err
23840 rm -f conftest.er1
23841 cat conftest.err >&5
3185942a
JA
23842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest.$ac_objext; then
23847 :
23848else
23849 $as_echo "$as_me: failed program was:" >&5
23850sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 ac_cv_type_u_bits16_t=yes
23853fi
23854
23855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 23856else
3185942a 23857 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23858sed 's/^/| /' conftest.$ac_ext >&5
23859
3185942a 23860
b72432fd 23861fi
3185942a
JA
23862
23863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 23864fi
3185942a
JA
23865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23866$as_echo "$ac_cv_type_u_bits16_t" >&6; }
23867if test "x$ac_cv_type_u_bits16_t" = x""yes; then
f73dda09
JA
23868 :
23869else
23870
b80f6443 23871cat >>confdefs.h <<_ACEOF
3185942a 23872#define u_bits16_t unsigned short
b80f6443 23873_ACEOF
cce855bc
JA
23874
23875fi
23876
3185942a
JA
23877elif test "$ac_cv_sizeof_char" = 2; then
23878 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23879$as_echo_n "checking for u_bits16_t... " >&6; }
23880if test "${ac_cv_type_u_bits16_t+set}" = set; then
23881 $as_echo_n "(cached) " >&6
cce855bc 23882else
3185942a
JA
23883 ac_cv_type_u_bits16_t=no
23884cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23885/* confdefs.h. */
23886_ACEOF
23887cat confdefs.h >>conftest.$ac_ext
23888cat >>conftest.$ac_ext <<_ACEOF
23889/* end confdefs.h. */
f73dda09
JA
23890$ac_includes_default
23891int
23892main ()
23893{
3185942a
JA
23894if (sizeof (u_bits16_t))
23895 return 0;
f73dda09
JA
23896 ;
23897 return 0;
23898}
23899_ACEOF
23900rm -f conftest.$ac_objext
3185942a
JA
23901if { (ac_try="$ac_compile"
23902case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23905esac
23906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23907$as_echo "$ac_try_echo") >&5
23908 (eval "$ac_compile") 2>conftest.er1
f73dda09 23909 ac_status=$?
0628567a
JA
23910 grep -v '^ *+' conftest.er1 >conftest.err
23911 rm -f conftest.er1
23912 cat conftest.err >&5
3185942a
JA
23913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23918 cat >conftest.$ac_ext <<_ACEOF
23919/* confdefs.h. */
23920_ACEOF
23921cat confdefs.h >>conftest.$ac_ext
23922cat >>conftest.$ac_ext <<_ACEOF
23923/* end confdefs.h. */
23924$ac_includes_default
23925int
23926main ()
23927{
23928if (sizeof ((u_bits16_t)))
23929 return 0;
23930 ;
23931 return 0;
23932}
23933_ACEOF
23934rm -f conftest.$ac_objext
23935if { (ac_try="$ac_compile"
23936case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23939esac
23940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23941$as_echo "$ac_try_echo") >&5
23942 (eval "$ac_compile") 2>conftest.er1
23943 ac_status=$?
23944 grep -v '^ *+' conftest.er1 >conftest.err
23945 rm -f conftest.er1
23946 cat conftest.err >&5
23947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && {
23949 test -z "$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 } && test -s conftest.$ac_objext; then
23952 :
23953else
23954 $as_echo "$as_me: failed program was:" >&5
23955sed 's/^/| /' conftest.$ac_ext >&5
23956
23957 ac_cv_type_u_bits16_t=yes
23958fi
23959
23960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23961else
23962 $as_echo "$as_me: failed program was:" >&5
23963sed 's/^/| /' conftest.$ac_ext >&5
23964
23965
23966fi
23967
23968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23969fi
23970{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23971$as_echo "$ac_cv_type_u_bits16_t" >&6; }
23972if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23973 :
23974else
23975
23976cat >>confdefs.h <<_ACEOF
23977#define u_bits16_t unsigned char
23978_ACEOF
23979
23980fi
23981
23982else
23983 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23984$as_echo_n "checking for u_bits16_t... " >&6; }
23985if test "${ac_cv_type_u_bits16_t+set}" = set; then
23986 $as_echo_n "(cached) " >&6
23987else
23988 ac_cv_type_u_bits16_t=no
23989cat >conftest.$ac_ext <<_ACEOF
23990/* confdefs.h. */
23991_ACEOF
23992cat confdefs.h >>conftest.$ac_ext
23993cat >>conftest.$ac_ext <<_ACEOF
23994/* end confdefs.h. */
23995$ac_includes_default
23996int
23997main ()
23998{
23999if (sizeof (u_bits16_t))
24000 return 0;
24001 ;
24002 return 0;
24003}
24004_ACEOF
24005rm -f conftest.$ac_objext
24006if { (ac_try="$ac_compile"
24007case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24010esac
24011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24012$as_echo "$ac_try_echo") >&5
24013 (eval "$ac_compile") 2>conftest.er1
24014 ac_status=$?
24015 grep -v '^ *+' conftest.er1 >conftest.err
24016 rm -f conftest.er1
24017 cat conftest.err >&5
24018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } && {
24020 test -z "$ac_c_werror_flag" ||
24021 test ! -s conftest.err
24022 } && test -s conftest.$ac_objext; then
24023 cat >conftest.$ac_ext <<_ACEOF
24024/* confdefs.h. */
24025_ACEOF
24026cat confdefs.h >>conftest.$ac_ext
24027cat >>conftest.$ac_ext <<_ACEOF
24028/* end confdefs.h. */
24029$ac_includes_default
24030int
24031main ()
24032{
24033if (sizeof ((u_bits16_t)))
24034 return 0;
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039rm -f conftest.$ac_objext
24040if { (ac_try="$ac_compile"
24041case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24044esac
24045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24046$as_echo "$ac_try_echo") >&5
24047 (eval "$ac_compile") 2>conftest.er1
24048 ac_status=$?
24049 grep -v '^ *+' conftest.er1 >conftest.err
24050 rm -f conftest.er1
24051 cat conftest.err >&5
24052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest.$ac_objext; then
24057 :
24058else
24059 $as_echo "$as_me: failed program was:" >&5
24060sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 ac_cv_type_u_bits16_t=yes
24063fi
24064
24065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066else
24067 $as_echo "$as_me: failed program was:" >&5
24068sed 's/^/| /' conftest.$ac_ext >&5
24069
24070
24071fi
24072
24073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074fi
24075{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24076$as_echo "$ac_cv_type_u_bits16_t" >&6; }
24077if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24078 :
24079else
24080
24081cat >>confdefs.h <<_ACEOF
24082#define u_bits16_t unsigned short
24083_ACEOF
24084
24085fi
24086
24087fi
24088
24089
24090if test "$ac_cv_sizeof_int" = 4; then
24091 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24092$as_echo_n "checking for bits32_t... " >&6; }
24093if test "${ac_cv_type_bits32_t+set}" = set; then
24094 $as_echo_n "(cached) " >&6
24095else
24096 ac_cv_type_bits32_t=no
24097cat >conftest.$ac_ext <<_ACEOF
24098/* confdefs.h. */
24099_ACEOF
24100cat confdefs.h >>conftest.$ac_ext
24101cat >>conftest.$ac_ext <<_ACEOF
24102/* end confdefs.h. */
24103$ac_includes_default
24104int
24105main ()
24106{
24107if (sizeof (bits32_t))
24108 return 0;
24109 ;
24110 return 0;
24111}
24112_ACEOF
24113rm -f conftest.$ac_objext
24114if { (ac_try="$ac_compile"
24115case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24118esac
24119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24120$as_echo "$ac_try_echo") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24122 ac_status=$?
24123 grep -v '^ *+' conftest.er1 >conftest.err
24124 rm -f conftest.er1
24125 cat conftest.err >&5
24126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24131 cat >conftest.$ac_ext <<_ACEOF
24132/* confdefs.h. */
24133_ACEOF
24134cat confdefs.h >>conftest.$ac_ext
24135cat >>conftest.$ac_ext <<_ACEOF
24136/* end confdefs.h. */
24137$ac_includes_default
24138int
24139main ()
24140{
24141if (sizeof ((bits32_t)))
24142 return 0;
24143 ;
24144 return 0;
24145}
24146_ACEOF
24147rm -f conftest.$ac_objext
24148if { (ac_try="$ac_compile"
24149case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24152esac
24153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154$as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 :
24166else
24167 $as_echo "$as_me: failed program was:" >&5
24168sed 's/^/| /' conftest.$ac_ext >&5
24169
24170 ac_cv_type_bits32_t=yes
24171fi
24172
24173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174else
24175 $as_echo "$as_me: failed program was:" >&5
24176sed 's/^/| /' conftest.$ac_ext >&5
24177
24178
24179fi
24180
24181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24182fi
24183{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24184$as_echo "$ac_cv_type_bits32_t" >&6; }
24185if test "x$ac_cv_type_bits32_t" = x""yes; then
24186 :
24187else
24188
24189cat >>confdefs.h <<_ACEOF
24190#define bits32_t int
24191_ACEOF
24192
24193fi
24194
24195elif test "$ac_cv_sizeof_long" = 4; then
24196 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24197$as_echo_n "checking for bits32_t... " >&6; }
24198if test "${ac_cv_type_bits32_t+set}" = set; then
24199 $as_echo_n "(cached) " >&6
24200else
24201 ac_cv_type_bits32_t=no
24202cat >conftest.$ac_ext <<_ACEOF
24203/* confdefs.h. */
24204_ACEOF
24205cat confdefs.h >>conftest.$ac_ext
24206cat >>conftest.$ac_ext <<_ACEOF
24207/* end confdefs.h. */
24208$ac_includes_default
24209int
24210main ()
24211{
24212if (sizeof (bits32_t))
24213 return 0;
24214 ;
24215 return 0;
24216}
24217_ACEOF
24218rm -f conftest.$ac_objext
24219if { (ac_try="$ac_compile"
24220case "(($ac_try" in
24221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222 *) ac_try_echo=$ac_try;;
24223esac
24224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24225$as_echo "$ac_try_echo") >&5
24226 (eval "$ac_compile") 2>conftest.er1
24227 ac_status=$?
24228 grep -v '^ *+' conftest.er1 >conftest.err
24229 rm -f conftest.er1
24230 cat conftest.err >&5
24231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && {
24233 test -z "$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 } && test -s conftest.$ac_objext; then
24236 cat >conftest.$ac_ext <<_ACEOF
24237/* confdefs.h. */
24238_ACEOF
24239cat confdefs.h >>conftest.$ac_ext
24240cat >>conftest.$ac_ext <<_ACEOF
24241/* end confdefs.h. */
24242$ac_includes_default
24243int
24244main ()
24245{
24246if (sizeof ((bits32_t)))
24247 return 0;
24248 ;
24249 return 0;
24250}
24251_ACEOF
24252rm -f conftest.$ac_objext
24253if { (ac_try="$ac_compile"
24254case "(($ac_try" in
24255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24256 *) ac_try_echo=$ac_try;;
24257esac
24258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24259$as_echo "$ac_try_echo") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24261 ac_status=$?
24262 grep -v '^ *+' conftest.er1 >conftest.err
24263 rm -f conftest.er1
24264 cat conftest.err >&5
24265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && {
24267 test -z "$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 } && test -s conftest.$ac_objext; then
24270 :
24271else
24272 $as_echo "$as_me: failed program was:" >&5
24273sed 's/^/| /' conftest.$ac_ext >&5
24274
24275 ac_cv_type_bits32_t=yes
24276fi
24277
24278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24279else
24280 $as_echo "$as_me: failed program was:" >&5
24281sed 's/^/| /' conftest.$ac_ext >&5
24282
24283
24284fi
24285
24286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24287fi
24288{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24289$as_echo "$ac_cv_type_bits32_t" >&6; }
24290if test "x$ac_cv_type_bits32_t" = x""yes; then
24291 :
24292else
24293
24294cat >>confdefs.h <<_ACEOF
24295#define bits32_t long
24296_ACEOF
24297
24298fi
24299
24300else
24301 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24302$as_echo_n "checking for bits32_t... " >&6; }
24303if test "${ac_cv_type_bits32_t+set}" = set; then
24304 $as_echo_n "(cached) " >&6
24305else
24306 ac_cv_type_bits32_t=no
24307cat >conftest.$ac_ext <<_ACEOF
24308/* confdefs.h. */
24309_ACEOF
24310cat confdefs.h >>conftest.$ac_ext
24311cat >>conftest.$ac_ext <<_ACEOF
24312/* end confdefs.h. */
24313$ac_includes_default
24314int
24315main ()
24316{
24317if (sizeof (bits32_t))
24318 return 0;
24319 ;
24320 return 0;
24321}
24322_ACEOF
24323rm -f conftest.$ac_objext
24324if { (ac_try="$ac_compile"
24325case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24328esac
24329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24330$as_echo "$ac_try_echo") >&5
24331 (eval "$ac_compile") 2>conftest.er1
24332 ac_status=$?
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
24336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && {
24338 test -z "$ac_c_werror_flag" ||
24339 test ! -s conftest.err
24340 } && test -s conftest.$ac_objext; then
24341 cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
24347$ac_includes_default
24348int
24349main ()
24350{
24351if (sizeof ((bits32_t)))
24352 return 0;
24353 ;
24354 return 0;
24355}
24356_ACEOF
24357rm -f conftest.$ac_objext
24358if { (ac_try="$ac_compile"
24359case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24362esac
24363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364$as_echo "$ac_try_echo") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24366 ac_status=$?
24367 grep -v '^ *+' conftest.er1 >conftest.err
24368 rm -f conftest.er1
24369 cat conftest.err >&5
24370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24375 :
24376else
24377 $as_echo "$as_me: failed program was:" >&5
24378sed 's/^/| /' conftest.$ac_ext >&5
24379
24380 ac_cv_type_bits32_t=yes
24381fi
24382
24383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24384else
24385 $as_echo "$as_me: failed program was:" >&5
24386sed 's/^/| /' conftest.$ac_ext >&5
24387
24388
24389fi
24390
24391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392fi
24393{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24394$as_echo "$ac_cv_type_bits32_t" >&6; }
24395if test "x$ac_cv_type_bits32_t" = x""yes; then
24396 :
24397else
24398
24399cat >>confdefs.h <<_ACEOF
24400#define bits32_t int
24401_ACEOF
24402
24403fi
24404
24405fi
24406
24407
24408if test "$ac_cv_sizeof_int" = 4; then
24409 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24410$as_echo_n "checking for u_bits32_t... " >&6; }
24411if test "${ac_cv_type_u_bits32_t+set}" = set; then
24412 $as_echo_n "(cached) " >&6
24413else
24414 ac_cv_type_u_bits32_t=no
24415cat >conftest.$ac_ext <<_ACEOF
24416/* confdefs.h. */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h. */
24421$ac_includes_default
24422int
24423main ()
24424{
24425if (sizeof (u_bits32_t))
24426 return 0;
24427 ;
24428 return 0;
24429}
24430_ACEOF
24431rm -f conftest.$ac_objext
24432if { (ac_try="$ac_compile"
24433case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24436esac
24437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24438$as_echo "$ac_try_echo") >&5
24439 (eval "$ac_compile") 2>conftest.er1
24440 ac_status=$?
24441 grep -v '^ *+' conftest.er1 >conftest.err
24442 rm -f conftest.er1
24443 cat conftest.err >&5
24444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest.$ac_objext; then
24449 cat >conftest.$ac_ext <<_ACEOF
24450/* confdefs.h. */
24451_ACEOF
24452cat confdefs.h >>conftest.$ac_ext
24453cat >>conftest.$ac_ext <<_ACEOF
24454/* end confdefs.h. */
24455$ac_includes_default
24456int
24457main ()
24458{
24459if (sizeof ((u_bits32_t)))
24460 return 0;
24461 ;
24462 return 0;
24463}
24464_ACEOF
24465rm -f conftest.$ac_objext
24466if { (ac_try="$ac_compile"
24467case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24470esac
24471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24472$as_echo "$ac_try_echo") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest.$ac_objext; then
24483 :
24484else
24485 $as_echo "$as_me: failed program was:" >&5
24486sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 ac_cv_type_u_bits32_t=yes
24489fi
24490
24491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492else
24493 $as_echo "$as_me: failed program was:" >&5
24494sed 's/^/| /' conftest.$ac_ext >&5
24495
24496
24497fi
24498
24499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500fi
24501{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24502$as_echo "$ac_cv_type_u_bits32_t" >&6; }
24503if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24504 :
24505else
24506
24507cat >>confdefs.h <<_ACEOF
24508#define u_bits32_t unsigned int
b80f6443 24509_ACEOF
cce855bc
JA
24510
24511fi
24512
3185942a
JA
24513elif test "$ac_cv_sizeof_long" = 4; then
24514 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24515$as_echo_n "checking for u_bits32_t... " >&6; }
f73dda09 24516if test "${ac_cv_type_u_bits32_t+set}" = set; then
3185942a 24517 $as_echo_n "(cached) " >&6
cce855bc 24518else
3185942a
JA
24519 ac_cv_type_u_bits32_t=no
24520cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24521/* confdefs.h. */
24522_ACEOF
24523cat confdefs.h >>conftest.$ac_ext
24524cat >>conftest.$ac_ext <<_ACEOF
24525/* end confdefs.h. */
f73dda09
JA
24526$ac_includes_default
24527int
24528main ()
24529{
f73dda09 24530if (sizeof (u_bits32_t))
3185942a
JA
24531 return 0;
24532 ;
f73dda09 24533 return 0;
3185942a
JA
24534}
24535_ACEOF
24536rm -f conftest.$ac_objext
24537if { (ac_try="$ac_compile"
24538case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24541esac
24542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24543$as_echo "$ac_try_echo") >&5
24544 (eval "$ac_compile") 2>conftest.er1
24545 ac_status=$?
24546 grep -v '^ *+' conftest.er1 >conftest.err
24547 rm -f conftest.er1
24548 cat conftest.err >&5
24549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } && {
24551 test -z "$ac_c_werror_flag" ||
24552 test ! -s conftest.err
24553 } && test -s conftest.$ac_objext; then
24554 cat >conftest.$ac_ext <<_ACEOF
24555/* confdefs.h. */
24556_ACEOF
24557cat confdefs.h >>conftest.$ac_ext
24558cat >>conftest.$ac_ext <<_ACEOF
24559/* end confdefs.h. */
24560$ac_includes_default
24561int
24562main ()
24563{
24564if (sizeof ((u_bits32_t)))
24565 return 0;
f73dda09
JA
24566 ;
24567 return 0;
24568}
24569_ACEOF
24570rm -f conftest.$ac_objext
3185942a
JA
24571if { (ac_try="$ac_compile"
24572case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24575esac
24576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24577$as_echo "$ac_try_echo") >&5
24578 (eval "$ac_compile") 2>conftest.er1
f73dda09 24579 ac_status=$?
0628567a
JA
24580 grep -v '^ *+' conftest.er1 >conftest.err
24581 rm -f conftest.er1
24582 cat conftest.err >&5
3185942a
JA
24583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); } && {
24585 test -z "$ac_c_werror_flag" ||
24586 test ! -s conftest.err
24587 } && test -s conftest.$ac_objext; then
24588 :
24589else
24590 $as_echo "$as_me: failed program was:" >&5
24591sed 's/^/| /' conftest.$ac_ext >&5
24592
24593 ac_cv_type_u_bits32_t=yes
24594fi
24595
24596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597else
24598 $as_echo "$as_me: failed program was:" >&5
24599sed 's/^/| /' conftest.$ac_ext >&5
24600
24601
24602fi
24603
24604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24605fi
24606{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24607$as_echo "$ac_cv_type_u_bits32_t" >&6; }
24608if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24609 :
24610else
24611
24612cat >>confdefs.h <<_ACEOF
24613#define u_bits32_t unsigned long
24614_ACEOF
24615
24616fi
24617
24618else
24619 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24620$as_echo_n "checking for u_bits32_t... " >&6; }
24621if test "${ac_cv_type_u_bits32_t+set}" = set; then
24622 $as_echo_n "(cached) " >&6
24623else
24624 ac_cv_type_u_bits32_t=no
24625cat >conftest.$ac_ext <<_ACEOF
24626/* confdefs.h. */
24627_ACEOF
24628cat confdefs.h >>conftest.$ac_ext
24629cat >>conftest.$ac_ext <<_ACEOF
24630/* end confdefs.h. */
24631$ac_includes_default
24632int
24633main ()
24634{
24635if (sizeof (u_bits32_t))
24636 return 0;
24637 ;
24638 return 0;
24639}
24640_ACEOF
24641rm -f conftest.$ac_objext
24642if { (ac_try="$ac_compile"
24643case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646esac
24647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24648$as_echo "$ac_try_echo") >&5
24649 (eval "$ac_compile") 2>conftest.er1
0628567a 24650 ac_status=$?
3185942a
JA
24651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
24654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } && {
24656 test -z "$ac_c_werror_flag" ||
24657 test ! -s conftest.err
24658 } && test -s conftest.$ac_objext; then
24659 cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665$ac_includes_default
24666int
24667main ()
24668{
24669if (sizeof ((u_bits32_t)))
24670 return 0;
24671 ;
24672 return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext
24676if { (ac_try="$ac_compile"
24677case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24680esac
24681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24682$as_echo "$ac_try_echo") >&5
24683 (eval "$ac_compile") 2>conftest.er1
f73dda09 24684 ac_status=$?
3185942a
JA
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
24688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } && {
24690 test -z "$ac_c_werror_flag" ||
24691 test ! -s conftest.err
24692 } && test -s conftest.$ac_objext; then
24693 :
24694else
24695 $as_echo "$as_me: failed program was:" >&5
24696sed 's/^/| /' conftest.$ac_ext >&5
24697
24698 ac_cv_type_u_bits32_t=yes
24699fi
24700
24701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24702else
3185942a 24703 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24704sed 's/^/| /' conftest.$ac_ext >&5
24705
3185942a 24706
b72432fd 24707fi
3185942a
JA
24708
24709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24710fi
3185942a
JA
24711{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24712$as_echo "$ac_cv_type_u_bits32_t" >&6; }
24713if test "x$ac_cv_type_u_bits32_t" = x""yes; then
f73dda09
JA
24714 :
24715else
24716
b80f6443 24717cat >>confdefs.h <<_ACEOF
bb70624e 24718#define u_bits32_t unsigned int
b80f6443 24719_ACEOF
b72432fd
JA
24720
24721fi
cce855bc 24722
b72432fd
JA
24723fi
24724
b80f6443 24725
f73dda09 24726if test "$ac_cv_sizeof_char_p" = 8; then
3185942a
JA
24727 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24728$as_echo_n "checking for bits64_t... " >&6; }
24729if test "${ac_cv_type_bits64_t+set}" = set; then
24730 $as_echo_n "(cached) " >&6
24731else
24732 ac_cv_type_bits64_t=no
24733cat >conftest.$ac_ext <<_ACEOF
24734/* confdefs.h. */
24735_ACEOF
24736cat confdefs.h >>conftest.$ac_ext
24737cat >>conftest.$ac_ext <<_ACEOF
24738/* end confdefs.h. */
24739$ac_includes_default
24740int
24741main ()
24742{
24743if (sizeof (bits64_t))
24744 return 0;
24745 ;
24746 return 0;
24747}
24748_ACEOF
24749rm -f conftest.$ac_objext
24750if { (ac_try="$ac_compile"
24751case "(($ac_try" in
24752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753 *) ac_try_echo=$ac_try;;
24754esac
24755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24756$as_echo "$ac_try_echo") >&5
24757 (eval "$ac_compile") 2>conftest.er1
24758 ac_status=$?
24759 grep -v '^ *+' conftest.er1 >conftest.err
24760 rm -f conftest.er1
24761 cat conftest.err >&5
24762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && {
24764 test -z "$ac_c_werror_flag" ||
24765 test ! -s conftest.err
24766 } && test -s conftest.$ac_objext; then
24767 cat >conftest.$ac_ext <<_ACEOF
24768/* confdefs.h. */
24769_ACEOF
24770cat confdefs.h >>conftest.$ac_ext
24771cat >>conftest.$ac_ext <<_ACEOF
24772/* end confdefs.h. */
24773$ac_includes_default
24774int
24775main ()
24776{
24777if (sizeof ((bits64_t)))
24778 return 0;
24779 ;
24780 return 0;
24781}
24782_ACEOF
24783rm -f conftest.$ac_objext
24784if { (ac_try="$ac_compile"
24785case "(($ac_try" in
24786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24788esac
24789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24790$as_echo "$ac_try_echo") >&5
24791 (eval "$ac_compile") 2>conftest.er1
24792 ac_status=$?
24793 grep -v '^ *+' conftest.er1 >conftest.err
24794 rm -f conftest.er1
24795 cat conftest.err >&5
24796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } && {
24798 test -z "$ac_c_werror_flag" ||
24799 test ! -s conftest.err
24800 } && test -s conftest.$ac_objext; then
24801 :
24802else
24803 $as_echo "$as_me: failed program was:" >&5
24804sed 's/^/| /' conftest.$ac_ext >&5
24805
24806 ac_cv_type_bits64_t=yes
24807fi
24808
24809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24810else
24811 $as_echo "$as_me: failed program was:" >&5
24812sed 's/^/| /' conftest.$ac_ext >&5
24813
24814
24815fi
24816
24817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24818fi
24819{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24820$as_echo "$ac_cv_type_bits64_t" >&6; }
24821if test "x$ac_cv_type_bits64_t" = x""yes; then
24822 :
24823else
24824
24825cat >>confdefs.h <<_ACEOF
24826#define bits64_t char *
24827_ACEOF
24828
24829fi
24830
24831elif test "$ac_cv_sizeof_double" = 8; then
24832 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24833$as_echo_n "checking for bits64_t... " >&6; }
24834if test "${ac_cv_type_bits64_t+set}" = set; then
24835 $as_echo_n "(cached) " >&6
24836else
24837 ac_cv_type_bits64_t=no
24838cat >conftest.$ac_ext <<_ACEOF
24839/* confdefs.h. */
24840_ACEOF
24841cat confdefs.h >>conftest.$ac_ext
24842cat >>conftest.$ac_ext <<_ACEOF
24843/* end confdefs.h. */
24844$ac_includes_default
24845int
24846main ()
24847{
24848if (sizeof (bits64_t))
24849 return 0;
24850 ;
24851 return 0;
24852}
24853_ACEOF
24854rm -f conftest.$ac_objext
24855if { (ac_try="$ac_compile"
24856case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24859esac
24860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24861$as_echo "$ac_try_echo") >&5
24862 (eval "$ac_compile") 2>conftest.er1
24863 ac_status=$?
24864 grep -v '^ *+' conftest.er1 >conftest.err
24865 rm -f conftest.er1
24866 cat conftest.err >&5
24867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } && {
24869 test -z "$ac_c_werror_flag" ||
24870 test ! -s conftest.err
24871 } && test -s conftest.$ac_objext; then
24872 cat >conftest.$ac_ext <<_ACEOF
24873/* confdefs.h. */
24874_ACEOF
24875cat confdefs.h >>conftest.$ac_ext
24876cat >>conftest.$ac_ext <<_ACEOF
24877/* end confdefs.h. */
24878$ac_includes_default
24879int
24880main ()
24881{
24882if (sizeof ((bits64_t)))
24883 return 0;
24884 ;
24885 return 0;
24886}
24887_ACEOF
24888rm -f conftest.$ac_objext
24889if { (ac_try="$ac_compile"
24890case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24893esac
24894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24895$as_echo "$ac_try_echo") >&5
24896 (eval "$ac_compile") 2>conftest.er1
24897 ac_status=$?
24898 grep -v '^ *+' conftest.er1 >conftest.err
24899 rm -f conftest.er1
24900 cat conftest.err >&5
24901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); } && {
24903 test -z "$ac_c_werror_flag" ||
24904 test ! -s conftest.err
24905 } && test -s conftest.$ac_objext; then
24906 :
24907else
24908 $as_echo "$as_me: failed program was:" >&5
24909sed 's/^/| /' conftest.$ac_ext >&5
24910
24911 ac_cv_type_bits64_t=yes
24912fi
24913
24914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24915else
24916 $as_echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919
24920fi
24921
24922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24923fi
24924{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24925$as_echo "$ac_cv_type_bits64_t" >&6; }
24926if test "x$ac_cv_type_bits64_t" = x""yes; then
24927 :
24928else
24929
24930cat >>confdefs.h <<_ACEOF
24931#define bits64_t double
24932_ACEOF
24933
24934fi
24935
24936elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24937 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24938$as_echo_n "checking for bits64_t... " >&6; }
f73dda09 24939if test "${ac_cv_type_bits64_t+set}" = set; then
3185942a 24940 $as_echo_n "(cached) " >&6
cce855bc 24941else
3185942a
JA
24942 ac_cv_type_bits64_t=no
24943cat >conftest.$ac_ext <<_ACEOF
24944/* confdefs.h. */
24945_ACEOF
24946cat confdefs.h >>conftest.$ac_ext
24947cat >>conftest.$ac_ext <<_ACEOF
24948/* end confdefs.h. */
24949$ac_includes_default
24950int
24951main ()
24952{
24953if (sizeof (bits64_t))
24954 return 0;
24955 ;
24956 return 0;
24957}
24958_ACEOF
24959rm -f conftest.$ac_objext
24960if { (ac_try="$ac_compile"
24961case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24964esac
24965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966$as_echo "$ac_try_echo") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24968 ac_status=$?
24969 grep -v '^ *+' conftest.er1 >conftest.err
24970 rm -f conftest.er1
24971 cat conftest.err >&5
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.$ac_objext; then
f73dda09 24977 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24978/* confdefs.h. */
24979_ACEOF
24980cat confdefs.h >>conftest.$ac_ext
24981cat >>conftest.$ac_ext <<_ACEOF
24982/* end confdefs.h. */
f73dda09
JA
24983$ac_includes_default
24984int
24985main ()
24986{
3185942a
JA
24987if (sizeof ((bits64_t)))
24988 return 0;
f73dda09
JA
24989 ;
24990 return 0;
24991}
24992_ACEOF
24993rm -f conftest.$ac_objext
3185942a
JA
24994if { (ac_try="$ac_compile"
24995case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24998esac
24999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000$as_echo "$ac_try_echo") >&5
25001 (eval "$ac_compile") 2>conftest.er1
f73dda09 25002 ac_status=$?
0628567a
JA
25003 grep -v '^ *+' conftest.er1 >conftest.err
25004 rm -f conftest.er1
25005 cat conftest.err >&5
3185942a
JA
25006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25011 :
25012else
25013 $as_echo "$as_me: failed program was:" >&5
25014sed 's/^/| /' conftest.$ac_ext >&5
25015
25016 ac_cv_type_bits64_t=yes
25017fi
25018
25019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 25020else
3185942a 25021 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25022sed 's/^/| /' conftest.$ac_ext >&5
25023
3185942a 25024
b72432fd 25025fi
3185942a
JA
25026
25027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 25028fi
3185942a
JA
25029{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25030$as_echo "$ac_cv_type_bits64_t" >&6; }
25031if test "x$ac_cv_type_bits64_t" = x""yes; then
f73dda09
JA
25032 :
25033else
25034
b80f6443 25035cat >>confdefs.h <<_ACEOF
3185942a 25036#define bits64_t long long
b80f6443 25037_ACEOF
b72432fd
JA
25038
25039fi
25040
3185942a
JA
25041elif test "$ac_cv_sizeof_long" = 8; then
25042 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25043$as_echo_n "checking for bits64_t... " >&6; }
f73dda09 25044if test "${ac_cv_type_bits64_t+set}" = set; then
3185942a 25045 $as_echo_n "(cached) " >&6
b72432fd 25046else
3185942a
JA
25047 ac_cv_type_bits64_t=no
25048cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25049/* confdefs.h. */
25050_ACEOF
25051cat confdefs.h >>conftest.$ac_ext
25052cat >>conftest.$ac_ext <<_ACEOF
25053/* end confdefs.h. */
f73dda09
JA
25054$ac_includes_default
25055int
25056main ()
25057{
f73dda09 25058if (sizeof (bits64_t))
3185942a 25059 return 0;
f73dda09
JA
25060 ;
25061 return 0;
25062}
25063_ACEOF
25064rm -f conftest.$ac_objext
3185942a
JA
25065if { (ac_try="$ac_compile"
25066case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25069esac
25070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25071$as_echo "$ac_try_echo") >&5
25072 (eval "$ac_compile") 2>conftest.er1
f73dda09 25073 ac_status=$?
0628567a
JA
25074 grep -v '^ *+' conftest.er1 >conftest.err
25075 rm -f conftest.er1
25076 cat conftest.err >&5
3185942a
JA
25077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } && {
25079 test -z "$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 } && test -s conftest.$ac_objext; then
f73dda09 25082 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25083/* confdefs.h. */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h. */
f73dda09
JA
25088$ac_includes_default
25089int
25090main ()
25091{
3185942a
JA
25092if (sizeof ((bits64_t)))
25093 return 0;
f73dda09
JA
25094 ;
25095 return 0;
25096}
25097_ACEOF
25098rm -f conftest.$ac_objext
3185942a
JA
25099if { (ac_try="$ac_compile"
25100case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103esac
25104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105$as_echo "$ac_try_echo") >&5
25106 (eval "$ac_compile") 2>conftest.er1
f73dda09 25107 ac_status=$?
0628567a
JA
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
3185942a
JA
25111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest.$ac_objext; then
25116 :
25117else
25118 $as_echo "$as_me: failed program was:" >&5
25119sed 's/^/| /' conftest.$ac_ext >&5
25120
25121 ac_cv_type_bits64_t=yes
25122fi
25123
25124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 25125else
3185942a 25126 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25127sed 's/^/| /' conftest.$ac_ext >&5
25128
3185942a 25129
f73dda09 25130fi
3185942a
JA
25131
25132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 25133fi
3185942a
JA
25134{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25135$as_echo "$ac_cv_type_bits64_t" >&6; }
25136if test "x$ac_cv_type_bits64_t" = x""yes; then
f73dda09
JA
25137 :
25138else
25139
b80f6443 25140cat >>confdefs.h <<_ACEOF
3185942a 25141#define bits64_t long
b80f6443 25142_ACEOF
f73dda09 25143
cce855bc 25144fi
b72432fd 25145
3185942a
JA
25146else
25147 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25148$as_echo_n "checking for bits64_t... " >&6; }
f73dda09 25149if test "${ac_cv_type_bits64_t+set}" = set; then
3185942a 25150 $as_echo_n "(cached) " >&6
f73dda09 25151else
3185942a
JA
25152 ac_cv_type_bits64_t=no
25153cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25154/* confdefs.h. */
25155_ACEOF
25156cat confdefs.h >>conftest.$ac_ext
25157cat >>conftest.$ac_ext <<_ACEOF
25158/* end confdefs.h. */
f73dda09
JA
25159$ac_includes_default
25160int
25161main ()
25162{
f73dda09 25163if (sizeof (bits64_t))
3185942a 25164 return 0;
f73dda09
JA
25165 ;
25166 return 0;
25167}
25168_ACEOF
25169rm -f conftest.$ac_objext
3185942a
JA
25170if { (ac_try="$ac_compile"
25171case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25174esac
25175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25176$as_echo "$ac_try_echo") >&5
25177 (eval "$ac_compile") 2>conftest.er1
f73dda09 25178 ac_status=$?
0628567a
JA
25179 grep -v '^ *+' conftest.er1 >conftest.err
25180 rm -f conftest.er1
25181 cat conftest.err >&5
3185942a
JA
25182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } && {
25184 test -z "$ac_c_werror_flag" ||
25185 test ! -s conftest.err
25186 } && test -s conftest.$ac_objext; then
f73dda09 25187 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25188/* confdefs.h. */
25189_ACEOF
25190cat confdefs.h >>conftest.$ac_ext
25191cat >>conftest.$ac_ext <<_ACEOF
25192/* end confdefs.h. */
f73dda09
JA
25193$ac_includes_default
25194int
25195main ()
25196{
3185942a
JA
25197if (sizeof ((bits64_t)))
25198 return 0;
f73dda09
JA
25199 ;
25200 return 0;
25201}
25202_ACEOF
25203rm -f conftest.$ac_objext
3185942a
JA
25204if { (ac_try="$ac_compile"
25205case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25208esac
25209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25210$as_echo "$ac_try_echo") >&5
25211 (eval "$ac_compile") 2>conftest.er1
f73dda09 25212 ac_status=$?
0628567a
JA
25213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
3185942a
JA
25216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && {
25218 test -z "$ac_c_werror_flag" ||
25219 test ! -s conftest.err
25220 } && test -s conftest.$ac_objext; then
25221 :
25222else
25223 $as_echo "$as_me: failed program was:" >&5
25224sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 ac_cv_type_bits64_t=yes
25227fi
25228
25229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 25230else
3185942a 25231 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25232sed 's/^/| /' conftest.$ac_ext >&5
25233
3185942a 25234
b72432fd 25235fi
3185942a
JA
25236
25237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 25238fi
3185942a
JA
25239{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25240$as_echo "$ac_cv_type_bits64_t" >&6; }
25241if test "x$ac_cv_type_bits64_t" = x""yes; then
f73dda09
JA
25242 :
25243else
25244
b80f6443 25245cat >>confdefs.h <<_ACEOF
b72432fd 25246#define bits64_t double
b80f6443 25247_ACEOF
cce855bc
JA
25248
25249fi
25250
25251fi
25252
b80f6443
JA
25253
25254
bb70624e 25255if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
3185942a
JA
25256 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25257$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 25258if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 25259 $as_echo_n "(cached) " >&6
bb70624e 25260else
3185942a
JA
25261 ac_cv_type_ptrdiff_t=no
25262cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
f73dda09
JA
25268$ac_includes_default
25269int
25270main ()
25271{
f73dda09 25272if (sizeof (ptrdiff_t))
3185942a 25273 return 0;
f73dda09
JA
25274 ;
25275 return 0;
25276}
25277_ACEOF
25278rm -f conftest.$ac_objext
3185942a
JA
25279if { (ac_try="$ac_compile"
25280case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25283esac
25284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285$as_echo "$ac_try_echo") >&5
25286 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
25287 ac_status=$?
25288 grep -v '^ *+' conftest.er1 >conftest.err
25289 rm -f conftest.er1
25290 cat conftest.err >&5
3185942a
JA
25291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } && {
25293 test -z "$ac_c_werror_flag" ||
25294 test ! -s conftest.err
25295 } && test -s conftest.$ac_objext; then
25296 cat >conftest.$ac_ext <<_ACEOF
25297/* confdefs.h. */
25298_ACEOF
25299cat confdefs.h >>conftest.$ac_ext
25300cat >>conftest.$ac_ext <<_ACEOF
25301/* end confdefs.h. */
25302$ac_includes_default
25303int
25304main ()
25305{
25306if (sizeof ((ptrdiff_t)))
25307 return 0;
25308 ;
25309 return 0;
25310}
25311_ACEOF
25312rm -f conftest.$ac_objext
25313if { (ac_try="$ac_compile"
25314case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25317esac
25318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25319$as_echo "$ac_try_echo") >&5
25320 (eval "$ac_compile") 2>conftest.er1
f73dda09 25321 ac_status=$?
3185942a
JA
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
25325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25330 :
25331else
25332 $as_echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 ac_cv_type_ptrdiff_t=yes
25336fi
25337
25338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 25339else
3185942a 25340 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25341sed 's/^/| /' conftest.$ac_ext >&5
25342
3185942a 25343
bb70624e 25344fi
3185942a
JA
25345
25346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 25347fi
3185942a
JA
25348{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25349$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25350if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
25351 :
25352else
25353
b80f6443 25354cat >>confdefs.h <<_ACEOF
bb70624e 25355#define ptrdiff_t int
b80f6443 25356_ACEOF
bb70624e
JA
25357
25358fi
25359
25360elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
3185942a
JA
25361 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25362$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 25363if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 25364 $as_echo_n "(cached) " >&6
bb70624e 25365else
3185942a
JA
25366 ac_cv_type_ptrdiff_t=no
25367cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
f73dda09
JA
25373$ac_includes_default
25374int
25375main ()
25376{
f73dda09 25377if (sizeof (ptrdiff_t))
3185942a 25378 return 0;
f73dda09
JA
25379 ;
25380 return 0;
25381}
25382_ACEOF
25383rm -f conftest.$ac_objext
3185942a
JA
25384if { (ac_try="$ac_compile"
25385case "(($ac_try" in
25386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387 *) ac_try_echo=$ac_try;;
25388esac
25389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25390$as_echo "$ac_try_echo") >&5
25391 (eval "$ac_compile") 2>conftest.er1
f73dda09 25392 ac_status=$?
0628567a
JA
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
3185942a
JA
25396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } && {
25398 test -z "$ac_c_werror_flag" ||
25399 test ! -s conftest.err
25400 } && test -s conftest.$ac_objext; then
25401 cat >conftest.$ac_ext <<_ACEOF
25402/* confdefs.h. */
25403_ACEOF
25404cat confdefs.h >>conftest.$ac_ext
25405cat >>conftest.$ac_ext <<_ACEOF
25406/* end confdefs.h. */
25407$ac_includes_default
25408int
25409main ()
25410{
25411if (sizeof ((ptrdiff_t)))
25412 return 0;
25413 ;
25414 return 0;
25415}
25416_ACEOF
25417rm -f conftest.$ac_objext
25418if { (ac_try="$ac_compile"
25419case "(($ac_try" in
25420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25422esac
25423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25424$as_echo "$ac_try_echo") >&5
25425 (eval "$ac_compile") 2>conftest.er1
f73dda09 25426 ac_status=$?
3185942a
JA
25427 grep -v '^ *+' conftest.er1 >conftest.err
25428 rm -f conftest.er1
25429 cat conftest.err >&5
25430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } && {
25432 test -z "$ac_c_werror_flag" ||
25433 test ! -s conftest.err
25434 } && test -s conftest.$ac_objext; then
25435 :
25436else
25437 $as_echo "$as_me: failed program was:" >&5
25438sed 's/^/| /' conftest.$ac_ext >&5
25439
25440 ac_cv_type_ptrdiff_t=yes
25441fi
25442
25443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 25444else
3185942a 25445 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25446sed 's/^/| /' conftest.$ac_ext >&5
25447
3185942a 25448
bb70624e 25449fi
3185942a
JA
25450
25451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 25452fi
3185942a
JA
25453{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25454$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25455if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
25456 :
25457else
25458
b80f6443 25459cat >>confdefs.h <<_ACEOF
bb70624e 25460#define ptrdiff_t long
b80f6443 25461_ACEOF
bb70624e
JA
25462
25463fi
25464
f73dda09 25465elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
3185942a
JA
25466 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25467$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 25468if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 25469 $as_echo_n "(cached) " >&6
bb70624e 25470else
3185942a
JA
25471 ac_cv_type_ptrdiff_t=no
25472cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25473/* confdefs.h. */
25474_ACEOF
25475cat confdefs.h >>conftest.$ac_ext
25476cat >>conftest.$ac_ext <<_ACEOF
25477/* end confdefs.h. */
f73dda09
JA
25478$ac_includes_default
25479int
25480main ()
25481{
f73dda09 25482if (sizeof (ptrdiff_t))
3185942a 25483 return 0;
f73dda09
JA
25484 ;
25485 return 0;
25486}
25487_ACEOF
25488rm -f conftest.$ac_objext
3185942a
JA
25489if { (ac_try="$ac_compile"
25490case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25493esac
25494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495$as_echo "$ac_try_echo") >&5
25496 (eval "$ac_compile") 2>conftest.er1
f73dda09 25497 ac_status=$?
0628567a
JA
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
3185942a
JA
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25507/* confdefs.h. */
25508_ACEOF
25509cat confdefs.h >>conftest.$ac_ext
25510cat >>conftest.$ac_ext <<_ACEOF
25511/* end confdefs.h. */
25512$ac_includes_default
25513int
25514main ()
25515{
25516if (sizeof ((ptrdiff_t)))
25517 return 0;
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext
25523if { (ac_try="$ac_compile"
25524case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25527esac
25528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25529$as_echo "$ac_try_echo") >&5
25530 (eval "$ac_compile") 2>conftest.er1
f73dda09 25531 ac_status=$?
3185942a
JA
25532 grep -v '^ *+' conftest.er1 >conftest.err
25533 rm -f conftest.er1
25534 cat conftest.err >&5
25535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25540 :
25541else
25542 $as_echo "$as_me: failed program was:" >&5
25543sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_cv_type_ptrdiff_t=yes
25546fi
25547
25548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 25549else
3185942a 25550 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25551sed 's/^/| /' conftest.$ac_ext >&5
25552
3185942a 25553
f73dda09 25554fi
3185942a
JA
25555
25556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 25557fi
3185942a
JA
25558{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25559$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25560if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
25561 :
25562else
25563
b80f6443 25564cat >>confdefs.h <<_ACEOF
f73dda09 25565#define ptrdiff_t long long
b80f6443 25566_ACEOF
f73dda09 25567
bb70624e 25568fi
bb70624e 25569
f73dda09 25570else
3185942a
JA
25571 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25572$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 25573if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 25574 $as_echo_n "(cached) " >&6
f73dda09 25575else
3185942a
JA
25576 ac_cv_type_ptrdiff_t=no
25577cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
f73dda09
JA
25583$ac_includes_default
25584int
25585main ()
25586{
f73dda09 25587if (sizeof (ptrdiff_t))
3185942a 25588 return 0;
f73dda09
JA
25589 ;
25590 return 0;
25591}
25592_ACEOF
25593rm -f conftest.$ac_objext
3185942a
JA
25594if { (ac_try="$ac_compile"
25595case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25598esac
25599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25600$as_echo "$ac_try_echo") >&5
25601 (eval "$ac_compile") 2>conftest.er1
f73dda09 25602 ac_status=$?
0628567a
JA
25603 grep -v '^ *+' conftest.er1 >conftest.err
25604 rm -f conftest.er1
25605 cat conftest.err >&5
3185942a
JA
25606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } && {
25608 test -z "$ac_c_werror_flag" ||
25609 test ! -s conftest.err
25610 } && test -s conftest.$ac_objext; then
25611 cat >conftest.$ac_ext <<_ACEOF
25612/* confdefs.h. */
25613_ACEOF
25614cat confdefs.h >>conftest.$ac_ext
25615cat >>conftest.$ac_ext <<_ACEOF
25616/* end confdefs.h. */
25617$ac_includes_default
25618int
25619main ()
25620{
25621if (sizeof ((ptrdiff_t)))
25622 return 0;
25623 ;
25624 return 0;
25625}
25626_ACEOF
25627rm -f conftest.$ac_objext
25628if { (ac_try="$ac_compile"
25629case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25632esac
25633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25634$as_echo "$ac_try_echo") >&5
25635 (eval "$ac_compile") 2>conftest.er1
f73dda09 25636 ac_status=$?
3185942a
JA
25637 grep -v '^ *+' conftest.er1 >conftest.err
25638 rm -f conftest.er1
25639 cat conftest.err >&5
25640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.$ac_objext; then
25645 :
25646else
25647 $as_echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
25649
25650 ac_cv_type_ptrdiff_t=yes
25651fi
25652
25653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 25654else
3185942a 25655 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25656sed 's/^/| /' conftest.$ac_ext >&5
25657
3185942a 25658
bb70624e 25659fi
3185942a
JA
25660
25661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 25662fi
3185942a
JA
25663{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25664$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25665if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
25666 :
25667else
25668
b80f6443 25669cat >>confdefs.h <<_ACEOF
bb70624e 25670#define ptrdiff_t int
b80f6443 25671_ACEOF
bb70624e
JA
25672
25673fi
25674
25675fi
25676
b80f6443 25677
3185942a
JA
25678{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25679$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
f73dda09 25680if test "${ac_cv_header_stat_broken+set}" = set; then
3185942a 25681 $as_echo_n "(cached) " >&6
ccc6cda3 25682else
f73dda09 25683 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25684/* confdefs.h. */
25685_ACEOF
25686cat confdefs.h >>conftest.$ac_ext
25687cat >>conftest.$ac_ext <<_ACEOF
25688/* end confdefs.h. */
ccc6cda3
JA
25689#include <sys/types.h>
25690#include <sys/stat.h>
25691
3185942a
JA
25692#if defined S_ISBLK && defined S_IFDIR
25693extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
ccc6cda3
JA
25694#endif
25695
3185942a
JA
25696#if defined S_ISBLK && defined S_IFCHR
25697extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
ccc6cda3
JA
25698#endif
25699
3185942a
JA
25700#if defined S_ISLNK && defined S_IFREG
25701extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
ccc6cda3
JA
25702#endif
25703
3185942a
JA
25704#if defined S_ISSOCK && defined S_IFREG
25705extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
f73dda09
JA
25706#endif
25707
25708_ACEOF
3185942a
JA
25709rm -f conftest.$ac_objext
25710if { (ac_try="$ac_compile"
25711case "(($ac_try" in
25712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713 *) ac_try_echo=$ac_try;;
25714esac
25715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25716$as_echo "$ac_try_echo") >&5
25717 (eval "$ac_compile") 2>conftest.er1
25718 ac_status=$?
25719 grep -v '^ *+' conftest.er1 >conftest.err
25720 rm -f conftest.er1
25721 cat conftest.err >&5
25722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } && {
25724 test -z "$ac_c_werror_flag" ||
25725 test ! -s conftest.err
25726 } && test -s conftest.$ac_objext; then
f73dda09 25727 ac_cv_header_stat_broken=no
3185942a
JA
25728else
25729 $as_echo "$as_me: failed program was:" >&5
25730sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 ac_cv_header_stat_broken=yes
ccc6cda3 25733fi
ccc6cda3 25734
3185942a 25735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25736fi
3185942a
JA
25737{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25738$as_echo "$ac_cv_header_stat_broken" >&6; }
f73dda09 25739if test $ac_cv_header_stat_broken = yes; then
ccc6cda3 25740
b80f6443 25741cat >>confdefs.h <<\_ACEOF
f73dda09 25742#define STAT_MACROS_BROKEN 1
b80f6443 25743_ACEOF
ccc6cda3
JA
25744
25745fi
25746
b80f6443 25747
3185942a
JA
25748{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
25749$as_echo_n "checking whether #! works in shell scripts... " >&6; }
f73dda09 25750if test "${ac_cv_sys_interpreter+set}" = set; then
3185942a 25751 $as_echo_n "(cached) " >&6
ccc6cda3
JA
25752else
25753 echo '#! /bin/cat
25754exit 69
f73dda09 25755' >conftest
ccc6cda3 25756chmod u+x conftest
3185942a 25757(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
ccc6cda3
JA
25758if test $? -ne 69; then
25759 ac_cv_sys_interpreter=yes
25760else
25761 ac_cv_sys_interpreter=no
25762fi
25763rm -f conftest
25764fi
3185942a
JA
25765{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25766$as_echo "$ac_cv_sys_interpreter" >&6; }
f73dda09 25767interpval=$ac_cv_sys_interpreter
ccc6cda3
JA
25768
25769if test $ac_cv_sys_interpreter = yes; then
b80f6443 25770cat >>confdefs.h <<\_ACEOF
ccc6cda3 25771#define HAVE_HASH_BANG_EXEC 1
b80f6443 25772_ACEOF
ccc6cda3 25773
ccc6cda3
JA
25774fi
25775
ccc6cda3 25776if test "$ac_cv_func_lstat" = "no"; then
3185942a
JA
25777{ $as_echo "$as_me:$LINENO: checking for lstat" >&5
25778$as_echo_n "checking for lstat... " >&6; }
f73dda09 25779if test "${bash_cv_func_lstat+set}" = set; then
3185942a 25780 $as_echo_n "(cached) " >&6
ccc6cda3 25781else
f73dda09 25782 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25783/* confdefs.h. */
25784_ACEOF
25785cat confdefs.h >>conftest.$ac_ext
25786cat >>conftest.$ac_ext <<_ACEOF
25787/* end confdefs.h. */
ccc6cda3
JA
25788
25789#include <sys/types.h>
25790#include <sys/stat.h>
25791
f73dda09
JA
25792int
25793main ()
25794{
25795 lstat(".",(struct stat *)0);
25796 ;
25797 return 0;
25798}
25799_ACEOF
25800rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
25801if { (ac_try="$ac_link"
25802case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25805esac
25806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807$as_echo "$ac_try_echo") >&5
25808 (eval "$ac_link") 2>conftest.er1
f73dda09 25809 ac_status=$?
0628567a
JA
25810 grep -v '^ *+' conftest.er1 >conftest.err
25811 rm -f conftest.er1
25812 cat conftest.err >&5
3185942a
JA
25813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } && {
25815 test -z "$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25817 } && test -s conftest$ac_exeext && {
25818 test "$cross_compiling" = yes ||
25819 $as_test_x conftest$ac_exeext
25820 }; then
ccc6cda3
JA
25821 bash_cv_func_lstat=yes
25822else
3185942a 25823 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25824sed 's/^/| /' conftest.$ac_ext >&5
25825
3185942a 25826 bash_cv_func_lstat=no
ccc6cda3 25827fi
3185942a
JA
25828
25829rm -rf conftest.dSYM
25830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 25831 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 25832fi
3185942a
JA
25833{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25834$as_echo "$bash_cv_func_lstat" >&6; }
ccc6cda3 25835if test $bash_cv_func_lstat = yes; then
b80f6443 25836 cat >>confdefs.h <<\_ACEOF
ccc6cda3 25837#define HAVE_LSTAT 1
b80f6443
JA
25838_ACEOF
25839
25840fi
25841
25842fi
25843
25844
3185942a
JA
25845{ $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25846$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
b80f6443 25847if test "${bash_cv_func_ctype_nonascii+set}" = set; then
3185942a 25848 $as_echo_n "(cached) " >&6
b80f6443
JA
25849else
25850 if test "$cross_compiling" = yes; then
3185942a
JA
25851 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25852$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
b80f6443
JA
25853 bash_cv_func_ctype_nonascii=no
25854
25855else
25856 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25857/* confdefs.h. */
25858_ACEOF
25859cat confdefs.h >>conftest.$ac_ext
25860cat >>conftest.$ac_ext <<_ACEOF
25861/* end confdefs.h. */
b80f6443
JA
25862
25863#ifdef HAVE_LOCALE_H
25864#include <locale.h>
25865#endif
25866#include <stdio.h>
25867#include <ctype.h>
25868
25869main(c, v)
25870int c;
25871char *v[];
25872{
25873 char *deflocale;
25874 unsigned char x;
25875 int r1, r2;
25876
25877#ifdef HAVE_SETLOCALE
25878 /* We take a shot here. If that locale is not known, try the
25879 system default. We try this one because '\342' (226) is
25880 known to be a printable character in that locale. */
25881 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25882 if (deflocale == 0)
25883 deflocale = setlocale(LC_ALL, "");
25884#endif
25885
25886 x = '\342';
25887 r1 = isprint(x);
25888 x -= 128;
25889 r2 = isprint(x);
25890 exit (r1 == 0 || r2 == 0);
25891}
25892
25893_ACEOF
25894rm -f conftest$ac_exeext
3185942a
JA
25895if { (ac_try="$ac_link"
25896case "(($ac_try" in
25897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898 *) ac_try_echo=$ac_try;;
25899esac
25900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25901$as_echo "$ac_try_echo") >&5
25902 (eval "$ac_link") 2>&5
b80f6443 25903 ac_status=$?
3185942a 25904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 25905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
25906 { (case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25909esac
25910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25911$as_echo "$ac_try_echo") >&5
25912 (eval "$ac_try") 2>&5
b80f6443 25913 ac_status=$?
3185942a 25914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
25915 (exit $ac_status); }; }; then
25916 bash_cv_func_ctype_nonascii=yes
25917else
3185942a
JA
25918 $as_echo "$as_me: program exited with status $ac_status" >&5
25919$as_echo "$as_me: failed program was:" >&5
0628567a
JA
25920sed 's/^/| /' conftest.$ac_ext >&5
25921
b80f6443
JA
25922( exit $ac_status )
25923bash_cv_func_ctype_nonascii=no
25924fi
3185942a
JA
25925rm -rf conftest.dSYM
25926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25927fi
3185942a
JA
25928
25929
b80f6443
JA
25930fi
25931
3185942a
JA
25932{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25933$as_echo "$bash_cv_func_ctype_nonascii" >&6; }
b80f6443
JA
25934if test $bash_cv_func_ctype_nonascii = yes; then
25935cat >>confdefs.h <<\_ACEOF
25936#define CTYPE_NON_ASCII 1
25937_ACEOF
ccc6cda3
JA
25938
25939fi
25940
3185942a
JA
25941{ $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25942$as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
f73dda09 25943if test "${bash_cv_dup2_broken+set}" = set; then
3185942a 25944 $as_echo_n "(cached) " >&6
ccc6cda3
JA
25945else
25946 if test "$cross_compiling" = yes; then
3185942a
JA
25947 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25948$as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
cce855bc 25949 bash_cv_dup2_broken=no
ccc6cda3 25950else
f73dda09 25951 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25952/* confdefs.h. */
25953_ACEOF
25954cat confdefs.h >>conftest.$ac_ext
25955cat >>conftest.$ac_ext <<_ACEOF
25956/* end confdefs.h. */
ccc6cda3
JA
25957
25958#include <sys/types.h>
25959#include <fcntl.h>
25960main()
25961{
25962 int fd1, fd2, fl;
25963 fd1 = open("/dev/null", 2);
25964 if (fcntl(fd1, 2, 1) < 0)
25965 exit(1);
25966 fd2 = dup2(fd1, 1);
25967 if (fd2 < 0)
25968 exit(2);
25969 fl = fcntl(fd2, 1, 0);
25970 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25971 exit(fl != 1);
25972}
25973
f73dda09
JA
25974_ACEOF
25975rm -f conftest$ac_exeext
3185942a
JA
25976if { (ac_try="$ac_link"
25977case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25980esac
25981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982$as_echo "$ac_try_echo") >&5
25983 (eval "$ac_link") 2>&5
f73dda09 25984 ac_status=$?
3185942a 25985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
25987 { (case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990esac
25991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992$as_echo "$ac_try_echo") >&5
25993 (eval "$ac_try") 2>&5
f73dda09 25994 ac_status=$?
3185942a 25995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25996 (exit $ac_status); }; }; then
ccc6cda3
JA
25997 bash_cv_dup2_broken=yes
25998else
3185942a
JA
25999 $as_echo "$as_me: program exited with status $ac_status" >&5
26000$as_echo "$as_me: failed program was:" >&5
0628567a
JA
26001sed 's/^/| /' conftest.$ac_ext >&5
26002
b80f6443 26003( exit $ac_status )
f73dda09 26004bash_cv_dup2_broken=no
ccc6cda3 26005fi
3185942a
JA
26006rm -rf conftest.dSYM
26007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26008fi
26009
3185942a
JA
26010
26011
ccc6cda3
JA
26012fi
26013
3185942a
JA
26014{ $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26015$as_echo "$bash_cv_dup2_broken" >&6; }
ccc6cda3 26016if test $bash_cv_dup2_broken = yes; then
b80f6443 26017cat >>confdefs.h <<\_ACEOF
ccc6cda3 26018#define DUP2_BROKEN 1
b80f6443 26019_ACEOF
ccc6cda3
JA
26020
26021fi
26022
b80f6443 26023
3185942a
JA
26024{ $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26025$as_echo_n "checking whether pgrps need synchronization... " >&6; }
f73dda09 26026if test "${bash_cv_pgrp_pipe+set}" = set; then
3185942a 26027 $as_echo_n "(cached) " >&6
ccc6cda3
JA
26028else
26029 if test "$cross_compiling" = yes; then
3185942a
JA
26030 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26031$as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
cce855bc 26032 bash_cv_pgrp_pipe=no
ccc6cda3 26033else
f73dda09 26034 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26035/* confdefs.h. */
26036_ACEOF
26037cat confdefs.h >>conftest.$ac_ext
26038cat >>conftest.$ac_ext <<_ACEOF
26039/* end confdefs.h. */
ccc6cda3
JA
26040
26041#ifdef HAVE_UNISTD_H
26042# include <unistd.h>
26043#endif
26044main()
26045{
26046# ifdef GETPGRP_VOID
26047# define getpgID() getpgrp()
26048# else
26049# define getpgID() getpgrp(0)
26050# define setpgid(x,y) setpgrp(x,y)
26051# endif
26052 int pid1, pid2, fds[2];
26053 int status;
26054 char ok;
26055
26056 switch (pid1 = fork()) {
26057 case -1:
26058 exit(1);
26059 case 0:
26060 setpgid(0, getpid());
26061 exit(0);
26062 }
26063 setpgid(pid1, pid1);
26064
26065 sleep(2); /* let first child die */
26066
26067 if (pipe(fds) < 0)
26068 exit(2);
26069
26070 switch (pid2 = fork()) {
26071 case -1:
26072 exit(3);
26073 case 0:
26074 setpgid(0, pid1);
26075 ok = getpgID() == pid1;
26076 write(fds[1], &ok, 1);
26077 exit(0);
26078 }
26079 setpgid(pid2, pid1);
26080
26081 close(fds[1]);
26082 if (read(fds[0], &ok, 1) != 1)
26083 exit(4);
26084 wait(&status);
26085 wait(&status);
26086 exit(ok ? 0 : 5);
26087}
26088
f73dda09
JA
26089_ACEOF
26090rm -f conftest$ac_exeext
3185942a
JA
26091if { (ac_try="$ac_link"
26092case "(($ac_try" in
26093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094 *) ac_try_echo=$ac_try;;
26095esac
26096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26097$as_echo "$ac_try_echo") >&5
26098 (eval "$ac_link") 2>&5
f73dda09 26099 ac_status=$?
3185942a 26100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
26102 { (case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26105esac
26106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26107$as_echo "$ac_try_echo") >&5
26108 (eval "$ac_try") 2>&5
f73dda09 26109 ac_status=$?
3185942a 26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26111 (exit $ac_status); }; }; then
ccc6cda3
JA
26112 bash_cv_pgrp_pipe=no
26113else
3185942a
JA
26114 $as_echo "$as_me: program exited with status $ac_status" >&5
26115$as_echo "$as_me: failed program was:" >&5
0628567a
JA
26116sed 's/^/| /' conftest.$ac_ext >&5
26117
b80f6443 26118( exit $ac_status )
f73dda09 26119bash_cv_pgrp_pipe=yes
ccc6cda3 26120fi
3185942a
JA
26121rm -rf conftest.dSYM
26122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26123fi
26124
3185942a
JA
26125
26126
ccc6cda3
JA
26127fi
26128
3185942a
JA
26129{ $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26130$as_echo "$bash_cv_pgrp_pipe" >&6; }
ccc6cda3 26131if test $bash_cv_pgrp_pipe = yes; then
b80f6443 26132cat >>confdefs.h <<\_ACEOF
ccc6cda3 26133#define PGRP_PIPE 1
b80f6443 26134_ACEOF
ccc6cda3
JA
26135
26136fi
26137
b80f6443 26138
3185942a
JA
26139{ $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
26140$as_echo_n "checking for type of signal functions... " >&6; }
f73dda09 26141if test "${bash_cv_signal_vintage+set}" = set; then
3185942a 26142 $as_echo_n "(cached) " >&6
ccc6cda3 26143else
f73dda09
JA
26144
26145 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26146/* confdefs.h. */
26147_ACEOF
26148cat confdefs.h >>conftest.$ac_ext
26149cat >>conftest.$ac_ext <<_ACEOF
26150/* end confdefs.h. */
d166f048 26151#include <signal.h>
f73dda09
JA
26152int
26153main ()
26154{
d166f048
JA
26155
26156 sigset_t ss;
26157 struct sigaction sa;
26158 sigemptyset(&ss); sigsuspend(&ss);
26159 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26160 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
f73dda09
JA
26161
26162 ;
26163 return 0;
26164}
26165_ACEOF
26166rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
26167if { (ac_try="$ac_link"
26168case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26171esac
26172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26173$as_echo "$ac_try_echo") >&5
26174 (eval "$ac_link") 2>conftest.er1
f73dda09 26175 ac_status=$?
0628567a
JA
26176 grep -v '^ *+' conftest.er1 >conftest.err
26177 rm -f conftest.er1
26178 cat conftest.err >&5
3185942a
JA
26179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } && {
26181 test -z "$ac_c_werror_flag" ||
26182 test ! -s conftest.err
26183 } && test -s conftest$ac_exeext && {
26184 test "$cross_compiling" = yes ||
26185 $as_test_x conftest$ac_exeext
26186 }; then
d166f048 26187 bash_cv_signal_vintage=posix
ccc6cda3 26188else
3185942a 26189 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26190sed 's/^/| /' conftest.$ac_ext >&5
26191
f73dda09
JA
26192
26193 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26194/* confdefs.h. */
26195_ACEOF
26196cat confdefs.h >>conftest.$ac_ext
26197cat >>conftest.$ac_ext <<_ACEOF
26198/* end confdefs.h. */
d166f048 26199#include <signal.h>
f73dda09
JA
26200int
26201main ()
26202{
d166f048
JA
26203
26204 int mask = sigmask(SIGINT);
26205 sigsetmask(mask); sigblock(mask); sigpause(mask);
f73dda09
JA
26206
26207 ;
26208 return 0;
26209}
26210_ACEOF
26211rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
26212if { (ac_try="$ac_link"
26213case "(($ac_try" in
26214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215 *) ac_try_echo=$ac_try;;
26216esac
26217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26218$as_echo "$ac_try_echo") >&5
26219 (eval "$ac_link") 2>conftest.er1
f73dda09 26220 ac_status=$?
0628567a
JA
26221 grep -v '^ *+' conftest.er1 >conftest.err
26222 rm -f conftest.er1
26223 cat conftest.err >&5
3185942a
JA
26224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } && {
26226 test -z "$ac_c_werror_flag" ||
26227 test ! -s conftest.err
26228 } && test -s conftest$ac_exeext && {
26229 test "$cross_compiling" = yes ||
26230 $as_test_x conftest$ac_exeext
26231 }; then
d166f048
JA
26232 bash_cv_signal_vintage=4.2bsd
26233else
3185942a 26234 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26235sed 's/^/| /' conftest.$ac_ext >&5
26236
f73dda09
JA
26237
26238 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26239/* confdefs.h. */
26240_ACEOF
26241cat confdefs.h >>conftest.$ac_ext
26242cat >>conftest.$ac_ext <<_ACEOF
26243/* end confdefs.h. */
d166f048
JA
26244
26245 #include <signal.h>
26246 RETSIGTYPE foo() { }
f73dda09
JA
26247int
26248main ()
26249{
d166f048
JA
26250
26251 int mask = sigmask(SIGINT);
26252 sigset(SIGINT, foo); sigrelse(SIGINT);
26253 sighold(SIGINT); sigpause(SIGINT);
f73dda09
JA
26254
26255 ;
26256 return 0;
26257}
26258_ACEOF
26259rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
26260if { (ac_try="$ac_link"
26261case "(($ac_try" in
26262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26264esac
26265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26266$as_echo "$ac_try_echo") >&5
26267 (eval "$ac_link") 2>conftest.er1
f73dda09 26268 ac_status=$?
0628567a
JA
26269 grep -v '^ *+' conftest.er1 >conftest.err
26270 rm -f conftest.er1
26271 cat conftest.err >&5
3185942a
JA
26272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); } && {
26274 test -z "$ac_c_werror_flag" ||
26275 test ! -s conftest.err
26276 } && test -s conftest$ac_exeext && {
26277 test "$cross_compiling" = yes ||
26278 $as_test_x conftest$ac_exeext
26279 }; then
d166f048
JA
26280 bash_cv_signal_vintage=svr3
26281else
3185942a 26282 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26283sed 's/^/| /' conftest.$ac_ext >&5
26284
3185942a 26285 bash_cv_signal_vintage=v7
f73dda09 26286
d166f048 26287fi
3185942a
JA
26288
26289rm -rf conftest.dSYM
26290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 26291 conftest$ac_exeext conftest.$ac_ext
f73dda09 26292
d166f048 26293fi
3185942a
JA
26294
26295rm -rf conftest.dSYM
26296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 26297 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
26298
26299fi
3185942a
JA
26300
26301rm -rf conftest.dSYM
26302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 26303 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
26304
26305fi
26306
3185942a
JA
26307{ $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26308$as_echo "$bash_cv_signal_vintage" >&6; }
d166f048 26309if test "$bash_cv_signal_vintage" = posix; then
b80f6443 26310cat >>confdefs.h <<\_ACEOF
d166f048 26311#define HAVE_POSIX_SIGNALS 1
b80f6443 26312_ACEOF
d166f048
JA
26313
26314elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
b80f6443 26315cat >>confdefs.h <<\_ACEOF
d166f048 26316#define HAVE_BSD_SIGNALS 1
b80f6443 26317_ACEOF
d166f048
JA
26318
26319elif test "$bash_cv_signal_vintage" = svr3; then
b80f6443 26320cat >>confdefs.h <<\_ACEOF
d166f048 26321#define HAVE_USG_SIGHOLD 1
b80f6443 26322_ACEOF
d166f048
JA
26323
26324fi
26325
b80f6443 26326
3185942a
JA
26327{ $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26328$as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
f73dda09 26329if test "${bash_cv_sys_errlist+set}" = set; then
3185942a 26330 $as_echo_n "(cached) " >&6
cce855bc 26331else
f73dda09 26332 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26333/* confdefs.h. */
26334_ACEOF
26335cat confdefs.h >>conftest.$ac_ext
26336cat >>conftest.$ac_ext <<_ACEOF
26337/* end confdefs.h. */
f73dda09
JA
26338#include <errno.h>
26339int
cce855bc
JA
26340main ()
26341{
d166f048
JA
26342extern char *sys_errlist[];
26343 extern int sys_nerr;
26344 char *msg = sys_errlist[sys_nerr - 1];
f73dda09
JA
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
26350if { (ac_try="$ac_link"
26351case "(($ac_try" in
26352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353 *) ac_try_echo=$ac_try;;
26354esac
26355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26356$as_echo "$ac_try_echo") >&5
26357 (eval "$ac_link") 2>conftest.er1
f73dda09 26358 ac_status=$?
0628567a
JA
26359 grep -v '^ *+' conftest.er1 >conftest.err
26360 rm -f conftest.er1
26361 cat conftest.err >&5
3185942a
JA
26362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); } && {
26364 test -z "$ac_c_werror_flag" ||
26365 test ! -s conftest.err
26366 } && test -s conftest$ac_exeext && {
26367 test "$cross_compiling" = yes ||
26368 $as_test_x conftest$ac_exeext
26369 }; then
d166f048
JA
26370 bash_cv_sys_errlist=yes
26371else
3185942a 26372 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26373sed 's/^/| /' conftest.$ac_ext >&5
26374
3185942a 26375 bash_cv_sys_errlist=no
d166f048 26376fi
3185942a
JA
26377
26378rm -rf conftest.dSYM
26379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 26380 conftest$ac_exeext conftest.$ac_ext
d166f048 26381fi
3185942a
JA
26382{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26383$as_echo "$bash_cv_sys_errlist" >&6; }
d166f048 26384if test $bash_cv_sys_errlist = yes; then
b80f6443 26385cat >>confdefs.h <<\_ACEOF
d166f048 26386#define HAVE_SYS_ERRLIST 1
b80f6443 26387_ACEOF
d166f048
JA
26388
26389fi
26390
b80f6443 26391
3185942a
JA
26392{ $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26393$as_echo_n "checking for sys_siglist in system C library... " >&6; }
f73dda09 26394if test "${bash_cv_sys_siglist+set}" = set; then
3185942a 26395 $as_echo_n "(cached) " >&6
ccc6cda3
JA
26396else
26397 if test "$cross_compiling" = yes; then
3185942a
JA
26398 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26399$as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 26400 bash_cv_sys_siglist=no
ccc6cda3 26401else
f73dda09 26402 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26403/* confdefs.h. */
26404_ACEOF
26405cat confdefs.h >>conftest.$ac_ext
26406cat >>conftest.$ac_ext <<_ACEOF
26407/* end confdefs.h. */
ccc6cda3
JA
26408
26409#include <sys/types.h>
26410#include <signal.h>
26411#ifdef HAVE_UNISTD_H
26412#include <unistd.h>
26413#endif
3185942a 26414#if !HAVE_DECL_SYS_SIGLIST
ccc6cda3
JA
26415extern char *sys_siglist[];
26416#endif
26417main()
26418{
26419char *msg = sys_siglist[2];
26420exit(msg == 0);
26421}
f73dda09
JA
26422_ACEOF
26423rm -f conftest$ac_exeext
3185942a
JA
26424if { (ac_try="$ac_link"
26425case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26428esac
26429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430$as_echo "$ac_try_echo") >&5
26431 (eval "$ac_link") 2>&5
f73dda09 26432 ac_status=$?
3185942a 26433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
26435 { (case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26438esac
26439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26440$as_echo "$ac_try_echo") >&5
26441 (eval "$ac_try") 2>&5
f73dda09 26442 ac_status=$?
3185942a 26443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26444 (exit $ac_status); }; }; then
ccc6cda3
JA
26445 bash_cv_sys_siglist=yes
26446else
3185942a
JA
26447 $as_echo "$as_me: program exited with status $ac_status" >&5
26448$as_echo "$as_me: failed program was:" >&5
0628567a
JA
26449sed 's/^/| /' conftest.$ac_ext >&5
26450
b80f6443 26451( exit $ac_status )
f73dda09 26452bash_cv_sys_siglist=no
ccc6cda3 26453fi
3185942a
JA
26454rm -rf conftest.dSYM
26455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 26456fi
3185942a
JA
26457
26458
ccc6cda3 26459fi
cce855bc 26460
3185942a
JA
26461{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26462$as_echo "$bash_cv_sys_siglist" >&6; }
ccc6cda3 26463if test $bash_cv_sys_siglist = yes; then
b80f6443 26464cat >>confdefs.h <<\_ACEOF
ccc6cda3 26465#define HAVE_SYS_SIGLIST 1
b80f6443 26466_ACEOF
ccc6cda3
JA
26467
26468fi
26469
3185942a
JA
26470{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26471$as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
f73dda09 26472if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
3185942a 26473 $as_echo_n "(cached) " >&6
e8ce775d 26474else
f73dda09 26475 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26476/* confdefs.h. */
26477_ACEOF
26478cat confdefs.h >>conftest.$ac_ext
26479cat >>conftest.$ac_ext <<_ACEOF
26480/* end confdefs.h. */
e8ce775d
JA
26481
26482#include <sys/types.h>
26483#include <signal.h>
26484#ifdef HAVE_UNISTD_H
26485#include <unistd.h>
26486#endif
f73dda09
JA
26487int
26488main ()
26489{
26490 char *msg = _sys_siglist[2];
26491 ;
26492 return 0;
26493}
26494_ACEOF
26495rm -f conftest.$ac_objext
3185942a
JA
26496if { (ac_try="$ac_compile"
26497case "(($ac_try" in
26498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26500esac
26501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26502$as_echo "$ac_try_echo") >&5
26503 (eval "$ac_compile") 2>conftest.er1
f73dda09 26504 ac_status=$?
0628567a
JA
26505 grep -v '^ *+' conftest.er1 >conftest.err
26506 rm -f conftest.er1
26507 cat conftest.err >&5
3185942a
JA
26508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.$ac_objext; then
e8ce775d
JA
26513 bash_cv_decl_under_sys_siglist=yes
26514else
3185942a 26515 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26516sed 's/^/| /' conftest.$ac_ext >&5
26517
3185942a 26518 bash_cv_decl_under_sys_siglist=no
e8ce775d 26519fi
3185942a
JA
26520
26521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8ce775d 26522fi
3185942a
JA
26523{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26524$as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
e8ce775d 26525if test $bash_cv_decl_under_sys_siglist = yes; then
b80f6443 26526cat >>confdefs.h <<\_ACEOF
e8ce775d 26527#define UNDER_SYS_SIGLIST_DECLARED 1
b80f6443 26528_ACEOF
e8ce775d
JA
26529
26530fi
26531
b80f6443 26532
3185942a
JA
26533{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26534$as_echo_n "checking for _sys_siglist in system C library... " >&6; }
f73dda09 26535if test "${bash_cv_under_sys_siglist+set}" = set; then
3185942a 26536 $as_echo_n "(cached) " >&6
ccc6cda3
JA
26537else
26538 if test "$cross_compiling" = yes; then
3185942a
JA
26539 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26540$as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 26541 bash_cv_under_sys_siglist=no
ccc6cda3 26542else
f73dda09 26543 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
ccc6cda3
JA
26549
26550#include <sys/types.h>
26551#include <signal.h>
26552#ifdef HAVE_UNISTD_H
26553#include <unistd.h>
26554#endif
e8ce775d 26555#ifndef UNDER_SYS_SIGLIST_DECLARED
ccc6cda3
JA
26556extern char *_sys_siglist[];
26557#endif
26558main()
26559{
e8ce775d 26560char *msg = (char *)_sys_siglist[2];
ccc6cda3
JA
26561exit(msg == 0);
26562}
f73dda09
JA
26563_ACEOF
26564rm -f conftest$ac_exeext
3185942a
JA
26565if { (ac_try="$ac_link"
26566case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26569esac
26570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26571$as_echo "$ac_try_echo") >&5
26572 (eval "$ac_link") 2>&5
f73dda09 26573 ac_status=$?
3185942a 26574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
26576 { (case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26579esac
26580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26581$as_echo "$ac_try_echo") >&5
26582 (eval "$ac_try") 2>&5
f73dda09 26583 ac_status=$?
3185942a 26584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26585 (exit $ac_status); }; }; then
ccc6cda3
JA
26586 bash_cv_under_sys_siglist=yes
26587else
3185942a
JA
26588 $as_echo "$as_me: program exited with status $ac_status" >&5
26589$as_echo "$as_me: failed program was:" >&5
0628567a
JA
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
b80f6443 26592( exit $ac_status )
f73dda09 26593bash_cv_under_sys_siglist=no
ccc6cda3 26594fi
3185942a
JA
26595rm -rf conftest.dSYM
26596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 26597fi
3185942a
JA
26598
26599
ccc6cda3 26600fi
cce855bc 26601
3185942a
JA
26602{ $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26603$as_echo "$bash_cv_under_sys_siglist" >&6; }
ccc6cda3 26604if test $bash_cv_under_sys_siglist = yes; then
b80f6443 26605cat >>confdefs.h <<\_ACEOF
ccc6cda3 26606#define HAVE_UNDER_SYS_SIGLIST 1
b80f6443 26607_ACEOF
ccc6cda3
JA
26608
26609fi
26610
b80f6443 26611
3185942a
JA
26612{ $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26613$as_echo_n "checking whether signal handlers are of type void... " >&6; }
f73dda09 26614if test "${bash_cv_void_sighandler+set}" = set; then
3185942a 26615 $as_echo_n "(cached) " >&6
ccc6cda3 26616else
f73dda09 26617 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26618/* confdefs.h. */
26619_ACEOF
26620cat confdefs.h >>conftest.$ac_ext
26621cat >>conftest.$ac_ext <<_ACEOF
26622/* end confdefs.h. */
ccc6cda3
JA
26623#include <sys/types.h>
26624#include <signal.h>
26625#ifdef signal
26626#undef signal
26627#endif
26628#ifdef __cplusplus
26629extern "C"
26630#endif
26631void (*signal ()) ();
f73dda09
JA
26632int
26633main ()
26634{
ccc6cda3 26635int i;
f73dda09
JA
26636 ;
26637 return 0;
26638}
26639_ACEOF
26640rm -f conftest.$ac_objext
3185942a
JA
26641if { (ac_try="$ac_compile"
26642case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26645esac
26646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26647$as_echo "$ac_try_echo") >&5
26648 (eval "$ac_compile") 2>conftest.er1
f73dda09 26649 ac_status=$?
0628567a
JA
26650 grep -v '^ *+' conftest.er1 >conftest.err
26651 rm -f conftest.er1
26652 cat conftest.err >&5
3185942a
JA
26653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_c_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
26658 bash_cv_void_sighandler=yes
26659else
3185942a 26660 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26661sed 's/^/| /' conftest.$ac_ext >&5
26662
3185942a 26663 bash_cv_void_sighandler=no
ccc6cda3 26664fi
3185942a
JA
26665
26666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 26667fi
3185942a
JA
26668{ $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26669$as_echo "$bash_cv_void_sighandler" >&6; }
ccc6cda3 26670if test $bash_cv_void_sighandler = yes; then
b80f6443 26671cat >>confdefs.h <<\_ACEOF
ccc6cda3 26672#define VOID_SIGHANDLER 1
b80f6443 26673_ACEOF
ccc6cda3
JA
26674
26675fi
26676
b80f6443
JA
26677
26678
3185942a
JA
26679{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26680$as_echo_n "checking for clock_t... " >&6; }
f73dda09 26681if test "${bash_cv_type_clock_t+set}" = set; then
3185942a 26682 $as_echo_n "(cached) " >&6
ccc6cda3 26683else
f73dda09 26684 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26685/* confdefs.h. */
26686_ACEOF
26687cat confdefs.h >>conftest.$ac_ext
26688cat >>conftest.$ac_ext <<_ACEOF
26689/* end confdefs.h. */
ccc6cda3
JA
26690#include <sys/types.h>
26691#if STDC_HEADERS
26692#include <stdlib.h>
f73dda09
JA
26693#include <stddef.h>
26694#endif
26695#if HAVE_INTTYPES_H
26696#include <inttypes.h>
ccc6cda3 26697#endif
0001803f
CR
26698#if HAVE_STDINT_H
26699#include <stdint.h>
26700#endif
ccc6cda3
JA
26701#include <sys/times.h>
26702
f73dda09 26703_ACEOF
ccc6cda3 26704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26705 $EGREP "clock_t" >/dev/null 2>&1; then
ccc6cda3
JA
26706 bash_cv_type_clock_t=yes
26707else
ccc6cda3
JA
26708 bash_cv_type_clock_t=no
26709fi
26710rm -f conftest*
26711
26712fi
26713
3185942a
JA
26714{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26715$as_echo "$bash_cv_type_clock_t" >&6; }
ccc6cda3
JA
26716
26717if test $bash_cv_type_clock_t = no; then
b80f6443 26718 cat >>confdefs.h <<_ACEOF
ccc6cda3 26719#define clock_t long
b80f6443 26720_ACEOF
ccc6cda3
JA
26721
26722fi
26723
b80f6443
JA
26724
26725
3185942a
JA
26726{ $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26727$as_echo_n "checking for sigset_t... " >&6; }
f73dda09 26728if test "${bash_cv_type_sigset_t+set}" = set; then
3185942a 26729 $as_echo_n "(cached) " >&6
ccc6cda3 26730else
f73dda09 26731 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26732/* confdefs.h. */
26733_ACEOF
26734cat confdefs.h >>conftest.$ac_ext
26735cat >>conftest.$ac_ext <<_ACEOF
26736/* end confdefs.h. */
ccc6cda3
JA
26737#include <sys/types.h>
26738#if STDC_HEADERS
26739#include <stdlib.h>
f73dda09
JA
26740#include <stddef.h>
26741#endif
26742#if HAVE_INTTYPES_H
26743#include <inttypes.h>
ccc6cda3 26744#endif
0001803f
CR
26745#if HAVE_STDINT_H
26746#include <stdint.h>
26747#endif
ccc6cda3
JA
26748#include <signal.h>
26749
f73dda09 26750_ACEOF
ccc6cda3 26751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26752 $EGREP "sigset_t" >/dev/null 2>&1; then
ccc6cda3
JA
26753 bash_cv_type_sigset_t=yes
26754else
ccc6cda3
JA
26755 bash_cv_type_sigset_t=no
26756fi
26757rm -f conftest*
26758
26759fi
26760
3185942a
JA
26761{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26762$as_echo "$bash_cv_type_sigset_t" >&6; }
ccc6cda3
JA
26763
26764if test $bash_cv_type_sigset_t = no; then
b80f6443 26765 cat >>confdefs.h <<_ACEOF
ccc6cda3 26766#define sigset_t int
b80f6443 26767_ACEOF
ccc6cda3
JA
26768
26769fi
26770
b80f6443
JA
26771
26772
3185942a
JA
26773{ $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26774$as_echo_n "checking for quad_t... " >&6; }
f73dda09 26775if test "${bash_cv_type_quad_t+set}" = set; then
3185942a 26776 $as_echo_n "(cached) " >&6
ccc6cda3 26777else
f73dda09 26778 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26779/* confdefs.h. */
26780_ACEOF
26781cat confdefs.h >>conftest.$ac_ext
26782cat >>conftest.$ac_ext <<_ACEOF
26783/* end confdefs.h. */
ccc6cda3
JA
26784#include <sys/types.h>
26785#if STDC_HEADERS
26786#include <stdlib.h>
f73dda09
JA
26787#include <stddef.h>
26788#endif
26789#if HAVE_INTTYPES_H
26790#include <inttypes.h>
ccc6cda3 26791#endif
0001803f
CR
26792#if HAVE_STDINT_H
26793#include <stdint.h>
26794#endif
ccc6cda3 26795
b80f6443 26796
f73dda09 26797_ACEOF
ccc6cda3 26798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26799 $EGREP "quad_t" >/dev/null 2>&1; then
ccc6cda3
JA
26800 bash_cv_type_quad_t=yes
26801else
ccc6cda3
JA
26802 bash_cv_type_quad_t=no
26803fi
26804rm -f conftest*
26805
26806fi
26807
3185942a
JA
26808{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26809$as_echo "$bash_cv_type_quad_t" >&6; }
ccc6cda3 26810if test $bash_cv_type_quad_t = yes; then
b80f6443 26811 cat >>confdefs.h <<\_ACEOF
ccc6cda3 26812#define HAVE_QUAD_T 1
b80f6443 26813_ACEOF
ccc6cda3
JA
26814
26815 fi
26816if test $bash_cv_type_quad_t = no; then
b80f6443 26817 cat >>confdefs.h <<_ACEOF
ccc6cda3 26818#define quad_t long
b80f6443 26819_ACEOF
ccc6cda3
JA
26820
26821fi
26822
b80f6443
JA
26823
26824
3185942a
JA
26825{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26826$as_echo_n "checking for intmax_t... " >&6; }
f73dda09 26827if test "${bash_cv_type_intmax_t+set}" = set; then
3185942a 26828 $as_echo_n "(cached) " >&6
f73dda09
JA
26829else
26830 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26831/* confdefs.h. */
26832_ACEOF
26833cat confdefs.h >>conftest.$ac_ext
26834cat >>conftest.$ac_ext <<_ACEOF
26835/* end confdefs.h. */
f73dda09
JA
26836#include <sys/types.h>
26837#if STDC_HEADERS
26838#include <stdlib.h>
26839#include <stddef.h>
26840#endif
26841#if HAVE_INTTYPES_H
26842#include <inttypes.h>
26843#endif
0001803f
CR
26844#if HAVE_STDINT_H
26845#include <stdint.h>
26846#endif
f73dda09 26847
b80f6443 26848
f73dda09
JA
26849_ACEOF
26850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26851 $EGREP "intmax_t" >/dev/null 2>&1; then
f73dda09
JA
26852 bash_cv_type_intmax_t=yes
26853else
26854 bash_cv_type_intmax_t=no
26855fi
26856rm -f conftest*
26857
26858fi
26859
3185942a
JA
26860{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26861$as_echo "$bash_cv_type_intmax_t" >&6; }
f73dda09
JA
26862
26863if test $bash_cv_type_intmax_t = no; then
b80f6443 26864 cat >>confdefs.h <<_ACEOF
f73dda09 26865#define intmax_t $bash_cv_type_long_long
b80f6443 26866_ACEOF
f73dda09
JA
26867
26868fi
26869
b80f6443
JA
26870
26871
3185942a
JA
26872{ $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26873$as_echo_n "checking for uintmax_t... " >&6; }
f73dda09 26874if test "${bash_cv_type_uintmax_t+set}" = set; then
3185942a 26875 $as_echo_n "(cached) " >&6
f73dda09
JA
26876else
26877 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26878/* confdefs.h. */
26879_ACEOF
26880cat confdefs.h >>conftest.$ac_ext
26881cat >>conftest.$ac_ext <<_ACEOF
26882/* end confdefs.h. */
f73dda09
JA
26883#include <sys/types.h>
26884#if STDC_HEADERS
26885#include <stdlib.h>
26886#include <stddef.h>
26887#endif
26888#if HAVE_INTTYPES_H
26889#include <inttypes.h>
26890#endif
0001803f
CR
26891#if HAVE_STDINT_H
26892#include <stdint.h>
26893#endif
f73dda09 26894
b80f6443 26895
f73dda09
JA
26896_ACEOF
26897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26898 $EGREP "uintmax_t" >/dev/null 2>&1; then
f73dda09
JA
26899 bash_cv_type_uintmax_t=yes
26900else
26901 bash_cv_type_uintmax_t=no
26902fi
26903rm -f conftest*
26904
26905fi
26906
3185942a
JA
26907{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26908$as_echo "$bash_cv_type_uintmax_t" >&6; }
f73dda09
JA
26909
26910if test $bash_cv_type_uintmax_t = no; then
b80f6443 26911 cat >>confdefs.h <<_ACEOF
f73dda09 26912#define uintmax_t $bash_cv_type_unsigned_long_long
b80f6443 26913_ACEOF
f73dda09
JA
26914
26915fi
26916
26917if test "$ac_cv_header_sys_socket_h" = "yes"; then
26918
b80f6443 26919
3185942a
JA
26920{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26921$as_echo_n "checking for socklen_t... " >&6; }
f73dda09 26922if test "${bash_cv_type_socklen_t+set}" = set; then
3185942a 26923 $as_echo_n "(cached) " >&6
f73dda09
JA
26924else
26925 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26926/* confdefs.h. */
26927_ACEOF
26928cat confdefs.h >>conftest.$ac_ext
26929cat >>conftest.$ac_ext <<_ACEOF
26930/* end confdefs.h. */
f73dda09
JA
26931#include <sys/types.h>
26932#if STDC_HEADERS
26933#include <stdlib.h>
26934#include <stddef.h>
26935#endif
26936#if HAVE_INTTYPES_H
26937#include <inttypes.h>
26938#endif
0001803f
CR
26939#if HAVE_STDINT_H
26940#include <stdint.h>
26941#endif
f73dda09
JA
26942#include <sys/socket.h>
26943
26944_ACEOF
26945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26946 $EGREP "socklen_t" >/dev/null 2>&1; then
f73dda09
JA
26947 bash_cv_type_socklen_t=yes
26948else
26949 bash_cv_type_socklen_t=no
26950fi
26951rm -f conftest*
26952
26953fi
26954
3185942a
JA
26955{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26956$as_echo "$bash_cv_type_socklen_t" >&6; }
f73dda09 26957if test $bash_cv_type_socklen_t = yes; then
b80f6443 26958 cat >>confdefs.h <<\_ACEOF
f73dda09 26959#define HAVE_SOCKLEN_T 1
b80f6443 26960_ACEOF
f73dda09
JA
26961
26962 fi
26963if test $bash_cv_type_socklen_t = no; then
b80f6443 26964 cat >>confdefs.h <<_ACEOF
f73dda09 26965#define socklen_t int
b80f6443 26966_ACEOF
f73dda09
JA
26967
26968fi
26969
26970fi
3185942a
JA
26971{ $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26972$as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
f73dda09 26973if test "${bash_cv_type_rlimit+set}" = set; then
3185942a 26974 $as_echo_n "(cached) " >&6
ccc6cda3 26975else
f73dda09 26976 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26977/* confdefs.h. */
26978_ACEOF
26979cat confdefs.h >>conftest.$ac_ext
26980cat >>conftest.$ac_ext <<_ACEOF
26981/* end confdefs.h. */
ccc6cda3 26982#include <sys/types.h>
cce855bc 26983#include <sys/resource.h>
f73dda09
JA
26984int
26985main ()
26986{
ccc6cda3 26987rlim_t xxx;
f73dda09
JA
26988 ;
26989 return 0;
26990}
26991_ACEOF
26992rm -f conftest.$ac_objext
3185942a
JA
26993if { (ac_try="$ac_compile"
26994case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26997esac
26998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26999$as_echo "$ac_try_echo") >&5
27000 (eval "$ac_compile") 2>conftest.er1
f73dda09 27001 ac_status=$?
0628567a
JA
27002 grep -v '^ *+' conftest.er1 >conftest.err
27003 rm -f conftest.er1
27004 cat conftest.err >&5
3185942a
JA
27005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } && {
27007 test -z "$ac_c_werror_flag" ||
27008 test ! -s conftest.err
27009 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
27010 bash_cv_type_rlimit=rlim_t
27011else
3185942a 27012 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27013sed 's/^/| /' conftest.$ac_ext >&5
27014
f73dda09 27015
ccc6cda3 27016if test "$cross_compiling" = yes; then
3185942a
JA
27017 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27018$as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
cce855bc 27019 bash_cv_type_rlimit=long
ccc6cda3 27020else
f73dda09 27021 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27022/* confdefs.h. */
27023_ACEOF
27024cat confdefs.h >>conftest.$ac_ext
27025cat >>conftest.$ac_ext <<_ACEOF
27026/* end confdefs.h. */
ccc6cda3
JA
27027
27028#include <sys/types.h>
27029#include <sys/time.h>
27030#include <sys/resource.h>
27031main()
27032{
27033#ifdef HAVE_QUAD_T
27034 struct rlimit rl;
27035 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27036 exit(0);
27037#endif
27038 exit(1);
27039}
f73dda09
JA
27040_ACEOF
27041rm -f conftest$ac_exeext
3185942a
JA
27042if { (ac_try="$ac_link"
27043case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27046esac
27047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27048$as_echo "$ac_try_echo") >&5
27049 (eval "$ac_link") 2>&5
f73dda09 27050 ac_status=$?
3185942a 27051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27053 { (case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27056esac
27057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27058$as_echo "$ac_try_echo") >&5
27059 (eval "$ac_try") 2>&5
f73dda09 27060 ac_status=$?
3185942a 27061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27062 (exit $ac_status); }; }; then
ccc6cda3
JA
27063 bash_cv_type_rlimit=quad_t
27064else
3185942a
JA
27065 $as_echo "$as_me: program exited with status $ac_status" >&5
27066$as_echo "$as_me: failed program was:" >&5
0628567a
JA
27067sed 's/^/| /' conftest.$ac_ext >&5
27068
b80f6443 27069( exit $ac_status )
f73dda09 27070bash_cv_type_rlimit=long
ccc6cda3 27071fi
3185942a
JA
27072rm -rf conftest.dSYM
27073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27074fi
3185942a
JA
27075
27076
ccc6cda3 27077fi
3185942a
JA
27078
27079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
27080
27081fi
27082
3185942a
JA
27083{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27084$as_echo "$bash_cv_type_rlimit" >&6; }
ccc6cda3 27085if test $bash_cv_type_rlimit = quad_t; then
b80f6443 27086cat >>confdefs.h <<\_ACEOF
ccc6cda3 27087#define RLIMTYPE quad_t
b80f6443 27088_ACEOF
ccc6cda3
JA
27089
27090elif test $bash_cv_type_rlimit = rlim_t; then
b80f6443 27091cat >>confdefs.h <<\_ACEOF
ccc6cda3 27092#define RLIMTYPE rlim_t
b80f6443 27093_ACEOF
ccc6cda3
JA
27094
27095fi
27096
b80f6443 27097
495aee44
CR
27098# The cast to long int works around a bug in the HP C Compiler
27099# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27100# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27101# This bug is HP SR number 8606223364.
27102{ $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27103$as_echo_n "checking size of intmax_t... " >&6; }
27104if test "${ac_cv_sizeof_intmax_t+set}" = set; then
3185942a 27105 $as_echo_n "(cached) " >&6
ccc6cda3 27106else
495aee44
CR
27107 if test "$cross_compiling" = yes; then
27108 # Depending upon the size, compute the lo and hi bounds.
27109cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27110/* confdefs.h. */
27111_ACEOF
27112cat confdefs.h >>conftest.$ac_ext
27113cat >>conftest.$ac_ext <<_ACEOF
27114/* end confdefs.h. */
495aee44 27115$ac_includes_default
f73dda09
JA
27116int
27117main ()
27118{
495aee44
CR
27119static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
27120test_array [0] = 0
27121
f73dda09
JA
27122 ;
27123 return 0;
27124}
27125_ACEOF
27126rm -f conftest.$ac_objext
3185942a
JA
27127if { (ac_try="$ac_compile"
27128case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27131esac
27132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27133$as_echo "$ac_try_echo") >&5
27134 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
27135 ac_status=$?
27136 grep -v '^ *+' conftest.er1 >conftest.err
27137 rm -f conftest.er1
27138 cat conftest.err >&5
3185942a
JA
27139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } && {
27141 test -z "$ac_c_werror_flag" ||
27142 test ! -s conftest.err
27143 } && test -s conftest.$ac_objext; then
495aee44
CR
27144 ac_lo=0 ac_mid=0
27145 while :; do
27146 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27147/* confdefs.h. */
27148_ACEOF
27149cat confdefs.h >>conftest.$ac_ext
27150cat >>conftest.$ac_ext <<_ACEOF
27151/* end confdefs.h. */
495aee44 27152$ac_includes_default
0628567a
JA
27153int
27154main ()
27155{
495aee44
CR
27156static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27157test_array [0] = 0
27158
0628567a
JA
27159 ;
27160 return 0;
27161}
27162_ACEOF
27163rm -f conftest.$ac_objext
3185942a
JA
27164if { (ac_try="$ac_compile"
27165case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27168esac
27169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27170$as_echo "$ac_try_echo") >&5
27171 (eval "$ac_compile") 2>conftest.er1
b80f6443 27172 ac_status=$?
0628567a
JA
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
3185942a
JA
27176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest.$ac_objext; then
495aee44 27181 ac_hi=$ac_mid; break
b80f6443 27182else
3185942a 27183 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27184sed 's/^/| /' conftest.$ac_ext >&5
27185
495aee44
CR
27186 ac_lo=`expr $ac_mid + 1`
27187 if test $ac_lo -le $ac_mid; then
27188 ac_lo= ac_hi=
27189 break
27190 fi
27191 ac_mid=`expr 2 '*' $ac_mid + 1`
0628567a 27192fi
3185942a
JA
27193
27194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
495aee44 27195 done
ccc6cda3 27196else
495aee44
CR
27197 $as_echo "$as_me: failed program was:" >&5
27198sed 's/^/| /' conftest.$ac_ext >&5
27199
27200 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27201/* confdefs.h. */
27202_ACEOF
27203cat confdefs.h >>conftest.$ac_ext
27204cat >>conftest.$ac_ext <<_ACEOF
27205/* end confdefs.h. */
495aee44 27206$ac_includes_default
f73dda09
JA
27207int
27208main ()
27209{
495aee44
CR
27210static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
27211test_array [0] = 0
27212
f73dda09
JA
27213 ;
27214 return 0;
27215}
27216_ACEOF
27217rm -f conftest.$ac_objext
3185942a
JA
27218if { (ac_try="$ac_compile"
27219case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27222esac
27223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27224$as_echo "$ac_try_echo") >&5
27225 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
27226 ac_status=$?
27227 grep -v '^ *+' conftest.er1 >conftest.err
27228 rm -f conftest.er1
27229 cat conftest.err >&5
3185942a
JA
27230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); } && {
27232 test -z "$ac_c_werror_flag" ||
27233 test ! -s conftest.err
27234 } && test -s conftest.$ac_objext; then
495aee44
CR
27235 ac_hi=-1 ac_mid=-1
27236 while :; do
27237 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27238/* confdefs.h. */
27239_ACEOF
27240cat confdefs.h >>conftest.$ac_ext
27241cat >>conftest.$ac_ext <<_ACEOF
27242/* end confdefs.h. */
495aee44 27243$ac_includes_default
0628567a
JA
27244int
27245main ()
27246{
495aee44
CR
27247static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
27248test_array [0] = 0
27249
0628567a
JA
27250 ;
27251 return 0;
27252}
27253_ACEOF
27254rm -f conftest.$ac_objext
3185942a
JA
27255if { (ac_try="$ac_compile"
27256case "(($ac_try" in
27257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258 *) ac_try_echo=$ac_try;;
27259esac
27260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27261$as_echo "$ac_try_echo") >&5
27262 (eval "$ac_compile") 2>conftest.er1
b80f6443 27263 ac_status=$?
0628567a
JA
27264 grep -v '^ *+' conftest.er1 >conftest.err
27265 rm -f conftest.er1
27266 cat conftest.err >&5
3185942a
JA
27267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); } && {
27269 test -z "$ac_c_werror_flag" ||
27270 test ! -s conftest.err
27271 } && test -s conftest.$ac_objext; then
495aee44 27272 ac_lo=$ac_mid; break
b80f6443 27273else
3185942a 27274 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27275sed 's/^/| /' conftest.$ac_ext >&5
27276
495aee44
CR
27277 ac_hi=`expr '(' $ac_mid ')' - 1`
27278 if test $ac_mid -le $ac_hi; then
27279 ac_lo= ac_hi=
27280 break
27281 fi
27282 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 27283fi
3185942a
JA
27284
27285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
495aee44
CR
27286 done
27287else
27288 $as_echo "$as_me: failed program was:" >&5
27289sed 's/^/| /' conftest.$ac_ext >&5
3185942a 27290
495aee44 27291 ac_lo= ac_hi=
f73dda09 27292fi
ccc6cda3 27293
495aee44 27294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
27295fi
27296
495aee44
CR
27297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298# Binary search between lo and hi bounds.
27299while test "x$ac_lo" != "x$ac_hi"; do
27300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27301 cat >conftest.$ac_ext <<_ACEOF
27302/* confdefs.h. */
27303_ACEOF
27304cat confdefs.h >>conftest.$ac_ext
27305cat >>conftest.$ac_ext <<_ACEOF
27306/* end confdefs.h. */
27307$ac_includes_default
27308int
27309main ()
27310{
27311static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27312test_array [0] = 0
27313
27314 ;
27315 return 0;
27316}
27317_ACEOF
27318rm -f conftest.$ac_objext
27319if { (ac_try="$ac_compile"
27320case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27323esac
27324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27325$as_echo "$ac_try_echo") >&5
27326 (eval "$ac_compile") 2>conftest.er1
27327 ac_status=$?
27328 grep -v '^ *+' conftest.er1 >conftest.err
27329 rm -f conftest.er1
27330 cat conftest.err >&5
27331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } && {
27333 test -z "$ac_c_werror_flag" ||
27334 test ! -s conftest.err
27335 } && test -s conftest.$ac_objext; then
27336 ac_hi=$ac_mid
27337else
27338 $as_echo "$as_me: failed program was:" >&5
27339sed 's/^/| /' conftest.$ac_ext >&5
27340
27341 ac_lo=`expr '(' $ac_mid ')' + 1`
27342fi
27343
27344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345done
27346case $ac_lo in
27347?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27348'') if test "$ac_cv_type_intmax_t" = yes; then
27349 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27351{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27352See \`config.log' for more details." >&5
27353$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27354See \`config.log' for more details." >&2;}
27355 { (exit 77); exit 77; }; }; }
27356 else
27357 ac_cv_sizeof_intmax_t=0
27358 fi ;;
27359esac
27360else
27361 cat >conftest.$ac_ext <<_ACEOF
27362/* confdefs.h. */
27363_ACEOF
27364cat confdefs.h >>conftest.$ac_ext
27365cat >>conftest.$ac_ext <<_ACEOF
27366/* end confdefs.h. */
27367$ac_includes_default
27368static long int longval () { return (long int) (sizeof (intmax_t)); }
27369static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27370#include <stdio.h>
27371#include <stdlib.h>
27372int
27373main ()
27374{
27375
27376 FILE *f = fopen ("conftest.val", "w");
27377 if (! f)
27378 return 1;
27379 if (((long int) (sizeof (intmax_t))) < 0)
27380 {
27381 long int i = longval ();
27382 if (i != ((long int) (sizeof (intmax_t))))
27383 return 1;
27384 fprintf (f, "%ld", i);
27385 }
27386 else
27387 {
27388 unsigned long int i = ulongval ();
27389 if (i != ((long int) (sizeof (intmax_t))))
27390 return 1;
27391 fprintf (f, "%lu", i);
27392 }
27393 /* Do not output a trailing newline, as this causes \r\n confusion
27394 on some platforms. */
27395 return ferror (f) || fclose (f) != 0;
27396
27397 ;
27398 return 0;
27399}
27400_ACEOF
27401rm -f conftest$ac_exeext
27402if { (ac_try="$ac_link"
27403case "(($ac_try" in
27404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405 *) ac_try_echo=$ac_try;;
27406esac
27407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27408$as_echo "$ac_try_echo") >&5
27409 (eval "$ac_link") 2>&5
27410 ac_status=$?
27411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27418$as_echo "$ac_try_echo") >&5
27419 (eval "$ac_try") 2>&5
27420 ac_status=$?
27421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_sizeof_intmax_t=`cat conftest.val`
27424else
27425 $as_echo "$as_me: program exited with status $ac_status" >&5
27426$as_echo "$as_me: failed program was:" >&5
27427sed 's/^/| /' conftest.$ac_ext >&5
27428
27429( exit $ac_status )
27430if test "$ac_cv_type_intmax_t" = yes; then
27431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27433{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27434See \`config.log' for more details." >&5
27435$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27436See \`config.log' for more details." >&2;}
27437 { (exit 77); exit 77; }; }; }
27438 else
27439 ac_cv_sizeof_intmax_t=0
27440 fi
27441fi
27442rm -rf conftest.dSYM
27443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27444fi
27445rm -f conftest.val
27446fi
27447{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
27448$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
27449
27450
27451
27452cat >>confdefs.h <<_ACEOF
27453#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
27454_ACEOF
27455
27456
27457
27458
27459{ $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27460$as_echo_n "checking for struct termios.c_line... " >&6; }
27461if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27462 $as_echo_n "(cached) " >&6
27463else
27464 cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h. */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h. */
27470
27471#include <sys/types.h>
27472#include <termios.h>
27473
27474
27475int
27476main ()
27477{
27478static struct termios ac_aggr;
27479if (ac_aggr.c_line)
27480return 0;
27481 ;
27482 return 0;
27483}
27484_ACEOF
27485rm -f conftest.$ac_objext
27486if { (ac_try="$ac_compile"
27487case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27490esac
27491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27492$as_echo "$ac_try_echo") >&5
27493 (eval "$ac_compile") 2>conftest.er1
27494 ac_status=$?
27495 grep -v '^ *+' conftest.er1 >conftest.err
27496 rm -f conftest.er1
27497 cat conftest.err >&5
27498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } && {
27500 test -z "$ac_c_werror_flag" ||
27501 test ! -s conftest.err
27502 } && test -s conftest.$ac_objext; then
27503 ac_cv_member_struct_termios_c_line=yes
27504else
27505 $as_echo "$as_me: failed program was:" >&5
27506sed 's/^/| /' conftest.$ac_ext >&5
27507
27508 cat >conftest.$ac_ext <<_ACEOF
27509/* confdefs.h. */
27510_ACEOF
27511cat confdefs.h >>conftest.$ac_ext
27512cat >>conftest.$ac_ext <<_ACEOF
27513/* end confdefs.h. */
27514
27515#include <sys/types.h>
27516#include <termios.h>
27517
27518
27519int
27520main ()
27521{
27522static struct termios ac_aggr;
27523if (sizeof ac_aggr.c_line)
27524return 0;
27525 ;
27526 return 0;
27527}
27528_ACEOF
27529rm -f conftest.$ac_objext
27530if { (ac_try="$ac_compile"
27531case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27534esac
27535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27536$as_echo "$ac_try_echo") >&5
27537 (eval "$ac_compile") 2>conftest.er1
27538 ac_status=$?
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
27542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest.$ac_objext; then
27547 ac_cv_member_struct_termios_c_line=yes
27548else
27549 $as_echo "$as_me: failed program was:" >&5
27550sed 's/^/| /' conftest.$ac_ext >&5
27551
27552 ac_cv_member_struct_termios_c_line=no
27553fi
27554
27555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27556fi
27557
27558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27559fi
27560{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27561$as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27562if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
27563 cat >>confdefs.h <<\_ACEOF
27564#define TERMIOS_LDISC 1
27565_ACEOF
27566
27567fi
27568
27569
27570
27571{ $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27572$as_echo_n "checking for struct termio.c_line... " >&6; }
27573if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27574 $as_echo_n "(cached) " >&6
27575else
27576 cat >conftest.$ac_ext <<_ACEOF
27577/* confdefs.h. */
27578_ACEOF
27579cat confdefs.h >>conftest.$ac_ext
27580cat >>conftest.$ac_ext <<_ACEOF
27581/* end confdefs.h. */
27582
27583#include <sys/types.h>
27584#include <termio.h>
27585
27586
27587int
27588main ()
27589{
27590static struct termio ac_aggr;
27591if (ac_aggr.c_line)
27592return 0;
27593 ;
27594 return 0;
27595}
27596_ACEOF
27597rm -f conftest.$ac_objext
27598if { (ac_try="$ac_compile"
27599case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27602esac
27603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27604$as_echo "$ac_try_echo") >&5
27605 (eval "$ac_compile") 2>conftest.er1
27606 ac_status=$?
27607 grep -v '^ *+' conftest.er1 >conftest.err
27608 rm -f conftest.er1
27609 cat conftest.err >&5
27610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); } && {
27612 test -z "$ac_c_werror_flag" ||
27613 test ! -s conftest.err
27614 } && test -s conftest.$ac_objext; then
27615 ac_cv_member_struct_termio_c_line=yes
27616else
27617 $as_echo "$as_me: failed program was:" >&5
27618sed 's/^/| /' conftest.$ac_ext >&5
27619
27620 cat >conftest.$ac_ext <<_ACEOF
27621/* confdefs.h. */
27622_ACEOF
27623cat confdefs.h >>conftest.$ac_ext
27624cat >>conftest.$ac_ext <<_ACEOF
27625/* end confdefs.h. */
27626
27627#include <sys/types.h>
27628#include <termio.h>
27629
27630
27631int
27632main ()
27633{
27634static struct termio ac_aggr;
27635if (sizeof ac_aggr.c_line)
27636return 0;
27637 ;
27638 return 0;
27639}
27640_ACEOF
27641rm -f conftest.$ac_objext
27642if { (ac_try="$ac_compile"
27643case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27646esac
27647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27648$as_echo "$ac_try_echo") >&5
27649 (eval "$ac_compile") 2>conftest.er1
27650 ac_status=$?
27651 grep -v '^ *+' conftest.er1 >conftest.err
27652 rm -f conftest.er1
27653 cat conftest.err >&5
27654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); } && {
27656 test -z "$ac_c_werror_flag" ||
27657 test ! -s conftest.err
27658 } && test -s conftest.$ac_objext; then
27659 ac_cv_member_struct_termio_c_line=yes
27660else
27661 $as_echo "$as_me: failed program was:" >&5
27662sed 's/^/| /' conftest.$ac_ext >&5
27663
27664 ac_cv_member_struct_termio_c_line=no
27665fi
27666
27667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668fi
27669
27670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27671fi
27672{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27673$as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27674if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27675 cat >>confdefs.h <<\_ACEOF
27676#define TERMIO_LDISC 1
27677_ACEOF
27678
27679fi
27680
27681
27682
27683{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27684$as_echo_n "checking for struct dirent.d_ino... " >&6; }
27685if test "${bash_cv_dirent_has_dino+set}" = set; then
27686 $as_echo_n "(cached) " >&6
ccc6cda3 27687else
f73dda09 27688 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27689/* confdefs.h. */
27690_ACEOF
27691cat confdefs.h >>conftest.$ac_ext
27692cat >>conftest.$ac_ext <<_ACEOF
27693/* end confdefs.h. */
ccc6cda3
JA
27694
27695#include <stdio.h>
27696#include <sys/types.h>
27697#ifdef HAVE_UNISTD_H
27698# include <unistd.h>
27699#endif /* HAVE_UNISTD_H */
27700#if defined(HAVE_DIRENT_H)
27701# include <dirent.h>
27702#else
27703# define dirent direct
27704# ifdef HAVE_SYS_NDIR_H
27705# include <sys/ndir.h>
27706# endif /* SYSNDIR */
27707# ifdef HAVE_SYS_DIR_H
27708# include <sys/dir.h>
27709# endif /* SYSDIR */
27710# ifdef HAVE_NDIR_H
27711# include <ndir.h>
27712# endif
27713#endif /* HAVE_DIRENT_H */
27714
f73dda09
JA
27715int
27716main ()
27717{
ccc6cda3
JA
27718
27719struct dirent d; int z; z = d.d_ino;
27720
f73dda09
JA
27721 ;
27722 return 0;
27723}
27724_ACEOF
27725rm -f conftest.$ac_objext
3185942a
JA
27726if { (ac_try="$ac_compile"
27727case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27730esac
27731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27732$as_echo "$ac_try_echo") >&5
27733 (eval "$ac_compile") 2>conftest.er1
f73dda09 27734 ac_status=$?
0628567a
JA
27735 grep -v '^ *+' conftest.er1 >conftest.err
27736 rm -f conftest.er1
27737 cat conftest.err >&5
3185942a
JA
27738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); } && {
27740 test -z "$ac_c_werror_flag" ||
27741 test ! -s conftest.err
27742 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
27743 bash_cv_dirent_has_dino=yes
27744else
3185942a 27745 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27746sed 's/^/| /' conftest.$ac_ext >&5
27747
3185942a 27748 bash_cv_dirent_has_dino=no
ccc6cda3 27749fi
3185942a
JA
27750
27751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
27752fi
27753
3185942a
JA
27754{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27755$as_echo "$bash_cv_dirent_has_dino" >&6; }
ccc6cda3 27756if test $bash_cv_dirent_has_dino = yes; then
b80f6443
JA
27757cat >>confdefs.h <<\_ACEOF
27758#define HAVE_STRUCT_DIRENT_D_INO 1
27759_ACEOF
ccc6cda3
JA
27760
27761fi
27762
b80f6443 27763
3185942a
JA
27764{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27765$as_echo_n "checking for struct dirent.d_fileno... " >&6; }
f73dda09 27766if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
3185942a 27767 $as_echo_n "(cached) " >&6
d166f048 27768else
f73dda09 27769 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27770/* confdefs.h. */
27771_ACEOF
27772cat confdefs.h >>conftest.$ac_ext
27773cat >>conftest.$ac_ext <<_ACEOF
27774/* end confdefs.h. */
d166f048
JA
27775
27776#include <stdio.h>
27777#include <sys/types.h>
27778#ifdef HAVE_UNISTD_H
27779# include <unistd.h>
27780#endif /* HAVE_UNISTD_H */
27781#if defined(HAVE_DIRENT_H)
27782# include <dirent.h>
27783#else
27784# define dirent direct
27785# ifdef HAVE_SYS_NDIR_H
27786# include <sys/ndir.h>
27787# endif /* SYSNDIR */
27788# ifdef HAVE_SYS_DIR_H
27789# include <sys/dir.h>
27790# endif /* SYSDIR */
27791# ifdef HAVE_NDIR_H
27792# include <ndir.h>
27793# endif
27794#endif /* HAVE_DIRENT_H */
27795
f73dda09
JA
27796int
27797main ()
27798{
d166f048
JA
27799
27800struct dirent d; int z; z = d.d_fileno;
27801
f73dda09
JA
27802 ;
27803 return 0;
27804}
27805_ACEOF
27806rm -f conftest.$ac_objext
3185942a
JA
27807if { (ac_try="$ac_compile"
27808case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27811esac
27812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27813$as_echo "$ac_try_echo") >&5
27814 (eval "$ac_compile") 2>conftest.er1
f73dda09 27815 ac_status=$?
0628567a
JA
27816 grep -v '^ *+' conftest.er1 >conftest.err
27817 rm -f conftest.er1
27818 cat conftest.err >&5
3185942a
JA
27819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && {
27821 test -z "$ac_c_werror_flag" ||
27822 test ! -s conftest.err
27823 } && test -s conftest.$ac_objext; then
d166f048
JA
27824 bash_cv_dirent_has_d_fileno=yes
27825else
3185942a 27826 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27827sed 's/^/| /' conftest.$ac_ext >&5
27828
3185942a 27829 bash_cv_dirent_has_d_fileno=no
d166f048 27830fi
3185942a
JA
27831
27832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
27833fi
27834
3185942a
JA
27835{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27836$as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
d166f048 27837if test $bash_cv_dirent_has_d_fileno = yes; then
b80f6443
JA
27838cat >>confdefs.h <<\_ACEOF
27839#define HAVE_STRUCT_DIRENT_D_FILENO 1
27840_ACEOF
27841
27842fi
27843
27844
3185942a
JA
27845{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27846$as_echo_n "checking for struct dirent.d_namlen... " >&6; }
b80f6443 27847if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
3185942a 27848 $as_echo_n "(cached) " >&6
b80f6443
JA
27849else
27850 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27851/* confdefs.h. */
27852_ACEOF
27853cat confdefs.h >>conftest.$ac_ext
27854cat >>conftest.$ac_ext <<_ACEOF
27855/* end confdefs.h. */
b80f6443
JA
27856
27857#include <stdio.h>
27858#include <sys/types.h>
27859#ifdef HAVE_UNISTD_H
27860# include <unistd.h>
27861#endif /* HAVE_UNISTD_H */
27862#if defined(HAVE_DIRENT_H)
27863# include <dirent.h>
27864#else
27865# define dirent direct
27866# ifdef HAVE_SYS_NDIR_H
27867# include <sys/ndir.h>
27868# endif /* SYSNDIR */
27869# ifdef HAVE_SYS_DIR_H
27870# include <sys/dir.h>
27871# endif /* SYSDIR */
27872# ifdef HAVE_NDIR_H
27873# include <ndir.h>
27874# endif
27875#endif /* HAVE_DIRENT_H */
27876
27877int
27878main ()
27879{
27880
27881struct dirent d; int z; z = d.d_namlen;
27882
27883 ;
27884 return 0;
27885}
27886_ACEOF
27887rm -f conftest.$ac_objext
3185942a
JA
27888if { (ac_try="$ac_compile"
27889case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27892esac
27893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27894$as_echo "$ac_try_echo") >&5
27895 (eval "$ac_compile") 2>conftest.er1
b80f6443 27896 ac_status=$?
0628567a
JA
27897 grep -v '^ *+' conftest.er1 >conftest.err
27898 rm -f conftest.er1
27899 cat conftest.err >&5
3185942a
JA
27900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest.$ac_objext; then
b80f6443
JA
27905 bash_cv_dirent_has_d_namlen=yes
27906else
3185942a 27907 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
3185942a 27910 bash_cv_dirent_has_d_namlen=no
d166f048 27911fi
3185942a
JA
27912
27913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
27914fi
27915
3185942a
JA
27916{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27917$as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
b80f6443
JA
27918if test $bash_cv_dirent_has_d_namlen = yes; then
27919cat >>confdefs.h <<\_ACEOF
27920#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27921_ACEOF
d166f048 27922
b80f6443
JA
27923fi
27924
3185942a
JA
27925{ $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
27926$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
f73dda09 27927if test "${bash_cv_struct_winsize_header+set}" = set; then
3185942a 27928 $as_echo_n "(cached) " >&6
d166f048 27929else
f73dda09 27930 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27931/* confdefs.h. */
27932_ACEOF
27933cat confdefs.h >>conftest.$ac_ext
27934cat >>conftest.$ac_ext <<_ACEOF
27935/* end confdefs.h. */
d166f048
JA
27936#include <sys/types.h>
27937#include <sys/ioctl.h>
f73dda09
JA
27938int
27939main ()
27940{
d166f048 27941struct winsize x;
f73dda09
JA
27942 ;
27943 return 0;
27944}
27945_ACEOF
27946rm -f conftest.$ac_objext
3185942a
JA
27947if { (ac_try="$ac_compile"
27948case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27951esac
27952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27953$as_echo "$ac_try_echo") >&5
27954 (eval "$ac_compile") 2>conftest.er1
f73dda09 27955 ac_status=$?
0628567a
JA
27956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
3185942a
JA
27959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } && {
27961 test -z "$ac_c_werror_flag" ||
27962 test ! -s conftest.err
27963 } && test -s conftest.$ac_objext; then
cce855bc
JA
27964 bash_cv_struct_winsize_header=ioctl_h
27965else
3185942a 27966 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27967sed 's/^/| /' conftest.$ac_ext >&5
27968
3185942a 27969 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27970/* confdefs.h. */
27971_ACEOF
27972cat confdefs.h >>conftest.$ac_ext
27973cat >>conftest.$ac_ext <<_ACEOF
27974/* end confdefs.h. */
cce855bc
JA
27975#include <sys/types.h>
27976#include <termios.h>
f73dda09
JA
27977int
27978main ()
27979{
cce855bc 27980struct winsize x;
f73dda09
JA
27981 ;
27982 return 0;
27983}
27984_ACEOF
27985rm -f conftest.$ac_objext
3185942a
JA
27986if { (ac_try="$ac_compile"
27987case "(($ac_try" in
27988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27989 *) ac_try_echo=$ac_try;;
27990esac
27991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27992$as_echo "$ac_try_echo") >&5
27993 (eval "$ac_compile") 2>conftest.er1
f73dda09 27994 ac_status=$?
0628567a
JA
27995 grep -v '^ *+' conftest.er1 >conftest.err
27996 rm -f conftest.er1
27997 cat conftest.err >&5
3185942a
JA
27998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } && {
28000 test -z "$ac_c_werror_flag" ||
28001 test ! -s conftest.err
28002 } && test -s conftest.$ac_objext; then
cce855bc 28003 bash_cv_struct_winsize_header=termios_h
d166f048 28004else
3185942a 28005 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28006sed 's/^/| /' conftest.$ac_ext >&5
28007
3185942a 28008 bash_cv_struct_winsize_header=other
cce855bc 28009fi
3185942a
JA
28010
28011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 28012
d166f048 28013fi
3185942a
JA
28014
28015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
28016fi
28017
cce855bc 28018if test $bash_cv_struct_winsize_header = ioctl_h; then
3185942a
JA
28019 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28020$as_echo "sys/ioctl.h" >&6; }
b80f6443 28021 cat >>confdefs.h <<\_ACEOF
d166f048 28022#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
b80f6443 28023_ACEOF
d166f048 28024
cce855bc 28025elif test $bash_cv_struct_winsize_header = termios_h; then
3185942a
JA
28026 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
28027$as_echo "termios.h" >&6; }
b80f6443 28028 cat >>confdefs.h <<\_ACEOF
cce855bc 28029#define STRUCT_WINSIZE_IN_TERMIOS 1
b80f6443 28030_ACEOF
cce855bc
JA
28031
28032else
3185942a
JA
28033 { $as_echo "$as_me:$LINENO: result: not found" >&5
28034$as_echo "not found" >&6; }
d166f048
JA
28035fi
28036
3185942a
JA
28037{ $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28038$as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
f73dda09 28039if test "${bash_cv_struct_timeval+set}" = set; then
3185942a 28040 $as_echo_n "(cached) " >&6
bb70624e 28041else
f73dda09
JA
28042
28043cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
bb70624e 28049#include <sys/time.h>
f73dda09
JA
28050
28051_ACEOF
bb70624e 28052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28053 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
28054 bash_cv_struct_timeval=yes
28055else
f73dda09 28056 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28057/* confdefs.h. */
28058_ACEOF
28059cat confdefs.h >>conftest.$ac_ext
28060cat >>conftest.$ac_ext <<_ACEOF
28061/* end confdefs.h. */
bb70624e 28062#include <time.h>
f73dda09
JA
28063
28064_ACEOF
bb70624e 28065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28066 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
28067 bash_cv_struct_timeval=yes
28068else
bb70624e
JA
28069 bash_cv_struct_timeval=no
28070fi
28071rm -f conftest*
28072
28073fi
28074rm -f conftest*
28075
b80f6443 28076
bb70624e
JA
28077fi
28078
3185942a
JA
28079{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28080$as_echo "$bash_cv_struct_timeval" >&6; }
bb70624e 28081if test $bash_cv_struct_timeval = yes; then
b80f6443 28082 cat >>confdefs.h <<\_ACEOF
bb70624e 28083#define HAVE_TIMEVAL 1
b80f6443 28084_ACEOF
bb70624e
JA
28085
28086fi
28087
3185942a
JA
28088{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28089$as_echo_n "checking for struct stat.st_blocks... " >&6; }
f73dda09 28090if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
3185942a 28091 $as_echo_n "(cached) " >&6
f73dda09
JA
28092else
28093 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28094/* confdefs.h. */
28095_ACEOF
28096cat confdefs.h >>conftest.$ac_ext
28097cat >>conftest.$ac_ext <<_ACEOF
28098/* end confdefs.h. */
f73dda09
JA
28099$ac_includes_default
28100int
28101main ()
28102{
28103static struct stat ac_aggr;
28104if (ac_aggr.st_blocks)
28105return 0;
28106 ;
28107 return 0;
28108}
28109_ACEOF
28110rm -f conftest.$ac_objext
3185942a
JA
28111if { (ac_try="$ac_compile"
28112case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28115esac
28116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28117$as_echo "$ac_try_echo") >&5
28118 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
28119 ac_status=$?
28120 grep -v '^ *+' conftest.er1 >conftest.err
28121 rm -f conftest.er1
28122 cat conftest.err >&5
3185942a
JA
28123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } && {
28125 test -z "$ac_c_werror_flag" ||
28126 test ! -s conftest.err
28127 } && test -s conftest.$ac_objext; then
0628567a
JA
28128 ac_cv_member_struct_stat_st_blocks=yes
28129else
3185942a 28130 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28131sed 's/^/| /' conftest.$ac_ext >&5
28132
3185942a 28133 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28134/* confdefs.h. */
28135_ACEOF
28136cat confdefs.h >>conftest.$ac_ext
28137cat >>conftest.$ac_ext <<_ACEOF
28138/* end confdefs.h. */
28139$ac_includes_default
28140int
28141main ()
28142{
28143static struct stat ac_aggr;
28144if (sizeof ac_aggr.st_blocks)
28145return 0;
28146 ;
28147 return 0;
28148}
28149_ACEOF
28150rm -f conftest.$ac_objext
3185942a
JA
28151if { (ac_try="$ac_compile"
28152case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28155esac
28156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28157$as_echo "$ac_try_echo") >&5
28158 (eval "$ac_compile") 2>conftest.er1
b80f6443 28159 ac_status=$?
0628567a
JA
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
3185942a
JA
28163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } && {
28165 test -z "$ac_c_werror_flag" ||
28166 test ! -s conftest.err
28167 } && test -s conftest.$ac_objext; then
b80f6443
JA
28168 ac_cv_member_struct_stat_st_blocks=yes
28169else
3185942a 28170 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28171sed 's/^/| /' conftest.$ac_ext >&5
28172
3185942a 28173 ac_cv_member_struct_stat_st_blocks=no
f73dda09 28174fi
3185942a
JA
28175
28176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 28177fi
3185942a
JA
28178
28179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 28180fi
3185942a
JA
28181{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28182$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28183if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
f73dda09 28184
b80f6443 28185cat >>confdefs.h <<_ACEOF
f73dda09 28186#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b80f6443
JA
28187_ACEOF
28188
f73dda09
JA
28189
28190fi
d166f048 28191
3185942a
JA
28192{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28193$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7117c2d2 28194if test "${ac_cv_struct_tm+set}" = set; then
3185942a 28195 $as_echo_n "(cached) " >&6
7117c2d2
JA
28196else
28197 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28198/* confdefs.h. */
28199_ACEOF
28200cat confdefs.h >>conftest.$ac_ext
28201cat >>conftest.$ac_ext <<_ACEOF
28202/* end confdefs.h. */
7117c2d2
JA
28203#include <sys/types.h>
28204#include <time.h>
28205
28206int
28207main ()
28208{
3185942a
JA
28209struct tm tm;
28210 int *p = &tm.tm_sec;
28211 return !p;
7117c2d2
JA
28212 ;
28213 return 0;
28214}
28215_ACEOF
28216rm -f conftest.$ac_objext
3185942a
JA
28217if { (ac_try="$ac_compile"
28218case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28221esac
28222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28223$as_echo "$ac_try_echo") >&5
28224 (eval "$ac_compile") 2>conftest.er1
7117c2d2 28225 ac_status=$?
0628567a
JA
28226 grep -v '^ *+' conftest.er1 >conftest.err
28227 rm -f conftest.er1
28228 cat conftest.err >&5
3185942a
JA
28229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } && {
28231 test -z "$ac_c_werror_flag" ||
28232 test ! -s conftest.err
28233 } && test -s conftest.$ac_objext; then
7117c2d2
JA
28234 ac_cv_struct_tm=time.h
28235else
3185942a 28236 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28237sed 's/^/| /' conftest.$ac_ext >&5
28238
3185942a 28239 ac_cv_struct_tm=sys/time.h
7117c2d2 28240fi
3185942a
JA
28241
28242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 28243fi
3185942a
JA
28244{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28245$as_echo "$ac_cv_struct_tm" >&6; }
7117c2d2
JA
28246if test $ac_cv_struct_tm = sys/time.h; then
28247
b80f6443 28248cat >>confdefs.h <<\_ACEOF
7117c2d2 28249#define TM_IN_SYS_TIME 1
b80f6443 28250_ACEOF
7117c2d2
JA
28251
28252fi
28253
3185942a
JA
28254{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28255$as_echo_n "checking for struct tm.tm_zone... " >&6; }
7117c2d2 28256if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3185942a 28257 $as_echo_n "(cached) " >&6
7117c2d2 28258else
b80f6443 28259 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28260/* confdefs.h. */
28261_ACEOF
28262cat confdefs.h >>conftest.$ac_ext
28263cat >>conftest.$ac_ext <<_ACEOF
28264/* end confdefs.h. */
b80f6443
JA
28265#include <sys/types.h>
28266#include <$ac_cv_struct_tm>
28267
28268
28269int
28270main ()
28271{
28272static struct tm ac_aggr;
28273if (ac_aggr.tm_zone)
28274return 0;
28275 ;
28276 return 0;
28277}
28278_ACEOF
28279rm -f conftest.$ac_objext
3185942a
JA
28280if { (ac_try="$ac_compile"
28281case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28284esac
28285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28286$as_echo "$ac_try_echo") >&5
28287 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
28288 ac_status=$?
28289 grep -v '^ *+' conftest.er1 >conftest.err
28290 rm -f conftest.er1
28291 cat conftest.err >&5
3185942a
JA
28292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } && {
28294 test -z "$ac_c_werror_flag" ||
28295 test ! -s conftest.err
28296 } && test -s conftest.$ac_objext; then
0628567a
JA
28297 ac_cv_member_struct_tm_tm_zone=yes
28298else
3185942a 28299 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28300sed 's/^/| /' conftest.$ac_ext >&5
28301
3185942a 28302 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28303/* confdefs.h. */
28304_ACEOF
28305cat confdefs.h >>conftest.$ac_ext
28306cat >>conftest.$ac_ext <<_ACEOF
28307/* end confdefs.h. */
28308#include <sys/types.h>
28309#include <$ac_cv_struct_tm>
28310
28311
28312int
28313main ()
28314{
28315static struct tm ac_aggr;
28316if (sizeof ac_aggr.tm_zone)
28317return 0;
28318 ;
28319 return 0;
28320}
28321_ACEOF
28322rm -f conftest.$ac_objext
3185942a
JA
28323if { (ac_try="$ac_compile"
28324case "(($ac_try" in
28325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326 *) ac_try_echo=$ac_try;;
28327esac
28328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28329$as_echo "$ac_try_echo") >&5
28330 (eval "$ac_compile") 2>conftest.er1
b80f6443 28331 ac_status=$?
0628567a
JA
28332 grep -v '^ *+' conftest.er1 >conftest.err
28333 rm -f conftest.er1
28334 cat conftest.err >&5
3185942a
JA
28335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } && {
28337 test -z "$ac_c_werror_flag" ||
28338 test ! -s conftest.err
28339 } && test -s conftest.$ac_objext; then
b80f6443
JA
28340 ac_cv_member_struct_tm_tm_zone=yes
28341else
3185942a 28342 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28343sed 's/^/| /' conftest.$ac_ext >&5
28344
3185942a 28345 ac_cv_member_struct_tm_tm_zone=no
7117c2d2 28346fi
3185942a
JA
28347
28348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 28349fi
3185942a
JA
28350
28351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 28352fi
3185942a
JA
28353{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28354$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28355if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7117c2d2 28356
b80f6443 28357cat >>confdefs.h <<_ACEOF
7117c2d2 28358#define HAVE_STRUCT_TM_TM_ZONE 1
b80f6443
JA
28359_ACEOF
28360
7117c2d2
JA
28361
28362fi
28363
28364if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28365
b80f6443 28366cat >>confdefs.h <<\_ACEOF
7117c2d2 28367#define HAVE_TM_ZONE 1
b80f6443 28368_ACEOF
7117c2d2
JA
28369
28370else
3185942a
JA
28371 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28372$as_echo_n "checking whether tzname is declared... " >&6; }
28373if test "${ac_cv_have_decl_tzname+set}" = set; then
28374 $as_echo_n "(cached) " >&6
28375else
28376 cat >conftest.$ac_ext <<_ACEOF
28377/* confdefs.h. */
28378_ACEOF
28379cat confdefs.h >>conftest.$ac_ext
28380cat >>conftest.$ac_ext <<_ACEOF
28381/* end confdefs.h. */
28382#include <time.h>
28383
28384int
28385main ()
28386{
28387#ifndef tzname
28388 (void) tzname;
28389#endif
28390
28391 ;
28392 return 0;
28393}
28394_ACEOF
28395rm -f conftest.$ac_objext
28396if { (ac_try="$ac_compile"
28397case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28400esac
28401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28402$as_echo "$ac_try_echo") >&5
28403 (eval "$ac_compile") 2>conftest.er1
28404 ac_status=$?
28405 grep -v '^ *+' conftest.er1 >conftest.err
28406 rm -f conftest.er1
28407 cat conftest.err >&5
28408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } && {
28410 test -z "$ac_c_werror_flag" ||
28411 test ! -s conftest.err
28412 } && test -s conftest.$ac_objext; then
28413 ac_cv_have_decl_tzname=yes
28414else
28415 $as_echo "$as_me: failed program was:" >&5
28416sed 's/^/| /' conftest.$ac_ext >&5
28417
28418 ac_cv_have_decl_tzname=no
28419fi
28420
28421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28422fi
28423{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
28424$as_echo "$ac_cv_have_decl_tzname" >&6; }
28425if test "x$ac_cv_have_decl_tzname" = x""yes; then
28426
28427cat >>confdefs.h <<_ACEOF
28428#define HAVE_DECL_TZNAME 1
28429_ACEOF
28430
28431
28432else
28433 cat >>confdefs.h <<_ACEOF
28434#define HAVE_DECL_TZNAME 0
28435_ACEOF
28436
28437
28438fi
28439
28440
28441 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
28442$as_echo_n "checking for tzname... " >&6; }
7117c2d2 28443if test "${ac_cv_var_tzname+set}" = set; then
3185942a 28444 $as_echo_n "(cached) " >&6
7117c2d2
JA
28445else
28446 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28447/* confdefs.h. */
28448_ACEOF
28449cat confdefs.h >>conftest.$ac_ext
28450cat >>conftest.$ac_ext <<_ACEOF
28451/* end confdefs.h. */
7117c2d2 28452#include <time.h>
3185942a
JA
28453#if !HAVE_DECL_TZNAME
28454extern char *tzname[];
7117c2d2
JA
28455#endif
28456
28457int
28458main ()
28459{
3185942a 28460return tzname[0][0];
7117c2d2
JA
28461 ;
28462 return 0;
28463}
28464_ACEOF
28465rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
28466if { (ac_try="$ac_link"
28467case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470esac
28471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28472$as_echo "$ac_try_echo") >&5
28473 (eval "$ac_link") 2>conftest.er1
7117c2d2 28474 ac_status=$?
0628567a
JA
28475 grep -v '^ *+' conftest.er1 >conftest.err
28476 rm -f conftest.er1
28477 cat conftest.err >&5
3185942a
JA
28478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } && {
28480 test -z "$ac_c_werror_flag" ||
28481 test ! -s conftest.err
28482 } && test -s conftest$ac_exeext && {
28483 test "$cross_compiling" = yes ||
28484 $as_test_x conftest$ac_exeext
28485 }; then
7117c2d2
JA
28486 ac_cv_var_tzname=yes
28487else
3185942a 28488 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28489sed 's/^/| /' conftest.$ac_ext >&5
28490
3185942a 28491 ac_cv_var_tzname=no
7117c2d2 28492fi
3185942a
JA
28493
28494rm -rf conftest.dSYM
28495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 28496 conftest$ac_exeext conftest.$ac_ext
7117c2d2 28497fi
3185942a
JA
28498{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
28499$as_echo "$ac_cv_var_tzname" >&6; }
7117c2d2
JA
28500 if test $ac_cv_var_tzname = yes; then
28501
b80f6443 28502cat >>confdefs.h <<\_ACEOF
7117c2d2 28503#define HAVE_TZNAME 1
b80f6443 28504_ACEOF
7117c2d2
JA
28505
28506 fi
28507fi
28508
3185942a
JA
28509{ $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
28510$as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
b80f6443 28511if test "${bash_cv_struct_timezone+set}" = set; then
3185942a 28512 $as_echo_n "(cached) " >&6
b80f6443
JA
28513else
28514
28515cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28516/* confdefs.h. */
28517_ACEOF
28518cat confdefs.h >>conftest.$ac_ext
28519cat >>conftest.$ac_ext <<_ACEOF
28520/* end confdefs.h. */
b80f6443
JA
28521#include <sys/time.h>
28522
28523_ACEOF
28524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28525 $EGREP "struct timezone" >/dev/null 2>&1; then
b80f6443
JA
28526 bash_cv_struct_timezone=yes
28527else
28528 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28529/* confdefs.h. */
28530_ACEOF
28531cat confdefs.h >>conftest.$ac_ext
28532cat >>conftest.$ac_ext <<_ACEOF
28533/* end confdefs.h. */
b80f6443
JA
28534#include <time.h>
28535
28536_ACEOF
28537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28538 $EGREP "struct timezone" >/dev/null 2>&1; then
b80f6443
JA
28539 bash_cv_struct_timezone=yes
28540else
28541 bash_cv_struct_timezone=no
28542fi
28543rm -f conftest*
28544
28545fi
28546rm -f conftest*
28547
28548
28549fi
28550
3185942a
JA
28551{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
28552$as_echo "$bash_cv_struct_timezone" >&6; }
b80f6443
JA
28553if test $bash_cv_struct_timezone = yes; then
28554 cat >>confdefs.h <<\_ACEOF
28555#define HAVE_STRUCT_TIMEZONE 1
28556_ACEOF
28557
28558fi
28559
28560
495aee44
CR
28561{ $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
28562$as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
28563if test "${bash_cv_wexitstatus_offset+set}" = set; then
28564 $as_echo_n "(cached) " >&6
28565else
28566 if test "$cross_compiling" = yes; then
28567 { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
28568$as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
28569 bash_cv_wexitstatus_offset=0
28570
28571else
28572 cat >conftest.$ac_ext <<_ACEOF
28573
28574#include <stdlib.h>
28575#include <unistd.h>
28576
28577#include <sys/wait.h>
28578
28579main(c, v)
28580 int c;
28581 char **v;
28582{
28583 pid_t pid, p;
28584 int s, i, n;
28585
28586 s = 0;
28587 pid = fork();
28588 if (pid == 0)
28589 exit (42);
28590
28591 /* wait for the process */
28592 p = wait(&s);
28593 if (p != pid)
28594 exit (255);
28595
28596 /* crack s */
28597 for (i = 0; i < (sizeof(s) - 8); i++)
28598 {
28599 n = (s >> i) & 0xff;
28600 if (n == 42)
28601 exit (i);
28602 }
28603
28604 exit (254);
28605}
28606
28607_ACEOF
28608rm -f conftest$ac_exeext
28609if { (ac_try="$ac_link"
28610case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28615$as_echo "$ac_try_echo") >&5
28616 (eval "$ac_link") 2>&5
28617 ac_status=$?
28618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623esac
28624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28625$as_echo "$ac_try_echo") >&5
28626 (eval "$ac_try") 2>&5
28627 ac_status=$?
28628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 bash_cv_wexitstatus_offset=0
28631else
28632 $as_echo "$as_me: program exited with status $ac_status" >&5
28633$as_echo "$as_me: failed program was:" >&5
28634sed 's/^/| /' conftest.$ac_ext >&5
28635
28636( exit $ac_status )
28637bash_cv_wexitstatus_offset=$?
28638fi
28639rm -rf conftest.dSYM
28640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28641fi
28642
28643
28644fi
28645
28646if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
28647 { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
28648$as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
28649 bash_cv_wexitstatus_offset=0
28650fi
28651{ $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
28652$as_echo "$bash_cv_wexitstatus_offset" >&6; }
28653
28654cat >>confdefs.h <<_ACEOF
28655#define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28656_ACEOF
28657
28658
28659
3185942a
JA
28660{ $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
28661$as_echo_n "checking for the existence of strsignal... " >&6; }
f73dda09 28662if test "${bash_cv_have_strsignal+set}" = set; then
3185942a 28663 $as_echo_n "(cached) " >&6
ccc6cda3 28664else
f73dda09 28665 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28666/* confdefs.h. */
28667_ACEOF
28668cat confdefs.h >>conftest.$ac_ext
28669cat >>conftest.$ac_ext <<_ACEOF
28670/* end confdefs.h. */
ccc6cda3
JA
28671#include <sys/types.h>
28672#include <signal.h>
f73dda09
JA
28673int
28674main ()
28675{
ccc6cda3 28676char *s = (char *)strsignal(2);
f73dda09
JA
28677 ;
28678 return 0;
28679}
28680_ACEOF
28681rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
28682if { (ac_try="$ac_link"
28683case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28686esac
28687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28688$as_echo "$ac_try_echo") >&5
28689 (eval "$ac_link") 2>conftest.er1
f73dda09 28690 ac_status=$?
0628567a
JA
28691 grep -v '^ *+' conftest.er1 >conftest.err
28692 rm -f conftest.er1
28693 cat conftest.err >&5
3185942a
JA
28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } && {
28696 test -z "$ac_c_werror_flag" ||
28697 test ! -s conftest.err
28698 } && test -s conftest$ac_exeext && {
28699 test "$cross_compiling" = yes ||
28700 $as_test_x conftest$ac_exeext
28701 }; then
ccc6cda3
JA
28702 bash_cv_have_strsignal=yes
28703else
3185942a 28704 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28705sed 's/^/| /' conftest.$ac_ext >&5
28706
3185942a 28707 bash_cv_have_strsignal=no
ccc6cda3 28708fi
3185942a
JA
28709
28710rm -rf conftest.dSYM
28711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 28712 conftest$ac_exeext conftest.$ac_ext
ccc6cda3
JA
28713fi
28714
3185942a
JA
28715{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28716$as_echo "$bash_cv_have_strsignal" >&6; }
ccc6cda3 28717if test $bash_cv_have_strsignal = yes; then
b80f6443 28718cat >>confdefs.h <<\_ACEOF
ccc6cda3 28719#define HAVE_STRSIGNAL 1
b80f6443 28720_ACEOF
ccc6cda3
JA
28721
28722fi
28723
3185942a
JA
28724{ $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28725$as_echo_n "checking if opendir() opens non-directories... " >&6; }
f73dda09 28726if test "${bash_cv_opendir_not_robust+set}" = set; then
3185942a 28727 $as_echo_n "(cached) " >&6
ccc6cda3
JA
28728else
28729 if test "$cross_compiling" = yes; then
3185942a
JA
28730 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28731$as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
28732 bash_cv_opendir_not_robust=no
28733
ccc6cda3 28734else
f73dda09 28735 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28736/* confdefs.h. */
28737_ACEOF
28738cat confdefs.h >>conftest.$ac_ext
28739cat >>conftest.$ac_ext <<_ACEOF
28740/* end confdefs.h. */
ccc6cda3
JA
28741
28742#include <stdio.h>
28743#include <sys/types.h>
28744#include <fcntl.h>
28745#ifdef HAVE_UNISTD_H
28746# include <unistd.h>
28747#endif /* HAVE_UNISTD_H */
28748#if defined(HAVE_DIRENT_H)
28749# include <dirent.h>
28750#else
28751# define dirent direct
28752# ifdef HAVE_SYS_NDIR_H
28753# include <sys/ndir.h>
28754# endif /* SYSNDIR */
28755# ifdef HAVE_SYS_DIR_H
28756# include <sys/dir.h>
28757# endif /* SYSDIR */
28758# ifdef HAVE_NDIR_H
28759# include <ndir.h>
28760# endif
28761#endif /* HAVE_DIRENT_H */
28762main()
28763{
28764DIR *dir;
bb70624e 28765int fd, err;
3185942a 28766err = mkdir("bash-aclocal", 0700);
bb70624e
JA
28767if (err < 0) {
28768 perror("mkdir");
28769 exit(1);
28770}
3185942a
JA
28771unlink("bash-aclocal/not_a_directory");
28772fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
ccc6cda3
JA
28773write(fd, "\n", 1);
28774close(fd);
3185942a
JA
28775dir = opendir("bash-aclocal/not_a_directory");
28776unlink("bash-aclocal/not_a_directory");
28777rmdir("bash-aclocal");
ccc6cda3
JA
28778exit (dir == 0);
28779}
f73dda09
JA
28780_ACEOF
28781rm -f conftest$ac_exeext
3185942a
JA
28782if { (ac_try="$ac_link"
28783case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28786esac
28787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28788$as_echo "$ac_try_echo") >&5
28789 (eval "$ac_link") 2>&5
f73dda09 28790 ac_status=$?
3185942a 28791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28793 { (case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28796esac
28797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28798$as_echo "$ac_try_echo") >&5
28799 (eval "$ac_try") 2>&5
f73dda09 28800 ac_status=$?
3185942a 28801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28802 (exit $ac_status); }; }; then
ccc6cda3
JA
28803 bash_cv_opendir_not_robust=yes
28804else
3185942a
JA
28805 $as_echo "$as_me: program exited with status $ac_status" >&5
28806$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
b80f6443 28809( exit $ac_status )
f73dda09 28810bash_cv_opendir_not_robust=no
ccc6cda3 28811fi
3185942a
JA
28812rm -rf conftest.dSYM
28813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 28814fi
3185942a
JA
28815
28816
ccc6cda3
JA
28817fi
28818
3185942a
JA
28819{ $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28820$as_echo "$bash_cv_opendir_not_robust" >&6; }
ccc6cda3 28821if test $bash_cv_opendir_not_robust = yes; then
b80f6443 28822cat >>confdefs.h <<\_ACEOF
ccc6cda3 28823#define OPENDIR_NOT_ROBUST 1
b80f6443 28824_ACEOF
ccc6cda3
JA
28825
28826fi
28827
3185942a
JA
28828{ $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28829$as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
f73dda09 28830if test "${bash_cv_ulimit_maxfds+set}" = set; then
3185942a 28831 $as_echo_n "(cached) " >&6
ccc6cda3
JA
28832else
28833 if test "$cross_compiling" = yes; then
3185942a
JA
28834 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28835$as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
28836 bash_cv_ulimit_maxfds=no
28837
ccc6cda3 28838else
f73dda09 28839 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28840/* confdefs.h. */
28841_ACEOF
28842cat confdefs.h >>conftest.$ac_ext
28843cat >>conftest.$ac_ext <<_ACEOF
28844/* end confdefs.h. */
ccc6cda3
JA
28845
28846main()
28847{
28848long maxfds = ulimit(4, 0L);
28849exit (maxfds == -1L);
28850}
28851
f73dda09
JA
28852_ACEOF
28853rm -f conftest$ac_exeext
3185942a
JA
28854if { (ac_try="$ac_link"
28855case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28858esac
28859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28860$as_echo "$ac_try_echo") >&5
28861 (eval "$ac_link") 2>&5
f73dda09 28862 ac_status=$?
3185942a 28863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28865 { (case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28868esac
28869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28870$as_echo "$ac_try_echo") >&5
28871 (eval "$ac_try") 2>&5
f73dda09 28872 ac_status=$?
3185942a 28873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28874 (exit $ac_status); }; }; then
ccc6cda3
JA
28875 bash_cv_ulimit_maxfds=yes
28876else
3185942a
JA
28877 $as_echo "$as_me: program exited with status $ac_status" >&5
28878$as_echo "$as_me: failed program was:" >&5
28879sed 's/^/| /' conftest.$ac_ext >&5
28880
28881( exit $ac_status )
28882bash_cv_ulimit_maxfds=no
28883fi
28884rm -rf conftest.dSYM
28885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28886fi
28887
28888
28889fi
28890
28891{ $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28892$as_echo "$bash_cv_ulimit_maxfds" >&6; }
28893if test $bash_cv_ulimit_maxfds = yes; then
28894cat >>confdefs.h <<\_ACEOF
28895#define ULIMIT_MAXFDS 1
28896_ACEOF
28897
28898fi
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28918$as_echo_n "checking whether fpurge is declared... " >&6; }
28919if test "${ac_cv_have_decl_fpurge+set}" = set; then
28920 $as_echo_n "(cached) " >&6
28921else
28922 cat >conftest.$ac_ext <<_ACEOF
28923/* confdefs.h. */
28924_ACEOF
28925cat confdefs.h >>conftest.$ac_ext
28926cat >>conftest.$ac_ext <<_ACEOF
28927/* end confdefs.h. */
28928#include <stdio.h>
28929
28930int
28931main ()
28932{
28933#ifndef fpurge
28934 (void) fpurge;
28935#endif
28936
28937 ;
28938 return 0;
28939}
28940_ACEOF
28941rm -f conftest.$ac_objext
28942if { (ac_try="$ac_compile"
28943case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28946esac
28947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28948$as_echo "$ac_try_echo") >&5
28949 (eval "$ac_compile") 2>conftest.er1
28950 ac_status=$?
28951 grep -v '^ *+' conftest.er1 >conftest.err
28952 rm -f conftest.er1
28953 cat conftest.err >&5
28954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); } && {
28956 test -z "$ac_c_werror_flag" ||
28957 test ! -s conftest.err
28958 } && test -s conftest.$ac_objext; then
28959 ac_cv_have_decl_fpurge=yes
28960else
28961 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28962sed 's/^/| /' conftest.$ac_ext >&5
28963
3185942a 28964 ac_cv_have_decl_fpurge=no
ccc6cda3 28965fi
3185942a
JA
28966
28967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 28968fi
3185942a
JA
28969{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28970$as_echo "$ac_cv_have_decl_fpurge" >&6; }
28971if test "x$ac_cv_have_decl_fpurge" = x""yes; then
ccc6cda3 28972
3185942a
JA
28973cat >>confdefs.h <<_ACEOF
28974#define HAVE_DECL_FPURGE 1
28975_ACEOF
28976
28977
28978else
28979 cat >>confdefs.h <<_ACEOF
28980#define HAVE_DECL_FPURGE 0
b80f6443 28981_ACEOF
ccc6cda3 28982
3185942a 28983
ccc6cda3
JA
28984fi
28985
3185942a
JA
28986
28987
28988{ $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
28989$as_echo_n "checking to see if getenv can be redefined... " >&6; }
f73dda09 28990if test "${bash_cv_getenv_redef+set}" = set; then
3185942a 28991 $as_echo_n "(cached) " >&6
ccc6cda3
JA
28992else
28993 if test "$cross_compiling" = yes; then
3185942a
JA
28994 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
28995$as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
cce855bc
JA
28996 bash_cv_getenv_redef=yes
28997
ccc6cda3 28998else
f73dda09 28999 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29000/* confdefs.h. */
29001_ACEOF
29002cat confdefs.h >>conftest.$ac_ext
29003cat >>conftest.$ac_ext <<_ACEOF
29004/* end confdefs.h. */
ccc6cda3
JA
29005
29006#ifdef HAVE_UNISTD_H
29007# include <unistd.h>
29008#endif
29009#ifndef __STDC__
29010# ifndef const
29011# define const
29012# endif
29013#endif
29014char *
29015getenv (name)
29016#if defined (__linux__) || defined (__bsdi__) || defined (convex)
29017 const char *name;
29018#else
29019 char const *name;
29020#endif /* !__linux__ && !__bsdi__ && !convex */
29021{
29022return "42";
29023}
29024main()
29025{
29026char *s;
29027/* The next allows this program to run, but does not allow bash to link
29028 when it redefines getenv. I'm not really interested in figuring out
29029 why not. */
29030#if defined (NeXT)
29031exit(1);
29032#endif
29033s = getenv("ABCDE");
29034exit(s == 0); /* force optimizer to leave getenv in */
29035}
29036
f73dda09
JA
29037_ACEOF
29038rm -f conftest$ac_exeext
3185942a
JA
29039if { (ac_try="$ac_link"
29040case "(($ac_try" in
29041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29043esac
29044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29045$as_echo "$ac_try_echo") >&5
29046 (eval "$ac_link") 2>&5
f73dda09 29047 ac_status=$?
3185942a 29048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
29050 { (case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055$as_echo "$ac_try_echo") >&5
29056 (eval "$ac_try") 2>&5
f73dda09 29057 ac_status=$?
3185942a 29058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29059 (exit $ac_status); }; }; then
ccc6cda3
JA
29060 bash_cv_getenv_redef=yes
29061else
3185942a
JA
29062 $as_echo "$as_me: program exited with status $ac_status" >&5
29063$as_echo "$as_me: failed program was:" >&5
0628567a
JA
29064sed 's/^/| /' conftest.$ac_ext >&5
29065
b80f6443 29066( exit $ac_status )
f73dda09 29067bash_cv_getenv_redef=no
ccc6cda3 29068fi
3185942a
JA
29069rm -rf conftest.dSYM
29070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29071fi
3185942a
JA
29072
29073
ccc6cda3
JA
29074fi
29075
3185942a
JA
29076{ $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29077$as_echo "$bash_cv_getenv_redef" >&6; }
ccc6cda3 29078if test $bash_cv_getenv_redef = yes; then
b80f6443 29079cat >>confdefs.h <<\_ACEOF
ccc6cda3 29080#define CAN_REDEFINE_GETENV 1
b80f6443 29081_ACEOF
ccc6cda3
JA
29082
29083fi
29084
7117c2d2 29085if test "$ac_cv_func_getcwd" = "yes"; then
3185942a
JA
29086{ $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29087$as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
b80f6443 29088if test "${bash_cv_getcwd_malloc+set}" = set; then
3185942a 29089 $as_echo_n "(cached) " >&6
ccc6cda3
JA
29090else
29091 if test "$cross_compiling" = yes; then
3185942a
JA
29092 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29093$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
b80f6443 29094 bash_cv_getcwd_malloc=no
cce855bc 29095
ccc6cda3 29096else
f73dda09 29097 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29098/* confdefs.h. */
29099_ACEOF
29100cat confdefs.h >>conftest.$ac_ext
29101cat >>conftest.$ac_ext <<_ACEOF
29102/* end confdefs.h. */
ccc6cda3
JA
29103
29104#include <stdio.h>
29105#ifdef HAVE_UNISTD_H
29106#include <unistd.h>
29107#endif
29108
ccc6cda3
JA
29109main()
29110{
b80f6443
JA
29111 char *xpwd;
29112 xpwd = getcwd(0, 0);
29113 exit (xpwd == 0);
ccc6cda3
JA
29114}
29115
f73dda09
JA
29116_ACEOF
29117rm -f conftest$ac_exeext
3185942a
JA
29118if { (ac_try="$ac_link"
29119case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29122esac
29123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29124$as_echo "$ac_try_echo") >&5
29125 (eval "$ac_link") 2>&5
f73dda09 29126 ac_status=$?
3185942a 29127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
29129 { (case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29132esac
29133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29134$as_echo "$ac_try_echo") >&5
29135 (eval "$ac_try") 2>&5
f73dda09 29136 ac_status=$?
3185942a 29137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29138 (exit $ac_status); }; }; then
b80f6443 29139 bash_cv_getcwd_malloc=yes
ccc6cda3 29140else
3185942a
JA
29141 $as_echo "$as_me: program exited with status $ac_status" >&5
29142$as_echo "$as_me: failed program was:" >&5
0628567a
JA
29143sed 's/^/| /' conftest.$ac_ext >&5
29144
b80f6443
JA
29145( exit $ac_status )
29146bash_cv_getcwd_malloc=no
ccc6cda3 29147fi
3185942a
JA
29148rm -rf conftest.dSYM
29149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29150fi
3185942a
JA
29151
29152
ccc6cda3
JA
29153fi
29154
3185942a
JA
29155{ $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29156$as_echo "$bash_cv_getcwd_malloc" >&6; }
b80f6443
JA
29157if test $bash_cv_getcwd_malloc = no; then
29158cat >>confdefs.h <<\_ACEOF
ccc6cda3 29159#define GETCWD_BROKEN 1
b80f6443 29160_ACEOF
ccc6cda3 29161
3185942a 29162case " $LIBOBJS " in
0628567a 29163 *" getcwd.$ac_objext "* ) ;;
3185942a
JA
29164 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
29165 ;;
0628567a
JA
29166esac
29167
ccc6cda3
JA
29168fi
29169
ccc6cda3
JA
29170fi
29171
3185942a
JA
29172{ $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29173$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
f73dda09 29174if test "${bash_cv_func_sigsetjmp+set}" = set; then
3185942a 29175 $as_echo_n "(cached) " >&6
ccc6cda3
JA
29176else
29177 if test "$cross_compiling" = yes; then
3185942a
JA
29178 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29179$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
29180 bash_cv_func_sigsetjmp=missing
29181
ccc6cda3 29182else
f73dda09 29183 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29184/* confdefs.h. */
29185_ACEOF
29186cat confdefs.h >>conftest.$ac_ext
29187cat >>conftest.$ac_ext <<_ACEOF
29188/* end confdefs.h. */
ccc6cda3
JA
29189
29190#ifdef HAVE_UNISTD_H
29191#include <unistd.h>
29192#endif
29193#include <sys/types.h>
29194#include <signal.h>
29195#include <setjmp.h>
29196
29197main()
29198{
29199#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29200exit (1);
29201#else
29202
29203int code;
29204sigset_t set, oset;
29205sigjmp_buf xx;
29206
29207/* get the mask */
29208sigemptyset(&set);
29209sigemptyset(&oset);
29210sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29211sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29212
29213/* save it */
29214code = sigsetjmp(xx, 1);
29215if (code)
29216 exit(0); /* could get sigmask and compare to oset here. */
29217
29218/* change it */
29219sigaddset(&set, SIGINT);
29220sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29221
29222/* and siglongjmp */
29223siglongjmp(xx, 10);
29224exit(1);
29225#endif
29226}
f73dda09
JA
29227_ACEOF
29228rm -f conftest$ac_exeext
3185942a
JA
29229if { (ac_try="$ac_link"
29230case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29233esac
29234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29235$as_echo "$ac_try_echo") >&5
29236 (eval "$ac_link") 2>&5
f73dda09 29237 ac_status=$?
3185942a 29238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
29240 { (case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29243esac
29244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29245$as_echo "$ac_try_echo") >&5
29246 (eval "$ac_try") 2>&5
f73dda09 29247 ac_status=$?
3185942a 29248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29249 (exit $ac_status); }; }; then
ccc6cda3
JA
29250 bash_cv_func_sigsetjmp=present
29251else
3185942a
JA
29252 $as_echo "$as_me: program exited with status $ac_status" >&5
29253$as_echo "$as_me: failed program was:" >&5
0628567a
JA
29254sed 's/^/| /' conftest.$ac_ext >&5
29255
b80f6443 29256( exit $ac_status )
f73dda09 29257bash_cv_func_sigsetjmp=missing
ccc6cda3 29258fi
3185942a
JA
29259rm -rf conftest.dSYM
29260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29261fi
3185942a
JA
29262
29263
ccc6cda3
JA
29264fi
29265
3185942a
JA
29266{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29267$as_echo "$bash_cv_func_sigsetjmp" >&6; }
ccc6cda3 29268if test $bash_cv_func_sigsetjmp = present; then
b80f6443 29269cat >>confdefs.h <<\_ACEOF
ccc6cda3 29270#define HAVE_POSIX_SIGSETJMP 1
b80f6443 29271_ACEOF
ccc6cda3
JA
29272
29273fi
29274
b80f6443 29275
3185942a
JA
29276{ $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29277$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
f73dda09 29278if test "${bash_cv_func_strcoll_broken+set}" = set; then
3185942a 29279 $as_echo_n "(cached) " >&6
d166f048
JA
29280else
29281 if test "$cross_compiling" = yes; then
3185942a
JA
29282 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29283$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
29284 bash_cv_func_strcoll_broken=no
29285
d166f048 29286else
f73dda09 29287 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29288/* confdefs.h. */
29289_ACEOF
29290cat confdefs.h >>conftest.$ac_ext
29291cat >>conftest.$ac_ext <<_ACEOF
29292/* end confdefs.h. */
d166f048
JA
29293
29294#include <stdio.h>
29295#if defined (HAVE_LOCALE_H)
29296#include <locale.h>
29297#endif
29298
29299main(c, v)
29300int c;
29301char *v[];
29302{
29303 int r1, r2;
29304 char *deflocale, *defcoll;
29305
29306#ifdef HAVE_SETLOCALE
29307 deflocale = setlocale(LC_ALL, "");
29308 defcoll = setlocale(LC_COLLATE, "");
29309#endif
29310
29311#ifdef HAVE_STRCOLL
29312 /* These two values are taken from tests/glob-test. */
29313 r1 = strcoll("abd", "aXd");
29314#else
29315 r1 = 0;
29316#endif
29317 r2 = strcmp("abd", "aXd");
29318
29319 /* These two should both be greater than 0. It is permissible for
29320 a system to return different values, as long as the sign is the
29321 same. */
29322
29323 /* Exit with 1 (failure) if these two values are both > 0, since
29324 this tests whether strcoll(3) is broken with respect to strcmp(3)
29325 in the default locale. */
29326 exit (r1 > 0 && r2 > 0);
29327}
29328
f73dda09
JA
29329_ACEOF
29330rm -f conftest$ac_exeext
3185942a
JA
29331if { (ac_try="$ac_link"
29332case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29335esac
29336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29337$as_echo "$ac_try_echo") >&5
29338 (eval "$ac_link") 2>&5
f73dda09 29339 ac_status=$?
3185942a 29340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
29342 { (case "(($ac_try" in
29343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29345esac
29346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29347$as_echo "$ac_try_echo") >&5
29348 (eval "$ac_try") 2>&5
f73dda09 29349 ac_status=$?
3185942a 29350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29351 (exit $ac_status); }; }; then
d166f048
JA
29352 bash_cv_func_strcoll_broken=yes
29353else
3185942a
JA
29354 $as_echo "$as_me: program exited with status $ac_status" >&5
29355$as_echo "$as_me: failed program was:" >&5
0628567a
JA
29356sed 's/^/| /' conftest.$ac_ext >&5
29357
b80f6443 29358( exit $ac_status )
f73dda09 29359bash_cv_func_strcoll_broken=no
d166f048 29360fi
3185942a
JA
29361rm -rf conftest.dSYM
29362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d166f048 29363fi
3185942a
JA
29364
29365
d166f048
JA
29366fi
29367
3185942a
JA
29368{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
29369$as_echo "$bash_cv_func_strcoll_broken" >&6; }
d166f048 29370if test $bash_cv_func_strcoll_broken = yes; then
b80f6443 29371cat >>confdefs.h <<\_ACEOF
d166f048 29372#define STRCOLL_BROKEN 1
b80f6443 29373_ACEOF
d166f048
JA
29374
29375fi
29376
b80f6443
JA
29377
29378
0001803f
CR
29379
29380
29381
29382
29383
29384
29385
29386 if test X$ac_cv_func_snprintf = Xyes; then
29387 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
29388$as_echo_n "checking for standard-conformant snprintf... " >&6; }
29389if test "${bash_cv_func_snprintf+set}" = set; then
29390 $as_echo_n "(cached) " >&6
29391else
29392 if test "$cross_compiling" = yes; then
29393 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
29394$as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
29395 bash_cv_func_snprintf=yes
29396
29397else
29398 cat >conftest.$ac_ext <<_ACEOF
29399/* confdefs.h. */
29400_ACEOF
29401cat confdefs.h >>conftest.$ac_ext
29402cat >>conftest.$ac_ext <<_ACEOF
29403/* end confdefs.h. */
29404
29405#include <stdio.h>
29406
29407main()
29408{
29409 int n;
29410 n = snprintf (0, 0, "%s", "0123456");
29411 exit(n != 7);
29412}
29413
29414_ACEOF
29415rm -f conftest$ac_exeext
29416if { (ac_try="$ac_link"
29417case "(($ac_try" in
29418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419 *) ac_try_echo=$ac_try;;
29420esac
29421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29422$as_echo "$ac_try_echo") >&5
29423 (eval "$ac_link") 2>&5
29424 ac_status=$?
29425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29430esac
29431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29432$as_echo "$ac_try_echo") >&5
29433 (eval "$ac_try") 2>&5
29434 ac_status=$?
29435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437 bash_cv_func_snprintf=yes
29438else
29439 $as_echo "$as_me: program exited with status $ac_status" >&5
29440$as_echo "$as_me: failed program was:" >&5
29441sed 's/^/| /' conftest.$ac_ext >&5
29442
29443( exit $ac_status )
29444bash_cv_func_snprintf=no
29445fi
29446rm -rf conftest.dSYM
29447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29448fi
29449
29450
29451fi
29452{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
29453$as_echo "$bash_cv_func_snprintf" >&6; }
29454 if test $bash_cv_func_snprintf = no; then
29455 ac_cv_func_snprintf=no
29456 fi
29457 fi
29458 if test $ac_cv_func_snprintf = no; then
29459
29460cat >>confdefs.h <<\_ACEOF
29461#define HAVE_SNPRINTF 0
29462_ACEOF
29463
29464 fi
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475 if test X$ac_cv_func_vsnprintf = Xyes; then
29476 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
29477$as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
29478if test "${bash_cv_func_vsnprintf+set}" = set; then
29479 $as_echo_n "(cached) " >&6
29480else
29481 if test "$cross_compiling" = yes; then
29482 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
29483$as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
29484 bash_cv_func_vsnprintf=yes
29485
29486else
29487 cat >conftest.$ac_ext <<_ACEOF
29488/* confdefs.h. */
29489_ACEOF
29490cat confdefs.h >>conftest.$ac_ext
29491cat >>conftest.$ac_ext <<_ACEOF
29492/* end confdefs.h. */
29493
29494#if HAVE_STDARG_H
29495#include <stdarg.h>
29496#else
29497#include <varargs.h>
29498#endif
29499#include <stdio.h>
29500#include <stdlib.h>
29501
29502static int
29503#if HAVE_STDARG_H
29504foo(const char *fmt, ...)
29505#else
29506foo(format, va_alist)
29507 const char *format;
29508 va_dcl
29509#endif
29510{
29511 va_list args;
29512 int n;
29513
29514#if HAVE_STDARG_H
29515 va_start(args, fmt);
29516#else
29517 va_start(args);
29518#endif
29519 n = vsnprintf(0, 0, fmt, args);
29520 va_end (args);
29521 return n;
29522}
29523
29524main()
29525{
29526 int n;
29527 n = foo("%s", "0123456");
29528 exit(n != 7);
29529}
29530
29531_ACEOF
29532rm -f conftest$ac_exeext
29533if { (ac_try="$ac_link"
29534case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29537esac
29538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29539$as_echo "$ac_try_echo") >&5
29540 (eval "$ac_link") 2>&5
29541 ac_status=$?
29542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29544 { (case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547esac
29548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29549$as_echo "$ac_try_echo") >&5
29550 (eval "$ac_try") 2>&5
29551 ac_status=$?
29552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); }; }; then
29554 bash_cv_func_vsnprintf=yes
29555else
29556 $as_echo "$as_me: program exited with status $ac_status" >&5
29557$as_echo "$as_me: failed program was:" >&5
29558sed 's/^/| /' conftest.$ac_ext >&5
29559
29560( exit $ac_status )
29561bash_cv_func_vsnprintf=no
29562fi
29563rm -rf conftest.dSYM
29564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29565fi
29566
29567
29568fi
29569{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
29570$as_echo "$bash_cv_func_vsnprintf" >&6; }
29571 if test $bash_cv_func_vsnprintf = no; then
29572 ac_cv_func_vsnprintf=no
29573 fi
29574 fi
29575 if test $ac_cv_func_vsnprintf = no; then
29576
29577cat >>confdefs.h <<\_ACEOF
29578#define HAVE_VSNPRINTF 0
29579_ACEOF
29580
29581 fi
29582
29583
29584
7117c2d2
JA
29585if test "$ac_cv_func_putenv" = "yes"; then
29586
b80f6443
JA
29587
29588
3185942a
JA
29589{ $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
29590$as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
7117c2d2 29591if test "${bash_cv_std_putenv+set}" = set; then
3185942a 29592 $as_echo_n "(cached) " >&6
7117c2d2
JA
29593else
29594 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29595/* confdefs.h. */
29596_ACEOF
29597cat confdefs.h >>conftest.$ac_ext
29598cat >>conftest.$ac_ext <<_ACEOF
29599/* end confdefs.h. */
7117c2d2
JA
29600
29601#if STDC_HEADERS
29602#include <stdlib.h>
29603#include <stddef.h>
29604#endif
29605#ifndef __STDC__
29606# ifndef const
29607# define const
29608# endif
29609#endif
29610#ifdef PROTOTYPES
29611extern int putenv (char *);
29612#else
29613extern int putenv ();
29614#endif
29615
29616int
29617main ()
29618{
29619return (putenv == 0);
29620 ;
29621 return 0;
29622}
29623_ACEOF
29624rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29625if { (ac_try="$ac_link"
29626case "(($ac_try" in
29627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628 *) ac_try_echo=$ac_try;;
29629esac
29630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29631$as_echo "$ac_try_echo") >&5
29632 (eval "$ac_link") 2>conftest.er1
7117c2d2 29633 ac_status=$?
0628567a
JA
29634 grep -v '^ *+' conftest.er1 >conftest.err
29635 rm -f conftest.er1
29636 cat conftest.err >&5
3185942a
JA
29637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } && {
29639 test -z "$ac_c_werror_flag" ||
29640 test ! -s conftest.err
29641 } && test -s conftest$ac_exeext && {
29642 test "$cross_compiling" = yes ||
29643 $as_test_x conftest$ac_exeext
29644 }; then
7117c2d2
JA
29645 bash_cv_std_putenv=yes
29646else
3185942a 29647 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29648sed 's/^/| /' conftest.$ac_ext >&5
29649
3185942a 29650 bash_cv_std_putenv=no
7117c2d2
JA
29651
29652fi
3185942a
JA
29653
29654rm -rf conftest.dSYM
29655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29656 conftest$ac_exeext conftest.$ac_ext
7117c2d2 29657fi
3185942a
JA
29658{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
29659$as_echo "$bash_cv_std_putenv" >&6; }
7117c2d2 29660if test $bash_cv_std_putenv = yes; then
b80f6443 29661cat >>confdefs.h <<\_ACEOF
7117c2d2 29662#define HAVE_STD_PUTENV 1
b80f6443 29663_ACEOF
7117c2d2
JA
29664
29665fi
29666
29667else
b80f6443 29668cat >>confdefs.h <<\_ACEOF
7117c2d2 29669#define HAVE_STD_PUTENV 1
b80f6443 29670_ACEOF
7117c2d2
JA
29671
29672fi
29673if test "$ac_cv_func_unsetenv" = "yes"; then
29674
b80f6443
JA
29675
29676
3185942a
JA
29677{ $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
29678$as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
7117c2d2 29679if test "${bash_cv_std_unsetenv+set}" = set; then
3185942a 29680 $as_echo_n "(cached) " >&6
7117c2d2
JA
29681else
29682 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
7117c2d2
JA
29688
29689#if STDC_HEADERS
29690#include <stdlib.h>
29691#include <stddef.h>
29692#endif
29693#ifndef __STDC__
29694# ifndef const
29695# define const
29696# endif
29697#endif
29698#ifdef PROTOTYPES
29699extern int unsetenv (const char *);
29700#else
29701extern int unsetenv ();
29702#endif
29703
29704int
29705main ()
29706{
29707return (unsetenv == 0);
29708 ;
29709 return 0;
29710}
29711_ACEOF
29712rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29713if { (ac_try="$ac_link"
29714case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29717esac
29718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719$as_echo "$ac_try_echo") >&5
29720 (eval "$ac_link") 2>conftest.er1
7117c2d2 29721 ac_status=$?
0628567a
JA
29722 grep -v '^ *+' conftest.er1 >conftest.err
29723 rm -f conftest.er1
29724 cat conftest.err >&5
3185942a
JA
29725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } && {
29727 test -z "$ac_c_werror_flag" ||
29728 test ! -s conftest.err
29729 } && test -s conftest$ac_exeext && {
29730 test "$cross_compiling" = yes ||
29731 $as_test_x conftest$ac_exeext
29732 }; then
7117c2d2
JA
29733 bash_cv_std_unsetenv=yes
29734else
3185942a 29735 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29736sed 's/^/| /' conftest.$ac_ext >&5
29737
3185942a 29738 bash_cv_std_unsetenv=no
7117c2d2
JA
29739
29740fi
3185942a
JA
29741
29742rm -rf conftest.dSYM
29743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29744 conftest$ac_exeext conftest.$ac_ext
7117c2d2 29745fi
3185942a
JA
29746{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29747$as_echo "$bash_cv_std_unsetenv" >&6; }
7117c2d2 29748if test $bash_cv_std_unsetenv = yes; then
b80f6443 29749cat >>confdefs.h <<\_ACEOF
7117c2d2 29750#define HAVE_STD_UNSETENV 1
b80f6443 29751_ACEOF
7117c2d2
JA
29752
29753fi
29754
29755else
b80f6443 29756cat >>confdefs.h <<\_ACEOF
7117c2d2 29757#define HAVE_STD_UNSETENV 1
b80f6443 29758_ACEOF
7117c2d2
JA
29759
29760fi
29761
3185942a
JA
29762{ $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29763$as_echo_n "checking for printf floating point output in hex notation... " >&6; }
f73dda09 29764if test "${bash_cv_printf_a_format+set}" = set; then
3185942a 29765 $as_echo_n "(cached) " >&6
f73dda09
JA
29766else
29767 if test "$cross_compiling" = yes; then
3185942a
JA
29768 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29769$as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
f73dda09
JA
29770 bash_cv_printf_a_format=no
29771
29772else
29773 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29774/* confdefs.h. */
29775_ACEOF
29776cat confdefs.h >>conftest.$ac_ext
29777cat >>conftest.$ac_ext <<_ACEOF
29778/* end confdefs.h. */
f73dda09
JA
29779
29780#include <stdio.h>
29781#include <string.h>
29782
29783int
29784main()
29785{
29786 double y = 0.0;
29787 char abuf[1024];
29788
29789 sprintf(abuf, "%A", y);
29790 exit(strchr(abuf, 'P') == (char *)0);
29791}
29792
29793_ACEOF
29794rm -f conftest$ac_exeext
3185942a
JA
29795if { (ac_try="$ac_link"
29796case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29799esac
29800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29801$as_echo "$ac_try_echo") >&5
29802 (eval "$ac_link") 2>&5
f73dda09 29803 ac_status=$?
3185942a 29804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
29806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809esac
29810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29811$as_echo "$ac_try_echo") >&5
29812 (eval "$ac_try") 2>&5
f73dda09 29813 ac_status=$?
3185942a 29814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
29815 (exit $ac_status); }; }; then
29816 bash_cv_printf_a_format=yes
29817else
3185942a
JA
29818 $as_echo "$as_me: program exited with status $ac_status" >&5
29819$as_echo "$as_me: failed program was:" >&5
0628567a
JA
29820sed 's/^/| /' conftest.$ac_ext >&5
29821
b80f6443 29822( exit $ac_status )
f73dda09
JA
29823bash_cv_printf_a_format=no
29824fi
3185942a
JA
29825rm -rf conftest.dSYM
29826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 29827fi
3185942a
JA
29828
29829
f73dda09 29830fi
d166f048 29831
3185942a
JA
29832{ $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29833$as_echo "$bash_cv_printf_a_format" >&6; }
f73dda09 29834if test $bash_cv_printf_a_format = yes; then
b80f6443 29835cat >>confdefs.h <<\_ACEOF
f73dda09 29836#define HAVE_PRINTF_A_FORMAT 1
b80f6443 29837_ACEOF
d166f048 29838
f73dda09 29839fi
ccc6cda3 29840
b80f6443
JA
29841
29842
29843
3185942a
JA
29844{ $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29845$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
f73dda09 29846if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
3185942a 29847 $as_echo_n "(cached) " >&6
ccc6cda3
JA
29848else
29849 if test "$cross_compiling" = yes; then
3185942a
JA
29850 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29851$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
29852 bash_cv_must_reinstall_sighandlers=no
29853
ccc6cda3 29854else
f73dda09 29855 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29856/* confdefs.h. */
29857_ACEOF
29858cat confdefs.h >>conftest.$ac_ext
29859cat >>conftest.$ac_ext <<_ACEOF
29860/* end confdefs.h. */
ccc6cda3
JA
29861
29862#include <signal.h>
29863#ifdef HAVE_UNISTD_H
29864#include <unistd.h>
29865#endif
29866
29867typedef RETSIGTYPE sigfunc();
29868
29869int nsigint;
29870
29871#ifdef HAVE_POSIX_SIGNALS
29872sigfunc *
29873set_signal_handler(sig, handler)
29874 int sig;
29875 sigfunc *handler;
29876{
29877 struct sigaction act, oact;
29878 act.sa_handler = handler;
29879 act.sa_flags = 0;
29880 sigemptyset (&act.sa_mask);
29881 sigemptyset (&oact.sa_mask);
29882 sigaction (sig, &act, &oact);
29883 return (oact.sa_handler);
29884}
29885#else
29886#define set_signal_handler(s, h) signal(s, h)
29887#endif
29888
29889RETSIGTYPE
29890sigint(s)
29891int s;
29892{
29893 nsigint++;
29894}
29895
29896main()
29897{
29898 nsigint = 0;
29899 set_signal_handler(SIGINT, sigint);
29900 kill((int)getpid(), SIGINT);
29901 kill((int)getpid(), SIGINT);
29902 exit(nsigint != 2);
29903}
29904
f73dda09
JA
29905_ACEOF
29906rm -f conftest$ac_exeext
3185942a
JA
29907if { (ac_try="$ac_link"
29908case "(($ac_try" in
29909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910 *) ac_try_echo=$ac_try;;
29911esac
29912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29913$as_echo "$ac_try_echo") >&5
29914 (eval "$ac_link") 2>&5
f73dda09 29915 ac_status=$?
3185942a 29916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
29918 { (case "(($ac_try" in
29919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29920 *) ac_try_echo=$ac_try;;
29921esac
29922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29923$as_echo "$ac_try_echo") >&5
29924 (eval "$ac_try") 2>&5
f73dda09 29925 ac_status=$?
3185942a 29926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 29927 (exit $ac_status); }; }; then
ccc6cda3
JA
29928 bash_cv_must_reinstall_sighandlers=no
29929else
3185942a
JA
29930 $as_echo "$as_me: program exited with status $ac_status" >&5
29931$as_echo "$as_me: failed program was:" >&5
0628567a
JA
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
b80f6443 29934( exit $ac_status )
f73dda09 29935bash_cv_must_reinstall_sighandlers=yes
ccc6cda3 29936fi
3185942a
JA
29937rm -rf conftest.dSYM
29938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29939fi
3185942a
JA
29940
29941
ccc6cda3
JA
29942fi
29943
3185942a
JA
29944{ $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
29945$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
ccc6cda3 29946if test $bash_cv_must_reinstall_sighandlers = yes; then
b80f6443 29947cat >>confdefs.h <<\_ACEOF
ccc6cda3 29948#define MUST_REINSTALL_SIGHANDLERS 1
b80f6443 29949_ACEOF
ccc6cda3
JA
29950
29951fi
29952
b80f6443 29953
3185942a
JA
29954{ $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
29955$as_echo_n "checking for presence of necessary job control definitions... " >&6; }
f73dda09 29956if test "${bash_cv_job_control_missing+set}" = set; then
3185942a 29957 $as_echo_n "(cached) " >&6
ccc6cda3
JA
29958else
29959 if test "$cross_compiling" = yes; then
3185942a
JA
29960 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
29961$as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
29962 bash_cv_job_control_missing=missing
29963
ccc6cda3 29964else
f73dda09 29965 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29966/* confdefs.h. */
29967_ACEOF
29968cat confdefs.h >>conftest.$ac_ext
29969cat >>conftest.$ac_ext <<_ACEOF
29970/* end confdefs.h. */
ccc6cda3
JA
29971
29972#include <sys/types.h>
29973#ifdef HAVE_SYS_WAIT_H
29974#include <sys/wait.h>
29975#endif
29976#ifdef HAVE_UNISTD_H
29977#include <unistd.h>
29978#endif
29979#include <signal.h>
29980
29981/* Add more tests in here as appropriate. */
29982main()
29983{
29984/* signal type */
29985#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29986exit(1);
29987#endif
29988
29989/* signals and tty control. */
29990#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
29991exit (1);
29992#endif
29993
29994/* process control */
f73dda09 29995#if !defined (WNOHANG) || !defined (WUNTRACED)
ccc6cda3
JA
29996exit(1);
29997#endif
29998
29999/* Posix systems have tcgetpgrp and waitpid. */
30000#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30001exit(1);
30002#endif
30003
30004#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30005exit(1);
30006#endif
30007
30008/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30009#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30010exit(1);
30011#endif
30012
30013exit(0);
30014}
f73dda09
JA
30015_ACEOF
30016rm -f conftest$ac_exeext
3185942a
JA
30017if { (ac_try="$ac_link"
30018case "(($ac_try" in
30019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020 *) ac_try_echo=$ac_try;;
30021esac
30022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30023$as_echo "$ac_try_echo") >&5
30024 (eval "$ac_link") 2>&5
f73dda09 30025 ac_status=$?
3185942a 30026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 30027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
30028 { (case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30031esac
30032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30033$as_echo "$ac_try_echo") >&5
30034 (eval "$ac_try") 2>&5
f73dda09 30035 ac_status=$?
3185942a 30036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 30037 (exit $ac_status); }; }; then
ccc6cda3
JA
30038 bash_cv_job_control_missing=present
30039else
3185942a
JA
30040 $as_echo "$as_me: program exited with status $ac_status" >&5
30041$as_echo "$as_me: failed program was:" >&5
0628567a
JA
30042sed 's/^/| /' conftest.$ac_ext >&5
30043
b80f6443 30044( exit $ac_status )
f73dda09 30045bash_cv_job_control_missing=missing
ccc6cda3 30046fi
3185942a
JA
30047rm -rf conftest.dSYM
30048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 30049fi
3185942a
JA
30050
30051
ccc6cda3
JA
30052fi
30053
3185942a
JA
30054{ $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30055$as_echo "$bash_cv_job_control_missing" >&6; }
ccc6cda3 30056if test $bash_cv_job_control_missing = missing; then
b80f6443 30057cat >>confdefs.h <<\_ACEOF
ccc6cda3 30058#define JOB_CONTROL_MISSING 1
b80f6443 30059_ACEOF
ccc6cda3
JA
30060
30061fi
30062
3185942a
JA
30063{ $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30064$as_echo_n "checking for presence of named pipes... " >&6; }
f73dda09 30065if test "${bash_cv_sys_named_pipes+set}" = set; then
3185942a 30066 $as_echo_n "(cached) " >&6
ccc6cda3
JA
30067else
30068 if test "$cross_compiling" = yes; then
3185942a
JA
30069 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30070$as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
30071 bash_cv_sys_named_pipes=missing
30072
ccc6cda3 30073else
f73dda09 30074 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30075/* confdefs.h. */
30076_ACEOF
30077cat confdefs.h >>conftest.$ac_ext
30078cat >>conftest.$ac_ext <<_ACEOF
30079/* end confdefs.h. */
ccc6cda3
JA
30080
30081#include <sys/types.h>
30082#include <sys/stat.h>
30083#ifdef HAVE_UNISTD_H
30084#include <unistd.h>
30085#endif
30086
30087/* Add more tests in here as appropriate. */
30088main()
30089{
bb70624e 30090int fd, err;
ccc6cda3
JA
30091
30092#if defined (HAVE_MKFIFO)
30093exit (0);
30094#endif
30095
30096#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30097exit (1);
30098#endif
30099
30100#if defined (NeXT)
30101exit (1);
30102#endif
3185942a 30103err = mkdir("bash-aclocal", 0700);
bb70624e
JA
30104if (err < 0) {
30105 perror ("mkdir");
30106 exit(1);
30107}
3185942a 30108fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
bb70624e 30109if (fd == -1) {
3185942a 30110 rmdir ("bash-aclocal");
ccc6cda3 30111 exit (1);
bb70624e 30112}
ccc6cda3 30113close(fd);
3185942a
JA
30114unlink ("bash-aclocal/sh-np-autoconf");
30115rmdir ("bash-aclocal");
ccc6cda3
JA
30116exit(0);
30117}
f73dda09
JA
30118_ACEOF
30119rm -f conftest$ac_exeext
3185942a
JA
30120if { (ac_try="$ac_link"
30121case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30124esac
30125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30126$as_echo "$ac_try_echo") >&5
30127 (eval "$ac_link") 2>&5
f73dda09 30128 ac_status=$?
3185942a 30129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 30130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
30131 { (case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30134esac
30135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30136$as_echo "$ac_try_echo") >&5
30137 (eval "$ac_try") 2>&5
f73dda09 30138 ac_status=$?
3185942a 30139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 30140 (exit $ac_status); }; }; then
ccc6cda3
JA
30141 bash_cv_sys_named_pipes=present
30142else
3185942a
JA
30143 $as_echo "$as_me: program exited with status $ac_status" >&5
30144$as_echo "$as_me: failed program was:" >&5
0628567a
JA
30145sed 's/^/| /' conftest.$ac_ext >&5
30146
30147( exit $ac_status )
30148bash_cv_sys_named_pipes=missing
30149fi
3185942a
JA
30150rm -rf conftest.dSYM
30151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
95732b49 30152fi
3185942a
JA
30153
30154
95732b49 30155fi
95732b49 30156
3185942a
JA
30157{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30158$as_echo "$bash_cv_sys_named_pipes" >&6; }
0628567a
JA
30159if test $bash_cv_sys_named_pipes = missing; then
30160cat >>confdefs.h <<\_ACEOF
30161#define NAMED_PIPES_MISSING 1
30162_ACEOF
30163
30164fi
30165
30166
3185942a
JA
30167{ $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30168$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
f73dda09 30169if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
3185942a 30170 $as_echo_n "(cached) " >&6
f73dda09
JA
30171else
30172 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30173/* confdefs.h. */
30174_ACEOF
30175cat confdefs.h >>conftest.$ac_ext
30176cat >>conftest.$ac_ext <<_ACEOF
30177/* end confdefs.h. */
f73dda09
JA
30178#include <sys/types.h>
30179#include <termios.h>
30180#ifdef TIOCGWINSZ
30181 yes
30182#endif
30183
30184_ACEOF
30185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 30186 $EGREP "yes" >/dev/null 2>&1; then
f73dda09
JA
30187 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30188else
30189 ac_cv_sys_tiocgwinsz_in_termios_h=no
30190fi
30191rm -f conftest*
30192
30193fi
3185942a
JA
30194{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30195$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
d166f048 30196
f73dda09 30197if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3185942a
JA
30198 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30199$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
f73dda09 30200if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
3185942a 30201 $as_echo_n "(cached) " >&6
ccc6cda3 30202else
f73dda09 30203 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30204/* confdefs.h. */
30205_ACEOF
30206cat confdefs.h >>conftest.$ac_ext
30207cat >>conftest.$ac_ext <<_ACEOF
30208/* end confdefs.h. */
ccc6cda3
JA
30209#include <sys/types.h>
30210#include <sys/ioctl.h>
f73dda09
JA
30211#ifdef TIOCGWINSZ
30212 yes
30213#endif
30214
30215_ACEOF
30216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 30217 $EGREP "yes" >/dev/null 2>&1; then
f73dda09 30218 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
ccc6cda3 30219else
f73dda09 30220 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
ccc6cda3
JA
30221fi
30222rm -f conftest*
f73dda09 30223
ccc6cda3 30224fi
3185942a
JA
30225{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30226$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
f73dda09
JA
30227
30228 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
ccc6cda3 30229
b80f6443 30230cat >>confdefs.h <<\_ACEOF
ccc6cda3 30231#define GWINSZ_IN_SYS_IOCTL 1
b80f6443 30232_ACEOF
ccc6cda3 30233
f73dda09 30234 fi
ccc6cda3
JA
30235fi
30236
3185942a
JA
30237{ $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30238$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
f73dda09 30239if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
3185942a 30240 $as_echo_n "(cached) " >&6
ccc6cda3 30241else
f73dda09 30242 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30243/* confdefs.h. */
30244_ACEOF
30245cat confdefs.h >>conftest.$ac_ext
30246cat >>conftest.$ac_ext <<_ACEOF
30247/* end confdefs.h. */
ccc6cda3
JA
30248#include <sys/types.h>
30249#include <sys/ioctl.h>
f73dda09
JA
30250int
30251main ()
30252{
ccc6cda3 30253int x = TIOCSTAT;
f73dda09
JA
30254 ;
30255 return 0;
30256}
30257_ACEOF
30258rm -f conftest.$ac_objext
3185942a
JA
30259if { (ac_try="$ac_compile"
30260case "(($ac_try" in
30261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30262 *) ac_try_echo=$ac_try;;
30263esac
30264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30265$as_echo "$ac_try_echo") >&5
30266 (eval "$ac_compile") 2>conftest.er1
f73dda09 30267 ac_status=$?
0628567a
JA
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
3185942a
JA
30271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } && {
30273 test -z "$ac_c_werror_flag" ||
30274 test ! -s conftest.err
30275 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30276 bash_cv_tiocstat_in_ioctl=yes
30277else
3185942a 30278 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
3185942a 30281 bash_cv_tiocstat_in_ioctl=no
ccc6cda3 30282fi
3185942a
JA
30283
30284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30285fi
30286
3185942a
JA
30287{ $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30288$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
f73dda09 30289if test $bash_cv_tiocstat_in_ioctl = yes; then
b80f6443 30290cat >>confdefs.h <<\_ACEOF
ccc6cda3 30291#define TIOCSTAT_IN_SYS_IOCTL 1
b80f6443 30292_ACEOF
ccc6cda3
JA
30293
30294fi
30295
3185942a
JA
30296{ $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30297$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
f73dda09 30298if test "${bash_cv_fionread_in_ioctl+set}" = set; then
3185942a 30299 $as_echo_n "(cached) " >&6
ccc6cda3 30300else
f73dda09 30301 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30302/* confdefs.h. */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h. */
ccc6cda3
JA
30307#include <sys/types.h>
30308#include <sys/ioctl.h>
f73dda09
JA
30309int
30310main ()
30311{
ccc6cda3 30312int x = FIONREAD;
f73dda09
JA
30313 ;
30314 return 0;
30315}
30316_ACEOF
30317rm -f conftest.$ac_objext
3185942a
JA
30318if { (ac_try="$ac_compile"
30319case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30322esac
30323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30324$as_echo "$ac_try_echo") >&5
30325 (eval "$ac_compile") 2>conftest.er1
f73dda09 30326 ac_status=$?
0628567a
JA
30327 grep -v '^ *+' conftest.er1 >conftest.err
30328 rm -f conftest.er1
30329 cat conftest.err >&5
3185942a
JA
30330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } && {
30332 test -z "$ac_c_werror_flag" ||
30333 test ! -s conftest.err
30334 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30335 bash_cv_fionread_in_ioctl=yes
30336else
3185942a 30337 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
3185942a 30340 bash_cv_fionread_in_ioctl=no
ccc6cda3 30341fi
3185942a
JA
30342
30343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30344fi
30345
3185942a
JA
30346{ $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30347$as_echo "$bash_cv_fionread_in_ioctl" >&6; }
f73dda09 30348if test $bash_cv_fionread_in_ioctl = yes; then
b80f6443 30349cat >>confdefs.h <<\_ACEOF
ccc6cda3 30350#define FIONREAD_IN_SYS_IOCTL 1
b80f6443 30351_ACEOF
ccc6cda3
JA
30352
30353fi
30354
b80f6443 30355
95732b49 30356
3185942a
JA
30357{ $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30358$as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
95732b49 30359if test "${bash_cv_wcontinued_broken+set}" = set; then
3185942a 30360 $as_echo_n "(cached) " >&6
95732b49
JA
30361else
30362 if test "$cross_compiling" = yes; then
3185942a
JA
30363 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30364$as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
95732b49
JA
30365 bash_cv_wcontinued_broken=no
30366
30367else
30368 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30369/* confdefs.h. */
30370_ACEOF
30371cat confdefs.h >>conftest.$ac_ext
30372cat >>conftest.$ac_ext <<_ACEOF
30373/* end confdefs.h. */
95732b49
JA
30374
30375#include <sys/types.h>
30376#include <sys/wait.h>
30377#include <unistd.h>
30378#include <errno.h>
30379
30380#ifndef errno
30381extern int errno;
30382#endif
30383main()
30384{
30385 int x;
30386
30387 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30388 if (x == -1 && errno == EINVAL)
30389 exit (1);
30390 else
30391 exit (0);
30392}
30393
30394_ACEOF
30395rm -f conftest$ac_exeext
3185942a
JA
30396if { (ac_try="$ac_link"
30397case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30400esac
30401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30402$as_echo "$ac_try_echo") >&5
30403 (eval "$ac_link") 2>&5
95732b49 30404 ac_status=$?
3185942a 30405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95732b49 30406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
30407 { (case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30410esac
30411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30412$as_echo "$ac_try_echo") >&5
30413 (eval "$ac_try") 2>&5
95732b49 30414 ac_status=$?
3185942a 30415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95732b49
JA
30416 (exit $ac_status); }; }; then
30417 bash_cv_wcontinued_broken=no
30418else
3185942a
JA
30419 $as_echo "$as_me: program exited with status $ac_status" >&5
30420$as_echo "$as_me: failed program was:" >&5
0628567a
JA
30421sed 's/^/| /' conftest.$ac_ext >&5
30422
95732b49
JA
30423( exit $ac_status )
30424bash_cv_wcontinued_broken=yes
30425fi
3185942a
JA
30426rm -rf conftest.dSYM
30427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
95732b49 30428fi
3185942a
JA
30429
30430
95732b49
JA
30431fi
30432
3185942a
JA
30433{ $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30434$as_echo "$bash_cv_wcontinued_broken" >&6; }
95732b49
JA
30435if test $bash_cv_wcontinued_broken = yes; then
30436cat >>confdefs.h <<\_ACEOF
30437#define WCONTINUED_BROKEN 1
30438_ACEOF
30439
30440fi
30441
30442
3185942a
JA
30443{ $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30444$as_echo_n "checking for speed_t in sys/types.h... " >&6; }
f73dda09 30445if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
3185942a 30446 $as_echo_n "(cached) " >&6
d166f048 30447else
f73dda09 30448 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30449/* confdefs.h. */
30450_ACEOF
30451cat confdefs.h >>conftest.$ac_ext
30452cat >>conftest.$ac_ext <<_ACEOF
30453/* end confdefs.h. */
d166f048 30454#include <sys/types.h>
f73dda09
JA
30455int
30456main ()
30457{
d166f048 30458speed_t x;
f73dda09
JA
30459 ;
30460 return 0;
30461}
30462_ACEOF
30463rm -f conftest.$ac_objext
3185942a
JA
30464if { (ac_try="$ac_compile"
30465case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468esac
30469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30470$as_echo "$ac_try_echo") >&5
30471 (eval "$ac_compile") 2>conftest.er1
f73dda09 30472 ac_status=$?
0628567a
JA
30473 grep -v '^ *+' conftest.er1 >conftest.err
30474 rm -f conftest.er1
30475 cat conftest.err >&5
3185942a
JA
30476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } && {
30478 test -z "$ac_c_werror_flag" ||
30479 test ! -s conftest.err
30480 } && test -s conftest.$ac_objext; then
d166f048
JA
30481 bash_cv_speed_t_in_sys_types=yes
30482else
3185942a 30483 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30484sed 's/^/| /' conftest.$ac_ext >&5
30485
3185942a 30486 bash_cv_speed_t_in_sys_types=no
d166f048 30487fi
3185942a
JA
30488
30489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
30490fi
30491
3185942a
JA
30492{ $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
30493$as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
f73dda09 30494if test $bash_cv_speed_t_in_sys_types = yes; then
b80f6443 30495cat >>confdefs.h <<\_ACEOF
d166f048 30496#define SPEED_T_IN_SYS_TYPES 1
b80f6443 30497_ACEOF
d166f048
JA
30498
30499fi
30500
3185942a
JA
30501{ $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
30502$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
f73dda09 30503if test "${bash_cv_getpw_declared+set}" = set; then
3185942a 30504 $as_echo_n "(cached) " >&6
ccc6cda3 30505else
f73dda09 30506 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30507/* confdefs.h. */
30508_ACEOF
30509cat confdefs.h >>conftest.$ac_ext
30510cat >>conftest.$ac_ext <<_ACEOF
30511/* end confdefs.h. */
28ef6c31 30512
ccc6cda3 30513#include <sys/types.h>
28ef6c31
JA
30514#ifdef HAVE_UNISTD_H
30515# include <unistd.h>
30516#endif
ccc6cda3 30517#include <pwd.h>
28ef6c31 30518
f73dda09 30519_ACEOF
28ef6c31 30520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 30521 $EGREP "getpwuid" >/dev/null 2>&1; then
28ef6c31 30522 bash_cv_getpw_declared=yes
ccc6cda3 30523else
28ef6c31 30524 bash_cv_getpw_declared=no
ccc6cda3
JA
30525fi
30526rm -f conftest*
28ef6c31 30527
ccc6cda3
JA
30528fi
30529
3185942a
JA
30530{ $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
30531$as_echo "$bash_cv_getpw_declared" >&6; }
28ef6c31 30532if test $bash_cv_getpw_declared = yes; then
b80f6443 30533cat >>confdefs.h <<\_ACEOF
ccc6cda3 30534#define HAVE_GETPW_DECLS 1
b80f6443 30535_ACEOF
ccc6cda3
JA
30536
30537fi
30538
3185942a
JA
30539{ $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
30540$as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
f73dda09 30541if test "${bash_cv_unusable_rtsigs+set}" = set; then
3185942a 30542 $as_echo_n "(cached) " >&6
28ef6c31
JA
30543else
30544 if test "$cross_compiling" = yes; then
3185942a
JA
30545 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
30546$as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28ef6c31
JA
30547 bash_cv_unusable_rtsigs=yes
30548
30549else
f73dda09 30550 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30551/* confdefs.h. */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h. */
28ef6c31
JA
30556
30557#include <sys/types.h>
30558#include <signal.h>
30559
30560#ifndef NSIG
30561# define NSIG 64
30562#endif
30563
30564main ()
30565{
30566 int n_sigs = 2 * NSIG;
30567#ifdef SIGRTMIN
30568 int rtmin = SIGRTMIN;
30569#else
30570 int rtmin = 0;
30571#endif
30572
30573 exit(rtmin < n_sigs);
30574}
f73dda09
JA
30575_ACEOF
30576rm -f conftest$ac_exeext
3185942a
JA
30577if { (ac_try="$ac_link"
30578case "(($ac_try" in
30579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580 *) ac_try_echo=$ac_try;;
30581esac
30582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30583$as_echo "$ac_try_echo") >&5
30584 (eval "$ac_link") 2>&5
f73dda09 30585 ac_status=$?
3185942a 30586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 30587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
30588 { (case "(($ac_try" in
30589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590 *) ac_try_echo=$ac_try;;
30591esac
30592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30593$as_echo "$ac_try_echo") >&5
30594 (eval "$ac_try") 2>&5
f73dda09 30595 ac_status=$?
3185942a 30596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 30597 (exit $ac_status); }; }; then
28ef6c31
JA
30598 bash_cv_unusable_rtsigs=yes
30599else
3185942a
JA
30600 $as_echo "$as_me: program exited with status $ac_status" >&5
30601$as_echo "$as_me: failed program was:" >&5
0628567a
JA
30602sed 's/^/| /' conftest.$ac_ext >&5
30603
b80f6443 30604( exit $ac_status )
f73dda09 30605bash_cv_unusable_rtsigs=no
28ef6c31 30606fi
3185942a
JA
30607rm -rf conftest.dSYM
30608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28ef6c31 30609fi
3185942a
JA
30610
30611
28ef6c31
JA
30612fi
30613
3185942a
JA
30614{ $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
30615$as_echo "$bash_cv_unusable_rtsigs" >&6; }
28ef6c31 30616if test $bash_cv_unusable_rtsigs = yes; then
b80f6443 30617cat >>confdefs.h <<\_ACEOF
28ef6c31 30618#define UNUSABLE_RT_SIGNALS 1
b80f6443 30619_ACEOF
28ef6c31
JA
30620
30621fi
30622
b80f6443
JA
30623
30624
30625
30626
f73dda09
JA
30627if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30628 SIGLIST_O=siglist.o
30629else
30630 SIGLIST_O=
30631fi
ccc6cda3 30632
b80f6443
JA
30633
30634
ccc6cda3 30635case "$host_os" in
3185942a
JA
30636hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
30637$as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
f73dda09 30638if test "${bash_cv_kernel_rlimit+set}" = set; then
3185942a 30639 $as_echo_n "(cached) " >&6
ccc6cda3 30640else
f73dda09 30641 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30642/* confdefs.h. */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h. */
ccc6cda3
JA
30647
30648#include <sys/types.h>
30649#include <sys/resource.h>
30650
f73dda09
JA
30651int
30652main ()
30653{
ccc6cda3
JA
30654
30655 int f;
30656 f = RLIMIT_DATA;
30657
f73dda09
JA
30658 ;
30659 return 0;
30660}
30661_ACEOF
30662rm -f conftest.$ac_objext
3185942a
JA
30663if { (ac_try="$ac_compile"
30664case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30667esac
30668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30669$as_echo "$ac_try_echo") >&5
30670 (eval "$ac_compile") 2>conftest.er1
f73dda09 30671 ac_status=$?
0628567a
JA
30672 grep -v '^ *+' conftest.er1 >conftest.err
30673 rm -f conftest.er1
30674 cat conftest.err >&5
3185942a
JA
30675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); } && {
30677 test -z "$ac_c_werror_flag" ||
30678 test ! -s conftest.err
30679 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30680 bash_cv_kernel_rlimit=no
30681else
3185942a 30682 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
3185942a 30685 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
ccc6cda3 30691
cce855bc
JA
30692#include <sys/types.h>
30693#define _KERNEL
30694#include <sys/resource.h>
30695#undef _KERNEL
30696
f73dda09
JA
30697int
30698main ()
30699{
ccc6cda3
JA
30700
30701 int f;
30702 f = RLIMIT_DATA;
cce855bc 30703
f73dda09
JA
30704 ;
30705 return 0;
30706}
30707_ACEOF
30708rm -f conftest.$ac_objext
3185942a
JA
30709if { (ac_try="$ac_compile"
30710case "(($ac_try" in
30711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30712 *) ac_try_echo=$ac_try;;
30713esac
30714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30715$as_echo "$ac_try_echo") >&5
30716 (eval "$ac_compile") 2>conftest.er1
f73dda09 30717 ac_status=$?
0628567a
JA
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
3185942a
JA
30721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && {
30723 test -z "$ac_c_werror_flag" ||
30724 test ! -s conftest.err
30725 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30726 bash_cv_kernel_rlimit=yes
30727else
3185942a 30728 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
3185942a 30731 bash_cv_kernel_rlimit=no
ccc6cda3 30732fi
3185942a
JA
30733
30734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30735
30736fi
3185942a
JA
30737
30738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30739fi
30740
3185942a
JA
30741{ $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30742$as_echo "$bash_cv_kernel_rlimit" >&6; }
ccc6cda3 30743if test $bash_cv_kernel_rlimit = yes; then
b80f6443 30744cat >>confdefs.h <<\_ACEOF
ccc6cda3 30745#define RLIMIT_NEEDS_KERNEL 1
b80f6443 30746_ACEOF
ccc6cda3
JA
30747
30748fi
30749 ;;
30750esac
30751
30752if test "$opt_readline" = yes; then
d166f048
JA
30753case "$host_os" in
30754aix*) prefer_curses=yes ;;
30755esac
ccc6cda3
JA
30756
30757if test "X$bash_cv_termcap_lib" = "X"; then
30758_bash_needmsg=yes
30759else
3185942a
JA
30760{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30761$as_echo_n "checking which library has the termcap functions... " >&6; }
ccc6cda3
JA
30762_bash_needmsg=
30763fi
f73dda09 30764if test "${bash_cv_termcap_lib+set}" = set; then
3185942a 30765 $as_echo_n "(cached) " >&6
ccc6cda3 30766else
3185942a
JA
30767 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30768$as_echo_n "checking for tgetent... " >&6; }
b80f6443 30769if test "${ac_cv_func_tgetent+set}" = set; then
3185942a 30770 $as_echo_n "(cached) " >&6
b80f6443
JA
30771else
30772 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30773/* confdefs.h. */
30774_ACEOF
30775cat confdefs.h >>conftest.$ac_ext
30776cat >>conftest.$ac_ext <<_ACEOF
30777/* end confdefs.h. */
30778/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30780#define tgetent innocuous_tgetent
30781
b80f6443 30782/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
30783 which can conflict with char tgetent (); below.
30784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30785 <limits.h> exists even on freestanding compilers. */
30786
30787#ifdef __STDC__
30788# include <limits.h>
30789#else
30790# include <assert.h>
30791#endif
30792
30793#undef tgetent
30794
3185942a
JA
30795/* Override any GCC internal prototype to avoid an error.
30796 Use char because int might match the return type of a GCC
30797 builtin and then its argument prototype would still apply. */
b80f6443
JA
30798#ifdef __cplusplus
30799extern "C"
b80f6443 30800#endif
b80f6443
JA
30801char tgetent ();
30802/* The GNU C library defines this for functions which it implements
30803 to always fail with ENOSYS. Some functions are actually named
30804 something starting with __ and the normal name is an alias. */
3185942a 30805#if defined __stub_tgetent || defined __stub___tgetent
b80f6443 30806choke me
b80f6443
JA
30807#endif
30808
0628567a
JA
30809int
30810main ()
30811{
3185942a 30812return tgetent ();
b80f6443
JA
30813 ;
30814 return 0;
30815}
30816_ACEOF
30817rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
30818if { (ac_try="$ac_link"
30819case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30822esac
30823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30824$as_echo "$ac_try_echo") >&5
30825 (eval "$ac_link") 2>conftest.er1
b80f6443 30826 ac_status=$?
0628567a
JA
30827 grep -v '^ *+' conftest.er1 >conftest.err
30828 rm -f conftest.er1
30829 cat conftest.err >&5
3185942a
JA
30830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); } && {
30832 test -z "$ac_c_werror_flag" ||
30833 test ! -s conftest.err
30834 } && test -s conftest$ac_exeext && {
30835 test "$cross_compiling" = yes ||
30836 $as_test_x conftest$ac_exeext
30837 }; then
b80f6443
JA
30838 ac_cv_func_tgetent=yes
30839else
3185942a 30840 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30841sed 's/^/| /' conftest.$ac_ext >&5
30842
3185942a 30843 ac_cv_func_tgetent=no
b80f6443 30844fi
3185942a
JA
30845
30846rm -rf conftest.dSYM
30847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 30848 conftest$ac_exeext conftest.$ac_ext
b80f6443 30849fi
3185942a
JA
30850{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30851$as_echo "$ac_cv_func_tgetent" >&6; }
30852if test "x$ac_cv_func_tgetent" = x""yes; then
b80f6443
JA
30853 bash_cv_termcap_lib=libc
30854else
3185942a
JA
30855 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30856$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
f73dda09 30857if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3185942a 30858 $as_echo_n "(cached) " >&6
ccc6cda3 30859else
f73dda09 30860 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 30861LIBS="-ltermcap $LIBS"
f73dda09 30862cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30863/* confdefs.h. */
30864_ACEOF
30865cat confdefs.h >>conftest.$ac_ext
30866cat >>conftest.$ac_ext <<_ACEOF
30867/* end confdefs.h. */
f73dda09 30868
3185942a
JA
30869/* Override any GCC internal prototype to avoid an error.
30870 Use char because int might match the return type of a GCC
30871 builtin and then its argument prototype would still apply. */
f73dda09
JA
30872#ifdef __cplusplus
30873extern "C"
30874#endif
f73dda09
JA
30875char tgetent ();
30876int
30877main ()
30878{
3185942a 30879return tgetent ();
f73dda09
JA
30880 ;
30881 return 0;
30882}
30883_ACEOF
30884rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
30885if { (ac_try="$ac_link"
30886case "(($ac_try" in
30887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30888 *) ac_try_echo=$ac_try;;
30889esac
30890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30891$as_echo "$ac_try_echo") >&5
30892 (eval "$ac_link") 2>conftest.er1
f73dda09 30893 ac_status=$?
0628567a
JA
30894 grep -v '^ *+' conftest.er1 >conftest.err
30895 rm -f conftest.er1
30896 cat conftest.err >&5
3185942a
JA
30897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } && {
30899 test -z "$ac_c_werror_flag" ||
30900 test ! -s conftest.err
30901 } && test -s conftest$ac_exeext && {
30902 test "$cross_compiling" = yes ||
30903 $as_test_x conftest$ac_exeext
30904 }; then
f73dda09
JA
30905 ac_cv_lib_termcap_tgetent=yes
30906else
3185942a 30907 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30908sed 's/^/| /' conftest.$ac_ext >&5
30909
3185942a 30910 ac_cv_lib_termcap_tgetent=no
f73dda09 30911fi
3185942a
JA
30912
30913rm -rf conftest.dSYM
30914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 30915 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
30916LIBS=$ac_check_lib_save_LIBS
30917fi
3185942a
JA
30918{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30919$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
30920if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
ccc6cda3
JA
30921 bash_cv_termcap_lib=libtermcap
30922else
3185942a
JA
30923 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30924$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
f73dda09 30925if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3185942a 30926 $as_echo_n "(cached) " >&6
ccc6cda3 30927else
f73dda09
JA
30928 ac_check_lib_save_LIBS=$LIBS
30929LIBS="-ltinfo $LIBS"
30930cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30931/* confdefs.h. */
30932_ACEOF
30933cat confdefs.h >>conftest.$ac_ext
30934cat >>conftest.$ac_ext <<_ACEOF
30935/* end confdefs.h. */
f73dda09 30936
3185942a
JA
30937/* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
f73dda09
JA
30940#ifdef __cplusplus
30941extern "C"
30942#endif
f73dda09
JA
30943char tgetent ();
30944int
30945main ()
30946{
3185942a 30947return tgetent ();
f73dda09
JA
30948 ;
30949 return 0;
30950}
30951_ACEOF
30952rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
30953if { (ac_try="$ac_link"
30954case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30957esac
30958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30959$as_echo "$ac_try_echo") >&5
30960 (eval "$ac_link") 2>conftest.er1
f73dda09 30961 ac_status=$?
0628567a
JA
30962 grep -v '^ *+' conftest.er1 >conftest.err
30963 rm -f conftest.er1
30964 cat conftest.err >&5
3185942a
JA
30965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } && {
30967 test -z "$ac_c_werror_flag" ||
30968 test ! -s conftest.err
30969 } && test -s conftest$ac_exeext && {
30970 test "$cross_compiling" = yes ||
30971 $as_test_x conftest$ac_exeext
30972 }; then
f73dda09
JA
30973 ac_cv_lib_tinfo_tgetent=yes
30974else
3185942a 30975 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
30976sed 's/^/| /' conftest.$ac_ext >&5
30977
3185942a 30978 ac_cv_lib_tinfo_tgetent=no
f73dda09 30979fi
3185942a
JA
30980
30981rm -rf conftest.dSYM
30982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 30983 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
30984LIBS=$ac_check_lib_save_LIBS
30985fi
3185942a
JA
30986{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30987$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
30988if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
7117c2d2 30989 bash_cv_termcap_lib=libtinfo
f73dda09 30990else
3185942a
JA
30991 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30992$as_echo_n "checking for tgetent in -lcurses... " >&6; }
f73dda09 30993if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3185942a 30994 $as_echo_n "(cached) " >&6
f73dda09
JA
30995else
30996 ac_check_lib_save_LIBS=$LIBS
30997LIBS="-lcurses $LIBS"
30998cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
30999/* confdefs.h. */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h. */
ccc6cda3 31004
3185942a
JA
31005/* Override any GCC internal prototype to avoid an error.
31006 Use char because int might match the return type of a GCC
31007 builtin and then its argument prototype would still apply. */
f73dda09
JA
31008#ifdef __cplusplus
31009extern "C"
31010#endif
f73dda09
JA
31011char tgetent ();
31012int
31013main ()
31014{
3185942a 31015return tgetent ();
f73dda09
JA
31016 ;
31017 return 0;
31018}
31019_ACEOF
31020rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
31021if { (ac_try="$ac_link"
31022case "(($ac_try" in
31023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024 *) ac_try_echo=$ac_try;;
31025esac
31026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31027$as_echo "$ac_try_echo") >&5
31028 (eval "$ac_link") 2>conftest.er1
f73dda09 31029 ac_status=$?
0628567a
JA
31030 grep -v '^ *+' conftest.er1 >conftest.err
31031 rm -f conftest.er1
31032 cat conftest.err >&5
3185942a
JA
31033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } && {
31035 test -z "$ac_c_werror_flag" ||
31036 test ! -s conftest.err
31037 } && test -s conftest$ac_exeext && {
31038 test "$cross_compiling" = yes ||
31039 $as_test_x conftest$ac_exeext
31040 }; then
f73dda09
JA
31041 ac_cv_lib_curses_tgetent=yes
31042else
3185942a 31043 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
31044sed 's/^/| /' conftest.$ac_ext >&5
31045
3185942a 31046 ac_cv_lib_curses_tgetent=no
f73dda09 31047fi
3185942a
JA
31048
31049rm -rf conftest.dSYM
31050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 31051 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
31052LIBS=$ac_check_lib_save_LIBS
31053fi
3185942a
JA
31054{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31055$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
31056if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
ccc6cda3
JA
31057 bash_cv_termcap_lib=libcurses
31058else
3185942a
JA
31059 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31060$as_echo_n "checking for tgetent in -lncurses... " >&6; }
f73dda09 31061if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3185942a 31062 $as_echo_n "(cached) " >&6
ccc6cda3 31063else
f73dda09 31064 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 31065LIBS="-lncurses $LIBS"
f73dda09 31066cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
31067/* confdefs.h. */
31068_ACEOF
31069cat confdefs.h >>conftest.$ac_ext
31070cat >>conftest.$ac_ext <<_ACEOF
31071/* end confdefs.h. */
f73dda09 31072
3185942a
JA
31073/* Override any GCC internal prototype to avoid an error.
31074 Use char because int might match the return type of a GCC
31075 builtin and then its argument prototype would still apply. */
f73dda09
JA
31076#ifdef __cplusplus
31077extern "C"
31078#endif
f73dda09
JA
31079char tgetent ();
31080int
31081main ()
31082{
3185942a 31083return tgetent ();
f73dda09
JA
31084 ;
31085 return 0;
31086}
31087_ACEOF
31088rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
31089if { (ac_try="$ac_link"
31090case "(($ac_try" in
31091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092 *) ac_try_echo=$ac_try;;
31093esac
31094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31095$as_echo "$ac_try_echo") >&5
31096 (eval "$ac_link") 2>conftest.er1
f73dda09 31097 ac_status=$?
0628567a
JA
31098 grep -v '^ *+' conftest.er1 >conftest.err
31099 rm -f conftest.er1
31100 cat conftest.err >&5
3185942a
JA
31101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); } && {
31103 test -z "$ac_c_werror_flag" ||
31104 test ! -s conftest.err
31105 } && test -s conftest$ac_exeext && {
31106 test "$cross_compiling" = yes ||
31107 $as_test_x conftest$ac_exeext
31108 }; then
f73dda09
JA
31109 ac_cv_lib_ncurses_tgetent=yes
31110else
3185942a 31111 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
31112sed 's/^/| /' conftest.$ac_ext >&5
31113
3185942a 31114 ac_cv_lib_ncurses_tgetent=no
f73dda09 31115fi
3185942a
JA
31116
31117rm -rf conftest.dSYM
31118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 31119 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
31120LIBS=$ac_check_lib_save_LIBS
31121fi
3185942a
JA
31122{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31123$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
31124if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
f73dda09 31125 bash_cv_termcap_lib=libncurses
ccc6cda3 31126else
f73dda09 31127 bash_cv_termcap_lib=gnutermcap
ccc6cda3 31128fi
ccc6cda3 31129
ccc6cda3
JA
31130fi
31131
31132fi
31133
31134fi
31135
31136fi
31137
b80f6443
JA
31138fi
31139
ccc6cda3 31140if test "X$_bash_needmsg" = "Xyes"; then
3185942a
JA
31141{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31142$as_echo_n "checking which library has the termcap functions... " >&6; }
ccc6cda3 31143fi
3185942a
JA
31144{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31145$as_echo "using $bash_cv_termcap_lib" >&6; }
cce855bc 31146if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
31147LDFLAGS="$LDFLAGS -L./lib/termcap"
31148TERMCAP_LIB="./lib/termcap/libtermcap.a"
31149TERMCAP_DEP="./lib/termcap/libtermcap.a"
d166f048 31150elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
31151TERMCAP_LIB=-ltermcap
31152TERMCAP_DEP=
f73dda09
JA
31153elif test $bash_cv_termcap_lib = libtinfo; then
31154TERMCAP_LIB=-ltinfo
31155TERMCAP_DEP=
ccc6cda3
JA
31156elif test $bash_cv_termcap_lib = libncurses; then
31157TERMCAP_LIB=-lncurses
31158TERMCAP_DEP=
b80f6443
JA
31159elif test $bash_cv_termcap_lib = libc; then
31160TERMCAP_LIB=
31161TERMCAP_DEP=
ccc6cda3
JA
31162else
31163TERMCAP_LIB=-lcurses
31164TERMCAP_DEP=
31165fi
31166
31167fi
31168
b80f6443
JA
31169
31170
3185942a
JA
31171{ $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31172$as_echo_n "checking whether /dev/fd is available... " >&6; }
f73dda09 31173if test "${bash_cv_dev_fd+set}" = set; then
3185942a 31174 $as_echo_n "(cached) " >&6
d166f048 31175else
0628567a 31176 bash_cv_dev_fd=""
3185942a 31177if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
95732b49 31178# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
3185942a 31179 if (exec test -r /dev/fd/3 3</dev/null) ; then
95732b49
JA
31180 bash_cv_dev_fd=standard
31181 else
31182 bash_cv_dev_fd=absent
31183 fi
0628567a
JA
31184fi
31185if test -z "$bash_cv_dev_fd" ; then
3185942a 31186 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
0628567a
JA
31187 bash_cv_dev_fd=whacky
31188 else
31189 bash_cv_dev_fd=absent
31190 fi
31191fi
d166f048
JA
31192
31193fi
31194
3185942a
JA
31195{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31196$as_echo "$bash_cv_dev_fd" >&6; }
d166f048 31197if test $bash_cv_dev_fd = "standard"; then
b80f6443 31198 cat >>confdefs.h <<\_ACEOF
d166f048 31199#define HAVE_DEV_FD 1
b80f6443 31200_ACEOF
d166f048 31201
b80f6443 31202 cat >>confdefs.h <<\_ACEOF
d166f048 31203#define DEV_FD_PREFIX "/dev/fd/"
b80f6443 31204_ACEOF
d166f048
JA
31205
31206elif test $bash_cv_dev_fd = "whacky"; then
b80f6443 31207 cat >>confdefs.h <<\_ACEOF
d166f048 31208#define HAVE_DEV_FD 1
b80f6443 31209_ACEOF
d166f048 31210
b80f6443 31211 cat >>confdefs.h <<\_ACEOF
d166f048 31212#define DEV_FD_PREFIX "/proc/self/fd/"
b80f6443 31213_ACEOF
d166f048
JA
31214
31215fi
31216
3185942a
JA
31217{ $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31218$as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
f73dda09 31219if test "${bash_cv_dev_stdin+set}" = set; then
3185942a 31220 $as_echo_n "(cached) " >&6
bb70624e 31221else
3185942a 31222 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
bb70624e 31223 bash_cv_dev_stdin=present
3185942a 31224 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
bb70624e
JA
31225 bash_cv_dev_stdin=present
31226 else
31227 bash_cv_dev_stdin=absent
31228 fi
31229
31230fi
31231
3185942a
JA
31232{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31233$as_echo "$bash_cv_dev_stdin" >&6; }
bb70624e 31234if test $bash_cv_dev_stdin = "present"; then
b80f6443 31235 cat >>confdefs.h <<\_ACEOF
bb70624e 31236#define HAVE_DEV_STDIN 1
b80f6443 31237_ACEOF
bb70624e
JA
31238
31239fi
31240
3185942a
JA
31241{ $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
31242$as_echo_n "checking for default mail directory... " >&6; }
f73dda09 31243if test "${bash_cv_mail_dir+set}" = set; then
3185942a 31244 $as_echo_n "(cached) " >&6
ccc6cda3
JA
31245else
31246 if test -d /var/mail; then
31247 bash_cv_mail_dir=/var/mail
ccc6cda3
JA
31248 elif test -d /var/spool/mail; then
31249 bash_cv_mail_dir=/var/spool/mail
7117c2d2
JA
31250 elif test -d /usr/mail; then
31251 bash_cv_mail_dir=/usr/mail
e8ce775d
JA
31252 elif test -d /usr/spool/mail; then
31253 bash_cv_mail_dir=/usr/spool/mail
ccc6cda3
JA
31254 else
31255 bash_cv_mail_dir=unknown
31256 fi
31257
31258fi
31259
3185942a
JA
31260{ $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31261$as_echo "$bash_cv_mail_dir" >&6; }
b80f6443
JA
31262cat >>confdefs.h <<_ACEOF
31263#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31264_ACEOF
31265
31266
ccc6cda3 31267
ccc6cda3
JA
31268if test "$bash_cv_job_control_missing" = missing; then
31269 opt_job_control=no
31270fi
31271
31272if test "$opt_job_control" = yes; then
b80f6443 31273cat >>confdefs.h <<\_ACEOF
ccc6cda3 31274#define JOB_CONTROL 1
b80f6443 31275_ACEOF
ccc6cda3
JA
31276
31277JOBS_O=jobs.o
31278else
31279JOBS_O=nojobs.o
31280fi
31281
b80f6443
JA
31282
31283
31284
d166f048
JA
31285LOCAL_DEFS=-DSHELL
31286
b80f6443 31287
b72432fd 31288case "${host_os}" in
b80f6443 31289sysv4.2*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 31290#define SVR4_2 1
b80f6443 31291_ACEOF
ccc6cda3 31292
b80f6443 31293 cat >>confdefs.h <<\_ACEOF
ccc6cda3 31294#define SVR4 1
b80f6443 31295_ACEOF
ccc6cda3 31296 ;;
b80f6443 31297sysv4*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 31298#define SVR4 1
b80f6443 31299_ACEOF
ccc6cda3 31300 ;;
b80f6443 31301sysv5*) cat >>confdefs.h <<\_ACEOF
b72432fd 31302#define SVR5 1
b80f6443 31303_ACEOF
b72432fd
JA
31304 ;;
31305hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
ccc6cda3
JA
31306hpux*) LOCAL_CFLAGS=-DHPUX ;;
31307dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
bb70624e
JA
31308isc*) LOCAL_CFLAGS=-Disc386 ;;
31309rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
f73dda09 31310darwin*) LOCAL_CFLAGS=-DMACOSX ;;
7117c2d2
JA
31311sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31312sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
ccc6cda3 31313sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
d166f048 31314sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
f1be666c 31315solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
17345e5a
JA
31316solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31317solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31318solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
f1be666c 31319solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
b72432fd 31320lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
95732b49
JA
31321linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31322 case "`uname -r`" in
31323 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31324#define PGRP_PIPE 1
31325_ACEOF
31326 ;;
31327 esac ;;
31328*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
7117c2d2 31329*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
b72432fd 31330powerux*) LOCAL_LIBS="-lgen" ;;
b80f6443 31331cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
0001803f 31332opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
b72432fd
JA
31333esac
31334
31335case "${host_os}-${CC}" in
31336aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31337aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31338bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
ccc6cda3
JA
31339esac
31340
bb70624e 31341case "${host_os}" in
28ef6c31
JA
31342freebsd[3-9]*)
31343 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
bb70624e
JA
31344 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31345 fi ;;
28ef6c31 31346freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
95732b49 31347dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
bb70624e
JA
31348esac
31349
ccc6cda3
JA
31350case "$host_cpu" in
31351*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31352esac
31353
31354case "$host_cpu-$host_os" in
31355ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31356esac
31357
31358case "$host_cpu-$host_vendor-$host_os" in
31359m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31360mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31361esac
31362
b72432fd
JA
31363#
31364# Shared object configuration section. These values are generated by
31365# ${srcdir}/support/shobj-conf
31366#
31367if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31368then
3185942a
JA
31369 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31370$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
28ef6c31 31371 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
f73dda09 31372
b80f6443
JA
31373
31374
31375
31376
31377
31378
3185942a
JA
31379 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31380$as_echo "$SHOBJ_STATUS" >&6; }
b72432fd
JA
31381fi
31382
ccc6cda3
JA
31383# try to create a directory tree if the source is elsewhere
31384# this should be packaged into a script accessible via ${srcdir}/support
31385case "$srcdir" in
31386.) ;;
cce855bc 31387*) for d in doc tests support lib examples; do # dirs
ccc6cda3
JA
31388 test -d $d || mkdir $d
31389 done
cce855bc 31390 for ld in readline glob tilde malloc sh termcap; do # libdirs
ccc6cda3
JA
31391 test -d lib/$ld || mkdir lib/$ld
31392 done
cce855bc 31393 test -d examples/loadables || mkdir examples/loadables # loadable builtins
bb70624e 31394 test -d examples/loadables/perl || mkdir examples/loadables/perl
ccc6cda3
JA
31395 ;;
31396esac
31397
31398BUILD_DIR=`pwd`
95732b49
JA
31399case "$BUILD_DIR" in
31400*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31401*) ;;
31402esac
ccc6cda3 31403
3185942a
JA
31404if test -z "$localedir"; then
31405 localedir='${datarootdir}/locale'
31406fi
31407if test -z "$datarootdir"; then
31408 datarootdir='${prefix}/share'
31409fi
31410
31411
31412
31413
b80f6443
JA
31414
31415
3185942a 31416# Some versions of autoconf don't substitute these automatically
b80f6443
JA
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
d166f048
JA
31438#AC_SUBST(ALLOCA_SOURCE)
31439#AC_SUBST(ALLOCA_OBJECT)
31440
3185942a
JA
31441ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
31442
31443ac_config_commands="$ac_config_commands default"
31444
f73dda09 31445cat >confcache <<\_ACEOF
ccc6cda3
JA
31446# This file is a shell script that caches the results of configure
31447# tests run on this system so they can be shared between configure
f73dda09
JA
31448# scripts and configure runs, see configure's option --config-cache.
31449# It is not useful on other systems. If it contains results you don't
31450# want to keep, you may remove or edit it.
726f6388 31451#
f73dda09
JA
31452# config.status only pays attention to the cache file if you give it
31453# the --recheck option to rerun configure.
ccc6cda3 31454#
0628567a 31455# `ac_cv_env_foo' variables (set or unset) will be overridden when
f73dda09
JA
31456# loading this file, other *unset* `ac_cv_foo' will be assigned the
31457# following values.
31458
31459_ACEOF
31460
ccc6cda3
JA
31461# The following way of writing the cache mishandles newlines in values,
31462# but we know of no workaround that is simple, portable, and efficient.
3185942a 31463# So, we kill variables containing newlines.
ccc6cda3
JA
31464# Ultrix sh set writes to stderr and can't be redirected directly,
31465# and sets the high bit in the cache file unless we assign to the vars.
3185942a
JA
31466(
31467 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31468 eval ac_val=\$$ac_var
31469 case $ac_val in #(
31470 *${as_nl}*)
31471 case $ac_var in #(
31472 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31473$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31474 esac
31475 case $ac_var in #(
31476 _ | IFS | as_nl) ;; #(
31477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31478 *) $as_unset $ac_var ;;
31479 esac ;;
31480 esac
31481 done
31482
f73dda09 31483 (set) 2>&1 |
3185942a
JA
31484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31485 *${as_nl}ac_space=\ *)
f73dda09
JA
31486 # `set' does not quote correctly, so add quotes (double-quote
31487 # substitution turns \\\\ into \\, and sed turns \\ into \).
31488 sed -n \
0628567a
JA
31489 "s/'/'\\\\''/g;
31490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3185942a 31491 ;; #(
f73dda09
JA
31492 *)
31493 # `set' quotes correctly as required by POSIX, so do not add quotes.
3185942a 31494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f73dda09 31495 ;;
3185942a
JA
31496 esac |
31497 sort
31498) |
f73dda09 31499 sed '
3185942a 31500 /^ac_cv_env_/b end
f73dda09 31501 t clear
3185942a 31502 :clear
f73dda09
JA
31503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31504 t end
3185942a
JA
31505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31506 :end' >>confcache
31507if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31508 if test -w "$cache_file"; then
31509 test "x$cache_file" != "x/dev/null" &&
31510 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31511$as_echo "$as_me: updating cache $cache_file" >&6;}
f73dda09 31512 cat confcache >$cache_file
ccc6cda3 31513 else
3185942a
JA
31514 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31515$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
ccc6cda3
JA
31516 fi
31517fi
31518rm -f confcache
31519
ccc6cda3
JA
31520test "x$prefix" = xNONE && prefix=$ac_default_prefix
31521# Let make expand exec_prefix.
31522test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31523
ccc6cda3
JA
31524DEFS=-DHAVE_CONFIG_H
31525
0628567a
JA
31526ac_libobjs=
31527ac_ltlibobjs=
31528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31529 # 1. Remove the extension, and $U if already installed.
3185942a
JA
31530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31533 # will be set to the directory where LIBOBJS objects are built.
31534 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31535 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
0628567a
JA
31536done
31537LIBOBJS=$ac_libobjs
31538
31539LTLIBOBJS=$ac_ltlibobjs
31540
31541
b80f6443 31542
3185942a 31543
ccc6cda3 31544: ${CONFIG_STATUS=./config.status}
3185942a 31545ac_write_fail=0
f73dda09
JA
31546ac_clean_files_save=$ac_clean_files
31547ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3185942a
JA
31548{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31549$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31550cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 31551#! $SHELL
b80f6443 31552# Generated by $as_me.
ccc6cda3 31553# Run this file to recreate the current configuration.
ccc6cda3 31554# Compiler output produced by configure, useful for debugging
f73dda09 31555# configure, is in config.log if it exists.
ccc6cda3 31556
f73dda09 31557debug=false
0628567a
JA
31558ac_cs_recheck=false
31559ac_cs_silent=false
f73dda09 31560SHELL=\${CONFIG_SHELL-$SHELL}
f73dda09
JA
31561_ACEOF
31562
3185942a 31563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80f6443
JA
31564## --------------------- ##
31565## M4sh Initialization. ##
31566## --------------------- ##
31567
3185942a
JA
31568# Be more Bourne compatible
31569DUALCASE=1; export DUALCASE # for MKS sh
f73dda09
JA
31570if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31571 emulate sh
31572 NULLCMD=:
3185942a 31573 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
0628567a
JA
31574 # is contrary to our usage. Disable this feature.
31575 alias -g '${1+"$@"}'='"$@"'
3185942a
JA
31576 setopt NO_GLOB_SUBST
31577else
31578 case `(set -o) 2>/dev/null` in
31579 *posix*) set -o posix ;;
31580esac
31581
31582fi
31583
31584
31585
31586
31587# PATH needs CR
31588# Avoid depending upon Character Ranges.
31589as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31590as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31591as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31592as_cr_digits='0123456789'
31593as_cr_alnum=$as_cr_Letters$as_cr_digits
31594
31595as_nl='
31596'
31597export as_nl
31598# Printing a long string crashes Solaris 7 /usr/bin/printf.
31599as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31600as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31602if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31603 as_echo='printf %s\n'
31604 as_echo_n='printf %s'
31605else
31606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31608 as_echo_n='/usr/ucb/echo -n'
31609 else
31610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31611 as_echo_n_body='eval
31612 arg=$1;
31613 case $arg in
31614 *"$as_nl"*)
31615 expr "X$arg" : "X\\(.*\\)$as_nl";
31616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31617 esac;
31618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31619 '
31620 export as_echo_n_body
31621 as_echo_n='sh -c $as_echo_n_body as_echo'
31622 fi
31623 export as_echo_body
31624 as_echo='sh -c $as_echo_body as_echo'
31625fi
31626
31627# The user is always right.
31628if test "${PATH_SEPARATOR+set}" != set; then
31629 PATH_SEPARATOR=:
31630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31632 PATH_SEPARATOR=';'
31633 }
f73dda09
JA
31634fi
31635
b80f6443 31636# Support unset when possible.
0628567a 31637if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b80f6443
JA
31638 as_unset=unset
31639else
31640 as_unset=false
31641fi
31642
0628567a 31643
3185942a
JA
31644# IFS
31645# We need space, tab and new line, in precisely that order. Quoting is
31646# there to prevent editors from complaining about space-tab.
31647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31648# splitting by setting IFS to empty value.)
31649IFS=" "" $as_nl"
31650
31651# Find who we are. Look in the path if we contain no directory separator.
31652case $0 in
31653 *[\\/]* ) as_myself=$0 ;;
31654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31655for as_dir in $PATH
31656do
31657 IFS=$as_save_IFS
31658 test -z "$as_dir" && as_dir=.
31659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31660done
31661IFS=$as_save_IFS
31662
31663 ;;
31664esac
31665# We did not find ourselves, most probably we were run as `sh COMMAND'
31666# in which case we are not to be found in the path.
31667if test "x$as_myself" = x; then
31668 as_myself=$0
31669fi
31670if test ! -f "$as_myself"; then
31671 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31672 { (exit 1); exit 1; }
31673fi
31674
0628567a 31675# Work around bugs in pre-3.0 UWIN ksh.
3185942a
JA
31676for as_var in ENV MAIL MAILPATH
31677do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31678done
0628567a
JA
31679PS1='$ '
31680PS2='> '
31681PS4='+ '
31682
31683# NLS nuisances.
3185942a
JA
31684LC_ALL=C
31685export LC_ALL
31686LANGUAGE=C
31687export LANGUAGE
0628567a
JA
31688
31689# Required to use basename.
3185942a
JA
31690if expr a : '\(a\)' >/dev/null 2>&1 &&
31691 test "X`expr 00001 : '.*\(...\)'`" = X001; then
0628567a
JA
31692 as_expr=expr
31693else
31694 as_expr=false
31695fi
31696
3185942a 31697if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
0628567a
JA
31698 as_basename=basename
31699else
31700 as_basename=false
31701fi
b80f6443
JA
31702
31703
f73dda09 31704# Name of the executable.
3185942a 31705as_me=`$as_basename -- "$0" ||
b80f6443
JA
31706$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31707 X"$0" : 'X\(//\)$' \| \
3185942a
JA
31708 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31709$as_echo X/"$0" |
31710 sed '/^.*\/\([^/][^/]*\)\/*$/{
31711 s//\1/
31712 q
31713 }
31714 /^X\/\(\/\/\)$/{
31715 s//\1/
31716 q
31717 }
31718 /^X\/\(\/\).*/{
31719 s//\1/
31720 q
31721 }
31722 s/.*/./; q'`
b80f6443 31723
3185942a
JA
31724# CDPATH.
31725$as_unset CDPATH
b80f6443
JA
31726
31727
b80f6443 31728
b80f6443
JA
31729 as_lineno_1=$LINENO
31730 as_lineno_2=$LINENO
b80f6443 31731 test "x$as_lineno_1" != "x$as_lineno_2" &&
3185942a 31732 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b80f6443
JA
31733
31734 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31735 # uniformly replaced by the line number. The first 'sed' inserts a
3185942a
JA
31736 # line-number line after each line using $LINENO; the second 'sed'
31737 # does the real work. The second script uses 'N' to pair each
31738 # line-number line with the line containing $LINENO, and appends
31739 # trailing '-' during substitution so that $LINENO is not a special
31740 # case at line end.
b80f6443 31741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3185942a
JA
31742 # scripts with optimization help from Paolo Bonzini. Blame Lee
31743 # E. McMahon (1931-1989) for sed's syntax. :-)
31744 sed -n '
31745 p
31746 /[$]LINENO/=
31747 ' <$as_myself |
b80f6443 31748 sed '
3185942a
JA
31749 s/[$]LINENO.*/&-/
31750 t lineno
31751 b
31752 :lineno
b80f6443 31753 N
3185942a
JA
31754 :loop
31755 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b80f6443 31756 t loop
3185942a 31757 s/-\n.*//
b80f6443 31758 ' >$as_me.lineno &&
3185942a
JA
31759 chmod +x "$as_me.lineno" ||
31760 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b80f6443
JA
31761 { (exit 1); exit 1; }; }
31762
31763 # Don't try to exec as it changes $[0], causing all sort of problems
31764 # (the dirname of $[0] is not the place where we might find the
3185942a
JA
31765 # original and so on. Autoconf is especially sensitive to this).
31766 . "./$as_me.lineno"
b80f6443
JA
31767 # Exit status is that of the last command.
31768 exit
31769}
31770
31771
3185942a
JA
31772if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31773 as_dirname=dirname
31774else
31775 as_dirname=false
31776fi
f73dda09 31777
3185942a
JA
31778ECHO_C= ECHO_N= ECHO_T=
31779case `echo -n x` in
31780-n*)
31781 case `echo 'x\c'` in
31782 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31783 *) ECHO_C='\c';;
31784 esac;;
31785*)
31786 ECHO_N='-n';;
31787esac
31788if expr a : '\(a\)' >/dev/null 2>&1 &&
31789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f73dda09
JA
31790 as_expr=expr
31791else
31792 as_expr=false
31793fi
31794
31795rm -f conf$$ conf$$.exe conf$$.file
3185942a
JA
31796if test -d conf$$.dir; then
31797 rm -f conf$$.dir/conf$$.file
31798else
31799 rm -f conf$$.dir
31800 mkdir conf$$.dir 2>/dev/null
31801fi
31802if (echo >conf$$.file) 2>/dev/null; then
31803 if ln -s conf$$.file conf$$ 2>/dev/null; then
f73dda09 31804 as_ln_s='ln -s'
3185942a
JA
31805 # ... but there are two gotchas:
31806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31808 # In both cases, we have to default to `cp -p'.
31809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31810 as_ln_s='cp -p'
31811 elif ln conf$$.file conf$$ 2>/dev/null; then
31812 as_ln_s=ln
31813 else
31814 as_ln_s='cp -p'
f73dda09 31815 fi
f73dda09
JA
31816else
31817 as_ln_s='cp -p'
31818fi
3185942a
JA
31819rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31820rmdir conf$$.dir 2>/dev/null
f73dda09 31821
0628567a
JA
31822if mkdir -p . 2>/dev/null; then
31823 as_mkdir_p=:
31824else
31825 test -d ./-p && rmdir ./-p
31826 as_mkdir_p=false
31827fi
31828
3185942a
JA
31829if test -x / >/dev/null 2>&1; then
31830 as_test_x='test -x'
31831else
31832 if ls -dL / >/dev/null 2>&1; then
31833 as_ls_L_option=L
31834 else
31835 as_ls_L_option=
31836 fi
31837 as_test_x='
31838 eval sh -c '\''
31839 if test -d "$1"; then
31840 test -d "$1/.";
31841 else
31842 case $1 in
31843 -*)set "./$1";;
31844 esac;
31845 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31846 ???[sx]*):;;*)false;;esac;fi
31847 '\'' sh
31848 '
31849fi
31850as_executable_p=$as_test_x
b80f6443
JA
31851
31852# Sed expression to map a string onto a valid CPP name.
0628567a 31853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b80f6443
JA
31854
31855# Sed expression to map a string onto a valid variable name.
0628567a 31856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b80f6443 31857
f73dda09 31858
f73dda09
JA
31859exec 6>&1
31860
3185942a 31861# Save the log message, to keep $[0] and so on meaningful, and to
b80f6443 31862# report actual input values of CONFIG_FILES etc. instead of their
3185942a
JA
31863# values after options handling.
31864ac_log="
495aee44 31865This file was extended by bash $as_me 4.2-release, which was
3185942a 31866generated by GNU Autoconf 2.63. Invocation command line was
b80f6443
JA
31867
31868 CONFIG_FILES = $CONFIG_FILES
31869 CONFIG_HEADERS = $CONFIG_HEADERS
31870 CONFIG_LINKS = $CONFIG_LINKS
31871 CONFIG_COMMANDS = $CONFIG_COMMANDS
31872 $ $0 $@
31873
3185942a
JA
31874on `(hostname || uname -n) 2>/dev/null | sed 1q`
31875"
31876
f73dda09
JA
31877_ACEOF
31878
3185942a
JA
31879case $ac_config_files in *"
31880"*) set x $ac_config_files; shift; ac_config_files=$*;;
31881esac
f73dda09 31882
3185942a
JA
31883case $ac_config_headers in *"
31884"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31885esac
f73dda09 31886
f73dda09 31887
3185942a
JA
31888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31889# Files that config.status was made for.
31890config_files="$ac_config_files"
31891config_headers="$ac_config_headers"
31892config_commands="$ac_config_commands"
f73dda09 31893
3185942a 31894_ACEOF
f73dda09 31895
3185942a 31896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09
JA
31897ac_cs_usage="\
31898\`$as_me' instantiates files from templates according to the
31899current configuration.
31900
3185942a 31901Usage: $0 [OPTION]... [FILE]...
f73dda09
JA
31902
31903 -h, --help print this help, then exit
3185942a
JA
31904 -V, --version print version number and configuration settings, then exit
31905 -q, --quiet, --silent
31906 do not print progress messages
f73dda09
JA
31907 -d, --debug don't remove temporary files
31908 --recheck update $as_me by reconfiguring in the same conditions
3185942a
JA
31909 --file=FILE[:TEMPLATE]
31910 instantiate the configuration file FILE
31911 --header=FILE[:TEMPLATE]
31912 instantiate the configuration header FILE
f73dda09
JA
31913
31914Configuration files:
31915$config_files
31916
31917Configuration headers:
31918$config_headers
31919
31920Configuration commands:
31921$config_commands
31922
31923Report bugs to <bug-autoconf@gnu.org>."
f73dda09 31924
3185942a
JA
31925_ACEOF
31926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 31927ac_cs_version="\\
495aee44 31928bash config.status 4.2-release
3185942a
JA
31929configured by $0, generated by GNU Autoconf 2.63,
31930 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f73dda09 31931
3185942a 31932Copyright (C) 2008 Free Software Foundation, Inc.
f73dda09
JA
31933This config.status script is free software; the Free Software Foundation
31934gives unlimited permission to copy, distribute and modify it."
3185942a
JA
31935
31936ac_pwd='$ac_pwd'
31937srcdir='$srcdir'
31938INSTALL='$INSTALL'
31939test -n "\$AWK" || AWK=awk
b80f6443 31940_ACEOF
f73dda09 31941
3185942a
JA
31942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31943# The default lists apply if the user does not specify any file.
f73dda09
JA
31944ac_need_defaults=:
31945while test $# != 0
ccc6cda3 31946do
f73dda09
JA
31947 case $1 in
31948 --*=*)
3185942a
JA
31949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
0628567a
JA
31951 ac_shift=:
31952 ;;
3185942a 31953 *)
0628567a
JA
31954 ac_option=$1
31955 ac_optarg=$2
31956 ac_shift=shift
f73dda09 31957 ;;
f73dda09
JA
31958 esac
31959
0628567a 31960 case $ac_option in
f73dda09 31961 # Handling of the options.
0628567a
JA
31962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31963 ac_cs_recheck=: ;;
3185942a
JA
31964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31965 $as_echo "$ac_cs_version"; exit ;;
31966 --debug | --debu | --deb | --de | --d | -d )
f73dda09
JA
31967 debug=: ;;
31968 --file | --fil | --fi | --f )
0628567a 31969 $ac_shift
3185942a
JA
31970 case $ac_optarg in
31971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31972 esac
31973 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
f73dda09
JA
31974 ac_need_defaults=false;;
31975 --header | --heade | --head | --hea )
0628567a 31976 $ac_shift
3185942a
JA
31977 case $ac_optarg in
31978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31979 esac
31980 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
f73dda09 31981 ac_need_defaults=false;;
3185942a
JA
31982 --he | --h)
31983 # Conflict between --help and --header
31984 { $as_echo "$as_me: error: ambiguous option: $1
31985Try \`$0 --help' for more information." >&2
31986 { (exit 1); exit 1; }; };;
31987 --help | --hel | -h )
31988 $as_echo "$ac_cs_usage"; exit ;;
0628567a
JA
31989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31991 ac_cs_silent=: ;;
f73dda09
JA
31992
31993 # This is an error.
3185942a
JA
31994 -*) { $as_echo "$as_me: error: unrecognized option: $1
31995Try \`$0 --help' for more information." >&2
f73dda09
JA
31996 { (exit 1); exit 1; }; } ;;
31997
3185942a
JA
31998 *) ac_config_targets="$ac_config_targets $1"
31999 ac_need_defaults=false ;;
f73dda09 32000
ccc6cda3 32001 esac
f73dda09 32002 shift
ccc6cda3
JA
32003done
32004
0628567a
JA
32005ac_configure_extra_args=
32006
32007if $ac_cs_silent; then
32008 exec 6>/dev/null
32009 ac_configure_extra_args="$ac_configure_extra_args --silent"
32010fi
32011
32012_ACEOF
3185942a 32013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0628567a 32014if \$ac_cs_recheck; then
3185942a
JA
32015 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32016 shift
32017 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32018 CONFIG_SHELL='$SHELL'
32019 export CONFIG_SHELL
32020 exec "\$@"
0628567a
JA
32021fi
32022
b80f6443 32023_ACEOF
3185942a
JA
32024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32025exec 5>>config.log
32026{
32027 echo
32028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32029## Running $as_me. ##
32030_ASBOX
32031 $as_echo "$ac_log"
32032} >&5
b80f6443 32033
3185942a
JA
32034_ACEOF
32035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b80f6443 32036#
3185942a 32037# INIT-COMMANDS
b80f6443 32038#
b80f6443
JA
32039# Capture the value of obsolete ALL_LINGUAS because we need it to compute
32040 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32041 # from automake.
32042 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32043 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32044 LINGUAS="${LINGUAS-%UNSET%}"
f73dda09 32045
f73dda09
JA
32046
32047_ACEOF
ccc6cda3 32048
3185942a 32049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80f6443 32050
3185942a 32051# Handling of arguments.
f73dda09
JA
32052for ac_config_target in $ac_config_targets
32053do
3185942a
JA
32054 case $ac_config_target in
32055 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32056 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32058 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32059 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32060 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32061 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32062 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32063 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32064 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32065 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32066 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32067 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32068 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32069 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32070 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32071 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32072
32073 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32074$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
f73dda09
JA
32075 { (exit 1); exit 1; }; };;
32076 esac
32077done
32078
3185942a 32079
f73dda09
JA
32080# If the user did not use the arguments to specify the items to instantiate,
32081# then the envvar interface is used. Set only those that are not.
32082# We use the long form for the default assignment because of an extremely
32083# bizarre bug on SunOS 4.1.3.
32084if $ac_need_defaults; then
32085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32087 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32088fi
32089
0628567a 32090# Have a temporary directory for convenience. Make it in the build tree
3185942a 32091# simply because there is no reason against having it here, and in addition,
0628567a 32092# creating and moving files from /tmp can sometimes cause problems.
3185942a
JA
32093# Hook for its removal unless debugging.
32094# Note that there is a small window in which the directory will not be cleaned:
32095# after its creation but before its name has been assigned to `$tmp'.
f73dda09
JA
32096$debug ||
32097{
3185942a
JA
32098 tmp=
32099 trap 'exit_status=$?
32100 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32101' 0
f73dda09
JA
32102 trap '{ (exit 1); exit 1; }' 1 2 13 15
32103}
f73dda09 32104# Create a (secure) tmp directory for tmp files.
0628567a 32105
f73dda09 32106{
3185942a 32107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f73dda09
JA
32108 test -n "$tmp" && test -d "$tmp"
32109} ||
32110{
3185942a
JA
32111 tmp=./conf$$-$RANDOM
32112 (umask 077 && mkdir "$tmp")
f73dda09
JA
32113} ||
32114{
3185942a 32115 $as_echo "$as_me: cannot create a temporary directory in ." >&2
f73dda09
JA
32116 { (exit 1); exit 1; }
32117}
ccc6cda3 32118
3185942a
JA
32119# Set up the scripts for CONFIG_FILES section.
32120# No need to generate them if there are no CONFIG_FILES.
32121# This happens for instance with `./config.status config.h'.
32122if test -n "$CONFIG_FILES"; then
32123
32124
32125ac_cr='\r'
32126ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32127if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32128 ac_cs_awk_cr='\\r'
32129else
32130 ac_cs_awk_cr=$ac_cr
32131fi
32132
32133echo 'BEGIN {' >"$tmp/subs1.awk" &&
b80f6443 32134_ACEOF
ccc6cda3 32135
ccc6cda3 32136
3185942a
JA
32137{
32138 echo "cat >conf$$subs.awk <<_ACEOF" &&
32139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32140 echo "_ACEOF"
32141} >conf$$subs.sh ||
32142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32143$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32144 { (exit 1); exit 1; }; }
32145ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32146ac_delim='%!_!# '
32147for ac_last_try in false false false false false :; do
32148 . ./conf$$subs.sh ||
32149 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32150$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32151 { (exit 1); exit 1; }; }
f73dda09 32152
3185942a
JA
32153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32154 if test $ac_delim_n = $ac_delim_num; then
32155 break
32156 elif $ac_last_try; then
32157 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32158$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32159 { (exit 1); exit 1; }; }
32160 else
32161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ccc6cda3 32162 fi
3185942a
JA
32163done
32164rm -f conf$$subs.sh
32165
32166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32167cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32168_ACEOF
32169sed -n '
32170h
32171s/^/S["/; s/!.*/"]=/
32172p
32173g
32174s/^[^!]*!//
32175:repl
32176t repl
32177s/'"$ac_delim"'$//
32178t delim
32179:nl
32180h
32181s/\(.\{148\}\).*/\1/
32182t more1
32183s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32184p
32185n
32186b repl
32187:more1
32188s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32189p
32190g
32191s/.\{148\}//
32192t nl
32193:delim
32194h
32195s/\(.\{148\}\).*/\1/
32196t more2
32197s/["\\]/\\&/g; s/^/"/; s/$/"/
32198p
32199b
32200:more2
32201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32202p
32203g
32204s/.\{148\}//
32205t delim
32206' <conf$$subs.awk | sed '
32207/^[^""]/{
32208 N
32209 s/\n//
32210}
32211' >>$CONFIG_STATUS || ac_write_fail=1
32212rm -f conf$$subs.awk
32213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32214_ACAWK
32215cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32216 for (key in S) S_is_set[key] = 1
32217 FS = "\a"
32218
32219}
32220{
32221 line = $ 0
32222 nfields = split(line, field, "@")
32223 substed = 0
32224 len = length(field[1])
32225 for (i = 2; i < nfields; i++) {
32226 key = field[i]
32227 keylen = length(key)
32228 if (S_is_set[key]) {
32229 value = S[key]
32230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32231 len += length(value) + length(field[++i])
32232 substed = 1
32233 } else
32234 len += 1 + keylen
32235 }
32236
32237 print line
32238}
32239
32240_ACAWK
32241_ACEOF
32242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32243if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32245else
32246 cat
32247fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32248 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32249$as_echo "$as_me: error: could not setup config files machinery" >&2;}
32250 { (exit 1); exit 1; }; }
32251_ACEOF
32252
32253# VPATH may cause trouble with some makes, so we remove $(srcdir),
32254# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32255# trailing colons and then remove the whole line if VPATH becomes empty
32256# (actually we leave an empty line to preserve line numbers).
32257if test "x$srcdir" = x.; then
32258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32259s/:*\$(srcdir):*/:/
32260s/:*\${srcdir}:*/:/
32261s/:*@srcdir@:*/:/
32262s/^\([^=]*=[ ]*\):*/\1/
32263s/:*$//
32264s/^[^=]*=[ ]*$//
32265}'
32266fi
32267
32268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09 32269fi # test -n "$CONFIG_FILES"
ccc6cda3 32270
3185942a
JA
32271# Set up the scripts for CONFIG_HEADERS section.
32272# No need to generate them if there are no CONFIG_HEADERS.
32273# This happens for instance with `./config.status Makefile'.
32274if test -n "$CONFIG_HEADERS"; then
32275cat >"$tmp/defines.awk" <<\_ACAWK ||
32276BEGIN {
b80f6443 32277_ACEOF
3185942a
JA
32278
32279# Transform confdefs.h into an awk script `defines.awk', embedded as
32280# here-document in config.status, that substitutes the proper values into
32281# config.h.in to produce config.h.
32282
32283# Create a delimiter string that does not exist in confdefs.h, to ease
32284# handling of long lines.
32285ac_delim='%!_!# '
32286for ac_last_try in false false :; do
32287 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32288 if test -z "$ac_t"; then
32289 break
32290 elif $ac_last_try; then
32291 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32292$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32293 { (exit 1); exit 1; }; }
32294 else
32295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32296 fi
32297done
32298
32299# For the awk script, D is an array of macro values keyed by name,
32300# likewise P contains macro parameters if any. Preserve backslash
32301# newline sequences.
32302
32303ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32304sed -n '
32305s/.\{148\}/&'"$ac_delim"'/g
32306t rset
32307:rset
32308s/^[ ]*#[ ]*define[ ][ ]*/ /
32309t def
32310d
32311:def
32312s/\\$//
32313t bsnl
32314s/["\\]/\\&/g
32315s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32316D["\1"]=" \3"/p
32317s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32318d
32319:bsnl
32320s/["\\]/\\&/g
32321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32322D["\1"]=" \3\\\\\\n"\\/p
32323t cont
32324s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32325t cont
32326d
32327:cont
32328n
32329s/.\{148\}/&'"$ac_delim"'/g
32330t clear
32331:clear
32332s/\\$//
32333t bsnlc
32334s/["\\]/\\&/g; s/^/"/; s/$/"/p
32335d
32336:bsnlc
32337s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32338b cont
32339' <confdefs.h | sed '
32340s/'"$ac_delim"'/"\\\
32341"/g' >>$CONFIG_STATUS || ac_write_fail=1
32342
32343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32344 for (key in D) D_is_set[key] = 1
32345 FS = "\a"
32346}
32347/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32348 line = \$ 0
32349 split(line, arg, " ")
32350 if (arg[1] == "#") {
32351 defundef = arg[2]
32352 mac1 = arg[3]
32353 } else {
32354 defundef = substr(arg[1], 2)
32355 mac1 = arg[2]
32356 }
32357 split(mac1, mac2, "(") #)
32358 macro = mac2[1]
32359 prefix = substr(line, 1, index(line, defundef) - 1)
32360 if (D_is_set[macro]) {
32361 # Preserve the white space surrounding the "#".
32362 print prefix "define", macro P[macro] D[macro]
32363 next
32364 } else {
32365 # Replace #undef with comments. This is necessary, for example,
32366 # in the case of _POSIX_SOURCE, which is predefined and required
32367 # on some systems where configure will not decide to define it.
32368 if (defundef == "undef") {
32369 print "/*", prefix defundef, macro, "*/"
32370 next
32371 }
32372 }
32373}
32374{ print }
32375_ACAWK
32376_ACEOF
32377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32378 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32379$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32380 { (exit 1); exit 1; }; }
32381fi # test -n "$CONFIG_HEADERS"
32382
32383
32384eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32385shift
32386for ac_tag
32387do
32388 case $ac_tag in
32389 :[FHLC]) ac_mode=$ac_tag; continue;;
32390 esac
32391 case $ac_mode$ac_tag in
32392 :[FHL]*:*);;
32393 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32394$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32395 { (exit 1); exit 1; }; };;
32396 :[FH]-) ac_tag=-:-;;
32397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32398 esac
32399 ac_save_IFS=$IFS
32400 IFS=:
32401 set x $ac_tag
32402 IFS=$ac_save_IFS
32403 shift
32404 ac_file=$1
32405 shift
32406
32407 case $ac_mode in
32408 :L) ac_source=$1;;
32409 :[FH])
32410 ac_file_inputs=
32411 for ac_f
32412 do
32413 case $ac_f in
32414 -) ac_f="$tmp/stdin";;
32415 *) # Look for the file first in the build tree, then in the source tree
32416 # (if the path is not absolute). The absolute path cannot be DOS-style,
32417 # because $ac_f cannot contain `:'.
32418 test -f "$ac_f" ||
32419 case $ac_f in
32420 [\\/$]*) false;;
32421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32422 esac ||
32423 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32424$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32425 { (exit 1); exit 1; }; };;
32426 esac
32427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32428 ac_file_inputs="$ac_file_inputs '$ac_f'"
32429 done
32430
32431 # Let's still pretend it is `configure' which instantiates (i.e., don't
32432 # use $as_me), people would be surprised to read:
32433 # /* config.h. Generated by config.status. */
32434 configure_input='Generated from '`
32435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32436 `' by configure.'
32437 if test x"$ac_file" != x-; then
32438 configure_input="$ac_file. $configure_input"
32439 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32440$as_echo "$as_me: creating $ac_file" >&6;}
32441 fi
32442 # Neutralize special characters interpreted by sed in replacement strings.
32443 case $configure_input in #(
32444 *\&* | *\|* | *\\* )
32445 ac_sed_conf_input=`$as_echo "$configure_input" |
32446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32447 *) ac_sed_conf_input=$configure_input;;
32448 esac
32449
32450 case $ac_tag in
32451 *:-:* | *:-) cat >"$tmp/stdin" \
32452 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32453$as_echo "$as_me: error: could not create $ac_file" >&2;}
32454 { (exit 1); exit 1; }; } ;;
32455 esac
32456 ;;
ccc6cda3
JA
32457 esac
32458
3185942a 32459 ac_dir=`$as_dirname -- "$ac_file" ||
b80f6443 32460$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
0628567a
JA
32461 X"$ac_file" : 'X\(//\)[^/]' \| \
32462 X"$ac_file" : 'X\(//\)$' \| \
3185942a
JA
32463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32464$as_echo X"$ac_file" |
32465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32466 s//\1/
32467 q
32468 }
32469 /^X\(\/\/\)[^/].*/{
32470 s//\1/
32471 q
32472 }
32473 /^X\(\/\/\)$/{
32474 s//\1/
32475 q
32476 }
32477 /^X\(\/\).*/{
32478 s//\1/
32479 q
32480 }
32481 s/.*/./; q'`
32482 { as_dir="$ac_dir"
32483 case $as_dir in #(
32484 -*) as_dir=./$as_dir;;
32485 esac
32486 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
0628567a 32487 as_dirs=
3185942a
JA
32488 while :; do
32489 case $as_dir in #(
32490 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32491 *) as_qdir=$as_dir;;
32492 esac
32493 as_dirs="'$as_qdir' $as_dirs"
32494 as_dir=`$as_dirname -- "$as_dir" ||
0628567a
JA
32495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32496 X"$as_dir" : 'X\(//\)[^/]' \| \
32497 X"$as_dir" : 'X\(//\)$' \| \
3185942a
JA
32498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32499$as_echo X"$as_dir" |
32500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32501 s//\1/
32502 q
32503 }
32504 /^X\(\/\/\)[^/].*/{
32505 s//\1/
32506 q
32507 }
32508 /^X\(\/\/\)$/{
32509 s//\1/
32510 q
32511 }
32512 /^X\(\/\).*/{
32513 s//\1/
32514 q
32515 }
32516 s/.*/./; q'`
32517 test -d "$as_dir" && break
0628567a 32518 done
3185942a
JA
32519 test -z "$as_dirs" || eval "mkdir $as_dirs"
32520 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32521$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
0628567a 32522 { (exit 1); exit 1; }; }; }
b80f6443
JA
32523 ac_builddir=.
32524
3185942a
JA
32525case "$ac_dir" in
32526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32527*)
32528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32529 # A ".." for each directory in $ac_dir_suffix.
32530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32531 case $ac_top_builddir_sub in
32532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32534 esac ;;
32535esac
32536ac_abs_top_builddir=$ac_pwd
32537ac_abs_builddir=$ac_pwd$ac_dir_suffix
32538# for backward compatibility:
32539ac_top_builddir=$ac_top_build_prefix
b80f6443
JA
32540
32541case $srcdir in
3185942a 32542 .) # We are building in place.
b80f6443 32543 ac_srcdir=.
3185942a
JA
32544 ac_top_srcdir=$ac_top_builddir_sub
32545 ac_abs_top_srcdir=$ac_pwd ;;
32546 [\\/]* | ?:[\\/]* ) # Absolute name.
b80f6443 32547 ac_srcdir=$srcdir$ac_dir_suffix;
3185942a
JA
32548 ac_top_srcdir=$srcdir
32549 ac_abs_top_srcdir=$srcdir ;;
32550 *) # Relative name.
32551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32552 ac_top_srcdir=$ac_top_build_prefix$srcdir
32553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b80f6443 32554esac
3185942a 32555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
0628567a 32556
b80f6443 32557
3185942a
JA
32558 case $ac_mode in
32559 :F)
32560 #
32561 # CONFIG_FILE
32562 #
ccc6cda3 32563
f73dda09
JA
32564 case $INSTALL in
32565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3185942a 32566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
ccc6cda3 32567 esac
3185942a 32568_ACEOF
ccc6cda3 32569
3185942a
JA
32570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32571# If the template does not know about datarootdir, expand it.
32572# FIXME: This hack should be removed a few years after 2.60.
32573ac_datarootdir_hack=; ac_datarootdir_seen=
32574
32575ac_sed_dataroot='
32576/datarootdir/ {
32577 p
32578 q
32579}
32580/@datadir@/p
32581/@docdir@/p
32582/@infodir@/p
32583/@localedir@/p
32584/@mandir@/p
32585'
32586case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32587*datarootdir*) ac_datarootdir_seen=yes;;
32588*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32589 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32590$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32591_ACEOF
32592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32593 ac_datarootdir_hack='
32594 s&@datadir@&$datadir&g
32595 s&@docdir@&$docdir&g
32596 s&@infodir@&$infodir&g
32597 s&@localedir@&$localedir&g
32598 s&@mandir@&$mandir&g
32599 s&\\\${datarootdir}&$datarootdir&g' ;;
32600esac
b80f6443 32601_ACEOF
3185942a
JA
32602
32603# Neutralize VPATH when `$srcdir' = `.'.
32604# Shell code in configure.ac might set extrasub.
32605# FIXME: do we really want to maintain this feature?
32606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32607ac_sed_extra="$ac_vpsub
f73dda09 32608$extrasub
b80f6443 32609_ACEOF
3185942a 32610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09
JA
32611:t
32612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3185942a
JA
32613s|@configure_input@|$ac_sed_conf_input|;t t
32614s&@top_builddir@&$ac_top_builddir_sub&;t t
32615s&@top_build_prefix@&$ac_top_build_prefix&;t t
32616s&@srcdir@&$ac_srcdir&;t t
32617s&@abs_srcdir@&$ac_abs_srcdir&;t t
32618s&@top_srcdir@&$ac_top_srcdir&;t t
32619s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32620s&@builddir@&$ac_builddir&;t t
32621s&@abs_builddir@&$ac_abs_builddir&;t t
32622s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32623s&@INSTALL@&$ac_INSTALL&;t t
32624$ac_datarootdir_hack
32625"
32626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32627 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32628$as_echo "$as_me: error: could not create $ac_file" >&2;}
32629 { (exit 1); exit 1; }; }
ccc6cda3 32630
3185942a
JA
32631test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32634 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32635which seems to be undefined. Please make sure it is defined." >&5
32636$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32637which seems to be undefined. Please make sure it is defined." >&2;}
ccc6cda3 32638
3185942a 32639 rm -f "$tmp/stdin"
f73dda09 32640 case $ac_file in
3185942a
JA
32641 -) cat "$tmp/out" && rm -f "$tmp/out";;
32642 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32643 esac \
32644 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32645$as_echo "$as_me: error: could not create $ac_file" >&2;}
f73dda09 32646 { (exit 1); exit 1; }; }
3185942a
JA
32647 ;;
32648 :H)
32649 #
32650 # CONFIG_HEADER
32651 #
f73dda09 32652 if test x"$ac_file" != x-; then
3185942a
JA
32653 {
32654 $as_echo "/* $configure_input */" \
32655 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32656 } >"$tmp/config.h" \
32657 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32658$as_echo "$as_me: error: could not create $ac_file" >&2;}
32659 { (exit 1); exit 1; }; }
32660 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32661 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32662$as_echo "$as_me: $ac_file is unchanged" >&6;}
f73dda09 32663 else
3185942a
JA
32664 rm -f "$ac_file"
32665 mv "$tmp/config.h" "$ac_file" \
32666 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32667$as_echo "$as_me: error: could not create $ac_file" >&2;}
32668 { (exit 1); exit 1; }; }
ccc6cda3 32669 fi
f73dda09 32670 else
3185942a
JA
32671 $as_echo "/* $configure_input */" \
32672 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32673 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32674$as_echo "$as_me: error: could not create -" >&2;}
32675 { (exit 1); exit 1; }; }
ccc6cda3 32676 fi
3185942a 32677 ;;
0628567a 32678
3185942a
JA
32679 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32680$as_echo "$as_me: executing $ac_file commands" >&6;}
32681 ;;
32682 esac
b80f6443 32683
ccc6cda3 32684
3185942a
JA
32685 case $ac_file$ac_mode in
32686 "default-1":C)
b80f6443
JA
32687 for ac_file in $CONFIG_FILES; do
32688 # Support "outfile[:infile[:infile...]]"
32689 case "$ac_file" in
32690 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32691 esac
32692 # PO directories have a Makefile.in generated from Makefile.in.in.
32693 case "$ac_file" in */Makefile.in)
32694 # Adjust a relative srcdir.
32695 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32696 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32697 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32698 # In autoconf-2.13 it is called $ac_given_srcdir.
32699 # In autoconf-2.50 it is called $srcdir.
32700 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32701 case "$ac_given_srcdir" in
32702 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32703 /*) top_srcdir="$ac_given_srcdir" ;;
32704 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32705 esac
32706 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32707 rm -f "$ac_dir/POTFILES"
32708 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32709 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32710 POMAKEFILEDEPS="POTFILES.in"
32711 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32712 # on $ac_dir but don't depend on user-specified configuration
32713 # parameters.
32714 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32715 # The LINGUAS file contains the set of available languages.
32716 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32717 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32718 fi
32719 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32720 # Hide the ALL_LINGUAS assigment from automake.
32721 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32722 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32723 else
32724 # The set of available languages was given in configure.in.
32725 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32726 fi
32727 case "$ac_given_srcdir" in
32728 .) srcdirpre= ;;
32729 *) srcdirpre='$(srcdir)/' ;;
32730 esac
32731 POFILES=
32732 GMOFILES=
32733 UPDATEPOFILES=
32734 DUMMYPOFILES=
32735 for lang in $ALL_LINGUAS; do
32736 POFILES="$POFILES $srcdirpre$lang.po"
32737 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32738 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32739 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32740 done
32741 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32742 # environment variable.
32743 INST_LINGUAS=
32744 if test -n "$ALL_LINGUAS"; then
32745 for presentlang in $ALL_LINGUAS; do
32746 useit=no
32747 if test "%UNSET%" != "$LINGUAS"; then
32748 desiredlanguages="$LINGUAS"
32749 else
32750 desiredlanguages="$ALL_LINGUAS"
32751 fi
32752 for desiredlang in $desiredlanguages; do
32753 # Use the presentlang catalog if desiredlang is
32754 # a. equal to presentlang, or
32755 # b. a variant of presentlang (because in this case,
32756 # presentlang can be used as a fallback for messages
32757 # which are not translated in the desiredlang catalog).
32758 case "$desiredlang" in
32759 "$presentlang"*) useit=yes;;
32760 esac
32761 done
32762 if test $useit = yes; then
32763 INST_LINGUAS="$INST_LINGUAS $presentlang"
32764 fi
32765 done
32766 fi
32767 CATALOGS=
32768 if test -n "$INST_LINGUAS"; then
32769 for lang in $INST_LINGUAS; do
32770 CATALOGS="$CATALOGS $lang.gmo"
32771 done
32772 fi
32773 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32774 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32775 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32776 if test -f "$f"; then
32777 case "$f" in
32778 *.orig | *.bak | *~) ;;
32779 *) cat "$f" >> "$ac_dir/Makefile" ;;
32780 esac
32781 fi
32782 done
32783 fi
32784 ;;
32785 esac
32786 done ;;
3185942a 32787 "default":C)
ccc6cda3
JA
32788# Makefile uses this timestamp file to record whether config.h is up to date.
32789echo timestamp > stamp-h
f73dda09 32790 ;;
3185942a 32791
f73dda09 32792 esac
3185942a 32793done # for ac_tag
ccc6cda3 32794
f73dda09
JA
32795
32796{ (exit 0); exit 0; }
b80f6443 32797_ACEOF
ccc6cda3 32798chmod +x $CONFIG_STATUS
f73dda09
JA
32799ac_clean_files=$ac_clean_files_save
32800
3185942a
JA
32801test $ac_write_fail = 0 ||
32802 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32803$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32804 { (exit 1); exit 1; }; }
32805
b80f6443 32806
f73dda09
JA
32807# configure is writing to config.log, and then calls config.status.
32808# config.status does its own redirection, appending to config.log.
32809# Unfortunately, on DOS this fails, as config.log is still kept open
32810# by configure, so config.status won't be able to write to it; its
32811# output is simply discarded. So we exec the FD to /dev/null,
32812# effectively closing config.log, so it can be properly (re)opened and
32813# appended to by config.status. When coming back to configure, we
32814# need to make the FD available again.
32815if test "$no_create" != yes; then
32816 ac_cs_success=:
0628567a
JA
32817 ac_config_status_args=
32818 test "$silent" = yes &&
32819 ac_config_status_args="$ac_config_status_args --quiet"
f73dda09 32820 exec 5>/dev/null
0628567a 32821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f73dda09
JA
32822 exec 5>>config.log
32823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32824 # would make configure fail if this is the last instruction.
32825 $ac_cs_success || { (exit 1); exit 1; }
32826fi
3185942a
JA
32827if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32828 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32829$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32830fi
ccc6cda3 32831