]> git.ipfire.org Git - thirdparty/bash.git/blame - autom4te.cache/output.3
commit bash-20130215 snapshot
[thirdparty/bash.git] / autom4te.cache / output.3
CommitLineData
208fdb50 1@%:@! /bin/sh
73a146be 2@%:@ From configure.ac for Bash 4.3, version 4.056.
208fdb50
CR
3@%:@ Guess values for system-dependent variables and create Makefiles.
4@%:@ Generated by GNU Autoconf 2.68 for bash 4.3-alpha.
5@%:@
6@%:@ Report bugs to <bug-bash@gnu.org>.
7@%:@
8@%:@
9@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11@%:@ Foundation, Inc.
12@%:@
13@%:@
14@%:@ This configure script is free software; the Free Software Foundation
15@%:@ gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else
30 case `(set -o) 2>/dev/null` in @%:@(
31 *posix*) :
32 set -o posix ;; @%:@(
33 *) :
34 ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in @%:@(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order. Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" "" $as_nl"
93
94# Find who we are. Look in the path if we contain no directory separator.
95as_myself=
96case $0 in @%:@((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105IFS=$as_save_IFS
106
107 ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112 as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there. '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else
149 case \`(set -o) 2>/dev/null\` in @%:@(
150 *posix*) :
151 set -o posix ;; @%:@(
152 *) :
153 ;;
154esac
155fi
156"
157 as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else
182 as_have_required=no
183fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in @%:@(
195 /*)
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204fi
205fi
206 done;;
207 esac
208 as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
226 case $- in @%:@ ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247 fi
248 exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261@%:@ as_fn_unset VAR
262@%:@ ---------------
263@%:@ Portably unset VAR.
264as_fn_unset ()
265{
266 { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270@%:@ as_fn_set_status STATUS
271@%:@ -----------------------
272@%:@ Set @S|@? to STATUS, without forking.
273as_fn_set_status ()
274{
275 return $1
276} @%:@ as_fn_set_status
277
278@%:@ as_fn_exit STATUS
279@%:@ -----------------
280@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283 set +e
284 as_fn_set_status $1
285 exit $1
286} @%:@ as_fn_exit
287
288@%:@ as_fn_mkdir_p
289@%:@ -------------
290@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} @%:@ as_fn_mkdir_p
335@%:@ as_fn_append VAR VALUE
336@%:@ ----------------------
337@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
338@%:@ advantage of any shell optimizations that allow amortized linear growth over
339@%:@ repeated appends, instead of the typical quadratic growth present in naive
340@%:@ implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351fi # as_fn_append
352
353@%:@ as_fn_arith ARG...
354@%:@ ------------------
355@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
356@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
357@%:@ must be portable across @S|@(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368fi # as_fn_arith
369
370
371@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
372@%:@ ----------------------------------------
373@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375@%:@ script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385} @%:@ as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390else
391 as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396else
397 as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402else
403 as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in @%:@(((((
466-n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473*)
474 ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498else
499 as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in @%:@(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIB@&t@OBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='bash'
563PACKAGE_TARNAME='bash'
564PACKAGE_VERSION='4.3-alpha'
565PACKAGE_STRING='bash 4.3-alpha'
566PACKAGE_BUGREPORT='bug-bash@gnu.org'
567PACKAGE_URL=''
568
569ac_unique_file="shell.h"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584# include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589# include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_header_list=
607ac_func_list=
608ac_subst_vars='LTLIBOBJS
609LOCAL_DEFS
610LOCAL_LDFLAGS
611LOCAL_CFLAGS
612LOCAL_LIBS
613MALLOC_DEBUG
614DEBUG
615RELSTATUS
616BASHVERS
617ARFLAGS
618BUILD_DIR
619incdir
620PROFILE_FLAGS
621SHOBJ_STATUS
622SHOBJ_LIBS
623SHOBJ_XLDFLAGS
624SHOBJ_LDFLAGS
625SHOBJ_LD
626SHOBJ_CFLAGS
627SHOBJ_CC
628JOBS_O
629TERMCAP_DEP
630TERMCAP_LIB
631SIGLIST_O
632PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634TIME_H_DEFINES_STRUCT_TIMESPEC
635LIBINTL_H
636INTL_INC
637INTL_DEP
638LIB@&t@OBJS
639POSUB
640LTLIBINTL
641LIBINTL
642INTLLIBS
643INTL_LIBTOOL_SUFFIX_PREFIX
644INTLOBJS
645GENCAT
646INSTOBJEXT
647DATADIRNAME
648CATOBJEXT
649USE_INCLUDED_LIBINTL
650BUILD_INCLUDED_LIBINTL
651INTLBISON
652LTLIBICONV
653LIBICONV
654GLIBC21
655ALLOCA
656MSGMERGE
657XGETTEXT
658GMSGFMT
659MSGFMT
660USE_NLS
661MKINSTALLDIRS
662SIZE
663MAKE_SHELL
664SET_MAKE
665YFLAGS
666YACC
667RANLIB
668AR
669INSTALL_DATA
670INSTALL_SCRIPT
671INSTALL_PROGRAM
672TILDE_LIB
673HIST_LIBDIR
674HISTORY_DEP
675HISTORY_LIB
676RL_INCLUDE
677RL_INCLUDEDIR
678RL_LIBDIR
679READLINE_DEP
680READLINE_LIB
681RL_MINOR
682RL_MAJOR
683RL_VERSION
684LIBS_FOR_BUILD
685STATIC_LD
686SIGNAMES_O
687SIGNAMES_H
688CROSS_COMPILE
689EGREP
690GREP
691CPP
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699HELPSTRINGS
700HELPFILES_TARGET
701HELPINSTALL
702HELPDIRDEFINE
703HELPDIR
704MALLOC_DEP
705MALLOC_LDFLAGS
706MALLOC_LIBRARY
707MALLOC_LIB
708MALLOC_SRC
709MALLOC_TARGET
710PURIFY
711TESTSCRIPT
712CPPFLAGS_FOR_BUILD
713LDFLAGS_FOR_BUILD
714CFLAGS_FOR_BUILD
715CC_FOR_BUILD
716DEBUGGER_START_FILE
717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766with_afs
767with_bash_malloc
768with_curses
769with_gnu_malloc
770with_installed_readline
771with_purecov
772with_purify
773enable_minimal_config
774enable_alias
775enable_arith_for_command
776enable_array_variables
777enable_bang_history
778enable_brace_expansion
779enable_casemod_attributes
780enable_casemod_expansions
781enable_command_timing
782enable_cond_command
783enable_cond_regexp
784enable_coprocesses
785enable_debugger
786enable_direxpand_default
787enable_directory_stack
788enable_disabled_builtins
789enable_dparen_arithmetic
790enable_extended_glob
791enable_extended_glob_default
792enable_help_builtin
793enable_history
794enable_job_control
795enable_multibyte
796enable_net_redirections
797enable_process_substitution
798enable_progcomp
799enable_prompt_string_decoding
800enable_readline
801enable_restricted
802enable_select
803enable_separate_helpfiles
804enable_single_help_strings
805enable_strict_posix_default
806enable_usg_echo_default
807enable_xpg_echo_default
808enable_mem_scramble
809enable_profiling
810enable_static_link
811enable_largefile
812enable_nls
813with_gnu_ld
814enable_rpath
815with_libiconv_prefix
816with_included_gettext
817with_libintl_prefix
818'
819 ac_precious_vars='build_alias
820host_alias
821target_alias
822DEBUGGER_START_FILE
823CC_FOR_BUILD
824CFLAGS_FOR_BUILD
825LDFLAGS_FOR_BUILD
826CPPFLAGS_FOR_BUILD
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832CPP
833YACC
834YFLAGS'
835
836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
840ac_unrecognized_opts=
841ac_unrecognized_sep=
842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
864# (The list follows the same order as the GNU Coding Standards.)
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
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--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used" >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
1301
1302
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377\`configure' configures bash 4.3-alpha to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 @<:@@S|@ac_default_prefix@:>@
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 @<:@PREFIX@:>@
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of bash 4.3-alpha:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-minimal-config a minimal sh-like configuration
1451 --enable-alias enable shell aliases
1452 --enable-arith-for-command
1453 enable arithmetic for command
1454 --enable-array-variables
1455 include shell array variables
1456 --enable-bang-history turn on csh-style history substitution
1457 --enable-brace-expansion
1458 include brace expansion
1459 --enable-casemod-attributes
1460 include case-modifying variable attributes
1461 --enable-casemod-expansions
1462 include case-modifying word expansions
1463 --enable-command-timing enable the time reserved word and command timing
1464 --enable-cond-command enable the conditional command
1465 --enable-cond-regexp enable extended regular expression matching in
1466 conditional commands
1467 --enable-coprocesses enable coprocess support and the coproc reserved
1468 word
1469 --enable-debugger enable support for bash debugger
1470 --enable-direxpand-default
1471 enable the direxpand shell option by default
1472 --enable-directory-stack
1473 enable builtins pushd/popd/dirs
1474 --enable-disabled-builtins
1475 allow disabled builtins to still be invoked
1476 --enable-dparen-arithmetic
1477 include ((...)) command
1478 --enable-extended-glob include ksh-style extended pattern matching
1479 --enable-extended-glob-default
1480 force extended pattern matching to be enabled by
1481 default
1482 --enable-help-builtin include the help builtin
1483 --enable-history turn on command history
1484 --enable-job-control enable job control features
1485 --enable-multibyte enable multibyte characters if OS supports them
1486 --enable-net-redirections
1487 enable /dev/tcp/host/port redirection
1488 --enable-process-substitution
1489 enable process substitution
1490 --enable-progcomp enable programmable completion and the complete
1491 builtin
1492 --enable-prompt-string-decoding
1493 turn on escape character decoding in prompts
1494 --enable-readline turn on command line editing
1495 --enable-restricted enable a restricted shell
1496 --enable-select include select command
1497 --enable-separate-helpfiles
1498 use external files for help builtin documentation
1499 --enable-single-help-strings
1500 store help documentation as a single string to ease
1501 translation
1502 --enable-strict-posix-default
1503 configure bash to be posix-conformant by default
1504 --enable-usg-echo-default
1505 a synonym for --enable-xpg-echo-default
1506 --enable-xpg-echo-default
1507 make the echo builtin expand escape sequences by
1508 default
1509 --enable-mem-scramble scramble memory on calls to malloc and free
1510 --enable-profiling allow profiling with gprof
1511 --enable-static-link link bash statically, for use as a root shell
1512 --disable-largefile omit support for large files
1513 --disable-nls do not use Native Language Support
1514 --disable-rpath do not hardcode runtime library paths
1515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-afs if you are running AFS
1520 --with-bash-malloc use the Bash version of malloc
1521 --with-curses use the curses library instead of the termcap
1522 library
1523 --with-gnu-malloc synonym for --with-bash-malloc
1524 --with-installed-readline
1525 use a version of the readline library that is
1526 already installed
1527 --with-purecov configure to postprocess with pure coverage
1528 --with-purify configure to postprocess with purify
1529 --with-gnu-ld assume the C compiler uses GNU ld default=no
1530 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1531 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1532 --with-included-gettext use the GNU gettext library included here
1533 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1534 --without-libintl-prefix don't search for libintl in includedir and libdir
1535
1536Some influential environment variables:
1537 DEBUGGER_START_FILE
1538 location of bash debugger initialization file
1539 CC_FOR_BUILD
1540 C compiler used when compiling binaries used only at build time
1541 CFLAGS_FOR_BUILD
1542 Compliation options (CFLAGS) used when compiling binaries used
1543 only at build time
1544 LDFLAGS_FOR_BUILD
1545 Linker options (LDFLAGS) used when compiling binaries used only
1546 at build time
1547 CPPFLAGS_FOR_BUILD
1548 C preprocessor options (CPPFLAGS) used when compiling binaries
1549 used only at build time
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 YACC The `Yet Another Compiler Compiler' implementation to use.
1559 Defaults to the first program found out of: `bison -y', `byacc',
1560 `yacc'.
1561 YFLAGS The list of arguments that will be passed by default to @S|@YACC.
1562 This script will default YFLAGS to the empty string to avoid a
1563 default value of `-d' given by some make applications.
1564
1565Use these variables to override the choices made by `configure' or to help
1566it to find libraries and programs with nonstandard names/locations.
1567
1568Report bugs to <bug-bash@gnu.org>.
1569_ACEOF
1570ac_status=$?
1571fi
1572
1573if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 continue
1579 ac_builddir=.
1580
1581case "$ac_dir" in
1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583*)
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591esac
1592ac_abs_top_builddir=$ac_pwd
1593ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594# for backward compatibility:
1595ac_top_builddir=$ac_top_build_prefix
1596
1597case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610esac
1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626fi
1627
1628test -n "$ac_init_help" && exit $ac_status
1629if $ac_init_version; then
1630 cat <<\_ACEOF
1631bash configure 4.3-alpha
1632generated by GNU Autoconf 2.68
1633
1634Copyright (C) 2010 Free Software Foundation, Inc.
1635This configure script is free software; the Free Software Foundation
1636gives unlimited permission to copy, distribute and modify it.
1637_ACEOF
1638 exit
1639fi
1640
1641## ------------------------ ##
1642## Autoconf initialization. ##
1643## ------------------------ ##
1644
1645@%:@ ac_fn_c_try_compile LINENO
1646@%:@ --------------------------
1647@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1648ac_fn_c_try_compile ()
1649{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1653case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681} @%:@ ac_fn_c_try_compile
1682
1683@%:@ ac_fn_c_try_link LINENO
1684@%:@ -----------------------
1685@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1686ac_fn_c_try_link ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest$ac_exeext
1711 }; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727} @%:@ ac_fn_c_try_link
1728
1729@%:@ ac_fn_c_try_cpp LINENO
1730@%:@ ----------------------
1731@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1732ac_fn_c_try_cpp ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } > conftest.i && {
1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760fi
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764} @%:@ ac_fn_c_try_cpp
1765
1766@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767@%:@ -------------------------------------------------------
1768@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769@%:@ the include files in INCLUDES and setting the cache variable VAR
1770@%:@ accordingly.
1771ac_fn_c_check_header_mongrel ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if eval \${$3+:} false; then :
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783else
1784 # Is the header compilable?
1785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786$as_echo_n "checking $2 usability... " >&6; }
1787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790@%:@include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"; then :
1793 ac_header_compiler=yes
1794else
1795 ac_header_compiler=no
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799$as_echo "$ac_header_compiler" >&6; }
1800
1801# Is the header present?
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803$as_echo_n "checking $2 presence... " >&6; }
1804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h. */
1806@%:@include <$2>
1807_ACEOF
1808if ac_fn_c_try_cpp "$LINENO"; then :
1809 ac_header_preproc=yes
1810else
1811 ac_header_preproc=no
1812fi
1813rm -f conftest.err conftest.i conftest.$ac_ext
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815$as_echo "$ac_header_preproc" >&6; }
1816
1817# So? What about this header?
1818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819 yes:no: )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 ;;
1825 no:yes:* )
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1829$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1833$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836( $as_echo "## ------------------------------- ##
1837## Report this to bug-bash@gnu.org ##
1838## ------------------------------- ##"
1839 ) | sed "s/^/$as_me: WARNING: /" >&2
1840 ;;
1841esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846else
1847 eval "$3=\$ac_header_compiler"
1848fi
1849eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851$as_echo "$ac_res" >&6; }
1852fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} @%:@ ac_fn_c_check_header_mongrel
1856
1857@%:@ ac_fn_c_try_run LINENO
1858@%:@ ----------------------
1859@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1860@%:@ that executables *can* be run.
1861ac_fn_c_try_run ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1885 ac_retval=0
1886else
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=$ac_status
1892fi
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897} @%:@ ac_fn_c_try_run
1898
1899@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900@%:@ -------------------------------------------------------
1901@%:@ Tests whether HEADER exists and can be compiled using the include files in
1902@%:@ INCLUDES, setting the cache variable VAR accordingly.
1903ac_fn_c_check_header_compile ()
1904{
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h. */
1913$4
1914@%:@include <$2>
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$3=yes"
1918else
1919 eval "$3=no"
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} @%:@ ac_fn_c_check_header_compile
1929
1930@%:@ ac_fn_c_check_func LINENO FUNC VAR
1931@%:@ ----------------------------------
1932@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1933ac_fn_c_check_func ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945#define $2 innocuous_$2
1946
1947/* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1951
1952#ifdef __STDC__
1953# include <limits.h>
1954#else
1955# include <assert.h>
1956#endif
1957
1958#undef $2
1959
1960/* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1963#ifdef __cplusplus
1964extern "C"
1965#endif
1966char $2 ();
1967/* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970#if defined __stub_$2 || defined __stub___$2
1971choke me
1972#endif
1973
1974int
1975main ()
1976{
1977return $2 ();
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_link "$LINENO"; then :
1983 eval "$3=yes"
1984else
1985 eval "$3=no"
1986fi
1987rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} @%:@ ac_fn_c_check_func
1996
1997@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998@%:@ -------------------------------------------
1999@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2000@%:@ variable VAR accordingly.
2001ac_fn_c_check_type ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
2006if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008else
2009 eval "$3=no"
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016if (sizeof ($2))
2017 return 0;
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$4
2026int
2027main ()
2028{
2029if (sizeof (($2)))
2030 return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036
2037else
2038 eval "$3=yes"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049} @%:@ ac_fn_c_check_type
2050
2051@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2052@%:@ ---------------------------------------------
2053@%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2054@%:@ accordingly.
2055ac_fn_c_check_decl ()
2056{
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 as_decl_name=`echo $2|sed 's/ *(.*//'`
2059 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2061$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2062if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071@%:@ifndef $as_decl_name
2072@%:@ifdef __cplusplus
2073 (void) $as_decl_use;
2074@%:@else
2075 (void) $as_decl_name;
2076@%:@endif
2077@%:@endif
2078
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085else
2086 eval "$3=no"
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089fi
2090eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095} @%:@ ac_fn_c_check_decl
2096
2097@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098@%:@ --------------------------------------------
2099@%:@ Tries to find the compile-time value of EXPR in a program that includes
2100@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2101@%:@ computed
2102ac_fn_c_compute_int ()
2103{
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2114test_array @<:@0@:>@ = 0
2115
2116 ;
2117 return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125$4
2126int
2127main ()
2128{
2129static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2130test_array @<:@0@:>@ = 0
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2138else
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2141 ac_lo= ac_hi=
2142 break
2143 fi
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h. */
2151$4
2152int
2153main ()
2154{
2155static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2156test_array @<:@0@:>@ = 0
2157
2158 ;
2159 return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h. */
2167$4
2168int
2169main ()
2170{
2171static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2172test_array @<:@0@:>@ = 0
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2180else
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2183 ac_lo= ac_hi=
2184 break
2185 fi
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190else
2191 ac_lo= ac_hi=
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196# Binary search between lo and hi bounds.
2197while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202int
2203main ()
2204{
2205static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2206test_array @<:@0@:>@ = 0
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218done
2219case $ac_lo in @%:@((
2220?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221'') ac_retval=1 ;;
2222esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227static long int longval () { return $2; }
2228static unsigned long int ulongval () { return $2; }
2229@%:@include <stdio.h>
2230@%:@include <stdlib.h>
2231int
2232main ()
2233{
2234
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2239 {
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2244 }
2245 else
2246 {
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2251 }
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2255
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262else
2263 ac_retval=1
2264fi
2265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267rm -f conftest.val
2268
2269 fi
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 as_fn_set_status $ac_retval
2272
2273} @%:@ ac_fn_c_compute_int
2274
2275@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2276@%:@ ----------------------------------------------------
2277@%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2278@%:@ INCLUDES, setting cache variable VAR accordingly.
2279ac_fn_c_check_member ()
2280{
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2283$as_echo_n "checking for $2.$3... " >&6; }
2284if eval \${$4+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288/* end confdefs.h. */
2289$5
2290int
2291main ()
2292{
2293static $2 ac_aggr;
2294if (ac_aggr.$3)
2295return 0;
2296 ;
2297 return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$4=yes"
2302else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$5
2306int
2307main ()
2308{
2309static $2 ac_aggr;
2310if (sizeof ac_aggr.$3)
2311return 0;
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$4=yes"
2318else
2319 eval "$4=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322fi
2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324fi
2325eval ac_res=\$$4
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327$as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330} @%:@ ac_fn_c_check_member
2331cat >config.log <<_ACEOF
2332This file contains any messages produced by compilers while
2333running configure, to aid debugging if configure makes a mistake.
2334
2335It was created by bash $as_me 4.3-alpha, which was
2336generated by GNU Autoconf 2.68. Invocation command line was
2337
2338 $ $0 $@
2339
2340_ACEOF
2341exec 5>>config.log
2342{
2343cat <<_ASUNAME
2344## --------- ##
2345## Platform. ##
2346## --------- ##
2347
2348hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2349uname -m = `(uname -m) 2>/dev/null || echo unknown`
2350uname -r = `(uname -r) 2>/dev/null || echo unknown`
2351uname -s = `(uname -s) 2>/dev/null || echo unknown`
2352uname -v = `(uname -v) 2>/dev/null || echo unknown`
2353
2354/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2355/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2356
2357/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2358/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2359/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2360/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2361/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2362/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2363/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2364
2365_ASUNAME
2366
2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2369do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 $as_echo "PATH: $as_dir"
2373 done
2374IFS=$as_save_IFS
2375
2376} >&5
2377
2378cat >&5 <<_ACEOF
2379
2380
2381## ----------- ##
2382## Core tests. ##
2383## ----------- ##
2384
2385_ACEOF
2386
2387
2388# Keep a trace of the command line.
2389# Strip out --no-create and --no-recursion so they do not pile up.
2390# Strip out --silent because we don't want to record it for future runs.
2391# Also quote any args containing shell meta-characters.
2392# Make two passes to allow for proper duplicate-argument suppression.
2393ac_configure_args=
2394ac_configure_args0=
2395ac_configure_args1=
2396ac_must_keep_next=false
2397for ac_pass in 1 2
2398do
2399 for ac_arg
2400 do
2401 case $ac_arg in
2402 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2404 | -silent | --silent | --silen | --sile | --sil)
2405 continue ;;
2406 *\'*)
2407 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2408 esac
2409 case $ac_pass in
2410 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2411 2)
2412 as_fn_append ac_configure_args1 " '$ac_arg'"
2413 if test $ac_must_keep_next = true; then
2414 ac_must_keep_next=false # Got value, back to normal.
2415 else
2416 case $ac_arg in
2417 *=* | --config-cache | -C | -disable-* | --disable-* \
2418 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2419 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2420 | -with-* | --with-* | -without-* | --without-* | --x)
2421 case "$ac_configure_args0 " in
2422 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2423 esac
2424 ;;
2425 -* ) ac_must_keep_next=true ;;
2426 esac
2427 fi
2428 as_fn_append ac_configure_args " '$ac_arg'"
2429 ;;
2430 esac
2431 done
2432done
2433{ ac_configure_args0=; unset ac_configure_args0;}
2434{ ac_configure_args1=; unset ac_configure_args1;}
2435
2436# When interrupted or exit'd, cleanup temporary files, and complete
2437# config.log. We remove comments because anyway the quotes in there
2438# would cause problems or look ugly.
2439# WARNING: Use '\'' to represent an apostrophe within the trap.
2440# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2441trap 'exit_status=$?
2442 # Save into config.log some information that might help in debugging.
2443 {
2444 echo
2445
2446 $as_echo "## ---------------- ##
2447## Cache variables. ##
2448## ---------------- ##"
2449 echo
2450 # The following way of writing the cache mishandles newlines in values,
2451(
2452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in #(
2455 *${as_nl}*)
2456 case $ac_var in #(
2457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2458$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2459 esac
2460 case $ac_var in #(
2461 _ | IFS | as_nl) ;; #(
2462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2463 *) { eval $ac_var=; unset $ac_var;} ;;
2464 esac ;;
2465 esac
2466 done
2467 (set) 2>&1 |
2468 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2469 *${as_nl}ac_space=\ *)
2470 sed -n \
2471 "s/'\''/'\''\\\\'\'''\''/g;
2472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2473 ;; #(
2474 *)
2475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2476 ;;
2477 esac |
2478 sort
2479)
2480 echo
2481
2482 $as_echo "## ----------------- ##
2483## Output variables. ##
2484## ----------------- ##"
2485 echo
2486 for ac_var in $ac_subst_vars
2487 do
2488 eval ac_val=\$$ac_var
2489 case $ac_val in
2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491 esac
2492 $as_echo "$ac_var='\''$ac_val'\''"
2493 done | sort
2494 echo
2495
2496 if test -n "$ac_subst_files"; then
2497 $as_echo "## ------------------- ##
2498## File substitutions. ##
2499## ------------------- ##"
2500 echo
2501 for ac_var in $ac_subst_files
2502 do
2503 eval ac_val=\$$ac_var
2504 case $ac_val in
2505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506 esac
2507 $as_echo "$ac_var='\''$ac_val'\''"
2508 done | sort
2509 echo
2510 fi
2511
2512 if test -s confdefs.h; then
2513 $as_echo "## ----------- ##
2514## confdefs.h. ##
2515## ----------- ##"
2516 echo
2517 cat confdefs.h
2518 echo
2519 fi
2520 test "$ac_signal" != 0 &&
2521 $as_echo "$as_me: caught signal $ac_signal"
2522 $as_echo "$as_me: exit $exit_status"
2523 } >&5
2524 rm -f core *.core core.conftest.* &&
2525 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2526 exit $exit_status
2527' 0
2528for ac_signal in 1 2 13 15; do
2529 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2530done
2531ac_signal=0
2532
2533# confdefs.h avoids OS command line length limits that DEFS can exceed.
2534rm -f -r conftest* confdefs.h
2535
2536$as_echo "/* confdefs.h */" > confdefs.h
2537
2538# Predefined preprocessor variables.
2539
2540cat >>confdefs.h <<_ACEOF
2541@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2542_ACEOF
2543
2544cat >>confdefs.h <<_ACEOF
2545@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2546_ACEOF
2547
2548cat >>confdefs.h <<_ACEOF
2549@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2550_ACEOF
2551
2552cat >>confdefs.h <<_ACEOF
2553@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2554_ACEOF
2555
2556cat >>confdefs.h <<_ACEOF
2557@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2558_ACEOF
2559
2560cat >>confdefs.h <<_ACEOF
2561@%:@define PACKAGE_URL "$PACKAGE_URL"
2562_ACEOF
2563
2564
2565# Let the site file select an alternate cache file if it wants to.
2566# Prefer an explicitly selected file to automatically selected ones.
2567ac_site_file1=NONE
2568ac_site_file2=NONE
2569if test -n "$CONFIG_SITE"; then
2570 # We do not want a PATH search for config.site.
2571 case $CONFIG_SITE in @%:@((
2572 -*) ac_site_file1=./$CONFIG_SITE;;
2573 */*) ac_site_file1=$CONFIG_SITE;;
2574 *) ac_site_file1=./$CONFIG_SITE;;
2575 esac
2576elif test "x$prefix" != xNONE; then
2577 ac_site_file1=$prefix/share/config.site
2578 ac_site_file2=$prefix/etc/config.site
2579else
2580 ac_site_file1=$ac_default_prefix/share/config.site
2581 ac_site_file2=$ac_default_prefix/etc/config.site
2582fi
2583for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2584do
2585 test "x$ac_site_file" = xNONE && continue
2586 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2588$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2589 sed 's/^/| /' "$ac_site_file" >&5
2590 . "$ac_site_file" \
2591 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593as_fn_error $? "failed to load site script $ac_site_file
2594See \`config.log' for more details" "$LINENO" 5; }
2595 fi
2596done
2597
2598if test -r "$cache_file"; then
2599 # Some versions of bash will fail to source /dev/null (special files
2600 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2601 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2603$as_echo "$as_me: loading cache $cache_file" >&6;}
2604 case $cache_file in
2605 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2606 *) . "./$cache_file";;
2607 esac
2608 fi
2609else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2611$as_echo "$as_me: creating cache $cache_file" >&6;}
2612 >$cache_file
2613fi
2614
2615as_fn_append ac_header_list " stdlib.h"
2616as_fn_append ac_header_list " unistd.h"
2617as_fn_append ac_header_list " sys/param.h"
2618as_fn_append ac_header_list " sys/time.h"
2619as_fn_append ac_func_list " alarm"
2620as_fn_append ac_func_list " fpurge"
2621as_fn_append ac_func_list " __fpurge"
2622as_fn_append ac_func_list " snprintf"
2623as_fn_append ac_func_list " vsnprintf"
2624# Check that the precious variables saved in the cache have kept the same
2625# value.
2626ac_cache_corrupted=false
2627for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2633 set,)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,set)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2641 ,);;
2642 *)
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 fi;;
2661 esac
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2664 case $ac_new_val in
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2667 esac
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 esac
2672 fi
2673done
2674if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680fi
2681## -------------------- ##
2682## Main body of script. ##
2683## -------------------- ##
2684
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693
2694
2695
2696ac_aux_dir=
2697for ac_dir in ./support "$srcdir"/./support; do
2698 if test -f "$ac_dir/install-sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install-sh -c"
2701 break
2702 elif test -f "$ac_dir/install.sh"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/install.sh -c"
2705 break
2706 elif test -f "$ac_dir/shtool"; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/shtool install -c"
2709 break
2710 fi
2711done
2712if test -z "$ac_aux_dir"; then
2713 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2714fi
2715
2716# These three variables are undocumented and unsupported,
2717# and are intended to be withdrawn in a future Autoconf release.
2718# They can cause serious problems if a builder's source tree is in a directory
2719# whose full name contains unusual characters.
2720ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2721ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2722ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2723
2724
2725ac_config_headers="$ac_config_headers config.h"
2726
2727
2728BASHVERS=4.3
2729RELSTATUS=alpha
2730
2731case "$RELSTATUS" in
2732alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2733*) DEBUG= MALLOC_DEBUG= ;;
2734esac
2735
2736# Make sure we can run config.sub.
2737$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2738 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2739
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2741$as_echo_n "checking build system type... " >&6; }
2742if ${ac_cv_build+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744else
2745 ac_build_alias=$build_alias
2746test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748test "x$ac_build_alias" = x &&
2749 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2750ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2751 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2752
2753fi
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2755$as_echo "$ac_cv_build" >&6; }
2756case $ac_cv_build in
2757*-*-*) ;;
2758*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2759esac
2760build=$ac_cv_build
2761ac_save_IFS=$IFS; IFS='-'
2762set x $ac_cv_build
2763shift
2764build_cpu=$1
2765build_vendor=$2
2766shift; shift
2767# Remember, the first character of IFS is used to create $*,
2768# except with old shells:
2769build_os=$*
2770IFS=$ac_save_IFS
2771case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2772
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2775$as_echo_n "checking host system type... " >&6; }
2776if ${ac_cv_host+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 if test "x$host_alias" = x; then
2780 ac_cv_host=$ac_cv_build
2781else
2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2784fi
2785
2786fi
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2788$as_echo "$ac_cv_host" >&6; }
2789case $ac_cv_host in
2790*-*-*) ;;
2791*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2792esac
2793host=$ac_cv_host
2794ac_save_IFS=$IFS; IFS='-'
2795set x $ac_cv_host
2796shift
2797host_cpu=$1
2798host_vendor=$2
2799shift; shift
2800# Remember, the first character of IFS is used to create $*,
2801# except with old shells:
2802host_os=$*
2803IFS=$ac_save_IFS
2804case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2805
2806
2807
2808
2809opt_bash_malloc=yes
2810opt_purify=no
2811opt_purecov=no
2812opt_afs=no
2813opt_curses=no
2814opt_with_installed_readline=no
2815
2816#htmldir=
2817
2818case "${host_cpu}-${host_os}" in
2819alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2820*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2821*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2822sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2823sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2824mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2825m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2826sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2827#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2828#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2829*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2830*-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2831*-aix*) opt_bash_malloc=no ;; # AIX machines
2832*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
10e78433 2833*-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep
208fdb50
CR
2834*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2835*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2836*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2837*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2838*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2839*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2840*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2841*-beos*) opt_bash_malloc=no ;; # they say it's suitable
2842*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2843*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2844*-nsk*) opt_bash_malloc=no ;; # HP NonStop
2845esac
2846
2847# memory scrambling on free()
2848case "${host_os}" in
2849sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2850*) opt_memscramble=yes ;;
2851esac
2852
2853
2854
2855
2856@%:@ Check whether --with-afs was given.
2857if test "${with_afs+set}" = set; then :
2858 withval=$with_afs; opt_afs=$withval
2859fi
2860
2861
2862@%:@ Check whether --with-bash-malloc was given.
2863if test "${with_bash_malloc+set}" = set; then :
2864 withval=$with_bash_malloc; opt_bash_malloc=$withval
2865fi
2866
2867
2868@%:@ Check whether --with-curses was given.
2869if test "${with_curses+set}" = set; then :
2870 withval=$with_curses; opt_curses=$withval
2871fi
2872
2873
2874@%:@ Check whether --with-gnu-malloc was given.
2875if test "${with_gnu_malloc+set}" = set; then :
2876 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2877fi
2878
2879
2880@%:@ Check whether --with-installed-readline was given.
2881if test "${with_installed_readline+set}" = set; then :
2882 withval=$with_installed_readline; opt_with_installed_readline=$withval
2883fi
2884
2885
2886@%:@ Check whether --with-purecov was given.
2887if test "${with_purecov+set}" = set; then :
2888 withval=$with_purecov; opt_purecov=$withval
2889fi
2890
2891
2892@%:@ Check whether --with-purify was given.
2893if test "${with_purify+set}" = set; then :
2894 withval=$with_purify; opt_purify=$withval
2895fi
2896
2897
2898if test "$opt_bash_malloc" = yes; then
2899 MALLOC_TARGET=malloc
2900 MALLOC_SRC=malloc.c
2901
2902 MALLOC_LIB='-lmalloc'
2903 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2904 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2905 MALLOC_DEP='$(MALLOC_LIBRARY)'
2906
2907 $as_echo "@%:@define USING_BASH_MALLOC 1" >>confdefs.h
2908
2909else
2910 MALLOC_LIB=
2911 MALLOC_LIBRARY=
2912 MALLOC_LDFLAGS=
2913 MALLOC_DEP=
2914fi
2915
2916if test "$opt_purify" = yes; then
2917 PURIFY="purify "
2918 $as_echo "@%:@define DISABLE_MALLOC_WRAPPERS 1" >>confdefs.h
2919
2920else
2921 PURIFY=
2922fi
2923
2924if test "$opt_purecov" = yes; then
2925 PURIFY="${PURIFY}purecov"
2926fi
2927
2928if test "$opt_afs" = yes; then
2929 $as_echo "@%:@define AFS 1" >>confdefs.h
2930
2931fi
2932
2933if test "$opt_curses" = yes; then
2934 prefer_curses=yes
2935fi
2936
2937if test -z "${DEBUGGER_START_FILE}"; then
2938 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2939fi
2940
2941opt_minimal_config=no
2942
2943opt_job_control=yes
2944opt_alias=yes
2945opt_readline=yes
2946opt_history=yes
2947opt_bang_history=yes
2948opt_dirstack=yes
2949opt_restricted=yes
2950opt_process_subst=yes
2951opt_prompt_decoding=yes
2952opt_select=yes
2953opt_help=yes
2954opt_array_variables=yes
2955opt_dparen_arith=yes
2956opt_extended_glob=yes
2957opt_brace_expansion=yes
2958opt_disabled_builtins=no
2959opt_command_timing=yes
2960opt_xpg_echo=no
2961opt_strict_posix=no
2962opt_cond_command=yes
2963opt_cond_regexp=yes
2964opt_coproc=yes
2965opt_arith_for_command=yes
2966opt_net_redirs=yes
2967opt_progcomp=yes
2968opt_separate_help=no
2969opt_multibyte=yes
2970opt_debugger=yes
2971opt_single_longdoc_strings=yes
2972opt_casemod_attrs=yes
2973opt_casemod_expansions=yes
2974opt_extglob_default=no
2975opt_dircomplete_expand_default=no
2976
2977opt_static_link=no
2978opt_profiling=no
2979
2980@%:@ Check whether --enable-minimal-config was given.
2981if test "${enable_minimal_config+set}" = set; then :
2982 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2983fi
2984
2985
2986if test $opt_minimal_config = yes; then
2987 opt_job_control=no opt_alias=no opt_readline=no
2988 opt_history=no opt_bang_history=no opt_dirstack=no
2989 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2990 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2991 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2992 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2993 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2994 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2995 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
2996fi
2997
2998@%:@ Check whether --enable-alias was given.
2999if test "${enable_alias+set}" = set; then :
3000 enableval=$enable_alias; opt_alias=$enableval
3001fi
3002
3003@%:@ Check whether --enable-arith-for-command was given.
3004if test "${enable_arith_for_command+set}" = set; then :
3005 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3006fi
3007
3008@%:@ Check whether --enable-array-variables was given.
3009if test "${enable_array_variables+set}" = set; then :
3010 enableval=$enable_array_variables; opt_array_variables=$enableval
3011fi
3012
3013@%:@ Check whether --enable-bang-history was given.
3014if test "${enable_bang_history+set}" = set; then :
3015 enableval=$enable_bang_history; opt_bang_history=$enableval
3016fi
3017
3018@%:@ Check whether --enable-brace-expansion was given.
3019if test "${enable_brace_expansion+set}" = set; then :
3020 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3021fi
3022
3023@%:@ Check whether --enable-casemod-attributes was given.
3024if test "${enable_casemod_attributes+set}" = set; then :
3025 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3026fi
3027
3028@%:@ Check whether --enable-casemod-expansions was given.
3029if test "${enable_casemod_expansions+set}" = set; then :
3030 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3031fi
3032
3033@%:@ Check whether --enable-command-timing was given.
3034if test "${enable_command_timing+set}" = set; then :
3035 enableval=$enable_command_timing; opt_command_timing=$enableval
3036fi
3037
3038@%:@ Check whether --enable-cond-command was given.
3039if test "${enable_cond_command+set}" = set; then :
3040 enableval=$enable_cond_command; opt_cond_command=$enableval
3041fi
3042
3043@%:@ Check whether --enable-cond-regexp was given.
3044if test "${enable_cond_regexp+set}" = set; then :
3045 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3046fi
3047
3048@%:@ Check whether --enable-coprocesses was given.
3049if test "${enable_coprocesses+set}" = set; then :
3050 enableval=$enable_coprocesses; opt_coproc=$enableval
3051fi
3052
3053@%:@ Check whether --enable-debugger was given.
3054if test "${enable_debugger+set}" = set; then :
3055 enableval=$enable_debugger; opt_debugger=$enableval
3056fi
3057
3058@%:@ Check whether --enable-direxpand-default was given.
3059if test "${enable_direxpand_default+set}" = set; then :
3060 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3061fi
3062
3063@%:@ Check whether --enable-directory-stack was given.
3064if test "${enable_directory_stack+set}" = set; then :
3065 enableval=$enable_directory_stack; opt_dirstack=$enableval
3066fi
3067
3068@%:@ Check whether --enable-disabled-builtins was given.
3069if test "${enable_disabled_builtins+set}" = set; then :
3070 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3071fi
3072
3073@%:@ Check whether --enable-dparen-arithmetic was given.
3074if test "${enable_dparen_arithmetic+set}" = set; then :
3075 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3076fi
3077
3078@%:@ Check whether --enable-extended-glob was given.
3079if test "${enable_extended_glob+set}" = set; then :
3080 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3081fi
3082
3083@%:@ Check whether --enable-extended-glob-default was given.
3084if test "${enable_extended_glob_default+set}" = set; then :
3085 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3086fi
3087
3088@%:@ Check whether --enable-help-builtin was given.
3089if test "${enable_help_builtin+set}" = set; then :
3090 enableval=$enable_help_builtin; opt_help=$enableval
3091fi
3092
3093@%:@ Check whether --enable-history was given.
3094if test "${enable_history+set}" = set; then :
3095 enableval=$enable_history; opt_history=$enableval
3096fi
3097
3098@%:@ Check whether --enable-job-control was given.
3099if test "${enable_job_control+set}" = set; then :
3100 enableval=$enable_job_control; opt_job_control=$enableval
3101fi
3102
3103@%:@ Check whether --enable-multibyte was given.
3104if test "${enable_multibyte+set}" = set; then :
3105 enableval=$enable_multibyte; opt_multibyte=$enableval
3106fi
3107
3108@%:@ Check whether --enable-net-redirections was given.
3109if test "${enable_net_redirections+set}" = set; then :
3110 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3111fi
3112
3113@%:@ Check whether --enable-process-substitution was given.
3114if test "${enable_process_substitution+set}" = set; then :
3115 enableval=$enable_process_substitution; opt_process_subst=$enableval
3116fi
3117
3118@%:@ Check whether --enable-progcomp was given.
3119if test "${enable_progcomp+set}" = set; then :
3120 enableval=$enable_progcomp; opt_progcomp=$enableval
3121fi
3122
3123@%:@ Check whether --enable-prompt-string-decoding was given.
3124if test "${enable_prompt_string_decoding+set}" = set; then :
3125 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3126fi
3127
3128@%:@ Check whether --enable-readline was given.
3129if test "${enable_readline+set}" = set; then :
3130 enableval=$enable_readline; opt_readline=$enableval
3131fi
3132
3133@%:@ Check whether --enable-restricted was given.
3134if test "${enable_restricted+set}" = set; then :
3135 enableval=$enable_restricted; opt_restricted=$enableval
3136fi
3137
3138@%:@ Check whether --enable-select was given.
3139if test "${enable_select+set}" = set; then :
3140 enableval=$enable_select; opt_select=$enableval
3141fi
3142
3143@%:@ Check whether --enable-separate-helpfiles was given.
3144if test "${enable_separate_helpfiles+set}" = set; then :
3145 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3146fi
3147
3148@%:@ Check whether --enable-single-help-strings was given.
3149if test "${enable_single_help_strings+set}" = set; then :
3150 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3151fi
3152
3153@%:@ Check whether --enable-strict-posix-default was given.
3154if test "${enable_strict_posix_default+set}" = set; then :
3155 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3156fi
3157
3158@%:@ Check whether --enable-usg-echo-default was given.
3159if test "${enable_usg_echo_default+set}" = set; then :
3160 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3161fi
3162
3163@%:@ Check whether --enable-xpg-echo-default was given.
3164if test "${enable_xpg_echo_default+set}" = set; then :
3165 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3166fi
3167
3168
3169@%:@ Check whether --enable-mem-scramble was given.
3170if test "${enable_mem_scramble+set}" = set; then :
3171 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3172fi
3173
3174@%:@ Check whether --enable-profiling was given.
3175if test "${enable_profiling+set}" = set; then :
3176 enableval=$enable_profiling; opt_profiling=$enableval
3177fi
3178
3179@%:@ Check whether --enable-static-link was given.
3180if test "${enable_static_link+set}" = set; then :
3181 enableval=$enable_static_link; opt_static_link=$enableval
3182fi
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192if test $opt_alias = yes; then
3193$as_echo "@%:@define ALIAS 1" >>confdefs.h
3194
3195fi
3196if test $opt_dirstack = yes; then
3197$as_echo "@%:@define PUSHD_AND_POPD 1" >>confdefs.h
3198
3199fi
3200if test $opt_restricted = yes; then
3201$as_echo "@%:@define RESTRICTED_SHELL 1" >>confdefs.h
3202
3203fi
3204if test $opt_process_subst = yes; then
3205$as_echo "@%:@define PROCESS_SUBSTITUTION 1" >>confdefs.h
3206
3207fi
3208if test $opt_prompt_decoding = yes; then
3209$as_echo "@%:@define PROMPT_STRING_DECODE 1" >>confdefs.h
3210
3211fi
3212if test $opt_select = yes; then
3213$as_echo "@%:@define SELECT_COMMAND 1" >>confdefs.h
3214
3215fi
3216if test $opt_help = yes; then
3217$as_echo "@%:@define HELP_BUILTIN 1" >>confdefs.h
3218
3219fi
3220if test $opt_array_variables = yes; then
3221$as_echo "@%:@define ARRAY_VARS 1" >>confdefs.h
3222
3223fi
3224if test $opt_dparen_arith = yes; then
3225$as_echo "@%:@define DPAREN_ARITHMETIC 1" >>confdefs.h
3226
3227fi
3228if test $opt_brace_expansion = yes; then
3229$as_echo "@%:@define BRACE_EXPANSION 1" >>confdefs.h
3230
3231fi
3232if test $opt_disabled_builtins = yes; then
3233$as_echo "@%:@define DISABLED_BUILTINS 1" >>confdefs.h
3234
3235fi
3236if test $opt_command_timing = yes; then
3237$as_echo "@%:@define COMMAND_TIMING 1" >>confdefs.h
3238
3239fi
3240if test $opt_xpg_echo = yes ; then
3241$as_echo "@%:@define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3242
3243fi
3244if test $opt_strict_posix = yes; then
3245$as_echo "@%:@define STRICT_POSIX 1" >>confdefs.h
3246
3247fi
3248if test $opt_extended_glob = yes ; then
3249$as_echo "@%:@define EXTENDED_GLOB 1" >>confdefs.h
3250
3251fi
3252if test $opt_extglob_default = yes; then
3253$as_echo "@%:@define EXTGLOB_DEFAULT 1" >>confdefs.h
3254
3255else
3256$as_echo "@%:@define EXTGLOB_DEFAULT 0" >>confdefs.h
3257
3258fi
3259if test $opt_cond_command = yes ; then
3260$as_echo "@%:@define COND_COMMAND 1" >>confdefs.h
3261
3262fi
3263if test $opt_cond_regexp = yes ; then
3264$as_echo "@%:@define COND_REGEXP 1" >>confdefs.h
3265
3266fi
3267if test $opt_coproc = yes; then
3268$as_echo "@%:@define COPROCESS_SUPPORT 1" >>confdefs.h
3269
3270fi
3271if test $opt_arith_for_command = yes; then
3272$as_echo "@%:@define ARITH_FOR_COMMAND 1" >>confdefs.h
3273
3274fi
3275if test $opt_net_redirs = yes; then
3276$as_echo "@%:@define NETWORK_REDIRECTIONS 1" >>confdefs.h
3277
3278fi
3279if test $opt_progcomp = yes; then
3280$as_echo "@%:@define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3281
3282fi
3283if test $opt_multibyte = no; then
3284$as_echo "@%:@define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3285
3286fi
3287if test $opt_debugger = yes; then
3288$as_echo "@%:@define DEBUGGER 1" >>confdefs.h
3289
3290fi
3291if test $opt_casemod_attrs = yes; then
3292$as_echo "@%:@define CASEMOD_ATTRS 1" >>confdefs.h
3293
3294fi
3295if test $opt_casemod_expansions = yes; then
3296$as_echo "@%:@define CASEMOD_EXPANSIONS 1" >>confdefs.h
3297
3298fi
3299if test $opt_dircomplete_expand_default = yes; then
3300$as_echo "@%:@define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3301
3302fi
3303
3304if test $opt_memscramble = yes; then
3305$as_echo "@%:@define MEMSCRAMBLE 1" >>confdefs.h
3306
3307fi
3308
3309if test "$opt_minimal_config" = yes; then
3310 TESTSCRIPT=run-minimal
3311else
3312 TESTSCRIPT=run-all
3313fi
3314
3315HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3316if test "$opt_separate_help" != no; then
3317 if test "$opt_separate_help" = "yes" ; then
3318 HELPDIR='${datadir}/bash'
3319 else
3320 HELPDIR=$opt_separate_help
3321 fi
3322 HELPDIRDEFINE='-H ${HELPDIR}'
3323 HELPINSTALL='install-help'
3324 HELPFILES_TARGET='helpdoc'
3325fi
3326HELPSTRINGS=
3327if test "$opt_single_longdoc_strings" != "yes"; then
3328 HELPSTRINGS='-S'
3329fi
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349echo ""
3350echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3351echo ""
3352
3353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3360set dummy ${ac_tool_prefix}gcc; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if ${ac_cv_prog_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380done
3381 done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386CC=$ac_cv_prog_CC
3387if test -n "$CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389$as_echo "$CC" >&6; }
3390else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393fi
3394
3395
3396fi
3397if test -z "$ac_cv_prog_CC"; then
3398 ac_ct_CC=$CC
3399 # Extract the first word of "gcc", so it can be a program name with args.
3400set dummy gcc; ac_word=$2
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402$as_echo_n "checking for $ac_word... " >&6; }
3403if ${ac_cv_prog_ac_ct_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405else
3406 if test -n "$ac_ct_CC"; then
3407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408else
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_ac_ct_CC="gcc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420done
3421 done
3422IFS=$as_save_IFS
3423
3424fi
3425fi
3426ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427if test -n "$ac_ct_CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429$as_echo "$ac_ct_CC" >&6; }
3430else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433fi
3434
3435 if test "x$ac_ct_CC" = x; then
3436 CC=""
3437 else
3438 case $cross_compiling:$ac_tool_warned in
3439yes:)
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442ac_tool_warned=yes ;;
3443esac
3444 CC=$ac_ct_CC
3445 fi
3446else
3447 CC="$ac_cv_prog_CC"
3448fi
3449
3450if test -z "$CC"; then
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3453set dummy ${ac_tool_prefix}cc; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if ${ac_cv_prog_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="${ac_tool_prefix}cc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473done
3474 done
3475IFS=$as_save_IFS
3476
3477fi
3478fi
3479CC=$ac_cv_prog_CC
3480if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482$as_echo "$CC" >&6; }
3483else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486fi
3487
3488
3489 fi
3490fi
3491if test -z "$CC"; then
3492 # Extract the first word of "cc", so it can be a program name with args.
3493set dummy cc; ac_word=$2
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if ${ac_cv_prog_CC+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502 ac_prog_rejected=no
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3511 ac_prog_rejected=yes
3512 continue
3513 fi
3514 ac_cv_prog_CC="cc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518done
3519 done
3520IFS=$as_save_IFS
3521
3522if test $ac_prog_rejected = yes; then
3523 # We found a bogon in the path, so make sure we never use it.
3524 set dummy $ac_cv_prog_CC
3525 shift
3526 if test $@%:@ != 0; then
3527 # We chose a different compiler from the bogus one.
3528 # However, it has the same basename, so the bogon will be chosen
3529 # first if we set CC to just the basename; use the full file name.
3530 shift
3531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3532 fi
3533fi
3534fi
3535fi
3536CC=$ac_cv_prog_CC
3537if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539$as_echo "$CC" >&6; }
3540else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542$as_echo "no" >&6; }
3543fi
3544
3545
3546fi
3547if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 for ac_prog in cl.exe
3550 do
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554$as_echo_n "checking for $ac_word... " >&6; }
3555if ${ac_cv_prog_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573 done
3574IFS=$as_save_IFS
3575
3576fi
3577fi
3578CC=$ac_cv_prog_CC
3579if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581$as_echo "$CC" >&6; }
3582else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584$as_echo "no" >&6; }
3585fi
3586
3587
3588 test -n "$CC" && break
3589 done
3590fi
3591if test -z "$CC"; then
3592 ac_ct_CC=$CC
3593 for ac_prog in cl.exe
3594do
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596set dummy $ac_prog; ac_word=$2
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598$as_echo_n "checking for $ac_word... " >&6; }
3599if ${ac_cv_prog_ac_ct_CC+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602 if test -n "$ac_ct_CC"; then
3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_ac_ct_CC="$ac_prog"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616done
3617 done
3618IFS=$as_save_IFS
3619
3620fi
3621fi
3622ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623if test -n "$ac_ct_CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3625$as_echo "$ac_ct_CC" >&6; }
3626else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629fi
3630
3631
3632 test -n "$ac_ct_CC" && break
3633done
3634
3635 if test "x$ac_ct_CC" = x; then
3636 CC=""
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639yes:)
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642ac_tool_warned=yes ;;
3643esac
3644 CC=$ac_ct_CC
3645 fi
3646fi
3647
3648fi
3649
3650
3651test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653as_fn_error $? "no acceptable C compiler found in \$PATH
3654See \`config.log' for more details" "$LINENO" 5; }
3655
3656# Provide some information about the compiler.
3657$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3658set X $ac_compile
3659ac_compiler=$2
3660for ac_option in --version -v -V -qversion; do
3661 { { ac_try="$ac_compiler $ac_option >&5"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3669 ac_status=$?
3670 if test -s conftest.err; then
3671 sed '10a\
3672... rest of stderr output deleted ...
3673 10q' conftest.err >conftest.er1
3674 cat conftest.er1 >&5
3675 fi
3676 rm -f conftest.er1 conftest.err
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }
3679done
3680
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692ac_clean_files_save=$ac_clean_files
3693ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3694# Try to create an executable without -o first, disregard a.out.
3695# It will help us diagnose broken compilers, and finding out an intuition
3696# of exeext.
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3698$as_echo_n "checking whether the C compiler works... " >&6; }
3699ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3700
3701# The possible output files:
3702ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3703
3704ac_rmfiles=
3705for ac_file in $ac_files
3706do
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3709 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3710 esac
3711done
3712rm -f $ac_rmfiles
3713
3714if { { ac_try="$ac_link_default"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link_default") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }; then :
3725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3726# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3727# in a Makefile. We should not override ac_cv_exeext if it was cached,
3728# so that the user can short-circuit this test for compilers unknown to
3729# Autoconf.
3730for ac_file in $ac_files ''
3731do
3732 test -f "$ac_file" || continue
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3735 ;;
3736 [ab].out )
3737 # We found the default executable, but exeext='' is most
3738 # certainly right.
3739 break;;
3740 *.* )
3741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3742 then :; else
3743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 fi
3745 # We set ac_cv_exeext here because the later test for it is not
3746 # safe: cross compilers may not add the suffix if given an `-o'
3747 # argument, so we may need to know it at that point already.
3748 # Even if this section looks crufty: it has the advantage of
3749 # actually working.
3750 break;;
3751 * )
3752 break;;
3753 esac
3754done
3755test "$ac_cv_exeext" = no && ac_cv_exeext=
3756
3757else
3758 ac_file=''
3759fi
3760if test -z "$ac_file"; then :
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762$as_echo "no" >&6; }
3763$as_echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768as_fn_error 77 "C compiler cannot create executables
3769See \`config.log' for more details" "$LINENO" 5; }
3770else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3775$as_echo_n "checking for C compiler default output file name... " >&6; }
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3777$as_echo "$ac_file" >&6; }
3778ac_exeext=$ac_cv_exeext
3779
3780rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3781ac_clean_files=$ac_clean_files_save
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3783$as_echo_n "checking for suffix of executables... " >&6; }
3784if { { ac_try="$ac_link"
3785case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790$as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_link") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }; then :
3795 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3796# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3797# work properly (i.e., refer to `conftest.exe'), while it won't with
3798# `rm'.
3799for ac_file in conftest.exe conftest conftest.*; do
3800 test -f "$ac_file" || continue
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804 break;;
3805 * ) break;;
3806 esac
3807done
3808else
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3812See \`config.log' for more details" "$LINENO" 5; }
3813fi
3814rm -f conftest conftest$ac_cv_exeext
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3816$as_echo "$ac_cv_exeext" >&6; }
3817
3818rm -f conftest.$ac_ext
3819EXEEXT=$ac_cv_exeext
3820ac_exeext=$EXEEXT
3821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h. */
3823@%:@include <stdio.h>
3824int
3825main ()
3826{
3827FILE *f = fopen ("conftest.out", "w");
3828 return ferror (f) || fclose (f) != 0;
3829
3830 ;
3831 return 0;
3832}
3833_ACEOF
3834ac_clean_files="$ac_clean_files conftest.out"
3835# Check that the compiler produces executables we can run. If not, either
3836# the compiler is broken, or we cross compile.
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3838$as_echo_n "checking whether we are cross compiling... " >&6; }
3839if test "$cross_compiling" != yes; then
3840 { { ac_try="$ac_link"
3841case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846$as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_link") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }
3851 if { ac_try='./conftest$ac_cv_exeext'
3852 { { case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }; }; then
3862 cross_compiling=no
3863 else
3864 if test "$cross_compiling" = maybe; then
3865 cross_compiling=yes
3866 else
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869as_fn_error $? "cannot run C compiled programs.
3870If you meant to cross compile, use \`--host'.
3871See \`config.log' for more details" "$LINENO" 5; }
3872 fi
3873 fi
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3876$as_echo "$cross_compiling" >&6; }
3877
3878rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3879ac_clean_files=$ac_clean_files_save
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3881$as_echo_n "checking for suffix of object files... " >&6; }
3882if ${ac_cv_objext+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884else
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886/* end confdefs.h. */
3887
3888int
3889main ()
3890{
3891
3892 ;
3893 return 0;
3894}
3895_ACEOF
3896rm -f conftest.o conftest.obj
3897if { { ac_try="$ac_compile"
3898case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901esac
3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903$as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_compile") 2>&5
3905 ac_status=$?
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 for ac_file in conftest.o conftest.obj conftest.*; do
3909 test -f "$ac_file" || continue;
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3913 break;;
3914 esac
3915done
3916else
3917 $as_echo "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922as_fn_error $? "cannot compute suffix of object files: cannot compile
3923See \`config.log' for more details" "$LINENO" 5; }
3924fi
3925rm -f conftest.$ac_cv_objext conftest.$ac_ext
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3928$as_echo "$ac_cv_objext" >&6; }
3929OBJEXT=$ac_cv_objext
3930ac_objext=$OBJEXT
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3932$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3933if ${ac_cv_c_compiler_gnu+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935else
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
3942#ifndef __GNUC__
3943 choke me
3944#endif
3945
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_compiler_gnu=yes
3952else
3953 ac_compiler_gnu=no
3954fi
3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956ac_cv_c_compiler_gnu=$ac_compiler_gnu
3957
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3960$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3961if test $ac_compiler_gnu = yes; then
3962 GCC=yes
3963else
3964 GCC=
3965fi
3966ac_test_CFLAGS=${CFLAGS+set}
3967ac_save_CFLAGS=$CFLAGS
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3969$as_echo_n "checking whether $CC accepts -g... " >&6; }
3970if ${ac_cv_prog_cc_g+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972else
3973 ac_save_c_werror_flag=$ac_c_werror_flag
3974 ac_c_werror_flag=yes
3975 ac_cv_prog_cc_g=no
3976 CFLAGS="-g"
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h. */
3979
3980int
3981main ()
3982{
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_prog_cc_g=yes
3990else
3991 CFLAGS=""
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994
3995int
3996main ()
3997{
3998
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003if ac_fn_c_try_compile "$LINENO"; then :
4004
4005else
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="-g"
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010
4011int
4012main ()
4013{
4014
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_g=yes
4021fi
4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023fi
4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4030$as_echo "$ac_cv_prog_cc_g" >&6; }
4031if test "$ac_test_CFLAGS" = set; then
4032 CFLAGS=$ac_save_CFLAGS
4033elif test $ac_cv_prog_cc_g = yes; then
4034 if test "$GCC" = yes; then
4035 CFLAGS="-g -O2"
4036 else
4037 CFLAGS="-g"
4038 fi
4039else
4040 if test "$GCC" = yes; then
4041 CFLAGS="-O2"
4042 else
4043 CFLAGS=
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4047$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4048if ${ac_cv_prog_cc_c89+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050else
4051 ac_cv_prog_cc_c89=no
4052ac_save_CC=$CC
4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h. */
4055#include <stdarg.h>
4056#include <stdio.h>
4057#include <sys/types.h>
4058#include <sys/stat.h>
4059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060struct buf { int x; };
4061FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062static char *e (p, i)
4063 char **p;
4064 int i;
4065{
4066 return p[i];
4067}
4068static char *f (char * (*g) (char **, int), char **p, ...)
4069{
4070 char *s;
4071 va_list v;
4072 va_start (v,p);
4073 s = g (p, va_arg (v,int));
4074 va_end (v);
4075 return s;
4076}
4077
4078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086
4087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4089#define FOO(x) 'x'
4090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091
4092int test (int i, double x);
4093struct s1 {int (*f) (int a);};
4094struct s2 {int (*f) (double a);};
4095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096int argc;
4097char **argv;
4098int
4099main ()
4100{
4101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108do
4109 CC="$ac_save_CC $ac_arg"
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_c89=$ac_arg
4112fi
4113rm -f core conftest.err conftest.$ac_objext
4114 test "x$ac_cv_prog_cc_c89" != "xno" && break
4115done
4116rm -f conftest.$ac_ext
4117CC=$ac_save_CC
4118
4119fi
4120# AC_CACHE_VAL
4121case "x$ac_cv_prog_cc_c89" in
4122 x)
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124$as_echo "none needed" >&6; } ;;
4125 xno)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4127$as_echo "unsupported" >&6; } ;;
4128 *)
4129 CC="$CC $ac_cv_prog_cc_c89"
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4132esac
4133if test "x$ac_cv_prog_cc_c89" != xno; then :
4134
4135fi
4136
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4147$as_echo_n "checking for strerror in -lcposix... " >&6; }
4148if ${ac_cv_lib_cposix_strerror+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150else
4151 ac_check_lib_save_LIBS=$LIBS
4152LIBS="-lcposix $LIBS"
4153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h. */
4155
4156/* Override any GCC internal prototype to avoid an error.
4157 Use char because int might match the return type of a GCC
4158 builtin and then its argument prototype would still apply. */
4159#ifdef __cplusplus
4160extern "C"
4161#endif
4162char strerror ();
4163int
4164main ()
4165{
4166return strerror ();
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_link "$LINENO"; then :
4172 ac_cv_lib_cposix_strerror=yes
4173else
4174 ac_cv_lib_cposix_strerror=no
4175fi
4176rm -f core conftest.err conftest.$ac_objext \
4177 conftest$ac_exeext conftest.$ac_ext
4178LIBS=$ac_check_lib_save_LIBS
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4181$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4182if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4183 LIBS="$LIBS -lcposix"
4184fi
4185
4186
4187
4188ac_ext=c
4189ac_cpp='$CPP $CPPFLAGS'
4190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194$as_echo_n "checking how to run the C preprocessor... " >&6; }
4195# On Suns, sometimes $CPP names a directory.
4196if test -n "$CPP" && test -d "$CPP"; then
4197 CPP=
4198fi
4199if test -z "$CPP"; then
4200 if ${ac_cv_prog_CPP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202else
4203 # Double quotes because CPP needs to be expanded
4204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4205 do
4206 ac_preproc_ok=false
4207for ac_c_preproc_warn_flag in '' yes
4208do
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h. */
4217@%:@ifdef __STDC__
4218@%:@ include <limits.h>
4219@%:@else
4220@%:@ include <assert.h>
4221@%:@endif
4222 Syntax error
4223_ACEOF
4224if ac_fn_c_try_cpp "$LINENO"; then :
4225
4226else
4227 # Broken: fails on valid input.
4228continue
4229fi
4230rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h. */
4236@%:@include <ac_nonexistent.h>
4237_ACEOF
4238if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4240continue
4241else
4242 # Passes both tests.
4243ac_preproc_ok=:
4244break
4245fi
4246rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248done
4249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250rm -f conftest.i conftest.err conftest.$ac_ext
4251if $ac_preproc_ok; then :
4252 break
4253fi
4254
4255 done
4256 ac_cv_prog_CPP=$CPP
4257
4258fi
4259 CPP=$ac_cv_prog_CPP
4260else
4261 ac_cv_prog_CPP=$CPP
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264$as_echo "$CPP" >&6; }
4265ac_preproc_ok=false
4266for ac_c_preproc_warn_flag in '' yes
4267do
4268 # Use a header file that comes with gcc, so configuring glibc
4269 # with a fresh cross-compiler works.
4270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 # <limits.h> exists even on freestanding compilers.
4272 # On the NeXT, cc -E runs the code through the compiler's parser,
4273 # not just through cpp. "Syntax error" is here to catch this case.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h. */
4276@%:@ifdef __STDC__
4277@%:@ include <limits.h>
4278@%:@else
4279@%:@ include <assert.h>
4280@%:@endif
4281 Syntax error
4282_ACEOF
4283if ac_fn_c_try_cpp "$LINENO"; then :
4284
4285else
4286 # Broken: fails on valid input.
4287continue
4288fi
4289rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h. */
4295@%:@include <ac_nonexistent.h>
4296_ACEOF
4297if ac_fn_c_try_cpp "$LINENO"; then :
4298 # Broken: success on invalid input.
4299continue
4300else
4301 # Passes both tests.
4302ac_preproc_ok=:
4303break
4304fi
4305rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307done
4308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309rm -f conftest.i conftest.err conftest.$ac_ext
4310if $ac_preproc_ok; then :
4311
4312else
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4316See \`config.log' for more details" "$LINENO" 5; }
4317fi
4318
4319ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328if ${ac_cv_path_GREP+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330else
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4343# Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345case `"$ac_path_GREP" --version 2>&1` in
4346*GNU*)
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4348*)
4349 ac_count=0
4350 $as_echo_n 0123456789 >"conftest.in"
4351 while :
4352 do
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4364 fi
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4367 done
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369esac
4370
4371 $ac_path_GREP_found && break 3
4372 done
4373 done
4374 done
4375IFS=$as_save_IFS
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378 fi
4379else
4380 ac_cv_path_GREP=$GREP
4381fi
4382
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385$as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4387
4388
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390$as_echo_n "checking for egrep... " >&6; }
4391if ${ac_cv_path_EGREP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393else
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4396 else
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4409# Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411case `"$ac_path_EGREP" --version 2>&1` in
4412*GNU*)
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4414*)
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435esac
4436
4437 $ac_path_EGREP_found && break 3
4438 done
4439 done
4440 done
4441IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 fi
4445else
4446 ac_cv_path_EGREP=$EGREP
4447fi
4448
4449 fi
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452$as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457$as_echo_n "checking for ANSI C header files... " >&6; }
4458if ${ac_cv_header_stdc+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h. */
4463#include <stdlib.h>
4464#include <stdarg.h>
4465#include <string.h>
4466#include <float.h>
4467
4468int
4469main ()
4470{
4471
4472 ;
4473 return 0;
4474}
4475_ACEOF
4476if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_header_stdc=yes
4478else
4479 ac_cv_header_stdc=no
4480fi
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
4483if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h. */
4487#include <string.h>
4488
4489_ACEOF
4490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then :
4492
4493else
4494 ac_cv_header_stdc=no
4495fi
4496rm -f conftest*
4497
4498fi
4499
4500if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
4504#include <stdlib.h>
4505
4506_ACEOF
4507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "free" >/dev/null 2>&1; then :
4509
4510else
4511 ac_cv_header_stdc=no
4512fi
4513rm -f conftest*
4514
4515fi
4516
4517if test $ac_cv_header_stdc = yes; then
4518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519 if test "$cross_compiling" = yes; then :
4520 :
4521else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h. */
4524#include <ctype.h>
4525#include <stdlib.h>
4526#if ((' ' & 0x0FF) == 0x020)
4527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4529#else
4530# define ISLOWER(c) \
4531 (('a' <= (c) && (c) <= 'i') \
4532 || ('j' <= (c) && (c) <= 'r') \
4533 || ('s' <= (c) && (c) <= 'z'))
4534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4535#endif
4536
4537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538int
4539main ()
4540{
4541 int i;
4542 for (i = 0; i < 256; i++)
4543 if (XOR (islower (i), ISLOWER (i))
4544 || toupper (i) != TOUPPER (i))
4545 return 2;
4546 return 0;
4547}
4548_ACEOF
4549if ac_fn_c_try_run "$LINENO"; then :
4550
4551else
4552 ac_cv_header_stdc=no
4553fi
4554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 conftest.$ac_objext conftest.beam conftest.$ac_ext
4556fi
4557
4558fi
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561$as_echo "$ac_cv_header_stdc" >&6; }
4562if test $ac_cv_header_stdc = yes; then
4563
4564$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4565
4566fi
4567
4568# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4571do :
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4574"
4575if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576 cat >>confdefs.h <<_ACEOF
4577@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578_ACEOF
4579
4580fi
4581
4582done
4583
4584
4585
4586 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4587if test "x$ac_cv_header_minix_config_h" = xyes; then :
4588 MINIX=yes
4589else
4590 MINIX=
4591fi
4592
4593
4594 if test "$MINIX" = yes; then
4595
4596$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4597
4598
4599$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4600
4601
4602$as_echo "@%:@define _MINIX 1" >>confdefs.h
4603
4604 fi
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4608$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4609if ${ac_cv_safe_to_define___extensions__+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611else
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
4614
4615# define __EXTENSIONS__ 1
4616 $ac_includes_default
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_safe_to_define___extensions__=yes
4627else
4628 ac_cv_safe_to_define___extensions__=no
4629fi
4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4633$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4634 test $ac_cv_safe_to_define___extensions__ = yes &&
4635 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4636
4637 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4638
4639 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4640
4641 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4642
4643 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4644
4645
4646
4647
4648@%:@ Check whether --enable-largefile was given.
4649if test "${enable_largefile+set}" = set; then :
4650 enableval=$enable_largefile;
4651fi
4652
4653if test "$enable_largefile" != no; then
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4656$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4657if ${ac_cv_sys_largefile_CC+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659else
4660 ac_cv_sys_largefile_CC=no
4661 if test "$GCC" != yes; then
4662 ac_save_CC=$CC
4663 while :; do
4664 # IRIX 6.2 and later do not support large files by default,
4665 # so use the C compiler's -n32 option if that helps.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h. */
4668@%:@include <sys/types.h>
4669 /* Check that off_t can represent 2**63 - 1 correctly.
4670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4671 since some C++ compilers masquerading as C compilers
4672 incorrectly reject 9223372036854775807. */
4673@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4675 && LARGE_OFF_T % 2147483647 == 1)
4676 ? 1 : -1];
4677int
4678main ()
4679{
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 break
4687fi
4688rm -f core conftest.err conftest.$ac_objext
4689 CC="$CC -n32"
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 ac_cv_sys_largefile_CC=' -n32'; break
4692fi
4693rm -f core conftest.err conftest.$ac_objext
4694 break
4695 done
4696 CC=$ac_save_CC
4697 rm -f conftest.$ac_ext
4698 fi
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4701$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4702 if test "$ac_cv_sys_largefile_CC" != no; then
4703 CC=$CC$ac_cv_sys_largefile_CC
4704 fi
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4707$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4708if ${ac_cv_sys_file_offset_bits+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710else
4711 while :; do
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h. */
4714@%:@include <sys/types.h>
4715 /* Check that off_t can represent 2**63 - 1 correctly.
4716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4717 since some C++ compilers masquerading as C compilers
4718 incorrectly reject 9223372036854775807. */
4719@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4721 && LARGE_OFF_T % 2147483647 == 1)
4722 ? 1 : -1];
4723int
4724main ()
4725{
4726
4727 ;
4728 return 0;
4729}
4730_ACEOF
4731if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_sys_file_offset_bits=no; break
4733fi
4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h. */
4737@%:@define _FILE_OFFSET_BITS 64
4738@%:@include <sys/types.h>
4739 /* Check that off_t can represent 2**63 - 1 correctly.
4740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4741 since some C++ compilers masquerading as C compilers
4742 incorrectly reject 9223372036854775807. */
4743@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4745 && LARGE_OFF_T % 2147483647 == 1)
4746 ? 1 : -1];
4747int
4748main ()
4749{
4750
4751 ;
4752 return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_compile "$LINENO"; then :
4756 ac_cv_sys_file_offset_bits=64; break
4757fi
4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_sys_file_offset_bits=unknown
4760 break
4761done
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4764$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4765case $ac_cv_sys_file_offset_bits in #(
4766 no | unknown) ;;
4767 *)
4768cat >>confdefs.h <<_ACEOF
4769@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4770_ACEOF
4771;;
4772esac
4773rm -rf conftest*
4774 if test $ac_cv_sys_file_offset_bits = unknown; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4776$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4777if ${ac_cv_sys_large_files+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779else
4780 while :; do
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783@%:@include <sys/types.h>
4784 /* Check that off_t can represent 2**63 - 1 correctly.
4785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4786 since some C++ compilers masquerading as C compilers
4787 incorrectly reject 9223372036854775807. */
4788@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4790 && LARGE_OFF_T % 2147483647 == 1)
4791 ? 1 : -1];
4792int
4793main ()
4794{
4795
4796 ;
4797 return 0;
4798}
4799_ACEOF
4800if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_sys_large_files=no; break
4802fi
4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h. */
4806@%:@define _LARGE_FILES 1
4807@%:@include <sys/types.h>
4808 /* Check that off_t can represent 2**63 - 1 correctly.
4809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4810 since some C++ compilers masquerading as C compilers
4811 incorrectly reject 9223372036854775807. */
4812@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4814 && LARGE_OFF_T % 2147483647 == 1)
4815 ? 1 : -1];
4816int
4817main ()
4818{
4819
4820 ;
4821 return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_cv_sys_large_files=1; break
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 ac_cv_sys_large_files=unknown
4829 break
4830done
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4833$as_echo "$ac_cv_sys_large_files" >&6; }
4834case $ac_cv_sys_large_files in #(
4835 no | unknown) ;;
4836 *)
4837cat >>confdefs.h <<_ACEOF
4838@%:@define _LARGE_FILES $ac_cv_sys_large_files
4839_ACEOF
4840;;
4841esac
4842rm -rf conftest*
4843 fi
4844fi
4845
4846
4847
4848SIGNAMES_O=
4849SIGNAMES_H=lsignames.h
4850
4851
4852
4853CROSS_COMPILE=
4854if test "x$cross_compiling" = "xyes"; then
4855 case "${host}" in
4856 *-cygwin*)
4857 cross_cache=${srcdir}/cross-build/cygwin32.cache
4858 ;;
4859 *-mingw*)
4860 cross_cache=${srcdir}/cross-build/cygwin32.cache
4861 ;;
4862 i[3456]86-*-beos*)
4863 cross_cache=${srcdir}/cross-build/x86-beos.cache
4864 ;;
4865 *) echo "configure: cross-compiling for $host is not supported" >&2
4866 ;;
4867 esac
4868 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4869 echo "loading cross-build cache file ${cross_cache}"
4870 . ${cross_cache}
4871 fi
4872 unset cross_cache
4873 SIGNAMES_O='signames.o'
4874 CROSS_COMPILE='-DCROSS_COMPILING'
4875
4876fi
4877
4878
4879
4880
4881if test -z "$CFLAGS"; then
4882 AUTO_CFLAGS="-g ${GCC+-O2}"
4883 AUTO_LDFLAGS="-g ${GCC+-O2}"
4884else
4885 AUTO_CFLAGS= AUTO_LDFLAGS=
4886fi
4887
4888CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
4889# LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
4890
4891if test "$opt_profiling" = "yes"; then
4892 PROFILE_FLAGS=-pg
4893 case "$host_os" in
4894 solaris2*) ;;
4895 *) opt_static_link=yes ;;
4896 esac
4897 DEBUG= MALLOC_DEBUG=
4898fi
4899
4900prefer_shared=yes
4901prefer_static=no
4902
4903if test "$opt_static_link" = yes; then
4904 prefer_static=yes
4905 prefer_shared=no
4906 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4907 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4908 STATIC_LD="-static"
4909 case "$host_os" in
4910 solaris2*) ;;
4911 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4912 esac
4913 fi
4914fi
4915
4916# set the appropriate make variables for building the "build tools"
4917# modify defaults based on whether or not we are cross compiling, since the
4918# options for the target host may not be appropriate for the build host
4919if test "X$cross_compiling" = "Xno"; then
4920 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
4921 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
4922 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4923 # CFLAGS set above to default value if not passed in environment
4924 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
4925 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
4926else
4927 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
4928 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4929 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4930 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
4931 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
4932fi
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945if test $ac_cv_c_compiler_gnu = yes; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4947$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4948if ${ac_cv_prog_gcc_traditional+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950else
4951 ac_pattern="Autoconf.*'x'"
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h. */
4954#include <sgtty.h>
4955Autoconf TIOCGETP
4956_ACEOF
4957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4959 ac_cv_prog_gcc_traditional=yes
4960else
4961 ac_cv_prog_gcc_traditional=no
4962fi
4963rm -f conftest*
4964
4965
4966 if test $ac_cv_prog_gcc_traditional = no; then
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969#include <termio.h>
4970Autoconf TCGETA
4971_ACEOF
4972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4973 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4974 ac_cv_prog_gcc_traditional=yes
4975fi
4976rm -f conftest*
4977
4978 fi
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4981$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4982 if test $ac_cv_prog_gcc_traditional = yes; then
4983 CC="$CC -traditional"
4984 fi
4985fi
4986
4987
4988
4989if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4990then
4991 # If the user specified --with-installed-readline=PREFIX and PREFIX
4992 # is not `yes', set ac_cv_rl_prefix to PREFIX
4993 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4994
4995
4996if test "X$bash_cv_termcap_lib" = "X"; then
4997_bash_needmsg=yes
4998else
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5000$as_echo_n "checking which library has the termcap functions... " >&6; }
5001_bash_needmsg=
5002fi
5003if ${bash_cv_termcap_lib+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5007if test "x$ac_cv_func_tgetent" = xyes; then :
5008 bash_cv_termcap_lib=libc
5009else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5011$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5012if ${ac_cv_lib_termcap_tgetent+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014else
5015 ac_check_lib_save_LIBS=$LIBS
5016LIBS="-ltermcap $LIBS"
5017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h. */
5019
5020/* Override any GCC internal prototype to avoid an error.
5021 Use char because int might match the return type of a GCC
5022 builtin and then its argument prototype would still apply. */
5023#ifdef __cplusplus
5024extern "C"
5025#endif
5026char tgetent ();
5027int
5028main ()
5029{
5030return tgetent ();
5031 ;
5032 return 0;
5033}
5034_ACEOF
5035if ac_fn_c_try_link "$LINENO"; then :
5036 ac_cv_lib_termcap_tgetent=yes
5037else
5038 ac_cv_lib_termcap_tgetent=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5042LIBS=$ac_check_lib_save_LIBS
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5045$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5046if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5047 bash_cv_termcap_lib=libtermcap
5048else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5050$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5051if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 ac_check_lib_save_LIBS=$LIBS
5055LIBS="-ltinfo $LIBS"
5056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h. */
5058
5059/* Override any GCC internal prototype to avoid an error.
5060 Use char because int might match the return type of a GCC
5061 builtin and then its argument prototype would still apply. */
5062#ifdef __cplusplus
5063extern "C"
5064#endif
5065char tgetent ();
5066int
5067main ()
5068{
5069return tgetent ();
5070 ;
5071 return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"; then :
5075 ac_cv_lib_tinfo_tgetent=yes
5076else
5077 ac_cv_lib_tinfo_tgetent=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext \
5080 conftest$ac_exeext conftest.$ac_ext
5081LIBS=$ac_check_lib_save_LIBS
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5084$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5085if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5086 bash_cv_termcap_lib=libtinfo
5087else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5089$as_echo_n "checking for tgetent in -lcurses... " >&6; }
5090if ${ac_cv_lib_curses_tgetent+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092else
5093 ac_check_lib_save_LIBS=$LIBS
5094LIBS="-lcurses $LIBS"
5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097
5098/* Override any GCC internal prototype to avoid an error.
5099 Use char because int might match the return type of a GCC
5100 builtin and then its argument prototype would still apply. */
5101#ifdef __cplusplus
5102extern "C"
5103#endif
5104char tgetent ();
5105int
5106main ()
5107{
5108return tgetent ();
5109 ;
5110 return 0;
5111}
5112_ACEOF
5113if ac_fn_c_try_link "$LINENO"; then :
5114 ac_cv_lib_curses_tgetent=yes
5115else
5116 ac_cv_lib_curses_tgetent=no
5117fi
5118rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120LIBS=$ac_check_lib_save_LIBS
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5123$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5124if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
5125 bash_cv_termcap_lib=libcurses
5126else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5128$as_echo_n "checking for tgetent in -lncurses... " >&6; }
5129if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131else
5132 ac_check_lib_save_LIBS=$LIBS
5133LIBS="-lncurses $LIBS"
5134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h. */
5136
5137/* Override any GCC internal prototype to avoid an error.
5138 Use char because int might match the return type of a GCC
5139 builtin and then its argument prototype would still apply. */
5140#ifdef __cplusplus
5141extern "C"
5142#endif
5143char tgetent ();
5144int
5145main ()
5146{
5147return tgetent ();
5148 ;
5149 return 0;
5150}
5151_ACEOF
5152if ac_fn_c_try_link "$LINENO"; then :
5153 ac_cv_lib_ncurses_tgetent=yes
5154else
5155 ac_cv_lib_ncurses_tgetent=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5162$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5163if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5164 bash_cv_termcap_lib=libncurses
5165else
5166 bash_cv_termcap_lib=gnutermcap
5167fi
5168
5169fi
5170
5171fi
5172
5173fi
5174
5175fi
5176
5177fi
5178
5179if test "X$_bash_needmsg" = "Xyes"; then
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5181$as_echo_n "checking which library has the termcap functions... " >&6; }
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5184$as_echo "using $bash_cv_termcap_lib" >&6; }
5185if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5186LDFLAGS="$LDFLAGS -L./lib/termcap"
5187TERMCAP_LIB="./lib/termcap/libtermcap.a"
5188TERMCAP_DEP="./lib/termcap/libtermcap.a"
5189elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5190TERMCAP_LIB=-ltermcap
5191TERMCAP_DEP=
5192elif test $bash_cv_termcap_lib = libtinfo; then
5193TERMCAP_LIB=-ltinfo
5194TERMCAP_DEP=
5195elif test $bash_cv_termcap_lib = libncurses; then
5196TERMCAP_LIB=-lncurses
5197TERMCAP_DEP=
5198elif test $bash_cv_termcap_lib = libc; then
5199TERMCAP_LIB=
5200TERMCAP_DEP=
5201else
5202TERMCAP_LIB=-lcurses
5203TERMCAP_DEP=
5204fi
5205
5206
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5210$as_echo_n "checking version of installed readline library... " >&6; }
5211
5212# What a pain in the ass this is.
5213
5214# save cpp and ld options
5215_save_CFLAGS="$CFLAGS"
5216_save_LDFLAGS="$LDFLAGS"
5217_save_LIBS="$LIBS"
5218
5219# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5220# allows the caller to do something like $_rl_prefix=$withval if the user
5221# specifies --with-installed-readline=PREFIX as an argument to configure
5222
5223if test -z "$ac_cv_rl_prefix"; then
5224test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5225fi
5226
5227eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5228eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5229
5230LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5231CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5232LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5233
5234if ${ac_cv_rl_version+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236else
5237 if test "$cross_compiling" = yes; then :
5238 ac_cv_rl_version='4.2'
5239else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242
5243#include <stdio.h>
5244#include <readline/readline.h>
5245
5246extern int rl_gnu_readline_p;
5247
5248main()
5249{
5250 FILE *fp;
5251 fp = fopen("conftest.rlv", "w");
5252 if (fp == 0)
5253 exit(1);
5254 if (rl_gnu_readline_p != 1)
5255 fprintf(fp, "0.0\n");
5256 else
5257 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5258 fclose(fp);
5259 exit(0);
5260}
5261
5262_ACEOF
5263if ac_fn_c_try_run "$LINENO"; then :
5264 ac_cv_rl_version=`cat conftest.rlv`
5265else
5266 ac_cv_rl_version='0.0'
5267fi
5268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5269 conftest.$ac_objext conftest.beam conftest.$ac_ext
5270fi
5271
5272fi
5273
5274
5275CFLAGS="$_save_CFLAGS"
5276LDFLAGS="$_save_LDFLAGS"
5277LIBS="$_save_LIBS"
5278
5279RL_MAJOR=0
5280RL_MINOR=0
5281
5282# (
5283case "$ac_cv_rl_version" in
52842*|3*|4*|5*|6*|7*|8*|9*)
5285 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5286 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5287 ;;
5288esac
5289
5290# (((
5291case $RL_MAJOR in
5292[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5293[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5294*) _RL_MAJOR=00 ;;
5295esac
5296
5297# (((
5298case $RL_MINOR in
5299[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5300[0-9]) _RL_MINOR=0$RL_MINOR ;;
5301*) _RL_MINOR=00 ;;
5302esac
5303
5304RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5305
5306# Readline versions greater than 4.2 have these defines in readline.h
5307
5308if test $ac_cv_rl_version = '0.0' ; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5310$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5311elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5312 # set these for use by the caller
5313 RL_PREFIX=$ac_cv_rl_prefix
5314 RL_LIBDIR=$ac_cv_rl_libdir
5315 RL_INCLUDEDIR=$ac_cv_rl_includedir
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5317$as_echo "$ac_cv_rl_version" >&6; }
5318else
5319
5320
5321cat >>confdefs.h <<_ACEOF
5322@%:@define RL_READLINE_VERSION $RL_VERSION
5323_ACEOF
5324
5325
5326cat >>confdefs.h <<_ACEOF
5327@%:@define RL_VERSION_MAJOR $RL_MAJOR
5328_ACEOF
5329
5330
5331cat >>confdefs.h <<_ACEOF
5332@%:@define RL_VERSION_MINOR $RL_MINOR
5333_ACEOF
5334
5335
5336
5337
5338
5339
5340# set these for use by the caller
5341RL_PREFIX=$ac_cv_rl_prefix
5342RL_LIBDIR=$ac_cv_rl_libdir
5343RL_INCLUDEDIR=$ac_cv_rl_includedir
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5346$as_echo "$ac_cv_rl_version" >&6; }
5347
5348fi
5349
5350
5351 case "$ac_cv_rl_version" in
5352 5*|6*|7*|8*|9*) ;;
5353 *) opt_with_installed_readline=no
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
5355$as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
5357$as_echo "$as_me: WARNING: using private bash version" >&2;}
5358 ;;
5359 esac
5360fi
5361
5362TILDE_LIB=-ltilde
5363if test $opt_readline = yes; then
5364 $as_echo "@%:@define READLINE 1" >>confdefs.h
5365
5366 if test "$opt_with_installed_readline" != "no" ; then
5367 case "$opt_with_installed_readline" in
5368 yes) RL_INCLUDE= ;;
5369 *) case "$RL_INCLUDEDIR" in
5370 /usr/include) ;;
5371 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5372 esac
5373 ;;
5374 esac
5375 READLINE_DEP=
5376 READLINE_LIB=-lreadline
5377 # section for OS versions that don't allow unresolved symbols
5378 # to be compiled into dynamic libraries.
5379 case "$host_os" in
5380 cygwin*) TILDE_LIB= ;;
5381 esac
5382 else
5383 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5384 READLINE_DEP='$(READLINE_LIBRARY)'
5385 # section for OS versions that ship an older/broken version of
5386 # readline as a standard dynamic library and don't allow a
5387 # static version specified as -llibname to override the
5388 # dynamic version
5389 case "${host_os}" in
5390 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5391 *) READLINE_LIB=-lreadline ;;
5392 esac
5393 fi
5394else
5395 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5396 READLINE_LIB= READLINE_DEP=
5397fi
5398if test $opt_history = yes || test $opt_bang_history = yes; then
5399 if test $opt_history = yes; then
5400 $as_echo "@%:@define HISTORY 1" >>confdefs.h
5401
5402 fi
5403 if test $opt_bang_history = yes; then
5404 $as_echo "@%:@define BANG_HISTORY 1" >>confdefs.h
5405
5406 fi
5407 if test "$opt_with_installed_readline" != "no"; then
5408 HIST_LIBDIR=$RL_LIBDIR
5409 HISTORY_DEP=
5410 HISTORY_LIB=-lhistory
5411 case "$opt_with_installed_readline" in
5412 yes) RL_INCLUDE= ;;
5413 *) case "$RL_INCLUDEDIR" in
5414 /usr/include) ;;
5415 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5416 esac
5417 ;;
5418 esac
5419 else
5420 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5421 HISTORY_DEP='$(HISTORY_LIBRARY)'
5422 # section for OS versions that ship an older version of
5423 # readline as a standard dynamic library and don't allow a
5424 # static version specified as -llibname to override the
5425 # dynamic version
5426 case "${host_os}" in
5427 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5428 *) HISTORY_LIB=-lhistory ;;
5429 esac
5430 fi
5431else
5432 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5433 HISTORY_LIB= HISTORY_DEP=
5434fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446# Find a good install program. We prefer a C program (faster),
5447# so one script is as good as another. But avoid the broken or
5448# incompatible versions:
5449# SysV /etc/install, /usr/sbin/install
5450# SunOS /usr/etc/install
5451# IRIX /sbin/install
5452# AIX /bin/install
5453# AmigaOS /C/install, which installs bootblocks on floppy discs
5454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5455# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5457# OS/2's system install, which has a completely different semantic
5458# ./install, which can be erroneously created by make from ./install.sh.
5459# Reject install programs that cannot install multiple files.
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5461$as_echo_n "checking for a BSD-compatible install... " >&6; }
5462if test -z "$INSTALL"; then
5463if ${ac_cv_path_install+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 # Account for people who put trailing slashes in PATH elements.
5472case $as_dir/ in @%:@((
5473 ./ | .// | /[cC]/* | \
5474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5475 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5476 /usr/ucb/* ) ;;
5477 *)
5478 # OSF1 and SCO ODT 3.0 have their own names for install.
5479 # Don't use installbsd from OSF since it installs stuff as root
5480 # by default.
5481 for ac_prog in ginstall scoinst install; do
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5484 if test $ac_prog = install &&
5485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5486 # AIX install. It has an incompatible calling convention.
5487 :
5488 elif test $ac_prog = install &&
5489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5490 # program-specific install script used by HP pwplus--don't use.
5491 :
5492 else
5493 rm -rf conftest.one conftest.two conftest.dir
5494 echo one > conftest.one
5495 echo two > conftest.two
5496 mkdir conftest.dir
5497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5498 test -s conftest.one && test -s conftest.two &&
5499 test -s conftest.dir/conftest.one &&
5500 test -s conftest.dir/conftest.two
5501 then
5502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5503 break 3
5504 fi
5505 fi
5506 fi
5507 done
5508 done
5509 ;;
5510esac
5511
5512 done
5513IFS=$as_save_IFS
5514
5515rm -rf conftest.one conftest.two conftest.dir
5516
5517fi
5518 if test "${ac_cv_path_install+set}" = set; then
5519 INSTALL=$ac_cv_path_install
5520 else
5521 # As a last resort, use the slow shell script. Don't cache a
5522 # value for INSTALL within a source directory, because that will
5523 # break other packages using the cache if that directory is
5524 # removed, or if the value is a relative name.
5525 INSTALL=$ac_install_sh
5526 fi
5527fi
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5529$as_echo "$INSTALL" >&6; }
5530
5531# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5532# It thinks the first close brace ends the variable substitution.
5533test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5534
5535test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5536
5537test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5538
5539if test -n "$ac_tool_prefix"; then
5540 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5541set dummy ${ac_tool_prefix}ar; ac_word=$2
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543$as_echo_n "checking for $ac_word... " >&6; }
5544if ${ac_cv_prog_AR+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546else
5547 if test -n "$AR"; then
5548 ac_cv_prog_AR="$AR" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_AR="${ac_tool_prefix}ar"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561done
5562 done
5563IFS=$as_save_IFS
5564
5565fi
5566fi
5567AR=$ac_cv_prog_AR
5568if test -n "$AR"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5570$as_echo "$AR" >&6; }
5571else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573$as_echo "no" >&6; }
5574fi
5575
5576
5577fi
5578if test -z "$ac_cv_prog_AR"; then
5579 ac_ct_AR=$AR
5580 # Extract the first word of "ar", so it can be a program name with args.
5581set dummy ar; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_prog_ac_ct_AR+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586else
5587 if test -n "$ac_ct_AR"; then
5588 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_ac_ct_AR="ar"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601done
5602 done
5603IFS=$as_save_IFS
5604
5605fi
5606fi
5607ac_ct_AR=$ac_cv_prog_ac_ct_AR
5608if test -n "$ac_ct_AR"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5610$as_echo "$ac_ct_AR" >&6; }
5611else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
5614fi
5615
5616 if test "x$ac_ct_AR" = x; then
5617 AR=""
5618 else
5619 case $cross_compiling:$ac_tool_warned in
5620yes:)
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623ac_tool_warned=yes ;;
5624esac
5625 AR=$ac_ct_AR
5626 fi
5627else
5628 AR="$ac_cv_prog_AR"
5629fi
5630
5631test -n "$ARFLAGS" || ARFLAGS="cr"
5632if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5634set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636$as_echo_n "checking for $ac_word... " >&6; }
5637if ${ac_cv_prog_RANLIB+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test -n "$RANLIB"; then
5641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654done
5655 done
5656IFS=$as_save_IFS
5657
5658fi
5659fi
5660RANLIB=$ac_cv_prog_RANLIB
5661if test -n "$RANLIB"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5663$as_echo "$RANLIB" >&6; }
5664else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666$as_echo "no" >&6; }
5667fi
5668
5669
5670fi
5671if test -z "$ac_cv_prog_RANLIB"; then
5672 ac_ct_RANLIB=$RANLIB
5673 # Extract the first word of "ranlib", so it can be a program name with args.
5674set dummy ranlib; ac_word=$2
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
5677if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 if test -n "$ac_ct_RANLIB"; then
5681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_ac_ct_RANLIB="ranlib"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695 done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5701if test -n "$ac_ct_RANLIB"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5703$as_echo "$ac_ct_RANLIB" >&6; }
5704else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707fi
5708
5709 if test "x$ac_ct_RANLIB" = x; then
5710 RANLIB=":"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713yes:)
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716ac_tool_warned=yes ;;
5717esac
5718 RANLIB=$ac_ct_RANLIB
5719 fi
5720else
5721 RANLIB="$ac_cv_prog_RANLIB"
5722fi
5723
5724for ac_prog in 'bison -y' byacc
5725do
5726 # Extract the first word of "$ac_prog", so it can be a program name with args.
5727set dummy $ac_prog; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if ${ac_cv_prog_YACC+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 if test -n "$YACC"; then
5734 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_YACC="$ac_prog"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748 done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753YACC=$ac_cv_prog_YACC
5754if test -n "$YACC"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5756$as_echo "$YACC" >&6; }
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762
5763 test -n "$YACC" && break
5764done
5765test -n "$YACC" || YACC="yacc"
5766
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5768$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5769set x ${MAKE-make}
5770ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5771if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773else
5774 cat >conftest.make <<\_ACEOF
5775SHELL = /bin/sh
5776all:
5777 @echo '@@@%%%=$(MAKE)=@@@%%%'
5778_ACEOF
5779# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5780case `${MAKE-make} -f conftest.make 2>/dev/null` in
5781 *@@@%%%=?*=@@@%%%*)
5782 eval ac_cv_prog_make_${ac_make}_set=yes;;
5783 *)
5784 eval ac_cv_prog_make_${ac_make}_set=no;;
5785esac
5786rm -f conftest.make
5787fi
5788if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790$as_echo "yes" >&6; }
5791 SET_MAKE=
5792else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795 SET_MAKE="MAKE=${MAKE-make}"
5796fi
5797
5798
5799case "$host_os" in
5800opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5801*) MAKE_SHELL=/bin/sh ;;
5802esac
5803
5804
5805if test x$SIZE = x; then
5806 if test x$ac_tool_prefix = x; then
5807 SIZE=size
5808 else
5809 SIZE=${ac_tool_prefix}size
5810 save_IFS=$IFS ; IFS=:
5811 size_found=0
5812 for dir in $PATH; do
5813 if test -x $dir/$SIZE ; then
5814 size_found=1
5815 break
5816 fi
5817 done
5818 if test $size_found -eq 0; then
5819 SIZE=:
5820 fi
5821 IFS=$save_IFS
5822 fi
5823fi
5824
5825
5826# Checks for stat-related time functions.
5827
5828# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
5829# Foundation, Inc.
5830
5831# This file is free software; the Free Software Foundation
5832# gives unlimited permission to copy and/or distribute it,
5833# with or without modifications, as long as this notice is preserved.
5834
5835
5836# st_atim.tv_nsec - Linux, Solaris, Cygwin
5837# st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
5838# st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
5839# st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
5840
5841# st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
5842# st_birthtim - Cygwin 1.7.0+
5843
5844
5845
5846# Configure checks for struct timespec
5847
5848# Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
5849
5850# This file is free software; the Free Software Foundation
5851# gives unlimited permission to copy and/or distribute it,
5852# with or without modifications, as long as this notice is preserved.
5853
5854# Original written by Paul Eggert and Jim Meyering.
5855# Modified by Chet Ramey for bash
5856
5857
5858
5859
5860
5861$as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
5862
5863
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5865$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5866if ${ac_cv_c_const+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868else
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h. */
5871
5872int
5873main ()
5874{
5875/* FIXME: Include the comments suggested by Paul. */
5876#ifndef __cplusplus
5877 /* Ultrix mips cc rejects this. */
5878 typedef int charset[2];
5879 const charset cs;
5880 /* SunOS 4.1.1 cc rejects this. */
5881 char const *const *pcpcc;
5882 char **ppc;
5883 /* NEC SVR4.0.2 mips cc rejects this. */
5884 struct point {int x, y;};
5885 static struct point const zero = {0,0};
5886 /* AIX XL C 1.02.0.0 rejects this.
5887 It does not let you subtract one const X* pointer from another in
5888 an arm of an if-expression whose if-part is not a constant
5889 expression */
5890 const char *g = "string";
5891 pcpcc = &g + (g ? g-g : 0);
5892 /* HPUX 7.0 cc rejects these. */
5893 ++pcpcc;
5894 ppc = (char**) pcpcc;
5895 pcpcc = (char const *const *) ppc;
5896 { /* SCO 3.2v4 cc rejects this. */
5897 char *t;
5898 char const *s = 0 ? (char *) 0 : (char const *) 0;
5899
5900 *t++ = 0;
5901 if (s) return 0;
5902 }
5903 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5904 int x[] = {25, 17};
5905 const int *foo = &x[0];
5906 ++foo;
5907 }
5908 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5909 typedef const int *iptr;
5910 iptr p = 0;
5911 ++p;
5912 }
5913 { /* AIX XL C 1.02.0.0 rejects this saying
5914 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5915 struct s { int j; const int *ap[3]; };
5916 struct s *b; b->j = 5;
5917 }
5918 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5919 const int foo = 10;
5920 if (!foo) return 0;
5921 }
5922 return !cs[0] && !zero.x;
5923#endif
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then :
5930 ac_cv_c_const=yes
5931else
5932 ac_cv_c_const=no
5933fi
5934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5937$as_echo "$ac_cv_c_const" >&6; }
5938if test $ac_cv_c_const = no; then
5939
5940$as_echo "@%:@define const /**/" >>confdefs.h
5941
5942fi
5943
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5945$as_echo_n "checking for inline... " >&6; }
5946if ${ac_cv_c_inline+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948else
5949 ac_cv_c_inline=no
5950for ac_kw in inline __inline__ __inline; do
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953#ifndef __cplusplus
5954typedef int foo_t;
5955static $ac_kw foo_t static_foo () {return 0; }
5956$ac_kw foo_t foo () {return 0; }
5957#endif
5958
5959_ACEOF
5960if ac_fn_c_try_compile "$LINENO"; then :
5961 ac_cv_c_inline=$ac_kw
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 test "$ac_cv_c_inline" != no && break
5965done
5966
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5969$as_echo "$ac_cv_c_inline" >&6; }
5970
5971case $ac_cv_c_inline in
5972 inline | yes) ;;
5973 *)
5974 case $ac_cv_c_inline in
5975 no) ac_val=;;
5976 *) ac_val=$ac_cv_c_inline;;
5977 esac
5978 cat >>confdefs.h <<_ACEOF
5979#ifndef __cplusplus
5980#define inline $ac_val
5981#endif
5982_ACEOF
5983 ;;
5984esac
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5987$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5988if ${ac_cv_c_bigendian+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990else
5991 ac_cv_c_bigendian=unknown
5992 # See if we're dealing with a universal compiler.
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h. */
5995#ifndef __APPLE_CC__
5996 not a universal capable compiler
5997 #endif
5998 typedef int dummy;
5999
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002
6003 # Check for potential -arch flags. It is not universal unless
6004 # there are at least two -arch flags with different values.
6005 ac_arch=
6006 ac_prev=
6007 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6008 if test -n "$ac_prev"; then
6009 case $ac_word in
6010 i?86 | x86_64 | ppc | ppc64)
6011 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6012 ac_arch=$ac_word
6013 else
6014 ac_cv_c_bigendian=universal
6015 break
6016 fi
6017 ;;
6018 esac
6019 ac_prev=
6020 elif test "x$ac_word" = "x-arch"; then
6021 ac_prev=arch
6022 fi
6023 done
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 if test $ac_cv_c_bigendian = unknown; then
6027 # See if sys/param.h defines the BYTE_ORDER macro.
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h. */
6030#include <sys/types.h>
6031 #include <sys/param.h>
6032
6033int
6034main ()
6035{
6036#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6037 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6038 && LITTLE_ENDIAN)
6039 bogus endian macros
6040 #endif
6041
6042 ;
6043 return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_compile "$LINENO"; then :
6047 # It does; now see whether it defined to BIG_ENDIAN or not.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h. */
6050#include <sys/types.h>
6051 #include <sys/param.h>
6052
6053int
6054main ()
6055{
6056#if BYTE_ORDER != BIG_ENDIAN
6057 not big endian
6058 #endif
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065 ac_cv_c_bigendian=yes
6066else
6067 ac_cv_c_bigendian=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070fi
6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 if test $ac_cv_c_bigendian = unknown; then
6074 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h. */
6077#include <limits.h>
6078
6079int
6080main ()
6081{
6082#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6083 bogus endian macros
6084 #endif
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091 # It does; now see whether it defined to _BIG_ENDIAN or not.
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h. */
6094#include <limits.h>
6095
6096int
6097main ()
6098{
6099#ifndef _BIG_ENDIAN
6100 not big endian
6101 #endif
6102
6103 ;
6104 return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"; then :
6108 ac_cv_c_bigendian=yes
6109else
6110 ac_cv_c_bigendian=no
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 fi
6116 if test $ac_cv_c_bigendian = unknown; then
6117 # Compile a test program.
6118 if test "$cross_compiling" = yes; then :
6119 # Try to guess by grepping values from an object file.
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h. */
6122short int ascii_mm[] =
6123 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6124 short int ascii_ii[] =
6125 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6126 int use_ascii (int i) {
6127 return ascii_mm[i] + ascii_ii[i];
6128 }
6129 short int ebcdic_ii[] =
6130 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6131 short int ebcdic_mm[] =
6132 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6133 int use_ebcdic (int i) {
6134 return ebcdic_mm[i] + ebcdic_ii[i];
6135 }
6136 extern int foo;
6137
6138int
6139main ()
6140{
6141return use_ascii (foo) == use_ebcdic (foo);
6142 ;
6143 return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_compile "$LINENO"; then :
6147 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6148 ac_cv_c_bigendian=yes
6149 fi
6150 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6151 if test "$ac_cv_c_bigendian" = unknown; then
6152 ac_cv_c_bigendian=no
6153 else
6154 # finding both strings is unlikely to happen, but who knows?
6155 ac_cv_c_bigendian=unknown
6156 fi
6157 fi
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163$ac_includes_default
6164int
6165main ()
6166{
6167
6168 /* Are we little or big endian? From Harbison&Steele. */
6169 union
6170 {
6171 long int l;
6172 char c[sizeof (long int)];
6173 } u;
6174 u.l = 1;
6175 return u.c[sizeof (long int) - 1] == 1;
6176
6177 ;
6178 return 0;
6179}
6180_ACEOF
6181if ac_fn_c_try_run "$LINENO"; then :
6182 ac_cv_c_bigendian=no
6183else
6184 ac_cv_c_bigendian=yes
6185fi
6186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6187 conftest.$ac_objext conftest.beam conftest.$ac_ext
6188fi
6189
6190 fi
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6193$as_echo "$ac_cv_c_bigendian" >&6; }
6194 case $ac_cv_c_bigendian in #(
6195 yes)
6196 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
6197;; #(
6198 no)
6199 ;; #(
6200 universal)
6201
6202$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6203
6204 ;; #(
6205 *)
6206 as_fn_error $? "unknown endianness
6207 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6208 esac
6209
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6211$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6212if ${ac_cv_c_stringize+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h. */
6217@%:@define x(y) #y
6218
6219char *s = x(teststring);
6220_ACEOF
6221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222 $EGREP "@%:@teststring" >/dev/null 2>&1; then :
6223 ac_cv_c_stringize=no
6224else
6225 ac_cv_c_stringize=yes
6226fi
6227rm -f conftest*
6228
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6231$as_echo "$ac_cv_c_stringize" >&6; }
6232if test $ac_cv_c_stringize = yes; then
6233
6234$as_echo "@%:@define HAVE_STRINGIZE 1" >>confdefs.h
6235
6236fi
6237
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6241$as_echo_n "checking for long double with more range or precision than double... " >&6; }
6242if ${ac_cv_type_long_double_wider+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h. */
6247#include <float.h>
6248 long double const a[] =
6249 {
6250 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6251 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6252 };
6253 long double
6254 f (long double x)
6255 {
6256 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6257 + (x ? f (x) : 'c'));
6258 }
6259
6260int
6261main ()
6262{
6263static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6264 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6265 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6266 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6267 && (int) LDBL_EPSILON == 0
6268 )@:>@;
6269test_array @<:@0@:>@ = 0
6270
6271 ;
6272 return 0;
6273}
6274_ACEOF
6275if ac_fn_c_try_compile "$LINENO"; then :
6276 ac_cv_type_long_double_wider=yes
6277else
6278 ac_cv_type_long_double_wider=no
6279fi
6280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281fi
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6283$as_echo "$ac_cv_type_long_double_wider" >&6; }
6284 if test $ac_cv_type_long_double_wider = yes; then
6285
6286$as_echo "@%:@define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6287
6288 fi
6289
6290 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6291 if test $ac_cv_c_long_double = yes; then
6292
6293$as_echo "@%:@define HAVE_LONG_DOUBLE 1" >>confdefs.h
6294
6295 fi
6296
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6298$as_echo_n "checking for function prototypes... " >&6; }
6299if test "$ac_cv_prog_cc_c89" != no; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6301$as_echo "yes" >&6; }
6302
6303$as_echo "@%:@define PROTOTYPES 1" >>confdefs.h
6304
6305
6306$as_echo "@%:@define __PROTOTYPES 1" >>confdefs.h
6307
6308else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6314$as_echo_n "checking whether char is unsigned... " >&6; }
6315if ${ac_cv_c_char_unsigned+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320$ac_includes_default
6321int
6322main ()
6323{
6324static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
6325test_array @<:@0@:>@ = 0
6326
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332 ac_cv_c_char_unsigned=no
6333else
6334 ac_cv_c_char_unsigned=yes
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6339$as_echo "$ac_cv_c_char_unsigned" >&6; }
6340if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6341 $as_echo "@%:@define __CHAR_UNSIGNED__ 1" >>confdefs.h
6342
6343fi
6344
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6346$as_echo_n "checking for working volatile... " >&6; }
6347if ${ac_cv_c_volatile+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h. */
6352
6353int
6354main ()
6355{
6356
6357volatile int x;
6358int * volatile y = (int *) 0;
6359return !x && !y;
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365 ac_cv_c_volatile=yes
6366else
6367 ac_cv_c_volatile=no
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6372$as_echo "$ac_cv_c_volatile" >&6; }
6373if test $ac_cv_c_volatile = no; then
6374
6375$as_echo "@%:@define volatile /**/" >>confdefs.h
6376
6377fi
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6380$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6381if ${ac_cv_c_restrict+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383else
6384 ac_cv_c_restrict=no
6385 # The order here caters to the fact that C++ does not require restrict.
6386 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h. */
6389typedef int * int_ptr;
6390 int foo (int_ptr $ac_kw ip) {
6391 return ip[0];
6392 }
6393int
6394main ()
6395{
6396int s[1];
6397 int * $ac_kw t = s;
6398 t[0] = 0;
6399 return foo(t)
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"; then :
6405 ac_cv_c_restrict=$ac_kw
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 test "$ac_cv_c_restrict" != no && break
6409 done
6410
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6413$as_echo "$ac_cv_c_restrict" >&6; }
6414
6415 case $ac_cv_c_restrict in
6416 restrict) ;;
6417 no) $as_echo "@%:@define restrict /**/" >>confdefs.h
6418 ;;
6419 *) cat >>confdefs.h <<_ACEOF
6420@%:@define restrict $ac_cv_c_restrict
6421_ACEOF
6422 ;;
6423 esac
6424
6425
6426
6427 MKINSTALLDIRS=
6428 if test -n "$ac_aux_dir"; then
6429 case "$ac_aux_dir" in
6430 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6431 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6432 esac
6433 fi
6434 if test -z "$MKINSTALLDIRS"; then
6435 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6436 fi
6437
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6441$as_echo_n "checking whether NLS is requested... " >&6; }
6442 @%:@ Check whether --enable-nls was given.
6443if test "${enable_nls+set}" = set; then :
6444 enableval=$enable_nls; USE_NLS=$enableval
6445else
6446 USE_NLS=yes
6447fi
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6450$as_echo "$USE_NLS" >&6; }
6451
6452
6453
6454
6455
6456
6457# Prepare PATH_SEPARATOR.
6458# The user is always right.
6459if test "${PATH_SEPARATOR+set}" != set; then
6460 echo "#! /bin/sh" >conf$$.sh
6461 echo "exit 0" >>conf$$.sh
6462 chmod +x conf$$.sh
6463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6464 PATH_SEPARATOR=';'
6465 else
6466 PATH_SEPARATOR=:
6467 fi
6468 rm -f conf$$.sh
6469fi
6470
6471# Find out how to test for executable files. Don't use a zero-byte file,
6472# as systems may use methods other than mode bits to determine executability.
6473cat >conf$$.file <<_ASEOF
6474#! /bin/sh
6475exit 0
6476_ASEOF
6477chmod +x conf$$.file
6478if test -x conf$$.file >/dev/null 2>&1; then
6479 ac_executable_p="test -x"
6480else
6481 ac_executable_p="test -f"
6482fi
6483rm -f conf$$.file
6484
6485# Extract the first word of "msgfmt", so it can be a program name with args.
6486set dummy msgfmt; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
6489if ${ac_cv_path_MSGFMT+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491else
6492 case "$MSGFMT" in
6493 [\\/]* | ?:[\\/]*)
6494 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6495 ;;
6496 *)
6497 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6498 for ac_dir in $PATH; do
6499 IFS="$ac_save_IFS"
6500 test -z "$ac_dir" && ac_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6503 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6504 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6505 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6506 break 2
6507 fi
6508 fi
6509 done
6510 done
6511 IFS="$ac_save_IFS"
6512 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6513 ;;
6514esac
6515fi
6516MSGFMT="$ac_cv_path_MSGFMT"
6517if test "$MSGFMT" != ":"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6519$as_echo "$MSGFMT" >&6; }
6520else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6526set dummy gmsgfmt; ac_word=$2
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if ${ac_cv_path_GMSGFMT+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 case $GMSGFMT in
6533 [\\/]* | ?:[\\/]*)
6534 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6535 ;;
6536 *)
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538for as_dir in $PATH
6539do
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6547 fi
6548done
6549 done
6550IFS=$as_save_IFS
6551
6552 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6553 ;;
6554esac
6555fi
6556GMSGFMT=$ac_cv_path_GMSGFMT
6557if test -n "$GMSGFMT"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6559$as_echo "$GMSGFMT" >&6; }
6560else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565
6566
6567
6568# Prepare PATH_SEPARATOR.
6569# The user is always right.
6570if test "${PATH_SEPARATOR+set}" != set; then
6571 echo "#! /bin/sh" >conf$$.sh
6572 echo "exit 0" >>conf$$.sh
6573 chmod +x conf$$.sh
6574 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6575 PATH_SEPARATOR=';'
6576 else
6577 PATH_SEPARATOR=:
6578 fi
6579 rm -f conf$$.sh
6580fi
6581
6582# Find out how to test for executable files. Don't use a zero-byte file,
6583# as systems may use methods other than mode bits to determine executability.
6584cat >conf$$.file <<_ASEOF
6585#! /bin/sh
6586exit 0
6587_ASEOF
6588chmod +x conf$$.file
6589if test -x conf$$.file >/dev/null 2>&1; then
6590 ac_executable_p="test -x"
6591else
6592 ac_executable_p="test -f"
6593fi
6594rm -f conf$$.file
6595
6596# Extract the first word of "xgettext", so it can be a program name with args.
6597set dummy xgettext; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if ${ac_cv_path_XGETTEXT+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602else
6603 case "$XGETTEXT" in
6604 [\\/]* | ?:[\\/]*)
6605 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6606 ;;
6607 *)
6608 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6609 for ac_dir in $PATH; do
6610 IFS="$ac_save_IFS"
6611 test -z "$ac_dir" && ac_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6614 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6615 (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
6616 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6617 break 2
6618 fi
6619 fi
6620 done
6621 done
6622 IFS="$ac_save_IFS"
6623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6624 ;;
6625esac
6626fi
6627XGETTEXT="$ac_cv_path_XGETTEXT"
6628if test "$XGETTEXT" != ":"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6630$as_echo "$XGETTEXT" >&6; }
6631else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636 rm -f messages.po
6637
6638
6639# Prepare PATH_SEPARATOR.
6640# The user is always right.
6641if test "${PATH_SEPARATOR+set}" != set; then
6642 echo "#! /bin/sh" >conf$$.sh
6643 echo "exit 0" >>conf$$.sh
6644 chmod +x conf$$.sh
6645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6646 PATH_SEPARATOR=';'
6647 else
6648 PATH_SEPARATOR=:
6649 fi
6650 rm -f conf$$.sh
6651fi
6652
6653# Find out how to test for executable files. Don't use a zero-byte file,
6654# as systems may use methods other than mode bits to determine executability.
6655cat >conf$$.file <<_ASEOF
6656#! /bin/sh
6657exit 0
6658_ASEOF
6659chmod +x conf$$.file
6660if test -x conf$$.file >/dev/null 2>&1; then
6661 ac_executable_p="test -x"
6662else
6663 ac_executable_p="test -f"
6664fi
6665rm -f conf$$.file
6666
6667# Extract the first word of "msgmerge", so it can be a program name with args.
6668set dummy msgmerge; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_path_MSGMERGE+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673else
6674 case "$MSGMERGE" in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6677 ;;
6678 *)
6679 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6680 for ac_dir in $PATH; do
6681 IFS="$ac_save_IFS"
6682 test -z "$ac_dir" && ac_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6685 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6686 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6687 break 2
6688 fi
6689 fi
6690 done
6691 done
6692 IFS="$ac_save_IFS"
6693 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6694 ;;
6695esac
6696fi
6697MSGMERGE="$ac_cv_path_MSGMERGE"
6698if test "$MSGMERGE" != ":"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6700$as_echo "$MSGMERGE" >&6; }
6701else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
6704fi
6705
6706
6707 if test "$GMSGFMT" != ":"; then
6708 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6709 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6710 : ;
6711 else
6712 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6714$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6715 GMSGFMT=":"
6716 fi
6717 fi
6718
6719 if test "$XGETTEXT" != ":"; then
6720 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6721 (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
6722 : ;
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6725$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6726 XGETTEXT=":"
6727 fi
6728 rm -f messages.po
6729 fi
6730
6731 ac_config_commands="$ac_config_commands default-1"
6732
6733
6734ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6735if test "x$ac_cv_type_off_t" = xyes; then :
6736
6737else
6738
6739cat >>confdefs.h <<_ACEOF
6740@%:@define off_t long int
6741_ACEOF
6742
6743fi
6744
6745ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6746if test "x$ac_cv_type_size_t" = xyes; then :
6747
6748else
6749
6750cat >>confdefs.h <<_ACEOF
6751@%:@define size_t unsigned int
6752_ACEOF
6753
6754fi
6755
6756# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6757# for constant arguments. Useless!
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6759$as_echo_n "checking for working alloca.h... " >&6; }
6760if ${ac_cv_working_alloca_h+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h. */
6765@%:@include <alloca.h>
6766int
6767main ()
6768{
6769char *p = (char *) alloca (2 * sizeof (int));
6770 if (p) return 0;
6771 ;
6772 return 0;
6773}
6774_ACEOF
6775if ac_fn_c_try_link "$LINENO"; then :
6776 ac_cv_working_alloca_h=yes
6777else
6778 ac_cv_working_alloca_h=no
6779fi
6780rm -f core conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
6782fi
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6784$as_echo "$ac_cv_working_alloca_h" >&6; }
6785if test $ac_cv_working_alloca_h = yes; then
6786
6787$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
6788
6789fi
6790
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6792$as_echo_n "checking for alloca... " >&6; }
6793if ${ac_cv_func_alloca_works+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h. */
6798#ifdef __GNUC__
6799# define alloca __builtin_alloca
6800#else
6801# ifdef _MSC_VER
6802# include <malloc.h>
6803# define alloca _alloca
6804# else
6805# ifdef HAVE_ALLOCA_H
6806# include <alloca.h>
6807# else
6808# ifdef _AIX
6809 #pragma alloca
6810# else
6811# ifndef alloca /* predefined by HP cc +Olibcalls */
6812void *alloca (size_t);
6813# endif
6814# endif
6815# endif
6816# endif
6817#endif
6818
6819int
6820main ()
6821{
6822char *p = (char *) alloca (1);
6823 if (p) return 0;
6824 ;
6825 return 0;
6826}
6827_ACEOF
6828if ac_fn_c_try_link "$LINENO"; then :
6829 ac_cv_func_alloca_works=yes
6830else
6831 ac_cv_func_alloca_works=no
6832fi
6833rm -f core conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6837$as_echo "$ac_cv_func_alloca_works" >&6; }
6838
6839if test $ac_cv_func_alloca_works = yes; then
6840
6841$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
6842
6843else
6844 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6845# that cause trouble. Some versions do not even contain alloca or
6846# contain a buggy version. If you still want to use their alloca,
6847# use ar to extract alloca.o from them instead of compiling alloca.c.
6848
6849ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6850
6851$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
6852
6853
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6855$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6856if ${ac_cv_os_cray+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858else
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860/* end confdefs.h. */
6861#if defined CRAY && ! defined CRAY2
6862webecray
6863#else
6864wenotbecray
6865#endif
6866
6867_ACEOF
6868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "webecray" >/dev/null 2>&1; then :
6870 ac_cv_os_cray=yes
6871else
6872 ac_cv_os_cray=no
6873fi
6874rm -f conftest*
6875
6876fi
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6878$as_echo "$ac_cv_os_cray" >&6; }
6879if test $ac_cv_os_cray = yes; then
6880 for ac_func in _getb67 GETB67 getb67; do
6881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6882ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6883if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6884
6885cat >>confdefs.h <<_ACEOF
6886@%:@define CRAY_STACKSEG_END $ac_func
6887_ACEOF
6888
6889 break
6890fi
6891
6892 done
6893fi
6894
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6896$as_echo_n "checking stack direction for C alloca... " >&6; }
6897if ${ac_cv_c_stack_direction+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899else
6900 if test "$cross_compiling" = yes; then :
6901 ac_cv_c_stack_direction=0
6902else
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h. */
6905$ac_includes_default
6906int
6907find_stack_direction ()
6908{
6909 static char *addr = 0;
6910 auto char dummy;
6911 if (addr == 0)
6912 {
6913 addr = &dummy;
6914 return find_stack_direction ();
6915 }
6916 else
6917 return (&dummy > addr) ? 1 : -1;
6918}
6919
6920int
6921main ()
6922{
6923 return find_stack_direction () < 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_run "$LINENO"; then :
6927 ac_cv_c_stack_direction=1
6928else
6929 ac_cv_c_stack_direction=-1
6930fi
6931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6932 conftest.$ac_objext conftest.beam conftest.$ac_ext
6933fi
6934
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6937$as_echo "$ac_cv_c_stack_direction" >&6; }
6938cat >>confdefs.h <<_ACEOF
6939@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
6940_ACEOF
6941
6942
6943fi
6944
6945
6946
6947
6948 for ac_header in $ac_header_list
6949do :
6950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6951ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6952"
6953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6954 cat >>confdefs.h <<_ACEOF
6955@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6956_ACEOF
6957
6958fi
6959
6960done
6961
6962
6963
6964
6965
6966
6967
6968
6969for ac_func in getpagesize
6970do :
6971 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6972if test "x$ac_cv_func_getpagesize" = xyes; then :
6973 cat >>confdefs.h <<_ACEOF
6974@%:@define HAVE_GETPAGESIZE 1
6975_ACEOF
6976
6977fi
6978done
6979
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6981$as_echo_n "checking for working mmap... " >&6; }
6982if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984else
6985 if test "$cross_compiling" = yes; then :
6986 ac_cv_func_mmap_fixed_mapped=no
6987else
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h. */
6990$ac_includes_default
6991/* malloc might have been renamed as rpl_malloc. */
6992#undef malloc
6993
6994/* Thanks to Mike Haertel and Jim Avera for this test.
6995 Here is a matrix of mmap possibilities:
6996 mmap private not fixed
6997 mmap private fixed at somewhere currently unmapped
6998 mmap private fixed at somewhere already mapped
6999 mmap shared not fixed
7000 mmap shared fixed at somewhere currently unmapped
7001 mmap shared fixed at somewhere already mapped
7002 For private mappings, we should verify that changes cannot be read()
7003 back from the file, nor mmap's back from the file at a different
7004 address. (There have been systems where private was not correctly
7005 implemented like the infamous i386 svr4.0, and systems where the
7006 VM page cache was not coherent with the file system buffer cache
7007 like early versions of FreeBSD and possibly contemporary NetBSD.)
7008 For shared mappings, we should conversely verify that changes get
7009 propagated back to all the places they're supposed to be.
7010
7011 Grep wants private fixed already mapped.
7012 The main things grep needs to know about mmap are:
7013 * does it exist and is it safe to write into the mmap'd area
7014 * how to use it (BSD variants) */
7015
7016#include <fcntl.h>
7017#include <sys/mman.h>
7018
7019#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7020char *malloc ();
7021#endif
7022
7023/* This mess was copied from the GNU getpagesize.h. */
7024#ifndef HAVE_GETPAGESIZE
7025# ifdef _SC_PAGESIZE
7026# define getpagesize() sysconf(_SC_PAGESIZE)
7027# else /* no _SC_PAGESIZE */
7028# ifdef HAVE_SYS_PARAM_H
7029# include <sys/param.h>
7030# ifdef EXEC_PAGESIZE
7031# define getpagesize() EXEC_PAGESIZE
7032# else /* no EXEC_PAGESIZE */
7033# ifdef NBPG
7034# define getpagesize() NBPG * CLSIZE
7035# ifndef CLSIZE
7036# define CLSIZE 1
7037# endif /* no CLSIZE */
7038# else /* no NBPG */
7039# ifdef NBPC
7040# define getpagesize() NBPC
7041# else /* no NBPC */
7042# ifdef PAGESIZE
7043# define getpagesize() PAGESIZE
7044# endif /* PAGESIZE */
7045# endif /* no NBPC */
7046# endif /* no NBPG */
7047# endif /* no EXEC_PAGESIZE */
7048# else /* no HAVE_SYS_PARAM_H */
7049# define getpagesize() 8192 /* punt totally */
7050# endif /* no HAVE_SYS_PARAM_H */
7051# endif /* no _SC_PAGESIZE */
7052
7053#endif /* no HAVE_GETPAGESIZE */
7054
7055int
7056main ()
7057{
7058 char *data, *data2, *data3;
7059 const char *cdata2;
7060 int i, pagesize;
7061 int fd, fd2;
7062
7063 pagesize = getpagesize ();
7064
7065 /* First, make a file with some known garbage in it. */
7066 data = (char *) malloc (pagesize);
7067 if (!data)
7068 return 1;
7069 for (i = 0; i < pagesize; ++i)
7070 *(data + i) = rand ();
7071 umask (0);
7072 fd = creat ("conftest.mmap", 0600);
7073 if (fd < 0)
7074 return 2;
7075 if (write (fd, data, pagesize) != pagesize)
7076 return 3;
7077 close (fd);
7078
7079 /* Next, check that the tail of a page is zero-filled. File must have
7080 non-zero length, otherwise we risk SIGBUS for entire page. */
7081 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7082 if (fd2 < 0)
7083 return 4;
7084 cdata2 = "";
7085 if (write (fd2, cdata2, 1) != 1)
7086 return 5;
7087 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7088 if (data2 == MAP_FAILED)
7089 return 6;
7090 for (i = 0; i < pagesize; ++i)
7091 if (*(data2 + i))
7092 return 7;
7093 close (fd2);
7094 if (munmap (data2, pagesize))
7095 return 8;
7096
7097 /* Next, try to mmap the file at a fixed address which already has
7098 something else allocated at it. If we can, also make sure that
7099 we see the same garbage. */
7100 fd = open ("conftest.mmap", O_RDWR);
7101 if (fd < 0)
7102 return 9;
7103 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7104 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7105 return 10;
7106 for (i = 0; i < pagesize; ++i)
7107 if (*(data + i) != *(data2 + i))
7108 return 11;
7109
7110 /* Finally, make sure that changes to the mapped area do not
7111 percolate back to the file as seen by read(). (This is a bug on
7112 some variants of i386 svr4.0.) */
7113 for (i = 0; i < pagesize; ++i)
7114 *(data2 + i) = *(data2 + i) + 1;
7115 data3 = (char *) malloc (pagesize);
7116 if (!data3)
7117 return 12;
7118 if (read (fd, data3, pagesize) != pagesize)
7119 return 13;
7120 for (i = 0; i < pagesize; ++i)
7121 if (*(data + i) != *(data3 + i))
7122 return 14;
7123 close (fd);
7124 return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_run "$LINENO"; then :
7128 ac_cv_func_mmap_fixed_mapped=yes
7129else
7130 ac_cv_func_mmap_fixed_mapped=no
7131fi
7132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7133 conftest.$ac_objext conftest.beam conftest.$ac_ext
7134fi
7135
7136fi
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7138$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7139if test $ac_cv_func_mmap_fixed_mapped = yes; then
7140
7141$as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h
7142
7143fi
7144rm -f conftest.mmap conftest.txt
7145
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7148$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7149if ${ac_cv_gnu_library_2_1+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151else
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153/* end confdefs.h. */
7154
7155#include <features.h>
7156#ifdef __GNU_LIBRARY__
7157 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7158 Lucky GNU user
7159 #endif
7160#endif
7161
7162_ACEOF
7163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7165 ac_cv_gnu_library_2_1=yes
7166else
7167 ac_cv_gnu_library_2_1=no
7168fi
7169rm -f conftest*
7170
7171
7172
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7175$as_echo "$ac_cv_gnu_library_2_1" >&6; }
7176
7177 GLIBC21="$ac_cv_gnu_library_2_1"
7178
7179
7180
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7183$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7184if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186else
7187
7188 if test "$cross_compiling" = yes; then :
7189
7190 # Guess based on the CPU.
7191 case "$host_cpu" in
7192 alpha* | i3456786 | m68k | s390*)
7193 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7194 *)
7195 gt_cv_int_divbyzero_sigfpe="guessing no";;
7196 esac
7197
7198else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h. */
7201
7202#include <stdlib.h>
7203#include <signal.h>
7204
7205static void
7206#ifdef __cplusplus
7207sigfpe_handler (int sig)
7208#else
7209sigfpe_handler (sig) int sig;
7210#endif
7211{
7212 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7213 exit (sig != SIGFPE);
7214}
7215
7216int x = 1;
7217int y = 0;
7218int z;
7219int nan;
7220
7221int main ()
7222{
7223 signal (SIGFPE, sigfpe_handler);
7224/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7225#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7226 signal (SIGTRAP, sigfpe_handler);
7227#endif
7228/* Linux/SPARC yields signal SIGILL. */
7229#if defined (__sparc__) && defined (__linux__)
7230 signal (SIGILL, sigfpe_handler);
7231#endif
7232
7233 z = x / y;
7234 nan = y / y;
7235 exit (1);
7236}
7237
7238_ACEOF
7239if ac_fn_c_try_run "$LINENO"; then :
7240 gt_cv_int_divbyzero_sigfpe=yes
7241else
7242 gt_cv_int_divbyzero_sigfpe=no
7243fi
7244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7245 conftest.$ac_objext conftest.beam conftest.$ac_ext
7246fi
7247
7248
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7251$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7252 case "$gt_cv_int_divbyzero_sigfpe" in
7253 *yes) value=1;;
7254 *) value=0;;
7255 esac
7256
7257cat >>confdefs.h <<_ACEOF
7258@%:@define INTDIV0_RAISES_SIGFPE $value
7259_ACEOF
7260
7261
7262
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7264$as_echo_n "checking for inttypes.h... " >&6; }
7265if ${jm_ac_cv_header_inttypes_h+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267else
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h. */
7270#include <sys/types.h>
7271#include <inttypes.h>
7272int
7273main ()
7274{
7275uintmax_t i = (uintmax_t) -1;
7276 ;
7277 return 0;
7278}
7279_ACEOF
7280if ac_fn_c_try_compile "$LINENO"; then :
7281 jm_ac_cv_header_inttypes_h=yes
7282else
7283 jm_ac_cv_header_inttypes_h=no
7284fi
7285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7288$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
7289 if test $jm_ac_cv_header_inttypes_h = yes; then
7290
7291cat >>confdefs.h <<_ACEOF
7292@%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
7293_ACEOF
7294
7295 fi
7296
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7299$as_echo_n "checking for stdint.h... " >&6; }
7300if ${jm_ac_cv_header_stdint_h+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302else
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304/* end confdefs.h. */
7305#include <sys/types.h>
7306#include <stdint.h>
7307int
7308main ()
7309{
7310uintmax_t i = (uintmax_t) -1;
7311 ;
7312 return 0;
7313}
7314_ACEOF
7315if ac_fn_c_try_compile "$LINENO"; then :
7316 jm_ac_cv_header_stdint_h=yes
7317else
7318 jm_ac_cv_header_stdint_h=no
7319fi
7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7323$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
7324 if test $jm_ac_cv_header_stdint_h = yes; then
7325
7326cat >>confdefs.h <<_ACEOF
7327@%:@define HAVE_STDINT_H_WITH_UINTMAX 1
7328_ACEOF
7329
7330 fi
7331
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7334$as_echo_n "checking for unsigned long long... " >&6; }
7335if ${ac_cv_type_unsigned_long_long+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337else
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h. */
7340unsigned long long ull = 1; int i = 63;
7341int
7342main ()
7343{
7344unsigned long long ullmax = (unsigned long long) -1;
7345 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7346 ;
7347 return 0;
7348}
7349_ACEOF
7350if ac_fn_c_try_link "$LINENO"; then :
7351 ac_cv_type_unsigned_long_long=yes
7352else
7353 ac_cv_type_unsigned_long_long=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7357fi
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7359$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7360 if test $ac_cv_type_unsigned_long_long = yes; then
7361
7362$as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7363
7364 fi
7365
7366
7367
7368
7369 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7370
7371 test $ac_cv_type_unsigned_long_long = yes \
7372 && ac_type='unsigned long long' \
7373 || ac_type='unsigned long'
7374
7375cat >>confdefs.h <<_ACEOF
7376@%:@define uintmax_t $ac_type
7377_ACEOF
7378
7379 else
7380
7381$as_echo "@%:@define HAVE_UINTMAX_T 1" >>confdefs.h
7382
7383 fi
7384
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7387$as_echo_n "checking for inttypes.h... " >&6; }
7388if ${gt_cv_header_inttypes_h+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390else
7391
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h. */
7394#include <sys/types.h>
7395#include <inttypes.h>
7396int
7397main ()
7398{
7399
7400 ;
7401 return 0;
7402}
7403_ACEOF
7404if ac_fn_c_try_compile "$LINENO"; then :
7405 gt_cv_header_inttypes_h=yes
7406else
7407 gt_cv_header_inttypes_h=no
7408fi
7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7413$as_echo "$gt_cv_header_inttypes_h" >&6; }
7414 if test $gt_cv_header_inttypes_h = yes; then
7415
7416cat >>confdefs.h <<_ACEOF
7417@%:@define HAVE_INTTYPES_H 1
7418_ACEOF
7419
7420 fi
7421
7422
7423
7424 if test $gt_cv_header_inttypes_h = yes; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7426$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7427if ${gt_cv_inttypes_pri_broken+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429else
7430
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h. */
7433#include <inttypes.h>
7434#ifdef PRId32
7435char *p = PRId32;
7436#endif
7437
7438int
7439main ()
7440{
7441
7442 ;
7443 return 0;
7444}
7445_ACEOF
7446if ac_fn_c_try_compile "$LINENO"; then :
7447 gt_cv_inttypes_pri_broken=no
7448else
7449 gt_cv_inttypes_pri_broken=yes
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7455$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7456 fi
7457 if test "$gt_cv_inttypes_pri_broken" = yes; then
7458
7459cat >>confdefs.h <<_ACEOF
7460@%:@define PRI_MACROS_BROKEN 1
7461_ACEOF
7462
7463 fi
7464
7465
7466 if test "X$prefix" = "XNONE"; then
7467 acl_final_prefix="$ac_default_prefix"
7468 else
7469 acl_final_prefix="$prefix"
7470 fi
7471 if test "X$exec_prefix" = "XNONE"; then
7472 acl_final_exec_prefix='${prefix}'
7473 else
7474 acl_final_exec_prefix="$exec_prefix"
7475 fi
7476 acl_save_prefix="$prefix"
7477 prefix="$acl_final_prefix"
7478 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7479 prefix="$acl_save_prefix"
7480
7481
7482@%:@ Check whether --with-gnu-ld was given.
7483if test "${with_gnu_ld+set}" = set; then :
7484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7485else
7486 with_gnu_ld=no
7487fi
7488
7489# Prepare PATH_SEPARATOR.
7490# The user is always right.
7491if test "${PATH_SEPARATOR+set}" != set; then
7492 echo "#! /bin/sh" >conf$$.sh
7493 echo "exit 0" >>conf$$.sh
7494 chmod +x conf$$.sh
7495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7496 PATH_SEPARATOR=';'
7497 else
7498 PATH_SEPARATOR=:
7499 fi
7500 rm -f conf$$.sh
7501fi
7502ac_prog=ld
7503if test "$GCC" = yes; then
7504 # Check if gcc -print-prog-name=ld gives a path.
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7506$as_echo_n "checking for ld used by GCC... " >&6; }
7507 case $host in
7508 *-*-mingw*)
7509 # gcc leaves a trailing carriage return which upsets mingw
7510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7511 *)
7512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7513 esac
7514 case $ac_prog in
7515 # Accept absolute paths.
7516 [\\/]* | [A-Za-z]:[\\/]*)
7517 re_direlt='/[^/][^/]*/\.\./'
7518 # Canonicalize the path of ld
7519 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7520 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7521 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7522 done
7523 test -z "$LD" && LD="$ac_prog"
7524 ;;
7525 "")
7526 # If it fails, then pretend we aren't using GCC.
7527 ac_prog=ld
7528 ;;
7529 *)
7530 # If it is relative, then search for the first ld in PATH.
7531 with_gnu_ld=unknown
7532 ;;
7533 esac
7534elif test "$with_gnu_ld" = yes; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7536$as_echo_n "checking for GNU ld... " >&6; }
7537else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7539$as_echo_n "checking for non-GNU ld... " >&6; }
7540fi
7541if ${acl_cv_path_LD+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543else
7544 if test -z "$LD"; then
7545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7546 for ac_dir in $PATH; do
7547 test -z "$ac_dir" && ac_dir=.
7548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7549 acl_cv_path_LD="$ac_dir/$ac_prog"
7550 # Check to see if the program is GNU ld. I'd rather use --version,
7551 # but apparently some GNU ld's only accept -v.
7552 # Break only if it was the GNU/non-GNU ld that we prefer.
7553 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7554 test "$with_gnu_ld" != no && break
7555 else
7556 test "$with_gnu_ld" != yes && break
7557 fi
7558 fi
7559 done
7560 IFS="$ac_save_ifs"
7561else
7562 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7563fi
7564fi
7565
7566LD="$acl_cv_path_LD"
7567if test -n "$LD"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7569$as_echo "$LD" >&6; }
7570else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
7574test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7576$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7577if ${acl_cv_prog_gnu_ld+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579else
7580 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7581if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7582 acl_cv_prog_gnu_ld=yes
7583else
7584 acl_cv_prog_gnu_ld=no
7585fi
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7588$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7589with_gnu_ld=$acl_cv_prog_gnu_ld
7590
7591
7592
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7594$as_echo_n "checking for shared library run path origin... " >&6; }
7595if ${acl_cv_rpath+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597else
7598
7599 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7600 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7601 . ./conftest.sh
7602 rm -f ./conftest.sh
7603 acl_cv_rpath=done
7604
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7607$as_echo "$acl_cv_rpath" >&6; }
7608 wl="$acl_cv_wl"
7609 libext="$acl_cv_libext"
7610 shlibext="$acl_cv_shlibext"
7611 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7612 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7613 hardcode_direct="$acl_cv_hardcode_direct"
7614 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7615 @%:@ Check whether --enable-rpath was given.
7616if test "${enable_rpath+set}" = set; then :
7617 enableval=$enable_rpath; :
7618else
7619 enable_rpath=yes
7620fi
7621
7622
7623
7624
7625
7626
7627
7628
7629 use_additional=yes
7630
7631 acl_save_prefix="$prefix"
7632 prefix="$acl_final_prefix"
7633 acl_save_exec_prefix="$exec_prefix"
7634 exec_prefix="$acl_final_exec_prefix"
7635
7636 eval additional_includedir=\"$includedir\"
7637 eval additional_libdir=\"$libdir\"
7638
7639 exec_prefix="$acl_save_exec_prefix"
7640 prefix="$acl_save_prefix"
7641
7642
7643@%:@ Check whether --with-libiconv-prefix was given.
7644if test "${with_libiconv_prefix+set}" = set; then :
7645 withval=$with_libiconv_prefix;
7646 if test "X$withval" = "Xno"; then
7647 use_additional=no
7648 else
7649 if test "X$withval" = "X"; then
7650
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 acl_save_exec_prefix="$exec_prefix"
7654 exec_prefix="$acl_final_exec_prefix"
7655
7656 eval additional_includedir=\"$includedir\"
7657 eval additional_libdir=\"$libdir\"
7658
7659 exec_prefix="$acl_save_exec_prefix"
7660 prefix="$acl_save_prefix"
7661
7662 else
7663 additional_includedir="$withval/include"
7664 additional_libdir="$withval/lib"
7665 fi
7666 fi
7667
7668fi
7669
7670 LIBICONV=
7671 LTLIBICONV=
7672 INCICONV=
7673 rpathdirs=
7674 ltrpathdirs=
7675 names_already_handled=
7676 names_next_round='iconv '
7677 while test -n "$names_next_round"; do
7678 names_this_round="$names_next_round"
7679 names_next_round=
7680 for name in $names_this_round; do
7681 already_handled=
7682 for n in $names_already_handled; do
7683 if test "$n" = "$name"; then
7684 already_handled=yes
7685 break
7686 fi
7687 done
7688 if test -z "$already_handled"; then
7689 names_already_handled="$names_already_handled $name"
7690 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7691 eval value=\"\$HAVE_LIB$uppername\"
7692 if test -n "$value"; then
7693 if test "$value" = yes; then
7694 eval value=\"\$LIB$uppername\"
7695 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7696 eval value=\"\$LTLIB$uppername\"
7697 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7698 else
7699 :
7700 fi
7701 else
7702 found_dir=
7703 found_la=
7704 found_so=
7705 found_a=
7706 if test $use_additional = yes; then
7707 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7708 found_dir="$additional_libdir"
7709 found_so="$additional_libdir/lib$name.$shlibext"
7710 if test -f "$additional_libdir/lib$name.la"; then
7711 found_la="$additional_libdir/lib$name.la"
7712 fi
7713 else
7714 if test -f "$additional_libdir/lib$name.$libext"; then
7715 found_dir="$additional_libdir"
7716 found_a="$additional_libdir/lib$name.$libext"
7717 if test -f "$additional_libdir/lib$name.la"; then
7718 found_la="$additional_libdir/lib$name.la"
7719 fi
7720 fi
7721 fi
7722 fi
7723 if test "X$found_dir" = "X"; then
7724 for x in $LDFLAGS $LTLIBICONV; do
7725
7726 acl_save_prefix="$prefix"
7727 prefix="$acl_final_prefix"
7728 acl_save_exec_prefix="$exec_prefix"
7729 exec_prefix="$acl_final_exec_prefix"
7730 eval x=\"$x\"
7731 exec_prefix="$acl_save_exec_prefix"
7732 prefix="$acl_save_prefix"
7733
7734 case "$x" in
7735 -L*)
7736 dir=`echo "X$x" | sed -e 's/^X-L//'`
7737 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7738 found_dir="$dir"
7739 found_so="$dir/lib$name.$shlibext"
7740 if test -f "$dir/lib$name.la"; then
7741 found_la="$dir/lib$name.la"
7742 fi
7743 else
7744 if test -f "$dir/lib$name.$libext"; then
7745 found_dir="$dir"
7746 found_a="$dir/lib$name.$libext"
7747 if test -f "$dir/lib$name.la"; then
7748 found_la="$dir/lib$name.la"
7749 fi
7750 fi
7751 fi
7752 ;;
7753 esac
7754 if test "X$found_dir" != "X"; then
7755 break
7756 fi
7757 done
7758 fi
7759 if test "X$found_dir" != "X"; then
7760 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7761 if test "X$found_so" != "X"; then
7762 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7763 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7764 else
7765 haveit=
7766 for x in $ltrpathdirs; do
7767 if test "X$x" = "X$found_dir"; then
7768 haveit=yes
7769 break
7770 fi
7771 done
7772 if test -z "$haveit"; then
7773 ltrpathdirs="$ltrpathdirs $found_dir"
7774 fi
7775 if test "$hardcode_direct" = yes; then
7776 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7777 else
7778 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7780 haveit=
7781 for x in $rpathdirs; do
7782 if test "X$x" = "X$found_dir"; then
7783 haveit=yes
7784 break
7785 fi
7786 done
7787 if test -z "$haveit"; then
7788 rpathdirs="$rpathdirs $found_dir"
7789 fi
7790 else
7791 haveit=
7792 for x in $LDFLAGS $LIBICONV; do
7793
7794 acl_save_prefix="$prefix"
7795 prefix="$acl_final_prefix"
7796 acl_save_exec_prefix="$exec_prefix"
7797 exec_prefix="$acl_final_exec_prefix"
7798 eval x=\"$x\"
7799 exec_prefix="$acl_save_exec_prefix"
7800 prefix="$acl_save_prefix"
7801
7802 if test "X$x" = "X-L$found_dir"; then
7803 haveit=yes
7804 break
7805 fi
7806 done
7807 if test -z "$haveit"; then
7808 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7809 fi
7810 if test "$hardcode_minus_L" != no; then
7811 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7812 else
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7814 fi
7815 fi
7816 fi
7817 fi
7818 else
7819 if test "X$found_a" != "X"; then
7820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7821 else
7822 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7823 fi
7824 fi
7825 additional_includedir=
7826 case "$found_dir" in
7827 */lib | */lib/)
7828 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7829 additional_includedir="$basedir/include"
7830 ;;
7831 esac
7832 if test "X$additional_includedir" != "X"; then
7833 if test "X$additional_includedir" != "X/usr/include"; then
7834 haveit=
7835 if test "X$additional_includedir" = "X/usr/local/include"; then
7836 if test -n "$GCC"; then
7837 case $host_os in
7838 linux*) haveit=yes;;
7839 esac
7840 fi
7841 fi
7842 if test -z "$haveit"; then
7843 for x in $CPPFLAGS $INCICONV; do
7844
7845 acl_save_prefix="$prefix"
7846 prefix="$acl_final_prefix"
7847 acl_save_exec_prefix="$exec_prefix"
7848 exec_prefix="$acl_final_exec_prefix"
7849 eval x=\"$x\"
7850 exec_prefix="$acl_save_exec_prefix"
7851 prefix="$acl_save_prefix"
7852
7853 if test "X$x" = "X-I$additional_includedir"; then
7854 haveit=yes
7855 break
7856 fi
7857 done
7858 if test -z "$haveit"; then
7859 if test -d "$additional_includedir"; then
7860 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7861 fi
7862 fi
7863 fi
7864 fi
7865 fi
7866 if test -n "$found_la"; then
7867 save_libdir="$libdir"
7868 case "$found_la" in
7869 */* | *\\*) . "$found_la" ;;
7870 *) . "./$found_la" ;;
7871 esac
7872 libdir="$save_libdir"
7873 for dep in $dependency_libs; do
7874 case "$dep" in
7875 -L*)
7876 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7877 if test "X$additional_libdir" != "X/usr/lib"; then
7878 haveit=
7879 if test "X$additional_libdir" = "X/usr/local/lib"; then
7880 if test -n "$GCC"; then
7881 case $host_os in
7882 linux*) haveit=yes;;
7883 esac
7884 fi
7885 fi
7886 if test -z "$haveit"; then
7887 haveit=
7888 for x in $LDFLAGS $LIBICONV; do
7889
7890 acl_save_prefix="$prefix"
7891 prefix="$acl_final_prefix"
7892 acl_save_exec_prefix="$exec_prefix"
7893 exec_prefix="$acl_final_exec_prefix"
7894 eval x=\"$x\"
7895 exec_prefix="$acl_save_exec_prefix"
7896 prefix="$acl_save_prefix"
7897
7898 if test "X$x" = "X-L$additional_libdir"; then
7899 haveit=yes
7900 break
7901 fi
7902 done
7903 if test -z "$haveit"; then
7904 if test -d "$additional_libdir"; then
7905 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7906 fi
7907 fi
7908 haveit=
7909 for x in $LDFLAGS $LTLIBICONV; do
7910
7911 acl_save_prefix="$prefix"
7912 prefix="$acl_final_prefix"
7913 acl_save_exec_prefix="$exec_prefix"
7914 exec_prefix="$acl_final_exec_prefix"
7915 eval x=\"$x\"
7916 exec_prefix="$acl_save_exec_prefix"
7917 prefix="$acl_save_prefix"
7918
7919 if test "X$x" = "X-L$additional_libdir"; then
7920 haveit=yes
7921 break
7922 fi
7923 done
7924 if test -z "$haveit"; then
7925 if test -d "$additional_libdir"; then
7926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7927 fi
7928 fi
7929 fi
7930 fi
7931 ;;
7932 -R*)
7933 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7934 if test "$enable_rpath" != no; then
7935 haveit=
7936 for x in $rpathdirs; do
7937 if test "X$x" = "X$dir"; then
7938 haveit=yes
7939 break
7940 fi
7941 done
7942 if test -z "$haveit"; then
7943 rpathdirs="$rpathdirs $dir"
7944 fi
7945 haveit=
7946 for x in $ltrpathdirs; do
7947 if test "X$x" = "X$dir"; then
7948 haveit=yes
7949 break
7950 fi
7951 done
7952 if test -z "$haveit"; then
7953 ltrpathdirs="$ltrpathdirs $dir"
7954 fi
7955 fi
7956 ;;
7957 -l*)
7958 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7959 ;;
7960 *.la)
7961 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7962 ;;
7963 *)
7964 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7966 ;;
7967 esac
7968 done
7969 fi
7970 else
7971 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7972 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7973 fi
7974 fi
7975 fi
7976 done
7977 done
7978 if test "X$rpathdirs" != "X"; then
7979 if test -n "$hardcode_libdir_separator"; then
7980 alldirs=
7981 for found_dir in $rpathdirs; do
7982 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7983 done
7984 acl_save_libdir="$libdir"
7985 libdir="$alldirs"
7986 eval flag=\"$hardcode_libdir_flag_spec\"
7987 libdir="$acl_save_libdir"
7988 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7989 else
7990 for found_dir in $rpathdirs; do
7991 acl_save_libdir="$libdir"
7992 libdir="$found_dir"
7993 eval flag=\"$hardcode_libdir_flag_spec\"
7994 libdir="$acl_save_libdir"
7995 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7996 done
7997 fi
7998 fi
7999 if test "X$ltrpathdirs" != "X"; then
8000 for found_dir in $ltrpathdirs; do
8001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8002 done
8003 fi
8004
8005
8006
8007
8008 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8009stdlib.h string.h unistd.h sys/param.h
8010do :
8011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8014 cat >>confdefs.h <<_ACEOF
8015@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8016_ACEOF
8017
8018fi
8019
8020done
8021
8022 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8023geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
8024strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8025__fsetlocking
8026do :
8027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8028ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8029if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8030 cat >>confdefs.h <<_ACEOF
8031@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8032_ACEOF
8033
8034fi
8035done
8036
8037
8038
8039
8040
8041
8042
8043 am_save_CPPFLAGS="$CPPFLAGS"
8044
8045 for element in $INCICONV; do
8046 haveit=
8047 for x in $CPPFLAGS; do
8048
8049 acl_save_prefix="$prefix"
8050 prefix="$acl_final_prefix"
8051 acl_save_exec_prefix="$exec_prefix"
8052 exec_prefix="$acl_final_exec_prefix"
8053 eval x=\"$x\"
8054 exec_prefix="$acl_save_exec_prefix"
8055 prefix="$acl_save_prefix"
8056
8057 if test "X$x" = "X$element"; then
8058 haveit=yes
8059 break
8060 fi
8061 done
8062 if test -z "$haveit"; then
8063 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8064 fi
8065 done
8066
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8069$as_echo_n "checking for iconv... " >&6; }
8070if ${am_cv_func_iconv+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072else
8073
8074 am_cv_func_iconv="no, consider installing GNU libiconv"
8075 am_cv_lib_iconv=no
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h. */
8078#include <stdlib.h>
8079#include <iconv.h>
8080int
8081main ()
8082{
8083iconv_t cd = iconv_open("","");
8084 iconv(cd,NULL,NULL,NULL,NULL);
8085 iconv_close(cd);
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090if ac_fn_c_try_link "$LINENO"; then :
8091 am_cv_func_iconv=yes
8092fi
8093rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 if test "$am_cv_func_iconv" != yes; then
8096 am_save_LIBS="$LIBS"
8097 LIBS="$LIBS $LIBICONV"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h. */
8100#include <stdlib.h>
8101#include <iconv.h>
8102int
8103main ()
8104{
8105iconv_t cd = iconv_open("","");
8106 iconv(cd,NULL,NULL,NULL,NULL);
8107 iconv_close(cd);
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112if ac_fn_c_try_link "$LINENO"; then :
8113 am_cv_lib_iconv=yes
8114 am_cv_func_iconv=yes
8115fi
8116rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS="$am_save_LIBS"
8119 fi
8120
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8123$as_echo "$am_cv_func_iconv" >&6; }
8124 if test "$am_cv_func_iconv" = yes; then
8125
8126$as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
8127
8128 fi
8129 if test "$am_cv_lib_iconv" = yes; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8131$as_echo_n "checking how to link with libiconv... " >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8133$as_echo "$LIBICONV" >&6; }
8134 else
8135 CPPFLAGS="$am_save_CPPFLAGS"
8136 LIBICONV=
8137 LTLIBICONV=
8138 fi
8139
8140
8141
8142 if test "$am_cv_func_iconv" = yes; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8144$as_echo_n "checking for iconv declaration... " >&6; }
8145 if ${am_cv_proto_iconv+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147else
8148
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150/* end confdefs.h. */
8151
8152#include <stdlib.h>
8153#include <iconv.h>
8154extern
8155#ifdef __cplusplus
8156"C"
8157#endif
8158#if defined(__STDC__) || defined(__cplusplus)
8159size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8160#else
8161size_t iconv();
8162#endif
8163
8164int
8165main ()
8166{
8167
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_compile "$LINENO"; then :
8173 am_cv_proto_iconv_arg1=""
8174else
8175 am_cv_proto_iconv_arg1="const"
8176fi
8177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 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);"
8179fi
8180
8181 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8183 }$am_cv_proto_iconv" >&5
8184$as_echo "${ac_t:-
8185 }$am_cv_proto_iconv" >&6; }
8186
8187cat >>confdefs.h <<_ACEOF
8188@%:@define ICONV_CONST $am_cv_proto_iconv_arg1
8189_ACEOF
8190
8191 fi
8192
8193
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8195$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8196if ${am_cv_langinfo_codeset+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198else
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h. */
8201#include <langinfo.h>
8202int
8203main ()
8204{
8205char* cs = nl_langinfo(CODESET);
8206 ;
8207 return 0;
8208}
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"; then :
8211 am_cv_langinfo_codeset=yes
8212else
8213 am_cv_langinfo_codeset=no
8214fi
8215rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8220$as_echo "$am_cv_langinfo_codeset" >&6; }
8221 if test $am_cv_langinfo_codeset = yes; then
8222
8223$as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8224
8225 fi
8226
8227 if test $ac_cv_header_locale_h = yes; then
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8230$as_echo_n "checking for LC_MESSAGES... " >&6; }
8231if ${am_cv_val_LC_MESSAGES+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h. */
8236#include <locale.h>
8237int
8238main ()
8239{
8240return LC_MESSAGES
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245if ac_fn_c_try_link "$LINENO"; then :
8246 am_cv_val_LC_MESSAGES=yes
8247else
8248 am_cv_val_LC_MESSAGES=no
8249fi
8250rm -f core conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252fi
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8254$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8255 if test $am_cv_val_LC_MESSAGES = yes; then
8256
8257$as_echo "@%:@define HAVE_LC_MESSAGES 1" >>confdefs.h
8258
8259 fi
8260
8261 fi
8262
8263 for ac_prog in bison
8264do
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266set dummy $ac_prog; ac_word=$2
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268$as_echo_n "checking for $ac_word... " >&6; }
8269if ${ac_cv_prog_INTLBISON+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271else
8272 if test -n "$INTLBISON"; then
8273 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8274else
8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_INTLBISON="$ac_prog"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286done
8287 done
8288IFS=$as_save_IFS
8289
8290fi
8291fi
8292INTLBISON=$ac_cv_prog_INTLBISON
8293if test -n "$INTLBISON"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8295$as_echo "$INTLBISON" >&6; }
8296else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298$as_echo "no" >&6; }
8299fi
8300
8301
8302 test -n "$INTLBISON" && break
8303done
8304
8305 if test -z "$INTLBISON"; then
8306 ac_verc_fail=yes
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8309$as_echo_n "checking version of bison... " >&6; }
8310 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8311 case $ac_prog_version in
8312 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8313 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8314 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8315 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8316 esac
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8318$as_echo "$ac_prog_version" >&6; }
8319 fi
8320 if test $ac_verc_fail = yes; then
8321 INTLBISON=:
8322 fi
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8340$as_echo_n "checking whether NLS is requested... " >&6; }
8341 @%:@ Check whether --enable-nls was given.
8342if test "${enable_nls+set}" = set; then :
8343 enableval=$enable_nls; USE_NLS=$enableval
8344else
8345 USE_NLS=yes
8346fi
8347
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8349$as_echo "$USE_NLS" >&6; }
8350
8351
8352
8353
8354 BUILD_INCLUDED_LIBINTL=no
8355 USE_INCLUDED_LIBINTL=no
8356
8357 LIBINTL=
8358 LTLIBINTL=
8359 POSUB=
8360
8361 if test "$USE_NLS" = "yes"; then
8362 gt_use_preinstalled_gnugettext=no
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8365$as_echo_n "checking whether included gettext is requested... " >&6; }
8366
8367@%:@ Check whether --with-included-gettext was given.
8368if test "${with_included_gettext+set}" = set; then :
8369 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8370else
8371 nls_cv_force_use_gnu_gettext=no
8372fi
8373
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8375$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8376
8377 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8378 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8379
8380
8381
8382
8383
8384
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8386$as_echo_n "checking for GNU gettext in libc... " >&6; }
8387if ${gt_cv_func_gnugettext2_libc+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391/* end confdefs.h. */
8392#include <libintl.h>
8393extern int _nl_msg_cat_cntr;
8394extern int *_nl_domain_bindings;
8395int
8396main ()
8397{
8398bindtextdomain ("", "");
8399return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8400 ;
8401 return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"; then :
8405 gt_cv_func_gnugettext2_libc=yes
8406else
8407 gt_cv_func_gnugettext2_libc=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext \
8410 conftest$ac_exeext conftest.$ac_ext
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8413$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8414
8415 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8416
8417
8418
8419 use_additional=yes
8420
8421 acl_save_prefix="$prefix"
8422 prefix="$acl_final_prefix"
8423 acl_save_exec_prefix="$exec_prefix"
8424 exec_prefix="$acl_final_exec_prefix"
8425
8426 eval additional_includedir=\"$includedir\"
8427 eval additional_libdir=\"$libdir\"
8428
8429 exec_prefix="$acl_save_exec_prefix"
8430 prefix="$acl_save_prefix"
8431
8432
8433@%:@ Check whether --with-libintl-prefix was given.
8434if test "${with_libintl_prefix+set}" = set; then :
8435 withval=$with_libintl_prefix;
8436 if test "X$withval" = "Xno"; then
8437 use_additional=no
8438 else
8439 if test "X$withval" = "X"; then
8440
8441 acl_save_prefix="$prefix"
8442 prefix="$acl_final_prefix"
8443 acl_save_exec_prefix="$exec_prefix"
8444 exec_prefix="$acl_final_exec_prefix"
8445
8446 eval additional_includedir=\"$includedir\"
8447 eval additional_libdir=\"$libdir\"
8448
8449 exec_prefix="$acl_save_exec_prefix"
8450 prefix="$acl_save_prefix"
8451
8452 else
8453 additional_includedir="$withval/include"
8454 additional_libdir="$withval/lib"
8455 fi
8456 fi
8457
8458fi
8459
8460 LIBINTL=
8461 LTLIBINTL=
8462 INCINTL=
8463 rpathdirs=
8464 ltrpathdirs=
8465 names_already_handled=
8466 names_next_round='intl '
8467 while test -n "$names_next_round"; do
8468 names_this_round="$names_next_round"
8469 names_next_round=
8470 for name in $names_this_round; do
8471 already_handled=
8472 for n in $names_already_handled; do
8473 if test "$n" = "$name"; then
8474 already_handled=yes
8475 break
8476 fi
8477 done
8478 if test -z "$already_handled"; then
8479 names_already_handled="$names_already_handled $name"
8480 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8481 eval value=\"\$HAVE_LIB$uppername\"
8482 if test -n "$value"; then
8483 if test "$value" = yes; then
8484 eval value=\"\$LIB$uppername\"
8485 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8486 eval value=\"\$LTLIB$uppername\"
8487 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8488 else
8489 :
8490 fi
8491 else
8492 found_dir=
8493 found_la=
8494 found_so=
8495 found_a=
8496 if test $use_additional = yes; then
8497 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8498 found_dir="$additional_libdir"
8499 found_so="$additional_libdir/lib$name.$shlibext"
8500 if test -f "$additional_libdir/lib$name.la"; then
8501 found_la="$additional_libdir/lib$name.la"
8502 fi
8503 else
8504 if test -f "$additional_libdir/lib$name.$libext"; then
8505 found_dir="$additional_libdir"
8506 found_a="$additional_libdir/lib$name.$libext"
8507 if test -f "$additional_libdir/lib$name.la"; then
8508 found_la="$additional_libdir/lib$name.la"
8509 fi
8510 fi
8511 fi
8512 fi
8513 if test "X$found_dir" = "X"; then
8514 for x in $LDFLAGS $LTLIBINTL; do
8515
8516 acl_save_prefix="$prefix"
8517 prefix="$acl_final_prefix"
8518 acl_save_exec_prefix="$exec_prefix"
8519 exec_prefix="$acl_final_exec_prefix"
8520 eval x=\"$x\"
8521 exec_prefix="$acl_save_exec_prefix"
8522 prefix="$acl_save_prefix"
8523
8524 case "$x" in
8525 -L*)
8526 dir=`echo "X$x" | sed -e 's/^X-L//'`
8527 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8528 found_dir="$dir"
8529 found_so="$dir/lib$name.$shlibext"
8530 if test -f "$dir/lib$name.la"; then
8531 found_la="$dir/lib$name.la"
8532 fi
8533 else
8534 if test -f "$dir/lib$name.$libext"; then
8535 found_dir="$dir"
8536 found_a="$dir/lib$name.$libext"
8537 if test -f "$dir/lib$name.la"; then
8538 found_la="$dir/lib$name.la"
8539 fi
8540 fi
8541 fi
8542 ;;
8543 esac
8544 if test "X$found_dir" != "X"; then
8545 break
8546 fi
8547 done
8548 fi
8549 if test "X$found_dir" != "X"; then
8550 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8551 if test "X$found_so" != "X"; then
8552 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8553 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8554 else
8555 haveit=
8556 for x in $ltrpathdirs; do
8557 if test "X$x" = "X$found_dir"; then
8558 haveit=yes
8559 break
8560 fi
8561 done
8562 if test -z "$haveit"; then
8563 ltrpathdirs="$ltrpathdirs $found_dir"
8564 fi
8565 if test "$hardcode_direct" = yes; then
8566 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8567 else
8568 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8569 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8570 haveit=
8571 for x in $rpathdirs; do
8572 if test "X$x" = "X$found_dir"; then
8573 haveit=yes
8574 break
8575 fi
8576 done
8577 if test -z "$haveit"; then
8578 rpathdirs="$rpathdirs $found_dir"
8579 fi
8580 else
8581 haveit=
8582 for x in $LDFLAGS $LIBINTL; do
8583
8584 acl_save_prefix="$prefix"
8585 prefix="$acl_final_prefix"
8586 acl_save_exec_prefix="$exec_prefix"
8587 exec_prefix="$acl_final_exec_prefix"
8588 eval x=\"$x\"
8589 exec_prefix="$acl_save_exec_prefix"
8590 prefix="$acl_save_prefix"
8591
8592 if test "X$x" = "X-L$found_dir"; then
8593 haveit=yes
8594 break
8595 fi
8596 done
8597 if test -z "$haveit"; then
8598 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8599 fi
8600 if test "$hardcode_minus_L" != no; then
8601 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8602 else
8603 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8604 fi
8605 fi
8606 fi
8607 fi
8608 else
8609 if test "X$found_a" != "X"; then
8610 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8611 else
8612 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8613 fi
8614 fi
8615 additional_includedir=
8616 case "$found_dir" in
8617 */lib | */lib/)
8618 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8619 additional_includedir="$basedir/include"
8620 ;;
8621 esac
8622 if test "X$additional_includedir" != "X"; then
8623 if test "X$additional_includedir" != "X/usr/include"; then
8624 haveit=
8625 if test "X$additional_includedir" = "X/usr/local/include"; then
8626 if test -n "$GCC"; then
8627 case $host_os in
8628 linux*) haveit=yes;;
8629 esac
8630 fi
8631 fi
8632 if test -z "$haveit"; then
8633 for x in $CPPFLAGS $INCINTL; do
8634
8635 acl_save_prefix="$prefix"
8636 prefix="$acl_final_prefix"
8637 acl_save_exec_prefix="$exec_prefix"
8638 exec_prefix="$acl_final_exec_prefix"
8639 eval x=\"$x\"
8640 exec_prefix="$acl_save_exec_prefix"
8641 prefix="$acl_save_prefix"
8642
8643 if test "X$x" = "X-I$additional_includedir"; then
8644 haveit=yes
8645 break
8646 fi
8647 done
8648 if test -z "$haveit"; then
8649 if test -d "$additional_includedir"; then
8650 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8651 fi
8652 fi
8653 fi
8654 fi
8655 fi
8656 if test -n "$found_la"; then
8657 save_libdir="$libdir"
8658 case "$found_la" in
8659 */* | *\\*) . "$found_la" ;;
8660 *) . "./$found_la" ;;
8661 esac
8662 libdir="$save_libdir"
8663 for dep in $dependency_libs; do
8664 case "$dep" in
8665 -L*)
8666 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8667 if test "X$additional_libdir" != "X/usr/lib"; then
8668 haveit=
8669 if test "X$additional_libdir" = "X/usr/local/lib"; then
8670 if test -n "$GCC"; then
8671 case $host_os in
8672 linux*) haveit=yes;;
8673 esac
8674 fi
8675 fi
8676 if test -z "$haveit"; then
8677 haveit=
8678 for x in $LDFLAGS $LIBINTL; do
8679
8680 acl_save_prefix="$prefix"
8681 prefix="$acl_final_prefix"
8682 acl_save_exec_prefix="$exec_prefix"
8683 exec_prefix="$acl_final_exec_prefix"
8684 eval x=\"$x\"
8685 exec_prefix="$acl_save_exec_prefix"
8686 prefix="$acl_save_prefix"
8687
8688 if test "X$x" = "X-L$additional_libdir"; then
8689 haveit=yes
8690 break
8691 fi
8692 done
8693 if test -z "$haveit"; then
8694 if test -d "$additional_libdir"; then
8695 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8696 fi
8697 fi
8698 haveit=
8699 for x in $LDFLAGS $LTLIBINTL; do
8700
8701 acl_save_prefix="$prefix"
8702 prefix="$acl_final_prefix"
8703 acl_save_exec_prefix="$exec_prefix"
8704 exec_prefix="$acl_final_exec_prefix"
8705 eval x=\"$x\"
8706 exec_prefix="$acl_save_exec_prefix"
8707 prefix="$acl_save_prefix"
8708
8709 if test "X$x" = "X-L$additional_libdir"; then
8710 haveit=yes
8711 break
8712 fi
8713 done
8714 if test -z "$haveit"; then
8715 if test -d "$additional_libdir"; then
8716 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8717 fi
8718 fi
8719 fi
8720 fi
8721 ;;
8722 -R*)
8723 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8724 if test "$enable_rpath" != no; then
8725 haveit=
8726 for x in $rpathdirs; do
8727 if test "X$x" = "X$dir"; then
8728 haveit=yes
8729 break
8730 fi
8731 done
8732 if test -z "$haveit"; then
8733 rpathdirs="$rpathdirs $dir"
8734 fi
8735 haveit=
8736 for x in $ltrpathdirs; do
8737 if test "X$x" = "X$dir"; then
8738 haveit=yes
8739 break
8740 fi
8741 done
8742 if test -z "$haveit"; then
8743 ltrpathdirs="$ltrpathdirs $dir"
8744 fi
8745 fi
8746 ;;
8747 -l*)
8748 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8749 ;;
8750 *.la)
8751 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8752 ;;
8753 *)
8754 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8755 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8756 ;;
8757 esac
8758 done
8759 fi
8760 else
8761 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8762 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8763 fi
8764 fi
8765 fi
8766 done
8767 done
8768 if test "X$rpathdirs" != "X"; then
8769 if test -n "$hardcode_libdir_separator"; then
8770 alldirs=
8771 for found_dir in $rpathdirs; do
8772 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8773 done
8774 acl_save_libdir="$libdir"
8775 libdir="$alldirs"
8776 eval flag=\"$hardcode_libdir_flag_spec\"
8777 libdir="$acl_save_libdir"
8778 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8779 else
8780 for found_dir in $rpathdirs; do
8781 acl_save_libdir="$libdir"
8782 libdir="$found_dir"
8783 eval flag=\"$hardcode_libdir_flag_spec\"
8784 libdir="$acl_save_libdir"
8785 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8786 done
8787 fi
8788 fi
8789 if test "X$ltrpathdirs" != "X"; then
8790 for found_dir in $ltrpathdirs; do
8791 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8792 done
8793 fi
8794
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8796$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8797if ${gt_cv_func_gnugettext2_libintl+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799else
8800 gt_save_CPPFLAGS="$CPPFLAGS"
8801 CPPFLAGS="$CPPFLAGS $INCINTL"
8802 gt_save_LIBS="$LIBS"
8803 LIBS="$LIBS $LIBINTL"
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805/* end confdefs.h. */
8806#include <libintl.h>
8807extern int _nl_msg_cat_cntr;
8808extern
8809#ifdef __cplusplus
8810"C"
8811#endif
8812const char *_nl_expand_alias ();
8813int
8814main ()
8815{
8816bindtextdomain ("", "");
8817return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822if ac_fn_c_try_link "$LINENO"; then :
8823 gt_cv_func_gnugettext2_libintl=yes
8824else
8825 gt_cv_func_gnugettext2_libintl=no
8826fi
8827rm -f core conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8830 LIBS="$LIBS $LIBICONV"
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h. */
8833#include <libintl.h>
8834extern int _nl_msg_cat_cntr;
8835extern
8836#ifdef __cplusplus
8837"C"
8838#endif
8839const char *_nl_expand_alias ();
8840int
8841main ()
8842{
8843bindtextdomain ("", "");
8844return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8845 ;
8846 return 0;
8847}
8848_ACEOF
8849if ac_fn_c_try_link "$LINENO"; then :
8850 LIBINTL="$LIBINTL $LIBICONV"
8851 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8852 gt_cv_func_gnugettext2_libintl=yes
8853
8854fi
8855rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 fi
8858 CPPFLAGS="$gt_save_CPPFLAGS"
8859 LIBS="$gt_save_LIBS"
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8862$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8863 fi
8864
8865 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8866 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8867 && test "$PACKAGE" != gettext-runtime \
8868 && test "$PACKAGE" != gettext-tools; }; then
8869 gt_use_preinstalled_gnugettext=yes
8870 else
8871 LIBINTL=
8872 LTLIBINTL=
8873 INCINTL=
8874 fi
8875
8876
8877 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8878 nls_cv_use_gnu_gettext=yes
8879 fi
8880 fi
8881
8882 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8883 BUILD_INCLUDED_LIBINTL=yes
8884 USE_INCLUDED_LIBINTL=yes
8885 LIBINTL="lib/intl/libintl.a $LIBICONV"
8886 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8887 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8888 fi
8889
8890 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8891 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8892 CATOBJEXT=.gmo
8893 fi
8894
8895
8896 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8897 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8898
8899$as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
8900
8901 else
8902 USE_NLS=no
8903 fi
8904 fi
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8907$as_echo_n "checking whether to use NLS... " >&6; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8909$as_echo "$USE_NLS" >&6; }
8910 if test "$USE_NLS" = "yes"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8912$as_echo_n "checking where the gettext function comes from... " >&6; }
8913 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8914 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8915 gt_source="external libintl"
8916 else
8917 gt_source="libc"
8918 fi
8919 else
8920 gt_source="included intl directory"
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8923$as_echo "$gt_source" >&6; }
8924 fi
8925
8926 if test "$USE_NLS" = "yes"; then
8927
8928 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8929 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8931$as_echo_n "checking how to link with libintl... " >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8933$as_echo "$LIBINTL" >&6; }
8934
8935 for element in $INCINTL; do
8936 haveit=
8937 for x in $CPPFLAGS; do
8938
8939 acl_save_prefix="$prefix"
8940 prefix="$acl_final_prefix"
8941 acl_save_exec_prefix="$exec_prefix"
8942 exec_prefix="$acl_final_exec_prefix"
8943 eval x=\"$x\"
8944 exec_prefix="$acl_save_exec_prefix"
8945 prefix="$acl_save_prefix"
8946
8947 if test "X$x" = "X$element"; then
8948 haveit=yes
8949 break
8950 fi
8951 done
8952 if test -z "$haveit"; then
8953 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8954 fi
8955 done
8956
8957 fi
8958
8959
8960$as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
8961
8962
8963$as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
8964
8965 fi
8966
8967 POSUB=po
8968 fi
8969
8970
8971 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8972 BUILD_INCLUDED_LIBINTL=yes
8973 fi
8974
8975
8976
8977
8978
8979 nls_cv_header_intl=
8980 nls_cv_header_libgt=
8981
8982 DATADIRNAME=share
8983
8984
8985 INSTOBJEXT=.mo
8986
8987
8988 GENCAT=gencat
8989
8990
8991 if test "$USE_INCLUDED_LIBINTL" = yes; then
8992 INTLOBJS="\$(GETTOBJS)"
8993 fi
8994
8995
8996 INTL_LIBTOOL_SUFFIX_PREFIX=
8997
8998
8999
9000 INTLLIBS="$LIBINTL"
9001
9002
9003
9004
9005
9006
9007
9008ac_header_dirent=no
9009for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9010 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9012$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9013if eval \${$as_ac_Header+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h. */
9018#include <sys/types.h>
9019#include <$ac_hdr>
9020
9021int
9022main ()
9023{
9024if ((DIR *) 0)
9025return 0;
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_compile "$LINENO"; then :
9031 eval "$as_ac_Header=yes"
9032else
9033 eval "$as_ac_Header=no"
9034fi
9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036fi
9037eval ac_res=\$$as_ac_Header
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9039$as_echo "$ac_res" >&6; }
9040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9041 cat >>confdefs.h <<_ACEOF
9042@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9043_ACEOF
9044
9045ac_header_dirent=$ac_hdr; break
9046fi
9047
9048done
9049# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9050if test $ac_header_dirent = dirent.h; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9052$as_echo_n "checking for library containing opendir... " >&6; }
9053if ${ac_cv_search_opendir+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055else
9056 ac_func_search_save_LIBS=$LIBS
9057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h. */
9059
9060/* Override any GCC internal prototype to avoid an error.
9061 Use char because int might match the return type of a GCC
9062 builtin and then its argument prototype would still apply. */
9063#ifdef __cplusplus
9064extern "C"
9065#endif
9066char opendir ();
9067int
9068main ()
9069{
9070return opendir ();
9071 ;
9072 return 0;
9073}
9074_ACEOF
9075for ac_lib in '' dir; do
9076 if test -z "$ac_lib"; then
9077 ac_res="none required"
9078 else
9079 ac_res=-l$ac_lib
9080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9081 fi
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 ac_cv_search_opendir=$ac_res
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext
9087 if ${ac_cv_search_opendir+:} false; then :
9088 break
9089fi
9090done
9091if ${ac_cv_search_opendir+:} false; then :
9092
9093else
9094 ac_cv_search_opendir=no
9095fi
9096rm conftest.$ac_ext
9097LIBS=$ac_func_search_save_LIBS
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9100$as_echo "$ac_cv_search_opendir" >&6; }
9101ac_res=$ac_cv_search_opendir
9102if test "$ac_res" != no; then :
9103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9104
9105fi
9106
9107else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9109$as_echo_n "checking for library containing opendir... " >&6; }
9110if ${ac_cv_search_opendir+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112else
9113 ac_func_search_save_LIBS=$LIBS
9114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h. */
9116
9117/* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9120#ifdef __cplusplus
9121extern "C"
9122#endif
9123char opendir ();
9124int
9125main ()
9126{
9127return opendir ();
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132for ac_lib in '' x; do
9133 if test -z "$ac_lib"; then
9134 ac_res="none required"
9135 else
9136 ac_res=-l$ac_lib
9137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9138 fi
9139 if ac_fn_c_try_link "$LINENO"; then :
9140 ac_cv_search_opendir=$ac_res
9141fi
9142rm -f core conftest.err conftest.$ac_objext \
9143 conftest$ac_exeext
9144 if ${ac_cv_search_opendir+:} false; then :
9145 break
9146fi
9147done
9148if ${ac_cv_search_opendir+:} false; then :
9149
9150else
9151 ac_cv_search_opendir=no
9152fi
9153rm conftest.$ac_ext
9154LIBS=$ac_func_search_save_LIBS
9155fi
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9157$as_echo "$ac_cv_search_opendir" >&6; }
9158ac_res=$ac_cv_search_opendir
9159if test "$ac_res" != no; then :
9160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9161
9162fi
9163
9164fi
9165
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9167$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9168if ${ac_cv_header_time+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170else
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h. */
9173#include <sys/types.h>
9174#include <sys/time.h>
9175#include <time.h>
9176
9177int
9178main ()
9179{
9180if ((struct tm *) 0)
9181return 0;
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_compile "$LINENO"; then :
9187 ac_cv_header_time=yes
9188else
9189 ac_cv_header_time=no
9190fi
9191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192fi
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9194$as_echo "$ac_cv_header_time" >&6; }
9195if test $ac_cv_header_time = yes; then
9196
9197$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
9198
9199fi
9200
9201
9202
9203 for ac_header in inttypes.h
9204do :
9205 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9206if test "x$ac_cv_header_inttypes_h" = xyes; then :
9207 cat >>confdefs.h <<_ACEOF
9208@%:@define HAVE_INTTYPES_H 1
9209_ACEOF
9210
9211fi
9212
9213done
9214
9215
9216
9217for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9218 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9219 stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \
9220 regex.h syslog.h ulimit.h
9221do :
9222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9223ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9225 cat >>confdefs.h <<_ACEOF
9226@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9227_ACEOF
9228
9229fi
9230
9231done
9232
9233for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
9234 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
9235 sys/time.h sys/times.h sys/types.h sys/wait.h
9236do :
9237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9240 cat >>confdefs.h <<_ACEOF
9241@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242_ACEOF
9243
9244fi
9245
9246done
9247
9248for ac_header in netinet/in.h arpa/inet.h
9249do :
9250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9252if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9253 cat >>confdefs.h <<_ACEOF
9254@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9255_ACEOF
9256
9257fi
9258
9259done
9260
9261
9262ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
9263#if HAVE_SYS_STREAM_H
9264# include <sys/stream.h>
9265#endif
9266
9267"
9268if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
9269
9270fi
9271
9272
9273
9274# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9275# for constant arguments. Useless!
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9277$as_echo_n "checking for working alloca.h... " >&6; }
9278if ${ac_cv_working_alloca_h+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280else
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h. */
9283@%:@include <alloca.h>
9284int
9285main ()
9286{
9287char *p = (char *) alloca (2 * sizeof (int));
9288 if (p) return 0;
9289 ;
9290 return 0;
9291}
9292_ACEOF
9293if ac_fn_c_try_link "$LINENO"; then :
9294 ac_cv_working_alloca_h=yes
9295else
9296 ac_cv_working_alloca_h=no
9297fi
9298rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300fi
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9302$as_echo "$ac_cv_working_alloca_h" >&6; }
9303if test $ac_cv_working_alloca_h = yes; then
9304
9305$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
9306
9307fi
9308
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9310$as_echo_n "checking for alloca... " >&6; }
9311if ${ac_cv_func_alloca_works+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313else
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315/* end confdefs.h. */
9316#ifdef __GNUC__
9317# define alloca __builtin_alloca
9318#else
9319# ifdef _MSC_VER
9320# include <malloc.h>
9321# define alloca _alloca
9322# else
9323# ifdef HAVE_ALLOCA_H
9324# include <alloca.h>
9325# else
9326# ifdef _AIX
9327 #pragma alloca
9328# else
9329# ifndef alloca /* predefined by HP cc +Olibcalls */
9330void *alloca (size_t);
9331# endif
9332# endif
9333# endif
9334# endif
9335#endif
9336
9337int
9338main ()
9339{
9340char *p = (char *) alloca (1);
9341 if (p) return 0;
9342 ;
9343 return 0;
9344}
9345_ACEOF
9346if ac_fn_c_try_link "$LINENO"; then :
9347 ac_cv_func_alloca_works=yes
9348else
9349 ac_cv_func_alloca_works=no
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353fi
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9355$as_echo "$ac_cv_func_alloca_works" >&6; }
9356
9357if test $ac_cv_func_alloca_works = yes; then
9358
9359$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
9360
9361else
9362 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9363# that cause trouble. Some versions do not even contain alloca or
9364# contain a buggy version. If you still want to use their alloca,
9365# use ar to extract alloca.o from them instead of compiling alloca.c.
9366
9367ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9368
9369$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
9370
9371
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9373$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9374if ${ac_cv_os_cray+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376else
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h. */
9379#if defined CRAY && ! defined CRAY2
9380webecray
9381#else
9382wenotbecray
9383#endif
9384
9385_ACEOF
9386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP "webecray" >/dev/null 2>&1; then :
9388 ac_cv_os_cray=yes
9389else
9390 ac_cv_os_cray=no
9391fi
9392rm -f conftest*
9393
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9396$as_echo "$ac_cv_os_cray" >&6; }
9397if test $ac_cv_os_cray = yes; then
9398 for ac_func in _getb67 GETB67 getb67; do
9399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9401if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9402
9403cat >>confdefs.h <<_ACEOF
9404@%:@define CRAY_STACKSEG_END $ac_func
9405_ACEOF
9406
9407 break
9408fi
9409
9410 done
9411fi
9412
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9414$as_echo_n "checking stack direction for C alloca... " >&6; }
9415if ${ac_cv_c_stack_direction+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417else
9418 if test "$cross_compiling" = yes; then :
9419 ac_cv_c_stack_direction=0
9420else
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h. */
9423$ac_includes_default
9424int
9425find_stack_direction ()
9426{
9427 static char *addr = 0;
9428 auto char dummy;
9429 if (addr == 0)
9430 {
9431 addr = &dummy;
9432 return find_stack_direction ();
9433 }
9434 else
9435 return (&dummy > addr) ? 1 : -1;
9436}
9437
9438int
9439main ()
9440{
9441 return find_stack_direction () < 0;
9442}
9443_ACEOF
9444if ac_fn_c_try_run "$LINENO"; then :
9445 ac_cv_c_stack_direction=1
9446else
9447 ac_cv_c_stack_direction=-1
9448fi
9449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9450 conftest.$ac_objext conftest.beam conftest.$ac_ext
9451fi
9452
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9455$as_echo "$ac_cv_c_stack_direction" >&6; }
9456cat >>confdefs.h <<_ACEOF
9457@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
9458_ACEOF
9459
9460
9461fi
9462
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9464$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9465if ${ac_cv_func_getpgrp_void+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467else
9468 # Use it with a single arg.
9469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470/* end confdefs.h. */
9471$ac_includes_default
9472int
9473main ()
9474{
9475getpgrp (0);
9476 ;
9477 return 0;
9478}
9479_ACEOF
9480if ac_fn_c_try_compile "$LINENO"; then :
9481 ac_cv_func_getpgrp_void=no
9482else
9483 ac_cv_func_getpgrp_void=yes
9484fi
9485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9486
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9489$as_echo "$ac_cv_func_getpgrp_void" >&6; }
9490if test $ac_cv_func_getpgrp_void = yes; then
9491
9492$as_echo "@%:@define GETPGRP_VOID 1" >>confdefs.h
9493
9494fi
9495
9496if ${ac_cv_func_setvbuf_reversed+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498else
9499 ac_cv_func_setvbuf_reversed=no
9500fi
9501
9502
9503for ac_func in vprintf
9504do :
9505 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9506if test "x$ac_cv_func_vprintf" = xyes; then :
9507 cat >>confdefs.h <<_ACEOF
9508@%:@define HAVE_VPRINTF 1
9509_ACEOF
9510
9511ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9512if test "x$ac_cv_func__doprnt" = xyes; then :
9513
9514$as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
9515
9516fi
9517
9518fi
9519done
9520
9521
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9523$as_echo_n "checking for working strcoll... " >&6; }
9524if ${ac_cv_func_strcoll_works+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526else
9527 if test "$cross_compiling" = yes; then :
9528 ac_cv_func_strcoll_works=no
9529else
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h. */
9532$ac_includes_default
9533int
9534main ()
9535{
9536return (strcoll ("abc", "def") >= 0 ||
9537 strcoll ("ABC", "DEF") >= 0 ||
9538 strcoll ("123", "456") >= 0)
9539 ;
9540 return 0;
9541}
9542_ACEOF
9543if ac_fn_c_try_run "$LINENO"; then :
9544 ac_cv_func_strcoll_works=yes
9545else
9546 ac_cv_func_strcoll_works=no
9547fi
9548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9549 conftest.$ac_objext conftest.beam conftest.$ac_ext
9550fi
9551
9552fi
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9554$as_echo "$ac_cv_func_strcoll_works" >&6; }
9555if test $ac_cv_func_strcoll_works = yes; then
9556
9557$as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h
9558
9559fi
9560
9561
9562
9563if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
9564 MALLOC_TARGET=alloca
9565 MALLOC_SRC=alloca.c
9566
9567 MALLOC_LIB='-lmalloc'
9568 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
9569 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
9570 MALLOC_DEP='$(MALLOC_LIBRARY)'
9571fi
9572
9573if test "$ac_cv_func_vprintf" = no; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
9575$as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577/* end confdefs.h. */
9578#include <stdio.h>
9579
9580_ACEOF
9581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then :
9583 ac_cv_func_vprintf=yes
9584fi
9585rm -f conftest*
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
9588$as_echo "$ac_cv_func_vprintf" >&6; }
9589 if test $ac_cv_func_vprintf = yes; then
9590 $as_echo "@%:@define HAVE_VPRINTF 1" >>confdefs.h
9591
9592 fi
9593fi
9594
9595if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
9596 case " $LIB@&t@OBJS " in
9597 *" vprint.$ac_objext "* ) ;;
9598 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext"
9599 ;;
9600esac
9601
9602fi
9603
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9605$as_echo_n "checking return type of signal handlers... " >&6; }
9606if ${ac_cv_type_signal+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608else
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h. */
9611#include <sys/types.h>
9612#include <signal.h>
9613
9614int
9615main ()
9616{
9617return *(signal (0, 0)) (0) == 1;
9618 ;
9619 return 0;
9620}
9621_ACEOF
9622if ac_fn_c_try_compile "$LINENO"; then :
9623 ac_cv_type_signal=int
9624else
9625 ac_cv_type_signal=void
9626fi
9627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9628fi
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9630$as_echo "$ac_cv_type_signal" >&6; }
9631
9632cat >>confdefs.h <<_ACEOF
9633@%:@define RETSIGTYPE $ac_cv_type_signal
9634_ACEOF
9635
9636
9637
9638ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype"
9639if test "x$ac_cv_func___setostype" = xyes; then :
9640 $as_echo "@%:@define HAVE_SETOSTYPE 1" >>confdefs.h
9641
9642fi
9643
9644ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
9645if test "x$ac_cv_func_wait3" = xyes; then :
9646 $as_echo "@%:@define HAVE_WAIT3 1" >>confdefs.h
9647
9648fi
9649
9650
9651ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9652if test "x$ac_cv_func_mkfifo" = xyes; then :
9653 $as_echo "@%:@define HAVE_MKFIFO 1" >>confdefs.h
9654
9655else
9656 $as_echo "@%:@define MKFIFO_MISSING 1" >>confdefs.h
9657
9658fi
9659
9660
9661for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
9662 getpagesize getpeername getrlimit getrusage gettimeofday \
9663 kill killpg lstat readlink sbrk select setdtablesize \
9664 setitimer tcgetpgrp uname ulimit waitpid
9665do :
9666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9668if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9669 cat >>confdefs.h <<_ACEOF
9670@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9671_ACEOF
9672
9673fi
9674done
9675
9676ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
9677if test "x$ac_cv_func_rename" = xyes; then :
9678 $as_echo "@%:@define HAVE_RENAME 1" >>confdefs.h
9679
9680else
9681 case " $LIB@&t@OBJS " in
9682 *" rename.$ac_objext "* ) ;;
9683 *) LIB@&t@OBJS="$LIB@&t@OBJS rename.$ac_objext"
9684 ;;
9685esac
9686
9687fi
9688
9689
9690
9691for ac_func in bcopy bzero confstr faccessat fnmatch \
9692 getaddrinfo gethostbyname getservbyname getservent inet_aton \
9693 imaxdiv memmove pathconf putenv raise regcomp regexec \
9694 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
9695 sysconf syslog tcgetattr times ttyname tzset unsetenv
9696do :
9697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9698ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9699if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9700 cat >>confdefs.h <<_ACEOF
9701@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702_ACEOF
9703
9704fi
9705done
9706
9707
9708for ac_func in vasprintf asprintf
9709do :
9710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9711ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9712if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9713 cat >>confdefs.h <<_ACEOF
9714@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715_ACEOF
9716
9717fi
9718done
9719
9720for ac_func in isascii isblank isgraph isprint isspace isxdigit
9721do :
9722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9724if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9725 cat >>confdefs.h <<_ACEOF
9726@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9727_ACEOF
9728
9729fi
9730done
9731
9732for ac_func in getpwent getpwnam getpwuid
9733do :
9734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9735ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9736if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9737 cat >>confdefs.h <<_ACEOF
9738@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9739_ACEOF
9740
9741fi
9742done
9743
9744ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9745if test "x$ac_cv_func_getcwd" = xyes; then :
9746 $as_echo "@%:@define HAVE_GETCWD 1" >>confdefs.h
9747
9748else
9749 case " $LIB@&t@OBJS " in
9750 *" getcwd.$ac_objext "* ) ;;
9751 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
9752 ;;
9753esac
9754
9755fi
9756
9757ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
9758if test "x$ac_cv_func_memset" = xyes; then :
9759 $as_echo "@%:@define HAVE_MEMSET 1" >>confdefs.h
9760
9761else
9762 case " $LIB@&t@OBJS " in
9763 *" memset.$ac_objext "* ) ;;
9764 *) LIB@&t@OBJS="$LIB@&t@OBJS memset.$ac_objext"
9765 ;;
9766esac
9767
9768fi
9769
9770
9771ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9772if test "x$ac_cv_func_strcasecmp" = xyes; then :
9773 $as_echo "@%:@define HAVE_STRCASECMP 1" >>confdefs.h
9774
9775else
9776 case " $LIB@&t@OBJS " in
9777 *" strcasecmp.$ac_objext "* ) ;;
9778 *) LIB@&t@OBJS="$LIB@&t@OBJS strcasecmp.$ac_objext"
9779 ;;
9780esac
9781
9782fi
9783
9784ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
9785if test "x$ac_cv_func_strcasestr" = xyes; then :
9786 $as_echo "@%:@define HAVE_STRCASESTR 1" >>confdefs.h
9787
9788else
9789 case " $LIB@&t@OBJS " in
9790 *" strcasestr.$ac_objext "* ) ;;
9791 *) LIB@&t@OBJS="$LIB@&t@OBJS strcasestr.$ac_objext"
9792 ;;
9793esac
9794
9795fi
9796
9797ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9798if test "x$ac_cv_func_strerror" = xyes; then :
9799 $as_echo "@%:@define HAVE_STRERROR 1" >>confdefs.h
9800
9801else
9802 case " $LIB@&t@OBJS " in
9803 *" strerror.$ac_objext "* ) ;;
9804 *) LIB@&t@OBJS="$LIB@&t@OBJS strerror.$ac_objext"
9805 ;;
9806esac
9807
9808fi
9809
9810ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9811if test "x$ac_cv_func_strftime" = xyes; then :
9812 $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
9813
9814else
9815 case " $LIB@&t@OBJS " in
9816 *" strftime.$ac_objext "* ) ;;
9817 *) LIB@&t@OBJS="$LIB@&t@OBJS strftime.$ac_objext"
9818 ;;
9819esac
9820
9821fi
9822
9823ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
9824if test "x$ac_cv_func_strnlen" = xyes; then :
9825 $as_echo "@%:@define HAVE_STRNLEN 1" >>confdefs.h
9826
9827else
9828 case " $LIB@&t@OBJS " in
9829 *" strnlen.$ac_objext "* ) ;;
9830 *) LIB@&t@OBJS="$LIB@&t@OBJS strnlen.$ac_objext"
9831 ;;
9832esac
9833
9834fi
9835
9836ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
9837if test "x$ac_cv_func_strpbrk" = xyes; then :
9838 $as_echo "@%:@define HAVE_STRPBRK 1" >>confdefs.h
9839
9840else
9841 case " $LIB@&t@OBJS " in
9842 *" strpbrk.$ac_objext "* ) ;;
9843 *) LIB@&t@OBJS="$LIB@&t@OBJS strpbrk.$ac_objext"
9844 ;;
9845esac
9846
9847fi
9848
9849ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
9850if test "x$ac_cv_func_strstr" = xyes; then :
9851 $as_echo "@%:@define HAVE_STRSTR 1" >>confdefs.h
9852
9853else
9854 case " $LIB@&t@OBJS " in
9855 *" strstr.$ac_objext "* ) ;;
9856 *) LIB@&t@OBJS="$LIB@&t@OBJS strstr.$ac_objext"
9857 ;;
9858esac
9859
9860fi
9861
9862
9863ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
9864if test "x$ac_cv_func_strtod" = xyes; then :
9865 $as_echo "@%:@define HAVE_STRTOD 1" >>confdefs.h
9866
9867else
9868 case " $LIB@&t@OBJS " in
9869 *" strtod.$ac_objext "* ) ;;
9870 *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
9871 ;;
9872esac
9873
9874fi
9875
9876ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
9877if test "x$ac_cv_func_strtol" = xyes; then :
9878 $as_echo "@%:@define HAVE_STRTOL 1" >>confdefs.h
9879
9880else
9881 case " $LIB@&t@OBJS " in
9882 *" strtol.$ac_objext "* ) ;;
9883 *) LIB@&t@OBJS="$LIB@&t@OBJS strtol.$ac_objext"
9884 ;;
9885esac
9886
9887fi
9888
9889ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
9890if test "x$ac_cv_func_strtoul" = xyes; then :
9891 $as_echo "@%:@define HAVE_STRTOUL 1" >>confdefs.h
9892
9893else
9894 case " $LIB@&t@OBJS " in
9895 *" strtoul.$ac_objext "* ) ;;
9896 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoul.$ac_objext"
9897 ;;
9898esac
9899
9900fi
9901
9902ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9903if test "x$ac_cv_func_strtoll" = xyes; then :
9904 $as_echo "@%:@define HAVE_STRTOLL 1" >>confdefs.h
9905
9906else
9907 case " $LIB@&t@OBJS " in
9908 *" strtoll.$ac_objext "* ) ;;
9909 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoll.$ac_objext"
9910 ;;
9911esac
9912
9913fi
9914
9915ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
9916if test "x$ac_cv_func_strtoull" = xyes; then :
9917 $as_echo "@%:@define HAVE_STRTOULL 1" >>confdefs.h
9918
9919else
9920 case " $LIB@&t@OBJS " in
9921 *" strtoull.$ac_objext "* ) ;;
9922 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoull.$ac_objext"
9923 ;;
9924esac
9925
9926fi
9927
9928ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
9929if test "x$ac_cv_func_strtoimax" = xyes; then :
9930 $as_echo "@%:@define HAVE_STRTOIMAX 1" >>confdefs.h
9931
9932else
9933 case " $LIB@&t@OBJS " in
9934 *" strtoimax.$ac_objext "* ) ;;
9935 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoimax.$ac_objext"
9936 ;;
9937esac
9938
9939fi
9940
9941ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
9942if test "x$ac_cv_func_strtoumax" = xyes; then :
9943 $as_echo "@%:@define HAVE_STRTOUMAX 1" >>confdefs.h
9944
9945else
9946 case " $LIB@&t@OBJS " in
9947 *" strtoumax.$ac_objext "* ) ;;
9948 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoumax.$ac_objext"
9949 ;;
9950esac
9951
9952fi
9953
9954
9955ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
9956if test "x$ac_cv_func_dprintf" = xyes; then :
9957 $as_echo "@%:@define HAVE_DPRINTF 1" >>confdefs.h
9958
9959else
9960 case " $LIB@&t@OBJS " in
9961 *" dprintf.$ac_objext "* ) ;;
9962 *) LIB@&t@OBJS="$LIB@&t@OBJS dprintf.$ac_objext"
9963 ;;
9964esac
9965
9966fi
9967
9968
9969ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
9970if test "x$ac_cv_func_strchrnul" = xyes; then :
9971 $as_echo "@%:@define HAVE_STRCHRNUL 1" >>confdefs.h
9972
9973else
9974 case " $LIB@&t@OBJS " in
9975 *" strchrnul.$ac_objext "* ) ;;
9976 *) LIB@&t@OBJS="$LIB@&t@OBJS strchrnul.$ac_objext"
9977 ;;
9978esac
9979
9980fi
9981
9982
9983
9984ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
9985"
9986if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
9987 ac_have_decl=1
9988else
9989 ac_have_decl=0
9990fi
9991
9992cat >>confdefs.h <<_ACEOF
9993@%:@define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
9994_ACEOF
9995
9996
9997ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
9998if test "x$ac_cv_have_decl_confstr" = xyes; then :
9999 ac_have_decl=1
10000else
10001 ac_have_decl=0
10002fi
10003
10004cat >>confdefs.h <<_ACEOF
10005@%:@define HAVE_DECL_CONFSTR $ac_have_decl
10006_ACEOF
10007
10008ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
10009if test "x$ac_cv_have_decl_printf" = xyes; then :
10010 ac_have_decl=1
10011else
10012 ac_have_decl=0
10013fi
10014
10015cat >>confdefs.h <<_ACEOF
10016@%:@define HAVE_DECL_PRINTF $ac_have_decl
10017_ACEOF
10018
10019ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
10020if test "x$ac_cv_have_decl_sbrk" = xyes; then :
10021 ac_have_decl=1
10022else
10023 ac_have_decl=0
10024fi
10025
10026cat >>confdefs.h <<_ACEOF
10027@%:@define HAVE_DECL_SBRK $ac_have_decl
10028_ACEOF
10029
10030ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
10031if test "x$ac_cv_have_decl_setregid" = xyes; then :
10032 ac_have_decl=1
10033else
10034 ac_have_decl=0
10035fi
10036
10037cat >>confdefs.h <<_ACEOF
10038@%:@define HAVE_DECL_SETREGID $ac_have_decl
10039_ACEOF
10040
10041ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
10042if test "x$ac_cv_have_decl_strcpy" = xyes; then :
10043 ac_have_decl=1
10044else
10045 ac_have_decl=0
10046fi
10047
10048cat >>confdefs.h <<_ACEOF
10049@%:@define HAVE_DECL_STRCPY $ac_have_decl
10050_ACEOF
10051
10052ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
10053if test "x$ac_cv_have_decl_strsignal" = xyes; then :
10054 ac_have_decl=1
10055else
10056 ac_have_decl=0
10057fi
10058
10059cat >>confdefs.h <<_ACEOF
10060@%:@define HAVE_DECL_STRSIGNAL $ac_have_decl
10061_ACEOF
10062
10063
10064ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
10065if test "x$ac_cv_have_decl_strtold" = xyes; then :
10066 ac_have_decl=1
10067else
10068 ac_have_decl=0
10069fi
10070
10071cat >>confdefs.h <<_ACEOF
10072@%:@define HAVE_DECL_STRTOLD $ac_have_decl
10073_ACEOF
10074if test $ac_have_decl = 1; then :
10075
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
10077$as_echo_n "checking for broken strtold... " >&6; }
10078 if ${bash_cv_strtold_broken+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h. */
10083#include <stdlib.h>
10084int
10085main ()
10086{
10087int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
10088 ;
10089 return 0;
10090}
10091_ACEOF
10092if ac_fn_c_try_compile "$LINENO"; then :
10093 bash_cv_strtold_broken=no
10094else
10095 bash_cv_strtold_broken=yes
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098
10099
10100fi
10101
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
10103$as_echo "$bash_cv_strtold_broken" >&6; }
10104 if test "$bash_cv_strtold_broken" = "yes" ; then
10105 $as_echo "@%:@define STRTOLD_BROKEN 1" >>confdefs.h
10106
10107 fi
10108
10109fi
10110
10111
10112
10113
10114
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
10116$as_echo_n "checking for declaration of strtoimax... " >&6; }
10117if ${bash_cv_decl_strtoimax+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h. */
10122
10123#if STDC_HEADERS
10124# include <stdlib.h>
10125#endif
10126#if HAVE_INTTYPES_H
10127# include <inttypes.h>
10128#endif
10129
10130int
10131main ()
10132{
10133return !strtoimax;
10134 ;
10135 return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"; then :
10139 bash_cv_decl_strtoimax=yes
10140else
10141 bash_cv_decl_strtoimax=no
10142fi
10143rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145fi
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5
10147$as_echo "$bash_cv_decl_strtoimax" >&6; }
10148bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10149if test $bash_cv_decl_strtoimax = yes; then
10150 cat >>confdefs.h <<_ACEOF
10151@%:@define $bash_tr_func 1
10152_ACEOF
10153
10154else
10155 cat >>confdefs.h <<_ACEOF
10156@%:@define $bash_tr_func 0
10157_ACEOF
10158
10159fi
10160
10161
10162
10163
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
10165$as_echo_n "checking for declaration of strtol... " >&6; }
10166if ${bash_cv_decl_strtol+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168else
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h. */
10171
10172#if STDC_HEADERS
10173# include <stdlib.h>
10174#endif
10175#if HAVE_INTTYPES_H
10176# include <inttypes.h>
10177#endif
10178
10179int
10180main ()
10181{
10182return !strtol;
10183 ;
10184 return 0;
10185}
10186_ACEOF
10187if ac_fn_c_try_link "$LINENO"; then :
10188 bash_cv_decl_strtol=yes
10189else
10190 bash_cv_decl_strtol=no
10191fi
10192rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5
10196$as_echo "$bash_cv_decl_strtol" >&6; }
10197bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10198if test $bash_cv_decl_strtol = yes; then
10199 cat >>confdefs.h <<_ACEOF
10200@%:@define $bash_tr_func 1
10201_ACEOF
10202
10203else
10204 cat >>confdefs.h <<_ACEOF
10205@%:@define $bash_tr_func 0
10206_ACEOF
10207
10208fi
10209
10210
10211
10212
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
10214$as_echo_n "checking for declaration of strtoll... " >&6; }
10215if ${bash_cv_decl_strtoll+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217else
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h. */
10220
10221#if STDC_HEADERS
10222# include <stdlib.h>
10223#endif
10224#if HAVE_INTTYPES_H
10225# include <inttypes.h>
10226#endif
10227
10228int
10229main ()
10230{
10231return !strtoll;
10232 ;
10233 return 0;
10234}
10235_ACEOF
10236if ac_fn_c_try_link "$LINENO"; then :
10237 bash_cv_decl_strtoll=yes
10238else
10239 bash_cv_decl_strtoll=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243fi
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5
10245$as_echo "$bash_cv_decl_strtoll" >&6; }
10246bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10247if test $bash_cv_decl_strtoll = yes; then
10248 cat >>confdefs.h <<_ACEOF
10249@%:@define $bash_tr_func 1
10250_ACEOF
10251
10252else
10253 cat >>confdefs.h <<_ACEOF
10254@%:@define $bash_tr_func 0
10255_ACEOF
10256
10257fi
10258
10259
10260
10261
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
10263$as_echo_n "checking for declaration of strtoul... " >&6; }
10264if ${bash_cv_decl_strtoul+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268/* end confdefs.h. */
10269
10270#if STDC_HEADERS
10271# include <stdlib.h>
10272#endif
10273#if HAVE_INTTYPES_H
10274# include <inttypes.h>
10275#endif
10276
10277int
10278main ()
10279{
10280return !strtoul;
10281 ;
10282 return 0;
10283}
10284_ACEOF
10285if ac_fn_c_try_link "$LINENO"; then :
10286 bash_cv_decl_strtoul=yes
10287else
10288 bash_cv_decl_strtoul=no
10289fi
10290rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5
10294$as_echo "$bash_cv_decl_strtoul" >&6; }
10295bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10296if test $bash_cv_decl_strtoul = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298@%:@define $bash_tr_func 1
10299_ACEOF
10300
10301else
10302 cat >>confdefs.h <<_ACEOF
10303@%:@define $bash_tr_func 0
10304_ACEOF
10305
10306fi
10307
10308
10309
10310
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
10312$as_echo_n "checking for declaration of strtoull... " >&6; }
10313if ${bash_cv_decl_strtoull+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315else
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317/* end confdefs.h. */
10318
10319#if STDC_HEADERS
10320# include <stdlib.h>
10321#endif
10322#if HAVE_INTTYPES_H
10323# include <inttypes.h>
10324#endif
10325
10326int
10327main ()
10328{
10329return !strtoull;
10330 ;
10331 return 0;
10332}
10333_ACEOF
10334if ac_fn_c_try_link "$LINENO"; then :
10335 bash_cv_decl_strtoull=yes
10336else
10337 bash_cv_decl_strtoull=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5
10343$as_echo "$bash_cv_decl_strtoull" >&6; }
10344bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10345if test $bash_cv_decl_strtoull = yes; then
10346 cat >>confdefs.h <<_ACEOF
10347@%:@define $bash_tr_func 1
10348_ACEOF
10349
10350else
10351 cat >>confdefs.h <<_ACEOF
10352@%:@define $bash_tr_func 0
10353_ACEOF
10354
10355fi
10356
10357
10358
10359
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
10361$as_echo_n "checking for declaration of strtoumax... " >&6; }
10362if ${bash_cv_decl_strtoumax+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h. */
10367
10368#if STDC_HEADERS
10369# include <stdlib.h>
10370#endif
10371#if HAVE_INTTYPES_H
10372# include <inttypes.h>
10373#endif
10374
10375int
10376main ()
10377{
10378return !strtoumax;
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383if ac_fn_c_try_link "$LINENO"; then :
10384 bash_cv_decl_strtoumax=yes
10385else
10386 bash_cv_decl_strtoumax=no
10387fi
10388rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5
10392$as_echo "$bash_cv_decl_strtoumax" >&6; }
10393bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10394if test $bash_cv_decl_strtoumax = yes; then
10395 cat >>confdefs.h <<_ACEOF
10396@%:@define $bash_tr_func 1
10397_ACEOF
10398
10399else
10400 cat >>confdefs.h <<_ACEOF
10401@%:@define $bash_tr_func 0
10402_ACEOF
10403
10404fi
10405
10406
10407
10408
10409
10410
10411
10412 for ac_func in $ac_func_list
10413do :
10414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10417 cat >>confdefs.h <<_ACEOF
10418@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10419_ACEOF
10420
10421fi
10422done
10423
10424
10425
10426
10427
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10429$as_echo_n "checking for working mktime... " >&6; }
10430if ${ac_cv_func_working_mktime+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432else
10433 if test "$cross_compiling" = yes; then :
10434 ac_cv_func_working_mktime=no
10435else
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h. */
10438/* Test program from Paul Eggert and Tony Leneis. */
10439#ifdef TIME_WITH_SYS_TIME
10440# include <sys/time.h>
10441# include <time.h>
10442#else
10443# ifdef HAVE_SYS_TIME_H
10444# include <sys/time.h>
10445# else
10446# include <time.h>
10447# endif
10448#endif
10449
10450#include <limits.h>
10451#include <stdlib.h>
10452
10453#ifdef HAVE_UNISTD_H
10454# include <unistd.h>
10455#endif
10456
10457#ifndef HAVE_ALARM
10458# define alarm(X) /* empty */
10459#endif
10460
10461/* Work around redefinition to rpl_putenv by other config tests. */
10462#undef putenv
10463
10464static time_t time_t_max;
10465static time_t time_t_min;
10466
10467/* Values we'll use to set the TZ environment variable. */
10468static const char *tz_strings[] = {
10469 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10470 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10471};
10472#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10473
10474/* Return 0 if mktime fails to convert a date in the spring-forward gap.
10475 Based on a problem report from Andreas Jaeger. */
10476static int
10477spring_forward_gap ()
10478{
10479 /* glibc (up to about 1998-10-07) failed this test. */
10480 struct tm tm;
10481
10482 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10483 instead of "TZ=America/Vancouver" in order to detect the bug even
10484 on systems that don't support the Olson extension, or don't have the
10485 full zoneinfo tables installed. */
10486 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10487
10488 tm.tm_year = 98;
10489 tm.tm_mon = 3;
10490 tm.tm_mday = 5;
10491 tm.tm_hour = 2;
10492 tm.tm_min = 0;
10493 tm.tm_sec = 0;
10494 tm.tm_isdst = -1;
10495 return mktime (&tm) != (time_t) -1;
10496}
10497
10498static int
10499mktime_test1 (time_t now)
10500{
10501 struct tm *lt;
10502 return ! (lt = localtime (&now)) || mktime (lt) == now;
10503}
10504
10505static int
10506mktime_test (time_t now)
10507{
10508 return (mktime_test1 (now)
10509 && mktime_test1 ((time_t) (time_t_max - now))
10510 && mktime_test1 ((time_t) (time_t_min + now)));
10511}
10512
10513static int
10514irix_6_4_bug ()
10515{
10516 /* Based on code from Ariel Faigon. */
10517 struct tm tm;
10518 tm.tm_year = 96;
10519 tm.tm_mon = 3;
10520 tm.tm_mday = 0;
10521 tm.tm_hour = 0;
10522 tm.tm_min = 0;
10523 tm.tm_sec = 0;
10524 tm.tm_isdst = -1;
10525 mktime (&tm);
10526 return tm.tm_mon == 2 && tm.tm_mday == 31;
10527}
10528
10529static int
10530bigtime_test (int j)
10531{
10532 struct tm tm;
10533 time_t now;
10534 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10535 now = mktime (&tm);
10536 if (now != (time_t) -1)
10537 {
10538 struct tm *lt = localtime (&now);
10539 if (! (lt
10540 && lt->tm_year == tm.tm_year
10541 && lt->tm_mon == tm.tm_mon
10542 && lt->tm_mday == tm.tm_mday
10543 && lt->tm_hour == tm.tm_hour
10544 && lt->tm_min == tm.tm_min
10545 && lt->tm_sec == tm.tm_sec
10546 && lt->tm_yday == tm.tm_yday
10547 && lt->tm_wday == tm.tm_wday
10548 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10549 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10550 return 0;
10551 }
10552 return 1;
10553}
10554
10555static int
10556year_2050_test ()
10557{
10558 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10559 ignoring leap seconds. */
10560 unsigned long int answer = 2527315200UL;
10561
10562 struct tm tm;
10563 time_t t;
10564 tm.tm_year = 2050 - 1900;
10565 tm.tm_mon = 2 - 1;
10566 tm.tm_mday = 1;
10567 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10568 tm.tm_isdst = -1;
10569
10570 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10571 instead of "TZ=America/Vancouver" in order to detect the bug even
10572 on systems that don't support the Olson extension, or don't have the
10573 full zoneinfo tables installed. */
10574 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10575
10576 t = mktime (&tm);
10577
10578 /* Check that the result is either a failure, or close enough
10579 to the correct answer that we can assume the discrepancy is
10580 due to leap seconds. */
10581 return (t == (time_t) -1
10582 || (0 < t && answer - 120 <= t && t <= answer + 120));
10583}
10584
10585int
10586main ()
10587{
10588 time_t t, delta;
10589 int i, j;
10590
10591 /* This test makes some buggy mktime implementations loop.
10592 Give up after 60 seconds; a mktime slower than that
10593 isn't worth using anyway. */
10594 alarm (60);
10595
10596 for (;;)
10597 {
10598 t = (time_t_max << 1) + 1;
10599 if (t <= time_t_max)
10600 break;
10601 time_t_max = t;
10602 }
10603 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10604
10605 delta = time_t_max / 997; /* a suitable prime number */
10606 for (i = 0; i < N_STRINGS; i++)
10607 {
10608 if (tz_strings[i])
10609 putenv ((char*) tz_strings[i]);
10610
10611 for (t = 0; t <= time_t_max - delta; t += delta)
10612 if (! mktime_test (t))
10613 return 1;
10614 if (! (mktime_test ((time_t) 1)
10615 && mktime_test ((time_t) (60 * 60))
10616 && mktime_test ((time_t) (60 * 60 * 24))))
10617 return 1;
10618
10619 for (j = 1; ; j <<= 1)
10620 if (! bigtime_test (j))
10621 return 1;
10622 else if (INT_MAX / 2 < j)
10623 break;
10624 if (! bigtime_test (INT_MAX))
10625 return 1;
10626 }
10627 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10628}
10629_ACEOF
10630if ac_fn_c_try_run "$LINENO"; then :
10631 ac_cv_func_working_mktime=yes
10632else
10633 ac_cv_func_working_mktime=no
10634fi
10635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10636 conftest.$ac_objext conftest.beam conftest.$ac_ext
10637fi
10638
10639fi
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10641$as_echo "$ac_cv_func_working_mktime" >&6; }
10642if test $ac_cv_func_working_mktime = no; then
10643 case " $LIB@&t@OBJS " in
10644 *" mktime.$ac_objext "* ) ;;
10645 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext"
10646 ;;
10647esac
10648
10649fi
10650
10651
10652
10653for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
10654do :
10655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10656ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10658 cat >>confdefs.h <<_ACEOF
10659@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660_ACEOF
10661
10662fi
10663
10664done
10665
10666
10667
10668for ac_func in getpagesize
10669do :
10670 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10671if test "x$ac_cv_func_getpagesize" = xyes; then :
10672 cat >>confdefs.h <<_ACEOF
10673@%:@define HAVE_GETPAGESIZE 1
10674_ACEOF
10675
10676fi
10677done
10678
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10680$as_echo_n "checking for working mmap... " >&6; }
10681if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683else
10684 if test "$cross_compiling" = yes; then :
10685 ac_cv_func_mmap_fixed_mapped=no
10686else
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688/* end confdefs.h. */
10689$ac_includes_default
10690/* malloc might have been renamed as rpl_malloc. */
10691#undef malloc
10692
10693/* Thanks to Mike Haertel and Jim Avera for this test.
10694 Here is a matrix of mmap possibilities:
10695 mmap private not fixed
10696 mmap private fixed at somewhere currently unmapped
10697 mmap private fixed at somewhere already mapped
10698 mmap shared not fixed
10699 mmap shared fixed at somewhere currently unmapped
10700 mmap shared fixed at somewhere already mapped
10701 For private mappings, we should verify that changes cannot be read()
10702 back from the file, nor mmap's back from the file at a different
10703 address. (There have been systems where private was not correctly
10704 implemented like the infamous i386 svr4.0, and systems where the
10705 VM page cache was not coherent with the file system buffer cache
10706 like early versions of FreeBSD and possibly contemporary NetBSD.)
10707 For shared mappings, we should conversely verify that changes get
10708 propagated back to all the places they're supposed to be.
10709
10710 Grep wants private fixed already mapped.
10711 The main things grep needs to know about mmap are:
10712 * does it exist and is it safe to write into the mmap'd area
10713 * how to use it (BSD variants) */
10714
10715#include <fcntl.h>
10716#include <sys/mman.h>
10717
10718#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10719char *malloc ();
10720#endif
10721
10722/* This mess was copied from the GNU getpagesize.h. */
10723#ifndef HAVE_GETPAGESIZE
10724# ifdef _SC_PAGESIZE
10725# define getpagesize() sysconf(_SC_PAGESIZE)
10726# else /* no _SC_PAGESIZE */
10727# ifdef HAVE_SYS_PARAM_H
10728# include <sys/param.h>
10729# ifdef EXEC_PAGESIZE
10730# define getpagesize() EXEC_PAGESIZE
10731# else /* no EXEC_PAGESIZE */
10732# ifdef NBPG
10733# define getpagesize() NBPG * CLSIZE
10734# ifndef CLSIZE
10735# define CLSIZE 1
10736# endif /* no CLSIZE */
10737# else /* no NBPG */
10738# ifdef NBPC
10739# define getpagesize() NBPC
10740# else /* no NBPC */
10741# ifdef PAGESIZE
10742# define getpagesize() PAGESIZE
10743# endif /* PAGESIZE */
10744# endif /* no NBPC */
10745# endif /* no NBPG */
10746# endif /* no EXEC_PAGESIZE */
10747# else /* no HAVE_SYS_PARAM_H */
10748# define getpagesize() 8192 /* punt totally */
10749# endif /* no HAVE_SYS_PARAM_H */
10750# endif /* no _SC_PAGESIZE */
10751
10752#endif /* no HAVE_GETPAGESIZE */
10753
10754int
10755main ()
10756{
10757 char *data, *data2, *data3;
10758 const char *cdata2;
10759 int i, pagesize;
10760 int fd, fd2;
10761
10762 pagesize = getpagesize ();
10763
10764 /* First, make a file with some known garbage in it. */
10765 data = (char *) malloc (pagesize);
10766 if (!data)
10767 return 1;
10768 for (i = 0; i < pagesize; ++i)
10769 *(data + i) = rand ();
10770 umask (0);
10771 fd = creat ("conftest.mmap", 0600);
10772 if (fd < 0)
10773 return 2;
10774 if (write (fd, data, pagesize) != pagesize)
10775 return 3;
10776 close (fd);
10777
10778 /* Next, check that the tail of a page is zero-filled. File must have
10779 non-zero length, otherwise we risk SIGBUS for entire page. */
10780 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10781 if (fd2 < 0)
10782 return 4;
10783 cdata2 = "";
10784 if (write (fd2, cdata2, 1) != 1)
10785 return 5;
10786 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10787 if (data2 == MAP_FAILED)
10788 return 6;
10789 for (i = 0; i < pagesize; ++i)
10790 if (*(data2 + i))
10791 return 7;
10792 close (fd2);
10793 if (munmap (data2, pagesize))
10794 return 8;
10795
10796 /* Next, try to mmap the file at a fixed address which already has
10797 something else allocated at it. If we can, also make sure that
10798 we see the same garbage. */
10799 fd = open ("conftest.mmap", O_RDWR);
10800 if (fd < 0)
10801 return 9;
10802 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10803 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10804 return 10;
10805 for (i = 0; i < pagesize; ++i)
10806 if (*(data + i) != *(data2 + i))
10807 return 11;
10808
10809 /* Finally, make sure that changes to the mapped area do not
10810 percolate back to the file as seen by read(). (This is a bug on
10811 some variants of i386 svr4.0.) */
10812 for (i = 0; i < pagesize; ++i)
10813 *(data2 + i) = *(data2 + i) + 1;
10814 data3 = (char *) malloc (pagesize);
10815 if (!data3)
10816 return 12;
10817 if (read (fd, data3, pagesize) != pagesize)
10818 return 13;
10819 for (i = 0; i < pagesize; ++i)
10820 if (*(data + i) != *(data3 + i))
10821 return 14;
10822 close (fd);
10823 return 0;
10824}
10825_ACEOF
10826if ac_fn_c_try_run "$LINENO"; then :
10827 ac_cv_func_mmap_fixed_mapped=yes
10828else
10829 ac_cv_func_mmap_fixed_mapped=no
10830fi
10831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10832 conftest.$ac_objext conftest.beam conftest.$ac_ext
10833fi
10834
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10837$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10838if test $ac_cv_func_mmap_fixed_mapped = yes; then
10839
10840$as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h
10841
10842fi
10843rm -f conftest.mmap conftest.txt
10844
10845for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
10846 munmap stpcpy strcspn strdup
10847do :
10848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10850if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10851 cat >>confdefs.h <<_ACEOF
10852@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10853_ACEOF
10854
10855fi
10856done
10857
10858
10859INTL_DEP= INTL_INC= LIBINTL_H=
10860if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
10861 INTL_DEP='${INTL_LIBDIR}/libintl.a'
10862 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
10863 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
10864fi
10865
10866
10867
10868
10869
10870
10871for ac_header in wctype.h
10872do :
10873 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
10874if test "x$ac_cv_header_wctype_h" = xyes; then :
10875 cat >>confdefs.h <<_ACEOF
10876@%:@define HAVE_WCTYPE_H 1
10877_ACEOF
10878
10879fi
10880
10881done
10882
10883for ac_header in wchar.h
10884do :
10885 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10886if test "x$ac_cv_header_wchar_h" = xyes; then :
10887 cat >>confdefs.h <<_ACEOF
10888@%:@define HAVE_WCHAR_H 1
10889_ACEOF
10890
10891fi
10892
10893done
10894
10895for ac_header in langinfo.h
10896do :
10897 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10898if test "x$ac_cv_header_langinfo_h" = xyes; then :
10899 cat >>confdefs.h <<_ACEOF
10900@%:@define HAVE_LANGINFO_H 1
10901_ACEOF
10902
10903fi
10904
10905done
10906
10907
10908ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
10909if test "x$ac_cv_func_mbrlen" = xyes; then :
10910 $as_echo "@%:@define HAVE_MBRLEN 1" >>confdefs.h
10911
10912fi
10913
10914ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
10915if test "x$ac_cv_func_mbscasecmp" = xyes; then :
10916 $as_echo "@%:@define HAVE_MBSCMP 1" >>confdefs.h
10917
10918fi
10919
10920ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
10921if test "x$ac_cv_func_mbscmp" = xyes; then :
10922 $as_echo "@%:@define HAVE_MBSCMP 1" >>confdefs.h
10923
10924fi
10925
10926ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
10927if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
10928 $as_echo "@%:@define HAVE_MBSNRTOWCS 1" >>confdefs.h
10929
10930fi
10931
10932ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
10933if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
10934 $as_echo "@%:@define HAVE_MBSRTOWCS 1" >>confdefs.h
10935
10936fi
10937
10938
10939ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
10940if test "x$ac_cv_func_mbschr" = xyes; then :
10941 $as_echo "@%:@define HAVE_MBSCHR 1" >>confdefs.h
10942
10943else
10944 case " $LIB@&t@OBJS " in
10945 *" mbschr.$ac_objext "* ) ;;
10946 *) LIB@&t@OBJS="$LIB@&t@OBJS mbschr.$ac_objext"
10947 ;;
10948esac
10949
10950fi
10951
10952
10953
10954ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
10955if test "x$ac_cv_func_wcrtomb" = xyes; then :
10956 $as_echo "@%:@define HAVE_WCRTOMB 1" >>confdefs.h
10957
10958fi
10959
10960ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
10961if test "x$ac_cv_func_wcscoll" = xyes; then :
10962 $as_echo "@%:@define HAVE_WCSCOLL 1" >>confdefs.h
10963
10964fi
10965
10966ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
10967if test "x$ac_cv_func_wcsdup" = xyes; then :
10968 $as_echo "@%:@define HAVE_WCSDUP 1" >>confdefs.h
10969
10970fi
10971
10972ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
10973if test "x$ac_cv_func_wcwidth" = xyes; then :
10974 $as_echo "@%:@define HAVE_WCWIDTH 1" >>confdefs.h
10975
10976fi
10977
10978ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
10979if test "x$ac_cv_func_wctype" = xyes; then :
10980 $as_echo "@%:@define HAVE_WCTYPE 1" >>confdefs.h
10981
10982fi
10983
10984
10985ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
10986if test "x$ac_cv_func_wcswidth" = xyes; then :
10987 $as_echo "@%:@define HAVE_WCSWIDTH 1" >>confdefs.h
10988
10989else
10990 case " $LIB@&t@OBJS " in
10991 *" wcswidth.$ac_objext "* ) ;;
10992 *) LIB@&t@OBJS="$LIB@&t@OBJS wcswidth.$ac_objext"
10993 ;;
10994esac
10995
10996fi
10997
10998
10999
11000
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11002$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11003if ${ac_cv_func_mbrtowc+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005else
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007/* end confdefs.h. */
11008@%:@include <wchar.h>
11009int
11010main ()
11011{
11012wchar_t wc;
11013 char const s[] = "";
11014 size_t n = 1;
11015 mbstate_t state;
11016 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_func_mbrtowc=yes
11023else
11024 ac_cv_func_mbrtowc=no
11025fi
11026rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11030$as_echo "$ac_cv_func_mbrtowc" >&6; }
11031 if test $ac_cv_func_mbrtowc = yes; then
11032
11033$as_echo "@%:@define HAVE_MBRTOWC 1" >>confdefs.h
11034
11035 fi
11036
11037if test $ac_cv_func_mbrtowc = yes; then
11038 $as_echo "@%:@define HAVE_MBSTATE_T 1" >>confdefs.h
11039
11040fi
11041
11042for ac_func in iswlower iswupper towlower towupper iswctype
11043do :
11044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11047 cat >>confdefs.h <<_ACEOF
11048@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049_ACEOF
11050
11051fi
11052done
11053
11054
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11056$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11057if ${bash_cv_langinfo_codeset+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059else
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061/* end confdefs.h. */
11062#include <langinfo.h>
11063int
11064main ()
11065{
11066char* cs = nl_langinfo(CODESET);
11067 ;
11068 return 0;
11069}
11070_ACEOF
11071if ac_fn_c_try_link "$LINENO"; then :
11072 bash_cv_langinfo_codeset=yes
11073else
11074 bash_cv_langinfo_codeset=no
11075fi
11076rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
11080$as_echo "$bash_cv_langinfo_codeset" >&6; }
11081if test $bash_cv_langinfo_codeset = yes; then
11082 $as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11083
11084fi
11085
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
11087$as_echo_n "checking for wchar_t in wchar.h... " >&6; }
11088if ${bash_cv_type_wchar_t+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090else
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h. */
11093#include <wchar.h>
11094
11095int
11096main ()
11097{
11098
11099 wchar_t foo;
11100 foo = 0;
11101
11102 ;
11103 return 0;
11104}
11105_ACEOF
11106if ac_fn_c_try_compile "$LINENO"; then :
11107 bash_cv_type_wchar_t=yes
11108else
11109 bash_cv_type_wchar_t=no
11110fi
11111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
11114$as_echo "$bash_cv_type_wchar_t" >&6; }
11115if test $bash_cv_type_wchar_t = yes; then
11116
11117$as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
11118
11119fi
11120
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
11122$as_echo_n "checking for wctype_t in wctype.h... " >&6; }
11123if ${bash_cv_type_wctype_t+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125else
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127/* end confdefs.h. */
11128#include <wctype.h>
11129int
11130main ()
11131{
11132
11133 wctype_t foo;
11134 foo = 0;
11135
11136 ;
11137 return 0;
11138}
11139_ACEOF
11140if ac_fn_c_try_compile "$LINENO"; then :
11141 bash_cv_type_wctype_t=yes
11142else
11143 bash_cv_type_wctype_t=no
11144fi
11145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146fi
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
11148$as_echo "$bash_cv_type_wctype_t" >&6; }
11149if test $bash_cv_type_wctype_t = yes; then
11150
11151$as_echo "@%:@define HAVE_WCTYPE_T 1" >>confdefs.h
11152
11153fi
11154
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
11156$as_echo_n "checking for wint_t in wctype.h... " >&6; }
11157if ${bash_cv_type_wint_t+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159else
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161/* end confdefs.h. */
11162#include <wctype.h>
11163int
11164main ()
11165{
11166
11167 wint_t foo;
11168 foo = 0;
11169
11170 ;
11171 return 0;
11172}
11173_ACEOF
11174if ac_fn_c_try_compile "$LINENO"; then :
11175 bash_cv_type_wint_t=yes
11176else
11177 bash_cv_type_wint_t=no
11178fi
11179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11180fi
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
11182$as_echo "$bash_cv_type_wint_t" >&6; }
11183if test $bash_cv_type_wint_t = yes; then
11184
11185$as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h
11186
11187fi
11188
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
11190$as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
11191if ${bash_cv_wcwidth_broken+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193else
11194 if test "$cross_compiling" = yes; then :
11195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11197as_fn_error $? "cannot run test program while cross compiling
11198See \`config.log' for more details" "$LINENO" 5; }
11199else
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201/* end confdefs.h. */
11202
11203#include <unistd.h>
11204#include <stdlib.h>
11205#include <stdio.h>
11206
11207#include <locale.h>
11208#include <wchar.h>
11209
11210main(c, v)
11211int c;
11212char **v;
11213{
11214 int w;
11215
11216 setlocale(LC_ALL, "en_US.UTF-8");
11217 w = wcwidth (0x0301);
11218 exit (w == 0); /* exit 0 if wcwidth broken */
11219}
11220
11221_ACEOF
11222if ac_fn_c_try_run "$LINENO"; then :
11223 bash_cv_wcwidth_broken=yes
11224else
11225 bash_cv_wcwdith_broken=no
11226fi
11227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11228 conftest.$ac_objext conftest.beam conftest.$ac_ext
11229fi
11230
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
11233$as_echo "$bash_cv_wcwidth_broken" >&6; }
11234if test $bash_cv_wcwidth_broken = yes; then
11235
11236$as_echo "@%:@define WCWIDTH_BROKEN 1" >>confdefs.h
11237
11238fi
11239
11240if test "$am_cv_func_iconv" = yes; then
11241 OLDLIBS="$LIBS"
11242 LIBS="$LIBS $LIBICONV"
11243 for ac_func in locale_charset
11244do :
11245 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11246if test "x$ac_cv_func_locale_charset" = xyes; then :
11247 cat >>confdefs.h <<_ACEOF
11248@%:@define HAVE_LOCALE_CHARSET 1
11249_ACEOF
11250
11251fi
11252done
11253
11254 LIBS="$OLDLIBS"
11255fi
11256
11257
11258
11259if test "$opt_static_link" != yes; then
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11261$as_echo_n "checking for dlopen in -ldl... " >&6; }
11262if ${ac_cv_lib_dl_dlopen+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264else
11265 ac_check_lib_save_LIBS=$LIBS
11266LIBS="-ldl $LIBS"
11267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h. */
11269
11270/* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273#ifdef __cplusplus
11274extern "C"
11275#endif
11276char dlopen ();
11277int
11278main ()
11279{
11280return dlopen ();
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285if ac_fn_c_try_link "$LINENO"; then :
11286 ac_cv_lib_dl_dlopen=yes
11287else
11288 ac_cv_lib_dl_dlopen=no
11289fi
11290rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292LIBS=$ac_check_lib_save_LIBS
11293fi
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11295$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11296if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11297 cat >>confdefs.h <<_ACEOF
11298@%:@define HAVE_LIBDL 1
11299_ACEOF
11300
11301 LIBS="-ldl $LIBS"
11302
11303fi
11304
11305for ac_func in dlopen dlclose dlsym
11306do :
11307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11308ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11309if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11310 cat >>confdefs.h <<_ACEOF
11311@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11312_ACEOF
11313
11314fi
11315done
11316
11317fi
11318
11319ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11320/* NetBSD declares sys_siglist in unistd.h. */
11321#ifdef HAVE_UNISTD_H
11322# include <unistd.h>
11323#endif
11324
11325"
11326if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
11327 ac_have_decl=1
11328else
11329 ac_have_decl=0
11330fi
11331
11332cat >>confdefs.h <<_ACEOF
11333@%:@define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11334_ACEOF
11335
11336
11337
11338if test "$ac_cv_func_inet_aton" != 'yes'; then
11339
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11341$as_echo_n "checking for inet_aton... " >&6; }
11342if ${bash_cv_func_inet_aton+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344else
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h. */
11347
11348#include <sys/types.h>
11349#include <netinet/in.h>
11350#include <arpa/inet.h>
11351struct in_addr ap;
11352int
11353main ()
11354{
11355 inet_aton("127.0.0.1", &ap);
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360if ac_fn_c_try_link "$LINENO"; then :
11361 bash_cv_func_inet_aton=yes
11362else
11363 bash_cv_func_inet_aton=no
11364fi
11365rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367fi
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
11369$as_echo "$bash_cv_func_inet_aton" >&6; }
11370if test $bash_cv_func_inet_aton = yes; then
11371 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
11372
11373else
11374 case " $LIB@&t@OBJS " in
11375 *" inet_aton.$ac_objext "* ) ;;
11376 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext"
11377 ;;
11378esac
11379
11380fi
11381
11382fi
11383
11384case "$host_os" in
11385irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
11386$as_echo_n "checking for getpwent in -lsun... " >&6; }
11387if ${ac_cv_lib_sun_getpwent+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389else
11390 ac_check_lib_save_LIBS=$LIBS
11391LIBS="-lsun $LIBS"
11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h. */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char getpwent ();
11402int
11403main ()
11404{
11405return getpwent ();
11406 ;
11407 return 0;
11408}
11409_ACEOF
11410if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_sun_getpwent=yes
11412else
11413 ac_cv_lib_sun_getpwent=no
11414fi
11415rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417LIBS=$ac_check_lib_save_LIBS
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
11420$as_echo "$ac_cv_lib_sun_getpwent" >&6; }
11421if test "x$ac_cv_lib_sun_getpwent" = xyes; then :
11422 cat >>confdefs.h <<_ACEOF
11423@%:@define HAVE_LIBSUN 1
11424_ACEOF
11425
11426 LIBS="-lsun $LIBS"
11427
11428fi
11429 ;;
11430esac
11431
11432if test "$ac_cv_func_getpeername" = no; then
11433
11434if test "X$bash_cv_have_socklib" = "X"; then
11435_bash_needmsg=
11436else
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
11438$as_echo_n "checking for socket library... " >&6; }
11439_bash_needmsg=yes
11440fi
11441if ${bash_cv_have_socklib+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
11445$as_echo_n "checking for getpeername in -lsocket... " >&6; }
11446if ${ac_cv_lib_socket_getpeername+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448else
11449 ac_check_lib_save_LIBS=$LIBS
11450LIBS="-lsocket -lnsl $LIBS"
11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452/* end confdefs.h. */
11453
11454/* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457#ifdef __cplusplus
11458extern "C"
11459#endif
11460char getpeername ();
11461int
11462main ()
11463{
11464return getpeername ();
11465 ;
11466 return 0;
11467}
11468_ACEOF
11469if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_lib_socket_getpeername=yes
11471else
11472 ac_cv_lib_socket_getpeername=no
11473fi
11474rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476LIBS=$ac_check_lib_save_LIBS
11477fi
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
11479$as_echo "$ac_cv_lib_socket_getpeername" >&6; }
11480if test "x$ac_cv_lib_socket_getpeername" = xyes; then :
11481 bash_cv_have_socklib=yes
11482else
11483 bash_cv_have_socklib=no
11484fi
11485
11486fi
11487
11488if test "X$_bash_needmsg" = Xyes; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
11490$as_echo "$bash_cv_have_socklib" >&6; }
11491 _bash_needmsg=
11492fi
11493if test $bash_cv_have_socklib = yes; then
11494 # check for libnsl, add it to LIBS if present
11495 if test "X$bash_cv_have_libnsl" = "X"; then
11496 _bash_needmsg=
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
11499$as_echo_n "checking for libnsl... " >&6; }
11500 _bash_needmsg=yes
11501 fi
11502 if ${bash_cv_have_libnsl+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
11506$as_echo_n "checking for t_open in -lnsl... " >&6; }
11507if ${ac_cv_lib_nsl_t_open+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509else
11510 ac_check_lib_save_LIBS=$LIBS
11511LIBS="-lnsl $LIBS"
11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h. */
11514
11515/* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518#ifdef __cplusplus
11519extern "C"
11520#endif
11521char t_open ();
11522int
11523main ()
11524{
11525return t_open ();
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_nsl_t_open=yes
11532else
11533 ac_cv_lib_nsl_t_open=no
11534fi
11535rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537LIBS=$ac_check_lib_save_LIBS
11538fi
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
11540$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
11541if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
11542 bash_cv_have_libnsl=yes
11543else
11544 bash_cv_have_libnsl=no
11545fi
11546
11547fi
11548
11549 if test "X$_bash_needmsg" = Xyes; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
11551$as_echo "$bash_cv_have_libnsl" >&6; }
11552 _bash_needmsg=
11553 fi
11554 if test $bash_cv_have_libnsl = yes; then
11555 LIBS="-lsocket -lnsl $LIBS"
11556 else
11557 LIBS="-lsocket $LIBS"
11558 fi
11559 $as_echo "@%:@define HAVE_LIBSOCKET 1" >>confdefs.h
11560
11561 $as_echo "@%:@define HAVE_GETPEERNAME 1" >>confdefs.h
11562
11563fi
11564
11565fi
11566if test "$ac_cv_func_gethostbyname" = no; then
11567 if test "X$bash_cv_have_gethostbyname" = "X"; then
11568_bash_needmsg=yes
11569else
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11571$as_echo_n "checking for gethostbyname in socket library... " >&6; }
11572_bash_needmsg=
11573fi
11574if ${bash_cv_have_gethostbyname+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576else
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578/* end confdefs.h. */
11579#include <netdb.h>
11580int
11581main ()
11582{
11583 struct hostent *hp;
11584 hp = gethostbyname("localhost");
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_link "$LINENO"; then :
11591 bash_cv_have_gethostbyname=yes
11592else
11593 bash_cv_have_gethostbyname=no
11594fi
11595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597
11598fi
11599
11600if test "X$_bash_needmsg" = Xyes; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11602$as_echo_n "checking for gethostbyname in socket library... " >&6; }
11603fi
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
11605$as_echo "$bash_cv_have_gethostbyname" >&6; }
11606if test "$bash_cv_have_gethostbyname" = yes; then
11607$as_echo "@%:@define HAVE_GETHOSTBYNAME 1" >>confdefs.h
11608
11609fi
11610
11611fi
11612
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11614$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11615if ${ac_cv_type_uid_t+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617else
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h. */
11620#include <sys/types.h>
11621
11622_ACEOF
11623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11624 $EGREP "uid_t" >/dev/null 2>&1; then :
11625 ac_cv_type_uid_t=yes
11626else
11627 ac_cv_type_uid_t=no
11628fi
11629rm -f conftest*
11630
11631fi
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11633$as_echo "$ac_cv_type_uid_t" >&6; }
11634if test $ac_cv_type_uid_t = no; then
11635
11636$as_echo "@%:@define uid_t int" >>confdefs.h
11637
11638
11639$as_echo "@%:@define gid_t int" >>confdefs.h
11640
11641fi
11642
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11644$as_echo_n "checking type of array argument to getgroups... " >&6; }
11645if ${ac_cv_type_getgroups+:} false; then :
11646 $as_echo_n "(cached) " >&6
11647else
11648 if test "$cross_compiling" = yes; then :
11649 ac_cv_type_getgroups=cross
11650else
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h. */
11653/* Thanks to Mike Rendell for this test. */
11654$ac_includes_default
11655#define NGID 256
11656#undef MAX
11657#define MAX(x, y) ((x) > (y) ? (x) : (y))
11658
11659int
11660main ()
11661{
11662 gid_t gidset[NGID];
11663 int i, n;
11664 union { gid_t gval; long int lval; } val;
11665
11666 val.lval = -1;
11667 for (i = 0; i < NGID; i++)
11668 gidset[i] = val.gval;
11669 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11670 gidset);
11671 /* Exit non-zero if getgroups seems to require an array of ints. This
11672 happens when gid_t is short int but getgroups modifies an array
11673 of ints. */
11674 return n > 0 && gidset[n] != val.gval;
11675}
11676_ACEOF
11677if ac_fn_c_try_run "$LINENO"; then :
11678 ac_cv_type_getgroups=gid_t
11679else
11680 ac_cv_type_getgroups=int
11681fi
11682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11683 conftest.$ac_objext conftest.beam conftest.$ac_ext
11684fi
11685
11686if test $ac_cv_type_getgroups = cross; then
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h. */
11689#include <unistd.h>
11690
11691_ACEOF
11692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11693 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
11694 ac_cv_type_getgroups=gid_t
11695else
11696 ac_cv_type_getgroups=int
11697fi
11698rm -f conftest*
11699
11700fi
11701fi
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11703$as_echo "$ac_cv_type_getgroups" >&6; }
11704
11705cat >>confdefs.h <<_ACEOF
11706@%:@define GETGROUPS_T $ac_cv_type_getgroups
11707_ACEOF
11708
11709
11710ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11711if test "x$ac_cv_type_off_t" = xyes; then :
11712
11713else
11714
11715cat >>confdefs.h <<_ACEOF
11716@%:@define off_t long int
11717_ACEOF
11718
11719fi
11720
11721ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11722if test "x$ac_cv_type_mode_t" = xyes; then :
11723
11724else
11725
11726cat >>confdefs.h <<_ACEOF
11727@%:@define mode_t int
11728_ACEOF
11729
11730fi
11731
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11733$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11734if ${ac_cv_type_uid_t+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736else
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h. */
11739#include <sys/types.h>
11740
11741_ACEOF
11742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11743 $EGREP "uid_t" >/dev/null 2>&1; then :
11744 ac_cv_type_uid_t=yes
11745else
11746 ac_cv_type_uid_t=no
11747fi
11748rm -f conftest*
11749
11750fi
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11752$as_echo "$ac_cv_type_uid_t" >&6; }
11753if test $ac_cv_type_uid_t = no; then
11754
11755$as_echo "@%:@define uid_t int" >>confdefs.h
11756
11757
11758$as_echo "@%:@define gid_t int" >>confdefs.h
11759
11760fi
11761
11762ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11763if test "x$ac_cv_type_pid_t" = xyes; then :
11764
11765else
11766
11767cat >>confdefs.h <<_ACEOF
11768@%:@define pid_t int
11769_ACEOF
11770
11771fi
11772
11773ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11774if test "x$ac_cv_type_size_t" = xyes; then :
11775
11776else
11777
11778cat >>confdefs.h <<_ACEOF
11779@%:@define size_t unsigned int
11780_ACEOF
11781
11782fi
11783
11784ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11785if test "x$ac_cv_type_ssize_t" = xyes; then :
11786
11787else
11788
11789cat >>confdefs.h <<_ACEOF
11790@%:@define ssize_t int
11791_ACEOF
11792
11793fi
11794
11795ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
11796if test "x$ac_cv_type_time_t" = xyes; then :
11797
11798else
11799
11800cat >>confdefs.h <<_ACEOF
11801@%:@define time_t long
11802_ACEOF
11803
11804fi
11805
11806
11807
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
11809$as_echo_n "checking for long long... " >&6; }
11810if ${bash_cv_type_long_long+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812else
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h. */
11815
11816long long ll = 1; int i = 63;
11817int
11818main ()
11819{
11820
11821long long llm = (long long) -1;
11822return ll << i | ll >> i | llm / ll | llm % ll;
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_link "$LINENO"; then :
11829 bash_cv_type_long_long='long long'
11830else
11831 bash_cv_type_long_long='long'
11832fi
11833rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5
11837$as_echo "$bash_cv_type_long_long" >&6; }
11838if test "$bash_cv_type_long_long" = 'long long'; then
11839 $as_echo "@%:@define HAVE_LONG_LONG 1" >>confdefs.h
11840
11841fi
11842
11843
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
11845$as_echo_n "checking for unsigned long long... " >&6; }
11846if ${bash_cv_type_unsigned_long_long+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848else
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850/* end confdefs.h. */
11851
11852unsigned long long ull = 1; int i = 63;
11853int
11854main ()
11855{
11856
11857unsigned long long ullmax = (unsigned long long) -1;
11858return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864if ac_fn_c_try_link "$LINENO"; then :
11865 bash_cv_type_unsigned_long_long='unsigned long long'
11866else
11867 bash_cv_type_unsigned_long_long='unsigned long'
11868fi
11869rm -f core conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11871fi
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5
11873$as_echo "$bash_cv_type_unsigned_long_long" >&6; }
11874if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
11875 $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
11876
11877fi
11878
11879
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11881$as_echo_n "checking return type of signal handlers... " >&6; }
11882if ${ac_cv_type_signal+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884else
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h. */
11887#include <sys/types.h>
11888#include <signal.h>
11889
11890int
11891main ()
11892{
11893return *(signal (0, 0)) (0) == 1;
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898if ac_fn_c_try_compile "$LINENO"; then :
11899 ac_cv_type_signal=int
11900else
11901 ac_cv_type_signal=void
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11906$as_echo "$ac_cv_type_signal" >&6; }
11907
11908cat >>confdefs.h <<_ACEOF
11909@%:@define RETSIGTYPE $ac_cv_type_signal
11910_ACEOF
11911
11912
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
11914$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
11915if ${ac_cv_have_sig_atomic_t+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917else
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919/* end confdefs.h. */
11920
11921#include <signal.h>
11922
11923int
11924main ()
11925{
11926 sig_atomic_t x;
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_have_sig_atomic_t=yes
11933else
11934 ac_cv_have_sig_atomic_t=no
11935fi
11936rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938fi
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
11940$as_echo "$ac_cv_have_sig_atomic_t" >&6; }
11941if test "$ac_cv_have_sig_atomic_t" = "no"
11942then
11943 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
11944if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
11945
11946else
11947
11948cat >>confdefs.h <<_ACEOF
11949@%:@define sig_atomic_t int
11950_ACEOF
11951
11952fi
11953
11954fi
11955
11956
11957# The cast to long int works around a bug in the HP C Compiler
11958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11960# This bug is HP SR number 8606223364.
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11962$as_echo_n "checking size of char... " >&6; }
11963if ${ac_cv_sizeof_char+:} false; then :
11964 $as_echo_n "(cached) " >&6
11965else
11966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11967
11968else
11969 if test "$ac_cv_type_char" = yes; then
11970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11972as_fn_error 77 "cannot compute sizeof (char)
11973See \`config.log' for more details" "$LINENO" 5; }
11974 else
11975 ac_cv_sizeof_char=0
11976 fi
11977fi
11978
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11981$as_echo "$ac_cv_sizeof_char" >&6; }
11982
11983
11984
11985cat >>confdefs.h <<_ACEOF
11986@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
11987_ACEOF
11988
11989
11990# The cast to long int works around a bug in the HP C Compiler
11991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11993# This bug is HP SR number 8606223364.
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11995$as_echo_n "checking size of short... " >&6; }
11996if ${ac_cv_sizeof_short+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998else
11999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12000
12001else
12002 if test "$ac_cv_type_short" = yes; then
12003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12005as_fn_error 77 "cannot compute sizeof (short)
12006See \`config.log' for more details" "$LINENO" 5; }
12007 else
12008 ac_cv_sizeof_short=0
12009 fi
12010fi
12011
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12014$as_echo "$ac_cv_sizeof_short" >&6; }
12015
12016
12017
12018cat >>confdefs.h <<_ACEOF
12019@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
12020_ACEOF
12021
12022
12023# The cast to long int works around a bug in the HP C Compiler
12024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12026# This bug is HP SR number 8606223364.
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12028$as_echo_n "checking size of int... " >&6; }
12029if ${ac_cv_sizeof_int+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031else
12032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12033
12034else
12035 if test "$ac_cv_type_int" = yes; then
12036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12038as_fn_error 77 "cannot compute sizeof (int)
12039See \`config.log' for more details" "$LINENO" 5; }
12040 else
12041 ac_cv_sizeof_int=0
12042 fi
12043fi
12044
12045fi
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12047$as_echo "$ac_cv_sizeof_int" >&6; }
12048
12049
12050
12051cat >>confdefs.h <<_ACEOF
12052@%:@define SIZEOF_INT $ac_cv_sizeof_int
12053_ACEOF
12054
12055
12056# The cast to long int works around a bug in the HP C Compiler
12057# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12058# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12059# This bug is HP SR number 8606223364.
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12061$as_echo_n "checking size of long... " >&6; }
12062if ${ac_cv_sizeof_long+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12066
12067else
12068 if test "$ac_cv_type_long" = yes; then
12069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12071as_fn_error 77 "cannot compute sizeof (long)
12072See \`config.log' for more details" "$LINENO" 5; }
12073 else
12074 ac_cv_sizeof_long=0
12075 fi
12076fi
12077
12078fi
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12080$as_echo "$ac_cv_sizeof_long" >&6; }
12081
12082
12083
12084cat >>confdefs.h <<_ACEOF
12085@%:@define SIZEOF_LONG $ac_cv_sizeof_long
12086_ACEOF
12087
12088
12089# The cast to long int works around a bug in the HP C Compiler
12090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12092# This bug is HP SR number 8606223364.
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
12094$as_echo_n "checking size of char *... " >&6; }
12095if ${ac_cv_sizeof_char_p+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097else
12098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
12099
12100else
12101 if test "$ac_cv_type_char_p" = yes; then
12102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12104as_fn_error 77 "cannot compute sizeof (char *)
12105See \`config.log' for more details" "$LINENO" 5; }
12106 else
12107 ac_cv_sizeof_char_p=0
12108 fi
12109fi
12110
12111fi
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
12113$as_echo "$ac_cv_sizeof_char_p" >&6; }
12114
12115
12116
12117cat >>confdefs.h <<_ACEOF
12118@%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
12119_ACEOF
12120
12121
12122# The cast to long int works around a bug in the HP C Compiler
12123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12125# This bug is HP SR number 8606223364.
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12127$as_echo_n "checking size of double... " >&6; }
12128if ${ac_cv_sizeof_double+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130else
12131 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12132
12133else
12134 if test "$ac_cv_type_double" = yes; then
12135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12137as_fn_error 77 "cannot compute sizeof (double)
12138See \`config.log' for more details" "$LINENO" 5; }
12139 else
12140 ac_cv_sizeof_double=0
12141 fi
12142fi
12143
12144fi
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12146$as_echo "$ac_cv_sizeof_double" >&6; }
12147
12148
12149
12150cat >>confdefs.h <<_ACEOF
12151@%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
12152_ACEOF
12153
12154
12155# The cast to long int works around a bug in the HP C Compiler
12156# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12157# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12158# This bug is HP SR number 8606223364.
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12160$as_echo_n "checking size of long long... " >&6; }
12161if ${ac_cv_sizeof_long_long+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163else
12164 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12165
12166else
12167 if test "$ac_cv_type_long_long" = yes; then
12168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12170as_fn_error 77 "cannot compute sizeof (long long)
12171See \`config.log' for more details" "$LINENO" 5; }
12172 else
12173 ac_cv_sizeof_long_long=0
12174 fi
12175fi
12176
12177fi
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12179$as_echo "$ac_cv_sizeof_long_long" >&6; }
12180
12181
12182
12183cat >>confdefs.h <<_ACEOF
12184@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12185_ACEOF
12186
12187
12188
12189ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12190if test "x$ac_cv_type_u_int" = xyes; then :
12191
12192else
12193
12194cat >>confdefs.h <<_ACEOF
12195@%:@define u_int unsigned int
12196_ACEOF
12197
12198fi
12199
12200ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12201if test "x$ac_cv_type_u_long" = xyes; then :
12202
12203else
12204
12205cat >>confdefs.h <<_ACEOF
12206@%:@define u_long unsigned long
12207_ACEOF
12208
12209fi
12210
12211
12212
12213if test "$ac_cv_sizeof_short" = 2; then
12214 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12215if test "x$ac_cv_type_bits16_t" = xyes; then :
12216
12217else
12218
12219cat >>confdefs.h <<_ACEOF
12220@%:@define bits16_t short
12221_ACEOF
12222
12223fi
12224
12225elif test "$ac_cv_sizeof_char" = 2; then
12226 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12227if test "x$ac_cv_type_bits16_t" = xyes; then :
12228
12229else
12230
12231cat >>confdefs.h <<_ACEOF
12232@%:@define bits16_t char
12233_ACEOF
12234
12235fi
12236
12237else
12238 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12239if test "x$ac_cv_type_bits16_t" = xyes; then :
12240
12241else
12242
12243cat >>confdefs.h <<_ACEOF
12244@%:@define bits16_t short
12245_ACEOF
12246
12247fi
12248
12249fi
12250
12251
12252if test "$ac_cv_sizeof_short" = 2; then
12253 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12254if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12255
12256else
12257
12258cat >>confdefs.h <<_ACEOF
12259@%:@define u_bits16_t unsigned short
12260_ACEOF
12261
12262fi
12263
12264elif test "$ac_cv_sizeof_char" = 2; then
12265 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12266if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12267
12268else
12269
12270cat >>confdefs.h <<_ACEOF
12271@%:@define u_bits16_t unsigned char
12272_ACEOF
12273
12274fi
12275
12276else
12277 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12278if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12279
12280else
12281
12282cat >>confdefs.h <<_ACEOF
12283@%:@define u_bits16_t unsigned short
12284_ACEOF
12285
12286fi
12287
12288fi
12289
12290
12291if test "$ac_cv_sizeof_int" = 4; then
12292 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12293if test "x$ac_cv_type_bits32_t" = xyes; then :
12294
12295else
12296
12297cat >>confdefs.h <<_ACEOF
12298@%:@define bits32_t int
12299_ACEOF
12300
12301fi
12302
12303elif test "$ac_cv_sizeof_long" = 4; then
12304 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12305if test "x$ac_cv_type_bits32_t" = xyes; then :
12306
12307else
12308
12309cat >>confdefs.h <<_ACEOF
12310@%:@define bits32_t long
12311_ACEOF
12312
12313fi
12314
12315else
12316 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12317if test "x$ac_cv_type_bits32_t" = xyes; then :
12318
12319else
12320
12321cat >>confdefs.h <<_ACEOF
12322@%:@define bits32_t int
12323_ACEOF
12324
12325fi
12326
12327fi
12328
12329
12330if test "$ac_cv_sizeof_int" = 4; then
12331 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12332if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12333
12334else
12335
12336cat >>confdefs.h <<_ACEOF
12337@%:@define u_bits32_t unsigned int
12338_ACEOF
12339
12340fi
12341
12342elif test "$ac_cv_sizeof_long" = 4; then
12343 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12344if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12345
12346else
12347
12348cat >>confdefs.h <<_ACEOF
12349@%:@define u_bits32_t unsigned long
12350_ACEOF
12351
12352fi
12353
12354else
12355 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12356if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12357
12358else
12359
12360cat >>confdefs.h <<_ACEOF
12361@%:@define u_bits32_t unsigned int
12362_ACEOF
12363
12364fi
12365
12366fi
12367
12368
12369if test "$ac_cv_sizeof_char_p" = 8; then
12370 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12371if test "x$ac_cv_type_bits64_t" = xyes; then :
12372
12373else
12374
12375cat >>confdefs.h <<_ACEOF
12376@%:@define bits64_t char *
12377_ACEOF
12378
12379fi
12380
12381elif test "$ac_cv_sizeof_double" = 8; then
12382 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12383if test "x$ac_cv_type_bits64_t" = xyes; then :
12384
12385else
12386
12387cat >>confdefs.h <<_ACEOF
12388@%:@define bits64_t double
12389_ACEOF
12390
12391fi
12392
12393elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
12394 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12395if test "x$ac_cv_type_bits64_t" = xyes; then :
12396
12397else
12398
12399cat >>confdefs.h <<_ACEOF
12400@%:@define bits64_t long long
12401_ACEOF
12402
12403fi
12404
12405elif test "$ac_cv_sizeof_long" = 8; then
12406 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12407if test "x$ac_cv_type_bits64_t" = xyes; then :
12408
12409else
12410
12411cat >>confdefs.h <<_ACEOF
12412@%:@define bits64_t long
12413_ACEOF
12414
12415fi
12416
12417else
12418 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12419if test "x$ac_cv_type_bits64_t" = xyes; then :
12420
12421else
12422
12423cat >>confdefs.h <<_ACEOF
12424@%:@define bits64_t double
12425_ACEOF
12426
12427fi
12428
12429fi
12430
12431
12432
12433if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
12434 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12435if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12436
12437else
12438
12439cat >>confdefs.h <<_ACEOF
12440@%:@define ptrdiff_t int
12441_ACEOF
12442
12443fi
12444
12445elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
12446 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12447if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12448
12449else
12450
12451cat >>confdefs.h <<_ACEOF
12452@%:@define ptrdiff_t long
12453_ACEOF
12454
12455fi
12456
12457elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
12458 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12459if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12460
12461else
12462
12463cat >>confdefs.h <<_ACEOF
12464@%:@define ptrdiff_t long long
12465_ACEOF
12466
12467fi
12468
12469else
12470 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12471if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12472
12473else
12474
12475cat >>confdefs.h <<_ACEOF
12476@%:@define ptrdiff_t int
12477_ACEOF
12478
12479fi
12480
12481fi
12482
12483
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12485$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12486if ${ac_cv_header_stat_broken+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488else
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490/* end confdefs.h. */
12491#include <sys/types.h>
12492#include <sys/stat.h>
12493
12494#if defined S_ISBLK && defined S_IFDIR
12495extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12496#endif
12497
12498#if defined S_ISBLK && defined S_IFCHR
12499extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12500#endif
12501
12502#if defined S_ISLNK && defined S_IFREG
12503extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12504#endif
12505
12506#if defined S_ISSOCK && defined S_IFREG
12507extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12508#endif
12509
12510_ACEOF
12511if ac_fn_c_try_compile "$LINENO"; then :
12512 ac_cv_header_stat_broken=no
12513else
12514 ac_cv_header_stat_broken=yes
12515fi
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12519$as_echo "$ac_cv_header_stat_broken" >&6; }
12520if test $ac_cv_header_stat_broken = yes; then
12521
12522$as_echo "@%:@define STAT_MACROS_BROKEN 1" >>confdefs.h
12523
12524fi
12525
12526
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether @%:@! works in shell scripts" >&5
12528$as_echo_n "checking whether @%:@! works in shell scripts... " >&6; }
12529if ${ac_cv_sys_interpreter+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531else
12532 echo '#! /bin/cat
12533exit 69
12534' >conftest
12535chmod u+x conftest
12536(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
12537if test $? -ne 69; then
12538 ac_cv_sys_interpreter=yes
12539else
12540 ac_cv_sys_interpreter=no
12541fi
12542rm -f conftest
12543fi
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
12545$as_echo "$ac_cv_sys_interpreter" >&6; }
12546interpval=$ac_cv_sys_interpreter
12547
12548if test $ac_cv_sys_interpreter = yes; then
12549$as_echo "@%:@define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
12550
12551fi
12552
12553if test "$ac_cv_func_lstat" = "no"; then
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
12555$as_echo_n "checking for lstat... " >&6; }
12556if ${bash_cv_func_lstat+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560/* end confdefs.h. */
12561
12562#include <sys/types.h>
12563#include <sys/stat.h>
12564
12565int
12566main ()
12567{
12568 lstat(".",(struct stat *)0);
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573if ac_fn_c_try_link "$LINENO"; then :
12574 bash_cv_func_lstat=yes
12575else
12576 bash_cv_func_lstat=no
12577fi
12578rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
12582$as_echo "$bash_cv_func_lstat" >&6; }
12583if test $bash_cv_func_lstat = yes; then
12584 $as_echo "@%:@define HAVE_LSTAT 1" >>confdefs.h
12585
12586fi
12587
12588fi
12589
12590
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
12592$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
12593if ${bash_cv_func_ctype_nonascii+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595else
12596 if test "$cross_compiling" = yes; then :
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
12598$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
12599 bash_cv_func_ctype_nonascii=no
12600
12601else
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603/* end confdefs.h. */
12604
12605#ifdef HAVE_LOCALE_H
12606#include <locale.h>
12607#endif
12608#include <stdio.h>
12609#include <ctype.h>
12610
12611main(c, v)
12612int c;
12613char *v[];
12614{
12615 char *deflocale;
12616 unsigned char x;
12617 int r1, r2;
12618
12619#ifdef HAVE_SETLOCALE
12620 /* We take a shot here. If that locale is not known, try the
12621 system default. We try this one because '\342' (226) is
12622 known to be a printable character in that locale. */
12623 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
12624 if (deflocale == 0)
12625 deflocale = setlocale(LC_ALL, "");
12626#endif
12627
12628 x = '\342';
12629 r1 = isprint(x);
12630 x -= 128;
12631 r2 = isprint(x);
12632 exit (r1 == 0 || r2 == 0);
12633}
12634
12635_ACEOF
12636if ac_fn_c_try_run "$LINENO"; then :
12637 bash_cv_func_ctype_nonascii=yes
12638else
12639 bash_cv_func_ctype_nonascii=no
12640fi
12641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12642 conftest.$ac_objext conftest.beam conftest.$ac_ext
12643fi
12644
12645fi
12646
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
12648$as_echo "$bash_cv_func_ctype_nonascii" >&6; }
12649if test $bash_cv_func_ctype_nonascii = yes; then
12650$as_echo "@%:@define CTYPE_NON_ASCII 1" >>confdefs.h
12651
12652fi
12653
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
12655$as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
12656if ${bash_cv_dup2_broken+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658else
12659 if test "$cross_compiling" = yes; then :
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12661$as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12662 bash_cv_dup2_broken=no
12663else
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665/* end confdefs.h. */
12666
12667#include <sys/types.h>
12668#include <fcntl.h>
12669main()
12670{
12671 int fd1, fd2, fl;
12672 fd1 = open("/dev/null", 2);
12673 if (fcntl(fd1, 2, 1) < 0)
12674 exit(1);
12675 fd2 = dup2(fd1, 1);
12676 if (fd2 < 0)
12677 exit(2);
12678 fl = fcntl(fd2, 1, 0);
12679 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12680 exit(fl != 1);
12681}
12682
12683_ACEOF
12684if ac_fn_c_try_run "$LINENO"; then :
12685 bash_cv_dup2_broken=yes
12686else
12687 bash_cv_dup2_broken=no
12688fi
12689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12690 conftest.$ac_objext conftest.beam conftest.$ac_ext
12691fi
12692
12693
12694fi
12695
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
12697$as_echo "$bash_cv_dup2_broken" >&6; }
12698if test $bash_cv_dup2_broken = yes; then
12699$as_echo "@%:@define DUP2_BROKEN 1" >>confdefs.h
12700
12701fi
12702
12703
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
12705$as_echo_n "checking whether pgrps need synchronization... " >&6; }
12706if ${bash_cv_pgrp_pipe+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708else
12709 if test "$cross_compiling" = yes; then :
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
12711$as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
12712 bash_cv_pgrp_pipe=no
12713else
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715/* end confdefs.h. */
12716
12717#ifdef HAVE_UNISTD_H
12718# include <unistd.h>
12719#endif
12720main()
12721{
12722# ifdef GETPGRP_VOID
12723# define getpgID() getpgrp()
12724# else
12725# define getpgID() getpgrp(0)
12726# define setpgid(x,y) setpgrp(x,y)
12727# endif
12728 int pid1, pid2, fds[2];
12729 int status;
12730 char ok;
12731
12732 switch (pid1 = fork()) {
12733 case -1:
12734 exit(1);
12735 case 0:
12736 setpgid(0, getpid());
12737 exit(0);
12738 }
12739 setpgid(pid1, pid1);
12740
12741 sleep(2); /* let first child die */
12742
12743 if (pipe(fds) < 0)
12744 exit(2);
12745
12746 switch (pid2 = fork()) {
12747 case -1:
12748 exit(3);
12749 case 0:
12750 setpgid(0, pid1);
12751 ok = getpgID() == pid1;
12752 write(fds[1], &ok, 1);
12753 exit(0);
12754 }
12755 setpgid(pid2, pid1);
12756
12757 close(fds[1]);
12758 if (read(fds[0], &ok, 1) != 1)
12759 exit(4);
12760 wait(&status);
12761 wait(&status);
12762 exit(ok ? 0 : 5);
12763}
12764
12765_ACEOF
12766if ac_fn_c_try_run "$LINENO"; then :
12767 bash_cv_pgrp_pipe=no
12768else
12769 bash_cv_pgrp_pipe=yes
12770fi
12771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12772 conftest.$ac_objext conftest.beam conftest.$ac_ext
12773fi
12774
12775
12776fi
12777
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
12779$as_echo "$bash_cv_pgrp_pipe" >&6; }
12780if test $bash_cv_pgrp_pipe = yes; then
12781$as_echo "@%:@define PGRP_PIPE 1" >>confdefs.h
12782
12783fi
12784
12785
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
12787$as_echo_n "checking for type of signal functions... " >&6; }
12788if ${bash_cv_signal_vintage+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790else
12791
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793/* end confdefs.h. */
12794#include <signal.h>
12795int
12796main ()
12797{
12798
12799 sigset_t ss;
12800 struct sigaction sa;
12801 sigemptyset(&ss); sigsuspend(&ss);
12802 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12803 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12804
12805 ;
12806 return 0;
12807}
12808_ACEOF
12809if ac_fn_c_try_link "$LINENO"; then :
12810 bash_cv_signal_vintage=posix
12811else
12812
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h. */
12815#include <signal.h>
12816int
12817main ()
12818{
12819
12820 int mask = sigmask(SIGINT);
12821 sigsetmask(mask); sigblock(mask); sigpause(mask);
12822
12823 ;
12824 return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_link "$LINENO"; then :
12828 bash_cv_signal_vintage=4.2bsd
12829else
12830
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832/* end confdefs.h. */
12833
12834 #include <signal.h>
12835 RETSIGTYPE foo() { }
12836int
12837main ()
12838{
12839
12840 int mask = sigmask(SIGINT);
12841 sigset(SIGINT, foo); sigrelse(SIGINT);
12842 sighold(SIGINT); sigpause(SIGINT);
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848if ac_fn_c_try_link "$LINENO"; then :
12849 bash_cv_signal_vintage=svr3
12850else
12851 bash_cv_signal_vintage=v7
12852
12853fi
12854rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12856
12857fi
12858rm -f core conftest.err conftest.$ac_objext \
12859 conftest$ac_exeext conftest.$ac_ext
12860
12861fi
12862rm -f core conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864
12865fi
12866
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
12868$as_echo "$bash_cv_signal_vintage" >&6; }
12869if test "$bash_cv_signal_vintage" = posix; then
12870$as_echo "@%:@define HAVE_POSIX_SIGNALS 1" >>confdefs.h
12871
12872elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12873$as_echo "@%:@define HAVE_BSD_SIGNALS 1" >>confdefs.h
12874
12875elif test "$bash_cv_signal_vintage" = svr3; then
12876$as_echo "@%:@define HAVE_USG_SIGHOLD 1" >>confdefs.h
12877
12878fi
12879
12880
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
12882$as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
12883if ${bash_cv_sys_errlist+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885else
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887/* end confdefs.h. */
12888#include <errno.h>
12889int
12890main ()
12891{
12892extern char *sys_errlist[];
12893 extern int sys_nerr;
12894 char *msg = sys_errlist[sys_nerr - 1];
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899if ac_fn_c_try_link "$LINENO"; then :
12900 bash_cv_sys_errlist=yes
12901else
12902 bash_cv_sys_errlist=no
12903fi
12904rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906fi
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
12908$as_echo "$bash_cv_sys_errlist" >&6; }
12909if test $bash_cv_sys_errlist = yes; then
12910$as_echo "@%:@define HAVE_SYS_ERRLIST 1" >>confdefs.h
12911
12912fi
12913
12914
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
12916$as_echo_n "checking for sys_siglist in system C library... " >&6; }
12917if ${bash_cv_sys_siglist+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919else
12920 if test "$cross_compiling" = yes; then :
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
12922$as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
12923 bash_cv_sys_siglist=no
12924else
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926/* end confdefs.h. */
12927
12928#include <sys/types.h>
12929#include <signal.h>
12930#ifdef HAVE_UNISTD_H
12931#include <unistd.h>
12932#endif
12933#if !HAVE_DECL_SYS_SIGLIST
12934extern char *sys_siglist[];
12935#endif
12936main()
12937{
12938char *msg = sys_siglist[2];
12939exit(msg == 0);
12940}
12941_ACEOF
12942if ac_fn_c_try_run "$LINENO"; then :
12943 bash_cv_sys_siglist=yes
12944else
12945 bash_cv_sys_siglist=no
12946fi
12947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12948 conftest.$ac_objext conftest.beam conftest.$ac_ext
12949fi
12950
12951fi
12952
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
12954$as_echo "$bash_cv_sys_siglist" >&6; }
12955if test $bash_cv_sys_siglist = yes; then
12956$as_echo "@%:@define HAVE_SYS_SIGLIST 1" >>confdefs.h
12957
12958fi
12959
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
12961$as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
12962if ${bash_cv_decl_under_sys_siglist+:} false; then :
12963 $as_echo_n "(cached) " >&6
12964else
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966/* end confdefs.h. */
12967
12968#include <sys/types.h>
12969#include <signal.h>
12970#ifdef HAVE_UNISTD_H
12971#include <unistd.h>
12972#endif
12973int
12974main ()
12975{
12976 char *msg = _sys_siglist[2];
12977 ;
12978 return 0;
12979}
12980_ACEOF
12981if ac_fn_c_try_compile "$LINENO"; then :
12982 bash_cv_decl_under_sys_siglist=yes
12983else
12984 bash_cv_decl_under_sys_siglist=no
12985fi
12986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
12989$as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
12990if test $bash_cv_decl_under_sys_siglist = yes; then
12991$as_echo "@%:@define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
12992
12993fi
12994
12995
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
12997$as_echo_n "checking for _sys_siglist in system C library... " >&6; }
12998if ${bash_cv_under_sys_siglist+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000else
13001 if test "$cross_compiling" = yes; then :
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
13003$as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
13004 bash_cv_under_sys_siglist=no
13005else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h. */
13008
13009#include <sys/types.h>
13010#include <signal.h>
13011#ifdef HAVE_UNISTD_H
13012#include <unistd.h>
13013#endif
13014#ifndef UNDER_SYS_SIGLIST_DECLARED
13015extern char *_sys_siglist[];
13016#endif
13017main()
13018{
13019char *msg = (char *)_sys_siglist[2];
13020exit(msg == 0);
13021}
13022_ACEOF
13023if ac_fn_c_try_run "$LINENO"; then :
13024 bash_cv_under_sys_siglist=yes
13025else
13026 bash_cv_under_sys_siglist=no
13027fi
13028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13029 conftest.$ac_objext conftest.beam conftest.$ac_ext
13030fi
13031
13032fi
13033
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
13035$as_echo "$bash_cv_under_sys_siglist" >&6; }
13036if test $bash_cv_under_sys_siglist = yes; then
13037$as_echo "@%:@define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
13038
13039fi
13040
13041
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
13043$as_echo_n "checking whether signal handlers are of type void... " >&6; }
13044if ${bash_cv_void_sighandler+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046else
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h. */
13049#include <sys/types.h>
13050#include <signal.h>
13051#ifdef signal
13052#undef signal
13053#endif
13054#ifdef __cplusplus
13055extern "C"
13056#endif
13057void (*signal ()) ();
13058int
13059main ()
13060{
13061int i;
13062 ;
13063 return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_compile "$LINENO"; then :
13067 bash_cv_void_sighandler=yes
13068else
13069 bash_cv_void_sighandler=no
13070fi
13071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072fi
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
13074$as_echo "$bash_cv_void_sighandler" >&6; }
13075if test $bash_cv_void_sighandler = yes; then
13076$as_echo "@%:@define VOID_SIGHANDLER 1" >>confdefs.h
13077
13078fi
13079
13080
13081
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13083$as_echo_n "checking for clock_t... " >&6; }
13084if ${bash_cv_type_clock_t+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086else
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088/* end confdefs.h. */
13089#include <sys/types.h>
13090#if STDC_HEADERS
13091#include <stdlib.h>
13092#include <stddef.h>
13093#endif
13094#if HAVE_INTTYPES_H
13095#include <inttypes.h>
13096#endif
13097#if HAVE_STDINT_H
13098#include <stdint.h>
13099#endif
13100#include <sys/times.h>
13101
13102_ACEOF
13103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13104 $EGREP "clock_t" >/dev/null 2>&1; then :
13105 bash_cv_type_clock_t=yes
13106else
13107 bash_cv_type_clock_t=no
13108fi
13109rm -f conftest*
13110
13111fi
13112
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
13114$as_echo "$bash_cv_type_clock_t" >&6; }
13115
13116if test $bash_cv_type_clock_t = no; then
13117 cat >>confdefs.h <<_ACEOF
13118@%:@define clock_t long
13119_ACEOF
13120
13121fi
13122
13123
13124
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
13126$as_echo_n "checking for sigset_t... " >&6; }
13127if ${bash_cv_type_sigset_t+:} false; then :
13128 $as_echo_n "(cached) " >&6
13129else
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h. */
13132#include <sys/types.h>
13133#if STDC_HEADERS
13134#include <stdlib.h>
13135#include <stddef.h>
13136#endif
13137#if HAVE_INTTYPES_H
13138#include <inttypes.h>
13139#endif
13140#if HAVE_STDINT_H
13141#include <stdint.h>
13142#endif
13143#include <signal.h>
13144
13145_ACEOF
13146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13147 $EGREP "sigset_t" >/dev/null 2>&1; then :
13148 bash_cv_type_sigset_t=yes
13149else
13150 bash_cv_type_sigset_t=no
13151fi
13152rm -f conftest*
13153
13154fi
13155
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
13157$as_echo "$bash_cv_type_sigset_t" >&6; }
13158
13159if test $bash_cv_type_sigset_t = no; then
13160 cat >>confdefs.h <<_ACEOF
13161@%:@define sigset_t int
13162_ACEOF
13163
13164fi
13165
13166
13167
73a146be
CR
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
13169$as_echo_n "checking for sig_atomic_t... " >&6; }
13170if ${bash_cv_type_sig_atomic_t+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172else
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174/* end confdefs.h. */
13175#include <sys/types.h>
13176#if STDC_HEADERS
13177#include <stdlib.h>
13178#include <stddef.h>
13179#endif
13180#if HAVE_INTTYPES_H
13181#include <inttypes.h>
13182#endif
13183#if HAVE_STDINT_H
13184#include <stdint.h>
13185#endif
13186#include <signal.h>
13187
13188_ACEOF
13189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13190 $EGREP "sig_atomic_t" >/dev/null 2>&1; then :
13191 bash_cv_type_sig_atomic_t=yes
13192else
13193 bash_cv_type_sig_atomic_t=no
13194fi
13195rm -f conftest*
13196
13197fi
13198
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
13200$as_echo "$bash_cv_type_sig_atomic_t" >&6; }
13201
13202if test $bash_cv_type_sig_atomic_t = no; then
13203 cat >>confdefs.h <<_ACEOF
13204@%:@define sig_atomic_t int
13205_ACEOF
13206
13207fi
13208
13209
13210
208fdb50
CR
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
13212$as_echo_n "checking for quad_t... " >&6; }
13213if ${bash_cv_type_quad_t+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215else
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217/* end confdefs.h. */
13218#include <sys/types.h>
13219#if STDC_HEADERS
13220#include <stdlib.h>
13221#include <stddef.h>
13222#endif
13223#if HAVE_INTTYPES_H
13224#include <inttypes.h>
13225#endif
13226#if HAVE_STDINT_H
13227#include <stdint.h>
13228#endif
13229
13230
13231_ACEOF
13232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13233 $EGREP "quad_t" >/dev/null 2>&1; then :
13234 bash_cv_type_quad_t=yes
13235else
13236 bash_cv_type_quad_t=no
13237fi
13238rm -f conftest*
13239
13240fi
13241
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5
13243$as_echo "$bash_cv_type_quad_t" >&6; }
13244if test $bash_cv_type_quad_t = yes; then
13245 $as_echo "@%:@define HAVE_QUAD_T 1" >>confdefs.h
13246
13247 fi
13248if test $bash_cv_type_quad_t = no; then
13249 cat >>confdefs.h <<_ACEOF
13250@%:@define quad_t long
13251_ACEOF
13252
13253fi
13254
13255
13256
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13258$as_echo_n "checking for intmax_t... " >&6; }
13259if ${bash_cv_type_intmax_t+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h. */
13264#include <sys/types.h>
13265#if STDC_HEADERS
13266#include <stdlib.h>
13267#include <stddef.h>
13268#endif
13269#if HAVE_INTTYPES_H
13270#include <inttypes.h>
13271#endif
13272#if HAVE_STDINT_H
13273#include <stdint.h>
13274#endif
13275
13276
13277_ACEOF
13278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13279 $EGREP "intmax_t" >/dev/null 2>&1; then :
13280 bash_cv_type_intmax_t=yes
13281else
13282 bash_cv_type_intmax_t=no
13283fi
13284rm -f conftest*
13285
13286fi
13287
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5
13289$as_echo "$bash_cv_type_intmax_t" >&6; }
13290
13291if test $bash_cv_type_intmax_t = no; then
13292 cat >>confdefs.h <<_ACEOF
13293@%:@define intmax_t $bash_cv_type_long_long
13294_ACEOF
13295
13296fi
13297
13298
13299
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
13301$as_echo_n "checking for uintmax_t... " >&6; }
13302if ${bash_cv_type_uintmax_t+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304else
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306/* end confdefs.h. */
13307#include <sys/types.h>
13308#if STDC_HEADERS
13309#include <stdlib.h>
13310#include <stddef.h>
13311#endif
13312#if HAVE_INTTYPES_H
13313#include <inttypes.h>
13314#endif
13315#if HAVE_STDINT_H
13316#include <stdint.h>
13317#endif
13318
13319
13320_ACEOF
13321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "uintmax_t" >/dev/null 2>&1; then :
13323 bash_cv_type_uintmax_t=yes
13324else
13325 bash_cv_type_uintmax_t=no
13326fi
13327rm -f conftest*
13328
13329fi
13330
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5
13332$as_echo "$bash_cv_type_uintmax_t" >&6; }
13333
13334if test $bash_cv_type_uintmax_t = no; then
13335 cat >>confdefs.h <<_ACEOF
13336@%:@define uintmax_t $bash_cv_type_unsigned_long_long
13337_ACEOF
13338
13339fi
13340
13341if test "$ac_cv_header_sys_socket_h" = "yes"; then
13342
13343
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13345$as_echo_n "checking for socklen_t... " >&6; }
13346if ${bash_cv_type_socklen_t+:} false; then :
13347 $as_echo_n "(cached) " >&6
13348else
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350/* end confdefs.h. */
13351#include <sys/types.h>
13352#if STDC_HEADERS
13353#include <stdlib.h>
13354#include <stddef.h>
13355#endif
13356#if HAVE_INTTYPES_H
13357#include <inttypes.h>
13358#endif
13359#if HAVE_STDINT_H
13360#include <stdint.h>
13361#endif
13362#include <sys/socket.h>
13363
13364_ACEOF
13365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13366 $EGREP "socklen_t" >/dev/null 2>&1; then :
13367 bash_cv_type_socklen_t=yes
13368else
13369 bash_cv_type_socklen_t=no
13370fi
13371rm -f conftest*
13372
13373fi
13374
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
13376$as_echo "$bash_cv_type_socklen_t" >&6; }
13377if test $bash_cv_type_socklen_t = yes; then
13378 $as_echo "@%:@define HAVE_SOCKLEN_T 1" >>confdefs.h
13379
13380 fi
13381if test $bash_cv_type_socklen_t = no; then
13382 cat >>confdefs.h <<_ACEOF
13383@%:@define socklen_t int
13384_ACEOF
13385
13386fi
13387
13388fi
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
13390$as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
13391if ${bash_cv_type_rlimit+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393else
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h. */
13396#include <sys/types.h>
13397#include <sys/resource.h>
13398int
13399main ()
13400{
13401rlim_t xxx;
13402 ;
13403 return 0;
13404}
13405_ACEOF
13406if ac_fn_c_try_compile "$LINENO"; then :
13407 bash_cv_type_rlimit=rlim_t
13408else
13409
13410if test "$cross_compiling" = yes; then :
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
13412$as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
13413 bash_cv_type_rlimit=long
13414else
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h. */
13417
13418#include <sys/types.h>
13419#include <sys/time.h>
13420#include <sys/resource.h>
13421main()
13422{
13423#ifdef HAVE_QUAD_T
13424 struct rlimit rl;
13425 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
13426 exit(0);
13427#endif
13428 exit(1);
13429}
13430_ACEOF
13431if ac_fn_c_try_run "$LINENO"; then :
13432 bash_cv_type_rlimit=quad_t
13433else
13434 bash_cv_type_rlimit=long
13435fi
13436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13437 conftest.$ac_objext conftest.beam conftest.$ac_ext
13438fi
13439
13440fi
13441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442
13443fi
13444
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
13446$as_echo "$bash_cv_type_rlimit" >&6; }
13447if test $bash_cv_type_rlimit = quad_t; then
13448$as_echo "@%:@define RLIMTYPE quad_t" >>confdefs.h
13449
13450elif test $bash_cv_type_rlimit = rlim_t; then
13451$as_echo "@%:@define RLIMTYPE rlim_t" >>confdefs.h
13452
13453fi
13454
13455
13456# The cast to long int works around a bug in the HP C Compiler
13457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13459# This bug is HP SR number 8606223364.
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
13461$as_echo_n "checking size of intmax_t... " >&6; }
13462if ${ac_cv_sizeof_intmax_t+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464else
13465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
13466
13467else
13468 if test "$ac_cv_type_intmax_t" = yes; then
13469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13471as_fn_error 77 "cannot compute sizeof (intmax_t)
13472See \`config.log' for more details" "$LINENO" 5; }
13473 else
13474 ac_cv_sizeof_intmax_t=0
13475 fi
13476fi
13477
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
13480$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
13481
13482
13483
13484cat >>confdefs.h <<_ACEOF
13485@%:@define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
13486_ACEOF
13487
13488
13489
13490
13491ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
13492#include <sys/types.h>
13493#include <termios.h>
13494
13495"
13496if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
13497 $as_echo "@%:@define TERMIOS_LDISC 1" >>confdefs.h
13498
13499fi
13500
13501
13502
13503ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
13504#include <sys/types.h>
13505#include <termio.h>
13506
13507"
13508if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
13509 $as_echo "@%:@define TERMIO_LDISC 1" >>confdefs.h
13510
13511fi
13512
13513
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
13516$as_echo_n "checking for struct dirent.d_ino... " >&6; }
13517if ${bash_cv_dirent_has_dino+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h. */
13522
13523#include <stdio.h>
13524#include <sys/types.h>
13525#ifdef HAVE_UNISTD_H
13526# include <unistd.h>
13527#endif /* HAVE_UNISTD_H */
13528#if defined(HAVE_DIRENT_H)
13529# include <dirent.h>
13530#else
13531# define dirent direct
13532# ifdef HAVE_SYS_NDIR_H
13533# include <sys/ndir.h>
13534# endif /* SYSNDIR */
13535# ifdef HAVE_SYS_DIR_H
13536# include <sys/dir.h>
13537# endif /* SYSDIR */
13538# ifdef HAVE_NDIR_H
13539# include <ndir.h>
13540# endif
13541#endif /* HAVE_DIRENT_H */
13542
13543int
13544main ()
13545{
13546
13547struct dirent d; int z; z = d.d_ino;
13548
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553if ac_fn_c_try_compile "$LINENO"; then :
13554 bash_cv_dirent_has_dino=yes
13555else
13556 bash_cv_dirent_has_dino=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559fi
13560
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
13562$as_echo "$bash_cv_dirent_has_dino" >&6; }
13563if test $bash_cv_dirent_has_dino = yes; then
13564$as_echo "@%:@define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
13565
13566fi
13567
13568
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
13570$as_echo_n "checking for struct dirent.d_fileno... " >&6; }
13571if ${bash_cv_dirent_has_d_fileno+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573else
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h. */
13576
13577#include <stdio.h>
13578#include <sys/types.h>
13579#ifdef HAVE_UNISTD_H
13580# include <unistd.h>
13581#endif /* HAVE_UNISTD_H */
13582#if defined(HAVE_DIRENT_H)
13583# include <dirent.h>
13584#else
13585# define dirent direct
13586# ifdef HAVE_SYS_NDIR_H
13587# include <sys/ndir.h>
13588# endif /* SYSNDIR */
13589# ifdef HAVE_SYS_DIR_H
13590# include <sys/dir.h>
13591# endif /* SYSDIR */
13592# ifdef HAVE_NDIR_H
13593# include <ndir.h>
13594# endif
13595#endif /* HAVE_DIRENT_H */
13596
13597int
13598main ()
13599{
13600
13601struct dirent d; int z; z = d.d_fileno;
13602
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607if ac_fn_c_try_compile "$LINENO"; then :
13608 bash_cv_dirent_has_d_fileno=yes
13609else
13610 bash_cv_dirent_has_d_fileno=no
13611fi
13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613fi
13614
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
13616$as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
13617if test $bash_cv_dirent_has_d_fileno = yes; then
13618$as_echo "@%:@define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
13619
13620fi
13621
13622
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
13624$as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13625if ${bash_cv_dirent_has_d_namlen+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627else
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629/* end confdefs.h. */
13630
13631#include <stdio.h>
13632#include <sys/types.h>
13633#ifdef HAVE_UNISTD_H
13634# include <unistd.h>
13635#endif /* HAVE_UNISTD_H */
13636#if defined(HAVE_DIRENT_H)
13637# include <dirent.h>
13638#else
13639# define dirent direct
13640# ifdef HAVE_SYS_NDIR_H
13641# include <sys/ndir.h>
13642# endif /* SYSNDIR */
13643# ifdef HAVE_SYS_DIR_H
13644# include <sys/dir.h>
13645# endif /* SYSDIR */
13646# ifdef HAVE_NDIR_H
13647# include <ndir.h>
13648# endif
13649#endif /* HAVE_DIRENT_H */
13650
13651int
13652main ()
13653{
13654
13655struct dirent d; int z; z = d.d_namlen;
13656
13657 ;
13658 return 0;
13659}
13660_ACEOF
13661if ac_fn_c_try_compile "$LINENO"; then :
13662 bash_cv_dirent_has_d_namlen=yes
13663else
13664 bash_cv_dirent_has_d_namlen=no
13665fi
13666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667fi
13668
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
13670$as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
13671if test $bash_cv_dirent_has_d_namlen = yes; then
13672$as_echo "@%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
13673
13674fi
13675
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13677$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
13678if ${bash_cv_struct_winsize_header+:} false; then :
13679 $as_echo_n "(cached) " >&6
13680else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682/* end confdefs.h. */
13683#include <sys/types.h>
13684#include <sys/ioctl.h>
13685int
13686main ()
13687{
13688struct winsize x;
13689 ;
13690 return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_compile "$LINENO"; then :
13694 bash_cv_struct_winsize_header=ioctl_h
13695else
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697/* end confdefs.h. */
13698#include <sys/types.h>
13699#include <termios.h>
13700int
13701main ()
13702{
13703struct winsize x;
13704 ;
13705 return 0;
13706}
13707_ACEOF
13708if ac_fn_c_try_compile "$LINENO"; then :
13709 bash_cv_struct_winsize_header=termios_h
13710else
13711 bash_cv_struct_winsize_header=other
13712fi
13713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714
13715fi
13716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717fi
13718
13719if test $bash_cv_struct_winsize_header = ioctl_h; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
13721$as_echo "sys/ioctl.h" >&6; }
13722 $as_echo "@%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
13723
13724elif test $bash_cv_struct_winsize_header = termios_h; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
13726$as_echo "termios.h" >&6; }
13727 $as_echo "@%:@define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
13728
13729else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13731$as_echo "not found" >&6; }
13732fi
13733
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
13735$as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
13736if ${bash_cv_struct_timeval+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738else
13739
13740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h. */
13742#include <sys/time.h>
13743
13744_ACEOF
13745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13746 $EGREP "struct timeval" >/dev/null 2>&1; then :
13747 bash_cv_struct_timeval=yes
13748else
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750/* end confdefs.h. */
13751#include <time.h>
13752
13753_ACEOF
13754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13755 $EGREP "struct timeval" >/dev/null 2>&1; then :
13756 bash_cv_struct_timeval=yes
13757else
13758 bash_cv_struct_timeval=no
13759fi
13760rm -f conftest*
13761
13762fi
13763rm -f conftest*
13764
13765
13766fi
13767
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
13769$as_echo "$bash_cv_struct_timeval" >&6; }
13770if test $bash_cv_struct_timeval = yes; then
13771 $as_echo "@%:@define HAVE_TIMEVAL 1" >>confdefs.h
13772
13773fi
13774
13775ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13776if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13777
13778cat >>confdefs.h <<_ACEOF
13779@%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
13780_ACEOF
13781
13782
13783fi
13784
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13786$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13787if ${ac_cv_struct_tm+:} false; then :
13788 $as_echo_n "(cached) " >&6
13789else
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791/* end confdefs.h. */
13792#include <sys/types.h>
13793#include <time.h>
13794
13795int
13796main ()
13797{
13798struct tm tm;
13799 int *p = &tm.tm_sec;
13800 return !p;
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805if ac_fn_c_try_compile "$LINENO"; then :
13806 ac_cv_struct_tm=time.h
13807else
13808 ac_cv_struct_tm=sys/time.h
13809fi
13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811fi
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13813$as_echo "$ac_cv_struct_tm" >&6; }
13814if test $ac_cv_struct_tm = sys/time.h; then
13815
13816$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
13817
13818fi
13819
13820ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13821#include <$ac_cv_struct_tm>
13822
13823"
13824if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13825
13826cat >>confdefs.h <<_ACEOF
13827@%:@define HAVE_STRUCT_TM_TM_ZONE 1
13828_ACEOF
13829
13830
13831fi
13832
13833if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13834
13835$as_echo "@%:@define HAVE_TM_ZONE 1" >>confdefs.h
13836
13837else
13838 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13839"
13840if test "x$ac_cv_have_decl_tzname" = xyes; then :
13841 ac_have_decl=1
13842else
13843 ac_have_decl=0
13844fi
13845
13846cat >>confdefs.h <<_ACEOF
13847@%:@define HAVE_DECL_TZNAME $ac_have_decl
13848_ACEOF
13849
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13851$as_echo_n "checking for tzname... " >&6; }
13852if ${ac_cv_var_tzname+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854else
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h. */
13857#include <time.h>
13858#if !HAVE_DECL_TZNAME
13859extern char *tzname[];
13860#endif
13861
13862int
13863main ()
13864{
13865return tzname[0][0];
13866 ;
13867 return 0;
13868}
13869_ACEOF
13870if ac_fn_c_try_link "$LINENO"; then :
13871 ac_cv_var_tzname=yes
13872else
13873 ac_cv_var_tzname=no
13874fi
13875rm -f core conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext conftest.$ac_ext
13877fi
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13879$as_echo "$ac_cv_var_tzname" >&6; }
13880 if test $ac_cv_var_tzname = yes; then
13881
13882$as_echo "@%:@define HAVE_TZNAME 1" >>confdefs.h
13883
13884 fi
13885fi
13886
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
13888$as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
13889if ${bash_cv_struct_timezone+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891else
13892
13893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894/* end confdefs.h. */
13895#include <sys/time.h>
13896
13897_ACEOF
13898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13899 $EGREP "struct timezone" >/dev/null 2>&1; then :
13900 bash_cv_struct_timezone=yes
13901else
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903/* end confdefs.h. */
13904#include <time.h>
13905
13906_ACEOF
13907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13908 $EGREP "struct timezone" >/dev/null 2>&1; then :
13909 bash_cv_struct_timezone=yes
13910else
13911 bash_cv_struct_timezone=no
13912fi
13913rm -f conftest*
13914
13915fi
13916rm -f conftest*
13917
13918
13919fi
13920
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
13922$as_echo "$bash_cv_struct_timezone" >&6; }
13923if test $bash_cv_struct_timezone = yes; then
13924 $as_echo "@%:@define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
13925
13926fi
13927
13928
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
13930$as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
13931if ${bash_cv_wexitstatus_offset+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933else
13934 if test "$cross_compiling" = yes; then :
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
13936$as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
13937 bash_cv_wexitstatus_offset=0
13938
13939else
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941/* end confdefs.h. */
13942
13943#include <stdlib.h>
13944#include <unistd.h>
13945
13946#include <sys/wait.h>
13947
13948main(c, v)
13949 int c;
13950 char **v;
13951{
13952 pid_t pid, p;
13953 int s, i, n;
13954
13955 s = 0;
13956 pid = fork();
13957 if (pid == 0)
13958 exit (42);
13959
13960 /* wait for the process */
13961 p = wait(&s);
13962 if (p != pid)
13963 exit (255);
13964
13965 /* crack s */
13966 for (i = 0; i < (sizeof(s) - 8); i++)
13967 {
13968 n = (s >> i) & 0xff;
13969 if (n == 42)
13970 exit (i);
13971 }
13972
13973 exit (254);
13974}
13975
13976_ACEOF
13977if ac_fn_c_try_run "$LINENO"; then :
13978 bash_cv_wexitstatus_offset=0
13979else
13980 bash_cv_wexitstatus_offset=$?
13981fi
13982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13983 conftest.$ac_objext conftest.beam conftest.$ac_ext
13984fi
13985
13986fi
13987
13988if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
13990$as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
13991 bash_cv_wexitstatus_offset=0
13992fi
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
13994$as_echo "$bash_cv_wexitstatus_offset" >&6; }
13995
13996cat >>confdefs.h <<_ACEOF
13997@%:@define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
13998_ACEOF
13999
14000
14001
14002
14003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14005$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14006if ${bash_cv_sys_struct_timespec_in_time_h+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008else
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010/* end confdefs.h. */
14011#include <time.h>
14012
14013int
14014main ()
14015{
14016static struct timespec x; x.tv_sec = x.tv_nsec;
14017 ;
14018 return 0;
14019}
14020_ACEOF
14021if ac_fn_c_try_compile "$LINENO"; then :
14022 bash_cv_sys_struct_timespec_in_time_h=yes
14023else
14024 bash_cv_sys_struct_timespec_in_time_h=no
14025fi
14026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027fi
14028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
14029$as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
14030
14031 HAVE_STRUCT_TIMESPEC=0
14032 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14033 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14034 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14035 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
14036 $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14037
14038 $as_echo "@%:@define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14039
14040 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14043$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14044if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14045 $as_echo_n "(cached) " >&6
14046else
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048/* end confdefs.h. */
14049#include <sys/time.h>
14050
14051int
14052main ()
14053{
14054static struct timespec x; x.tv_sec = x.tv_nsec;
14055 ;
14056 return 0;
14057}
14058_ACEOF
14059if ac_fn_c_try_compile "$LINENO"; then :
14060 bash_cv_sys_struct_timespec_in_sys_time_h=yes
14061else
14062 bash_cv_sys_struct_timespec_in_sys_time_h=no
14063fi
14064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065fi
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
14067$as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14068 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
14069 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14070 $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14071
14072 $as_echo "@%:@define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14073
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14076$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14077if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079else
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081/* end confdefs.h. */
14082#include <pthread.h>
14083
14084int
14085main ()
14086{
14087static struct timespec x; x.tv_sec = x.tv_nsec;
14088 ;
14089 return 0;
14090}
14091_ACEOF
14092if ac_fn_c_try_compile "$LINENO"; then :
14093 bash_cv_sys_struct_timespec_in_pthread_h=yes
14094else
14095 bash_cv_sys_struct_timespec_in_pthread_h=no
14096fi
14097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098fi
14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
14100$as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
14101 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
14102 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14103 $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14104
14105 $as_echo "@%:@define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14106
14107 fi
14108 fi
14109 fi
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14120 #include <sys/stat.h>
14121"
14122if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
14123
14124cat >>confdefs.h <<_ACEOF
14125@%:@define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14126_ACEOF
14127
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14129$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14130if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132else
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134/* end confdefs.h. */
14135
14136 #include <sys/types.h>
14137 #include <sys/stat.h>
14138 #if HAVE_SYS_TIME_H
14139 # include <sys/time.h>
14140 #endif
14141 #include <time.h>
14142 struct timespec ts;
14143 struct stat st;
14144
14145int
14146main ()
14147{
14148
14149 st.st_atim = ts;
14150
14151 ;
14152 return 0;
14153}
14154_ACEOF
14155if ac_fn_c_try_compile "$LINENO"; then :
14156 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14157else
14158 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14159fi
14160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161fi
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14163$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14164 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14165
14166$as_echo "@%:@define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14167
14168 fi
14169else
14170 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14171 #include <sys/stat.h>
14172"
14173if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
14174
14175cat >>confdefs.h <<_ACEOF
14176@%:@define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14177_ACEOF
14178
14179
14180else
14181 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14182 #include <sys/stat.h>
14183"
14184if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
14185
14186cat >>confdefs.h <<_ACEOF
14187@%:@define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14188_ACEOF
14189
14190
14191else
14192 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14193 #include <sys/stat.h>
14194"
14195if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
14196
14197cat >>confdefs.h <<_ACEOF
14198@%:@define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14199_ACEOF
14200
14201
14202fi
14203
14204fi
14205
14206fi
14207
14208fi
14209
14210
14211
14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
14213$as_echo_n "checking for the existence of strsignal... " >&6; }
14214if ${bash_cv_have_strsignal+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216else
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218/* end confdefs.h. */
14219#include <sys/types.h>
14220#include <signal.h>
14221int
14222main ()
14223{
14224char *s = (char *)strsignal(2);
14225 ;
14226 return 0;
14227}
14228_ACEOF
14229if ac_fn_c_try_link "$LINENO"; then :
14230 bash_cv_have_strsignal=yes
14231else
14232 bash_cv_have_strsignal=no
14233fi
14234rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236fi
14237
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
14239$as_echo "$bash_cv_have_strsignal" >&6; }
14240if test $bash_cv_have_strsignal = yes; then
14241$as_echo "@%:@define HAVE_STRSIGNAL 1" >>confdefs.h
14242
14243fi
14244
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
14246$as_echo_n "checking if opendir() opens non-directories... " >&6; }
14247if ${bash_cv_opendir_not_robust+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249else
14250 if test "$cross_compiling" = yes; then :
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
14252$as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
14253 bash_cv_opendir_not_robust=no
14254
14255else
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h. */
14258
14259#include <stdio.h>
14260#include <sys/types.h>
14261#include <fcntl.h>
14262#ifdef HAVE_UNISTD_H
14263# include <unistd.h>
14264#endif /* HAVE_UNISTD_H */
14265#if defined(HAVE_DIRENT_H)
14266# include <dirent.h>
14267#else
14268# define dirent direct
14269# ifdef HAVE_SYS_NDIR_H
14270# include <sys/ndir.h>
14271# endif /* SYSNDIR */
14272# ifdef HAVE_SYS_DIR_H
14273# include <sys/dir.h>
14274# endif /* SYSDIR */
14275# ifdef HAVE_NDIR_H
14276# include <ndir.h>
14277# endif
14278#endif /* HAVE_DIRENT_H */
14279main()
14280{
14281DIR *dir;
14282int fd, err;
14283err = mkdir("bash-aclocal", 0700);
14284if (err < 0) {
14285 perror("mkdir");
14286 exit(1);
14287}
14288unlink("bash-aclocal/not_a_directory");
14289fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
14290write(fd, "\n", 1);
14291close(fd);
14292dir = opendir("bash-aclocal/not_a_directory");
14293unlink("bash-aclocal/not_a_directory");
14294rmdir("bash-aclocal");
14295exit (dir == 0);
14296}
14297_ACEOF
14298if ac_fn_c_try_run "$LINENO"; then :
14299 bash_cv_opendir_not_robust=yes
14300else
14301 bash_cv_opendir_not_robust=no
14302fi
14303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14304 conftest.$ac_objext conftest.beam conftest.$ac_ext
14305fi
14306
14307fi
14308
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
14310$as_echo "$bash_cv_opendir_not_robust" >&6; }
14311if test $bash_cv_opendir_not_robust = yes; then
14312$as_echo "@%:@define OPENDIR_NOT_ROBUST 1" >>confdefs.h
14313
14314fi
14315
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
14317$as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
14318if ${bash_cv_ulimit_maxfds+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320else
14321 if test "$cross_compiling" = yes; then :
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
14323$as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
14324 bash_cv_ulimit_maxfds=no
14325
14326else
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h. */
14329
14330main()
14331{
14332long maxfds = ulimit(4, 0L);
14333exit (maxfds == -1L);
14334}
14335
14336_ACEOF
14337if ac_fn_c_try_run "$LINENO"; then :
14338 bash_cv_ulimit_maxfds=yes
14339else
14340 bash_cv_ulimit_maxfds=no
14341fi
14342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14343 conftest.$ac_objext conftest.beam conftest.$ac_ext
14344fi
14345
14346fi
14347
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
14349$as_echo "$bash_cv_ulimit_maxfds" >&6; }
14350if test $bash_cv_ulimit_maxfds = yes; then
14351$as_echo "@%:@define ULIMIT_MAXFDS 1" >>confdefs.h
14352
14353fi
14354
14355
14356
14357
14358
14359
14360
14361
14362 ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
14363"
14364if test "x$ac_cv_have_decl_fpurge" = xyes; then :
14365 ac_have_decl=1
14366else
14367 ac_have_decl=0
14368fi
14369
14370cat >>confdefs.h <<_ACEOF
14371@%:@define HAVE_DECL_FPURGE $ac_have_decl
14372_ACEOF
14373
14374
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
14376$as_echo_n "checking to see if getenv can be redefined... " >&6; }
14377if ${bash_cv_getenv_redef+:} false; then :
14378 $as_echo_n "(cached) " >&6
14379else
14380 if test "$cross_compiling" = yes; then :
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
14382$as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
14383 bash_cv_getenv_redef=yes
14384
14385else
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387/* end confdefs.h. */
14388
14389#ifdef HAVE_UNISTD_H
14390# include <unistd.h>
14391#endif
14392#ifndef __STDC__
14393# ifndef const
14394# define const
14395# endif
14396#endif
14397char *
14398getenv (name)
14399#if defined (__linux__) || defined (__bsdi__) || defined (convex)
14400 const char *name;
14401#else
14402 char const *name;
14403#endif /* !__linux__ && !__bsdi__ && !convex */
14404{
14405return "42";
14406}
14407main()
14408{
14409char *s;
14410/* The next allows this program to run, but does not allow bash to link
14411 when it redefines getenv. I'm not really interested in figuring out
14412 why not. */
14413#if defined (NeXT)
14414exit(1);
14415#endif
14416s = getenv("ABCDE");
14417exit(s == 0); /* force optimizer to leave getenv in */
14418}
14419
14420_ACEOF
14421if ac_fn_c_try_run "$LINENO"; then :
14422 bash_cv_getenv_redef=yes
14423else
14424 bash_cv_getenv_redef=no
14425fi
14426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14427 conftest.$ac_objext conftest.beam conftest.$ac_ext
14428fi
14429
14430fi
14431
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
14433$as_echo "$bash_cv_getenv_redef" >&6; }
14434if test $bash_cv_getenv_redef = yes; then
14435$as_echo "@%:@define CAN_REDEFINE_GETENV 1" >>confdefs.h
14436
14437fi
14438
14439if test "$ac_cv_func_getcwd" = "yes"; then
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
14441$as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
14442if ${bash_cv_getcwd_malloc+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444else
14445 if test "$cross_compiling" = yes; then :
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
14447$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
14448 bash_cv_getcwd_malloc=no
14449
14450else
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h. */
14453
14454#include <stdio.h>
14455#ifdef HAVE_UNISTD_H
14456#include <unistd.h>
14457#endif
14458
14459main()
14460{
14461 char *xpwd;
14462 xpwd = getcwd(0, 0);
14463 exit (xpwd == 0);
14464}
14465
14466_ACEOF
14467if ac_fn_c_try_run "$LINENO"; then :
14468 bash_cv_getcwd_malloc=yes
14469else
14470 bash_cv_getcwd_malloc=no
14471fi
14472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14473 conftest.$ac_objext conftest.beam conftest.$ac_ext
14474fi
14475
14476fi
14477
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
14479$as_echo "$bash_cv_getcwd_malloc" >&6; }
14480if test $bash_cv_getcwd_malloc = no; then
14481$as_echo "@%:@define GETCWD_BROKEN 1" >>confdefs.h
14482
14483case " $LIB@&t@OBJS " in
14484 *" getcwd.$ac_objext "* ) ;;
14485 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
14486 ;;
14487esac
14488
14489fi
14490
14491fi
14492
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
14494$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
14495if ${bash_cv_func_sigsetjmp+:} false; then :
14496 $as_echo_n "(cached) " >&6
14497else
14498 if test "$cross_compiling" = yes; then :
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
14500$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
14501 bash_cv_func_sigsetjmp=missing
14502
14503else
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505/* end confdefs.h. */
14506
14507#ifdef HAVE_UNISTD_H
14508#include <unistd.h>
14509#endif
14510#include <sys/types.h>
14511#include <signal.h>
14512#include <setjmp.h>
14513
14514main()
14515{
14516#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
14517exit (1);
14518#else
14519
14520int code;
14521sigset_t set, oset;
14522sigjmp_buf xx;
14523
14524/* get the mask */
14525sigemptyset(&set);
14526sigemptyset(&oset);
14527sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
14528sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
14529
14530/* save it */
14531code = sigsetjmp(xx, 1);
14532if (code)
14533 exit(0); /* could get sigmask and compare to oset here. */
14534
14535/* change it */
14536sigaddset(&set, SIGINT);
14537sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
14538
14539/* and siglongjmp */
14540siglongjmp(xx, 10);
14541exit(1);
14542#endif
14543}
14544_ACEOF
14545if ac_fn_c_try_run "$LINENO"; then :
14546 bash_cv_func_sigsetjmp=present
14547else
14548 bash_cv_func_sigsetjmp=missing
14549fi
14550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14551 conftest.$ac_objext conftest.beam conftest.$ac_ext
14552fi
14553
14554fi
14555
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
14557$as_echo "$bash_cv_func_sigsetjmp" >&6; }
14558if test $bash_cv_func_sigsetjmp = present; then
14559$as_echo "@%:@define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
14560
14561fi
14562
14563
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
14565$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
14566if ${bash_cv_func_strcoll_broken+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568else
14569 if test "$cross_compiling" = yes; then :
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
14571$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
14572 bash_cv_func_strcoll_broken=no
14573
14574else
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576/* end confdefs.h. */
14577
14578#include <stdio.h>
14579#if defined (HAVE_LOCALE_H)
14580#include <locale.h>
14581#endif
14582
14583main(c, v)
14584int c;
14585char *v[];
14586{
14587 int r1, r2;
14588 char *deflocale, *defcoll;
14589
14590#ifdef HAVE_SETLOCALE
14591 deflocale = setlocale(LC_ALL, "");
14592 defcoll = setlocale(LC_COLLATE, "");
14593#endif
14594
14595#ifdef HAVE_STRCOLL
14596 /* These two values are taken from tests/glob-test. */
14597 r1 = strcoll("abd", "aXd");
14598#else
14599 r1 = 0;
14600#endif
14601 r2 = strcmp("abd", "aXd");
14602
14603 /* These two should both be greater than 0. It is permissible for
14604 a system to return different values, as long as the sign is the
14605 same. */
14606
14607 /* Exit with 1 (failure) if these two values are both > 0, since
14608 this tests whether strcoll(3) is broken with respect to strcmp(3)
14609 in the default locale. */
14610 exit (r1 > 0 && r2 > 0);
14611}
14612
14613_ACEOF
14614if ac_fn_c_try_run "$LINENO"; then :
14615 bash_cv_func_strcoll_broken=yes
14616else
14617 bash_cv_func_strcoll_broken=no
14618fi
14619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14620 conftest.$ac_objext conftest.beam conftest.$ac_ext
14621fi
14622
14623fi
14624
14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
14626$as_echo "$bash_cv_func_strcoll_broken" >&6; }
14627if test $bash_cv_func_strcoll_broken = yes; then
14628$as_echo "@%:@define STRCOLL_BROKEN 1" >>confdefs.h
14629
14630fi
14631
14632
14633
14634
14635
14636 if test X$ac_cv_func_snprintf = Xyes; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
14638$as_echo_n "checking for standard-conformant snprintf... " >&6; }
14639if ${bash_cv_func_snprintf+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641else
14642 if test "$cross_compiling" = yes; then :
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
14644$as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
14645 bash_cv_func_snprintf=yes
14646
14647else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h. */
14650
14651#include <stdio.h>
14652
14653main()
14654{
14655 int n;
14656 n = snprintf (0, 0, "%s", "0123456");
14657 exit(n != 7);
14658}
14659
14660_ACEOF
14661if ac_fn_c_try_run "$LINENO"; then :
14662 bash_cv_func_snprintf=yes
14663else
14664 bash_cv_func_snprintf=no
14665fi
14666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14667 conftest.$ac_objext conftest.beam conftest.$ac_ext
14668fi
14669
14670fi
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
14672$as_echo "$bash_cv_func_snprintf" >&6; }
14673 if test $bash_cv_func_snprintf = no; then
14674 ac_cv_func_snprintf=no
14675 fi
14676 fi
14677 if test $ac_cv_func_snprintf = no; then
14678
14679$as_echo "@%:@define HAVE_SNPRINTF 0" >>confdefs.h
14680
14681 fi
14682
14683
14684
14685
14686
14687 if test X$ac_cv_func_vsnprintf = Xyes; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
14689$as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
14690if ${bash_cv_func_vsnprintf+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692else
14693 if test "$cross_compiling" = yes; then :
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
14695$as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
14696 bash_cv_func_vsnprintf=yes
14697
14698else
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h. */
14701
14702#if HAVE_STDARG_H
14703#include <stdarg.h>
14704#else
14705#include <varargs.h>
14706#endif
14707#include <stdio.h>
14708#include <stdlib.h>
14709
14710static int
14711#if HAVE_STDARG_H
14712foo(const char *fmt, ...)
14713#else
14714foo(format, va_alist)
14715 const char *format;
14716 va_dcl
14717#endif
14718{
14719 va_list args;
14720 int n;
14721
14722#if HAVE_STDARG_H
14723 va_start(args, fmt);
14724#else
14725 va_start(args);
14726#endif
14727 n = vsnprintf(0, 0, fmt, args);
14728 va_end (args);
14729 return n;
14730}
14731
14732main()
14733{
14734 int n;
14735 n = foo("%s", "0123456");
14736 exit(n != 7);
14737}
14738
14739_ACEOF
14740if ac_fn_c_try_run "$LINENO"; then :
14741 bash_cv_func_vsnprintf=yes
14742else
14743 bash_cv_func_vsnprintf=no
14744fi
14745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14746 conftest.$ac_objext conftest.beam conftest.$ac_ext
14747fi
14748
14749fi
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
14751$as_echo "$bash_cv_func_vsnprintf" >&6; }
14752 if test $bash_cv_func_vsnprintf = no; then
14753 ac_cv_func_vsnprintf=no
14754 fi
14755 fi
14756 if test $ac_cv_func_vsnprintf = no; then
14757
14758$as_echo "@%:@define HAVE_VSNPRINTF 0" >>confdefs.h
14759
14760 fi
14761
14762
14763
14764if test "$ac_cv_func_putenv" = "yes"; then
14765
14766
14767
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
14769$as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
14770if ${bash_cv_std_putenv+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772else
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774/* end confdefs.h. */
14775
14776#if STDC_HEADERS
14777#include <stdlib.h>
14778#include <stddef.h>
14779#endif
14780#ifndef __STDC__
14781# ifndef const
14782# define const
14783# endif
14784#endif
14785#ifdef PROTOTYPES
14786extern int putenv (char *);
14787#else
14788extern int putenv ();
14789#endif
14790
14791int
14792main ()
14793{
14794return (putenv == 0);
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799if ac_fn_c_try_link "$LINENO"; then :
14800 bash_cv_std_putenv=yes
14801else
14802 bash_cv_std_putenv=no
14803
14804fi
14805rm -f core conftest.err conftest.$ac_objext \
14806 conftest$ac_exeext conftest.$ac_ext
14807fi
14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
14809$as_echo "$bash_cv_std_putenv" >&6; }
14810if test $bash_cv_std_putenv = yes; then
14811$as_echo "@%:@define HAVE_STD_PUTENV 1" >>confdefs.h
14812
14813fi
14814
14815else
14816$as_echo "@%:@define HAVE_STD_PUTENV 1" >>confdefs.h
14817
14818fi
14819if test "$ac_cv_func_unsetenv" = "yes"; then
14820
14821
14822
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
14824$as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
14825if ${bash_cv_std_unsetenv+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827else
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829/* end confdefs.h. */
14830
14831#if STDC_HEADERS
14832#include <stdlib.h>
14833#include <stddef.h>
14834#endif
14835#ifndef __STDC__
14836# ifndef const
14837# define const
14838# endif
14839#endif
14840#ifdef PROTOTYPES
14841extern int unsetenv (const char *);
14842#else
14843extern int unsetenv ();
14844#endif
14845
14846int
14847main ()
14848{
14849return (unsetenv == 0);
14850 ;
14851 return 0;
14852}
14853_ACEOF
14854if ac_fn_c_try_link "$LINENO"; then :
14855 bash_cv_std_unsetenv=yes
14856else
14857 bash_cv_std_unsetenv=no
14858
14859fi
14860rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862fi
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
14864$as_echo "$bash_cv_std_unsetenv" >&6; }
14865if test $bash_cv_std_unsetenv = yes; then
14866$as_echo "@%:@define HAVE_STD_UNSETENV 1" >>confdefs.h
14867
14868fi
14869
14870else
14871$as_echo "@%:@define HAVE_STD_UNSETENV 1" >>confdefs.h
14872
14873fi
14874
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
14876$as_echo_n "checking for printf floating point output in hex notation... " >&6; }
14877if ${bash_cv_printf_a_format+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879else
14880 if test "$cross_compiling" = yes; then :
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
14882$as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
14883 bash_cv_printf_a_format=no
14884
14885else
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887/* end confdefs.h. */
14888
14889#include <stdio.h>
14890#include <string.h>
14891
14892int
14893main()
14894{
14895 double y = 0.0;
14896 char abuf[1024];
14897
14898 sprintf(abuf, "%A", y);
14899 exit(strchr(abuf, 'P') == (char *)0);
14900}
14901
14902_ACEOF
14903if ac_fn_c_try_run "$LINENO"; then :
14904 bash_cv_printf_a_format=yes
14905else
14906 bash_cv_printf_a_format=no
14907fi
14908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14909 conftest.$ac_objext conftest.beam conftest.$ac_ext
14910fi
14911
14912fi
14913
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
14915$as_echo "$bash_cv_printf_a_format" >&6; }
14916if test $bash_cv_printf_a_format = yes; then
14917$as_echo "@%:@define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
14918
14919fi
14920
14921
14922
14923
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
14925$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
14926if ${bash_cv_must_reinstall_sighandlers+:} false; then :
14927 $as_echo_n "(cached) " >&6
14928else
14929 if test "$cross_compiling" = yes; then :
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
14931$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
14932 bash_cv_must_reinstall_sighandlers=no
14933
14934else
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936/* end confdefs.h. */
14937
14938#include <signal.h>
14939#ifdef HAVE_UNISTD_H
14940#include <unistd.h>
14941#endif
14942
14943typedef RETSIGTYPE sigfunc();
14944
14945int nsigint;
14946
14947#ifdef HAVE_POSIX_SIGNALS
14948sigfunc *
14949set_signal_handler(sig, handler)
14950 int sig;
14951 sigfunc *handler;
14952{
14953 struct sigaction act, oact;
14954 act.sa_handler = handler;
14955 act.sa_flags = 0;
14956 sigemptyset (&act.sa_mask);
14957 sigemptyset (&oact.sa_mask);
14958 sigaction (sig, &act, &oact);
14959 return (oact.sa_handler);
14960}
14961#else
14962#define set_signal_handler(s, h) signal(s, h)
14963#endif
14964
14965RETSIGTYPE
14966sigint(s)
14967int s;
14968{
14969 nsigint++;
14970}
14971
14972main()
14973{
14974 nsigint = 0;
14975 set_signal_handler(SIGINT, sigint);
14976 kill((int)getpid(), SIGINT);
14977 kill((int)getpid(), SIGINT);
14978 exit(nsigint != 2);
14979}
14980
14981_ACEOF
14982if ac_fn_c_try_run "$LINENO"; then :
14983 bash_cv_must_reinstall_sighandlers=no
14984else
14985 bash_cv_must_reinstall_sighandlers=yes
14986fi
14987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14988 conftest.$ac_objext conftest.beam conftest.$ac_ext
14989fi
14990
14991fi
14992
14993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
14994$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
14995if test $bash_cv_must_reinstall_sighandlers = yes; then
14996$as_echo "@%:@define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
14997
14998fi
14999
15000
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
15002$as_echo_n "checking for presence of necessary job control definitions... " >&6; }
15003if ${bash_cv_job_control_missing+:} false; then :
15004 $as_echo_n "(cached) " >&6
15005else
15006 if test "$cross_compiling" = yes; then :
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
15008$as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
15009 bash_cv_job_control_missing=missing
15010
15011else
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h. */
15014
15015#include <sys/types.h>
15016#ifdef HAVE_SYS_WAIT_H
15017#include <sys/wait.h>
15018#endif
15019#ifdef HAVE_UNISTD_H
15020#include <unistd.h>
15021#endif
15022#include <signal.h>
15023
15024/* Add more tests in here as appropriate. */
15025main()
15026{
15027/* signal type */
15028#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
15029exit(1);
15030#endif
15031
15032/* signals and tty control. */
15033#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
15034exit (1);
15035#endif
15036
15037/* process control */
15038#if !defined (WNOHANG) || !defined (WUNTRACED)
15039exit(1);
15040#endif
15041
15042/* Posix systems have tcgetpgrp and waitpid. */
15043#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
15044exit(1);
15045#endif
15046
15047#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
15048exit(1);
15049#endif
15050
15051/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
15052#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
15053exit(1);
15054#endif
15055
15056exit(0);
15057}
15058_ACEOF
15059if ac_fn_c_try_run "$LINENO"; then :
15060 bash_cv_job_control_missing=present
15061else
15062 bash_cv_job_control_missing=missing
15063fi
15064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15065 conftest.$ac_objext conftest.beam conftest.$ac_ext
15066fi
15067
15068fi
15069
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
15071$as_echo "$bash_cv_job_control_missing" >&6; }
15072if test $bash_cv_job_control_missing = missing; then
15073$as_echo "@%:@define JOB_CONTROL_MISSING 1" >>confdefs.h
15074
15075fi
15076
15077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
15078$as_echo_n "checking for presence of named pipes... " >&6; }
15079if ${bash_cv_sys_named_pipes+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081else
15082 if test "$cross_compiling" = yes; then :
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
15084$as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
15085 bash_cv_sys_named_pipes=missing
15086
15087else
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089/* end confdefs.h. */
15090
15091#include <sys/types.h>
15092#include <sys/stat.h>
15093#ifdef HAVE_UNISTD_H
15094#include <unistd.h>
15095#endif
15096
15097/* Add more tests in here as appropriate. */
15098main()
15099{
15100int fd, err;
15101
15102#if defined (HAVE_MKFIFO)
15103exit (0);
15104#endif
15105
15106#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
15107exit (1);
15108#endif
15109
15110#if defined (NeXT)
15111exit (1);
15112#endif
15113err = mkdir("bash-aclocal", 0700);
15114if (err < 0) {
15115 perror ("mkdir");
15116 exit(1);
15117}
15118fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
15119if (fd == -1) {
15120 rmdir ("bash-aclocal");
15121 exit (1);
15122}
15123close(fd);
15124unlink ("bash-aclocal/sh-np-autoconf");
15125rmdir ("bash-aclocal");
15126exit(0);
15127}
15128_ACEOF
15129if ac_fn_c_try_run "$LINENO"; then :
15130 bash_cv_sys_named_pipes=present
15131else
15132 bash_cv_sys_named_pipes=missing
15133fi
15134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15135 conftest.$ac_objext conftest.beam conftest.$ac_ext
15136fi
15137
15138fi
15139
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
15141$as_echo "$bash_cv_sys_named_pipes" >&6; }
15142if test $bash_cv_sys_named_pipes = missing; then
15143$as_echo "@%:@define NAMED_PIPES_MISSING 1" >>confdefs.h
15144
15145fi
15146
15147
15148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15149$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15150if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
15151 $as_echo_n "(cached) " >&6
15152else
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h. */
15155#include <sys/types.h>
15156#include <termios.h>
15157#ifdef TIOCGWINSZ
15158 yes
15159#endif
15160
15161_ACEOF
15162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15163 $EGREP "yes" >/dev/null 2>&1; then :
15164 ac_cv_sys_tiocgwinsz_in_termios_h=yes
15165else
15166 ac_cv_sys_tiocgwinsz_in_termios_h=no
15167fi
15168rm -f conftest*
15169
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15172$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15173
15174if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15176$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15177if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179else
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181/* end confdefs.h. */
15182#include <sys/types.h>
15183#include <sys/ioctl.h>
15184#ifdef TIOCGWINSZ
15185 yes
15186#endif
15187
15188_ACEOF
15189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15190 $EGREP "yes" >/dev/null 2>&1; then :
15191 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
15192else
15193 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
15194fi
15195rm -f conftest*
15196
15197fi
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15199$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15200
15201 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15202
15203$as_echo "@%:@define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15204
15205 fi
15206fi
15207
15208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
15209$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
15210if ${bash_cv_tiocstat_in_ioctl+:} false; then :
15211 $as_echo_n "(cached) " >&6
15212else
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214/* end confdefs.h. */
15215#include <sys/types.h>
15216#include <sys/ioctl.h>
15217int
15218main ()
15219{
15220int x = TIOCSTAT;
15221 ;
15222 return 0;
15223}
15224_ACEOF
15225if ac_fn_c_try_compile "$LINENO"; then :
15226 bash_cv_tiocstat_in_ioctl=yes
15227else
15228 bash_cv_tiocstat_in_ioctl=no
15229fi
15230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15231fi
15232
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
15234$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
15235if test $bash_cv_tiocstat_in_ioctl = yes; then
15236$as_echo "@%:@define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
15237
15238fi
15239
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
15241$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
15242if ${bash_cv_fionread_in_ioctl+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244else
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246/* end confdefs.h. */
15247#include <sys/types.h>
15248#include <sys/ioctl.h>
15249int
15250main ()
15251{
15252int x = FIONREAD;
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257if ac_fn_c_try_compile "$LINENO"; then :
15258 bash_cv_fionread_in_ioctl=yes
15259else
15260 bash_cv_fionread_in_ioctl=no
15261fi
15262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263fi
15264
15265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
15266$as_echo "$bash_cv_fionread_in_ioctl" >&6; }
15267if test $bash_cv_fionread_in_ioctl = yes; then
15268$as_echo "@%:@define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
15269
15270fi
15271
15272
15273
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
15275$as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
15276if ${bash_cv_wcontinued_broken+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278else
15279 if test "$cross_compiling" = yes; then :
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
15281$as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
15282 bash_cv_wcontinued_broken=no
15283
15284else
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h. */
15287
15288#include <sys/types.h>
15289#include <sys/wait.h>
15290#include <unistd.h>
15291#include <errno.h>
15292
15293#ifndef errno
15294extern int errno;
15295#endif
15296main()
15297{
15298 int x;
15299
15300 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
15301 if (x == -1 && errno == EINVAL)
15302 exit (1);
15303 else
15304 exit (0);
15305}
15306
15307_ACEOF
15308if ac_fn_c_try_run "$LINENO"; then :
15309 bash_cv_wcontinued_broken=no
15310else
15311 bash_cv_wcontinued_broken=yes
15312fi
15313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15314 conftest.$ac_objext conftest.beam conftest.$ac_ext
15315fi
15316
15317fi
15318
15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
15320$as_echo "$bash_cv_wcontinued_broken" >&6; }
15321if test $bash_cv_wcontinued_broken = yes; then
15322$as_echo "@%:@define WCONTINUED_BROKEN 1" >>confdefs.h
15323
15324fi
15325
15326
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
15328$as_echo_n "checking for speed_t in sys/types.h... " >&6; }
15329if ${bash_cv_speed_t_in_sys_types+:} false; then :
15330 $as_echo_n "(cached) " >&6
15331else
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h. */
15334#include <sys/types.h>
15335int
15336main ()
15337{
15338speed_t x;
15339 ;
15340 return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_compile "$LINENO"; then :
15344 bash_cv_speed_t_in_sys_types=yes
15345else
15346 bash_cv_speed_t_in_sys_types=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349fi
15350
15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
15352$as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
15353if test $bash_cv_speed_t_in_sys_types = yes; then
15354$as_echo "@%:@define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
15355
15356fi
15357
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
15359$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
15360if ${bash_cv_getpw_declared+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362else
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364/* end confdefs.h. */
15365
15366#include <sys/types.h>
15367#ifdef HAVE_UNISTD_H
15368# include <unistd.h>
15369#endif
15370#include <pwd.h>
15371
15372_ACEOF
15373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15374 $EGREP "getpwuid" >/dev/null 2>&1; then :
15375 bash_cv_getpw_declared=yes
15376else
15377 bash_cv_getpw_declared=no
15378fi
15379rm -f conftest*
15380
15381fi
15382
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
15384$as_echo "$bash_cv_getpw_declared" >&6; }
15385if test $bash_cv_getpw_declared = yes; then
15386$as_echo "@%:@define HAVE_GETPW_DECLS 1" >>confdefs.h
15387
15388fi
15389
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
15391$as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
15392if ${bash_cv_unusable_rtsigs+:} false; then :
15393 $as_echo_n "(cached) " >&6
15394else
15395 if test "$cross_compiling" = yes; then :
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
15397$as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
15398 bash_cv_unusable_rtsigs=yes
15399
15400else
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402/* end confdefs.h. */
15403
15404#include <sys/types.h>
15405#include <signal.h>
15406
15407#ifndef NSIG
15408# define NSIG 64
15409#endif
15410
15411main ()
15412{
15413 int n_sigs = 2 * NSIG;
15414#ifdef SIGRTMIN
15415 int rtmin = SIGRTMIN;
15416#else
15417 int rtmin = 0;
15418#endif
15419
15420 exit(rtmin < n_sigs);
15421}
15422_ACEOF
15423if ac_fn_c_try_run "$LINENO"; then :
15424 bash_cv_unusable_rtsigs=yes
15425else
15426 bash_cv_unusable_rtsigs=no
15427fi
15428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15429 conftest.$ac_objext conftest.beam conftest.$ac_ext
15430fi
15431
15432fi
15433
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
15435$as_echo "$bash_cv_unusable_rtsigs" >&6; }
15436if test $bash_cv_unusable_rtsigs = yes; then
15437$as_echo "@%:@define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
15438
15439fi
15440
15441
15442
15443
15444
15445if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
15446 SIGLIST_O=siglist.o
15447else
15448 SIGLIST_O=
15449fi
15450
15451
15452
15453case "$host_os" in
15454hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
15455$as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
15456if ${bash_cv_kernel_rlimit+:} false; then :
15457 $as_echo_n "(cached) " >&6
15458else
15459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h. */
15461
15462#include <sys/types.h>
15463#include <sys/resource.h>
15464
15465int
15466main ()
15467{
15468
15469 int f;
15470 f = RLIMIT_DATA;
15471
15472 ;
15473 return 0;
15474}
15475_ACEOF
15476if ac_fn_c_try_compile "$LINENO"; then :
15477 bash_cv_kernel_rlimit=no
15478else
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480/* end confdefs.h. */
15481
15482#include <sys/types.h>
15483#define _KERNEL
15484#include <sys/resource.h>
15485#undef _KERNEL
15486
15487int
15488main ()
15489{
15490
15491 int f;
15492 f = RLIMIT_DATA;
15493
15494 ;
15495 return 0;
15496}
15497_ACEOF
15498if ac_fn_c_try_compile "$LINENO"; then :
15499 bash_cv_kernel_rlimit=yes
15500else
15501 bash_cv_kernel_rlimit=no
15502fi
15503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504
15505fi
15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507fi
15508
15509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
15510$as_echo "$bash_cv_kernel_rlimit" >&6; }
15511if test $bash_cv_kernel_rlimit = yes; then
15512$as_echo "@%:@define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
15513
15514fi
15515 ;;
15516esac
15517
15518if test "$opt_readline" = yes; then
15519case "$host_os" in
15520aix*) prefer_curses=yes ;;
15521esac
15522
15523if test "X$bash_cv_termcap_lib" = "X"; then
15524_bash_needmsg=yes
15525else
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15527$as_echo_n "checking which library has the termcap functions... " >&6; }
15528_bash_needmsg=
15529fi
15530if ${bash_cv_termcap_lib+:} false; then :
15531 $as_echo_n "(cached) " >&6
15532else
15533 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
15534if test "x$ac_cv_func_tgetent" = xyes; then :
15535 bash_cv_termcap_lib=libc
15536else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15538$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15539if ${ac_cv_lib_termcap_tgetent+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541else
15542 ac_check_lib_save_LIBS=$LIBS
15543LIBS="-ltermcap $LIBS"
15544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h. */
15546
15547/* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15550#ifdef __cplusplus
15551extern "C"
15552#endif
15553char tgetent ();
15554int
15555main ()
15556{
15557return tgetent ();
15558 ;
15559 return 0;
15560}
15561_ACEOF
15562if ac_fn_c_try_link "$LINENO"; then :
15563 ac_cv_lib_termcap_tgetent=yes
15564else
15565 ac_cv_lib_termcap_tgetent=no
15566fi
15567rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15569LIBS=$ac_check_lib_save_LIBS
15570fi
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15572$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
15573if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
15574 bash_cv_termcap_lib=libtermcap
15575else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15577$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15578if ${ac_cv_lib_tinfo_tgetent+:} false; then :
15579 $as_echo_n "(cached) " >&6
15580else
15581 ac_check_lib_save_LIBS=$LIBS
15582LIBS="-ltinfo $LIBS"
15583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h. */
15585
15586/* Override any GCC internal prototype to avoid an error.
15587 Use char because int might match the return type of a GCC
15588 builtin and then its argument prototype would still apply. */
15589#ifdef __cplusplus
15590extern "C"
15591#endif
15592char tgetent ();
15593int
15594main ()
15595{
15596return tgetent ();
15597 ;
15598 return 0;
15599}
15600_ACEOF
15601if ac_fn_c_try_link "$LINENO"; then :
15602 ac_cv_lib_tinfo_tgetent=yes
15603else
15604 ac_cv_lib_tinfo_tgetent=no
15605fi
15606rm -f core conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
15608LIBS=$ac_check_lib_save_LIBS
15609fi
15610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
15611$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
15612if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
15613 bash_cv_termcap_lib=libtinfo
15614else
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15616$as_echo_n "checking for tgetent in -lcurses... " >&6; }
15617if ${ac_cv_lib_curses_tgetent+:} false; then :
15618 $as_echo_n "(cached) " >&6
15619else
15620 ac_check_lib_save_LIBS=$LIBS
15621LIBS="-lcurses $LIBS"
15622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623/* end confdefs.h. */
15624
15625/* Override any GCC internal prototype to avoid an error.
15626 Use char because int might match the return type of a GCC
15627 builtin and then its argument prototype would still apply. */
15628#ifdef __cplusplus
15629extern "C"
15630#endif
15631char tgetent ();
15632int
15633main ()
15634{
15635return tgetent ();
15636 ;
15637 return 0;
15638}
15639_ACEOF
15640if ac_fn_c_try_link "$LINENO"; then :
15641 ac_cv_lib_curses_tgetent=yes
15642else
15643 ac_cv_lib_curses_tgetent=no
15644fi
15645rm -f core conftest.err conftest.$ac_objext \
15646 conftest$ac_exeext conftest.$ac_ext
15647LIBS=$ac_check_lib_save_LIBS
15648fi
15649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15650$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
15651if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
15652 bash_cv_termcap_lib=libcurses
15653else
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15655$as_echo_n "checking for tgetent in -lncurses... " >&6; }
15656if ${ac_cv_lib_ncurses_tgetent+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658else
15659 ac_check_lib_save_LIBS=$LIBS
15660LIBS="-lncurses $LIBS"
15661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662/* end confdefs.h. */
15663
15664/* Override any GCC internal prototype to avoid an error.
15665 Use char because int might match the return type of a GCC
15666 builtin and then its argument prototype would still apply. */
15667#ifdef __cplusplus
15668extern "C"
15669#endif
15670char tgetent ();
15671int
15672main ()
15673{
15674return tgetent ();
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679if ac_fn_c_try_link "$LINENO"; then :
15680 ac_cv_lib_ncurses_tgetent=yes
15681else
15682 ac_cv_lib_ncurses_tgetent=no
15683fi
15684rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686LIBS=$ac_check_lib_save_LIBS
15687fi
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15689$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
15690if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
15691 bash_cv_termcap_lib=libncurses
15692else
15693 bash_cv_termcap_lib=gnutermcap
15694fi
15695
15696fi
15697
15698fi
15699
15700fi
15701
15702fi
15703
15704fi
15705
15706if test "X$_bash_needmsg" = "Xyes"; then
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15708$as_echo_n "checking which library has the termcap functions... " >&6; }
15709fi
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
15711$as_echo "using $bash_cv_termcap_lib" >&6; }
15712if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
15713LDFLAGS="$LDFLAGS -L./lib/termcap"
15714TERMCAP_LIB="./lib/termcap/libtermcap.a"
15715TERMCAP_DEP="./lib/termcap/libtermcap.a"
15716elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
15717TERMCAP_LIB=-ltermcap
15718TERMCAP_DEP=
15719elif test $bash_cv_termcap_lib = libtinfo; then
15720TERMCAP_LIB=-ltinfo
15721TERMCAP_DEP=
15722elif test $bash_cv_termcap_lib = libncurses; then
15723TERMCAP_LIB=-lncurses
15724TERMCAP_DEP=
15725elif test $bash_cv_termcap_lib = libc; then
15726TERMCAP_LIB=
15727TERMCAP_DEP=
15728else
15729TERMCAP_LIB=-lcurses
15730TERMCAP_DEP=
15731fi
15732
15733fi
15734
15735
15736
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
15738$as_echo_n "checking whether /dev/fd is available... " >&6; }
15739if ${bash_cv_dev_fd+:} false; then :
15740 $as_echo_n "(cached) " >&6
15741else
15742 bash_cv_dev_fd=""
15743if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
15744# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
15745 if (exec test -r /dev/fd/3 3</dev/null) ; then
15746 bash_cv_dev_fd=standard
15747 else
15748 bash_cv_dev_fd=absent
15749 fi
15750fi
15751if test -z "$bash_cv_dev_fd" ; then
15752 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
15753 bash_cv_dev_fd=whacky
15754 else
15755 bash_cv_dev_fd=absent
15756 fi
15757fi
15758
15759fi
15760
15761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
15762$as_echo "$bash_cv_dev_fd" >&6; }
15763if test $bash_cv_dev_fd = "standard"; then
15764 $as_echo "@%:@define HAVE_DEV_FD 1" >>confdefs.h
15765
15766 $as_echo "@%:@define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
15767
15768elif test $bash_cv_dev_fd = "whacky"; then
15769 $as_echo "@%:@define HAVE_DEV_FD 1" >>confdefs.h
15770
15771 $as_echo "@%:@define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
15772
15773fi
15774
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
15776$as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
15777if ${bash_cv_dev_stdin+:} false; then :
15778 $as_echo_n "(cached) " >&6
15779else
15780 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
15781 bash_cv_dev_stdin=present
15782 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
15783 bash_cv_dev_stdin=present
15784 else
15785 bash_cv_dev_stdin=absent
15786 fi
15787
15788fi
15789
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
15791$as_echo "$bash_cv_dev_stdin" >&6; }
15792if test $bash_cv_dev_stdin = "present"; then
15793 $as_echo "@%:@define HAVE_DEV_STDIN 1" >>confdefs.h
15794
15795fi
15796
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
15798$as_echo_n "checking for default mail directory... " >&6; }
15799if ${bash_cv_mail_dir+:} false; then :
15800 $as_echo_n "(cached) " >&6
15801else
15802 if test -d /var/mail; then
15803 bash_cv_mail_dir=/var/mail
15804 elif test -d /var/spool/mail; then
15805 bash_cv_mail_dir=/var/spool/mail
15806 elif test -d /usr/mail; then
15807 bash_cv_mail_dir=/usr/mail
15808 elif test -d /usr/spool/mail; then
15809 bash_cv_mail_dir=/usr/spool/mail
15810 else
15811 bash_cv_mail_dir=unknown
15812 fi
15813
15814fi
15815
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
15817$as_echo "$bash_cv_mail_dir" >&6; }
15818cat >>confdefs.h <<_ACEOF
15819@%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
15820_ACEOF
15821
15822
15823
15824if test "$bash_cv_job_control_missing" = missing; then
15825 opt_job_control=no
15826fi
15827
15828if test "$opt_job_control" = yes; then
15829$as_echo "@%:@define JOB_CONTROL 1" >>confdefs.h
15830
15831JOBS_O=jobs.o
15832else
15833JOBS_O=nojobs.o
15834fi
15835
15836
15837
15838
15839LOCAL_DEFS=-DSHELL
15840
15841
15842case "${host_os}" in
15843sysv4.2*) $as_echo "@%:@define SVR4_2 1" >>confdefs.h
15844
15845 $as_echo "@%:@define SVR4 1" >>confdefs.h
15846 ;;
15847sysv4*) $as_echo "@%:@define SVR4 1" >>confdefs.h
15848 ;;
15849sysv5*) $as_echo "@%:@define SVR5 1" >>confdefs.h
15850 ;;
15851hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
15852hpux*) LOCAL_CFLAGS=-DHPUX ;;
15853dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
15854isc*) LOCAL_CFLAGS=-Disc386 ;;
15855rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
15856darwin*) LOCAL_CFLAGS=-DMACOSX ;;
15857sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
15858sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
15859sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
15860sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
15861solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
15862solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
15863solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
15864solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
15865solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
15866lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
15867linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
15868 case "`uname -r`" in
15869 2.[456789]*|3*) $as_echo "@%:@define PGRP_PIPE 1" >>confdefs.h
15870 ;;
15871 esac ;;
15872*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
15873*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
15874powerux*) LOCAL_LIBS="-lgen" ;;
15875cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
15876opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
10e78433 15877*openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;;
208fdb50
CR
15878esac
15879
15880case "${host_os}-${CC}" in
15881aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
15882aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
15883bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
15884esac
15885
15886case "${host_os}" in
15887freebsd[3-9]*)
15888 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
15889 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
15890 fi ;;
15891freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
15892dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
15893esac
15894
15895case "$host_cpu" in
15896*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
15897esac
15898
15899case "$host_cpu-$host_os" in
15900ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
15901esac
15902
15903case "$host_cpu-$host_vendor-$host_os" in
15904m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
15905mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
15906esac
15907
15908#
15909# Shared object configuration section. These values are generated by
15910# ${srcdir}/support/shobj-conf
15911#
15912if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
15913then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
15915$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
15916 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
15917
15918
15919
15920
15921
15922
15923
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
15925$as_echo "$SHOBJ_STATUS" >&6; }
15926fi
15927
15928# try to create a directory tree if the source is elsewhere
15929# this should be packaged into a script accessible via ${srcdir}/support
15930case "$srcdir" in
15931.) ;;
15932*) for d in doc tests support lib examples; do # dirs
15933 test -d $d || mkdir $d
15934 done
15935 for ld in readline glob tilde malloc sh termcap; do # libdirs
15936 test -d lib/$ld || mkdir lib/$ld
15937 done
15938 test -d examples/loadables || mkdir examples/loadables # loadable builtins
15939 test -d examples/loadables/perl || mkdir examples/loadables/perl
15940 ;;
15941esac
15942
15943BUILD_DIR=`pwd`
15944case "$BUILD_DIR" in
15945*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
15946*) ;;
15947esac
15948
15949if test -z "$localedir"; then
15950 localedir='${datarootdir}/locale'
15951fi
15952if test -z "$datarootdir"; then
15953 datarootdir='${prefix}/share'
15954fi
15955
15956
15957
15958
15959
15960
15961# Some versions of autoconf don't substitute these automatically
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983#AC_SUBST(ALLOCA_SOURCE)
15984#AC_SUBST(ALLOCA_OBJECT)
15985
15986ac_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"
15987
15988ac_config_commands="$ac_config_commands default"
15989
15990cat >confcache <<\_ACEOF
15991# This file is a shell script that caches the results of configure
15992# tests run on this system so they can be shared between configure
15993# scripts and configure runs, see configure's option --config-cache.
15994# It is not useful on other systems. If it contains results you don't
15995# want to keep, you may remove or edit it.
15996#
15997# config.status only pays attention to the cache file if you give it
15998# the --recheck option to rerun configure.
15999#
16000# `ac_cv_env_foo' variables (set or unset) will be overridden when
16001# loading this file, other *unset* `ac_cv_foo' will be assigned the
16002# following values.
16003
16004_ACEOF
16005
16006# The following way of writing the cache mishandles newlines in values,
16007# but we know of no workaround that is simple, portable, and efficient.
16008# So, we kill variables containing newlines.
16009# Ultrix sh set writes to stderr and can't be redirected directly,
16010# and sets the high bit in the cache file unless we assign to the vars.
16011(
16012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16013 eval ac_val=\$$ac_var
16014 case $ac_val in #(
16015 *${as_nl}*)
16016 case $ac_var in #(
16017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16018$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16019 esac
16020 case $ac_var in #(
16021 _ | IFS | as_nl) ;; #(
16022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16023 *) { eval $ac_var=; unset $ac_var;} ;;
16024 esac ;;
16025 esac
16026 done
16027
16028 (set) 2>&1 |
16029 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16030 *${as_nl}ac_space=\ *)
16031 # `set' does not quote correctly, so add quotes: double-quote
16032 # substitution turns \\\\ into \\, and sed turns \\ into \.
16033 sed -n \
16034 "s/'/'\\\\''/g;
16035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16036 ;; #(
16037 *)
16038 # `set' quotes correctly as required by POSIX, so do not add quotes.
16039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16040 ;;
16041 esac |
16042 sort
16043) |
16044 sed '
16045 /^ac_cv_env_/b end
16046 t clear
16047 :clear
16048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16049 t end
16050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16051 :end' >>confcache
16052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16053 if test -w "$cache_file"; then
16054 if test "x$cache_file" != "x/dev/null"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16056$as_echo "$as_me: updating cache $cache_file" >&6;}
16057 if test ! -f "$cache_file" || test -h "$cache_file"; then
16058 cat confcache >"$cache_file"
16059 else
16060 case $cache_file in #(
16061 */* | ?:*)
16062 mv -f confcache "$cache_file"$$ &&
16063 mv -f "$cache_file"$$ "$cache_file" ;; #(
16064 *)
16065 mv -f confcache "$cache_file" ;;
16066 esac
16067 fi
16068 fi
16069 else
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16071$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16072 fi
16073fi
16074rm -f confcache
16075
16076test "x$prefix" = xNONE && prefix=$ac_default_prefix
16077# Let make expand exec_prefix.
16078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16079
16080DEFS=-DHAVE_CONFIG_H
16081
16082ac_libobjs=
16083ac_ltlibobjs=
16084U=
16085for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
16086 # 1. Remove the extension, and $U if already installed.
16087 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16088 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16089 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16090 # will be set to the directory where LIBOBJS objects are built.
16091 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16092 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16093done
16094LIB@&t@OBJS=$ac_libobjs
16095
16096LTLIBOBJS=$ac_ltlibobjs
16097
16098
16099
16100
16101: "${CONFIG_STATUS=./config.status}"
16102ac_write_fail=0
16103ac_clean_files_save=$ac_clean_files
16104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16105{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16106$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16107as_write_fail=0
16108cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16109#! $SHELL
16110# Generated by $as_me.
16111# Run this file to recreate the current configuration.
16112# Compiler output produced by configure, useful for debugging
16113# configure, is in config.log if it exists.
16114
16115debug=false
16116ac_cs_recheck=false
16117ac_cs_silent=false
16118
16119SHELL=\${CONFIG_SHELL-$SHELL}
16120export SHELL
16121_ASEOF
16122cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16123## -------------------- ##
16124## M4sh Initialization. ##
16125## -------------------- ##
16126
16127# Be more Bourne compatible
16128DUALCASE=1; export DUALCASE # for MKS sh
16129if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16130 emulate sh
16131 NULLCMD=:
16132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16133 # is contrary to our usage. Disable this feature.
16134 alias -g '${1+"$@"}'='"$@"'
16135 setopt NO_GLOB_SUBST
16136else
16137 case `(set -o) 2>/dev/null` in @%:@(
16138 *posix*) :
16139 set -o posix ;; @%:@(
16140 *) :
16141 ;;
16142esac
16143fi
16144
16145
16146as_nl='
16147'
16148export as_nl
16149# Printing a long string crashes Solaris 7 /usr/bin/printf.
16150as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16152as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16153# Prefer a ksh shell builtin over an external printf program on Solaris,
16154# but without wasting forks for bash or zsh.
16155if test -z "$BASH_VERSION$ZSH_VERSION" \
16156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16157 as_echo='print -r --'
16158 as_echo_n='print -rn --'
16159elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16160 as_echo='printf %s\n'
16161 as_echo_n='printf %s'
16162else
16163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16165 as_echo_n='/usr/ucb/echo -n'
16166 else
16167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16168 as_echo_n_body='eval
16169 arg=$1;
16170 case $arg in @%:@(
16171 *"$as_nl"*)
16172 expr "X$arg" : "X\\(.*\\)$as_nl";
16173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16174 esac;
16175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16176 '
16177 export as_echo_n_body
16178 as_echo_n='sh -c $as_echo_n_body as_echo'
16179 fi
16180 export as_echo_body
16181 as_echo='sh -c $as_echo_body as_echo'
16182fi
16183
16184# The user is always right.
16185if test "${PATH_SEPARATOR+set}" != set; then
16186 PATH_SEPARATOR=:
16187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16189 PATH_SEPARATOR=';'
16190 }
16191fi
16192
16193
16194# IFS
16195# We need space, tab and new line, in precisely that order. Quoting is
16196# there to prevent editors from complaining about space-tab.
16197# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16198# splitting by setting IFS to empty value.)
16199IFS=" "" $as_nl"
16200
16201# Find who we are. Look in the path if we contain no directory separator.
16202as_myself=
16203case $0 in @%:@((
16204 *[\\/]* ) as_myself=$0 ;;
16205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206for as_dir in $PATH
16207do
16208 IFS=$as_save_IFS
16209 test -z "$as_dir" && as_dir=.
16210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16211 done
16212IFS=$as_save_IFS
16213
16214 ;;
16215esac
16216# We did not find ourselves, most probably we were run as `sh COMMAND'
16217# in which case we are not to be found in the path.
16218if test "x$as_myself" = x; then
16219 as_myself=$0
16220fi
16221if test ! -f "$as_myself"; then
16222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16223 exit 1
16224fi
16225
16226# Unset variables that we do not need and which cause bugs (e.g. in
16227# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16228# suppresses any "Segmentation fault" message there. '((' could
16229# trigger a bug in pdksh 5.2.14.
16230for as_var in BASH_ENV ENV MAIL MAILPATH
16231do eval test x\${$as_var+set} = xset \
16232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16233done
16234PS1='$ '
16235PS2='> '
16236PS4='+ '
16237
16238# NLS nuisances.
16239LC_ALL=C
16240export LC_ALL
16241LANGUAGE=C
16242export LANGUAGE
16243
16244# CDPATH.
16245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16246
16247
16248@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
16249@%:@ ----------------------------------------
16250@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16251@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16252@%:@ script with STATUS, using 1 if that was 0.
16253as_fn_error ()
16254{
16255 as_status=$1; test $as_status -eq 0 && as_status=1
16256 if test "$4"; then
16257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16259 fi
16260 $as_echo "$as_me: error: $2" >&2
16261 as_fn_exit $as_status
16262} @%:@ as_fn_error
16263
16264
16265@%:@ as_fn_set_status STATUS
16266@%:@ -----------------------
16267@%:@ Set @S|@? to STATUS, without forking.
16268as_fn_set_status ()
16269{
16270 return $1
16271} @%:@ as_fn_set_status
16272
16273@%:@ as_fn_exit STATUS
16274@%:@ -----------------
16275@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16276as_fn_exit ()
16277{
16278 set +e
16279 as_fn_set_status $1
16280 exit $1
16281} @%:@ as_fn_exit
16282
16283@%:@ as_fn_unset VAR
16284@%:@ ---------------
16285@%:@ Portably unset VAR.
16286as_fn_unset ()
16287{
16288 { eval $1=; unset $1;}
16289}
16290as_unset=as_fn_unset
16291@%:@ as_fn_append VAR VALUE
16292@%:@ ----------------------
16293@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16294@%:@ advantage of any shell optimizations that allow amortized linear growth over
16295@%:@ repeated appends, instead of the typical quadratic growth present in naive
16296@%:@ implementations.
16297if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16298 eval 'as_fn_append ()
16299 {
16300 eval $1+=\$2
16301 }'
16302else
16303 as_fn_append ()
16304 {
16305 eval $1=\$$1\$2
16306 }
16307fi # as_fn_append
16308
16309@%:@ as_fn_arith ARG...
16310@%:@ ------------------
16311@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16312@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16313@%:@ must be portable across @S|@(()) and expr.
16314if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16315 eval 'as_fn_arith ()
16316 {
16317 as_val=$(( $* ))
16318 }'
16319else
16320 as_fn_arith ()
16321 {
16322 as_val=`expr "$@" || test $? -eq 1`
16323 }
16324fi # as_fn_arith
16325
16326
16327if expr a : '\(a\)' >/dev/null 2>&1 &&
16328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16329 as_expr=expr
16330else
16331 as_expr=false
16332fi
16333
16334if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16335 as_basename=basename
16336else
16337 as_basename=false
16338fi
16339
16340if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16341 as_dirname=dirname
16342else
16343 as_dirname=false
16344fi
16345
16346as_me=`$as_basename -- "$0" ||
16347$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16348 X"$0" : 'X\(//\)$' \| \
16349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16350$as_echo X/"$0" |
16351 sed '/^.*\/\([^/][^/]*\)\/*$/{
16352 s//\1/
16353 q
16354 }
16355 /^X\/\(\/\/\)$/{
16356 s//\1/
16357 q
16358 }
16359 /^X\/\(\/\).*/{
16360 s//\1/
16361 q
16362 }
16363 s/.*/./; q'`
16364
16365# Avoid depending upon Character Ranges.
16366as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16367as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16368as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16369as_cr_digits='0123456789'
16370as_cr_alnum=$as_cr_Letters$as_cr_digits
16371
16372ECHO_C= ECHO_N= ECHO_T=
16373case `echo -n x` in @%:@(((((
16374-n*)
16375 case `echo 'xy\c'` in
16376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16377 xy) ECHO_C='\c';;
16378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16379 ECHO_T=' ';;
16380 esac;;
16381*)
16382 ECHO_N='-n';;
16383esac
16384
16385rm -f conf$$ conf$$.exe conf$$.file
16386if test -d conf$$.dir; then
16387 rm -f conf$$.dir/conf$$.file
16388else
16389 rm -f conf$$.dir
16390 mkdir conf$$.dir 2>/dev/null
16391fi
16392if (echo >conf$$.file) 2>/dev/null; then
16393 if ln -s conf$$.file conf$$ 2>/dev/null; then
16394 as_ln_s='ln -s'
16395 # ... but there are two gotchas:
16396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16398 # In both cases, we have to default to `cp -p'.
16399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16400 as_ln_s='cp -p'
16401 elif ln conf$$.file conf$$ 2>/dev/null; then
16402 as_ln_s=ln
16403 else
16404 as_ln_s='cp -p'
16405 fi
16406else
16407 as_ln_s='cp -p'
16408fi
16409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16410rmdir conf$$.dir 2>/dev/null
16411
16412
16413@%:@ as_fn_mkdir_p
16414@%:@ -------------
16415@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
16416as_fn_mkdir_p ()
16417{
16418
16419 case $as_dir in #(
16420 -*) as_dir=./$as_dir;;
16421 esac
16422 test -d "$as_dir" || eval $as_mkdir_p || {
16423 as_dirs=
16424 while :; do
16425 case $as_dir in #(
16426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16427 *) as_qdir=$as_dir;;
16428 esac
16429 as_dirs="'$as_qdir' $as_dirs"
16430 as_dir=`$as_dirname -- "$as_dir" ||
16431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16432 X"$as_dir" : 'X\(//\)[^/]' \| \
16433 X"$as_dir" : 'X\(//\)$' \| \
16434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16435$as_echo X"$as_dir" |
16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437 s//\1/
16438 q
16439 }
16440 /^X\(\/\/\)[^/].*/{
16441 s//\1/
16442 q
16443 }
16444 /^X\(\/\/\)$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\).*/{
16449 s//\1/
16450 q
16451 }
16452 s/.*/./; q'`
16453 test -d "$as_dir" && break
16454 done
16455 test -z "$as_dirs" || eval "mkdir $as_dirs"
16456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16457
16458
16459} @%:@ as_fn_mkdir_p
16460if mkdir -p . 2>/dev/null; then
16461 as_mkdir_p='mkdir -p "$as_dir"'
16462else
16463 test -d ./-p && rmdir ./-p
16464 as_mkdir_p=false
16465fi
16466
16467if test -x / >/dev/null 2>&1; then
16468 as_test_x='test -x'
16469else
16470 if ls -dL / >/dev/null 2>&1; then
16471 as_ls_L_option=L
16472 else
16473 as_ls_L_option=
16474 fi
16475 as_test_x='
16476 eval sh -c '\''
16477 if test -d "$1"; then
16478 test -d "$1/.";
16479 else
16480 case $1 in @%:@(
16481 -*)set "./$1";;
16482 esac;
16483 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
16484 ???[sx]*):;;*)false;;esac;fi
16485 '\'' sh
16486 '
16487fi
16488as_executable_p=$as_test_x
16489
16490# Sed expression to map a string onto a valid CPP name.
16491as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16492
16493# Sed expression to map a string onto a valid variable name.
16494as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16495
16496
16497exec 6>&1
16498## ----------------------------------- ##
16499## Main body of $CONFIG_STATUS script. ##
16500## ----------------------------------- ##
16501_ASEOF
16502test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16503
16504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505# Save the log message, to keep $0 and so on meaningful, and to
16506# report actual input values of CONFIG_FILES etc. instead of their
16507# values after options handling.
16508ac_log="
16509This file was extended by bash $as_me 4.3-alpha, which was
16510generated by GNU Autoconf 2.68. Invocation command line was
16511
16512 CONFIG_FILES = $CONFIG_FILES
16513 CONFIG_HEADERS = $CONFIG_HEADERS
16514 CONFIG_LINKS = $CONFIG_LINKS
16515 CONFIG_COMMANDS = $CONFIG_COMMANDS
16516 $ $0 $@
16517
16518on `(hostname || uname -n) 2>/dev/null | sed 1q`
16519"
16520
16521_ACEOF
16522
16523case $ac_config_files in *"
16524"*) set x $ac_config_files; shift; ac_config_files=$*;;
16525esac
16526
16527case $ac_config_headers in *"
16528"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16529esac
16530
16531
16532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16533# Files that config.status was made for.
16534config_files="$ac_config_files"
16535config_headers="$ac_config_headers"
16536config_commands="$ac_config_commands"
16537
16538_ACEOF
16539
16540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16541ac_cs_usage="\
16542\`$as_me' instantiates files and other configuration actions
16543from templates according to the current configuration. Unless the files
16544and actions are specified as TAGs, all are instantiated by default.
16545
16546Usage: $0 [OPTION]... [TAG]...
16547
16548 -h, --help print this help, then exit
16549 -V, --version print version number and configuration settings, then exit
16550 --config print configuration, then exit
16551 -q, --quiet, --silent
16552 do not print progress messages
16553 -d, --debug don't remove temporary files
16554 --recheck update $as_me by reconfiguring in the same conditions
16555 --file=FILE[:TEMPLATE]
16556 instantiate the configuration file FILE
16557 --header=FILE[:TEMPLATE]
16558 instantiate the configuration header FILE
16559
16560Configuration files:
16561$config_files
16562
16563Configuration headers:
16564$config_headers
16565
16566Configuration commands:
16567$config_commands
16568
16569Report bugs to <bug-bash@gnu.org>."
16570
16571_ACEOF
16572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16573ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16574ac_cs_version="\\
16575bash config.status 4.3-alpha
16576configured by $0, generated by GNU Autoconf 2.68,
16577 with options \\"\$ac_cs_config\\"
16578
16579Copyright (C) 2010 Free Software Foundation, Inc.
16580This config.status script is free software; the Free Software Foundation
16581gives unlimited permission to copy, distribute and modify it."
16582
16583ac_pwd='$ac_pwd'
16584srcdir='$srcdir'
16585INSTALL='$INSTALL'
16586test -n "\$AWK" || AWK=awk
16587_ACEOF
16588
16589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16590# The default lists apply if the user does not specify any file.
16591ac_need_defaults=:
16592while test $# != 0
16593do
16594 case $1 in
16595 --*=?*)
16596 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16597 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16598 ac_shift=:
16599 ;;
16600 --*=)
16601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16602 ac_optarg=
16603 ac_shift=:
16604 ;;
16605 *)
16606 ac_option=$1
16607 ac_optarg=$2
16608 ac_shift=shift
16609 ;;
16610 esac
16611
16612 case $ac_option in
16613 # Handling of the options.
16614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16615 ac_cs_recheck=: ;;
16616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16617 $as_echo "$ac_cs_version"; exit ;;
16618 --config | --confi | --conf | --con | --co | --c )
16619 $as_echo "$ac_cs_config"; exit ;;
16620 --debug | --debu | --deb | --de | --d | -d )
16621 debug=: ;;
16622 --file | --fil | --fi | --f )
16623 $ac_shift
16624 case $ac_optarg in
16625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16626 '') as_fn_error $? "missing file argument" ;;
16627 esac
16628 as_fn_append CONFIG_FILES " '$ac_optarg'"
16629 ac_need_defaults=false;;
16630 --header | --heade | --head | --hea )
16631 $ac_shift
16632 case $ac_optarg in
16633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16634 esac
16635 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16636 ac_need_defaults=false;;
16637 --he | --h)
16638 # Conflict between --help and --header
16639 as_fn_error $? "ambiguous option: \`$1'
16640Try \`$0 --help' for more information.";;
16641 --help | --hel | -h )
16642 $as_echo "$ac_cs_usage"; exit ;;
16643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16645 ac_cs_silent=: ;;
16646
16647 # This is an error.
16648 -*) as_fn_error $? "unrecognized option: \`$1'
16649Try \`$0 --help' for more information." ;;
16650
16651 *) as_fn_append ac_config_targets " $1"
16652 ac_need_defaults=false ;;
16653
16654 esac
16655 shift
16656done
16657
16658ac_configure_extra_args=
16659
16660if $ac_cs_silent; then
16661 exec 6>/dev/null
16662 ac_configure_extra_args="$ac_configure_extra_args --silent"
16663fi
16664
16665_ACEOF
16666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16667if \$ac_cs_recheck; then
16668 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16669 shift
16670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16671 CONFIG_SHELL='$SHELL'
16672 export CONFIG_SHELL
16673 exec "\$@"
16674fi
16675
16676_ACEOF
16677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16678exec 5>>config.log
16679{
16680 echo
16681 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16682@%:@@%:@ Running $as_me. @%:@@%:@
16683_ASBOX
16684 $as_echo "$ac_log"
16685} >&5
16686
16687_ACEOF
16688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689#
16690# INIT-COMMANDS
16691#
16692# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16693 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16694 # from automake.
16695 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16696 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16697 LINGUAS="${LINGUAS-%UNSET%}"
16698
16699
16700_ACEOF
16701
16702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16703
16704# Handling of arguments.
16705for ac_config_target in $ac_config_targets
16706do
16707 case $ac_config_target in
16708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16709 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16711 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
16712 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
16713 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
16714 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
16715 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
16716 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
16717 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
16718 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
16719 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16720 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
16721 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16722 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
16723 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
16724 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16725
16726 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16727 esac
16728done
16729
16730
16731# If the user did not use the arguments to specify the items to instantiate,
16732# then the envvar interface is used. Set only those that are not.
16733# We use the long form for the default assignment because of an extremely
16734# bizarre bug on SunOS 4.1.3.
16735if $ac_need_defaults; then
16736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16739fi
16740
16741# Have a temporary directory for convenience. Make it in the build tree
16742# simply because there is no reason against having it here, and in addition,
16743# creating and moving files from /tmp can sometimes cause problems.
16744# Hook for its removal unless debugging.
16745# Note that there is a small window in which the directory will not be cleaned:
16746# after its creation but before its name has been assigned to `$tmp'.
16747$debug ||
16748{
16749 tmp= ac_tmp=
16750 trap 'exit_status=$?
16751 : "${ac_tmp:=$tmp}"
16752 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16753' 0
16754 trap 'as_fn_exit 1' 1 2 13 15
16755}
16756# Create a (secure) tmp directory for tmp files.
16757
16758{
16759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16760 test -d "$tmp"
16761} ||
16762{
16763 tmp=./conf$$-$RANDOM
16764 (umask 077 && mkdir "$tmp")
16765} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16766ac_tmp=$tmp
16767
16768# Set up the scripts for CONFIG_FILES section.
16769# No need to generate them if there are no CONFIG_FILES.
16770# This happens for instance with `./config.status config.h'.
16771if test -n "$CONFIG_FILES"; then
16772
16773
16774ac_cr=`echo X | tr X '\015'`
16775# On cygwin, bash can eat \r inside `` if the user requested igncr.
16776# But we know of no other shell where ac_cr would be empty at this
16777# point, so we can use a bashism as a fallback.
16778if test "x$ac_cr" = x; then
16779 eval ac_cr=\$\'\\r\'
16780fi
16781ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16782if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16783 ac_cs_awk_cr='\\r'
16784else
16785 ac_cs_awk_cr=$ac_cr
16786fi
16787
16788echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16789_ACEOF
16790
16791
16792{
16793 echo "cat >conf$$subs.awk <<_ACEOF" &&
16794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16795 echo "_ACEOF"
16796} >conf$$subs.sh ||
16797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16798ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16799ac_delim='%!_!# '
16800for ac_last_try in false false false false false :; do
16801 . ./conf$$subs.sh ||
16802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16803
16804 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16805 if test $ac_delim_n = $ac_delim_num; then
16806 break
16807 elif $ac_last_try; then
16808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16809 else
16810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16811 fi
16812done
16813rm -f conf$$subs.sh
16814
16815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16816cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16817_ACEOF
16818sed -n '
16819h
16820s/^/S["/; s/!.*/"]=/
16821p
16822g
16823s/^[^!]*!//
16824:repl
16825t repl
16826s/'"$ac_delim"'$//
16827t delim
16828:nl
16829h
16830s/\(.\{148\}\)..*/\1/
16831t more1
16832s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16833p
16834n
16835b repl
16836:more1
16837s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16838p
16839g
16840s/.\{148\}//
16841t nl
16842:delim
16843h
16844s/\(.\{148\}\)..*/\1/
16845t more2
16846s/["\\]/\\&/g; s/^/"/; s/$/"/
16847p
16848b
16849:more2
16850s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16851p
16852g
16853s/.\{148\}//
16854t delim
16855' <conf$$subs.awk | sed '
16856/^[^""]/{
16857 N
16858 s/\n//
16859}
16860' >>$CONFIG_STATUS || ac_write_fail=1
16861rm -f conf$$subs.awk
16862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16863_ACAWK
16864cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16865 for (key in S) S_is_set[key] = 1
16866 FS = "\a"
16867
16868}
16869{
16870 line = $ 0
16871 nfields = split(line, field, "@")
16872 substed = 0
16873 len = length(field[1])
16874 for (i = 2; i < nfields; i++) {
16875 key = field[i]
16876 keylen = length(key)
16877 if (S_is_set[key]) {
16878 value = S[key]
16879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16880 len += length(value) + length(field[++i])
16881 substed = 1
16882 } else
16883 len += 1 + keylen
16884 }
16885
16886 print line
16887}
16888
16889_ACAWK
16890_ACEOF
16891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16893 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16894else
16895 cat
16896fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16897 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16898_ACEOF
16899
16900# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16901# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16902# trailing colons and then remove the whole line if VPATH becomes empty
16903# (actually we leave an empty line to preserve line numbers).
16904if test "x$srcdir" = x.; then
16905 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16906h
16907s///
16908s/^/:/
16909s/[ ]*$/:/
16910s/:\$(srcdir):/:/g
16911s/:\${srcdir}:/:/g
16912s/:@srcdir@:/:/g
16913s/^:*//
16914s/:*$//
16915x
16916s/\(=[ ]*\).*/\1/
16917G
16918s/\n//
16919s/^[^=]*=[ ]*$//
16920}'
16921fi
16922
16923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924fi # test -n "$CONFIG_FILES"
16925
16926# Set up the scripts for CONFIG_HEADERS section.
16927# No need to generate them if there are no CONFIG_HEADERS.
16928# This happens for instance with `./config.status Makefile'.
16929if test -n "$CONFIG_HEADERS"; then
16930cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16931BEGIN {
16932_ACEOF
16933
16934# Transform confdefs.h into an awk script `defines.awk', embedded as
16935# here-document in config.status, that substitutes the proper values into
16936# config.h.in to produce config.h.
16937
16938# Create a delimiter string that does not exist in confdefs.h, to ease
16939# handling of long lines.
16940ac_delim='%!_!# '
16941for ac_last_try in false false :; do
16942 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16943 if test -z "$ac_tt"; then
16944 break
16945 elif $ac_last_try; then
16946 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16947 else
16948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16949 fi
16950done
16951
16952# For the awk script, D is an array of macro values keyed by name,
16953# likewise P contains macro parameters if any. Preserve backslash
16954# newline sequences.
16955
16956ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16957sed -n '
16958s/.\{148\}/&'"$ac_delim"'/g
16959t rset
16960:rset
16961s/^[ ]*#[ ]*define[ ][ ]*/ /
16962t def
16963d
16964:def
16965s/\\$//
16966t bsnl
16967s/["\\]/\\&/g
16968s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16969D["\1"]=" \3"/p
16970s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16971d
16972:bsnl
16973s/["\\]/\\&/g
16974s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16975D["\1"]=" \3\\\\\\n"\\/p
16976t cont
16977s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16978t cont
16979d
16980:cont
16981n
16982s/.\{148\}/&'"$ac_delim"'/g
16983t clear
16984:clear
16985s/\\$//
16986t bsnlc
16987s/["\\]/\\&/g; s/^/"/; s/$/"/p
16988d
16989:bsnlc
16990s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16991b cont
16992' <confdefs.h | sed '
16993s/'"$ac_delim"'/"\\\
16994"/g' >>$CONFIG_STATUS || ac_write_fail=1
16995
16996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16997 for (key in D) D_is_set[key] = 1
16998 FS = "\a"
16999}
17000/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17001 line = \$ 0
17002 split(line, arg, " ")
17003 if (arg[1] == "#") {
17004 defundef = arg[2]
17005 mac1 = arg[3]
17006 } else {
17007 defundef = substr(arg[1], 2)
17008 mac1 = arg[2]
17009 }
17010 split(mac1, mac2, "(") #)
17011 macro = mac2[1]
17012 prefix = substr(line, 1, index(line, defundef) - 1)
17013 if (D_is_set[macro]) {
17014 # Preserve the white space surrounding the "#".
17015 print prefix "define", macro P[macro] D[macro]
17016 next
17017 } else {
17018 # Replace #undef with comments. This is necessary, for example,
17019 # in the case of _POSIX_SOURCE, which is predefined and required
17020 # on some systems where configure will not decide to define it.
17021 if (defundef == "undef") {
17022 print "/*", prefix defundef, macro, "*/"
17023 next
17024 }
17025 }
17026}
17027{ print }
17028_ACAWK
17029_ACEOF
17030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17031 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17032fi # test -n "$CONFIG_HEADERS"
17033
17034
17035eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17036shift
17037for ac_tag
17038do
17039 case $ac_tag in
17040 :[FHLC]) ac_mode=$ac_tag; continue;;
17041 esac
17042 case $ac_mode$ac_tag in
17043 :[FHL]*:*);;
17044 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17045 :[FH]-) ac_tag=-:-;;
17046 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17047 esac
17048 ac_save_IFS=$IFS
17049 IFS=:
17050 set x $ac_tag
17051 IFS=$ac_save_IFS
17052 shift
17053 ac_file=$1
17054 shift
17055
17056 case $ac_mode in
17057 :L) ac_source=$1;;
17058 :[FH])
17059 ac_file_inputs=
17060 for ac_f
17061 do
17062 case $ac_f in
17063 -) ac_f="$ac_tmp/stdin";;
17064 *) # Look for the file first in the build tree, then in the source tree
17065 # (if the path is not absolute). The absolute path cannot be DOS-style,
17066 # because $ac_f cannot contain `:'.
17067 test -f "$ac_f" ||
17068 case $ac_f in
17069 [\\/$]*) false;;
17070 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17071 esac ||
17072 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17073 esac
17074 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17075 as_fn_append ac_file_inputs " '$ac_f'"
17076 done
17077
17078 # Let's still pretend it is `configure' which instantiates (i.e., don't
17079 # use $as_me), people would be surprised to read:
17080 # /* config.h. Generated by config.status. */
17081 configure_input='Generated from '`
17082 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17083 `' by configure.'
17084 if test x"$ac_file" != x-; then
17085 configure_input="$ac_file. $configure_input"
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17087$as_echo "$as_me: creating $ac_file" >&6;}
17088 fi
17089 # Neutralize special characters interpreted by sed in replacement strings.
17090 case $configure_input in #(
17091 *\&* | *\|* | *\\* )
17092 ac_sed_conf_input=`$as_echo "$configure_input" |
17093 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17094 *) ac_sed_conf_input=$configure_input;;
17095 esac
17096
17097 case $ac_tag in
17098 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17100 esac
17101 ;;
17102 esac
17103
17104 ac_dir=`$as_dirname -- "$ac_file" ||
17105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17106 X"$ac_file" : 'X\(//\)[^/]' \| \
17107 X"$ac_file" : 'X\(//\)$' \| \
17108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17109$as_echo X"$ac_file" |
17110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17111 s//\1/
17112 q
17113 }
17114 /^X\(\/\/\)[^/].*/{
17115 s//\1/
17116 q
17117 }
17118 /^X\(\/\/\)$/{
17119 s//\1/
17120 q
17121 }
17122 /^X\(\/\).*/{
17123 s//\1/
17124 q
17125 }
17126 s/.*/./; q'`
17127 as_dir="$ac_dir"; as_fn_mkdir_p
17128 ac_builddir=.
17129
17130case "$ac_dir" in
17131.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17132*)
17133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17134 # A ".." for each directory in $ac_dir_suffix.
17135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17136 case $ac_top_builddir_sub in
17137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17139 esac ;;
17140esac
17141ac_abs_top_builddir=$ac_pwd
17142ac_abs_builddir=$ac_pwd$ac_dir_suffix
17143# for backward compatibility:
17144ac_top_builddir=$ac_top_build_prefix
17145
17146case $srcdir in
17147 .) # We are building in place.
17148 ac_srcdir=.
17149 ac_top_srcdir=$ac_top_builddir_sub
17150 ac_abs_top_srcdir=$ac_pwd ;;
17151 [\\/]* | ?:[\\/]* ) # Absolute name.
17152 ac_srcdir=$srcdir$ac_dir_suffix;
17153 ac_top_srcdir=$srcdir
17154 ac_abs_top_srcdir=$srcdir ;;
17155 *) # Relative name.
17156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17157 ac_top_srcdir=$ac_top_build_prefix$srcdir
17158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17159esac
17160ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17161
17162
17163 case $ac_mode in
17164 :F)
17165 #
17166 # CONFIG_FILE
17167 #
17168
17169 case $INSTALL in
17170 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17171 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17172 esac
17173_ACEOF
17174
17175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17176# If the template does not know about datarootdir, expand it.
17177# FIXME: This hack should be removed a few years after 2.60.
17178ac_datarootdir_hack=; ac_datarootdir_seen=
17179ac_sed_dataroot='
17180/datarootdir/ {
17181 p
17182 q
17183}
17184/@datadir@/p
17185/@docdir@/p
17186/@infodir@/p
17187/@localedir@/p
17188/@mandir@/p'
17189case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17190*datarootdir*) ac_datarootdir_seen=yes;;
17191*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17193$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17194_ACEOF
17195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17196 ac_datarootdir_hack='
17197 s&@datadir@&$datadir&g
17198 s&@docdir@&$docdir&g
17199 s&@infodir@&$infodir&g
17200 s&@localedir@&$localedir&g
17201 s&@mandir@&$mandir&g
17202 s&\\\${datarootdir}&$datarootdir&g' ;;
17203esac
17204_ACEOF
17205
17206# Neutralize VPATH when `$srcdir' = `.'.
17207# Shell code in configure.ac might set extrasub.
17208# FIXME: do we really want to maintain this feature?
17209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17210ac_sed_extra="$ac_vpsub
17211$extrasub
17212_ACEOF
17213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17214:t
17215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17216s|@configure_input@|$ac_sed_conf_input|;t t
17217s&@top_builddir@&$ac_top_builddir_sub&;t t
17218s&@top_build_prefix@&$ac_top_build_prefix&;t t
17219s&@srcdir@&$ac_srcdir&;t t
17220s&@abs_srcdir@&$ac_abs_srcdir&;t t
17221s&@top_srcdir@&$ac_top_srcdir&;t t
17222s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17223s&@builddir@&$ac_builddir&;t t
17224s&@abs_builddir@&$ac_abs_builddir&;t t
17225s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17226s&@INSTALL@&$ac_INSTALL&;t t
17227$ac_datarootdir_hack
17228"
17229eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17230 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17231
17232test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17233 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17235 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17237which seems to be undefined. Please make sure it is defined" >&5
17238$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17239which seems to be undefined. Please make sure it is defined" >&2;}
17240
17241 rm -f "$ac_tmp/stdin"
17242 case $ac_file in
17243 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17244 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17245 esac \
17246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17247 ;;
17248 :H)
17249 #
17250 # CONFIG_HEADER
17251 #
17252 if test x"$ac_file" != x-; then
17253 {
17254 $as_echo "/* $configure_input */" \
17255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17256 } >"$ac_tmp/config.h" \
17257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17258 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17260$as_echo "$as_me: $ac_file is unchanged" >&6;}
17261 else
17262 rm -f "$ac_file"
17263 mv "$ac_tmp/config.h" "$ac_file" \
17264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17265 fi
17266 else
17267 $as_echo "/* $configure_input */" \
17268 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17269 || as_fn_error $? "could not create -" "$LINENO" 5
17270 fi
17271 ;;
17272
17273 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17274$as_echo "$as_me: executing $ac_file commands" >&6;}
17275 ;;
17276 esac
17277
17278
17279 case $ac_file$ac_mode in
17280 "default-1":C)
17281 for ac_file in $CONFIG_FILES; do
17282 # Support "outfile[:infile[:infile...]]"
17283 case "$ac_file" in
17284 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17285 esac
17286 # PO directories have a Makefile.in generated from Makefile.in.in.
17287 case "$ac_file" in */Makefile.in)
17288 # Adjust a relative srcdir.
17289 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17290 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17291 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17292 # In autoconf-2.13 it is called $ac_given_srcdir.
17293 # In autoconf-2.50 it is called $srcdir.
17294 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17295 case "$ac_given_srcdir" in
17296 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17297 /*) top_srcdir="$ac_given_srcdir" ;;
17298 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17299 esac
17300 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17301 rm -f "$ac_dir/POTFILES"
17302 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17303 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17304 POMAKEFILEDEPS="POTFILES.in"
17305 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17306 # on $ac_dir but don't depend on user-specified configuration
17307 # parameters.
17308 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17309 # The LINGUAS file contains the set of available languages.
17310 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17311 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17312 fi
17313 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17314 # Hide the ALL_LINGUAS assigment from automake.
17315 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17316 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17317 else
17318 # The set of available languages was given in configure.in.
17319 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17320 fi
17321 case "$ac_given_srcdir" in
17322 .) srcdirpre= ;;
17323 *) srcdirpre='$(srcdir)/' ;;
17324 esac
17325 POFILES=
17326 GMOFILES=
17327 UPDATEPOFILES=
17328 DUMMYPOFILES=
17329 for lang in $ALL_LINGUAS; do
17330 POFILES="$POFILES $srcdirpre$lang.po"
17331 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17332 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17333 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17334 done
17335 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17336 # environment variable.
17337 INST_LINGUAS=
17338 if test -n "$ALL_LINGUAS"; then
17339 for presentlang in $ALL_LINGUAS; do
17340 useit=no
17341 if test "%UNSET%" != "$LINGUAS"; then
17342 desiredlanguages="$LINGUAS"
17343 else
17344 desiredlanguages="$ALL_LINGUAS"
17345 fi
17346 for desiredlang in $desiredlanguages; do
17347 # Use the presentlang catalog if desiredlang is
17348 # a. equal to presentlang, or
17349 # b. a variant of presentlang (because in this case,
17350 # presentlang can be used as a fallback for messages
17351 # which are not translated in the desiredlang catalog).
17352 case "$desiredlang" in
17353 "$presentlang"*) useit=yes;;
17354 esac
17355 done
17356 if test $useit = yes; then
17357 INST_LINGUAS="$INST_LINGUAS $presentlang"
17358 fi
17359 done
17360 fi
17361 CATALOGS=
17362 if test -n "$INST_LINGUAS"; then
17363 for lang in $INST_LINGUAS; do
17364 CATALOGS="$CATALOGS $lang.gmo"
17365 done
17366 fi
17367 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17368 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"
17369 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17370 if test -f "$f"; then
17371 case "$f" in
17372 *.orig | *.bak | *~) ;;
17373 *) cat "$f" >> "$ac_dir/Makefile" ;;
17374 esac
17375 fi
17376 done
17377 fi
17378 ;;
17379 esac
17380 done ;;
17381 "default":C)
17382# Makefile uses this timestamp file to record whether config.h is up to date.
17383echo timestamp > stamp-h
17384 ;;
17385
17386 esac
17387done # for ac_tag
17388
17389
17390as_fn_exit 0
17391_ACEOF
17392ac_clean_files=$ac_clean_files_save
17393
17394test $ac_write_fail = 0 ||
17395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17396
17397
17398# configure is writing to config.log, and then calls config.status.
17399# config.status does its own redirection, appending to config.log.
17400# Unfortunately, on DOS this fails, as config.log is still kept open
17401# by configure, so config.status won't be able to write to it; its
17402# output is simply discarded. So we exec the FD to /dev/null,
17403# effectively closing config.log, so it can be properly (re)opened and
17404# appended to by config.status. When coming back to configure, we
17405# need to make the FD available again.
17406if test "$no_create" != yes; then
17407 ac_cs_success=:
17408 ac_config_status_args=
17409 test "$silent" = yes &&
17410 ac_config_status_args="$ac_config_status_args --quiet"
17411 exec 5>/dev/null
17412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17413 exec 5>>config.log
17414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17415 # would make configure fail if this is the last instruction.
17416 $ac_cs_success || as_fn_exit 1
17417fi
17418if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17420$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17421fi
17422