2 # From configure.in for Bash 3.1, version 3.183.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for bash 3.1-release.
6 # Report bugs to <bug-bash@gnu.org>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 if expr a : '\(a\)' >/dev/null 2>&1; then
20 ## --------------------- ##
21 ## M4sh Initialization. ##
22 ## --------------------- ##
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Support unset when possible.
34 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
41 { $as_unset LANG || test "${LANG+set}" != set; } ||
42 { LANG=C; export LANG; }
43 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
44 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
45 { LC_ALL=C; export LC_ALL; }
46 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
47 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
48 { LC_TIME=C; export LC_TIME; }
49 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
50 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
51 { LC_CTYPE=C; export LC_CTYPE; }
52 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
53 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
54 { LANGUAGE=C; export LANGUAGE; }
55 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
56 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
57 { LC_COLLATE=C; export LC_COLLATE; }
58 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
59 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
60 { LC_NUMERIC=C; export LC_NUMERIC; }
61 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
62 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
63 { LC_MESSAGES=C; export LC_MESSAGES; }
66 # Name of the executable.
67 as_me=`(basename "$0") 2>/dev/null ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conftest.sh
89 echo "exit 0" >>conftest.sh
91 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 CONFIG_SHELL=$as_dir/$as_base
146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
155 # uniformly replaced by the line number. The first 'sed' inserts a
156 # line-number line before each line; the second 'sed' does the real
157 # work. The second script uses 'N' to pair each line-number line
158 # with the numbered line, and appends trailing '-' during
159 # substitution so that $LINENO is not a special case at line end.
160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
162 sed '=' <$as_myself |
167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 s,^['$as_cr_digits']*\n,,
172 chmod +x $as_me.lineno ||
173 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
174 { (exit 1); exit 1; }; }
176 # Don't try to exec as it changes $[0], causing all sort of problems
177 # (the dirname of $[0] is not the place where we might find the
178 # original and so on. Autoconf is especially sensible to this).
180 # Exit status is that of the last command.
185 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
186 *c*,-n*) ECHO_N= ECHO_C='
188 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
189 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 if expr a : '\(a\)' >/dev/null 2>&1; then
198 rm -f conf$$ conf$$.exe conf$$.file
200 if ln -s conf$$.file conf$$ 2>/dev/null; then
201 # We could just check for DJGPP; but this test a) works b) is more generic
202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
203 if test -f conf$$.exe; then
204 # Don't use ln at all; we don't have any links
209 elif ln conf$$.file conf$$ 2>/dev/null; then
214 rm -f conf$$ conf$$.exe conf$$.file
216 as_executable_p="test -f"
218 # Sed expression to map a string onto a valid CPP name.
219 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221 # Sed expression to map a string onto a valid variable name.
222 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
226 # We need space, tab and new line, in precisely that order.
232 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
236 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
237 # so uname gets run too.
238 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 ac_default_prefix=/usr/local
250 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Maximum number of lines to put in a shell here document.
253 # This variable seems obsolete. It should probably be removed, and
254 # only ac_max_sed_lines should be used.
255 : ${ac_max_here_lines=38}
257 # Identity of this package.
259 PACKAGE_TARNAME='bash'
260 PACKAGE_VERSION='3.1-release'
261 PACKAGE_STRING='bash 3.1-release'
262 PACKAGE_BUGREPORT='bug-bash@gnu.org'
264 ac_unique_file="shell.h"
265 # Factoring default headers for most tests.
266 ac_includes_default="\
269 # include <sys/types.h>
272 # include <sys/stat.h>
283 # if !STDC_HEADERS && HAVE_MEMORY_H
289 # include <strings.h>
292 # include <inttypes.h>
303 # Initialize some variables set by options.
305 ac_init_version=false
306 # The variables have the same names as the options, with
307 # dashes changed to underlines.
315 program_transform_name=s,x,x,
323 # Installation directory options.
324 # These are left unexpanded so users can "make install exec_prefix=/foo"
325 # and all the variables that are supposed to be based on exec_prefix
326 # by default will actually change.
327 # Use braces instead of parens because sh, perl, etc. also accept them.
328 bindir='${exec_prefix}/bin'
329 sbindir='${exec_prefix}/sbin'
330 libexecdir='${exec_prefix}/libexec'
331 datadir='${prefix}/share'
332 sysconfdir='${prefix}/etc'
333 sharedstatedir='${prefix}/com'
334 localstatedir='${prefix}/var'
335 libdir='${exec_prefix}/lib'
336 includedir='${prefix}/include'
337 oldincludedir='/usr/include'
338 infodir='${prefix}/info'
339 mandir='${prefix}/man'
344 # If the previous option needs an argument, assign it.
345 if test -n "$ac_prev"; then
346 eval "$ac_prev=\$ac_option"
351 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
353 # Accept the important Cygnus configure options, so we can diagnose typos.
357 -bindir | --bindir | --bindi | --bind | --bin | --bi)
359 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362 -build | --build | --buil | --bui | --bu)
363 ac_prev=build_alias ;;
364 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
365 build_alias=$ac_optarg ;;
367 -cache-file | --cache-file | --cache-fil | --cache-fi \
368 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
369 ac_prev=cache_file ;;
370 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
371 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
372 cache_file=$ac_optarg ;;
375 cache_file=config.cache ;;
377 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
379 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
381 datadir=$ac_optarg ;;
383 -disable-* | --disable-*)
384 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
385 # Reject names that are not valid shell variable names.
386 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
387 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
388 { (exit 1); exit 1; }; }
389 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
390 eval "enable_$ac_feature=no" ;;
392 -enable-* | --enable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403 eval "enable_$ac_feature='$ac_optarg'" ;;
405 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
406 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
407 | --exec | --exe | --ex)
408 ac_prev=exec_prefix ;;
409 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
410 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
411 | --exec=* | --exe=* | --ex=*)
412 exec_prefix=$ac_optarg ;;
414 -gas | --gas | --ga | --g)
415 # Obsolete; use --with-gas.
418 -help | --help | --hel | --he | -h)
420 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
421 ac_init_help=recursive ;;
422 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
423 ac_init_help=short ;;
425 -host | --host | --hos | --ho)
426 ac_prev=host_alias ;;
427 -host=* | --host=* | --hos=* | --ho=*)
428 host_alias=$ac_optarg ;;
430 -includedir | --includedir | --includedi | --included | --include \
431 | --includ | --inclu | --incl | --inc)
432 ac_prev=includedir ;;
433 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
434 | --includ=* | --inclu=* | --incl=* | --inc=*)
435 includedir=$ac_optarg ;;
437 -infodir | --infodir | --infodi | --infod | --info | --inf)
439 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
440 infodir=$ac_optarg ;;
442 -libdir | --libdir | --libdi | --libd)
444 -libdir=* | --libdir=* | --libdi=* | --libd=*)
447 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
448 | --libexe | --libex | --libe)
449 ac_prev=libexecdir ;;
450 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
451 | --libexe=* | --libex=* | --libe=*)
452 libexecdir=$ac_optarg ;;
454 -localstatedir | --localstatedir | --localstatedi | --localstated \
455 | --localstate | --localstat | --localsta | --localst \
456 | --locals | --local | --loca | --loc | --lo)
457 ac_prev=localstatedir ;;
458 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
459 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
460 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
461 localstatedir=$ac_optarg ;;
463 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
465 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
469 # Obsolete; use --without-fp.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c | -n)
476 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
481 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
482 | --oldin | --oldi | --old | --ol | --o)
483 ac_prev=oldincludedir ;;
484 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
485 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
486 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
487 oldincludedir=$ac_optarg ;;
489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494 -program-prefix | --program-prefix | --program-prefi | --program-pref \
495 | --program-pre | --program-pr | --program-p)
496 ac_prev=program_prefix ;;
497 -program-prefix=* | --program-prefix=* | --program-prefi=* \
498 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
499 program_prefix=$ac_optarg ;;
501 -program-suffix | --program-suffix | --program-suffi | --program-suff \
502 | --program-suf | --program-su | --program-s)
503 ac_prev=program_suffix ;;
504 -program-suffix=* | --program-suffix=* | --program-suffi=* \
505 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
506 program_suffix=$ac_optarg ;;
508 -program-transform-name | --program-transform-name \
509 | --program-transform-nam | --program-transform-na \
510 | --program-transform-n | --program-transform- \
511 | --program-transform | --program-transfor \
512 | --program-transfo | --program-transf \
513 | --program-trans | --program-tran \
514 | --progr-tra | --program-tr | --program-t)
515 ac_prev=program_transform_name ;;
516 -program-transform-name=* | --program-transform-name=* \
517 | --program-transform-nam=* | --program-transform-na=* \
518 | --program-transform-n=* | --program-transform-=* \
519 | --program-transform=* | --program-transfor=* \
520 | --program-transfo=* | --program-transf=* \
521 | --program-trans=* | --program-tran=* \
522 | --progr-tra=* | --program-tr=* | --program-t=*)
523 program_transform_name=$ac_optarg ;;
525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
526 | -silent | --silent | --silen | --sile | --sil)
529 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
531 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
533 sbindir=$ac_optarg ;;
535 -sharedstatedir | --sharedstatedir | --sharedstatedi \
536 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
537 | --sharedst | --shareds | --shared | --share | --shar \
539 ac_prev=sharedstatedir ;;
540 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
541 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
542 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
544 sharedstatedir=$ac_optarg ;;
546 -site | --site | --sit)
548 -site=* | --site=* | --sit=*)
551 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
553 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
557 | --syscon | --sysco | --sysc | --sys | --sy)
558 ac_prev=sysconfdir ;;
559 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
560 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
561 sysconfdir=$ac_optarg ;;
563 -target | --target | --targe | --targ | --tar | --ta | --t)
564 ac_prev=target_alias ;;
565 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
566 target_alias=$ac_optarg ;;
568 -v | -verbose | --verbose | --verbos | --verbo | --verb)
571 -version | --version | --versio | --versi | --vers | -V)
575 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
576 # Reject names that are not valid shell variable names.
577 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
578 { echo "$as_me: error: invalid package name: $ac_package" >&2
579 { (exit 1); exit 1; }; }
580 ac_package=`echo $ac_package| sed 's/-/_/g'`
582 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585 eval "with_$ac_package='$ac_optarg'" ;;
587 -without-* | --without-*)
588 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package | sed 's/-/_/g'`
594 eval "with_$ac_package=no" ;;
597 # Obsolete; use --with-x.
600 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
601 | --x-incl | --x-inc | --x-in | --x-i)
602 ac_prev=x_includes ;;
603 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
604 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
605 x_includes=$ac_optarg ;;
607 -x-libraries | --x-libraries | --x-librarie | --x-librari \
608 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
609 ac_prev=x_libraries ;;
610 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
611 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
612 x_libraries=$ac_optarg ;;
614 -*) { echo "$as_me: error: unrecognized option: $ac_option
615 Try \`$0 --help' for more information." >&2
616 { (exit 1); exit 1; }; }
620 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
621 # Reject names that are not valid shell variable names.
622 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
623 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
624 { (exit 1); exit 1; }; }
625 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
626 eval "$ac_envvar='$ac_optarg'"
630 # FIXME: should be removed in autoconf 3.0.
631 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
632 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
633 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
634 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
640 if test -n "$ac_prev"; then
641 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
642 { echo "$as_me: error: missing argument to $ac_option" >&2
643 { (exit 1); exit 1; }; }
646 # Be sure to have absolute paths.
647 for ac_var in exec_prefix prefix
649 eval ac_val=$`echo $ac_var`
651 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
652 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
653 { (exit 1); exit 1; }; };;
657 # Be sure to have absolute paths.
658 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
659 localstatedir libdir includedir oldincludedir infodir mandir
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # There might be people who depend on the old broken behavior: `$host'
670 # used to hold the argument of --host etc.
671 # FIXME: To remove some day.
676 # FIXME: To remove some day.
677 if test "x$host_alias" != x; then
678 if test "x$build_alias" = x; then
679 cross_compiling=maybe
680 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
681 If a cross compiler is detected then cross compile mode will be used." >&2
682 elif test "x$build_alias" != "x$host_alias"; then
688 test -n "$host_alias" && ac_tool_prefix=$host_alias-
690 test "$silent" = yes && exec 6>/dev/null
693 # Find the source files, if location was not specified.
694 if test -z "$srcdir"; then
695 ac_srcdir_defaulted=yes
696 # Try the directory containing this script, then its parent.
697 ac_confdir=`(dirname "$0") 2>/dev/null ||
698 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
699 X"$0" : 'X\(//\)[^/]' \| \
700 X"$0" : 'X\(//\)$' \| \
701 X"$0" : 'X\(/\)' \| \
702 . : '\(.\)' 2>/dev/null ||
704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
706 /^X\(\/\/\)$/{ s//\1/; q; }
707 /^X\(\/\).*/{ s//\1/; q; }
710 if test ! -r $srcdir/$ac_unique_file; then
714 ac_srcdir_defaulted=no
716 if test ! -r $srcdir/$ac_unique_file; then
717 if test "$ac_srcdir_defaulted" = yes; then
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
719 { (exit 1); exit 1; }; }
721 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
722 { (exit 1); exit 1; }; }
725 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
726 ac_env_build_alias_set=${build_alias+set}
727 ac_env_build_alias_value=$build_alias
728 ac_cv_env_build_alias_set=${build_alias+set}
729 ac_cv_env_build_alias_value=$build_alias
730 ac_env_host_alias_set=${host_alias+set}
731 ac_env_host_alias_value=$host_alias
732 ac_cv_env_host_alias_set=${host_alias+set}
733 ac_cv_env_host_alias_value=$host_alias
734 ac_env_target_alias_set=${target_alias+set}
735 ac_env_target_alias_value=$target_alias
736 ac_cv_env_target_alias_set=${target_alias+set}
737 ac_cv_env_target_alias_value=$target_alias
738 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
739 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
740 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
741 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
742 ac_env_CC_set=${CC+set}
744 ac_cv_env_CC_set=${CC+set}
745 ac_cv_env_CC_value=$CC
746 ac_env_CFLAGS_set=${CFLAGS+set}
747 ac_env_CFLAGS_value=$CFLAGS
748 ac_cv_env_CFLAGS_set=${CFLAGS+set}
749 ac_cv_env_CFLAGS_value=$CFLAGS
750 ac_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_env_LDFLAGS_value=$LDFLAGS
752 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
753 ac_cv_env_LDFLAGS_value=$LDFLAGS
754 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_env_CPPFLAGS_value=$CPPFLAGS
756 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
758 ac_env_CPP_set=${CPP+set}
759 ac_env_CPP_value=$CPP
760 ac_cv_env_CPP_set=${CPP+set}
761 ac_cv_env_CPP_value=$CPP
764 # Report the --help message.
766 if test "$ac_init_help" = "long"; then
767 # Omit some internal or obsolete options to make the list less imposing.
768 # This message is too long to be a string in the A/UX 3.1 sh.
770 \`configure' configures bash 3.1-release to adapt to many kinds of systems.
772 Usage: $0 [OPTION]... [VAR=VALUE]...
774 To assign environment variables (e.g., CC, CFLAGS...), specify them as
775 VAR=VALUE. See below for descriptions of some of the useful variables.
777 Defaults for the options are specified in brackets.
780 -h, --help display this help and exit
781 --help=short display options specific to this package
782 --help=recursive display the short help of all the included packages
783 -V, --version display version information and exit
784 -q, --quiet, --silent do not print \`checking...' messages
785 --cache-file=FILE cache test results in FILE [disabled]
786 -C, --config-cache alias for \`--cache-file=config.cache'
787 -n, --no-create do not create output files
788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793 Installation directories:
794 --prefix=PREFIX install architecture-independent files in PREFIX
796 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 By default, \`make install' will install all the files in
800 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
801 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
802 for instance \`--prefix=\$HOME'.
804 For better control, use the options below.
806 Fine tuning of the installation directories:
807 --bindir=DIR user executables [EPREFIX/bin]
808 --sbindir=DIR system admin executables [EPREFIX/sbin]
809 --libexecdir=DIR program executables [EPREFIX/libexec]
810 --datadir=DIR read-only architecture-independent data [PREFIX/share]
811 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
812 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
813 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
814 --libdir=DIR object code libraries [EPREFIX/lib]
815 --includedir=DIR C header files [PREFIX/include]
816 --oldincludedir=DIR C header files for non-gcc [/usr/include]
817 --infodir=DIR info documentation [PREFIX/info]
818 --mandir=DIR man documentation [PREFIX/man]
824 --build=BUILD configure for building on BUILD [guessed]
825 --host=HOST cross-compile to build programs to run on HOST [BUILD]
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of bash 3.1-release:";;
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --enable-minimal-config a minimal sh-like configuration
839 --enable-alias enable shell aliases
840 --enable-arith-for-command
841 enable arithmetic for command
842 --enable-array-variables
843 include shell array variables
844 --enable-bang-history turn on csh-style history substitution
845 --enable-brace-expansion
846 include brace expansion
847 --enable-command-timing enable the time reserved word and command timing
848 --enable-cond-command enable the conditional command
849 --enable-cond-regexp enable extgended regular expression matching in
851 --enable-debugger enable support for bash debugger
852 --enable-directory-stack
853 enable builtins pushd/popd/dirs
854 --enable-disabled-builtins
855 allow disabled builtins to still be invoked
856 --enable-dparen-arithmetic
857 include ((...)) command
858 --enable-extended-glob include ksh-style extended pattern matching
859 --enable-help-builtin include the help builtin
860 --enable-history turn on command history
861 --enable-job-control enable job control features
862 --enable-multibyte enable multibyte characters if OS supports them
863 --enable-net-redirections
864 enable /dev/tcp/host/port redirection
865 --enable-process-substitution
866 enable process substitution
867 --enable-progcomp enable programmable completion and the complete
869 --enable-prompt-string-decoding
870 turn on escape character decoding in prompts
871 --enable-readline turn on command line editing
872 --enable-restricted enable a restricted shell
873 --enable-select include select command
874 --enable-separate-helpfiles
875 use external files for help builtin documentation
876 --enable-single-help-strings
877 store help documentation as a single string to ease
879 --enable-strict-posix-default
880 configure bash to be posix-conformant by default
881 --enable-usg-echo-default
882 a synonym for --enable-xpg-echo-default
883 --enable-xpg-echo-default
884 make the echo builtin expand escape sequences by
886 --enable-mem-scramble scramble memory on calls to malloc and free
887 --enable-profiling allow profiling with gprof
888 --enable-static-link link bash statically, for use as a root shell
889 --disable-largefile omit support for large files
890 --disable-nls do not use Native Language Support
891 --disable-rpath do not hardcode runtime library paths
894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
896 --with-lispdir override the default lisp directory
897 --with-afs if you are running AFS
898 --with-bash-malloc use the Bash version of malloc
899 --with-curses use the curses library instead of the termcap
901 --with-gnu-malloc synonym for --with-bash-malloc
902 --with-installed-readline
903 use a version of the readline library that is
905 --with-purecov configure to postprocess with pure coverage
906 --with-purify configure to postprocess with purify
907 --with-gnu-ld assume the C compiler uses GNU ld default=no
908 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
909 --without-libiconv-prefix don't search for libiconv in includedir and libdir
910 --with-included-gettext use the GNU gettext library included here
911 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
912 --without-libintl-prefix don't search for libintl in includedir and libdir
914 Some influential environment variables:
916 location of bash debugger initialization file
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
928 Report bugs to <bug-bash@gnu.org>.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
991 bash configure 3.1-release
992 generated by GNU Autoconf 2.53
994 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
995 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by bash $as_me 3.1-release, which was
1007 generated by GNU Autoconf 2.53. Invocation command line was
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Also quote any args containing shell meta-characters.
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n ) continue ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 case " $ac_configure_args " in
1074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1075 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087 # Save into config.log some information that might help in debugging.
1091 ## ---------------- ##
1092 ## Cache variables. ##
1093 ## ---------------- ##
1096 # The following way of writing the cache mishandles newlines in values,
1099 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 if test -s confdefs.h; then
1119 sed "/^$/d" confdefs.h
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1202 # Check that the precious variables saved in the cache have kept the same
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289 for ac_dir in ./support $srcdir/./support; do
1290 if test -f $ac_dir/install-sh; then
1292 ac_install_sh="$ac_aux_dir/install-sh -c"
1294 elif test -f $ac_dir/install.sh; then
1296 ac_install_sh="$ac_aux_dir/install.sh -c"
1298 elif test -f $ac_dir/shtool; then
1300 ac_install_sh="$ac_aux_dir/shtool install -c"
1304 if test -z "$ac_aux_dir"; then
1305 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1306 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1307 { (exit 1); exit 1; }; }
1309 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1310 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1311 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1313 ac_config_headers="$ac_config_headers config.h"
1319 case "$RELSTATUS" in
1320 alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1321 *) DEBUG= MALLOC_DEBUG= ;;
1324 # Make sure we can run config.sub.
1325 $ac_config_sub sun4 >/dev/null 2>&1 ||
1326 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328 { (exit 1); exit 1; }; }
1330 echo "$as_me:$LINENO: checking build system type" >&5
1331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332 if test "${ac_cv_build+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 ac_cv_build_alias=$build_alias
1336 test -z "$ac_cv_build_alias" &&
1337 ac_cv_build_alias=`$ac_config_guess`
1338 test -z "$ac_cv_build_alias" &&
1339 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341 { (exit 1); exit 1; }; }
1342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345 { (exit 1); exit 1; }; }
1348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349 echo "${ECHO_T}$ac_cv_build" >&6
1351 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$as_me:$LINENO: checking host system type" >&5
1357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358 if test "${ac_cv_host+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 ac_cv_host_alias=$host_alias
1362 test -z "$ac_cv_host_alias" &&
1363 ac_cv_host_alias=$ac_cv_build_alias
1364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371 echo "${ECHO_T}$ac_cv_host" >&6
1373 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 opt_with_installed_readline=no
1388 case "${host_cpu}-${host_os}" in
1389 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1390 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1391 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1392 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1393 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1394 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1395 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1396 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1397 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
1398 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
1399 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1400 *-aix*) opt_bash_malloc=no ;; # AIX machines
1401 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1402 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1403 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1404 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1405 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1406 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
1407 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1408 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1409 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1410 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1411 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1414 # memory scrambling on free()
1415 case "${host_os}" in
1416 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1417 *) opt_memscramble=yes ;;
1421 # Check whether --with-lispdir or --without-lispdir was given.
1422 if test "${with_lispdir+set}" = set; then
1423 withval="$with_lispdir"
1425 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1426 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1427 echo "$as_me:$LINENO: result: $lispdir" >&5
1428 echo "${ECHO_T}$lispdir" >&6
1431 # If set to t, that means we are running in a shell under Emacs.
1432 # If you have an Emacs named "t", then use the full path.
1433 test x"$EMACS" = xt && EMACS=
1434 for ac_prog in emacs xemacs
1436 # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_EMACS+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$EMACS"; then
1444 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_EMACS="$ac_prog"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 EMACS=$ac_cv_prog_EMACS
1463 if test -n "$EMACS"; then
1464 echo "$as_me:$LINENO: result: $EMACS" >&5
1465 echo "${ECHO_T}$EMACS" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 test -n "$EMACS" && break
1473 test -n "$EMACS" || EMACS="no"
1475 if test $EMACS != "no"; then
1476 if test x${lispdir+set} != xset; then
1477 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1478 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1479 if test "${am_cv_lispdir+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1483 if test -z "$am_cv_lispdir"; then
1484 am_cv_lispdir='${datadir}/emacs/site-lisp'
1488 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1489 echo "${ECHO_T}$am_cv_lispdir" >&6
1490 lispdir="$am_cv_lispdir"
1500 # Check whether --with-afs or --without-afs was given.
1501 if test "${with_afs+set}" = set; then
1506 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1507 if test "${with_bash_malloc+set}" = set; then
1508 withval="$with_bash_malloc"
1509 opt_bash_malloc=$withval
1512 # Check whether --with-curses or --without-curses was given.
1513 if test "${with_curses+set}" = set; then
1514 withval="$with_curses"
1518 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1519 if test "${with_gnu_malloc+set}" = set; then
1520 withval="$with_gnu_malloc"
1521 opt_bash_malloc=$withval
1524 # Check whether --with-installed-readline or --without-installed-readline was given.
1525 if test "${with_installed_readline+set}" = set; then
1526 withval="$with_installed_readline"
1527 opt_with_installed_readline=$withval
1530 # Check whether --with-purecov or --without-purecov was given.
1531 if test "${with_purecov+set}" = set; then
1532 withval="$with_purecov"
1533 opt_purecov=$withval
1536 # Check whether --with-purify or --without-purify was given.
1537 if test "${with_purify+set}" = set; then
1538 withval="$with_purify"
1542 if test "$opt_bash_malloc" = yes; then
1543 MALLOC_TARGET=malloc
1546 MALLOC_LIB='-lmalloc'
1547 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1548 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1549 MALLOC_DEP='$(MALLOC_LIBRARY)'
1551 cat >>confdefs.h <<\_ACEOF
1552 #define USING_BASH_MALLOC 1
1562 if test "$opt_purify" = yes; then
1564 cat >>confdefs.h <<\_ACEOF
1565 #define DISABLE_MALLOC_WRAPPERS 1
1572 if test "$opt_purecov" = yes; then
1573 PURIFY="${PURIFY}purecov"
1576 if test "$opt_afs" = yes; then
1577 cat >>confdefs.h <<\_ACEOF
1583 if test "$opt_curses" = yes; then
1587 if test -z "${DEBUGGER_START_FILE}"; then
1588 DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1591 opt_minimal_config=no
1597 opt_bang_history=yes
1600 opt_process_subst=yes
1601 opt_prompt_decoding=yes
1604 opt_array_variables=yes
1605 opt_dparen_arith=yes
1606 opt_extended_glob=yes
1607 opt_brace_expansion=yes
1608 opt_disabled_builtins=no
1609 opt_command_timing=yes
1612 opt_cond_command=yes
1614 opt_arith_for_command=yes
1617 opt_separate_help=no
1620 opt_single_longdoc_strings=yes
1625 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1626 if test "${enable_minimal_config+set}" = set; then
1627 enableval="$enable_minimal_config"
1628 opt_minimal_config=$enableval
1631 if test $opt_minimal_config = yes; then
1632 opt_job_control=no opt_alias=no opt_readline=no
1633 opt_history=no opt_bang_history=no opt_dirstack=no
1634 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1635 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1636 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1637 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1638 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1639 opt_multibyte=yes opt_cond_regexp=no
1642 # Check whether --enable-alias or --disable-alias was given.
1643 if test "${enable_alias+set}" = set; then
1644 enableval="$enable_alias"
1645 opt_alias=$enableval
1647 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1648 if test "${enable_arith_for_command+set}" = set; then
1649 enableval="$enable_arith_for_command"
1650 opt_arith_for_command=$enableval
1652 # Check whether --enable-array-variables or --disable-array-variables was given.
1653 if test "${enable_array_variables+set}" = set; then
1654 enableval="$enable_array_variables"
1655 opt_array_variables=$enableval
1657 # Check whether --enable-bang-history or --disable-bang-history was given.
1658 if test "${enable_bang_history+set}" = set; then
1659 enableval="$enable_bang_history"
1660 opt_bang_history=$enableval
1662 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1663 if test "${enable_brace_expansion+set}" = set; then
1664 enableval="$enable_brace_expansion"
1665 opt_brace_expansion=$enableval
1667 # Check whether --enable-command-timing or --disable-command-timing was given.
1668 if test "${enable_command_timing+set}" = set; then
1669 enableval="$enable_command_timing"
1670 opt_command_timing=$enableval
1672 # Check whether --enable-cond-command or --disable-cond-command was given.
1673 if test "${enable_cond_command+set}" = set; then
1674 enableval="$enable_cond_command"
1675 opt_cond_command=$enableval
1677 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1678 if test "${enable_cond_regexp+set}" = set; then
1679 enableval="$enable_cond_regexp"
1680 opt_cond_regexp=$enableval
1682 # Check whether --enable-debugger or --disable-debugger was given.
1683 if test "${enable_debugger+set}" = set; then
1684 enableval="$enable_debugger"
1685 opt_debugger=$enableval
1687 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1688 if test "${enable_directory_stack+set}" = set; then
1689 enableval="$enable_directory_stack"
1690 opt_dirstack=$enableval
1692 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1693 if test "${enable_disabled_builtins+set}" = set; then
1694 enableval="$enable_disabled_builtins"
1695 opt_disabled_builtins=$enableval
1697 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1698 if test "${enable_dparen_arithmetic+set}" = set; then
1699 enableval="$enable_dparen_arithmetic"
1700 opt_dparen_arith=$enableval
1702 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1703 if test "${enable_extended_glob+set}" = set; then
1704 enableval="$enable_extended_glob"
1705 opt_extended_glob=$enableval
1707 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1708 if test "${enable_help_builtin+set}" = set; then
1709 enableval="$enable_help_builtin"
1712 # Check whether --enable-history or --disable-history was given.
1713 if test "${enable_history+set}" = set; then
1714 enableval="$enable_history"
1715 opt_history=$enableval
1717 # Check whether --enable-job-control or --disable-job-control was given.
1718 if test "${enable_job_control+set}" = set; then
1719 enableval="$enable_job_control"
1720 opt_job_control=$enableval
1722 # Check whether --enable-multibyte or --disable-multibyte was given.
1723 if test "${enable_multibyte+set}" = set; then
1724 enableval="$enable_multibyte"
1725 opt_multibyte=$enableval
1727 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1728 if test "${enable_net_redirections+set}" = set; then
1729 enableval="$enable_net_redirections"
1730 opt_net_redirs=$enableval
1732 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1733 if test "${enable_process_substitution+set}" = set; then
1734 enableval="$enable_process_substitution"
1735 opt_process_subst=$enableval
1737 # Check whether --enable-progcomp or --disable-progcomp was given.
1738 if test "${enable_progcomp+set}" = set; then
1739 enableval="$enable_progcomp"
1740 opt_progcomp=$enableval
1742 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1743 if test "${enable_prompt_string_decoding+set}" = set; then
1744 enableval="$enable_prompt_string_decoding"
1745 opt_prompt_decoding=$enableval
1747 # Check whether --enable-readline or --disable-readline was given.
1748 if test "${enable_readline+set}" = set; then
1749 enableval="$enable_readline"
1750 opt_readline=$enableval
1752 # Check whether --enable-restricted or --disable-restricted was given.
1753 if test "${enable_restricted+set}" = set; then
1754 enableval="$enable_restricted"
1755 opt_restricted=$enableval
1757 # Check whether --enable-select or --disable-select was given.
1758 if test "${enable_select+set}" = set; then
1759 enableval="$enable_select"
1760 opt_select=$enableval
1762 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1763 if test "${enable_separate_helpfiles+set}" = set; then
1764 enableval="$enable_separate_helpfiles"
1765 opt_separate_help=$enableval
1767 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1768 if test "${enable_single_help_strings+set}" = set; then
1769 enableval="$enable_single_help_strings"
1770 opt_single_longdoc_strings=$enableval
1772 # Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1773 if test "${enable_strict_posix_default+set}" = set; then
1774 enableval="$enable_strict_posix_default"
1775 opt_strict_posix=$enableval
1777 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1778 if test "${enable_usg_echo_default+set}" = set; then
1779 enableval="$enable_usg_echo_default"
1780 opt_xpg_echo=$enableval
1782 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1783 if test "${enable_xpg_echo_default+set}" = set; then
1784 enableval="$enable_xpg_echo_default"
1785 opt_xpg_echo=$enableval
1788 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1789 if test "${enable_mem_scramble+set}" = set; then
1790 enableval="$enable_mem_scramble"
1791 opt_memscramble=$enableval
1793 # Check whether --enable-profiling or --disable-profiling was given.
1794 if test "${enable_profiling+set}" = set; then
1795 enableval="$enable_profiling"
1796 opt_profiling=$enableval
1798 # Check whether --enable-static-link or --disable-static-link was given.
1799 if test "${enable_static_link+set}" = set; then
1800 enableval="$enable_static_link"
1801 opt_static_link=$enableval
1806 if test $opt_alias = yes; then
1807 cat >>confdefs.h <<\_ACEOF
1812 if test $opt_dirstack = yes; then
1813 cat >>confdefs.h <<\_ACEOF
1814 #define PUSHD_AND_POPD 1
1818 if test $opt_restricted = yes; then
1819 cat >>confdefs.h <<\_ACEOF
1820 #define RESTRICTED_SHELL 1
1824 if test $opt_process_subst = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define PROCESS_SUBSTITUTION 1
1830 if test $opt_prompt_decoding = yes; then
1831 cat >>confdefs.h <<\_ACEOF
1832 #define PROMPT_STRING_DECODE 1
1836 if test $opt_select = yes; then
1837 cat >>confdefs.h <<\_ACEOF
1838 #define SELECT_COMMAND 1
1842 if test $opt_help = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define HELP_BUILTIN 1
1848 if test $opt_array_variables = yes; then
1849 cat >>confdefs.h <<\_ACEOF
1850 #define ARRAY_VARS 1
1854 if test $opt_dparen_arith = yes; then
1855 cat >>confdefs.h <<\_ACEOF
1856 #define DPAREN_ARITHMETIC 1
1860 if test $opt_brace_expansion = yes; then
1861 cat >>confdefs.h <<\_ACEOF
1862 #define BRACE_EXPANSION 1
1866 if test $opt_disabled_builtins = yes; then
1867 cat >>confdefs.h <<\_ACEOF
1868 #define DISABLED_BUILTINS 1
1872 if test $opt_command_timing = yes; then
1873 cat >>confdefs.h <<\_ACEOF
1874 #define COMMAND_TIMING 1
1878 if test $opt_xpg_echo = yes ; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define DEFAULT_ECHO_TO_XPG 1
1884 if test $opt_strict_posix = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1886 #define STRICT_POSIX 1
1890 if test $opt_extended_glob = yes ; then
1891 cat >>confdefs.h <<\_ACEOF
1892 #define EXTENDED_GLOB 1
1896 if test $opt_cond_command = yes ; then
1897 cat >>confdefs.h <<\_ACEOF
1898 #define COND_COMMAND 1
1902 if test $opt_cond_regexp = yes ; then
1903 cat >>confdefs.h <<\_ACEOF
1904 #define COND_REGEXP 1
1908 if test $opt_arith_for_command = yes; then
1909 cat >>confdefs.h <<\_ACEOF
1910 #define ARITH_FOR_COMMAND 1
1914 if test $opt_net_redirs = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1916 #define NETWORK_REDIRECTIONS 1
1920 if test $opt_progcomp = yes; then
1921 cat >>confdefs.h <<\_ACEOF
1922 #define PROGRAMMABLE_COMPLETION 1
1926 if test $opt_multibyte = no; then
1927 cat >>confdefs.h <<\_ACEOF
1928 #define NO_MULTIBYTE_SUPPORT 1
1932 if test $opt_debugger = yes; then
1933 cat >>confdefs.h <<\_ACEOF
1939 if test $opt_memscramble = yes; then
1940 cat >>confdefs.h <<\_ACEOF
1941 #define MEMSCRAMBLE 1
1946 if test "$opt_minimal_config" = yes; then
1947 TESTSCRIPT=run-minimal
1952 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
1953 if test "$opt_separate_help" != no; then
1954 if test "$opt_separate_help" = "yes" ; then
1955 HELPDIR='${datadir}/bash'
1957 HELPDIR=$opt_separate_help
1959 HELPDIRDEFINE='-H ${HELPDIR}'
1960 HELPINSTALL='install-help'
1963 if test "$opt_single_longdoc_strings" != "yes"; then
1985 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$ac_cv_prog_CC"; then
2032 # Extract the first word of "gcc", so it can be a program name with args.
2033 set dummy gcc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$ac_ct_CC"; then
2040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_ac_ct_CC="gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2072 if test -z "$CC"; then
2073 if test -n "$ac_tool_prefix"; then
2074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2075 set dummy ${ac_tool_prefix}cc; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 ac_cv_prog_CC="${ac_tool_prefix}cc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 if test -n "$CC"; then
2102 echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6
2105 echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2110 if test -z "$ac_cv_prog_CC"; then
2112 # Extract the first word of "cc", so it can be a program name with args.
2113 set dummy cc; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$ac_ct_CC"; then
2120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_ac_ct_CC="cc"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6
2143 echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2153 if test -z "$CC"; then
2154 # Extract the first word of "cc", so it can be a program name with args.
2155 set dummy cc; ac_word=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC="$CC" # Let the user override the test.
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2173 ac_prog_rejected=yes
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 if test $ac_prog_rejected = yes; then
2184 # We found a bogon in the path, so make sure we never use it.
2185 set dummy $ac_cv_prog_CC
2187 if test $# != 0; then
2188 # We chose a different compiler from the bogus one.
2189 # However, it has the same basename, so the bogon will be chosen
2190 # first if we set CC to just the basename; use the full file name.
2192 set dummy "$as_dir/$ac_word" ${1+"$@"}
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2248 test -n "$CC" && break
2251 if test -z "$CC"; then
2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256 set dummy $ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 test -n "$ac_ct_CC" && break
2299 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2301 { (exit 1); exit 1; }; }
2303 # Provide some information about the compiler.
2304 echo "$as_me:$LINENO:" \
2305 "checking for C compiler version" >&5
2306 ac_compiler=`set X $ac_compile; echo $2`
2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2308 (eval $ac_compiler --version </dev/null >&5) 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2313 (eval $ac_compiler -v </dev/null >&5) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2318 (eval $ac_compiler -V </dev/null >&5) 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2327 #ifdef F77_DUMMY_MAIN
2331 int F77_DUMMY_MAIN() { return 1; }
2341 ac_clean_files_save=$ac_clean_files
2342 ac_clean_files="$ac_clean_files a.out a.exe"
2343 # Try to create an executable without -o first, disregard a.out.
2344 # It will help us diagnose broken compilers, and finding out an intuition
2346 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2347 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2348 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2349 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2350 (eval $ac_link_default) 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; then
2354 # Find the output, starting from the most likely. This scheme is
2355 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2358 # Be careful to initialize this variable, since it used to be cached.
2359 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2361 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2362 ls a.out conftest 2>/dev/null;
2363 ls a.* conftest.* 2>/dev/null`; do
2365 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2366 a.out ) # We found the default executable, but exeext='' is most
2369 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2377 echo "$as_me: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2380 echo "$as_me: error: C compiler cannot create executables" >&2;}
2381 { (exit 77); exit 77; }; }
2384 ac_exeext=$ac_cv_exeext
2385 echo "$as_me:$LINENO: result: $ac_file" >&5
2386 echo "${ECHO_T}$ac_file" >&6
2388 # Check the compiler produces executables we can run. If not, either
2389 # the compiler is broken, or we cross compile.
2390 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2391 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2392 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2393 # If not cross compiling, check that we can run a simple program.
2394 if test "$cross_compiling" != yes; then
2395 if { ac_try='./$ac_file'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 if test "$cross_compiling" = maybe; then
2406 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2407 If you meant to cross compile, use \`--host'." >&5
2408 echo "$as_me: error: cannot run C compiled programs.
2409 If you meant to cross compile, use \`--host'." >&2;}
2410 { (exit 1); exit 1; }; }
2414 echo "$as_me:$LINENO: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2417 rm -f a.out a.exe conftest$ac_cv_exeext
2418 ac_clean_files=$ac_clean_files_save
2419 # Check the compiler produces executables we can run. If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424 echo "${ECHO_T}$cross_compiling" >&6
2426 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2437 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2439 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2448 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2449 { (exit 1); exit 1; }; }
2452 rm -f conftest$ac_cv_exeext
2453 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2454 echo "${ECHO_T}$ac_cv_exeext" >&6
2456 rm -f conftest.$ac_ext
2457 EXEEXT=$ac_cv_exeext
2459 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2460 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2461 if test "${ac_cv_objext+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2468 #ifdef F77_DUMMY_MAIN
2472 int F77_DUMMY_MAIN() { return 1; }
2482 rm -f conftest.o conftest.obj
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2496 echo "$as_me: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2498 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2499 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2500 { (exit 1); exit 1; }; }
2503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2505 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2506 echo "${ECHO_T}$ac_cv_objext" >&6
2507 OBJEXT=$ac_cv_objext
2509 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2510 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2511 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 #include "confdefs.h"
2518 #ifdef F77_DUMMY_MAIN
2522 int F77_DUMMY_MAIN() { return 1; }
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2553 rm -f conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2557 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2559 GCC=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CFLAGS=${CFLAGS+set}
2561 ac_save_CFLAGS=$CFLAGS
2563 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2564 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2565 if test "${ac_cv_prog_cc_g+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #line $LINENO "configure"
2570 #include "confdefs.h"
2572 #ifdef F77_DUMMY_MAIN
2576 int F77_DUMMY_MAIN() { return 1; }
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2604 rm -f conftest.$ac_objext conftest.$ac_ext
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2608 if test "$ac_test_CFLAGS" = set; then
2609 CFLAGS=$ac_save_CFLAGS
2610 elif test $ac_cv_prog_cc_g = yes; then
2611 if test "$GCC" = yes; then
2617 if test "$GCC" = yes; then
2623 # Some people use a C++ compiler to compile C. Since we use `exit',
2624 # in C++ we need to declare it. In case someone uses the same compiler
2625 # for both compiling C and C++ we need to have the C++ compiler decide
2626 # the declaration of exit, since it's the most demanding environment.
2627 cat >conftest.$ac_ext <<_ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 for ac_declaration in \
2646 '#include <stdlib.h>' \
2647 'extern "C" void std::exit (int) throw (); using std::exit;' \
2648 'extern "C" void std::exit (int); using std::exit;' \
2649 'extern "C" void exit (int) throw ();' \
2650 'extern "C" void exit (int);' \
2653 cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2655 #include "confdefs.h"
2658 #ifdef F77_DUMMY_MAIN
2662 int F77_DUMMY_MAIN() { return 1; }
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2686 echo "$as_me: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2690 rm -f conftest.$ac_objext conftest.$ac_ext
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2695 #ifdef F77_DUMMY_MAIN
2699 int F77_DUMMY_MAIN() { return 1; }
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2723 echo "$as_me: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2726 rm -f conftest.$ac_objext conftest.$ac_ext
2729 if test -n "$ac_declaration"; then
2730 echo '#ifdef __cplusplus' >>confdefs.h
2731 echo $ac_declaration >>confdefs.h
2732 echo '#endif' >>confdefs.h
2736 echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2739 rm -f conftest.$ac_objext conftest.$ac_ext
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2750 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2751 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 ac_check_lib_save_LIBS=$LIBS
2755 LIBS="-lcposix $LIBS"
2756 cat >conftest.$ac_ext <<_ACEOF
2757 #line $LINENO "configure"
2758 #include "confdefs.h"
2760 /* Override any gcc2 internal prototype to avoid an error. */
2764 /* We use char because int might match the return type of a gcc2
2765 builtin and then its argument prototype would still apply. */
2767 #ifdef F77_DUMMY_MAIN
2771 int F77_DUMMY_MAIN() { return 1; }
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783 (eval $ac_link) 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -s conftest$ac_exeext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_lib_cposix_strerror=yes
2795 echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 ac_cv_lib_cposix_strerror=no
2799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2800 LIBS=$ac_check_lib_save_LIBS
2802 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2803 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2804 if test $ac_cv_lib_cposix_strerror = yes; then
2805 LIBS="$LIBS -lcposix"
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2817 # On Suns, sometimes $CPP names a directory.
2818 if test -n "$CPP" && test -d "$CPP"; then
2821 if test -z "$CPP"; then
2822 if test "${ac_cv_prog_CPP+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 # Double quotes because CPP needs to be expanded
2826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2829 for ac_c_preproc_warn_flag in '' yes
2831 # Use a header file that comes with gcc, so configuring glibc
2832 # with a fresh cross-compiler works.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2837 #include "confdefs.h"
2841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844 egrep -v '^ *\+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } >/dev/null; then
2849 if test -s conftest.err; then
2850 ac_cpp_err=$ac_c_preproc_warn_flag
2857 if test -z "$ac_cpp_err"; then
2860 echo "$as_me: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 # Broken: fails on valid input.
2865 rm -f conftest.err conftest.$ac_ext
2867 # OK, works on sane cases. Now check whether non-existent headers
2868 # can be detected and how.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 #include "confdefs.h"
2872 #include <ac_nonexistent.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 egrep -v '^ *\+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2890 if test -z "$ac_cpp_err"; then
2891 # Broken: success on invalid input.
2894 echo "$as_me: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 # Passes both tests.
2900 rm -f conftest.err conftest.$ac_ext
2903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2904 rm -f conftest.err conftest.$ac_ext
2905 if $ac_preproc_ok; then
2917 echo "$as_me:$LINENO: result: $CPP" >&5
2918 echo "${ECHO_T}$CPP" >&6
2920 for ac_c_preproc_warn_flag in '' yes
2922 # Use a header file that comes with gcc, so configuring glibc
2923 # with a fresh cross-compiler works.
2924 # On the NeXT, cc -E runs the code through the compiler's parser,
2925 # not just through cpp. "Syntax error" is here to catch this case.
2926 cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 #include "confdefs.h"
2932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935 egrep -v '^ *\+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } >/dev/null; then
2940 if test -s conftest.err; then
2941 ac_cpp_err=$ac_c_preproc_warn_flag
2948 if test -z "$ac_cpp_err"; then
2951 echo "$as_me: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 # Broken: fails on valid input.
2956 rm -f conftest.err conftest.$ac_ext
2958 # OK, works on sane cases. Now check whether non-existent headers
2959 # can be detected and how.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 #include "confdefs.h"
2963 #include <ac_nonexistent.h>
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 egrep -v '^ *\+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null; then
2973 if test -s conftest.err; then
2974 ac_cpp_err=$ac_c_preproc_warn_flag
2981 if test -z "$ac_cpp_err"; then
2982 # Broken: success on invalid input.
2985 echo "$as_me: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2987 # Passes both tests.
2991 rm -f conftest.err conftest.$ac_ext
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3000 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3001 { (exit 1); exit 1; }; }
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013 if test "${ac_cv_header_stdc+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3018 #include "confdefs.h"
3025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 egrep -v '^ *\+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } >/dev/null; then
3033 if test -s conftest.err; then
3034 ac_cpp_err=$ac_c_preproc_warn_flag
3041 if test -z "$ac_cpp_err"; then
3042 ac_cv_header_stdc=yes
3044 echo "$as_me: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 ac_cv_header_stdc=no
3048 rm -f conftest.err conftest.$ac_ext
3050 if test $ac_cv_header_stdc = yes; then
3051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3052 cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3054 #include "confdefs.h"
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059 egrep "memchr" >/dev/null 2>&1; then
3062 ac_cv_header_stdc=no
3068 if test $ac_cv_header_stdc = yes; then
3069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 #include "confdefs.h"
3076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077 egrep "free" >/dev/null 2>&1; then
3080 ac_cv_header_stdc=no
3086 if test $ac_cv_header_stdc = yes; then
3087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3088 if test "$cross_compiling" = yes; then
3091 cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 #include "confdefs.h"
3095 #if ((' ' & 0x0FF) == 0x020)
3096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3099 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3100 || ('j' <= (c) && (c) <= 'r') \
3101 || ('s' <= (c) && (c) <= 'z'))
3102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3110 for (i = 0; i < 256; i++)
3111 if (XOR (islower (i), ISLOWER (i))
3112 || toupper (i) != TOUPPER (i))
3117 rm -f conftest$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119 (eval $ac_link) 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 echo "$as_me: program exited with status $ac_status" >&5
3131 echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 ac_cv_header_stdc=no
3136 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3140 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3141 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3142 if test $ac_cv_header_stdc = yes; then
3144 cat >>confdefs.h <<\_ACEOF
3145 #define STDC_HEADERS 1
3150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3161 inttypes.h stdint.h unistd.h
3163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3164 echo "$as_me:$LINENO: checking for $ac_header" >&5
3165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3172 $ac_includes_default
3174 #include <$ac_header>
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 eval "$as_ac_Header=yes"
3190 echo "$as_me: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 eval "$as_ac_Header=no"
3194 rm -f conftest.$ac_objext conftest.$ac_ext
3196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3199 cat >>confdefs.h <<_ACEOF
3200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3208 if test "${ac_cv_header_minix_config_h+set}" = set; then
3209 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3210 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3211 if test "${ac_cv_header_minix_config_h+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3215 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3217 # Is the header compilable?
3218 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3219 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3222 #include "confdefs.h"
3223 $ac_includes_default
3224 #include <minix/config.h>
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_header_compiler=yes
3240 echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 ac_header_compiler=no
3244 rm -f conftest.$ac_objext conftest.$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3246 echo "${ECHO_T}$ac_header_compiler" >&6
3248 # Is the header present?
3249 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3250 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3251 cat >conftest.$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3253 #include "confdefs.h"
3254 #include <minix/config.h>
3256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3259 egrep -v '^ *\+' conftest.er1 >conftest.err
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } >/dev/null; then
3264 if test -s conftest.err; then
3265 ac_cpp_err=$ac_c_preproc_warn_flag
3272 if test -z "$ac_cpp_err"; then
3273 ac_header_preproc=yes
3275 echo "$as_me: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 ac_header_preproc=no
3279 rm -f conftest.err conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3281 echo "${ECHO_T}$ac_header_preproc" >&6
3283 # So? What about this header?
3284 case $ac_header_compiler:$ac_header_preproc in
3286 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3287 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3288 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3289 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3291 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3292 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3293 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3294 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3295 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3296 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3298 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3299 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3300 if test "${ac_cv_header_minix_config_h+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_header_minix_config_h=$ac_header_preproc
3305 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3306 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3309 if test $ac_cv_header_minix_config_h = yes; then
3316 if test "$MINIX" = yes; then
3318 cat >>confdefs.h <<\_ACEOF
3319 #define _POSIX_SOURCE 1
3323 cat >>confdefs.h <<\_ACEOF
3324 #define _POSIX_1_SOURCE 2
3328 cat >>confdefs.h <<\_ACEOF
3335 # Check whether --enable-largefile or --disable-largefile was given.
3336 if test "${enable_largefile+set}" = set; then
3337 enableval="$enable_largefile"
3340 if test "$enable_largefile" != no; then
3342 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3343 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3344 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_sys_largefile_CC=no
3348 if test "$GCC" != yes; then
3351 # IRIX 6.2 and later do not support large files by default,
3352 # so use the C compiler's -n32 option if that helps.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3357 /* Check that off_t can represent 2**63 - 1 correctly.
3358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3359 since some C++ compilers masquerading as C compilers
3360 incorrectly reject 9223372036854775807. */
3361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3363 && LARGE_OFF_T % 2147483647 == 1)
3365 #ifdef F77_DUMMY_MAIN
3369 int F77_DUMMY_MAIN() { return 1; }
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 rm -f conftest.$ac_objext
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 ac_cv_sys_largefile_CC=' -n32'; break
3412 echo "$as_me: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3415 rm -f conftest.$ac_objext
3419 rm -f conftest.$ac_ext
3422 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3423 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3424 if test "$ac_cv_sys_largefile_CC" != no; then
3425 CC=$CC$ac_cv_sys_largefile_CC
3428 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3429 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3430 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 ac_cv_sys_file_offset_bits=no
3435 cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 #include "confdefs.h"
3438 #include <sys/types.h>
3439 /* Check that off_t can represent 2**63 - 1 correctly.
3440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3441 since some C++ compilers masquerading as C compilers
3442 incorrectly reject 9223372036854775807. */
3443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3445 && LARGE_OFF_T % 2147483647 == 1)
3447 #ifdef F77_DUMMY_MAIN
3451 int F77_DUMMY_MAIN() { return 1; }
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3475 echo "$as_me: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3482 #define _FILE_OFFSET_BITS 64
3483 #include <sys/types.h>
3484 /* Check that off_t can represent 2**63 - 1 correctly.
3485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3486 since some C++ compilers masquerading as C compilers
3487 incorrectly reject 9223372036854775807. */
3488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3490 && LARGE_OFF_T % 2147483647 == 1)
3492 #ifdef F77_DUMMY_MAIN
3496 int F77_DUMMY_MAIN() { return 1; }
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_cv_sys_file_offset_bits=64; break
3520 echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 rm -f conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3528 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3529 if test "$ac_cv_sys_file_offset_bits" != no; then
3531 cat >>confdefs.h <<_ACEOF
3532 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3537 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3538 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3539 if test "${ac_cv_sys_large_files+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_cv_sys_large_files=no
3544 cat >conftest.$ac_ext <<_ACEOF
3545 #line $LINENO "configure"
3546 #include "confdefs.h"
3547 #include <sys/types.h>
3548 /* Check that off_t can represent 2**63 - 1 correctly.
3549 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3550 since some C++ compilers masquerading as C compilers
3551 incorrectly reject 9223372036854775807. */
3552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3553 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3554 && LARGE_OFF_T % 2147483647 == 1)
3556 #ifdef F77_DUMMY_MAIN
3560 int F77_DUMMY_MAIN() { return 1; }
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3584 echo "$as_me: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3587 rm -f conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3591 #define _LARGE_FILES 1
3592 #include <sys/types.h>
3593 /* Check that off_t can represent 2**63 - 1 correctly.
3594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3595 since some C++ compilers masquerading as C compilers
3596 incorrectly reject 9223372036854775807. */
3597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3599 && LARGE_OFF_T % 2147483647 == 1)
3601 #ifdef F77_DUMMY_MAIN
3605 int F77_DUMMY_MAIN() { return 1; }
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_sys_large_files=1; break
3629 echo "$as_me: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3636 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3637 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3638 if test "$ac_cv_sys_large_files" != no; then
3640 cat >>confdefs.h <<_ACEOF
3641 #define _LARGE_FILES $ac_cv_sys_large_files
3650 SIGNAMES_H=lsignames.h
3654 if test "x$cross_compiling" = "xyes"; then
3657 cross_cache=${srcdir}/cross-build/cygwin32.cache
3658 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
3661 cross_cache=${srcdir}/cross-build/cygwin32.cache
3664 cross_cache=${srcdir}/cross-build/x86-beos.cache
3665 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
3667 *) echo "configure: cross-compiling for $host is not supported" >&2
3670 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
3671 echo "loading cross-build cache file ${cross_cache}"
3675 CROSS_COMPILE='-DCROSS_COMPILING'
3680 if test -z "$CC_FOR_BUILD"; then
3681 if test "x$cross_compiling" = "xno"; then
3682 CC_FOR_BUILD='$(CC)'
3690 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
3692 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
3694 if test "$opt_profiling" = "yes"; then
3698 *) opt_static_link=yes ;;
3700 DEBUG= MALLOC_DEBUG=
3703 if test "$opt_static_link" = yes; then
3704 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
3705 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
3709 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
3714 if test "X$cross_compiling" = "Xno"; then
3715 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
3716 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
3718 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
3719 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
3722 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
3733 if test $ac_cv_c_compiler_gnu = yes; then
3734 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3735 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3736 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_pattern="Autoconf.*'x'"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 #include "confdefs.h"
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 egrep "$ac_pattern" >/dev/null 2>&1; then
3748 ac_cv_prog_gcc_traditional=yes
3750 ac_cv_prog_gcc_traditional=no
3755 if test $ac_cv_prog_gcc_traditional = no; then
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3758 #include "confdefs.h"
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 egrep "$ac_pattern" >/dev/null 2>&1; then
3764 ac_cv_prog_gcc_traditional=yes
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3771 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3772 if test $ac_cv_prog_gcc_traditional = yes; then
3773 CC="$CC -traditional"
3779 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
3781 # If the user specified --with-installed-readline=PREFIX and PREFIX
3782 # is not `yes', set ac_cv_rl_prefix to PREFIX
3783 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
3786 if test "X$bash_cv_termcap_lib" = "X"; then
3789 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
3790 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
3793 if test "${bash_cv_termcap_lib+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 echo "$as_me:$LINENO: checking for tgetent" >&5
3797 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
3798 if test "${ac_cv_func_tgetent+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char tgetent (); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3816 #ifdef F77_DUMMY_MAIN
3820 int F77_DUMMY_MAIN() { return 1; }
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_tgetent) || defined (__stub___tgetent)
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840 (eval $ac_link) 2>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_cv_func_tgetent=yes
3852 echo "$as_me: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 ac_cv_func_tgetent=no
3856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3858 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
3859 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
3860 if test $ac_cv_func_tgetent = yes; then
3861 bash_cv_termcap_lib=libc
3863 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
3864 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
3865 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_check_lib_save_LIBS=$LIBS
3869 LIBS="-ltermcap $LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 #line $LINENO "configure"
3872 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3878 /* We use char because int might match the return type of a gcc2
3879 builtin and then its argument prototype would still apply. */
3881 #ifdef F77_DUMMY_MAIN
3885 int F77_DUMMY_MAIN() { return 1; }
3895 rm -f conftest.$ac_objext conftest$ac_exeext
3896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3897 (eval $ac_link) 2>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -s conftest$ac_exeext'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; }; then
3907 ac_cv_lib_termcap_tgetent=yes
3909 echo "$as_me: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 ac_cv_lib_termcap_tgetent=no
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3917 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3918 if test $ac_cv_lib_termcap_tgetent = yes; then
3919 bash_cv_termcap_lib=libtermcap
3921 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
3922 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
3923 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 ac_check_lib_save_LIBS=$LIBS
3927 LIBS="-ltinfo $LIBS"
3928 cat >conftest.$ac_ext <<_ACEOF
3929 #line $LINENO "configure"
3930 #include "confdefs.h"
3932 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3939 #ifdef F77_DUMMY_MAIN
3943 int F77_DUMMY_MAIN() { return 1; }
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955 (eval $ac_link) 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -s conftest$ac_exeext'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3965 ac_cv_lib_tinfo_tgetent=yes
3967 echo "$as_me: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3969 ac_cv_lib_tinfo_tgetent=no
3971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3972 LIBS=$ac_check_lib_save_LIBS
3974 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
3975 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
3976 if test $ac_cv_lib_tinfo_tgetent = yes; then
3977 bash_cv_termcap_lib=libtinfo
3979 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
3980 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
3981 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 ac_check_lib_save_LIBS=$LIBS
3985 LIBS="-lcurses $LIBS"
3986 cat >conftest.$ac_ext <<_ACEOF
3987 #line $LINENO "configure"
3988 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3997 #ifdef F77_DUMMY_MAIN
4001 int F77_DUMMY_MAIN() { return 1; }
4011 rm -f conftest.$ac_objext conftest$ac_exeext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013 (eval $ac_link) 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -s conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_lib_curses_tgetent=yes
4025 echo "$as_me: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4027 ac_cv_lib_curses_tgetent=no
4029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4030 LIBS=$ac_check_lib_save_LIBS
4032 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4033 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4034 if test $ac_cv_lib_curses_tgetent = yes; then
4035 bash_cv_termcap_lib=libcurses
4037 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4038 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4039 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 ac_check_lib_save_LIBS=$LIBS
4043 LIBS="-lncurses $LIBS"
4044 cat >conftest.$ac_ext <<_ACEOF
4045 #line $LINENO "configure"
4046 #include "confdefs.h"
4048 /* Override any gcc2 internal prototype to avoid an error. */
4052 /* We use char because int might match the return type of a gcc2
4053 builtin and then its argument prototype would still apply. */
4055 #ifdef F77_DUMMY_MAIN
4059 int F77_DUMMY_MAIN() { return 1; }
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071 (eval $ac_link) 2>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -s conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_cv_lib_ncurses_tgetent=yes
4083 echo "$as_me: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4085 ac_cv_lib_ncurses_tgetent=no
4087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4088 LIBS=$ac_check_lib_save_LIBS
4090 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4091 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4092 if test $ac_cv_lib_ncurses_tgetent = yes; then
4093 bash_cv_termcap_lib=libncurses
4095 bash_cv_termcap_lib=gnutermcap
4108 if test "X$_bash_needmsg" = "Xyes"; then
4109 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4110 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4112 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4113 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4114 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4115 LDFLAGS="$LDFLAGS -L./lib/termcap"
4116 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4117 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4118 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4119 TERMCAP_LIB=-ltermcap
4121 elif test $bash_cv_termcap_lib = libtinfo; then
4124 elif test $bash_cv_termcap_lib = libncurses; then
4125 TERMCAP_LIB=-lncurses
4127 elif test $bash_cv_termcap_lib = libc; then
4131 TERMCAP_LIB=-lcurses
4138 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4139 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4141 # What a pain in the ass this is.
4143 # save cpp and ld options
4144 _save_CFLAGS="$CFLAGS"
4145 _save_LDFLAGS="$LDFLAGS"
4148 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4149 # allows the caller to do something like $_rl_prefix=$withval if the user
4150 # specifies --with-installed-readline=PREFIX as an argument to configure
4152 if test -z "$ac_cv_rl_prefix"; then
4153 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4156 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4157 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4159 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4160 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4161 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4163 if test "${ac_cv_rl_version+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test "$cross_compiling" = yes; then
4167 ac_cv_rl_version='4.2'
4169 cat >conftest.$ac_ext <<_ACEOF
4170 #line $LINENO "configure"
4171 #include "confdefs.h"
4174 #include <readline/readline.h>
4176 extern int rl_gnu_readline_p;
4181 fp = fopen("conftest.rlv", "w");
4184 if (rl_gnu_readline_p != 1)
4185 fprintf(fp, "0.0\n");
4187 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4193 rm -f conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 ac_cv_rl_version=`cat conftest.rlv`
4206 echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 ac_cv_rl_version='0.0'
4212 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 CFLAGS="$_save_CFLAGS"
4218 LDFLAGS="$_save_LDFLAGS"
4225 case "$ac_cv_rl_version" in
4226 2*|3*|4*|5*|6*|7*|8*|9*)
4227 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4228 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4234 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4235 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4241 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4242 [0-9]) _RL_MINOR=0$RL_MINOR ;;
4246 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4248 # Readline versions greater than 4.2 have these defines in readline.h
4250 if test $ac_cv_rl_version = '0.0' ; then
4251 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4252 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4253 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4254 # set these for use by the caller
4255 RL_PREFIX=$ac_cv_rl_prefix
4256 RL_LIBDIR=$ac_cv_rl_libdir
4257 RL_INCLUDEDIR=$ac_cv_rl_includedir
4258 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4259 echo "${ECHO_T}$ac_cv_rl_version" >&6
4263 cat >>confdefs.h <<_ACEOF
4264 #define RL_READLINE_VERSION $RL_VERSION
4268 cat >>confdefs.h <<_ACEOF
4269 #define RL_VERSION_MAJOR $RL_MAJOR
4273 cat >>confdefs.h <<_ACEOF
4274 #define RL_VERSION_MINOR $RL_MINOR
4282 # set these for use by the caller
4283 RL_PREFIX=$ac_cv_rl_prefix
4284 RL_LIBDIR=$ac_cv_rl_libdir
4285 RL_INCLUDEDIR=$ac_cv_rl_includedir
4287 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4288 echo "${ECHO_T}$ac_cv_rl_version" >&6
4293 case "$ac_cv_rl_version" in
4295 *) opt_with_installed_readline=no
4296 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4297 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4298 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4299 echo "$as_me: WARNING: using private bash version" >&2;}
4305 if test $opt_readline = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4310 if test "$opt_with_installed_readline" != "no" ; then
4311 case "$opt_with_installed_readline" in
4313 *) case "$RL_INCLUDEDIR" in
4315 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4320 READLINE_LIB=-lreadline
4321 # section for OS versions that don't allow unresolved symbols
4322 # to be compiled into dynamic libraries.
4324 cygwin*) TILDE_LIB= ;;
4327 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4328 READLINE_DEP='$(READLINE_LIBRARY)'
4329 # section for OS versions that ship an older/broken version of
4330 # readline as a standard dynamic library and don't allow a
4331 # static version specified as -llibname to override the
4333 case "${host_os}" in
4334 darwin8*) READLINE_LIB='${READLINE_LIBRARY}' ;;
4335 *) READLINE_LIB=-lreadline ;;
4339 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4340 READLINE_LIB= READLINE_DEP=
4342 if test $opt_history = yes || test $opt_bang_history = yes; then
4343 if test $opt_history = yes; then
4344 cat >>confdefs.h <<\_ACEOF
4349 if test $opt_bang_history = yes; then
4350 cat >>confdefs.h <<\_ACEOF
4351 #define BANG_HISTORY 1
4355 if test "$opt_with_installed_readline" != "no"; then
4356 HIST_LIBDIR=$RL_LIBDIR
4358 HISTORY_LIB=-lhistory
4359 case "$opt_with_installed_readline" in
4361 *) case "$RL_INCLUDEDIR" in
4363 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4368 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4369 HISTORY_DEP='$(HISTORY_LIBRARY)'
4370 # section for OS versions that ship an older version of
4371 # readline as a standard dynamic library and don't allow a
4372 # static version specified as -llibname to override the
4374 case "${host_os}" in
4375 darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4376 *) HISTORY_LIB=-lhistory ;;
4380 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4381 HISTORY_LIB= HISTORY_DEP=
4394 # Find a good install program. We prefer a C program (faster),
4395 # so one script is as good as another. But avoid the broken or
4396 # incompatible versions:
4397 # SysV /etc/install, /usr/sbin/install
4398 # SunOS /usr/etc/install
4399 # IRIX /sbin/install
4401 # AmigaOS /C/install, which installs bootblocks on floppy discs
4402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4405 # ./install, which can be erroneously created by make from ./install.sh.
4406 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4408 if test -z "$INSTALL"; then
4409 if test "${ac_cv_path_install+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 # Account for people who put trailing slashes in PATH elements.
4419 ./ | .// | /cC/* | \
4420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4423 # OSF1 and SCO ODT 3.0 have their own names for install.
4424 # Don't use installbsd from OSF since it installs stuff as root
4426 for ac_prog in ginstall scoinst install; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4429 if test $ac_prog = install &&
4430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4431 # AIX install. It has an incompatible calling convention.
4433 elif test $ac_prog = install &&
4434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # program-specific install script used by HP pwplus--don't use.
4438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4450 if test "${ac_cv_path_install+set}" = set; then
4451 INSTALL=$ac_cv_path_install
4453 # As a last resort, use the slow shell script. We don't cache a
4454 # path for INSTALL within a source directory, because that will
4455 # break other packages using the cache if that directory is
4456 # removed, or if the path is relative.
4457 INSTALL=$ac_install_sh
4460 echo "$as_me:$LINENO: result: $INSTALL" >&5
4461 echo "${ECHO_T}$INSTALL" >&6
4463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4464 # It thinks the first close brace ends the variable substitution.
4465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4471 # Extract the first word of "ar", so it can be a program name with args.
4472 set dummy ar; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_AR+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$AR"; then
4479 ac_cv_prog_AR="$AR" # Let the user override the test.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4499 if test -n "$AR"; then
4500 echo "$as_me:$LINENO: result: $AR" >&5
4501 echo "${ECHO_T}$AR" >&6
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4507 test -n "$ARFLAGS" || ARFLAGS="cr"
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_prog_RANLIB+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 if test -n "$RANLIB"; then
4517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 RANLIB=$ac_cv_prog_RANLIB
4536 if test -n "$RANLIB"; then
4537 echo "$as_me:$LINENO: result: $RANLIB" >&5
4538 echo "${ECHO_T}$RANLIB" >&6
4540 echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4545 if test -z "$ac_cv_prog_RANLIB"; then
4546 ac_ct_RANLIB=$RANLIB
4547 # Extract the first word of "ranlib", so it can be a program name with args.
4548 set dummy ranlib; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test -n "$ac_ct_RANLIB"; then
4555 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_ac_ct_RANLIB="ranlib"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4574 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4575 if test -n "$ac_ct_RANLIB"; then
4576 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4577 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4583 RANLIB=$ac_ct_RANLIB
4585 RANLIB="$ac_cv_prog_RANLIB"
4588 for ac_prog in 'bison -y' byacc
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_YACC+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$YACC"; then
4598 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_YACC="$ac_prog"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 YACC=$ac_cv_prog_YACC
4617 if test -n "$YACC"; then
4618 echo "$as_me:$LINENO: result: $YACC" >&5
4619 echo "${ECHO_T}$YACC" >&6
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4625 test -n "$YACC" && break
4627 test -n "$YACC" || YACC="yacc"
4629 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
4630 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4631 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4632 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 cat >conftest.make <<\_ACEOF
4637 @echo 'ac_maketemp="${MAKE}"'
4639 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4640 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4641 if test -n "$ac_maketemp"; then
4642 eval ac_cv_prog_make_${ac_make}_set=yes
4644 eval ac_cv_prog_make_${ac_make}_set=no
4648 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4649 echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 SET_MAKE="MAKE=${MAKE-make}"
4660 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
4661 *) MAKE_SHELL=/bin/sh ;;
4665 if test x$SIZE = x; then
4666 if test x$ac_tool_prefix = x; then
4669 SIZE=${ac_tool_prefix}size
4670 save_IFS=$IFS ; IFS=:
4672 for dir in $PATH; do
4673 if test -x $dir/$SIZE ; then
4678 if test $size_found -eq 0; then
4686 cat >>confdefs.h <<\_ACEOF
4687 #define _GNU_SOURCE 1
4691 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4692 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4693 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 ac_cv_prog_cc_stdc=no
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 #include "confdefs.h"
4703 #include <sys/types.h>
4704 #include <sys/stat.h>
4705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4706 struct buf { int x; };
4707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708 static char *e (p, i)
4714 static char *f (char * (*g) (char **, int), char **p, ...)
4719 s = g (p, va_arg (v,int));
4723 int test (int i, double x);
4724 struct s1 {int (*f) (int a);};
4725 struct s2 {int (*f) (double a);};
4726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4729 #ifdef F77_DUMMY_MAIN
4733 int F77_DUMMY_MAIN() { return 1; }
4738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4743 # Don't try gcc -ansi; that turns off useful extensions and
4744 # breaks some systems' header files.
4745 # AIX -qlanglvl=ansi
4746 # Ultrix and OSF/1 -std1
4747 # HP-UX 10.20 and later -Ae
4748 # HP-UX older versions -Aa -D_HPUX_SOURCE
4749 # SVR4 -Xc -D__EXTENSIONS__
4750 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4752 CC="$ac_save_CC $ac_arg"
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755 (eval $ac_compile) 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_prog_cc_stdc=$ac_arg
4768 echo "$as_me: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 rm -f conftest.$ac_objext
4773 rm -f conftest.$ac_ext conftest.$ac_objext
4778 case "x$ac_cv_prog_cc_stdc" in
4780 echo "$as_me:$LINENO: result: none needed" >&5
4781 echo "${ECHO_T}none needed" >&6 ;;
4783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4784 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4785 CC="$CC $ac_cv_prog_cc_stdc" ;;
4788 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4789 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4790 if test "${ac_cv_c_const+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 #include "confdefs.h"
4797 #ifdef F77_DUMMY_MAIN
4801 int F77_DUMMY_MAIN() { return 1; }
4806 /* FIXME: Include the comments suggested by Paul. */
4808 /* Ultrix mips cc rejects this. */
4809 typedef int charset[2];
4811 /* SunOS 4.1.1 cc rejects this. */
4812 char const *const *ccp;
4814 /* NEC SVR4.0.2 mips cc rejects this. */
4815 struct point {int x, y;};
4816 static struct point const zero = {0,0};
4817 /* AIX XL C 1.02.0.0 rejects this.
4818 It does not let you subtract one const X* pointer from another in
4819 an arm of an if-expression whose if-part is not a constant
4821 const char *g = "string";
4822 ccp = &g + (g ? g-g : 0);
4823 /* HPUX 7.0 cc rejects these. */
4826 ccp = (char const *const *) p;
4827 { /* SCO 3.2v4 cc rejects this. */
4829 char const *s = 0 ? (char *) 0 : (char const *) 0;
4833 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4835 const int *foo = &x[0];
4838 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4839 typedef const int *iptr;
4843 { /* AIX XL C 1.02.0.0 rejects this saying
4844 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4845 struct s { int j; const int *ap[3]; };
4846 struct s *b; b->j = 5;
4848 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4871 echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4875 rm -f conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4878 echo "${ECHO_T}$ac_cv_c_const" >&6
4879 if test $ac_cv_c_const = no; then
4881 cat >>confdefs.h <<\_ACEOF
4887 echo "$as_me:$LINENO: checking for inline" >&5
4888 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4889 if test "${ac_cv_c_inline+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 for ac_kw in inline __inline__ __inline; do
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4898 static $ac_kw int static_foo () {return 0; }
4899 $ac_kw int foo () {return 0; }
4903 rm -f conftest.$ac_objext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4905 (eval $ac_compile) 2>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_c_inline=$ac_kw; break
4917 echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 rm -f conftest.$ac_objext conftest.$ac_ext
4924 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4925 echo "${ECHO_T}$ac_cv_c_inline" >&6
4926 case $ac_cv_c_inline in
4929 cat >>confdefs.h <<\_ACEOF
4933 *) cat >>confdefs.h <<_ACEOF
4934 #define inline $ac_cv_c_inline
4939 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4940 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4941 if test "${ac_cv_c_bigendian+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 # See if sys/param.h defines the BYTE_ORDER macro.
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 #include "confdefs.h"
4948 #include <sys/types.h>
4949 #include <sys/param.h>
4951 #ifdef F77_DUMMY_MAIN
4955 int F77_DUMMY_MAIN() { return 1; }
4960 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 # It does; now see whether it defined to BIG_ENDIAN or not.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 #include "confdefs.h"
4984 #include <sys/types.h>
4985 #include <sys/param.h>
4987 #ifdef F77_DUMMY_MAIN
4991 int F77_DUMMY_MAIN() { return 1; }
4996 #if BYTE_ORDER != BIG_ENDIAN
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_c_bigendian=yes
5018 echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_c_bigendian=no
5022 rm -f conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 # It does not; compile a test program.
5027 if test "$cross_compiling" = yes; then
5028 # try to guess the endianess by grep'ing values into an object file
5029 ac_cv_c_bigendian=unknown
5030 cat >conftest.$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5032 #include "confdefs.h"
5033 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5034 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5035 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5036 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5037 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5038 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5039 #ifdef F77_DUMMY_MAIN
5043 int F77_DUMMY_MAIN() { return 1; }
5048 _ascii (); _ebcdic ();
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5066 ac_cv_c_bigendian=yes
5068 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5069 if test "$ac_cv_c_bigendian" = unknown; then
5070 ac_cv_c_bigendian=no
5072 # finding both strings is unlikely to happen, but who knows?
5073 ac_cv_c_bigendian=unknown
5077 echo "$as_me: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5080 rm -f conftest.$ac_objext conftest.$ac_ext
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 #include "confdefs.h"
5088 /* Are we little or big endian? From Harbison&Steele. */
5092 char c[sizeof (long)];
5095 exit (u.c[sizeof (long) - 1] == 1);
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100 (eval $ac_link) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_cv_c_bigendian=no
5111 echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5115 ac_cv_c_bigendian=yes
5117 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5120 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5123 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5124 case $ac_cv_c_bigendian in
5127 cat >>confdefs.h <<\_ACEOF
5128 #define WORDS_BIGENDIAN 1
5134 { { echo "$as_me:$LINENO: error: unknown endianess
5135 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5136 echo "$as_me: error: unknown endianess
5137 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5142 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5143 if test "${ac_cv_c_stringize+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 #include "confdefs.h"
5151 char *s = x(teststring);
5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5154 egrep "#teststring" >/dev/null 2>&1; then
5155 ac_cv_c_stringize=no
5157 ac_cv_c_stringize=yes
5162 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5163 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5164 if test $ac_cv_c_stringize = yes; then
5166 cat >>confdefs.h <<\_ACEOF
5167 #define HAVE_STRINGIZE 1
5172 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5173 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5174 if test "${ac_cv_c_long_double+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 cat >conftest.$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5181 long double foo = 0.0;
5182 #ifdef F77_DUMMY_MAIN
5186 int F77_DUMMY_MAIN() { return 1; }
5191 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5192 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5193 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_c_long_double=yes
5214 echo "$as_me: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5216 ac_cv_c_long_double=no
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5220 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5221 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5222 if test $ac_cv_c_long_double = yes; then
5224 cat >>confdefs.h <<\_ACEOF
5225 #define HAVE_LONG_DOUBLE 1
5230 echo "$as_me:$LINENO: checking for function prototypes" >&5
5231 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5232 if test "$ac_cv_prog_cc_stdc" != no; then
5233 echo "$as_me:$LINENO: result: yes" >&5
5234 echo "${ECHO_T}yes" >&6
5236 cat >>confdefs.h <<\_ACEOF
5237 #define PROTOTYPES 1
5241 cat >>confdefs.h <<\_ACEOF
5242 #define __PROTOTYPES 1
5246 echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6
5251 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5252 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5253 if test "${ac_cv_c_char_unsigned+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 cat >conftest.$ac_ext <<_ACEOF
5257 #line $LINENO "configure"
5258 #include "confdefs.h"
5259 $ac_includes_default
5260 #ifdef F77_DUMMY_MAIN
5264 int F77_DUMMY_MAIN() { return 1; }
5269 static int test_array [1 - 2 * !(((char) -1) < 0)];
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_c_char_unsigned=no
5290 echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 ac_cv_c_char_unsigned=yes
5294 rm -f conftest.$ac_objext conftest.$ac_ext
5296 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5297 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5298 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5299 cat >>confdefs.h <<\_ACEOF
5300 #define __CHAR_UNSIGNED__ 1
5308 if test -n "$ac_aux_dir"; then
5309 case "$ac_aux_dir" in
5310 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5311 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5314 if test -z "$MKINSTALLDIRS"; then
5315 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5320 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5321 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5322 # Check whether --enable-nls or --disable-nls was given.
5323 if test "${enable_nls+set}" = set; then
5324 enableval="$enable_nls"
5329 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5330 echo "${ECHO_T}$USE_NLS" >&6
5337 # Prepare PATH_SEPARATOR.
5338 # The user is always right.
5339 if test "${PATH_SEPARATOR+set}" != set; then
5340 echo "#! /bin/sh" >conf$$.sh
5341 echo "exit 0" >>conf$$.sh
5343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5351 # Find out how to test for executable files. Don't use a zero-byte file,
5352 # as systems may use methods other than mode bits to determine executability.
5353 cat >conf$$.file <<_ASEOF
5357 chmod +x conf$$.file
5358 if test -x conf$$.file >/dev/null 2>&1; then
5359 ac_executable_p="test -x"
5361 ac_executable_p="test -f"
5365 # Extract the first word of "msgfmt", so it can be a program name with args.
5366 set dummy msgfmt; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_path_MSGFMT+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5377 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5378 for ac_dir in $PATH; do
5380 test -z "$ac_dir" && ac_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5383 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5384 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5385 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5392 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5396 MSGFMT="$ac_cv_path_MSGFMT"
5397 if test "$MSGFMT" != ":"; then
5398 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5399 echo "${ECHO_T}$MSGFMT" >&6
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5405 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5406 set dummy gmsgfmt; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5435 GMSGFMT=$ac_cv_path_GMSGFMT
5437 if test -n "$GMSGFMT"; then
5438 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5439 echo "${ECHO_T}$GMSGFMT" >&6
5441 echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5447 # Prepare PATH_SEPARATOR.
5448 # The user is always right.
5449 if test "${PATH_SEPARATOR+set}" != set; then
5450 echo "#! /bin/sh" >conf$$.sh
5451 echo "exit 0" >>conf$$.sh
5453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5461 # Find out how to test for executable files. Don't use a zero-byte file,
5462 # as systems may use methods other than mode bits to determine executability.
5463 cat >conf$$.file <<_ASEOF
5467 chmod +x conf$$.file
5468 if test -x conf$$.file >/dev/null 2>&1; then
5469 ac_executable_p="test -x"
5471 ac_executable_p="test -f"
5475 # Extract the first word of "xgettext", so it can be a program name with args.
5476 set dummy xgettext; ac_word=$2
5477 echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5487 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5488 for ac_dir in $PATH; do
5490 test -z "$ac_dir" && ac_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5493 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5494 (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
5495 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5506 XGETTEXT="$ac_cv_path_XGETTEXT"
5507 if test "$XGETTEXT" != ":"; then
5508 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5509 echo "${ECHO_T}$XGETTEXT" >&6
5511 echo "$as_me:$LINENO: result: no" >&5
5512 echo "${ECHO_T}no" >&6
5518 # Prepare PATH_SEPARATOR.
5519 # The user is always right.
5520 if test "${PATH_SEPARATOR+set}" != set; then
5521 echo "#! /bin/sh" >conf$$.sh
5522 echo "exit 0" >>conf$$.sh
5524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5532 # Find out how to test for executable files. Don't use a zero-byte file,
5533 # as systems may use methods other than mode bits to determine executability.
5534 cat >conf$$.file <<_ASEOF
5538 chmod +x conf$$.file
5539 if test -x conf$$.file >/dev/null 2>&1; then
5540 ac_executable_p="test -x"
5542 ac_executable_p="test -f"
5546 # Extract the first word of "msgmerge", so it can be a program name with args.
5547 set dummy msgmerge; ac_word=$2
5548 echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5558 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH; do
5561 test -z "$ac_dir" && ac_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5564 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5565 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5572 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5576 MSGMERGE="$ac_cv_path_MSGMERGE"
5577 if test "$MSGMERGE" != ":"; then
5578 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5579 echo "${ECHO_T}$MSGMERGE" >&6
5581 echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5586 if test "$GMSGFMT" != ":"; then
5587 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5588 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5591 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5592 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5593 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5600 (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
5603 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5604 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5610 ac_config_commands="$ac_config_commands default-1"
5613 echo "$as_me:$LINENO: checking for off_t" >&5
5614 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5615 if test "${ac_cv_type_off_t+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 #include "confdefs.h"
5621 $ac_includes_default
5622 #ifdef F77_DUMMY_MAIN
5626 int F77_DUMMY_MAIN() { return 1; }
5639 rm -f conftest.$ac_objext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641 (eval $ac_compile) 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_cv_type_off_t=yes
5653 echo "$as_me: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5657 rm -f conftest.$ac_objext conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5660 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5661 if test $ac_cv_type_off_t = yes; then
5665 cat >>confdefs.h <<_ACEOF
5671 echo "$as_me:$LINENO: checking for size_t" >&5
5672 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5673 if test "${ac_cv_type_size_t+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 cat >conftest.$ac_ext <<_ACEOF
5677 #line $LINENO "configure"
5678 #include "confdefs.h"
5679 $ac_includes_default
5680 #ifdef F77_DUMMY_MAIN
5684 int F77_DUMMY_MAIN() { return 1; }
5691 if (sizeof (size_t))
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_type_size_t=yes
5711 echo "$as_me: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5713 ac_cv_type_size_t=no
5715 rm -f conftest.$ac_objext conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5718 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5719 if test $ac_cv_type_size_t = yes; then
5723 cat >>confdefs.h <<_ACEOF
5724 #define size_t unsigned
5729 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5730 # for constant arguments. Useless!
5731 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5732 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5733 if test "${ac_cv_working_alloca_h+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5740 #ifdef F77_DUMMY_MAIN
5744 int F77_DUMMY_MAIN() { return 1; }
5749 char *p = (char *) alloca (2 * sizeof (int));
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -s conftest$ac_exeext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_working_alloca_h=yes
5768 echo "$as_me: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5770 ac_cv_working_alloca_h=no
5772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5775 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5776 if test $ac_cv_working_alloca_h = yes; then
5778 cat >>confdefs.h <<\_ACEOF
5779 #define HAVE_ALLOCA_H 1
5784 echo "$as_me:$LINENO: checking for alloca" >&5
5785 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5786 if test "${ac_cv_func_alloca_works+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 #include "confdefs.h"
5793 # define alloca __builtin_alloca
5796 # include <malloc.h>
5797 # define alloca _alloca
5800 # include <alloca.h>
5805 # ifndef alloca /* predefined by HP cc +Olibcalls */
5813 #ifdef F77_DUMMY_MAIN
5817 int F77_DUMMY_MAIN() { return 1; }
5822 char *p = (char *) alloca (1);
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -s conftest$ac_exeext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_func_alloca_works=yes
5841 echo "$as_me: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5843 ac_cv_func_alloca_works=no
5845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5847 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5848 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5850 if test $ac_cv_func_alloca_works = yes; then
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_ALLOCA 1
5857 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5858 # that cause trouble. Some versions do not even contain alloca or
5859 # contain a buggy version. If you still want to use their alloca,
5860 # use ar to extract alloca.o from them instead of compiling alloca.c.
5862 ALLOCA=alloca.$ac_objext
5864 cat >>confdefs.h <<\_ACEOF
5869 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5870 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5871 if test "${ac_cv_os_cray+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 cat >conftest.$ac_ext <<_ACEOF
5875 #line $LINENO "configure"
5876 #include "confdefs.h"
5877 #if defined(CRAY) && ! defined(CRAY2)
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 egrep "webecray" >/dev/null 2>&1; then
5893 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5894 echo "${ECHO_T}$ac_cv_os_cray" >&6
5895 if test $ac_cv_os_cray = yes; then
5896 for ac_func in _getb67 GETB67 getb67; do
5897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5898 echo "$as_me:$LINENO: checking for $ac_func" >&5
5899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5900 if eval "test \"\${$as_ac_var+set}\" = set"; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5905 #include "confdefs.h"
5906 /* System header to define __stub macros and hopefully few prototypes,
5907 which can conflict with char $ac_func (); below. */
5909 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5918 #ifdef F77_DUMMY_MAIN
5922 int F77_DUMMY_MAIN() { return 1; }
5927 /* The GNU C library defines this for functions which it implements
5928 to always fail with ENOSYS. Some functions are actually named
5929 something starting with __ and the normal name is an alias. */
5930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -s conftest$ac_exeext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 eval "$as_ac_var=yes"
5954 echo "$as_me: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 eval "$as_ac_var=no"
5958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5962 if test `eval echo '${'$as_ac_var'}'` = yes; then
5964 cat >>confdefs.h <<_ACEOF
5965 #define CRAY_STACKSEG_END $ac_func
5974 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5975 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5976 if test "${ac_cv_c_stack_direction+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 if test "$cross_compiling" = yes; then
5980 ac_cv_c_stack_direction=0
5982 cat >conftest.$ac_ext <<_ACEOF
5983 #line $LINENO "configure"
5984 #include "confdefs.h"
5986 find_stack_direction ()
5988 static char *addr = 0;
5993 return find_stack_direction ();
5996 return (&dummy > addr) ? 1 : -1;
6002 exit (find_stack_direction () < 0);
6005 rm -f conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_c_stack_direction=1
6018 echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 ac_cv_c_stack_direction=-1
6024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6027 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6028 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define STACK_DIRECTION $ac_cv_c_stack_direction
6039 for ac_header in stdlib.h unistd.h
6041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6043 echo "$as_me:$LINENO: checking for $ac_header" >&5
6044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6051 # Is the header compilable?
6052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 #include "confdefs.h"
6057 $ac_includes_default
6058 #include <$ac_header>
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_header_compiler=yes
6074 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 ac_header_compiler=no
6078 rm -f conftest.$ac_objext conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6080 echo "${ECHO_T}$ac_header_compiler" >&6
6082 # Is the header present?
6083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 #include "confdefs.h"
6088 #include <$ac_header>
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093 egrep -v '^ *\+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev/null; then
6098 if test -s conftest.err; then
6099 ac_cpp_err=$ac_c_preproc_warn_flag
6106 if test -z "$ac_cpp_err"; then
6107 ac_header_preproc=yes
6109 echo "$as_me: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6111 ac_header_preproc=no
6113 rm -f conftest.err conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6115 echo "${ECHO_T}$ac_header_preproc" >&6
6117 # So? What about this header?
6118 case $ac_header_compiler:$ac_header_preproc in
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6132 echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 eval "$as_ac_Header=$ac_header_preproc"
6139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6144 cat >>confdefs.h <<_ACEOF
6145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153 for ac_func in getpagesize
6155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6156 echo "$as_me:$LINENO: checking for $ac_func" >&5
6157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6158 if eval "test \"\${$as_ac_var+set}\" = set"; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char $ac_func (); below. */
6167 /* Override any gcc2 internal prototype to avoid an error. */
6171 /* We use char because int might match the return type of a gcc2
6172 builtin and then its argument prototype would still apply. */
6176 #ifdef F77_DUMMY_MAIN
6180 int F77_DUMMY_MAIN() { return 1; }
6185 /* The GNU C library defines this for functions which it implements
6186 to always fail with ENOSYS. Some functions are actually named
6187 something starting with __ and the normal name is an alias. */
6188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -s conftest$ac_exeext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 eval "$as_ac_var=yes"
6212 echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6214 eval "$as_ac_var=no"
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6220 if test `eval echo '${'$as_ac_var'}'` = yes; then
6221 cat >>confdefs.h <<_ACEOF
6222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6228 echo "$as_me:$LINENO: checking for working mmap" >&5
6229 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6230 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 if test "$cross_compiling" = yes; then
6234 ac_cv_func_mmap_fixed_mapped=no
6236 cat >conftest.$ac_ext <<_ACEOF
6237 #line $LINENO "configure"
6238 #include "confdefs.h"
6239 $ac_includes_default
6240 /* malloc might have been renamed as rpl_malloc. */
6243 /* Thanks to Mike Haertel and Jim Avera for this test.
6244 Here is a matrix of mmap possibilities:
6245 mmap private not fixed
6246 mmap private fixed at somewhere currently unmapped
6247 mmap private fixed at somewhere already mapped
6248 mmap shared not fixed
6249 mmap shared fixed at somewhere currently unmapped
6250 mmap shared fixed at somewhere already mapped
6251 For private mappings, we should verify that changes cannot be read()
6252 back from the file, nor mmap's back from the file at a different
6253 address. (There have been systems where private was not correctly
6254 implemented like the infamous i386 svr4.0, and systems where the
6255 VM page cache was not coherent with the file system buffer cache
6256 like early versions of FreeBSD and possibly contemporary NetBSD.)
6257 For shared mappings, we should conversely verify that changes get
6258 propagated back to all the places they're supposed to be.
6260 Grep wants private fixed already mapped.
6261 The main things grep needs to know about mmap are:
6262 * does it exist and is it safe to write into the mmap'd area
6263 * how to use it (BSD variants) */
6266 #include <sys/mman.h>
6268 #if !STDC_HEADERS && !HAVE_STDLIB_H
6272 /* This mess was copied from the GNU getpagesize.h. */
6273 #if !HAVE_GETPAGESIZE
6274 /* Assume that all systems that can run configure have sys/param.h. */
6275 # if !HAVE_SYS_PARAM_H
6276 # define HAVE_SYS_PARAM_H 1
6279 # ifdef _SC_PAGESIZE
6280 # define getpagesize() sysconf(_SC_PAGESIZE)
6281 # else /* no _SC_PAGESIZE */
6282 # if HAVE_SYS_PARAM_H
6283 # include <sys/param.h>
6284 # ifdef EXEC_PAGESIZE
6285 # define getpagesize() EXEC_PAGESIZE
6286 # else /* no EXEC_PAGESIZE */
6288 # define getpagesize() NBPG * CLSIZE
6291 # endif /* no CLSIZE */
6292 # else /* no NBPG */
6294 # define getpagesize() NBPC
6295 # else /* no NBPC */
6297 # define getpagesize() PAGESIZE
6298 # endif /* PAGESIZE */
6299 # endif /* no NBPC */
6300 # endif /* no NBPG */
6301 # endif /* no EXEC_PAGESIZE */
6302 # else /* no HAVE_SYS_PARAM_H */
6303 # define getpagesize() 8192 /* punt totally */
6304 # endif /* no HAVE_SYS_PARAM_H */
6305 # endif /* no _SC_PAGESIZE */
6307 #endif /* no HAVE_GETPAGESIZE */
6312 char *data, *data2, *data3;
6316 pagesize = getpagesize ();
6318 /* First, make a file with some known garbage in it. */
6319 data = (char *) malloc (pagesize);
6322 for (i = 0; i < pagesize; ++i)
6323 *(data + i) = rand ();
6325 fd = creat ("conftest.mmap", 0600);
6328 if (write (fd, data, pagesize) != pagesize)
6332 /* Next, try to mmap the file at a fixed address which already has
6333 something else allocated at it. If we can, also make sure that
6334 we see the same garbage. */
6335 fd = open ("conftest.mmap", O_RDWR);
6338 data2 = (char *) malloc (2 * pagesize);
6341 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6343 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6345 for (i = 0; i < pagesize; ++i)
6346 if (*(data + i) != *(data2 + i))
6349 /* Finally, make sure that changes to the mapped area do not
6350 percolate back to the file as seen by read(). (This is a bug on
6351 some variants of i386 svr4.0.) */
6352 for (i = 0; i < pagesize; ++i)
6353 *(data2 + i) = *(data2 + i) + 1;
6354 data3 = (char *) malloc (pagesize);
6357 if (read (fd, data3, pagesize) != pagesize)
6359 for (i = 0; i < pagesize; ++i)
6360 if (*(data + i) != *(data3 + i))
6366 rm -f conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 ac_cv_func_mmap_fixed_mapped=yes
6379 echo "$as_me: program exited with status $ac_status" >&5
6380 echo "$as_me: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6383 ac_cv_func_mmap_fixed_mapped=no
6385 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6388 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6389 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6390 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6392 cat >>confdefs.h <<\_ACEOF
6400 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6401 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6402 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6409 #include <features.h>
6410 #ifdef __GNU_LIBRARY__
6411 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 egrep "Lucky GNU user" >/dev/null 2>&1; then
6419 ac_cv_gnu_library_2_1=yes
6421 ac_cv_gnu_library_2_1=no
6428 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6429 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6431 GLIBC21="$ac_cv_gnu_library_2_1"
6436 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6437 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6438 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test "$cross_compiling" = yes; then
6444 # Guess based on the CPU.
6446 alpha* | i3456786 | m68k | s390*)
6447 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6449 gt_cv_int_divbyzero_sigfpe="guessing no";;
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6455 #include "confdefs.h"
6462 sigfpe_handler (int sig)
6464 sigfpe_handler (sig) int sig;
6467 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6468 exit (sig != SIGFPE);
6478 signal (SIGFPE, sigfpe_handler);
6479 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6480 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6481 signal (SIGTRAP, sigfpe_handler);
6483 /* Linux/SPARC yields signal SIGILL. */
6484 #if defined (__sparc__) && defined (__linux__)
6485 signal (SIGILL, sigfpe_handler);
6494 rm -f conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 gt_cv_int_divbyzero_sigfpe=yes
6507 echo "$as_me: program exited with status $ac_status" >&5
6508 echo "$as_me: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 gt_cv_int_divbyzero_sigfpe=no
6513 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6518 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6519 case "$gt_cv_int_divbyzero_sigfpe" in
6524 cat >>confdefs.h <<_ACEOF
6525 #define INTDIV0_RAISES_SIGFPE $value
6530 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6531 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6532 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 #include "confdefs.h"
6538 #include <sys/types.h>
6539 #include <inttypes.h>
6540 #ifdef F77_DUMMY_MAIN
6544 int F77_DUMMY_MAIN() { return 1; }
6549 uintmax_t i = (uintmax_t) -1;
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -s conftest.$ac_objext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 jm_ac_cv_header_inttypes_h=yes
6568 echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6570 jm_ac_cv_header_inttypes_h=no
6572 rm -f conftest.$ac_objext conftest.$ac_ext
6574 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6575 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6576 if test $jm_ac_cv_header_inttypes_h = yes; then
6578 cat >>confdefs.h <<_ACEOF
6579 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6585 echo "$as_me:$LINENO: checking for stdint.h" >&5
6586 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6587 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6591 #line $LINENO "configure"
6592 #include "confdefs.h"
6593 #include <sys/types.h>
6595 #ifdef F77_DUMMY_MAIN
6599 int F77_DUMMY_MAIN() { return 1; }
6604 uintmax_t i = (uintmax_t) -1;
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 jm_ac_cv_header_stdint_h=yes
6623 echo "$as_me: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6625 jm_ac_cv_header_stdint_h=no
6627 rm -f conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6630 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6631 if test $jm_ac_cv_header_stdint_h = yes; then
6633 cat >>confdefs.h <<_ACEOF
6634 #define HAVE_STDINT_H_WITH_UINTMAX 1
6640 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6641 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6642 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 #include "confdefs.h"
6648 unsigned long long ull = 1; int i = 63;
6649 #ifdef F77_DUMMY_MAIN
6653 int F77_DUMMY_MAIN() { return 1; }
6658 unsigned long long ullmax = (unsigned long long) -1;
6659 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_type_unsigned_long_long=yes
6678 echo "$as_me: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6680 ac_cv_type_unsigned_long_long=no
6682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6685 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6686 if test $ac_cv_type_unsigned_long_long = yes; then
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_UNSIGNED_LONG_LONG 1
6697 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6699 test $ac_cv_type_unsigned_long_long = yes \
6700 && ac_type='unsigned long long' \
6701 || ac_type='unsigned long'
6703 cat >>confdefs.h <<_ACEOF
6704 #define uintmax_t $ac_type
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_UINTMAX_T 1
6716 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6717 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6718 if test "${gt_cv_header_inttypes_h+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 #include "confdefs.h"
6725 #include <sys/types.h>
6726 #include <inttypes.h>
6727 #ifdef F77_DUMMY_MAIN
6731 int F77_DUMMY_MAIN() { return 1; }
6741 rm -f conftest.$ac_objext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743 (eval $ac_compile) 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 gt_cv_header_inttypes_h=yes
6755 echo "$as_me: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 gt_cv_header_inttypes_h=no
6759 rm -f conftest.$ac_objext conftest.$ac_ext
6762 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6763 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6764 if test $gt_cv_header_inttypes_h = yes; then
6766 cat >>confdefs.h <<_ACEOF
6767 #define HAVE_INTTYPES_H 1
6774 if test $gt_cv_header_inttypes_h = yes; then
6775 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6776 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6777 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6784 #include <inttypes.h>
6789 #ifdef F77_DUMMY_MAIN
6793 int F77_DUMMY_MAIN() { return 1; }
6803 rm -f conftest.$ac_objext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6805 (eval $ac_compile) 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 gt_cv_inttypes_pri_broken=no
6817 echo "$as_me: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 gt_cv_inttypes_pri_broken=yes
6821 rm -f conftest.$ac_objext conftest.$ac_ext
6824 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6825 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6827 if test "$gt_cv_inttypes_pri_broken" = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define PRI_MACROS_BROKEN 1
6836 if test "X$prefix" = "XNONE"; then
6837 acl_final_prefix="$ac_default_prefix"
6839 acl_final_prefix="$prefix"
6841 if test "X$exec_prefix" = "XNONE"; then
6842 acl_final_exec_prefix='${prefix}'
6844 acl_final_exec_prefix="$exec_prefix"
6846 acl_save_prefix="$prefix"
6847 prefix="$acl_final_prefix"
6848 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6849 prefix="$acl_save_prefix"
6852 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6853 if test "${with_gnu_ld+set}" = set; then
6854 withval="$with_gnu_ld"
6855 test "$withval" = no || with_gnu_ld=yes
6859 # Prepare PATH_SEPARATOR.
6860 # The user is always right.
6861 if test "${PATH_SEPARATOR+set}" != set; then
6862 echo "#! /bin/sh" >conf$$.sh
6863 echo "exit 0" >>conf$$.sh
6865 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6873 if test "$GCC" = yes; then
6874 # Check if gcc -print-prog-name=ld gives a path.
6875 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6876 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6879 # gcc leaves a trailing carriage return which upsets mingw
6880 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6882 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6885 # Accept absolute paths.
6886 [\\/]* | [A-Za-z]:[\\/]*)
6887 re_direlt='/[^/][^/]*/\.\./'
6888 # Canonicalize the path of ld
6889 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6890 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6891 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6893 test -z "$LD" && LD="$ac_prog"
6896 # If it fails, then pretend we aren't using GCC.
6900 # If it is relative, then search for the first ld in PATH.
6904 elif test "$with_gnu_ld" = yes; then
6905 echo "$as_me:$LINENO: checking for GNU ld" >&5
6906 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6908 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6909 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6911 if test "${acl_cv_path_LD+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 if test -z "$LD"; then
6915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6916 for ac_dir in $PATH; do
6917 test -z "$ac_dir" && ac_dir=.
6918 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6919 acl_cv_path_LD="$ac_dir/$ac_prog"
6920 # Check to see if the program is GNU ld. I'd rather use --version,
6921 # but apparently some GNU ld's only accept -v.
6922 # Break only if it was the GNU/non-GNU ld that we prefer.
6923 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6924 test "$with_gnu_ld" != no && break
6926 test "$with_gnu_ld" != yes && break
6932 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6936 LD="$acl_cv_path_LD"
6937 if test -n "$LD"; then
6938 echo "$as_me:$LINENO: result: $LD" >&5
6939 echo "${ECHO_T}$LD" >&6
6941 echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6
6944 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6945 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6946 { (exit 1); exit 1; }; }
6947 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6948 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6949 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6953 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6954 acl_cv_prog_gnu_ld=yes
6956 acl_cv_prog_gnu_ld=no
6959 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6960 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6961 with_gnu_ld=$acl_cv_prog_gnu_ld
6965 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6966 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6967 if test "${acl_cv_rpath+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6972 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6978 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6979 echo "${ECHO_T}$acl_cv_rpath" >&6
6981 libext="$acl_cv_libext"
6982 shlibext="$acl_cv_shlibext"
6983 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6984 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6985 hardcode_direct="$acl_cv_hardcode_direct"
6986 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6987 # Check whether --enable-rpath or --disable-rpath was given.
6988 if test "${enable_rpath+set}" = set; then
6989 enableval="$enable_rpath"
7003 acl_save_prefix="$prefix"
7004 prefix="$acl_final_prefix"
7005 acl_save_exec_prefix="$exec_prefix"
7006 exec_prefix="$acl_final_exec_prefix"
7008 eval additional_includedir=\"$includedir\"
7009 eval additional_libdir=\"$libdir\"
7011 exec_prefix="$acl_save_exec_prefix"
7012 prefix="$acl_save_prefix"
7015 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7016 if test "${with_libiconv_prefix+set}" = set; then
7017 withval="$with_libiconv_prefix"
7019 if test "X$withval" = "Xno"; then
7022 if test "X$withval" = "X"; then
7024 acl_save_prefix="$prefix"
7025 prefix="$acl_final_prefix"
7026 acl_save_exec_prefix="$exec_prefix"
7027 exec_prefix="$acl_final_exec_prefix"
7029 eval additional_includedir=\"$includedir\"
7030 eval additional_libdir=\"$libdir\"
7032 exec_prefix="$acl_save_exec_prefix"
7033 prefix="$acl_save_prefix"
7036 additional_includedir="$withval/include"
7037 additional_libdir="$withval/lib"
7047 names_already_handled=
7048 names_next_round='iconv '
7049 while test -n "$names_next_round"; do
7050 names_this_round="$names_next_round"
7052 for name in $names_this_round; do
7054 for n in $names_already_handled; do
7055 if test "$n" = "$name"; then
7060 if test -z "$already_handled"; then
7061 names_already_handled="$names_already_handled $name"
7062 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7063 eval value=\"\$HAVE_LIB$uppername\"
7064 if test -n "$value"; then
7065 if test "$value" = yes; then
7066 eval value=\"\$LIB$uppername\"
7067 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7068 eval value=\"\$LTLIB$uppername\"
7069 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7078 if test $use_additional = yes; then
7079 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7080 found_dir="$additional_libdir"
7081 found_so="$additional_libdir/lib$name.$shlibext"
7082 if test -f "$additional_libdir/lib$name.la"; then
7083 found_la="$additional_libdir/lib$name.la"
7086 if test -f "$additional_libdir/lib$name.$libext"; then
7087 found_dir="$additional_libdir"
7088 found_a="$additional_libdir/lib$name.$libext"
7089 if test -f "$additional_libdir/lib$name.la"; then
7090 found_la="$additional_libdir/lib$name.la"
7095 if test "X$found_dir" = "X"; then
7096 for x in $LDFLAGS $LTLIBICONV; do
7098 acl_save_prefix="$prefix"
7099 prefix="$acl_final_prefix"
7100 acl_save_exec_prefix="$exec_prefix"
7101 exec_prefix="$acl_final_exec_prefix"
7103 exec_prefix="$acl_save_exec_prefix"
7104 prefix="$acl_save_prefix"
7108 dir=`echo "X$x" | sed -e 's/^X-L//'`
7109 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7111 found_so="$dir/lib$name.$shlibext"
7112 if test -f "$dir/lib$name.la"; then
7113 found_la="$dir/lib$name.la"
7116 if test -f "$dir/lib$name.$libext"; then
7118 found_a="$dir/lib$name.$libext"
7119 if test -f "$dir/lib$name.la"; then
7120 found_la="$dir/lib$name.la"
7126 if test "X$found_dir" != "X"; then
7131 if test "X$found_dir" != "X"; then
7132 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7133 if test "X$found_so" != "X"; then
7134 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7135 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7138 for x in $ltrpathdirs; do
7139 if test "X$x" = "X$found_dir"; then
7144 if test -z "$haveit"; then
7145 ltrpathdirs="$ltrpathdirs $found_dir"
7147 if test "$hardcode_direct" = yes; then
7148 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7150 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7151 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7153 for x in $rpathdirs; do
7154 if test "X$x" = "X$found_dir"; then
7159 if test -z "$haveit"; then
7160 rpathdirs="$rpathdirs $found_dir"
7164 for x in $LDFLAGS $LIBICONV; do
7166 acl_save_prefix="$prefix"
7167 prefix="$acl_final_prefix"
7168 acl_save_exec_prefix="$exec_prefix"
7169 exec_prefix="$acl_final_exec_prefix"
7171 exec_prefix="$acl_save_exec_prefix"
7172 prefix="$acl_save_prefix"
7174 if test "X$x" = "X-L$found_dir"; then
7179 if test -z "$haveit"; then
7180 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7182 if test "$hardcode_minus_L" != no; then
7183 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7185 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7191 if test "X$found_a" != "X"; then
7192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7194 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7197 additional_includedir=
7198 case "$found_dir" in
7200 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7201 additional_includedir="$basedir/include"
7204 if test "X$additional_includedir" != "X"; then
7205 if test "X$additional_includedir" != "X/usr/include"; then
7207 if test "X$additional_includedir" = "X/usr/local/include"; then
7208 if test -n "$GCC"; then
7210 linux*) haveit=yes;;
7214 if test -z "$haveit"; then
7215 for x in $CPPFLAGS $INCICONV; do
7217 acl_save_prefix="$prefix"
7218 prefix="$acl_final_prefix"
7219 acl_save_exec_prefix="$exec_prefix"
7220 exec_prefix="$acl_final_exec_prefix"
7222 exec_prefix="$acl_save_exec_prefix"
7223 prefix="$acl_save_prefix"
7225 if test "X$x" = "X-I$additional_includedir"; then
7230 if test -z "$haveit"; then
7231 if test -d "$additional_includedir"; then
7232 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7238 if test -n "$found_la"; then
7239 save_libdir="$libdir"
7241 */* | *\\*) . "$found_la" ;;
7242 *) . "./$found_la" ;;
7244 libdir="$save_libdir"
7245 for dep in $dependency_libs; do
7248 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7249 if test "X$additional_libdir" != "X/usr/lib"; then
7251 if test "X$additional_libdir" = "X/usr/local/lib"; then
7252 if test -n "$GCC"; then
7254 linux*) haveit=yes;;
7258 if test -z "$haveit"; then
7260 for x in $LDFLAGS $LIBICONV; do
7262 acl_save_prefix="$prefix"
7263 prefix="$acl_final_prefix"
7264 acl_save_exec_prefix="$exec_prefix"
7265 exec_prefix="$acl_final_exec_prefix"
7267 exec_prefix="$acl_save_exec_prefix"
7268 prefix="$acl_save_prefix"
7270 if test "X$x" = "X-L$additional_libdir"; then
7275 if test -z "$haveit"; then
7276 if test -d "$additional_libdir"; then
7277 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7281 for x in $LDFLAGS $LTLIBICONV; do
7283 acl_save_prefix="$prefix"
7284 prefix="$acl_final_prefix"
7285 acl_save_exec_prefix="$exec_prefix"
7286 exec_prefix="$acl_final_exec_prefix"
7288 exec_prefix="$acl_save_exec_prefix"
7289 prefix="$acl_save_prefix"
7291 if test "X$x" = "X-L$additional_libdir"; then
7296 if test -z "$haveit"; then
7297 if test -d "$additional_libdir"; then
7298 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7305 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7306 if test "$enable_rpath" != no; then
7308 for x in $rpathdirs; do
7309 if test "X$x" = "X$dir"; then
7314 if test -z "$haveit"; then
7315 rpathdirs="$rpathdirs $dir"
7318 for x in $ltrpathdirs; do
7319 if test "X$x" = "X$dir"; then
7324 if test -z "$haveit"; then
7325 ltrpathdirs="$ltrpathdirs $dir"
7330 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7336 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7343 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7350 if test "X$rpathdirs" != "X"; then
7351 if test -n "$hardcode_libdir_separator"; then
7353 for found_dir in $rpathdirs; do
7354 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7356 acl_save_libdir="$libdir"
7358 eval flag=\"$hardcode_libdir_flag_spec\"
7359 libdir="$acl_save_libdir"
7360 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7362 for found_dir in $rpathdirs; do
7363 acl_save_libdir="$libdir"
7365 eval flag=\"$hardcode_libdir_flag_spec\"
7366 libdir="$acl_save_libdir"
7367 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7371 if test "X$ltrpathdirs" != "X"; then
7372 for found_dir in $ltrpathdirs; do
7373 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7390 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7391 stdlib.h string.h unistd.h sys/param.h
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7395 echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7403 # Is the header compilable?
7404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7407 #line $LINENO "configure"
7408 #include "confdefs.h"
7409 $ac_includes_default
7410 #include <$ac_header>
7412 rm -f conftest.$ac_objext
7413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7414 (eval $ac_compile) 2>&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_header_compiler=yes
7426 echo "$as_me: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 ac_header_compiler=no
7430 rm -f conftest.$ac_objext conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6
7434 # Is the header present?
7435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line $LINENO "configure"
7439 #include "confdefs.h"
7440 #include <$ac_header>
7442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7445 egrep -v '^ *\+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } >/dev/null; then
7450 if test -s conftest.err; then
7451 ac_cpp_err=$ac_c_preproc_warn_flag
7458 if test -z "$ac_cpp_err"; then
7459 ac_header_preproc=yes
7461 echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7463 ac_header_preproc=no
7465 rm -f conftest.err conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7467 echo "${ECHO_T}$ac_header_preproc" >&6
7469 # So? What about this header?
7470 case $ac_header_compiler:$ac_header_preproc in
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7484 echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 eval "$as_ac_Header=$ac_header_preproc"
7491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7496 cat >>confdefs.h <<_ACEOF
7497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7526 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7527 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7528 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
7531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7532 echo "$as_me:$LINENO: checking for $ac_func" >&5
7533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7534 if eval "test \"\${$as_ac_var+set}\" = set"; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 #include "confdefs.h"
7540 /* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char $ac_func (); below. */
7543 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7552 #ifdef F77_DUMMY_MAIN
7556 int F77_DUMMY_MAIN() { return 1; }
7561 /* The GNU C library defines this for functions which it implements
7562 to always fail with ENOSYS. Some functions are actually named
7563 something starting with __ and the normal name is an alias. */
7564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576 (eval $ac_link) 2>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -s conftest$ac_exeext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 eval "$as_ac_var=yes"
7588 echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 eval "$as_ac_var=no"
7592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7596 if test `eval echo '${'$as_ac_var'}'` = yes; then
7597 cat >>confdefs.h <<_ACEOF
7598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7610 am_save_CPPFLAGS="$CPPFLAGS"
7612 for element in $INCICONV; do
7614 for x in $CPPFLAGS; do
7616 acl_save_prefix="$prefix"
7617 prefix="$acl_final_prefix"
7618 acl_save_exec_prefix="$exec_prefix"
7619 exec_prefix="$acl_final_exec_prefix"
7621 exec_prefix="$acl_save_exec_prefix"
7622 prefix="$acl_save_prefix"
7624 if test "X$x" = "X$element"; then
7629 if test -z "$haveit"; then
7630 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7635 echo "$as_me:$LINENO: checking for iconv" >&5
7636 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7637 if test "${am_cv_func_iconv+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 am_cv_func_iconv="no, consider installing GNU libiconv"
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 #include "confdefs.h"
7648 #ifdef F77_DUMMY_MAIN
7652 int F77_DUMMY_MAIN() { return 1; }
7657 iconv_t cd = iconv_open("","");
7658 iconv(cd,NULL,NULL,NULL,NULL);
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666 (eval $ac_link) 2>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 am_cv_func_iconv=yes
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682 if test "$am_cv_func_iconv" != yes; then
7683 am_save_LIBS="$LIBS"
7684 LIBS="$LIBS $LIBICONV"
7685 cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 #include "confdefs.h"
7690 #ifdef F77_DUMMY_MAIN
7694 int F77_DUMMY_MAIN() { return 1; }
7699 iconv_t cd = iconv_open("","");
7700 iconv(cd,NULL,NULL,NULL,NULL);
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -s conftest$ac_exeext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7719 am_cv_func_iconv=yes
7721 echo "$as_me: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7725 LIBS="$am_save_LIBS"
7729 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7730 echo "${ECHO_T}$am_cv_func_iconv" >&6
7731 if test "$am_cv_func_iconv" = yes; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_ICONV 1
7738 if test "$am_cv_lib_iconv" = yes; then
7739 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7740 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7741 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7742 echo "${ECHO_T}$LIBICONV" >&6
7744 CPPFLAGS="$am_save_CPPFLAGS"
7751 if test "$am_cv_func_iconv" = yes; then
7752 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7753 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7754 if test "${am_cv_proto_iconv+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 #include "confdefs.h"
7768 #if defined(__STDC__) || defined(__cplusplus)
7769 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7774 #ifdef F77_DUMMY_MAIN
7778 int F77_DUMMY_MAIN() { return 1; }
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 am_cv_proto_iconv_arg1=""
7802 echo "$as_me: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 am_cv_proto_iconv_arg1="const"
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7807 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);"
7810 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7811 echo "$as_me:$LINENO: result: ${ac_t:-
7812 }$am_cv_proto_iconv" >&5
7813 echo "${ECHO_T}${ac_t:-
7814 }$am_cv_proto_iconv" >&6
7816 cat >>confdefs.h <<_ACEOF
7817 #define ICONV_CONST $am_cv_proto_iconv_arg1
7823 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7824 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7825 if test "${am_cv_langinfo_codeset+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 #include "confdefs.h"
7831 #include <langinfo.h>
7832 #ifdef F77_DUMMY_MAIN
7836 int F77_DUMMY_MAIN() { return 1; }
7841 char* cs = nl_langinfo(CODESET);
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -s conftest$ac_exeext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 am_cv_langinfo_codeset=yes
7860 echo "$as_me: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7862 am_cv_langinfo_codeset=no
7864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7868 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7869 if test $am_cv_langinfo_codeset = yes; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_LANGINFO_CODESET 1
7877 if test $ac_cv_header_locale_h = yes; then
7879 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7880 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7881 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7888 #ifdef F77_DUMMY_MAIN
7892 int F77_DUMMY_MAIN() { return 1; }
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 am_cv_val_LC_MESSAGES=yes
7916 echo "$as_me: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7918 am_cv_val_LC_MESSAGES=no
7920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7922 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7923 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7924 if test $am_cv_val_LC_MESSAGES = yes; then
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_LC_MESSAGES 1
7934 for ac_prog in bison
7936 # Extract the first word of "$ac_prog", so it can be a program name with args.
7937 set dummy $ac_prog; ac_word=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 if test -n "$INTLBISON"; then
7944 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_INTLBISON="$ac_prog"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 INTLBISON=$ac_cv_prog_INTLBISON
7963 if test -n "$INTLBISON"; then
7964 echo "$as_me:$LINENO: result: $INTLBISON" >&5
7965 echo "${ECHO_T}$INTLBISON" >&6
7967 echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7971 test -n "$INTLBISON" && break
7974 if test -z "$INTLBISON"; then
7977 echo "$as_me:$LINENO: checking version of bison" >&5
7978 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
7979 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7980 case $ac_prog_version in
7981 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7982 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7983 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7984 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7986 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
7987 echo "${ECHO_T}$ac_prog_version" >&6
7989 if test $ac_verc_fail = yes; then
8008 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8009 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8010 # Check whether --enable-nls or --disable-nls was given.
8011 if test "${enable_nls+set}" = set; then
8012 enableval="$enable_nls"
8017 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8018 echo "${ECHO_T}$USE_NLS" >&6
8023 BUILD_INCLUDED_LIBINTL=no
8024 USE_INCLUDED_LIBINTL=no
8030 if test "$USE_NLS" = "yes"; then
8031 gt_use_preinstalled_gnugettext=no
8033 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8034 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8036 # Check whether --with-included-gettext or --without-included-gettext was given.
8037 if test "${with_included_gettext+set}" = set; then
8038 withval="$with_included_gettext"
8039 nls_cv_force_use_gnu_gettext=$withval
8041 nls_cv_force_use_gnu_gettext=no
8043 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8044 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8046 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8047 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8054 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8055 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8056 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8061 #include "confdefs.h"
8062 #include <libintl.h>
8063 extern int _nl_msg_cat_cntr;
8064 extern int *_nl_domain_bindings;
8065 #ifdef F77_DUMMY_MAIN
8069 int F77_DUMMY_MAIN() { return 1; }
8074 bindtextdomain ("", "");
8075 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 gt_cv_func_gnugettext2_libc=yes
8094 echo "$as_me: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8096 gt_cv_func_gnugettext2_libc=no
8098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8101 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8103 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8114 eval additional_includedir=\"$includedir\"
8115 eval additional_libdir=\"$libdir\"
8117 exec_prefix="$acl_save_exec_prefix"
8118 prefix="$acl_save_prefix"
8121 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8122 if test "${with_libintl_prefix+set}" = set; then
8123 withval="$with_libintl_prefix"
8125 if test "X$withval" = "Xno"; then
8128 if test "X$withval" = "X"; then
8130 acl_save_prefix="$prefix"
8131 prefix="$acl_final_prefix"
8132 acl_save_exec_prefix="$exec_prefix"
8133 exec_prefix="$acl_final_exec_prefix"
8135 eval additional_includedir=\"$includedir\"
8136 eval additional_libdir=\"$libdir\"
8138 exec_prefix="$acl_save_exec_prefix"
8139 prefix="$acl_save_prefix"
8142 additional_includedir="$withval/include"
8143 additional_libdir="$withval/lib"
8153 names_already_handled=
8154 names_next_round='intl '
8155 while test -n "$names_next_round"; do
8156 names_this_round="$names_next_round"
8158 for name in $names_this_round; do
8160 for n in $names_already_handled; do
8161 if test "$n" = "$name"; then
8166 if test -z "$already_handled"; then
8167 names_already_handled="$names_already_handled $name"
8168 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8169 eval value=\"\$HAVE_LIB$uppername\"
8170 if test -n "$value"; then
8171 if test "$value" = yes; then
8172 eval value=\"\$LIB$uppername\"
8173 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8174 eval value=\"\$LTLIB$uppername\"
8175 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8184 if test $use_additional = yes; then
8185 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8186 found_dir="$additional_libdir"
8187 found_so="$additional_libdir/lib$name.$shlibext"
8188 if test -f "$additional_libdir/lib$name.la"; then
8189 found_la="$additional_libdir/lib$name.la"
8192 if test -f "$additional_libdir/lib$name.$libext"; then
8193 found_dir="$additional_libdir"
8194 found_a="$additional_libdir/lib$name.$libext"
8195 if test -f "$additional_libdir/lib$name.la"; then
8196 found_la="$additional_libdir/lib$name.la"
8201 if test "X$found_dir" = "X"; then
8202 for x in $LDFLAGS $LTLIBINTL; do
8204 acl_save_prefix="$prefix"
8205 prefix="$acl_final_prefix"
8206 acl_save_exec_prefix="$exec_prefix"
8207 exec_prefix="$acl_final_exec_prefix"
8209 exec_prefix="$acl_save_exec_prefix"
8210 prefix="$acl_save_prefix"
8214 dir=`echo "X$x" | sed -e 's/^X-L//'`
8215 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8217 found_so="$dir/lib$name.$shlibext"
8218 if test -f "$dir/lib$name.la"; then
8219 found_la="$dir/lib$name.la"
8222 if test -f "$dir/lib$name.$libext"; then
8224 found_a="$dir/lib$name.$libext"
8225 if test -f "$dir/lib$name.la"; then
8226 found_la="$dir/lib$name.la"
8232 if test "X$found_dir" != "X"; then
8237 if test "X$found_dir" != "X"; then
8238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8239 if test "X$found_so" != "X"; then
8240 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8244 for x in $ltrpathdirs; do
8245 if test "X$x" = "X$found_dir"; then
8250 if test -z "$haveit"; then
8251 ltrpathdirs="$ltrpathdirs $found_dir"
8253 if test "$hardcode_direct" = yes; then
8254 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8256 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8257 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8259 for x in $rpathdirs; do
8260 if test "X$x" = "X$found_dir"; then
8265 if test -z "$haveit"; then
8266 rpathdirs="$rpathdirs $found_dir"
8270 for x in $LDFLAGS $LIBINTL; do
8272 acl_save_prefix="$prefix"
8273 prefix="$acl_final_prefix"
8274 acl_save_exec_prefix="$exec_prefix"
8275 exec_prefix="$acl_final_exec_prefix"
8277 exec_prefix="$acl_save_exec_prefix"
8278 prefix="$acl_save_prefix"
8280 if test "X$x" = "X-L$found_dir"; then
8285 if test -z "$haveit"; then
8286 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8288 if test "$hardcode_minus_L" != no; then
8289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8291 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8297 if test "X$found_a" != "X"; then
8298 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8300 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8303 additional_includedir=
8304 case "$found_dir" in
8306 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8307 additional_includedir="$basedir/include"
8310 if test "X$additional_includedir" != "X"; then
8311 if test "X$additional_includedir" != "X/usr/include"; then
8313 if test "X$additional_includedir" = "X/usr/local/include"; then
8314 if test -n "$GCC"; then
8316 linux*) haveit=yes;;
8320 if test -z "$haveit"; then
8321 for x in $CPPFLAGS $INCINTL; do
8323 acl_save_prefix="$prefix"
8324 prefix="$acl_final_prefix"
8325 acl_save_exec_prefix="$exec_prefix"
8326 exec_prefix="$acl_final_exec_prefix"
8328 exec_prefix="$acl_save_exec_prefix"
8329 prefix="$acl_save_prefix"
8331 if test "X$x" = "X-I$additional_includedir"; then
8336 if test -z "$haveit"; then
8337 if test -d "$additional_includedir"; then
8338 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8344 if test -n "$found_la"; then
8345 save_libdir="$libdir"
8347 */* | *\\*) . "$found_la" ;;
8348 *) . "./$found_la" ;;
8350 libdir="$save_libdir"
8351 for dep in $dependency_libs; do
8354 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8355 if test "X$additional_libdir" != "X/usr/lib"; then
8357 if test "X$additional_libdir" = "X/usr/local/lib"; then
8358 if test -n "$GCC"; then
8360 linux*) haveit=yes;;
8364 if test -z "$haveit"; then
8366 for x in $LDFLAGS $LIBINTL; do
8368 acl_save_prefix="$prefix"
8369 prefix="$acl_final_prefix"
8370 acl_save_exec_prefix="$exec_prefix"
8371 exec_prefix="$acl_final_exec_prefix"
8373 exec_prefix="$acl_save_exec_prefix"
8374 prefix="$acl_save_prefix"
8376 if test "X$x" = "X-L$additional_libdir"; then
8381 if test -z "$haveit"; then
8382 if test -d "$additional_libdir"; then
8383 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8387 for x in $LDFLAGS $LTLIBINTL; do
8389 acl_save_prefix="$prefix"
8390 prefix="$acl_final_prefix"
8391 acl_save_exec_prefix="$exec_prefix"
8392 exec_prefix="$acl_final_exec_prefix"
8394 exec_prefix="$acl_save_exec_prefix"
8395 prefix="$acl_save_prefix"
8397 if test "X$x" = "X-L$additional_libdir"; then
8402 if test -z "$haveit"; then
8403 if test -d "$additional_libdir"; then
8404 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8411 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8412 if test "$enable_rpath" != no; then
8414 for x in $rpathdirs; do
8415 if test "X$x" = "X$dir"; then
8420 if test -z "$haveit"; then
8421 rpathdirs="$rpathdirs $dir"
8424 for x in $ltrpathdirs; do
8425 if test "X$x" = "X$dir"; then
8430 if test -z "$haveit"; then
8431 ltrpathdirs="$ltrpathdirs $dir"
8436 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8442 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8449 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8450 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8456 if test "X$rpathdirs" != "X"; then
8457 if test -n "$hardcode_libdir_separator"; then
8459 for found_dir in $rpathdirs; do
8460 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8462 acl_save_libdir="$libdir"
8464 eval flag=\"$hardcode_libdir_flag_spec\"
8465 libdir="$acl_save_libdir"
8466 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8468 for found_dir in $rpathdirs; do
8469 acl_save_libdir="$libdir"
8471 eval flag=\"$hardcode_libdir_flag_spec\"
8472 libdir="$acl_save_libdir"
8473 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8477 if test "X$ltrpathdirs" != "X"; then
8478 for found_dir in $ltrpathdirs; do
8479 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8483 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8484 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8485 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 gt_save_CPPFLAGS="$CPPFLAGS"
8489 CPPFLAGS="$CPPFLAGS $INCINTL"
8490 gt_save_LIBS="$LIBS"
8491 LIBS="$LIBS $LIBINTL"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 #include "confdefs.h"
8495 #include <libintl.h>
8496 extern int _nl_msg_cat_cntr;
8501 const char *_nl_expand_alias ();
8502 #ifdef F77_DUMMY_MAIN
8506 int F77_DUMMY_MAIN() { return 1; }
8511 bindtextdomain ("", "");
8512 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519 (eval $ac_link) 2>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 gt_cv_func_gnugettext2_libintl=yes
8531 echo "$as_me: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8533 gt_cv_func_gnugettext2_libintl=no
8535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8537 LIBS="$LIBS $LIBICONV"
8538 cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 #include <libintl.h>
8542 extern int _nl_msg_cat_cntr;
8547 const char *_nl_expand_alias ();
8548 #ifdef F77_DUMMY_MAIN
8552 int F77_DUMMY_MAIN() { return 1; }
8557 bindtextdomain ("", "");
8558 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565 (eval $ac_link) 2>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 LIBINTL="$LIBINTL $LIBICONV"
8576 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8577 gt_cv_func_gnugettext2_libintl=yes
8580 echo "$as_me: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8585 CPPFLAGS="$gt_save_CPPFLAGS"
8586 LIBS="$gt_save_LIBS"
8588 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8589 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8592 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8593 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8594 && test "$PACKAGE" != gettext-runtime \
8595 && test "$PACKAGE" != gettext-tools; }; then
8596 gt_use_preinstalled_gnugettext=yes
8604 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8605 nls_cv_use_gnu_gettext=yes
8609 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8610 BUILD_INCLUDED_LIBINTL=yes
8611 USE_INCLUDED_LIBINTL=yes
8612 LIBINTL="lib/intl/libintl.a $LIBICONV"
8613 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8614 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8617 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8618 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8623 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8624 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8626 cat >>confdefs.h <<\_ACEOF
8627 #define ENABLE_NLS 1
8635 echo "$as_me:$LINENO: checking whether to use NLS" >&5
8636 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
8637 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8638 echo "${ECHO_T}$USE_NLS" >&6
8639 if test "$USE_NLS" = "yes"; then
8640 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8641 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
8642 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8643 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8644 gt_source="external libintl"
8649 gt_source="included intl directory"
8651 echo "$as_me:$LINENO: result: $gt_source" >&5
8652 echo "${ECHO_T}$gt_source" >&6
8655 if test "$USE_NLS" = "yes"; then
8657 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8658 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8659 echo "$as_me:$LINENO: checking how to link with libintl" >&5
8660 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8661 echo "$as_me:$LINENO: result: $LIBINTL" >&5
8662 echo "${ECHO_T}$LIBINTL" >&6
8664 for element in $INCINTL; do
8666 for x in $CPPFLAGS; do
8668 acl_save_prefix="$prefix"
8669 prefix="$acl_final_prefix"
8670 acl_save_exec_prefix="$exec_prefix"
8671 exec_prefix="$acl_final_exec_prefix"
8673 exec_prefix="$acl_save_exec_prefix"
8674 prefix="$acl_save_prefix"
8676 if test "X$x" = "X$element"; then
8681 if test -z "$haveit"; then
8682 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8689 cat >>confdefs.h <<\_ACEOF
8690 #define HAVE_GETTEXT 1
8694 cat >>confdefs.h <<\_ACEOF
8695 #define HAVE_DCGETTEXT 1
8704 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8705 BUILD_INCLUDED_LIBINTL=yes
8713 nls_cv_header_libgt=
8724 if test "$USE_INCLUDED_LIBINTL" = yes; then
8725 INTLOBJS="\$(GETTOBJS)"
8729 INTL_LIBTOOL_SUFFIX_PREFIX=
8747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8748 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8749 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8750 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 cat >conftest.$ac_ext <<_ACEOF
8755 #line $LINENO "configure"
8756 #include "confdefs.h"
8757 #include <sys/types.h>
8760 #ifdef F77_DUMMY_MAIN
8764 int F77_DUMMY_MAIN() { return 1; }
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 eval "$as_ac_Header=yes"
8789 echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 eval "$as_ac_Header=no"
8793 rm -f conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8798 cat >>confdefs.h <<_ACEOF
8799 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8802 ac_header_dirent=$ac_hdr; break
8806 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8807 if test $ac_header_dirent = dirent.h; then
8808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8810 if test "${ac_cv_search_opendir+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 ac_func_search_save_LIBS=$LIBS
8814 ac_cv_search_opendir=no
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 #include "confdefs.h"
8819 /* Override any gcc2 internal prototype to avoid an error. */
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8826 #ifdef F77_DUMMY_MAIN
8830 int F77_DUMMY_MAIN() { return 1; }
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_search_opendir="none required"
8854 echo "$as_me: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8858 if test "$ac_cv_search_opendir" = no; then
8859 for ac_lib in dir; do
8860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8861 cat >conftest.$ac_ext <<_ACEOF
8862 #line $LINENO "configure"
8863 #include "confdefs.h"
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8872 #ifdef F77_DUMMY_MAIN
8876 int F77_DUMMY_MAIN() { return 1; }
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -s conftest$ac_exeext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_cv_search_opendir="-l$ac_lib"
8901 echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8907 LIBS=$ac_func_search_save_LIBS
8909 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8910 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8911 if test "$ac_cv_search_opendir" != no; then
8912 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8917 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8918 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8919 if test "${ac_cv_search_opendir+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 ac_func_search_save_LIBS=$LIBS
8923 ac_cv_search_opendir=no
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8928 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8935 #ifdef F77_DUMMY_MAIN
8939 int F77_DUMMY_MAIN() { return 1; }
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951 (eval $ac_link) 2>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -s conftest$ac_exeext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_cv_search_opendir="none required"
8963 echo "$as_me: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8967 if test "$ac_cv_search_opendir" = no; then
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8972 #include "confdefs.h"
8974 /* Override any gcc2 internal prototype to avoid an error. */
8978 /* We use char because int might match the return type of a gcc2
8979 builtin and then its argument prototype would still apply. */
8981 #ifdef F77_DUMMY_MAIN
8985 int F77_DUMMY_MAIN() { return 1; }
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_cv_search_opendir="-l$ac_lib"
9010 echo "$as_me: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_func_search_save_LIBS
9018 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9019 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9020 if test "$ac_cv_search_opendir" != no; then
9021 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9027 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9028 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9029 if test "${ac_cv_header_time+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line $LINENO "configure"
9034 #include "confdefs.h"
9035 #include <sys/types.h>
9036 #include <sys/time.h>
9039 #ifdef F77_DUMMY_MAIN
9043 int F77_DUMMY_MAIN() { return 1; }
9048 if ((struct tm *) 0)
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_header_time=yes
9068 echo "$as_me: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 ac_cv_header_time=no
9072 rm -f conftest.$ac_objext conftest.$ac_ext
9074 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9075 echo "${ECHO_T}$ac_cv_header_time" >&6
9076 if test $ac_cv_header_time = yes; then
9078 cat >>confdefs.h <<\_ACEOF
9079 #define TIME_WITH_SYS_TIME 1
9087 for ac_header in inttypes.h
9089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099 # Is the header compilable?
9100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9104 #include "confdefs.h"
9105 $ac_includes_default
9106 #include <$ac_header>
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_header_compiler=yes
9122 echo "$as_me: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 ac_header_compiler=no
9126 rm -f conftest.$ac_objext conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9128 echo "${ECHO_T}$ac_header_compiler" >&6
9130 # Is the header present?
9131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9134 #line $LINENO "configure"
9135 #include "confdefs.h"
9136 #include <$ac_header>
9138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9141 egrep -v '^ *\+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } >/dev/null; then
9146 if test -s conftest.err; then
9147 ac_cpp_err=$ac_c_preproc_warn_flag
9154 if test -z "$ac_cpp_err"; then
9155 ac_header_preproc=yes
9157 echo "$as_me: failed program was:" >&5
9158 cat conftest.$ac_ext >&5
9159 ac_header_preproc=no
9161 rm -f conftest.err conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9163 echo "${ECHO_T}$ac_header_preproc" >&6
9165 # So? What about this header?
9166 case $ac_header_compiler:$ac_header_preproc in
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9180 echo "$as_me:$LINENO: checking for $ac_header" >&5
9181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 eval "$as_ac_Header=$ac_header_preproc"
9187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9192 cat >>confdefs.h <<_ACEOF
9193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9221 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9222 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9223 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
9225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227 echo "$as_me:$LINENO: checking for $ac_header" >&5
9228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9235 # Is the header compilable?
9236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 #include "confdefs.h"
9241 $ac_includes_default
9242 #include <$ac_header>
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_header_compiler=yes
9258 echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_header_compiler=no
9262 rm -f conftest.$ac_objext conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6
9266 # Is the header present?
9267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 #line $LINENO "configure"
9271 #include "confdefs.h"
9272 #include <$ac_header>
9274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9277 egrep -v '^ *\+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } >/dev/null; then
9282 if test -s conftest.err; then
9283 ac_cpp_err=$ac_c_preproc_warn_flag
9290 if test -z "$ac_cpp_err"; then
9291 ac_header_preproc=yes
9293 echo "$as_me: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 ac_header_preproc=no
9297 rm -f conftest.err conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9299 echo "${ECHO_T}$ac_header_preproc" >&6
9301 # So? What about this header?
9302 case $ac_header_compiler:$ac_header_preproc in
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9316 echo "$as_me:$LINENO: checking for $ac_header" >&5
9317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 eval "$as_ac_Header=$ac_header_preproc"
9323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9328 cat >>confdefs.h <<_ACEOF
9329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
9349 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
9350 sys/time.h sys/times.h sys/types.h sys/wait.h
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354 echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9362 # Is the header compilable?
9363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 #include "confdefs.h"
9368 $ac_includes_default
9369 #include <$ac_header>
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -s conftest.$ac_objext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_header_compiler=yes
9385 echo "$as_me: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 ac_header_compiler=no
9389 rm -f conftest.$ac_objext conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 echo "${ECHO_T}$ac_header_compiler" >&6
9393 # Is the header present?
9394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9397 #line $LINENO "configure"
9398 #include "confdefs.h"
9399 #include <$ac_header>
9401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9404 egrep -v '^ *\+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } >/dev/null; then
9409 if test -s conftest.err; then
9410 ac_cpp_err=$ac_c_preproc_warn_flag
9417 if test -z "$ac_cpp_err"; then
9418 ac_header_preproc=yes
9420 echo "$as_me: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9422 ac_header_preproc=no
9424 rm -f conftest.err conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426 echo "${ECHO_T}$ac_header_preproc" >&6
9428 # So? What about this header?
9429 case $ac_header_compiler:$ac_header_preproc in
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9443 echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 eval "$as_ac_Header=$ac_header_preproc"
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9465 for ac_header in netinet/in.h arpa/inet.h
9467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo "$as_me:$LINENO: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9477 # Is the header compilable?
9478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9482 #include "confdefs.h"
9483 $ac_includes_default
9484 #include <$ac_header>
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9500 echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_header_compiler=no
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9506 echo "${ECHO_T}$ac_header_compiler" >&6
9508 # Is the header present?
9509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #include <$ac_header>
9516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519 egrep -v '^ *\+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null; then
9524 if test -s conftest.err; then
9525 ac_cpp_err=$ac_c_preproc_warn_flag
9532 if test -z "$ac_cpp_err"; then
9533 ac_header_preproc=yes
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 ac_header_preproc=no
9539 rm -f conftest.err conftest.$ac_ext
9540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9541 echo "${ECHO_T}$ac_header_preproc" >&6
9543 # So? What about this header?
9544 case $ac_header_compiler:$ac_header_preproc in
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9558 echo "$as_me:$LINENO: checking for $ac_header" >&5
9559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 eval "$as_ac_Header=$ac_header_preproc"
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9570 cat >>confdefs.h <<_ACEOF
9571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9579 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
9580 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
9581 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 #include "confdefs.h"
9588 #if HAVE_SYS_STREAM_H
9589 # include <sys/stream.h>
9593 #include <sys/ptem.h>
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_header_sys_ptem_h=yes
9609 echo "$as_me: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 ac_cv_header_sys_ptem_h=no
9613 rm -f conftest.$ac_objext conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
9616 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
9620 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9621 # for constant arguments. Useless!
9622 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9623 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9624 if test "${ac_cv_working_alloca_h+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 cat >conftest.$ac_ext <<_ACEOF
9628 #line $LINENO "configure"
9629 #include "confdefs.h"
9631 #ifdef F77_DUMMY_MAIN
9635 int F77_DUMMY_MAIN() { return 1; }
9640 char *p = (char *) alloca (2 * sizeof (int));
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 ac_cv_working_alloca_h=yes
9659 echo "$as_me: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 ac_cv_working_alloca_h=no
9663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9665 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9666 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9667 if test $ac_cv_working_alloca_h = yes; then
9669 cat >>confdefs.h <<\_ACEOF
9670 #define HAVE_ALLOCA_H 1
9675 echo "$as_me:$LINENO: checking for alloca" >&5
9676 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9677 if test "${ac_cv_func_alloca_works+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 cat >conftest.$ac_ext <<_ACEOF
9681 #line $LINENO "configure"
9682 #include "confdefs.h"
9684 # define alloca __builtin_alloca
9687 # include <malloc.h>
9688 # define alloca _alloca
9691 # include <alloca.h>
9696 # ifndef alloca /* predefined by HP cc +Olibcalls */
9704 #ifdef F77_DUMMY_MAIN
9708 int F77_DUMMY_MAIN() { return 1; }
9713 char *p = (char *) alloca (1);
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_func_alloca_works=yes
9732 echo "$as_me: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9734 ac_cv_func_alloca_works=no
9736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9739 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9741 if test $ac_cv_func_alloca_works = yes; then
9743 cat >>confdefs.h <<\_ACEOF
9744 #define HAVE_ALLOCA 1
9748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9749 # that cause trouble. Some versions do not even contain alloca or
9750 # contain a buggy version. If you still want to use their alloca,
9751 # use ar to extract alloca.o from them instead of compiling alloca.c.
9753 ALLOCA=alloca.$ac_objext
9755 cat >>confdefs.h <<\_ACEOF
9760 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9761 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9762 if test "${ac_cv_os_cray+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9766 #line $LINENO "configure"
9767 #include "confdefs.h"
9768 #if defined(CRAY) && ! defined(CRAY2)
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776 egrep "webecray" >/dev/null 2>&1; then
9784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9785 echo "${ECHO_T}$ac_cv_os_cray" >&6
9786 if test $ac_cv_os_cray = yes; then
9787 for ac_func in _getb67 GETB67 getb67; do
9788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 echo "$as_me:$LINENO: checking for $ac_func" >&5
9790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9791 if eval "test \"\${$as_ac_var+set}\" = set"; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9796 #include "confdefs.h"
9797 /* System header to define __stub macros and hopefully few prototypes,
9798 which can conflict with char $ac_func (); below. */
9800 /* Override any gcc2 internal prototype to avoid an error. */
9804 /* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9809 #ifdef F77_DUMMY_MAIN
9813 int F77_DUMMY_MAIN() { return 1; }
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 eval "$as_ac_var=yes"
9845 echo "$as_me: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9847 eval "$as_ac_var=no"
9849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9853 if test `eval echo '${'$as_ac_var'}'` = yes; then
9855 cat >>confdefs.h <<_ACEOF
9856 #define CRAY_STACKSEG_END $ac_func
9865 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9867 if test "${ac_cv_c_stack_direction+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 if test "$cross_compiling" = yes; then
9871 ac_cv_c_stack_direction=0
9873 cat >conftest.$ac_ext <<_ACEOF
9874 #line $LINENO "configure"
9875 #include "confdefs.h"
9877 find_stack_direction ()
9879 static char *addr = 0;
9884 return find_stack_direction ();
9887 return (&dummy > addr) ? 1 : -1;
9893 exit (find_stack_direction () < 0);
9896 rm -f conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898 (eval $ac_link) 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_c_stack_direction=1
9909 echo "$as_me: program exited with status $ac_status" >&5
9910 echo "$as_me: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9913 ac_cv_c_stack_direction=-1
9915 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9919 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9921 cat >>confdefs.h <<_ACEOF
9922 #define STACK_DIRECTION $ac_cv_c_stack_direction
9928 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
9929 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
9930 if test "${ac_cv_func_getpgrp_void+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 # Use it with a single arg.
9934 cat >conftest.$ac_ext <<_ACEOF
9935 #line $LINENO "configure"
9936 #include "confdefs.h"
9937 $ac_includes_default
9938 #ifdef F77_DUMMY_MAIN
9942 int F77_DUMMY_MAIN() { return 1; }
9952 rm -f conftest.$ac_objext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954 (eval $ac_compile) 2>&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -s conftest.$ac_objext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_func_getpgrp_void=no
9966 echo "$as_me: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9968 ac_cv_func_getpgrp_void=yes
9970 rm -f conftest.$ac_objext conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
9974 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
9975 if test $ac_cv_func_getpgrp_void = yes; then
9977 cat >>confdefs.h <<\_ACEOF
9978 #define GETPGRP_VOID 1
9983 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9984 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9985 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 if test "$cross_compiling" = yes; then
9989 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9990 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9991 { (exit 1); exit 1; }; }
9993 cat >conftest.$ac_ext <<_ACEOF
9994 #line $LINENO "configure"
9995 #include "confdefs.h"
9997 /* If setvbuf has the reversed format, exit 0. */
10001 /* This call has the arguments reversed.
10002 A reversed system may check and see that the address of main
10003 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10004 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
10006 putc('\r', stdout);
10007 exit(0); /* Non-reversed systems segv here. */
10010 rm -f conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_func_setvbuf_reversed=yes
10023 echo "$as_me: program exited with status $ac_status" >&5
10024 echo "$as_me: failed program was:" >&5
10025 cat conftest.$ac_ext >&5
10026 ( exit $ac_status )
10027 ac_cv_func_setvbuf_reversed=no
10029 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10031 rm -f core core.* *.core
10033 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10034 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10035 if test $ac_cv_func_setvbuf_reversed = yes; then
10037 cat >>confdefs.h <<\_ACEOF
10038 #define SETVBUF_REVERSED 1
10044 for ac_func in vprintf
10046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10047 echo "$as_me:$LINENO: checking for $ac_func" >&5
10048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_var+set}\" = set"; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10053 #line $LINENO "configure"
10054 #include "confdefs.h"
10055 /* System header to define __stub macros and hopefully few prototypes,
10056 which can conflict with char $ac_func (); below. */
10057 #include <assert.h>
10058 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10067 #ifdef F77_DUMMY_MAIN
10068 # ifdef __cplusplus
10071 int F77_DUMMY_MAIN() { return 1; }
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 eval "$as_ac_var=yes"
10103 echo "$as_me: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 eval "$as_ac_var=no"
10107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10111 if test `eval echo '${'$as_ac_var'}'` = yes; then
10112 cat >>confdefs.h <<_ACEOF
10113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10116 echo "$as_me:$LINENO: checking for _doprnt" >&5
10117 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10118 if test "${ac_cv_func__doprnt+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 cat >conftest.$ac_ext <<_ACEOF
10122 #line $LINENO "configure"
10123 #include "confdefs.h"
10124 /* System header to define __stub macros and hopefully few prototypes,
10125 which can conflict with char _doprnt (); below. */
10126 #include <assert.h>
10127 /* Override any gcc2 internal prototype to avoid an error. */
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10136 #ifdef F77_DUMMY_MAIN
10137 # ifdef __cplusplus
10140 int F77_DUMMY_MAIN() { return 1; }
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_func__doprnt=yes
10172 echo "$as_me: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 ac_cv_func__doprnt=no
10176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10178 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10179 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10180 if test $ac_cv_func__doprnt = yes; then
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_DOPRNT 1
10192 echo "$as_me:$LINENO: checking for working strcoll" >&5
10193 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
10194 if test "${ac_cv_func_strcoll_works+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 if test "$cross_compiling" = yes; then
10198 ac_cv_func_strcoll_works=no
10200 cat >conftest.$ac_ext <<_ACEOF
10201 #line $LINENO "configure"
10202 #include "confdefs.h"
10203 $ac_includes_default
10204 #ifdef F77_DUMMY_MAIN
10205 # ifdef __cplusplus
10208 int F77_DUMMY_MAIN() { return 1; }
10213 exit (strcoll ("abc", "def") >= 0 ||
10214 strcoll ("ABC", "DEF") >= 0 ||
10215 strcoll ("123", "456") >= 0)
10220 rm -f conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_func_strcoll_works=yes
10233 echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 ( exit $ac_status )
10237 ac_cv_func_strcoll_works=no
10239 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10242 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
10243 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
10244 if test $ac_cv_func_strcoll_works = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_STRCOLL 1
10254 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
10255 MALLOC_TARGET=alloca
10256 MALLOC_SRC=alloca.c
10258 MALLOC_LIB='-lmalloc'
10259 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
10260 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
10261 MALLOC_DEP='$(MALLOC_LIBRARY)'
10264 if test "$ac_cv_func_vprintf" = no; then
10265 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
10266 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10274 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
10275 ac_cv_func_vprintf=yes
10279 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
10280 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
10281 if test $ac_cv_func_vprintf = yes; then
10282 cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_VPRINTF 1
10289 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
10290 LIBOBJS="$LIBOBJS vprint.$ac_objext"
10293 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10294 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10295 if test "${ac_cv_type_signal+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 #include "confdefs.h"
10301 #include <sys/types.h>
10302 #include <signal.h>
10307 extern "C" void (*signal (int, void (*)(int)))(int);
10309 void (*signal ()) ();
10312 #ifdef F77_DUMMY_MAIN
10313 # ifdef __cplusplus
10316 int F77_DUMMY_MAIN() { return 1; }
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -s conftest.$ac_objext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_cv_type_signal=void
10340 echo "$as_me: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10342 ac_cv_type_signal=int
10344 rm -f conftest.$ac_objext conftest.$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10347 echo "${ECHO_T}$ac_cv_type_signal" >&6
10349 cat >>confdefs.h <<_ACEOF
10350 #define RETSIGTYPE $ac_cv_type_signal
10355 echo "$as_me:$LINENO: checking for __setostype" >&5
10356 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
10357 if test "${ac_cv_func___setostype+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 /* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char __setostype (); below. */
10365 #include <assert.h>
10366 /* Override any gcc2 internal prototype to avoid an error. */
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10372 char __setostype ();
10375 #ifdef F77_DUMMY_MAIN
10376 # ifdef __cplusplus
10379 int F77_DUMMY_MAIN() { return 1; }
10384 /* The GNU C library defines this for functions which it implements
10385 to always fail with ENOSYS. Some functions are actually named
10386 something starting with __ and the normal name is an alias. */
10387 #if defined (__stub___setostype) || defined (__stub_____setostype)
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_func___setostype=yes
10411 echo "$as_me: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 ac_cv_func___setostype=no
10415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10417 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
10418 echo "${ECHO_T}$ac_cv_func___setostype" >&6
10419 if test $ac_cv_func___setostype = yes; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_SETOSTYPE 1
10426 echo "$as_me:$LINENO: checking for wait3" >&5
10427 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
10428 if test "${ac_cv_func_wait3+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10432 #line $LINENO "configure"
10433 #include "confdefs.h"
10434 /* System header to define __stub macros and hopefully few prototypes,
10435 which can conflict with char wait3 (); below. */
10436 #include <assert.h>
10437 /* Override any gcc2 internal prototype to avoid an error. */
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10446 #ifdef F77_DUMMY_MAIN
10447 # ifdef __cplusplus
10450 int F77_DUMMY_MAIN() { return 1; }
10455 /* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458 #if defined (__stub_wait3) || defined (__stub___wait3)
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 ac_cv_func_wait3=yes
10482 echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 ac_cv_func_wait3=no
10486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10488 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
10489 echo "${ECHO_T}$ac_cv_func_wait3" >&6
10490 if test $ac_cv_func_wait3 = yes; then
10491 cat >>confdefs.h <<\_ACEOF
10492 #define HAVE_WAIT3 1
10497 echo "$as_me:$LINENO: checking for isinf" >&5
10498 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10499 if test "${ac_cv_func_isinf+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 #include "confdefs.h"
10505 /* System header to define __stub macros and hopefully few prototypes,
10506 which can conflict with char isinf (); below. */
10507 #include <assert.h>
10508 /* Override any gcc2 internal prototype to avoid an error. */
10512 /* We use char because int might match the return type of a gcc2
10513 builtin and then its argument prototype would still apply. */
10517 #ifdef F77_DUMMY_MAIN
10518 # ifdef __cplusplus
10521 int F77_DUMMY_MAIN() { return 1; }
10526 /* The GNU C library defines this for functions which it implements
10527 to always fail with ENOSYS. Some functions are actually named
10528 something starting with __ and the normal name is an alias. */
10529 #if defined (__stub_isinf) || defined (__stub___isinf)
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_func_isinf=yes
10553 echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_func_isinf=no
10557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10560 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10561 if test $ac_cv_func_isinf = yes; then
10562 cat >>confdefs.h <<\_ACEOF
10563 #define HAVE_ISINF_IN_LIBC 1
10569 echo "$as_me:$LINENO: checking for mkfifo" >&5
10570 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
10571 if test "${ac_cv_func_mkfifo+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char mkfifo (); below. */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error. */
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10589 #ifdef F77_DUMMY_MAIN
10590 # ifdef __cplusplus
10593 int F77_DUMMY_MAIN() { return 1; }
10598 /* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_mkfifo=yes
10625 echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 ac_cv_func_mkfifo=no
10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
10632 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
10633 if test $ac_cv_func_mkfifo = yes; then
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_MKFIFO 1
10639 cat >>confdefs.h <<\_ACEOF
10640 #define MKFIFO_MISSING 1
10667 for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
10668 getpeername getrlimit getrusage gettimeofday kill killpg \
10669 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
10672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10673 echo "$as_me:$LINENO: checking for $ac_func" >&5
10674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10675 if eval "test \"\${$as_ac_var+set}\" = set"; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10679 #line $LINENO "configure"
10680 #include "confdefs.h"
10681 /* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char $ac_func (); below. */
10683 #include <assert.h>
10684 /* Override any gcc2 internal prototype to avoid an error. */
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10693 #ifdef F77_DUMMY_MAIN
10694 # ifdef __cplusplus
10697 int F77_DUMMY_MAIN() { return 1; }
10702 /* The GNU C library defines this for functions which it implements
10703 to always fail with ENOSYS. Some functions are actually named
10704 something starting with __ and the normal name is an alias. */
10705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -s conftest$ac_exeext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 eval "$as_ac_var=yes"
10729 echo "$as_me: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 eval "$as_ac_var=no"
10733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10737 if test `eval echo '${'$as_ac_var'}'` = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10746 for ac_func in rename
10748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10749 echo "$as_me:$LINENO: checking for $ac_func" >&5
10750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10751 if eval "test \"\${$as_ac_var+set}\" = set"; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10755 #line $LINENO "configure"
10756 #include "confdefs.h"
10757 /* System header to define __stub macros and hopefully few prototypes,
10758 which can conflict with char $ac_func (); below. */
10759 #include <assert.h>
10760 /* Override any gcc2 internal prototype to avoid an error. */
10764 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */
10769 #ifdef F77_DUMMY_MAIN
10770 # ifdef __cplusplus
10773 int F77_DUMMY_MAIN() { return 1; }
10778 /* The GNU C library defines this for functions which it implements
10779 to always fail with ENOSYS. Some functions are actually named
10780 something starting with __ and the normal name is an alias. */
10781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793 (eval $ac_link) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 eval "$as_ac_var=yes"
10805 echo "$as_me: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10807 eval "$as_ac_var=no"
10809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10813 if test `eval echo '${'$as_ac_var'}'` = yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10852 for ac_func in bcopy bzero confstr fnmatch \
10853 getaddrinfo gethostbyname getservbyname getservent inet_aton \
10854 memmove pathconf putenv raise regcomp regexec \
10855 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
10856 sysconf tcgetattr times ttyname tzset unsetenv
10858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10859 echo "$as_me:$LINENO: checking for $ac_func" >&5
10860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10861 if eval "test \"\${$as_ac_var+set}\" = set"; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func (); below. */
10869 #include <assert.h>
10870 /* Override any gcc2 internal prototype to avoid an error. */
10874 /* We use char because int might match the return type of a gcc2
10875 builtin and then its argument prototype would still apply. */
10879 #ifdef F77_DUMMY_MAIN
10880 # ifdef __cplusplus
10883 int F77_DUMMY_MAIN() { return 1; }
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903 (eval $ac_link) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 eval "$as_ac_var=yes"
10915 echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 eval "$as_ac_var=no"
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 for ac_func in vsnprintf snprintf vasprintf asprintf
10938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10939 echo "$as_me:$LINENO: checking for $ac_func" >&5
10940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10941 if eval "test \"\${$as_ac_var+set}\" = set"; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10946 #include "confdefs.h"
10947 /* System header to define __stub macros and hopefully few prototypes,
10948 which can conflict with char $ac_func (); below. */
10949 #include <assert.h>
10950 /* Override any gcc2 internal prototype to avoid an error. */
10954 /* We use char because int might match the return type of a gcc2
10955 builtin and then its argument prototype would still apply. */
10959 #ifdef F77_DUMMY_MAIN
10960 # ifdef __cplusplus
10963 int F77_DUMMY_MAIN() { return 1; }
10968 /* The GNU C library defines this for functions which it implements
10969 to always fail with ENOSYS. Some functions are actually named
10970 something starting with __ and the normal name is an alias. */
10971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983 (eval $ac_link) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -s conftest$ac_exeext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 eval "$as_ac_var=yes"
10995 echo "$as_me: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10997 eval "$as_ac_var=no"
10999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11003 if test `eval echo '${'$as_ac_var'}'` = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11017 for ac_func in isascii isblank isgraph isprint isspace isxdigit
11019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 echo "$as_me:$LINENO: checking for $ac_func" >&5
11021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11022 if eval "test \"\${$as_ac_var+set}\" = set"; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 #include "confdefs.h"
11028 /* System header to define __stub macros and hopefully few prototypes,
11029 which can conflict with char $ac_func (); below. */
11030 #include <assert.h>
11031 /* Override any gcc2 internal prototype to avoid an error. */
11035 /* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */
11040 #ifdef F77_DUMMY_MAIN
11041 # ifdef __cplusplus
11044 int F77_DUMMY_MAIN() { return 1; }
11049 /* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 eval "$as_ac_var=yes"
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 eval "$as_ac_var=no"
11080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 for ac_func in getpwent getpwnam getpwuid
11097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098 echo "$as_me:$LINENO: checking for $ac_func" >&5
11099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11100 if eval "test \"\${$as_ac_var+set}\" = set"; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func (); below. */
11108 #include <assert.h>
11109 /* Override any gcc2 internal prototype to avoid an error. */
11113 /* We use char because int might match the return type of a gcc2
11114 builtin and then its argument prototype would still apply. */
11118 #ifdef F77_DUMMY_MAIN
11119 # ifdef __cplusplus
11122 int F77_DUMMY_MAIN() { return 1; }
11127 /* The GNU C library defines this for functions which it implements
11128 to always fail with ENOSYS. Some functions are actually named
11129 something starting with __ and the normal name is an alias. */
11130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 eval "$as_ac_var=yes"
11154 echo "$as_me: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11156 eval "$as_ac_var=no"
11158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11162 if test `eval echo '${'$as_ac_var'}'` = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_var+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.$ac_ext <<_ACEOF
11187 #line $LINENO "configure"
11188 #include "confdefs.h"
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below. */
11191 #include <assert.h>
11192 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11201 #ifdef F77_DUMMY_MAIN
11202 # ifdef __cplusplus
11205 int F77_DUMMY_MAIN() { return 1; }
11210 /* The GNU C library defines this for functions which it implements
11211 to always fail with ENOSYS. Some functions are actually named
11212 something starting with __ and the normal name is an alias. */
11213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 eval "$as_ac_var=yes"
11237 echo "$as_me: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 eval "$as_ac_var=no"
11241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11245 if test `eval echo '${'$as_ac_var'}'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11263 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
11265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11266 echo "$as_me:$LINENO: checking for $ac_func" >&5
11267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11268 if eval "test \"\${$as_ac_var+set}\" = set"; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11273 #include "confdefs.h"
11274 /* System header to define __stub macros and hopefully few prototypes,
11275 which can conflict with char $ac_func (); below. */
11276 #include <assert.h>
11277 /* Override any gcc2 internal prototype to avoid an error. */
11281 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */
11286 #ifdef F77_DUMMY_MAIN
11287 # ifdef __cplusplus
11290 int F77_DUMMY_MAIN() { return 1; }
11295 /* The GNU C library defines this for functions which it implements
11296 to always fail with ENOSYS. Some functions are actually named
11297 something starting with __ and the normal name is an alias. */
11298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 eval "$as_ac_var=yes"
11322 echo "$as_me: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 eval "$as_ac_var=no"
11326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11330 if test `eval echo '${'$as_ac_var'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11342 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
11343 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
11344 if test "${ac_cv_have_decl_confstr+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 cat >conftest.$ac_ext <<_ACEOF
11348 #line $LINENO "configure"
11349 #include "confdefs.h"
11350 $ac_includes_default
11351 #ifdef F77_DUMMY_MAIN
11352 # ifdef __cplusplus
11355 int F77_DUMMY_MAIN() { return 1; }
11361 char *p = (char *) confstr;
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -s conftest.$ac_objext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_have_decl_confstr=yes
11382 echo "$as_me: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 ac_cv_have_decl_confstr=no
11386 rm -f conftest.$ac_objext conftest.$ac_ext
11388 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
11389 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
11390 if test $ac_cv_have_decl_confstr = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393 #define HAVE_DECL_CONFSTR 1
11398 cat >>confdefs.h <<_ACEOF
11399 #define HAVE_DECL_CONFSTR 0
11406 echo "$as_me:$LINENO: checking whether printf is declared" >&5
11407 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
11408 if test "${ac_cv_have_decl_printf+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 cat >conftest.$ac_ext <<_ACEOF
11412 #line $LINENO "configure"
11413 #include "confdefs.h"
11414 $ac_includes_default
11415 #ifdef F77_DUMMY_MAIN
11416 # ifdef __cplusplus
11419 int F77_DUMMY_MAIN() { return 1; }
11425 char *p = (char *) printf;
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_have_decl_printf=yes
11446 echo "$as_me: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 ac_cv_have_decl_printf=no
11450 rm -f conftest.$ac_objext conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
11453 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
11454 if test $ac_cv_have_decl_printf = yes; then
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_DECL_PRINTF 1
11462 cat >>confdefs.h <<_ACEOF
11463 #define HAVE_DECL_PRINTF 0
11470 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
11471 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
11472 if test "${ac_cv_have_decl_sbrk+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478 $ac_includes_default
11479 #ifdef F77_DUMMY_MAIN
11480 # ifdef __cplusplus
11483 int F77_DUMMY_MAIN() { return 1; }
11489 char *p = (char *) sbrk;
11496 rm -f conftest.$ac_objext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498 (eval $ac_compile) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_have_decl_sbrk=yes
11510 echo "$as_me: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 ac_cv_have_decl_sbrk=no
11514 rm -f conftest.$ac_objext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
11517 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
11518 if test $ac_cv_have_decl_sbrk = yes; then
11520 cat >>confdefs.h <<_ACEOF
11521 #define HAVE_DECL_SBRK 1
11526 cat >>confdefs.h <<_ACEOF
11527 #define HAVE_DECL_SBRK 0
11534 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
11535 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
11536 if test "${ac_cv_have_decl_strcpy+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11540 #line $LINENO "configure"
11541 #include "confdefs.h"
11542 $ac_includes_default
11543 #ifdef F77_DUMMY_MAIN
11544 # ifdef __cplusplus
11547 int F77_DUMMY_MAIN() { return 1; }
11553 char *p = (char *) strcpy;
11560 rm -f conftest.$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_have_decl_strcpy=yes
11574 echo "$as_me: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 ac_cv_have_decl_strcpy=no
11578 rm -f conftest.$ac_objext conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
11581 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
11582 if test $ac_cv_have_decl_strcpy = yes; then
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_DECL_STRCPY 1
11590 cat >>confdefs.h <<_ACEOF
11591 #define HAVE_DECL_STRCPY 0
11598 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
11599 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
11600 if test "${ac_cv_have_decl_strsignal+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606 $ac_includes_default
11607 #ifdef F77_DUMMY_MAIN
11608 # ifdef __cplusplus
11611 int F77_DUMMY_MAIN() { return 1; }
11617 char *p = (char *) strsignal;
11624 rm -f conftest.$ac_objext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11626 (eval $ac_compile) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -s conftest.$ac_objext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_have_decl_strsignal=yes
11638 echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 ac_cv_have_decl_strsignal=no
11642 rm -f conftest.$ac_objext conftest.$ac_ext
11644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
11645 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
11646 if test $ac_cv_have_decl_strsignal = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_DECL_STRSIGNAL 1
11654 cat >>confdefs.h <<_ACEOF
11655 #define HAVE_DECL_STRSIGNAL 0
11663 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
11664 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
11665 if test "${ac_cv_have_decl_strtold+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 cat >conftest.$ac_ext <<_ACEOF
11669 #line $LINENO "configure"
11670 #include "confdefs.h"
11671 $ac_includes_default
11672 #ifdef F77_DUMMY_MAIN
11673 # ifdef __cplusplus
11676 int F77_DUMMY_MAIN() { return 1; }
11682 char *p = (char *) strtold;
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691 (eval $ac_compile) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 ac_cv_have_decl_strtold=yes
11703 echo "$as_me: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11705 ac_cv_have_decl_strtold=no
11707 rm -f conftest.$ac_objext conftest.$ac_ext
11709 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
11710 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
11711 if test $ac_cv_have_decl_strtold = yes; then
11713 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_DECL_STRTOLD 1
11718 echo "$as_me:$LINENO: checking for broken strtold" >&5
11719 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
11720 if test "${bash_cv_strtold_broken+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11724 #line $LINENO "configure"
11725 #include "confdefs.h"
11726 #include <stdlib.h>
11727 #ifdef F77_DUMMY_MAIN
11728 # ifdef __cplusplus
11731 int F77_DUMMY_MAIN() { return 1; }
11736 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 bash_cv_strtold_broken=no
11755 echo "$as_me: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 bash_cv_strtold_broken=yes
11759 rm -f conftest.$ac_objext conftest.$ac_ext
11764 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
11765 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
11766 if test "$bash_cv_strtold_broken" = "yes" ; then
11767 cat >>confdefs.h <<\_ACEOF
11768 #define STRTOLD_BROKEN 1
11774 cat >>confdefs.h <<_ACEOF
11775 #define HAVE_DECL_STRTOLD 0
11787 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
11788 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
11789 if test "${bash_cv_decl_strtoimax+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11794 #include "confdefs.h"
11797 # include <stdlib.h>
11799 #if HAVE_INTTYPES_H
11800 # include <inttypes.h>
11803 #ifdef F77_DUMMY_MAIN
11804 # ifdef __cplusplus
11807 int F77_DUMMY_MAIN() { return 1; }
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819 (eval $ac_link) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -s conftest$ac_exeext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 bash_cv_decl_strtoimax=yes
11831 echo "$as_me: failed program was:" >&5
11832 cat conftest.$ac_ext >&5
11833 bash_cv_decl_strtoimax=no
11835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11837 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
11838 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
11839 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11840 if test $bash_cv_decl_strtoimax = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842 #define $bash_tr_func 1
11846 cat >>confdefs.h <<_ACEOF
11847 #define $bash_tr_func 0
11855 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
11856 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
11857 if test "${bash_cv_decl_strtol+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 #include "confdefs.h"
11865 # include <stdlib.h>
11867 #if HAVE_INTTYPES_H
11868 # include <inttypes.h>
11871 #ifdef F77_DUMMY_MAIN
11872 # ifdef __cplusplus
11875 int F77_DUMMY_MAIN() { return 1; }
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887 (eval $ac_link) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 bash_cv_decl_strtol=yes
11899 echo "$as_me: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11901 bash_cv_decl_strtol=no
11903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11905 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
11906 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
11907 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11908 if test $bash_cv_decl_strtol = yes; then
11909 cat >>confdefs.h <<_ACEOF
11910 #define $bash_tr_func 1
11914 cat >>confdefs.h <<_ACEOF
11915 #define $bash_tr_func 0
11923 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
11924 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
11925 if test "${bash_cv_decl_strtoll+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 cat >conftest.$ac_ext <<_ACEOF
11929 #line $LINENO "configure"
11930 #include "confdefs.h"
11933 # include <stdlib.h>
11935 #if HAVE_INTTYPES_H
11936 # include <inttypes.h>
11939 #ifdef F77_DUMMY_MAIN
11940 # ifdef __cplusplus
11943 int F77_DUMMY_MAIN() { return 1; }
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 bash_cv_decl_strtoll=yes
11967 echo "$as_me: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 bash_cv_decl_strtoll=no
11971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11973 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
11974 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
11975 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11976 if test $bash_cv_decl_strtoll = yes; then
11977 cat >>confdefs.h <<_ACEOF
11978 #define $bash_tr_func 1
11982 cat >>confdefs.h <<_ACEOF
11983 #define $bash_tr_func 0
11991 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
11992 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
11993 if test "${bash_cv_decl_strtoul+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 cat >conftest.$ac_ext <<_ACEOF
11997 #line $LINENO "configure"
11998 #include "confdefs.h"
12001 # include <stdlib.h>
12003 #if HAVE_INTTYPES_H
12004 # include <inttypes.h>
12007 #ifdef F77_DUMMY_MAIN
12008 # ifdef __cplusplus
12011 int F77_DUMMY_MAIN() { return 1; }
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -s conftest$ac_exeext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 bash_cv_decl_strtoul=yes
12035 echo "$as_me: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 bash_cv_decl_strtoul=no
12039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12041 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
12042 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
12043 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12044 if test $bash_cv_decl_strtoul = yes; then
12045 cat >>confdefs.h <<_ACEOF
12046 #define $bash_tr_func 1
12050 cat >>confdefs.h <<_ACEOF
12051 #define $bash_tr_func 0
12059 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
12060 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
12061 if test "${bash_cv_decl_strtoull+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12066 #include "confdefs.h"
12069 # include <stdlib.h>
12071 #if HAVE_INTTYPES_H
12072 # include <inttypes.h>
12075 #ifdef F77_DUMMY_MAIN
12076 # ifdef __cplusplus
12079 int F77_DUMMY_MAIN() { return 1; }
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 bash_cv_decl_strtoull=yes
12103 echo "$as_me: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 bash_cv_decl_strtoull=no
12107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12109 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
12110 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
12111 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12112 if test $bash_cv_decl_strtoull = yes; then
12113 cat >>confdefs.h <<_ACEOF
12114 #define $bash_tr_func 1
12118 cat >>confdefs.h <<_ACEOF
12119 #define $bash_tr_func 0
12127 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
12128 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
12129 if test "${bash_cv_decl_strtoumax+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.$ac_ext <<_ACEOF
12133 #line $LINENO "configure"
12134 #include "confdefs.h"
12137 # include <stdlib.h>
12139 #if HAVE_INTTYPES_H
12140 # include <inttypes.h>
12143 #ifdef F77_DUMMY_MAIN
12144 # ifdef __cplusplus
12147 int F77_DUMMY_MAIN() { return 1; }
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159 (eval $ac_link) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 bash_cv_decl_strtoumax=yes
12171 echo "$as_me: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 bash_cv_decl_strtoumax=no
12175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
12178 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
12179 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12180 if test $bash_cv_decl_strtoumax = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define $bash_tr_func 1
12186 cat >>confdefs.h <<_ACEOF
12187 #define $bash_tr_func 0
12195 for ac_header in sys/time.h unistd.h
12197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12199 echo "$as_me:$LINENO: checking for $ac_header" >&5
12200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12207 # Is the header compilable?
12208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 $ac_includes_default
12214 #include <$ac_header>
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218 (eval $ac_compile) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_header_compiler=yes
12230 echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 ac_header_compiler=no
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6
12238 # Is the header present?
12239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12243 #include "confdefs.h"
12244 #include <$ac_header>
12246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12249 egrep -v '^ *\+' conftest.er1 >conftest.err
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } >/dev/null; then
12254 if test -s conftest.err; then
12255 ac_cpp_err=$ac_c_preproc_warn_flag
12262 if test -z "$ac_cpp_err"; then
12263 ac_header_preproc=yes
12265 echo "$as_me: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12267 ac_header_preproc=no
12269 rm -f conftest.err conftest.$ac_ext
12270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc in
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12288 echo "$as_me:$LINENO: checking for $ac_header" >&5
12289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 eval "$as_ac_Header=$ac_header_preproc"
12295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12300 cat >>confdefs.h <<_ACEOF
12301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12309 for ac_func in alarm
12311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12312 echo "$as_me:$LINENO: checking for $ac_func" >&5
12313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12314 if eval "test \"\${$as_ac_var+set}\" = set"; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12320 /* System header to define __stub macros and hopefully few prototypes,
12321 which can conflict with char $ac_func (); below. */
12322 #include <assert.h>
12323 /* Override any gcc2 internal prototype to avoid an error. */
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12332 #ifdef F77_DUMMY_MAIN
12333 # ifdef __cplusplus
12336 int F77_DUMMY_MAIN() { return 1; }
12341 /* The GNU C library defines this for functions which it implements
12342 to always fail with ENOSYS. Some functions are actually named
12343 something starting with __ and the normal name is an alias. */
12344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 eval "$as_ac_var=yes"
12368 echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 eval "$as_ac_var=no"
12372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12376 if test `eval echo '${'$as_ac_var'}'` = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12384 echo "$as_me:$LINENO: checking for working mktime" >&5
12385 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12386 if test "${ac_cv_func_working_mktime+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 if test "$cross_compiling" = yes; then
12390 ac_cv_func_working_mktime=no
12392 cat >conftest.$ac_ext <<_ACEOF
12393 #line $LINENO "configure"
12394 #include "confdefs.h"
12395 /* Test program from Paul Eggert and Tony Leneis. */
12396 #if TIME_WITH_SYS_TIME
12397 # include <sys/time.h>
12400 # if HAVE_SYS_TIME_H
12401 # include <sys/time.h>
12408 # include <unistd.h>
12412 # define alarm(X) /* empty */
12415 /* Work around redefinition to rpl_putenv by other config tests. */
12418 static time_t time_t_max;
12420 /* Values we'll use to set the TZ environment variable. */
12421 static const char *const tz_strings[] = {
12422 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12423 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12425 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12427 /* Fail if mktime fails to convert a date in the spring-forward gap.
12428 Based on a problem report from Andreas Jaeger. */
12430 spring_forward_gap ()
12432 /* glibc (up to about 1998-10-07) failed this test. */
12435 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12436 instead of "TZ=America/Vancouver" in order to detect the bug even
12437 on systems that don't support the Olson extension, or don't have the
12438 full zoneinfo tables installed. */
12439 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12448 if (mktime (&tm) == (time_t)-1)
12457 if ((lt = localtime (&now)) && mktime (lt) != now)
12459 now = time_t_max - now;
12460 if ((lt = localtime (&now)) && mktime (lt) != now)
12467 /* Based on code from Ariel Faigon. */
12477 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12487 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12488 now = mktime (&tm);
12489 if (now != (time_t) -1)
12491 struct tm *lt = localtime (&now);
12493 && lt->tm_year == tm.tm_year
12494 && lt->tm_mon == tm.tm_mon
12495 && lt->tm_mday == tm.tm_mday
12496 && lt->tm_hour == tm.tm_hour
12497 && lt->tm_min == tm.tm_min
12498 && lt->tm_sec == tm.tm_sec
12499 && lt->tm_yday == tm.tm_yday
12500 && lt->tm_wday == tm.tm_wday
12501 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12502 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12513 /* This test makes some buggy mktime implementations loop.
12514 Give up after 60 seconds; a mktime slower than that
12515 isn't worth using anyway. */
12518 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12521 delta = time_t_max / 997; /* a suitable prime number */
12522 for (i = 0; i < N_STRINGS; i++)
12525 putenv (tz_strings[i]);
12527 for (t = 0; t <= time_t_max - delta; t += delta)
12529 mktime_test ((time_t) 60 * 60);
12530 mktime_test ((time_t) 60 * 60 * 24);
12532 for (j = 1; 0 < j; j *= 2)
12534 bigtime_test (j - 1);
12537 spring_forward_gap ();
12541 rm -f conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_func_working_mktime=yes
12554 echo "$as_me: program exited with status $ac_status" >&5
12555 echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 ( exit $ac_status )
12558 ac_cv_func_working_mktime=no
12560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12564 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12565 if test $ac_cv_func_working_mktime = no; then
12566 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12576 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
12578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580 echo "$as_me:$LINENO: checking for $ac_header" >&5
12581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12588 # Is the header compilable?
12589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line $LINENO "configure"
12593 #include "confdefs.h"
12594 $ac_includes_default
12595 #include <$ac_header>
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_header_compiler=yes
12611 echo "$as_me: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12613 ac_header_compiler=no
12615 rm -f conftest.$ac_objext conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6
12619 # Is the header present?
12620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12623 #line $LINENO "configure"
12624 #include "confdefs.h"
12625 #include <$ac_header>
12627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12630 egrep -v '^ *\+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } >/dev/null; then
12635 if test -s conftest.err; then
12636 ac_cpp_err=$ac_c_preproc_warn_flag
12643 if test -z "$ac_cpp_err"; then
12644 ac_header_preproc=yes
12646 echo "$as_me: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 ac_header_preproc=no
12650 rm -f conftest.err conftest.$ac_ext
12651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12652 echo "${ECHO_T}$ac_header_preproc" >&6
12654 # So? What about this header?
12655 case $ac_header_compiler:$ac_header_preproc in
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12669 echo "$as_me:$LINENO: checking for $ac_header" >&5
12670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 eval "$as_ac_Header=$ac_header_preproc"
12676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12681 cat >>confdefs.h <<_ACEOF
12682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12692 for ac_header in stdlib.h unistd.h
12694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12696 echo "$as_me:$LINENO: checking for $ac_header" >&5
12697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12704 # Is the header compilable?
12705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12707 cat >conftest.$ac_ext <<_ACEOF
12708 #line $LINENO "configure"
12709 #include "confdefs.h"
12710 $ac_includes_default
12711 #include <$ac_header>
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_header_compiler=yes
12727 echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 ac_header_compiler=no
12731 rm -f conftest.$ac_objext conftest.$ac_ext
12732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12733 echo "${ECHO_T}$ac_header_compiler" >&6
12735 # Is the header present?
12736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12738 cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 #include <$ac_header>
12743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12746 egrep -v '^ *\+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } >/dev/null; then
12751 if test -s conftest.err; then
12752 ac_cpp_err=$ac_c_preproc_warn_flag
12759 if test -z "$ac_cpp_err"; then
12760 ac_header_preproc=yes
12762 echo "$as_me: failed program was:" >&5
12763 cat conftest.$ac_ext >&5
12764 ac_header_preproc=no
12766 rm -f conftest.err conftest.$ac_ext
12767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12768 echo "${ECHO_T}$ac_header_preproc" >&6
12770 # So? What about this header?
12771 case $ac_header_compiler:$ac_header_preproc in
12773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12785 echo "$as_me:$LINENO: checking for $ac_header" >&5
12786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 eval "$as_ac_Header=$ac_header_preproc"
12792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12806 for ac_func in getpagesize
12808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12809 echo "$as_me:$LINENO: checking for $ac_func" >&5
12810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12811 if eval "test \"\${$as_ac_var+set}\" = set"; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 cat >conftest.$ac_ext <<_ACEOF
12815 #line $LINENO "configure"
12816 #include "confdefs.h"
12817 /* System header to define __stub macros and hopefully few prototypes,
12818 which can conflict with char $ac_func (); below. */
12819 #include <assert.h>
12820 /* Override any gcc2 internal prototype to avoid an error. */
12824 /* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12829 #ifdef F77_DUMMY_MAIN
12830 # ifdef __cplusplus
12833 int F77_DUMMY_MAIN() { return 1; }
12838 /* The GNU C library defines this for functions which it implements
12839 to always fail with ENOSYS. Some functions are actually named
12840 something starting with __ and the normal name is an alias. */
12841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 eval "$as_ac_var=yes"
12865 echo "$as_me: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 eval "$as_ac_var=no"
12869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12873 if test `eval echo '${'$as_ac_var'}'` = yes; then
12874 cat >>confdefs.h <<_ACEOF
12875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12881 echo "$as_me:$LINENO: checking for working mmap" >&5
12882 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12883 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 if test "$cross_compiling" = yes; then
12887 ac_cv_func_mmap_fixed_mapped=no
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12891 #include "confdefs.h"
12892 $ac_includes_default
12893 /* malloc might have been renamed as rpl_malloc. */
12896 /* Thanks to Mike Haertel and Jim Avera for this test.
12897 Here is a matrix of mmap possibilities:
12898 mmap private not fixed
12899 mmap private fixed at somewhere currently unmapped
12900 mmap private fixed at somewhere already mapped
12901 mmap shared not fixed
12902 mmap shared fixed at somewhere currently unmapped
12903 mmap shared fixed at somewhere already mapped
12904 For private mappings, we should verify that changes cannot be read()
12905 back from the file, nor mmap's back from the file at a different
12906 address. (There have been systems where private was not correctly
12907 implemented like the infamous i386 svr4.0, and systems where the
12908 VM page cache was not coherent with the file system buffer cache
12909 like early versions of FreeBSD and possibly contemporary NetBSD.)
12910 For shared mappings, we should conversely verify that changes get
12911 propagated back to all the places they're supposed to be.
12913 Grep wants private fixed already mapped.
12914 The main things grep needs to know about mmap are:
12915 * does it exist and is it safe to write into the mmap'd area
12916 * how to use it (BSD variants) */
12919 #include <sys/mman.h>
12921 #if !STDC_HEADERS && !HAVE_STDLIB_H
12925 /* This mess was copied from the GNU getpagesize.h. */
12926 #if !HAVE_GETPAGESIZE
12927 /* Assume that all systems that can run configure have sys/param.h. */
12928 # if !HAVE_SYS_PARAM_H
12929 # define HAVE_SYS_PARAM_H 1
12932 # ifdef _SC_PAGESIZE
12933 # define getpagesize() sysconf(_SC_PAGESIZE)
12934 # else /* no _SC_PAGESIZE */
12935 # if HAVE_SYS_PARAM_H
12936 # include <sys/param.h>
12937 # ifdef EXEC_PAGESIZE
12938 # define getpagesize() EXEC_PAGESIZE
12939 # else /* no EXEC_PAGESIZE */
12941 # define getpagesize() NBPG * CLSIZE
12944 # endif /* no CLSIZE */
12945 # else /* no NBPG */
12947 # define getpagesize() NBPC
12948 # else /* no NBPC */
12950 # define getpagesize() PAGESIZE
12951 # endif /* PAGESIZE */
12952 # endif /* no NBPC */
12953 # endif /* no NBPG */
12954 # endif /* no EXEC_PAGESIZE */
12955 # else /* no HAVE_SYS_PARAM_H */
12956 # define getpagesize() 8192 /* punt totally */
12957 # endif /* no HAVE_SYS_PARAM_H */
12958 # endif /* no _SC_PAGESIZE */
12960 #endif /* no HAVE_GETPAGESIZE */
12965 char *data, *data2, *data3;
12969 pagesize = getpagesize ();
12971 /* First, make a file with some known garbage in it. */
12972 data = (char *) malloc (pagesize);
12975 for (i = 0; i < pagesize; ++i)
12976 *(data + i) = rand ();
12978 fd = creat ("conftest.mmap", 0600);
12981 if (write (fd, data, pagesize) != pagesize)
12985 /* Next, try to mmap the file at a fixed address which already has
12986 something else allocated at it. If we can, also make sure that
12987 we see the same garbage. */
12988 fd = open ("conftest.mmap", O_RDWR);
12991 data2 = (char *) malloc (2 * pagesize);
12994 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12995 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12998 for (i = 0; i < pagesize; ++i)
12999 if (*(data + i) != *(data2 + i))
13002 /* Finally, make sure that changes to the mapped area do not
13003 percolate back to the file as seen by read(). (This is a bug on
13004 some variants of i386 svr4.0.) */
13005 for (i = 0; i < pagesize; ++i)
13006 *(data2 + i) = *(data2 + i) + 1;
13007 data3 = (char *) malloc (pagesize);
13010 if (read (fd, data3, pagesize) != pagesize)
13012 for (i = 0; i < pagesize; ++i)
13013 if (*(data + i) != *(data3 + i))
13019 rm -f conftest$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13030 ac_cv_func_mmap_fixed_mapped=yes
13032 echo "$as_me: program exited with status $ac_status" >&5
13033 echo "$as_me: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13035 ( exit $ac_status )
13036 ac_cv_func_mmap_fixed_mapped=no
13038 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13041 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13042 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13043 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_MMAP 1
13050 rm -f conftest.mmap
13061 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
13062 munmap stpcpy strcspn strdup
13064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13065 echo "$as_me:$LINENO: checking for $ac_func" >&5
13066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_var+set}\" = set"; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13073 /* System header to define __stub macros and hopefully few prototypes,
13074 which can conflict with char $ac_func (); below. */
13075 #include <assert.h>
13076 /* Override any gcc2 internal prototype to avoid an error. */
13080 /* We use char because int might match the return type of a gcc2
13081 builtin and then its argument prototype would still apply. */
13085 #ifdef F77_DUMMY_MAIN
13086 # ifdef __cplusplus
13089 int F77_DUMMY_MAIN() { return 1; }
13094 /* The GNU C library defines this for functions which it implements
13095 to always fail with ENOSYS. Some functions are actually named
13096 something starting with __ and the normal name is an alias. */
13097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 eval "$as_ac_var=yes"
13121 echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13123 eval "$as_ac_var=no"
13125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h <<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 INTL_DEP= INTL_INC= LIBINTL_H=
13139 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
13140 INTL_DEP='${INTL_LIBDIR}/libintl.a'
13141 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
13142 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
13151 for ac_header in wctype.h
13153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo "$as_me:$LINENO: checking for $ac_header" >&5
13156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163 # Is the header compilable?
13164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13169 $ac_includes_default
13170 #include <$ac_header>
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_header_compiler=yes
13186 echo "$as_me: failed program was:" >&5
13187 cat conftest.$ac_ext >&5
13188 ac_header_compiler=no
13190 rm -f conftest.$ac_objext conftest.$ac_ext
13191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13192 echo "${ECHO_T}$ac_header_compiler" >&6
13194 # Is the header present?
13195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13199 #include "confdefs.h"
13200 #include <$ac_header>
13202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13205 egrep -v '^ *\+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } >/dev/null; then
13210 if test -s conftest.err; then
13211 ac_cpp_err=$ac_c_preproc_warn_flag
13218 if test -z "$ac_cpp_err"; then
13219 ac_header_preproc=yes
13221 echo "$as_me: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 ac_header_preproc=no
13225 rm -f conftest.err conftest.$ac_ext
13226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13227 echo "${ECHO_T}$ac_header_preproc" >&6
13229 # So? What about this header?
13230 case $ac_header_compiler:$ac_header_preproc in
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13244 echo "$as_me:$LINENO: checking for $ac_header" >&5
13245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 eval "$as_ac_Header=$ac_header_preproc"
13251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13256 cat >>confdefs.h <<_ACEOF
13257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13265 for ac_header in wchar.h
13267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13269 echo "$as_me:$LINENO: checking for $ac_header" >&5
13270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13277 # Is the header compilable?
13278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13282 #include "confdefs.h"
13283 $ac_includes_default
13284 #include <$ac_header>
13286 rm -f conftest.$ac_objext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288 (eval $ac_compile) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -s conftest.$ac_objext'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_header_compiler=yes
13300 echo "$as_me: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 ac_header_compiler=no
13304 rm -f conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6
13308 # Is the header present?
13309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13312 #line $LINENO "configure"
13313 #include "confdefs.h"
13314 #include <$ac_header>
13316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13319 egrep -v '^ *\+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } >/dev/null; then
13324 if test -s conftest.err; then
13325 ac_cpp_err=$ac_c_preproc_warn_flag
13332 if test -z "$ac_cpp_err"; then
13333 ac_header_preproc=yes
13335 echo "$as_me: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 ac_header_preproc=no
13339 rm -f conftest.err conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 echo "${ECHO_T}$ac_header_preproc" >&6
13343 # So? What about this header?
13344 case $ac_header_compiler:$ac_header_preproc in
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13358 echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 eval "$as_ac_Header=$ac_header_preproc"
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379 for ac_header in langinfo.h
13381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13383 echo "$as_me:$LINENO: checking for $ac_header" >&5
13384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13391 # Is the header compilable?
13392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13397 $ac_includes_default
13398 #include <$ac_header>
13400 rm -f conftest.$ac_objext
13401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13402 (eval $ac_compile) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_header_compiler=yes
13414 echo "$as_me: failed program was:" >&5
13415 cat conftest.$ac_ext >&5
13416 ac_header_compiler=no
13418 rm -f conftest.$ac_objext conftest.$ac_ext
13419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13420 echo "${ECHO_T}$ac_header_compiler" >&6
13422 # Is the header present?
13423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13428 #include <$ac_header>
13430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13433 egrep -v '^ *\+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
13446 if test -z "$ac_cpp_err"; then
13447 ac_header_preproc=yes
13449 echo "$as_me: failed program was:" >&5
13450 cat conftest.$ac_ext >&5
13451 ac_header_preproc=no
13453 rm -f conftest.err conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6
13457 # So? What about this header?
13458 case $ac_header_compiler:$ac_header_preproc in
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13472 echo "$as_me:$LINENO: checking for $ac_header" >&5
13473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 eval "$as_ac_Header=$ac_header_preproc"
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13493 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
13494 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
13495 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501 /* System header to define __stub macros and hopefully few prototypes,
13502 which can conflict with char mbsrtowcs (); below. */
13503 #include <assert.h>
13504 /* Override any gcc2 internal prototype to avoid an error. */
13508 /* We use char because int might match the return type of a gcc2
13509 builtin and then its argument prototype would still apply. */
13513 #ifdef F77_DUMMY_MAIN
13514 # ifdef __cplusplus
13517 int F77_DUMMY_MAIN() { return 1; }
13522 /* The GNU C library defines this for functions which it implements
13523 to always fail with ENOSYS. Some functions are actually named
13524 something starting with __ and the normal name is an alias. */
13525 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -s conftest$ac_exeext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_func_mbsrtowcs=yes
13549 echo "$as_me: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 ac_cv_func_mbsrtowcs=no
13553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13555 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
13556 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
13557 if test $ac_cv_func_mbsrtowcs = yes; then
13558 cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_MBSRTOWCS 1
13564 echo "$as_me:$LINENO: checking for mbrtowc" >&5
13565 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
13566 if test "${ac_cv_func_mbrtowc+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 cat >conftest.$ac_ext <<_ACEOF
13570 #line $LINENO "configure"
13571 #include "confdefs.h"
13572 /* System header to define __stub macros and hopefully few prototypes,
13573 which can conflict with char mbrtowc (); below. */
13574 #include <assert.h>
13575 /* Override any gcc2 internal prototype to avoid an error. */
13579 /* We use char because int might match the return type of a gcc2
13580 builtin and then its argument prototype would still apply. */
13584 #ifdef F77_DUMMY_MAIN
13585 # ifdef __cplusplus
13588 int F77_DUMMY_MAIN() { return 1; }
13593 /* The GNU C library defines this for functions which it implements
13594 to always fail with ENOSYS. Some functions are actually named
13595 something starting with __ and the normal name is an alias. */
13596 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13608 (eval $ac_link) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_func_mbrtowc=yes
13620 echo "$as_me: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 ac_cv_func_mbrtowc=no
13624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13626 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
13627 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
13628 if test $ac_cv_func_mbrtowc = yes; then
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_MBRTOWC 1
13635 echo "$as_me:$LINENO: checking for mbrlen" >&5
13636 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
13637 if test "${ac_cv_func_mbrlen+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13642 #include "confdefs.h"
13643 /* System header to define __stub macros and hopefully few prototypes,
13644 which can conflict with char mbrlen (); below. */
13645 #include <assert.h>
13646 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13655 #ifdef F77_DUMMY_MAIN
13656 # ifdef __cplusplus
13659 int F77_DUMMY_MAIN() { return 1; }
13664 /* The GNU C library defines this for functions which it implements
13665 to always fail with ENOSYS. Some functions are actually named
13666 something starting with __ and the normal name is an alias. */
13667 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679 (eval $ac_link) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -s conftest$ac_exeext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_func_mbrlen=yes
13691 echo "$as_me: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13693 ac_cv_func_mbrlen=no
13695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13697 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
13698 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
13699 if test $ac_cv_func_mbrlen = yes; then
13700 cat >>confdefs.h <<\_ACEOF
13701 #define HAVE_MBRLEN 1
13706 echo "$as_me:$LINENO: checking for wctomb" >&5
13707 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
13708 if test "${ac_cv_func_wctomb+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 /* System header to define __stub macros and hopefully few prototypes,
13715 which can conflict with char wctomb (); below. */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13721 /* We use char because int might match the return type of a gcc2
13722 builtin and then its argument prototype would still apply. */
13726 #ifdef F77_DUMMY_MAIN
13727 # ifdef __cplusplus
13730 int F77_DUMMY_MAIN() { return 1; }
13735 /* The GNU C library defines this for functions which it implements
13736 to always fail with ENOSYS. Some functions are actually named
13737 something starting with __ and the normal name is an alias. */
13738 #if defined (__stub_wctomb) || defined (__stub___wctomb)
13748 rm -f conftest.$ac_objext conftest$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750 (eval $ac_link) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_func_wctomb=yes
13762 echo "$as_me: failed program was:" >&5
13763 cat conftest.$ac_ext >&5
13764 ac_cv_func_wctomb=no
13766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13768 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
13769 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
13770 if test $ac_cv_func_wctomb = yes; then
13771 cat >>confdefs.h <<\_ACEOF
13772 #define HAVE_WCTOMB 1
13777 echo "$as_me:$LINENO: checking for wcwidth" >&5
13778 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
13779 if test "${ac_cv_func_wcwidth+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 cat >conftest.$ac_ext <<_ACEOF
13783 #line $LINENO "configure"
13784 #include "confdefs.h"
13785 /* System header to define __stub macros and hopefully few prototypes,
13786 which can conflict with char wcwidth (); below. */
13787 #include <assert.h>
13788 /* Override any gcc2 internal prototype to avoid an error. */
13792 /* We use char because int might match the return type of a gcc2
13793 builtin and then its argument prototype would still apply. */
13797 #ifdef F77_DUMMY_MAIN
13798 # ifdef __cplusplus
13801 int F77_DUMMY_MAIN() { return 1; }
13806 /* The GNU C library defines this for functions which it implements
13807 to always fail with ENOSYS. Some functions are actually named
13808 something starting with __ and the normal name is an alias. */
13809 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821 (eval $ac_link) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_func_wcwidth=yes
13833 echo "$as_me: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 ac_cv_func_wcwidth=no
13837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13839 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
13840 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
13841 if test $ac_cv_func_wcwidth = yes; then
13842 cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_WCWIDTH 1
13848 echo "$as_me:$LINENO: checking for wcsdup" >&5
13849 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
13850 if test "${ac_cv_func_wcsdup+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 cat >conftest.$ac_ext <<_ACEOF
13854 #line $LINENO "configure"
13855 #include "confdefs.h"
13856 /* System header to define __stub macros and hopefully few prototypes,
13857 which can conflict with char wcsdup (); below. */
13858 #include <assert.h>
13859 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13868 #ifdef F77_DUMMY_MAIN
13869 # ifdef __cplusplus
13872 int F77_DUMMY_MAIN() { return 1; }
13877 /* The GNU C library defines this for functions which it implements
13878 to always fail with ENOSYS. Some functions are actually named
13879 something starting with __ and the normal name is an alias. */
13880 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892 (eval $ac_link) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_func_wcsdup=yes
13904 echo "$as_me: failed program was:" >&5
13905 cat conftest.$ac_ext >&5
13906 ac_cv_func_wcsdup=no
13908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13910 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
13911 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
13912 if test $ac_cv_func_wcsdup = yes; then
13913 cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_WCSDUP 1
13920 echo "$as_me:$LINENO: checking for mbstate_t" >&5
13921 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13922 if test "${bash_cv_have_mbstate_t+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13927 #include "confdefs.h"
13930 #ifdef F77_DUMMY_MAIN
13931 # ifdef __cplusplus
13934 int F77_DUMMY_MAIN() { return 1; }
13942 psp = (mbstate_t *)0;
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 bash_cv_have_mbstate_t=yes
13962 echo "$as_me: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 bash_cv_have_mbstate_t=no
13966 rm -f conftest.$ac_objext conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
13969 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
13970 if test $bash_cv_have_mbstate_t = yes; then
13971 cat >>confdefs.h <<\_ACEOF
13972 #define HAVE_MBSTATE_T 1
13977 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13978 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13979 if test "${bash_cv_langinfo_codeset+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 cat >conftest.$ac_ext <<_ACEOF
13983 #line $LINENO "configure"
13984 #include "confdefs.h"
13985 #include <langinfo.h>
13986 #ifdef F77_DUMMY_MAIN
13987 # ifdef __cplusplus
13990 int F77_DUMMY_MAIN() { return 1; }
13995 char* cs = nl_langinfo(CODESET);
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002 (eval $ac_link) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -s conftest$ac_exeext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 bash_cv_langinfo_codeset=yes
14014 echo "$as_me: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14016 bash_cv_langinfo_codeset=no
14018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14020 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
14021 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
14022 if test $bash_cv_langinfo_codeset = yes; then
14023 cat >>confdefs.h <<\_ACEOF
14024 #define HAVE_LANGINFO_CODESET 1
14031 if test "$opt_static_link" != yes; then
14033 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 ac_check_lib_save_LIBS=$LIBS
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14044 /* Override any gcc2 internal prototype to avoid an error. */
14048 /* We use char because int might match the return type of a gcc2
14049 builtin and then its argument prototype would still apply. */
14051 #ifdef F77_DUMMY_MAIN
14052 # ifdef __cplusplus
14055 int F77_DUMMY_MAIN() { return 1; }
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067 (eval $ac_link) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_cv_lib_dl_dlopen=yes
14079 echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 ac_cv_lib_dl_dlopen=no
14083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14088 if test $ac_cv_lib_dl_dlopen = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define HAVE_LIBDL 1
14100 for ac_func in dlopen dlclose dlsym
14102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_var+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 cat >conftest.$ac_ext <<_ACEOF
14109 #line $LINENO "configure"
14110 #include "confdefs.h"
14111 /* System header to define __stub macros and hopefully few prototypes,
14112 which can conflict with char $ac_func (); below. */
14113 #include <assert.h>
14114 /* Override any gcc2 internal prototype to avoid an error. */
14118 /* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14123 #ifdef F77_DUMMY_MAIN
14124 # ifdef __cplusplus
14127 int F77_DUMMY_MAIN() { return 1; }
14132 /* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14145 rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -s conftest$ac_exeext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 eval "$as_ac_var=yes"
14159 echo "$as_me: failed program was:" >&5
14160 cat conftest.$ac_ext >&5
14161 eval "$as_ac_var=no"
14163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14167 if test `eval echo '${'$as_ac_var'}'` = yes; then
14168 cat >>confdefs.h <<_ACEOF
14169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14177 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
14178 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
14179 if test "${ac_cv_decl_sys_siglist+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14183 #line $LINENO "configure"
14184 #include "confdefs.h"
14185 #include <sys/types.h>
14186 #include <signal.h>
14187 /* NetBSD declares sys_siglist in unistd.h. */
14189 # include <unistd.h>
14192 #ifdef F77_DUMMY_MAIN
14193 # ifdef __cplusplus
14196 int F77_DUMMY_MAIN() { return 1; }
14201 char *msg = *(sys_siglist + 1);
14206 rm -f conftest.$ac_objext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -s conftest.$ac_objext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 ac_cv_decl_sys_siglist=yes
14220 echo "$as_me: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 ac_cv_decl_sys_siglist=no
14224 rm -f conftest.$ac_objext conftest.$ac_ext
14226 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
14227 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
14228 if test $ac_cv_decl_sys_siglist = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define SYS_SIGLIST_DECLARED 1
14237 if test "$ac_cv_func_inet_aton" != 'yes'; then
14239 echo "$as_me:$LINENO: checking for inet_aton" >&5
14240 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14241 if test "${bash_cv_func_inet_aton+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14246 #include "confdefs.h"
14248 #include <sys/types.h>
14249 #include <netinet/in.h>
14250 #include <arpa/inet.h>
14252 #ifdef F77_DUMMY_MAIN
14253 # ifdef __cplusplus
14256 int F77_DUMMY_MAIN() { return 1; }
14261 inet_aton("127.0.0.1", &ap);
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -s conftest$ac_exeext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 bash_cv_func_inet_aton=yes
14280 echo "$as_me: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 bash_cv_func_inet_aton=no
14284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14286 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
14287 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
14288 if test $bash_cv_func_inet_aton = yes; then
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_INET_ATON 1
14294 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
14301 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
14302 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
14303 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 ac_check_lib_save_LIBS=$LIBS
14308 cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14312 /* Override any gcc2 internal prototype to avoid an error. */
14316 /* We use char because int might match the return type of a gcc2
14317 builtin and then its argument prototype would still apply. */
14319 #ifdef F77_DUMMY_MAIN
14320 # ifdef __cplusplus
14323 int F77_DUMMY_MAIN() { return 1; }
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335 (eval $ac_link) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -s conftest$ac_exeext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_lib_sun_getpwent=yes
14347 echo "$as_me: failed program was:" >&5
14348 cat conftest.$ac_ext >&5
14349 ac_cv_lib_sun_getpwent=no
14351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14354 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
14355 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
14356 if test $ac_cv_lib_sun_getpwent = yes; then
14357 cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBSUN 1
14367 if test "$ac_cv_func_getpeername" = no; then
14369 if test "X$bash_cv_have_socklib" = "X"; then
14372 echo "$as_me:$LINENO: checking for socket library" >&5
14373 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
14376 if test "${bash_cv_have_socklib+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
14380 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
14381 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-lsocket -lnsl $LIBS"
14386 cat >conftest.$ac_ext <<_ACEOF
14387 #line $LINENO "configure"
14388 #include "confdefs.h"
14390 /* Override any gcc2 internal prototype to avoid an error. */
14394 /* We use char because int might match the return type of a gcc2
14395 builtin and then its argument prototype would still apply. */
14396 char getpeername ();
14397 #ifdef F77_DUMMY_MAIN
14398 # ifdef __cplusplus
14401 int F77_DUMMY_MAIN() { return 1; }
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 (eval $ac_link) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -s conftest$ac_exeext'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_cv_lib_socket_getpeername=yes
14425 echo "$as_me: failed program was:" >&5
14426 cat conftest.$ac_ext >&5
14427 ac_cv_lib_socket_getpeername=no
14429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14430 LIBS=$ac_check_lib_save_LIBS
14432 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
14433 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
14434 if test $ac_cv_lib_socket_getpeername = yes; then
14435 bash_cv_have_socklib=yes
14437 bash_cv_have_socklib=no
14442 if test "X$_bash_needmsg" = Xyes; then
14443 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
14444 echo "${ECHO_T}$bash_cv_have_socklib" >&6
14447 if test $bash_cv_have_socklib = yes; then
14448 # check for libnsl, add it to LIBS if present
14449 if test "X$bash_cv_have_libnsl" = "X"; then
14452 echo "$as_me:$LINENO: checking for libnsl" >&5
14453 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
14456 if test "${bash_cv_have_libnsl+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14460 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
14461 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 ac_check_lib_save_LIBS=$LIBS
14466 cat >conftest.$ac_ext <<_ACEOF
14467 #line $LINENO "configure"
14468 #include "confdefs.h"
14470 /* Override any gcc2 internal prototype to avoid an error. */
14474 /* We use char because int might match the return type of a gcc2
14475 builtin and then its argument prototype would still apply. */
14477 #ifdef F77_DUMMY_MAIN
14478 # ifdef __cplusplus
14481 int F77_DUMMY_MAIN() { return 1; }
14491 rm -f conftest.$ac_objext conftest$ac_exeext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14493 (eval $ac_link) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -s conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_cv_lib_nsl_t_open=yes
14505 echo "$as_me: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 ac_cv_lib_nsl_t_open=no
14509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14512 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14513 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
14514 if test $ac_cv_lib_nsl_t_open = yes; then
14515 bash_cv_have_libnsl=yes
14517 bash_cv_have_libnsl=no
14522 if test "X$_bash_needmsg" = Xyes; then
14523 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
14524 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
14527 if test $bash_cv_have_libnsl = yes; then
14528 LIBS="-lsocket -lnsl $LIBS"
14530 LIBS="-lsocket $LIBS"
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_LIBSOCKET 1
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_GETPEERNAME 1
14543 if test "$ac_cv_func_gethostbyname" = no; then
14544 if test "X$bash_cv_have_gethostbyname" = "X"; then
14547 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
14548 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
14551 if test "${bash_cv_have_gethostbyname+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14558 #ifdef F77_DUMMY_MAIN
14559 # ifdef __cplusplus
14562 int F77_DUMMY_MAIN() { return 1; }
14567 struct hostent *hp;
14568 hp = gethostbyname("localhost");
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576 (eval $ac_link) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -s conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 bash_cv_have_gethostbyname=yes
14588 echo "$as_me: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 bash_cv_have_gethostbyname=no
14592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14596 if test "X$_bash_needmsg" = Xyes; then
14597 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
14598 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
14600 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
14601 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
14602 if test "$bash_cv_have_gethostbyname" = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_GETHOSTBYNAME 1
14611 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14612 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
14613 if test "${ac_cv_type_uid_t+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 #include "confdefs.h"
14619 #include <sys/types.h>
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623 egrep "uid_t" >/dev/null 2>&1; then
14624 ac_cv_type_uid_t=yes
14626 ac_cv_type_uid_t=no
14631 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
14633 if test $ac_cv_type_uid_t = no; then
14635 cat >>confdefs.h <<\_ACEOF
14640 cat >>confdefs.h <<\_ACEOF
14646 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14647 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
14648 if test "${ac_cv_type_getgroups+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 if test "$cross_compiling" = yes; then
14652 ac_cv_type_getgroups=cross
14654 cat >conftest.$ac_ext <<_ACEOF
14655 #line $LINENO "configure"
14656 #include "confdefs.h"
14657 /* Thanks to Mike Rendell for this test. */
14658 #include <sys/types.h>
14661 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14666 gid_t gidset[NGID];
14668 union { gid_t gval; long lval; } val;
14671 for (i = 0; i < NGID; i++)
14672 gidset[i] = val.gval;
14673 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14675 /* Exit non-zero if getgroups seems to require an array of ints. This
14676 happens when gid_t is short but getgroups modifies an array of ints. */
14677 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
14680 rm -f conftest$ac_exeext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14682 (eval $ac_link) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }; then
14691 ac_cv_type_getgroups=gid_t
14693 echo "$as_me: program exited with status $ac_status" >&5
14694 echo "$as_me: failed program was:" >&5
14695 cat conftest.$ac_ext >&5
14696 ( exit $ac_status )
14697 ac_cv_type_getgroups=int
14699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14701 if test $ac_cv_type_getgroups = cross; then
14702 cat >conftest.$ac_ext <<_ACEOF
14703 #line $LINENO "configure"
14704 #include "confdefs.h"
14705 #include <unistd.h>
14708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14709 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14710 ac_cv_type_getgroups=gid_t
14712 ac_cv_type_getgroups=int
14718 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14719 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
14721 cat >>confdefs.h <<_ACEOF
14722 #define GETGROUPS_T $ac_cv_type_getgroups
14726 echo "$as_me:$LINENO: checking for off_t" >&5
14727 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14728 if test "${ac_cv_type_off_t+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 cat >conftest.$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14733 #include "confdefs.h"
14734 $ac_includes_default
14735 #ifdef F77_DUMMY_MAIN
14736 # ifdef __cplusplus
14739 int F77_DUMMY_MAIN() { return 1; }
14746 if (sizeof (off_t))
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_type_off_t=yes
14766 echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 ac_cv_type_off_t=no
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14773 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14774 if test $ac_cv_type_off_t = yes; then
14778 cat >>confdefs.h <<_ACEOF
14784 echo "$as_me:$LINENO: checking for mode_t" >&5
14785 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14786 if test "${ac_cv_type_mode_t+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 cat >conftest.$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14791 #include "confdefs.h"
14792 $ac_includes_default
14793 #ifdef F77_DUMMY_MAIN
14794 # ifdef __cplusplus
14797 int F77_DUMMY_MAIN() { return 1; }
14804 if (sizeof (mode_t))
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } &&
14816 { ac_try='test -s conftest.$ac_objext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_cv_type_mode_t=yes
14824 echo "$as_me: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 ac_cv_type_mode_t=no
14828 rm -f conftest.$ac_objext conftest.$ac_ext
14830 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14831 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14832 if test $ac_cv_type_mode_t = yes; then
14836 cat >>confdefs.h <<_ACEOF
14842 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14843 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
14844 if test "${ac_cv_type_uid_t+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 cat >conftest.$ac_ext <<_ACEOF
14848 #line $LINENO "configure"
14849 #include "confdefs.h"
14850 #include <sys/types.h>
14853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14854 egrep "uid_t" >/dev/null 2>&1; then
14855 ac_cv_type_uid_t=yes
14857 ac_cv_type_uid_t=no
14862 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14863 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
14864 if test $ac_cv_type_uid_t = no; then
14866 cat >>confdefs.h <<\_ACEOF
14871 cat >>confdefs.h <<\_ACEOF
14877 echo "$as_me:$LINENO: checking for pid_t" >&5
14878 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14879 if test "${ac_cv_type_pid_t+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 cat >conftest.$ac_ext <<_ACEOF
14883 #line $LINENO "configure"
14884 #include "confdefs.h"
14885 $ac_includes_default
14886 #ifdef F77_DUMMY_MAIN
14887 # ifdef __cplusplus
14890 int F77_DUMMY_MAIN() { return 1; }
14897 if (sizeof (pid_t))
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -s conftest.$ac_objext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_type_pid_t=yes
14917 echo "$as_me: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 ac_cv_type_pid_t=no
14921 rm -f conftest.$ac_objext conftest.$ac_ext
14923 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14924 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14925 if test $ac_cv_type_pid_t = yes; then
14929 cat >>confdefs.h <<_ACEOF
14935 echo "$as_me:$LINENO: checking for size_t" >&5
14936 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14937 if test "${ac_cv_type_size_t+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14942 #include "confdefs.h"
14943 $ac_includes_default
14944 #ifdef F77_DUMMY_MAIN
14945 # ifdef __cplusplus
14948 int F77_DUMMY_MAIN() { return 1; }
14955 if (sizeof (size_t))
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963 (eval $ac_compile) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_type_size_t=yes
14975 echo "$as_me: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14977 ac_cv_type_size_t=no
14979 rm -f conftest.$ac_objext conftest.$ac_ext
14981 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14982 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14983 if test $ac_cv_type_size_t = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define size_t unsigned
14993 echo "$as_me:$LINENO: checking for ssize_t" >&5
14994 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14995 if test "${ac_cv_type_ssize_t+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
14999 #line $LINENO "configure"
15000 #include "confdefs.h"
15001 $ac_includes_default
15002 #ifdef F77_DUMMY_MAIN
15003 # ifdef __cplusplus
15006 int F77_DUMMY_MAIN() { return 1; }
15013 if (sizeof (ssize_t))
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021 (eval $ac_compile) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -s conftest.$ac_objext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_type_ssize_t=yes
15033 echo "$as_me: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 ac_cv_type_ssize_t=no
15037 rm -f conftest.$ac_objext conftest.$ac_ext
15039 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15040 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15041 if test $ac_cv_type_ssize_t = yes; then
15045 cat >>confdefs.h <<_ACEOF
15046 #define ssize_t int
15051 echo "$as_me:$LINENO: checking for time_t" >&5
15052 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
15053 if test "${ac_cv_type_time_t+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 #include "confdefs.h"
15059 $ac_includes_default
15060 #ifdef F77_DUMMY_MAIN
15061 # ifdef __cplusplus
15064 int F77_DUMMY_MAIN() { return 1; }
15071 if (sizeof (time_t))
15077 rm -f conftest.$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -s conftest.$ac_objext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_type_time_t=yes
15091 echo "$as_me: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15093 ac_cv_type_time_t=no
15095 rm -f conftest.$ac_objext conftest.$ac_ext
15097 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
15098 echo "${ECHO_T}$ac_cv_type_time_t" >&6
15099 if test $ac_cv_type_time_t = yes; then
15103 cat >>confdefs.h <<_ACEOF
15104 #define time_t long
15111 echo "$as_me:$LINENO: checking for long long" >&5
15112 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15113 if test "${bash_cv_type_long_long+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 #include "confdefs.h"
15120 long long ll = 1; int i = 63;
15121 #ifdef F77_DUMMY_MAIN
15122 # ifdef __cplusplus
15125 int F77_DUMMY_MAIN() { return 1; }
15131 long long llm = (long long) -1;
15132 return ll << i | ll >> i | llm / ll | llm % ll;
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 bash_cv_type_long_long='long long'
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 bash_cv_type_long_long='long'
15156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15158 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
15159 echo "${ECHO_T}$bash_cv_type_long_long" >&6
15160 if test "$bash_cv_type_long_long" = 'long long'; then
15161 cat >>confdefs.h <<\_ACEOF
15162 #define HAVE_LONG_LONG 1
15168 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15169 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15170 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 cat >conftest.$ac_ext <<_ACEOF
15174 #line $LINENO "configure"
15175 #include "confdefs.h"
15177 unsigned long long ull = 1; int i = 63;
15178 #ifdef F77_DUMMY_MAIN
15179 # ifdef __cplusplus
15182 int F77_DUMMY_MAIN() { return 1; }
15188 unsigned long long ullmax = (unsigned long long) -1;
15189 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -s conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 bash_cv_type_unsigned_long_long='unsigned long long'
15209 echo "$as_me: failed program was:" >&5
15210 cat conftest.$ac_ext >&5
15211 bash_cv_type_unsigned_long_long='unsigned long'
15213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15215 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
15216 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
15217 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_UNSIGNED_LONG_LONG 1
15225 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15226 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15227 if test "${ac_cv_type_signal+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 cat >conftest.$ac_ext <<_ACEOF
15231 #line $LINENO "configure"
15232 #include "confdefs.h"
15233 #include <sys/types.h>
15234 #include <signal.h>
15239 extern "C" void (*signal (int, void (*)(int)))(int);
15241 void (*signal ()) ();
15244 #ifdef F77_DUMMY_MAIN
15245 # ifdef __cplusplus
15248 int F77_DUMMY_MAIN() { return 1; }
15258 rm -f conftest.$ac_objext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260 (eval $ac_compile) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_type_signal=void
15272 echo "$as_me: failed program was:" >&5
15273 cat conftest.$ac_ext >&5
15274 ac_cv_type_signal=int
15276 rm -f conftest.$ac_objext conftest.$ac_ext
15278 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15279 echo "${ECHO_T}$ac_cv_type_signal" >&6
15281 cat >>confdefs.h <<_ACEOF
15282 #define RETSIGTYPE $ac_cv_type_signal
15287 echo "$as_me:$LINENO: checking for char" >&5
15288 echo $ECHO_N "checking for char... $ECHO_C" >&6
15289 if test "${ac_cv_type_char+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 cat >conftest.$ac_ext <<_ACEOF
15293 #line $LINENO "configure"
15294 #include "confdefs.h"
15295 $ac_includes_default
15296 #ifdef F77_DUMMY_MAIN
15297 # ifdef __cplusplus
15300 int F77_DUMMY_MAIN() { return 1; }
15313 rm -f conftest.$ac_objext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315 (eval $ac_compile) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -s conftest.$ac_objext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_cv_type_char=yes
15327 echo "$as_me: failed program was:" >&5
15328 cat conftest.$ac_ext >&5
15331 rm -f conftest.$ac_objext conftest.$ac_ext
15333 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15334 echo "${ECHO_T}$ac_cv_type_char" >&6
15336 echo "$as_me:$LINENO: checking size of char" >&5
15337 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15338 if test "${ac_cv_sizeof_char+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 if test "$ac_cv_type_char" = yes; then
15342 # The cast to unsigned long works around a bug in the HP C Compiler
15343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15345 # This bug is HP SR number 8606223364.
15346 if test "$cross_compiling" = yes; then
15347 # Depending upon the size, compute the lo and hi bounds.
15348 cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 #include "confdefs.h"
15351 $ac_includes_default
15352 #ifdef F77_DUMMY_MAIN
15353 # ifdef __cplusplus
15356 int F77_DUMMY_MAIN() { return 1; }
15361 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15368 rm -f conftest.$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370 (eval $ac_compile) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15382 cat >conftest.$ac_ext <<_ACEOF
15383 #line $LINENO "configure"
15384 #include "confdefs.h"
15385 $ac_includes_default
15386 #ifdef F77_DUMMY_MAIN
15387 # ifdef __cplusplus
15390 int F77_DUMMY_MAIN() { return 1; }
15395 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15402 rm -f conftest.$ac_objext
15403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15404 (eval $ac_compile) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -s conftest.$ac_objext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_hi=$ac_mid; break
15416 echo "$as_me: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 ac_lo=`expr $ac_mid + 1`
15419 if test $ac_lo -le $ac_mid; then
15423 ac_mid=`expr 2 '*' $ac_mid + 1`
15425 rm -f conftest.$ac_objext conftest.$ac_ext
15428 echo "$as_me: failed program was:" >&5
15429 cat conftest.$ac_ext >&5
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15432 #include "confdefs.h"
15433 $ac_includes_default
15434 #ifdef F77_DUMMY_MAIN
15435 # ifdef __cplusplus
15438 int F77_DUMMY_MAIN() { return 1; }
15443 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -s conftest.$ac_objext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15464 cat >conftest.$ac_ext <<_ACEOF
15465 #line $LINENO "configure"
15466 #include "confdefs.h"
15467 $ac_includes_default
15468 #ifdef F77_DUMMY_MAIN
15469 # ifdef __cplusplus
15472 int F77_DUMMY_MAIN() { return 1; }
15477 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15484 rm -f conftest.$ac_objext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486 (eval $ac_compile) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 ac_lo=$ac_mid; break
15498 echo "$as_me: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 ac_hi=`expr '(' $ac_mid ')' - 1`
15501 if test $ac_mid -le $ac_hi; then
15505 ac_mid=`expr 2 '*' $ac_mid`
15507 rm -f conftest.$ac_objext conftest.$ac_ext
15510 echo "$as_me: failed program was:" >&5
15511 cat conftest.$ac_ext >&5
15514 rm -f conftest.$ac_objext conftest.$ac_ext
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15517 # Binary search between lo and hi bounds.
15518 while test "x$ac_lo" != "x$ac_hi"; do
15519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15520 cat >conftest.$ac_ext <<_ACEOF
15521 #line $LINENO "configure"
15522 #include "confdefs.h"
15523 $ac_includes_default
15524 #ifdef F77_DUMMY_MAIN
15525 # ifdef __cplusplus
15528 int F77_DUMMY_MAIN() { return 1; }
15533 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15540 rm -f conftest.$ac_objext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15554 echo "$as_me: failed program was:" >&5
15555 cat conftest.$ac_ext >&5
15556 ac_lo=`expr '(' $ac_mid ')' + 1`
15558 rm -f conftest.$ac_objext conftest.$ac_ext
15561 ?*) ac_cv_sizeof_char=$ac_lo;;
15562 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
15563 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
15564 { (exit 1); exit 1; }; } ;;
15567 if test "$cross_compiling" = yes; then
15568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15569 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15570 { (exit 1); exit 1; }; }
15572 cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 #include "confdefs.h"
15575 $ac_includes_default
15576 long longval () { return (long) (sizeof (char)); }
15577 unsigned long ulongval () { return (long) (sizeof (char)); }
15579 #include <stdlib.h>
15580 #ifdef F77_DUMMY_MAIN
15581 # ifdef __cplusplus
15584 int F77_DUMMY_MAIN() { return 1; }
15590 FILE *f = fopen ("conftest.val", "w");
15593 if (((long) (sizeof (char))) < 0)
15595 long i = longval ();
15596 if (i != ((long) (sizeof (char))))
15598 fprintf (f, "%ld\n", i);
15602 unsigned long i = ulongval ();
15603 if (i != ((long) (sizeof (char))))
15605 fprintf (f, "%lu\n", i);
15607 exit (ferror (f) || fclose (f) != 0);
15613 rm -f conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_cv_sizeof_char=`cat conftest.val`
15626 echo "$as_me: program exited with status $ac_status" >&5
15627 echo "$as_me: failed program was:" >&5
15628 cat conftest.$ac_ext >&5
15629 ( exit $ac_status )
15630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
15631 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
15632 { (exit 1); exit 1; }; }
15634 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15639 ac_cv_sizeof_char=0
15642 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15643 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15644 cat >>confdefs.h <<_ACEOF
15645 #define SIZEOF_CHAR $ac_cv_sizeof_char
15649 echo "$as_me:$LINENO: checking for short" >&5
15650 echo $ECHO_N "checking for short... $ECHO_C" >&6
15651 if test "${ac_cv_type_short+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 cat >conftest.$ac_ext <<_ACEOF
15655 #line $LINENO "configure"
15656 #include "confdefs.h"
15657 $ac_includes_default
15658 #ifdef F77_DUMMY_MAIN
15659 # ifdef __cplusplus
15662 int F77_DUMMY_MAIN() { return 1; }
15669 if (sizeof (short))
15675 rm -f conftest.$ac_objext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677 (eval $ac_compile) 2>&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -s conftest.$ac_objext'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 ac_cv_type_short=yes
15689 echo "$as_me: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 ac_cv_type_short=no
15693 rm -f conftest.$ac_objext conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15696 echo "${ECHO_T}$ac_cv_type_short" >&6
15698 echo "$as_me:$LINENO: checking size of short" >&5
15699 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15700 if test "${ac_cv_sizeof_short+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 if test "$ac_cv_type_short" = yes; then
15704 # The cast to unsigned long works around a bug in the HP C Compiler
15705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15707 # This bug is HP SR number 8606223364.
15708 if test "$cross_compiling" = yes; then
15709 # Depending upon the size, compute the lo and hi bounds.
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 #include "confdefs.h"
15713 $ac_includes_default
15714 #ifdef F77_DUMMY_MAIN
15715 # ifdef __cplusplus
15718 int F77_DUMMY_MAIN() { return 1; }
15723 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15744 cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15747 $ac_includes_default
15748 #ifdef F77_DUMMY_MAIN
15749 # ifdef __cplusplus
15752 int F77_DUMMY_MAIN() { return 1; }
15757 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_hi=$ac_mid; break
15778 echo "$as_me: failed program was:" >&5
15779 cat conftest.$ac_ext >&5
15780 ac_lo=`expr $ac_mid + 1`
15781 if test $ac_lo -le $ac_mid; then
15785 ac_mid=`expr 2 '*' $ac_mid + 1`
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15790 echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15794 #include "confdefs.h"
15795 $ac_includes_default
15796 #ifdef F77_DUMMY_MAIN
15797 # ifdef __cplusplus
15800 int F77_DUMMY_MAIN() { return 1; }
15805 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15826 cat >conftest.$ac_ext <<_ACEOF
15827 #line $LINENO "configure"
15828 #include "confdefs.h"
15829 $ac_includes_default
15830 #ifdef F77_DUMMY_MAIN
15831 # ifdef __cplusplus
15834 int F77_DUMMY_MAIN() { return 1; }
15839 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -s conftest.$ac_objext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_lo=$ac_mid; break
15860 echo "$as_me: failed program was:" >&5
15861 cat conftest.$ac_ext >&5
15862 ac_hi=`expr '(' $ac_mid ')' - 1`
15863 if test $ac_mid -le $ac_hi; then
15867 ac_mid=`expr 2 '*' $ac_mid`
15869 rm -f conftest.$ac_objext conftest.$ac_ext
15872 echo "$as_me: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15876 rm -f conftest.$ac_objext conftest.$ac_ext
15878 rm -f conftest.$ac_objext conftest.$ac_ext
15879 # Binary search between lo and hi bounds.
15880 while test "x$ac_lo" != "x$ac_hi"; do
15881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15882 cat >conftest.$ac_ext <<_ACEOF
15883 #line $LINENO "configure"
15884 #include "confdefs.h"
15885 $ac_includes_default
15886 #ifdef F77_DUMMY_MAIN
15887 # ifdef __cplusplus
15890 int F77_DUMMY_MAIN() { return 1; }
15895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -s conftest.$ac_objext'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15916 echo "$as_me: failed program was:" >&5
15917 cat conftest.$ac_ext >&5
15918 ac_lo=`expr '(' $ac_mid ')' + 1`
15920 rm -f conftest.$ac_objext conftest.$ac_ext
15923 ?*) ac_cv_sizeof_short=$ac_lo;;
15924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
15925 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
15926 { (exit 1); exit 1; }; } ;;
15929 if test "$cross_compiling" = yes; then
15930 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15931 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15932 { (exit 1); exit 1; }; }
15934 cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15936 #include "confdefs.h"
15937 $ac_includes_default
15938 long longval () { return (long) (sizeof (short)); }
15939 unsigned long ulongval () { return (long) (sizeof (short)); }
15941 #include <stdlib.h>
15942 #ifdef F77_DUMMY_MAIN
15943 # ifdef __cplusplus
15946 int F77_DUMMY_MAIN() { return 1; }
15952 FILE *f = fopen ("conftest.val", "w");
15955 if (((long) (sizeof (short))) < 0)
15957 long i = longval ();
15958 if (i != ((long) (sizeof (short))))
15960 fprintf (f, "%ld\n", i);
15964 unsigned long i = ulongval ();
15965 if (i != ((long) (sizeof (short))))
15967 fprintf (f, "%lu\n", i);
15969 exit (ferror (f) || fclose (f) != 0);
15975 rm -f conftest$ac_exeext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15977 (eval $ac_link) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_cv_sizeof_short=`cat conftest.val`
15988 echo "$as_me: program exited with status $ac_status" >&5
15989 echo "$as_me: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 ( exit $ac_status )
15992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
15993 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
15994 { (exit 1); exit 1; }; }
15996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16001 ac_cv_sizeof_short=0
16004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16005 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16006 cat >>confdefs.h <<_ACEOF
16007 #define SIZEOF_SHORT $ac_cv_sizeof_short
16011 echo "$as_me:$LINENO: checking for int" >&5
16012 echo $ECHO_N "checking for int... $ECHO_C" >&6
16013 if test "${ac_cv_type_int+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 $ac_includes_default
16020 #ifdef F77_DUMMY_MAIN
16021 # ifdef __cplusplus
16024 int F77_DUMMY_MAIN() { return 1; }
16037 rm -f conftest.$ac_objext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039 (eval $ac_compile) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -s conftest.$ac_objext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16051 echo "$as_me: failed program was:" >&5
16052 cat conftest.$ac_ext >&5
16055 rm -f conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16058 echo "${ECHO_T}$ac_cv_type_int" >&6
16060 echo "$as_me:$LINENO: checking size of int" >&5
16061 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16062 if test "${ac_cv_sizeof_int+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 if test "$ac_cv_type_int" = yes; then
16066 # The cast to unsigned long works around a bug in the HP C Compiler
16067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16069 # This bug is HP SR number 8606223364.
16070 if test "$cross_compiling" = yes; then
16071 # Depending upon the size, compute the lo and hi bounds.
16072 cat >conftest.$ac_ext <<_ACEOF
16073 #line $LINENO "configure"
16074 #include "confdefs.h"
16075 $ac_includes_default
16076 #ifdef F77_DUMMY_MAIN
16077 # ifdef __cplusplus
16080 int F77_DUMMY_MAIN() { return 1; }
16085 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16092 rm -f conftest.$ac_objext
16093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094 (eval $ac_compile) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16106 cat >conftest.$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16108 #include "confdefs.h"
16109 $ac_includes_default
16110 #ifdef F77_DUMMY_MAIN
16111 # ifdef __cplusplus
16114 int F77_DUMMY_MAIN() { return 1; }
16119 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16126 rm -f conftest.$ac_objext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16128 (eval $ac_compile) 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -s conftest.$ac_objext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_hi=$ac_mid; break
16140 echo "$as_me: failed program was:" >&5
16141 cat conftest.$ac_ext >&5
16142 ac_lo=`expr $ac_mid + 1`
16143 if test $ac_lo -le $ac_mid; then
16147 ac_mid=`expr 2 '*' $ac_mid + 1`
16149 rm -f conftest.$ac_objext conftest.$ac_ext
16152 echo "$as_me: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 cat >conftest.$ac_ext <<_ACEOF
16155 #line $LINENO "configure"
16156 #include "confdefs.h"
16157 $ac_includes_default
16158 #ifdef F77_DUMMY_MAIN
16159 # ifdef __cplusplus
16162 int F77_DUMMY_MAIN() { return 1; }
16167 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16188 cat >conftest.$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16190 #include "confdefs.h"
16191 $ac_includes_default
16192 #ifdef F77_DUMMY_MAIN
16193 # ifdef __cplusplus
16196 int F77_DUMMY_MAIN() { return 1; }
16201 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16208 rm -f conftest.$ac_objext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_lo=$ac_mid; break
16222 echo "$as_me: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 ac_hi=`expr '(' $ac_mid ')' - 1`
16225 if test $ac_mid -le $ac_hi; then
16229 ac_mid=`expr 2 '*' $ac_mid`
16231 rm -f conftest.$ac_objext conftest.$ac_ext
16234 echo "$as_me: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16238 rm -f conftest.$ac_objext conftest.$ac_ext
16240 rm -f conftest.$ac_objext conftest.$ac_ext
16241 # Binary search between lo and hi bounds.
16242 while test "x$ac_lo" != "x$ac_hi"; do
16243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16244 cat >conftest.$ac_ext <<_ACEOF
16245 #line $LINENO "configure"
16246 #include "confdefs.h"
16247 $ac_includes_default
16248 #ifdef F77_DUMMY_MAIN
16249 # ifdef __cplusplus
16252 int F77_DUMMY_MAIN() { return 1; }
16257 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16264 rm -f conftest.$ac_objext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16266 (eval $ac_compile) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -s conftest.$ac_objext'
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16278 echo "$as_me: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 ac_lo=`expr '(' $ac_mid ')' + 1`
16282 rm -f conftest.$ac_objext conftest.$ac_ext
16285 ?*) ac_cv_sizeof_int=$ac_lo;;
16286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
16287 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
16288 { (exit 1); exit 1; }; } ;;
16291 if test "$cross_compiling" = yes; then
16292 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16293 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16294 { (exit 1); exit 1; }; }
16296 cat >conftest.$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16298 #include "confdefs.h"
16299 $ac_includes_default
16300 long longval () { return (long) (sizeof (int)); }
16301 unsigned long ulongval () { return (long) (sizeof (int)); }
16303 #include <stdlib.h>
16304 #ifdef F77_DUMMY_MAIN
16305 # ifdef __cplusplus
16308 int F77_DUMMY_MAIN() { return 1; }
16314 FILE *f = fopen ("conftest.val", "w");
16317 if (((long) (sizeof (int))) < 0)
16319 long i = longval ();
16320 if (i != ((long) (sizeof (int))))
16322 fprintf (f, "%ld\n", i);
16326 unsigned long i = ulongval ();
16327 if (i != ((long) (sizeof (int))))
16329 fprintf (f, "%lu\n", i);
16331 exit (ferror (f) || fclose (f) != 0);
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_cv_sizeof_int=`cat conftest.val`
16350 echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 ( exit $ac_status )
16354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
16355 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
16356 { (exit 1); exit 1; }; }
16358 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16366 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16367 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16368 cat >>confdefs.h <<_ACEOF
16369 #define SIZEOF_INT $ac_cv_sizeof_int
16373 echo "$as_me:$LINENO: checking for long" >&5
16374 echo $ECHO_N "checking for long... $ECHO_C" >&6
16375 if test "${ac_cv_type_long+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 cat >conftest.$ac_ext <<_ACEOF
16379 #line $LINENO "configure"
16380 #include "confdefs.h"
16381 $ac_includes_default
16382 #ifdef F77_DUMMY_MAIN
16383 # ifdef __cplusplus
16386 int F77_DUMMY_MAIN() { return 1; }
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_cv_type_long=yes
16413 echo "$as_me: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16417 rm -f conftest.$ac_objext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16420 echo "${ECHO_T}$ac_cv_type_long" >&6
16422 echo "$as_me:$LINENO: checking size of long" >&5
16423 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16424 if test "${ac_cv_sizeof_long+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 if test "$ac_cv_type_long" = yes; then
16428 # The cast to unsigned long works around a bug in the HP C Compiler
16429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16431 # This bug is HP SR number 8606223364.
16432 if test "$cross_compiling" = yes; then
16433 # Depending upon the size, compute the lo and hi bounds.
16434 cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16436 #include "confdefs.h"
16437 $ac_includes_default
16438 #ifdef F77_DUMMY_MAIN
16439 # ifdef __cplusplus
16442 int F77_DUMMY_MAIN() { return 1; }
16447 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16454 rm -f conftest.$ac_objext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16456 (eval $ac_compile) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16468 cat >conftest.$ac_ext <<_ACEOF
16469 #line $LINENO "configure"
16470 #include "confdefs.h"
16471 $ac_includes_default
16472 #ifdef F77_DUMMY_MAIN
16473 # ifdef __cplusplus
16476 int F77_DUMMY_MAIN() { return 1; }
16481 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16488 rm -f conftest.$ac_objext
16489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16490 (eval $ac_compile) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -s conftest.$ac_objext'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_hi=$ac_mid; break
16502 echo "$as_me: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16504 ac_lo=`expr $ac_mid + 1`
16505 if test $ac_lo -le $ac_mid; then
16509 ac_mid=`expr 2 '*' $ac_mid + 1`
16511 rm -f conftest.$ac_objext conftest.$ac_ext
16514 echo "$as_me: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 cat >conftest.$ac_ext <<_ACEOF
16517 #line $LINENO "configure"
16518 #include "confdefs.h"
16519 $ac_includes_default
16520 #ifdef F77_DUMMY_MAIN
16521 # ifdef __cplusplus
16524 int F77_DUMMY_MAIN() { return 1; }
16529 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16536 rm -f conftest.$ac_objext
16537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16538 (eval $ac_compile) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16553 $ac_includes_default
16554 #ifdef F77_DUMMY_MAIN
16555 # ifdef __cplusplus
16558 int F77_DUMMY_MAIN() { return 1; }
16563 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572 (eval $ac_compile) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 ac_lo=$ac_mid; break
16584 echo "$as_me: failed program was:" >&5
16585 cat conftest.$ac_ext >&5
16586 ac_hi=`expr '(' $ac_mid ')' - 1`
16587 if test $ac_mid -le $ac_hi; then
16591 ac_mid=`expr 2 '*' $ac_mid`
16593 rm -f conftest.$ac_objext conftest.$ac_ext
16596 echo "$as_me: failed program was:" >&5
16597 cat conftest.$ac_ext >&5
16600 rm -f conftest.$ac_objext conftest.$ac_ext
16602 rm -f conftest.$ac_objext conftest.$ac_ext
16603 # Binary search between lo and hi bounds.
16604 while test "x$ac_lo" != "x$ac_hi"; do
16605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16606 cat >conftest.$ac_ext <<_ACEOF
16607 #line $LINENO "configure"
16608 #include "confdefs.h"
16609 $ac_includes_default
16610 #ifdef F77_DUMMY_MAIN
16611 # ifdef __cplusplus
16614 int F77_DUMMY_MAIN() { return 1; }
16619 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -s conftest.$ac_objext'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16640 echo "$as_me: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 ac_lo=`expr '(' $ac_mid ')' + 1`
16644 rm -f conftest.$ac_objext conftest.$ac_ext
16647 ?*) ac_cv_sizeof_long=$ac_lo;;
16648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
16649 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
16650 { (exit 1); exit 1; }; } ;;
16653 if test "$cross_compiling" = yes; then
16654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16655 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16656 { (exit 1); exit 1; }; }
16658 cat >conftest.$ac_ext <<_ACEOF
16659 #line $LINENO "configure"
16660 #include "confdefs.h"
16661 $ac_includes_default
16662 long longval () { return (long) (sizeof (long)); }
16663 unsigned long ulongval () { return (long) (sizeof (long)); }
16665 #include <stdlib.h>
16666 #ifdef F77_DUMMY_MAIN
16667 # ifdef __cplusplus
16670 int F77_DUMMY_MAIN() { return 1; }
16676 FILE *f = fopen ("conftest.val", "w");
16679 if (((long) (sizeof (long))) < 0)
16681 long i = longval ();
16682 if (i != ((long) (sizeof (long))))
16684 fprintf (f, "%ld\n", i);
16688 unsigned long i = ulongval ();
16689 if (i != ((long) (sizeof (long))))
16691 fprintf (f, "%lu\n", i);
16693 exit (ferror (f) || fclose (f) != 0);
16699 rm -f conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 ac_cv_sizeof_long=`cat conftest.val`
16712 echo "$as_me: program exited with status $ac_status" >&5
16713 echo "$as_me: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16715 ( exit $ac_status )
16716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
16717 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
16718 { (exit 1); exit 1; }; }
16720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16725 ac_cv_sizeof_long=0
16728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16730 cat >>confdefs.h <<_ACEOF
16731 #define SIZEOF_LONG $ac_cv_sizeof_long
16735 echo "$as_me:$LINENO: checking for char *" >&5
16736 echo $ECHO_N "checking for char *... $ECHO_C" >&6
16737 if test "${ac_cv_type_char_p+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 cat >conftest.$ac_ext <<_ACEOF
16741 #line $LINENO "configure"
16742 #include "confdefs.h"
16743 $ac_includes_default
16744 #ifdef F77_DUMMY_MAIN
16745 # ifdef __cplusplus
16748 int F77_DUMMY_MAIN() { return 1; }
16755 if (sizeof (char *))
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_cv_type_char_p=yes
16775 echo "$as_me: failed program was:" >&5
16776 cat conftest.$ac_ext >&5
16777 ac_cv_type_char_p=no
16779 rm -f conftest.$ac_objext conftest.$ac_ext
16781 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
16782 echo "${ECHO_T}$ac_cv_type_char_p" >&6
16784 echo "$as_me:$LINENO: checking size of char *" >&5
16785 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
16786 if test "${ac_cv_sizeof_char_p+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 if test "$ac_cv_type_char_p" = yes; then
16790 # The cast to unsigned long works around a bug in the HP C Compiler
16791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16793 # This bug is HP SR number 8606223364.
16794 if test "$cross_compiling" = yes; then
16795 # Depending upon the size, compute the lo and hi bounds.
16796 cat >conftest.$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16798 #include "confdefs.h"
16799 $ac_includes_default
16800 #ifdef F77_DUMMY_MAIN
16801 # ifdef __cplusplus
16804 int F77_DUMMY_MAIN() { return 1; }
16809 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
16816 rm -f conftest.$ac_objext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818 (eval $ac_compile) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16830 cat >conftest.$ac_ext <<_ACEOF
16831 #line $LINENO "configure"
16832 #include "confdefs.h"
16833 $ac_includes_default
16834 #ifdef F77_DUMMY_MAIN
16835 # ifdef __cplusplus
16838 int F77_DUMMY_MAIN() { return 1; }
16843 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
16850 rm -f conftest.$ac_objext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852 (eval $ac_compile) 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -s conftest.$ac_objext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_hi=$ac_mid; break
16864 echo "$as_me: failed program was:" >&5
16865 cat conftest.$ac_ext >&5
16866 ac_lo=`expr $ac_mid + 1`
16867 if test $ac_lo -le $ac_mid; then
16871 ac_mid=`expr 2 '*' $ac_mid + 1`
16873 rm -f conftest.$ac_objext conftest.$ac_ext
16876 echo "$as_me: failed program was:" >&5
16877 cat conftest.$ac_ext >&5
16878 cat >conftest.$ac_ext <<_ACEOF
16879 #line $LINENO "configure"
16880 #include "confdefs.h"
16881 $ac_includes_default
16882 #ifdef F77_DUMMY_MAIN
16883 # ifdef __cplusplus
16886 int F77_DUMMY_MAIN() { return 1; }
16891 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
16898 rm -f conftest.$ac_objext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16900 (eval $ac_compile) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -s conftest.$ac_objext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16912 cat >conftest.$ac_ext <<_ACEOF
16913 #line $LINENO "configure"
16914 #include "confdefs.h"
16915 $ac_includes_default
16916 #ifdef F77_DUMMY_MAIN
16917 # ifdef __cplusplus
16920 int F77_DUMMY_MAIN() { return 1; }
16925 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
16932 rm -f conftest.$ac_objext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16934 (eval $ac_compile) 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 ac_lo=$ac_mid; break
16946 echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 ac_hi=`expr '(' $ac_mid ')' - 1`
16949 if test $ac_mid -le $ac_hi; then
16953 ac_mid=`expr 2 '*' $ac_mid`
16955 rm -f conftest.$ac_objext conftest.$ac_ext
16958 echo "$as_me: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16962 rm -f conftest.$ac_objext conftest.$ac_ext
16964 rm -f conftest.$ac_objext conftest.$ac_ext
16965 # Binary search between lo and hi bounds.
16966 while test "x$ac_lo" != "x$ac_hi"; do
16967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16968 cat >conftest.$ac_ext <<_ACEOF
16969 #line $LINENO "configure"
16970 #include "confdefs.h"
16971 $ac_includes_default
16972 #ifdef F77_DUMMY_MAIN
16973 # ifdef __cplusplus
16976 int F77_DUMMY_MAIN() { return 1; }
16981 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
16988 rm -f conftest.$ac_objext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990 (eval $ac_compile) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17002 echo "$as_me: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 ac_lo=`expr '(' $ac_mid ')' + 1`
17006 rm -f conftest.$ac_objext conftest.$ac_ext
17009 ?*) ac_cv_sizeof_char_p=$ac_lo;;
17010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
17011 echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
17012 { (exit 1); exit 1; }; } ;;
17015 if test "$cross_compiling" = yes; then
17016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17017 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17018 { (exit 1); exit 1; }; }
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 #include "confdefs.h"
17023 $ac_includes_default
17024 long longval () { return (long) (sizeof (char *)); }
17025 unsigned long ulongval () { return (long) (sizeof (char *)); }
17027 #include <stdlib.h>
17028 #ifdef F77_DUMMY_MAIN
17029 # ifdef __cplusplus
17032 int F77_DUMMY_MAIN() { return 1; }
17038 FILE *f = fopen ("conftest.val", "w");
17041 if (((long) (sizeof (char *))) < 0)
17043 long i = longval ();
17044 if (i != ((long) (sizeof (char *))))
17046 fprintf (f, "%ld\n", i);
17050 unsigned long i = ulongval ();
17051 if (i != ((long) (sizeof (char *))))
17053 fprintf (f, "%lu\n", i);
17055 exit (ferror (f) || fclose (f) != 0);
17061 rm -f conftest$ac_exeext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063 (eval $ac_link) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_sizeof_char_p=`cat conftest.val`
17074 echo "$as_me: program exited with status $ac_status" >&5
17075 echo "$as_me: failed program was:" >&5
17076 cat conftest.$ac_ext >&5
17077 ( exit $ac_status )
17078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
17079 echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
17080 { (exit 1); exit 1; }; }
17082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17087 ac_cv_sizeof_char_p=0
17090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
17091 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
17092 cat >>confdefs.h <<_ACEOF
17093 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
17097 echo "$as_me:$LINENO: checking for double" >&5
17098 echo $ECHO_N "checking for double... $ECHO_C" >&6
17099 if test "${ac_cv_type_double+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 cat >conftest.$ac_ext <<_ACEOF
17103 #line $LINENO "configure"
17104 #include "confdefs.h"
17105 $ac_includes_default
17106 #ifdef F77_DUMMY_MAIN
17107 # ifdef __cplusplus
17110 int F77_DUMMY_MAIN() { return 1; }
17117 if (sizeof (double))
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125 (eval $ac_compile) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_type_double=yes
17137 echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 ac_cv_type_double=no
17141 rm -f conftest.$ac_objext conftest.$ac_ext
17143 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
17144 echo "${ECHO_T}$ac_cv_type_double" >&6
17146 echo "$as_me:$LINENO: checking size of double" >&5
17147 echo $ECHO_N "checking size of double... $ECHO_C" >&6
17148 if test "${ac_cv_sizeof_double+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 if test "$ac_cv_type_double" = yes; then
17152 # The cast to unsigned long works around a bug in the HP C Compiler
17153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17155 # This bug is HP SR number 8606223364.
17156 if test "$cross_compiling" = yes; then
17157 # Depending upon the size, compute the lo and hi bounds.
17158 cat >conftest.$ac_ext <<_ACEOF
17159 #line $LINENO "configure"
17160 #include "confdefs.h"
17161 $ac_includes_default
17162 #ifdef F77_DUMMY_MAIN
17163 # ifdef __cplusplus
17166 int F77_DUMMY_MAIN() { return 1; }
17171 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
17178 rm -f conftest.$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180 (eval $ac_compile) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -s conftest.$ac_objext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17192 cat >conftest.$ac_ext <<_ACEOF
17193 #line $LINENO "configure"
17194 #include "confdefs.h"
17195 $ac_includes_default
17196 #ifdef F77_DUMMY_MAIN
17197 # ifdef __cplusplus
17200 int F77_DUMMY_MAIN() { return 1; }
17205 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17212 rm -f conftest.$ac_objext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214 (eval $ac_compile) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -s conftest.$ac_objext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_hi=$ac_mid; break
17226 echo "$as_me: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17228 ac_lo=`expr $ac_mid + 1`
17229 if test $ac_lo -le $ac_mid; then
17233 ac_mid=`expr 2 '*' $ac_mid + 1`
17235 rm -f conftest.$ac_objext conftest.$ac_ext
17238 echo "$as_me: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 cat >conftest.$ac_ext <<_ACEOF
17241 #line $LINENO "configure"
17242 #include "confdefs.h"
17243 $ac_includes_default
17244 #ifdef F77_DUMMY_MAIN
17245 # ifdef __cplusplus
17248 int F77_DUMMY_MAIN() { return 1; }
17253 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -s conftest.$ac_objext'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17274 cat >conftest.$ac_ext <<_ACEOF
17275 #line $LINENO "configure"
17276 #include "confdefs.h"
17277 $ac_includes_default
17278 #ifdef F77_DUMMY_MAIN
17279 # ifdef __cplusplus
17282 int F77_DUMMY_MAIN() { return 1; }
17287 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -s conftest.$ac_objext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 ac_lo=$ac_mid; break
17308 echo "$as_me: failed program was:" >&5
17309 cat conftest.$ac_ext >&5
17310 ac_hi=`expr '(' $ac_mid ')' - 1`
17311 if test $ac_mid -le $ac_hi; then
17315 ac_mid=`expr 2 '*' $ac_mid`
17317 rm -f conftest.$ac_objext conftest.$ac_ext
17320 echo "$as_me: failed program was:" >&5
17321 cat conftest.$ac_ext >&5
17324 rm -f conftest.$ac_objext conftest.$ac_ext
17326 rm -f conftest.$ac_objext conftest.$ac_ext
17327 # Binary search between lo and hi bounds.
17328 while test "x$ac_lo" != "x$ac_hi"; do
17329 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17330 cat >conftest.$ac_ext <<_ACEOF
17331 #line $LINENO "configure"
17332 #include "confdefs.h"
17333 $ac_includes_default
17334 #ifdef F77_DUMMY_MAIN
17335 # ifdef __cplusplus
17338 int F77_DUMMY_MAIN() { return 1; }
17343 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17350 rm -f conftest.$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352 (eval $ac_compile) 2>&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -s conftest.$ac_objext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17364 echo "$as_me: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 ac_lo=`expr '(' $ac_mid ')' + 1`
17368 rm -f conftest.$ac_objext conftest.$ac_ext
17371 ?*) ac_cv_sizeof_double=$ac_lo;;
17372 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
17373 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
17374 { (exit 1); exit 1; }; } ;;
17377 if test "$cross_compiling" = yes; then
17378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17379 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17380 { (exit 1); exit 1; }; }
17382 cat >conftest.$ac_ext <<_ACEOF
17383 #line $LINENO "configure"
17384 #include "confdefs.h"
17385 $ac_includes_default
17386 long longval () { return (long) (sizeof (double)); }
17387 unsigned long ulongval () { return (long) (sizeof (double)); }
17389 #include <stdlib.h>
17390 #ifdef F77_DUMMY_MAIN
17391 # ifdef __cplusplus
17394 int F77_DUMMY_MAIN() { return 1; }
17400 FILE *f = fopen ("conftest.val", "w");
17403 if (((long) (sizeof (double))) < 0)
17405 long i = longval ();
17406 if (i != ((long) (sizeof (double))))
17408 fprintf (f, "%ld\n", i);
17412 unsigned long i = ulongval ();
17413 if (i != ((long) (sizeof (double))))
17415 fprintf (f, "%lu\n", i);
17417 exit (ferror (f) || fclose (f) != 0);
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_sizeof_double=`cat conftest.val`
17436 echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ( exit $ac_status )
17440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
17441 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
17442 { (exit 1); exit 1; }; }
17444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17449 ac_cv_sizeof_double=0
17452 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
17453 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
17454 cat >>confdefs.h <<_ACEOF
17455 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
17459 echo "$as_me:$LINENO: checking for long long" >&5
17460 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17461 if test "${ac_cv_type_long_long+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 #include "confdefs.h"
17467 $ac_includes_default
17468 #ifdef F77_DUMMY_MAIN
17469 # ifdef __cplusplus
17472 int F77_DUMMY_MAIN() { return 1; }
17477 if ((long long *) 0)
17479 if (sizeof (long long))
17485 rm -f conftest.$ac_objext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17487 (eval $ac_compile) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -s conftest.$ac_objext'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_cv_type_long_long=yes
17499 echo "$as_me: failed program was:" >&5
17500 cat conftest.$ac_ext >&5
17501 ac_cv_type_long_long=no
17503 rm -f conftest.$ac_objext conftest.$ac_ext
17505 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17506 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17508 echo "$as_me:$LINENO: checking size of long long" >&5
17509 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17510 if test "${ac_cv_sizeof_long_long+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 if test "$ac_cv_type_long_long" = yes; then
17514 # The cast to unsigned long works around a bug in the HP C Compiler
17515 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17516 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17517 # This bug is HP SR number 8606223364.
17518 if test "$cross_compiling" = yes; then
17519 # Depending upon the size, compute the lo and hi bounds.
17520 cat >conftest.$ac_ext <<_ACEOF
17521 #line $LINENO "configure"
17522 #include "confdefs.h"
17523 $ac_includes_default
17524 #ifdef F77_DUMMY_MAIN
17525 # ifdef __cplusplus
17528 int F77_DUMMY_MAIN() { return 1; }
17533 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17554 cat >conftest.$ac_ext <<_ACEOF
17555 #line $LINENO "configure"
17556 #include "confdefs.h"
17557 $ac_includes_default
17558 #ifdef F77_DUMMY_MAIN
17559 # ifdef __cplusplus
17562 int F77_DUMMY_MAIN() { return 1; }
17567 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576 (eval $ac_compile) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_hi=$ac_mid; break
17588 echo "$as_me: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17590 ac_lo=`expr $ac_mid + 1`
17591 if test $ac_lo -le $ac_mid; then
17595 ac_mid=`expr 2 '*' $ac_mid + 1`
17597 rm -f conftest.$ac_objext conftest.$ac_ext
17600 echo "$as_me: failed program was:" >&5
17601 cat conftest.$ac_ext >&5
17602 cat >conftest.$ac_ext <<_ACEOF
17603 #line $LINENO "configure"
17604 #include "confdefs.h"
17605 $ac_includes_default
17606 #ifdef F77_DUMMY_MAIN
17607 # ifdef __cplusplus
17610 int F77_DUMMY_MAIN() { return 1; }
17615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
17628 { ac_try='test -s conftest.$ac_objext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17636 cat >conftest.$ac_ext <<_ACEOF
17637 #line $LINENO "configure"
17638 #include "confdefs.h"
17639 $ac_includes_default
17640 #ifdef F77_DUMMY_MAIN
17641 # ifdef __cplusplus
17644 int F77_DUMMY_MAIN() { return 1; }
17649 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17656 rm -f conftest.$ac_objext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658 (eval $ac_compile) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -s conftest.$ac_objext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 ac_lo=$ac_mid; break
17670 echo "$as_me: failed program was:" >&5
17671 cat conftest.$ac_ext >&5
17672 ac_hi=`expr '(' $ac_mid ')' - 1`
17673 if test $ac_mid -le $ac_hi; then
17677 ac_mid=`expr 2 '*' $ac_mid`
17679 rm -f conftest.$ac_objext conftest.$ac_ext
17682 echo "$as_me: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17686 rm -f conftest.$ac_objext conftest.$ac_ext
17688 rm -f conftest.$ac_objext conftest.$ac_ext
17689 # Binary search between lo and hi bounds.
17690 while test "x$ac_lo" != "x$ac_hi"; do
17691 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17692 cat >conftest.$ac_ext <<_ACEOF
17693 #line $LINENO "configure"
17694 #include "confdefs.h"
17695 $ac_includes_default
17696 #ifdef F77_DUMMY_MAIN
17697 # ifdef __cplusplus
17700 int F77_DUMMY_MAIN() { return 1; }
17705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17712 rm -f conftest.$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -s conftest.$ac_objext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17726 echo "$as_me: failed program was:" >&5
17727 cat conftest.$ac_ext >&5
17728 ac_lo=`expr '(' $ac_mid ')' + 1`
17730 rm -f conftest.$ac_objext conftest.$ac_ext
17733 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
17735 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
17736 { (exit 1); exit 1; }; } ;;
17739 if test "$cross_compiling" = yes; then
17740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17741 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17742 { (exit 1); exit 1; }; }
17744 cat >conftest.$ac_ext <<_ACEOF
17745 #line $LINENO "configure"
17746 #include "confdefs.h"
17747 $ac_includes_default
17748 long longval () { return (long) (sizeof (long long)); }
17749 unsigned long ulongval () { return (long) (sizeof (long long)); }
17751 #include <stdlib.h>
17752 #ifdef F77_DUMMY_MAIN
17753 # ifdef __cplusplus
17756 int F77_DUMMY_MAIN() { return 1; }
17762 FILE *f = fopen ("conftest.val", "w");
17765 if (((long) (sizeof (long long))) < 0)
17767 long i = longval ();
17768 if (i != ((long) (sizeof (long long))))
17770 fprintf (f, "%ld\n", i);
17774 unsigned long i = ulongval ();
17775 if (i != ((long) (sizeof (long long))))
17777 fprintf (f, "%lu\n", i);
17779 exit (ferror (f) || fclose (f) != 0);
17785 rm -f conftest$ac_exeext
17786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17787 (eval $ac_link) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 ac_cv_sizeof_long_long=`cat conftest.val`
17798 echo "$as_me: program exited with status $ac_status" >&5
17799 echo "$as_me: failed program was:" >&5
17800 cat conftest.$ac_ext >&5
17801 ( exit $ac_status )
17802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
17803 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
17804 { (exit 1); exit 1; }; }
17806 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17811 ac_cv_sizeof_long_long=0
17814 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17815 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17816 cat >>confdefs.h <<_ACEOF
17817 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17822 echo "$as_me:$LINENO: checking for u_int" >&5
17823 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
17824 if test "${ac_cv_type_u_int+set}" = set; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 cat >conftest.$ac_ext <<_ACEOF
17828 #line $LINENO "configure"
17829 #include "confdefs.h"
17830 $ac_includes_default
17831 #ifdef F77_DUMMY_MAIN
17832 # ifdef __cplusplus
17835 int F77_DUMMY_MAIN() { return 1; }
17842 if (sizeof (u_int))
17848 rm -f conftest.$ac_objext
17849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17850 (eval $ac_compile) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_type_u_int=yes
17862 echo "$as_me: failed program was:" >&5
17863 cat conftest.$ac_ext >&5
17864 ac_cv_type_u_int=no
17866 rm -f conftest.$ac_objext conftest.$ac_ext
17868 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
17869 echo "${ECHO_T}$ac_cv_type_u_int" >&6
17870 if test $ac_cv_type_u_int = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define u_int unsigned int
17880 echo "$as_me:$LINENO: checking for u_long" >&5
17881 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
17882 if test "${ac_cv_type_u_long+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17886 #line $LINENO "configure"
17887 #include "confdefs.h"
17888 $ac_includes_default
17889 #ifdef F77_DUMMY_MAIN
17890 # ifdef __cplusplus
17893 int F77_DUMMY_MAIN() { return 1; }
17900 if (sizeof (u_long))
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_type_u_long=yes
17920 echo "$as_me: failed program was:" >&5
17921 cat conftest.$ac_ext >&5
17922 ac_cv_type_u_long=no
17924 rm -f conftest.$ac_objext conftest.$ac_ext
17926 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
17927 echo "${ECHO_T}$ac_cv_type_u_long" >&6
17928 if test $ac_cv_type_u_long = yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define u_long unsigned long
17940 if test "$ac_cv_sizeof_short" = 2; then
17941 echo "$as_me:$LINENO: checking for bits16_t" >&5
17942 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
17943 if test "${ac_cv_type_bits16_t+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17947 #line $LINENO "configure"
17948 #include "confdefs.h"
17949 $ac_includes_default
17950 #ifdef F77_DUMMY_MAIN
17951 # ifdef __cplusplus
17954 int F77_DUMMY_MAIN() { return 1; }
17959 if ((bits16_t *) 0)
17961 if (sizeof (bits16_t))
17967 rm -f conftest.$ac_objext
17968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17969 (eval $ac_compile) 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -s conftest.$ac_objext'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 ac_cv_type_bits16_t=yes
17981 echo "$as_me: failed program was:" >&5
17982 cat conftest.$ac_ext >&5
17983 ac_cv_type_bits16_t=no
17985 rm -f conftest.$ac_objext conftest.$ac_ext
17987 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
17988 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
17989 if test $ac_cv_type_bits16_t = yes; then
17993 cat >>confdefs.h <<_ACEOF
17994 #define bits16_t short
17999 elif test "$ac_cv_sizeof_char" = 2; then
18000 echo "$as_me:$LINENO: checking for bits16_t" >&5
18001 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18002 if test "${ac_cv_type_bits16_t+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 #include "confdefs.h"
18008 $ac_includes_default
18009 #ifdef F77_DUMMY_MAIN
18010 # ifdef __cplusplus
18013 int F77_DUMMY_MAIN() { return 1; }
18018 if ((bits16_t *) 0)
18020 if (sizeof (bits16_t))
18026 rm -f conftest.$ac_objext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18028 (eval $ac_compile) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try='test -s conftest.$ac_objext'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 ac_cv_type_bits16_t=yes
18040 echo "$as_me: failed program was:" >&5
18041 cat conftest.$ac_ext >&5
18042 ac_cv_type_bits16_t=no
18044 rm -f conftest.$ac_objext conftest.$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18047 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18048 if test $ac_cv_type_bits16_t = yes; then
18052 cat >>confdefs.h <<_ACEOF
18053 #define bits16_t char
18059 echo "$as_me:$LINENO: checking for bits16_t" >&5
18060 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18061 if test "${ac_cv_type_bits16_t+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 cat >conftest.$ac_ext <<_ACEOF
18065 #line $LINENO "configure"
18066 #include "confdefs.h"
18067 $ac_includes_default
18068 #ifdef F77_DUMMY_MAIN
18069 # ifdef __cplusplus
18072 int F77_DUMMY_MAIN() { return 1; }
18077 if ((bits16_t *) 0)
18079 if (sizeof (bits16_t))
18085 rm -f conftest.$ac_objext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18087 (eval $ac_compile) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_type_bits16_t=yes
18099 echo "$as_me: failed program was:" >&5
18100 cat conftest.$ac_ext >&5
18101 ac_cv_type_bits16_t=no
18103 rm -f conftest.$ac_objext conftest.$ac_ext
18105 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18106 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18107 if test $ac_cv_type_bits16_t = yes; then
18111 cat >>confdefs.h <<_ACEOF
18112 #define bits16_t short
18120 if test "$ac_cv_sizeof_short" = 2; then
18121 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18122 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18123 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 cat >conftest.$ac_ext <<_ACEOF
18127 #line $LINENO "configure"
18128 #include "confdefs.h"
18129 $ac_includes_default
18130 #ifdef F77_DUMMY_MAIN
18131 # ifdef __cplusplus
18134 int F77_DUMMY_MAIN() { return 1; }
18139 if ((u_bits16_t *) 0)
18141 if (sizeof (u_bits16_t))
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 ac_cv_type_u_bits16_t=yes
18161 echo "$as_me: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18163 ac_cv_type_u_bits16_t=no
18165 rm -f conftest.$ac_objext conftest.$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18168 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18169 if test $ac_cv_type_u_bits16_t = yes; then
18173 cat >>confdefs.h <<_ACEOF
18174 #define u_bits16_t unsigned short
18179 elif test "$ac_cv_sizeof_char" = 2; then
18180 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18181 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18182 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 cat >conftest.$ac_ext <<_ACEOF
18186 #line $LINENO "configure"
18187 #include "confdefs.h"
18188 $ac_includes_default
18189 #ifdef F77_DUMMY_MAIN
18190 # ifdef __cplusplus
18193 int F77_DUMMY_MAIN() { return 1; }
18198 if ((u_bits16_t *) 0)
18200 if (sizeof (u_bits16_t))
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -s conftest.$ac_objext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_type_u_bits16_t=yes
18220 echo "$as_me: failed program was:" >&5
18221 cat conftest.$ac_ext >&5
18222 ac_cv_type_u_bits16_t=no
18224 rm -f conftest.$ac_objext conftest.$ac_ext
18226 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18227 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18228 if test $ac_cv_type_u_bits16_t = yes; then
18232 cat >>confdefs.h <<_ACEOF
18233 #define u_bits16_t unsigned char
18239 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18240 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18241 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 cat >conftest.$ac_ext <<_ACEOF
18245 #line $LINENO "configure"
18246 #include "confdefs.h"
18247 $ac_includes_default
18248 #ifdef F77_DUMMY_MAIN
18249 # ifdef __cplusplus
18252 int F77_DUMMY_MAIN() { return 1; }
18257 if ((u_bits16_t *) 0)
18259 if (sizeof (u_bits16_t))
18265 rm -f conftest.$ac_objext
18266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18267 (eval $ac_compile) 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -s conftest.$ac_objext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_type_u_bits16_t=yes
18279 echo "$as_me: failed program was:" >&5
18280 cat conftest.$ac_ext >&5
18281 ac_cv_type_u_bits16_t=no
18283 rm -f conftest.$ac_objext conftest.$ac_ext
18285 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18286 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18287 if test $ac_cv_type_u_bits16_t = yes; then
18291 cat >>confdefs.h <<_ACEOF
18292 #define u_bits16_t unsigned short
18300 if test "$ac_cv_sizeof_int" = 4; then
18301 echo "$as_me:$LINENO: checking for bits32_t" >&5
18302 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18303 if test "${ac_cv_type_bits32_t+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 cat >conftest.$ac_ext <<_ACEOF
18307 #line $LINENO "configure"
18308 #include "confdefs.h"
18309 $ac_includes_default
18310 #ifdef F77_DUMMY_MAIN
18311 # ifdef __cplusplus
18314 int F77_DUMMY_MAIN() { return 1; }
18319 if ((bits32_t *) 0)
18321 if (sizeof (bits32_t))
18327 rm -f conftest.$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_type_bits32_t=yes
18341 echo "$as_me: failed program was:" >&5
18342 cat conftest.$ac_ext >&5
18343 ac_cv_type_bits32_t=no
18345 rm -f conftest.$ac_objext conftest.$ac_ext
18347 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18348 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18349 if test $ac_cv_type_bits32_t = yes; then
18353 cat >>confdefs.h <<_ACEOF
18354 #define bits32_t int
18359 elif test "$ac_cv_sizeof_long" = 4; then
18360 echo "$as_me:$LINENO: checking for bits32_t" >&5
18361 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18362 if test "${ac_cv_type_bits32_t+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 cat >conftest.$ac_ext <<_ACEOF
18366 #line $LINENO "configure"
18367 #include "confdefs.h"
18368 $ac_includes_default
18369 #ifdef F77_DUMMY_MAIN
18370 # ifdef __cplusplus
18373 int F77_DUMMY_MAIN() { return 1; }
18378 if ((bits32_t *) 0)
18380 if (sizeof (bits32_t))
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -s conftest.$ac_objext'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_type_bits32_t=yes
18400 echo "$as_me: failed program was:" >&5
18401 cat conftest.$ac_ext >&5
18402 ac_cv_type_bits32_t=no
18404 rm -f conftest.$ac_objext conftest.$ac_ext
18406 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18407 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18408 if test $ac_cv_type_bits32_t = yes; then
18412 cat >>confdefs.h <<_ACEOF
18413 #define bits32_t long
18419 echo "$as_me:$LINENO: checking for bits32_t" >&5
18420 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18421 if test "${ac_cv_type_bits32_t+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 cat >conftest.$ac_ext <<_ACEOF
18425 #line $LINENO "configure"
18426 #include "confdefs.h"
18427 $ac_includes_default
18428 #ifdef F77_DUMMY_MAIN
18429 # ifdef __cplusplus
18432 int F77_DUMMY_MAIN() { return 1; }
18437 if ((bits32_t *) 0)
18439 if (sizeof (bits32_t))
18445 rm -f conftest.$ac_objext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447 (eval $ac_compile) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -s conftest.$ac_objext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_cv_type_bits32_t=yes
18459 echo "$as_me: failed program was:" >&5
18460 cat conftest.$ac_ext >&5
18461 ac_cv_type_bits32_t=no
18463 rm -f conftest.$ac_objext conftest.$ac_ext
18465 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18466 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18467 if test $ac_cv_type_bits32_t = yes; then
18471 cat >>confdefs.h <<_ACEOF
18472 #define bits32_t int
18480 if test "$ac_cv_sizeof_int" = 4; then
18481 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
18482 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
18483 if test "${ac_cv_type_u_bits32_t+set}" = set; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18486 cat >conftest.$ac_ext <<_ACEOF
18487 #line $LINENO "configure"
18488 #include "confdefs.h"
18489 $ac_includes_default
18490 #ifdef F77_DUMMY_MAIN
18491 # ifdef __cplusplus
18494 int F77_DUMMY_MAIN() { return 1; }
18499 if ((u_bits32_t *) 0)
18501 if (sizeof (u_bits32_t))
18507 rm -f conftest.$ac_objext
18508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18509 (eval $ac_compile) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -s conftest.$ac_objext'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 ac_cv_type_u_bits32_t=yes
18521 echo "$as_me: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18523 ac_cv_type_u_bits32_t=no
18525 rm -f conftest.$ac_objext conftest.$ac_ext
18527 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
18528 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
18529 if test $ac_cv_type_u_bits32_t = yes; then
18533 cat >>confdefs.h <<_ACEOF
18534 #define u_bits32_t unsigned int
18539 elif test "$ac_cv_sizeof_long" = 4; then
18540 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
18541 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
18542 if test "${ac_cv_type_u_bits32_t+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<_ACEOF
18546 #line $LINENO "configure"
18547 #include "confdefs.h"
18548 $ac_includes_default
18549 #ifdef F77_DUMMY_MAIN
18550 # ifdef __cplusplus
18553 int F77_DUMMY_MAIN() { return 1; }
18558 if ((u_bits32_t *) 0)
18560 if (sizeof (u_bits32_t))
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568 (eval $ac_compile) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
18572 { ac_try='test -s conftest.$ac_objext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_type_u_bits32_t=yes
18580 echo "$as_me: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18582 ac_cv_type_u_bits32_t=no
18584 rm -f conftest.$ac_objext conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
18587 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
18588 if test $ac_cv_type_u_bits32_t = yes; then
18592 cat >>confdefs.h <<_ACEOF
18593 #define u_bits32_t unsigned long
18599 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
18600 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
18601 if test "${ac_cv_type_u_bits32_t+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 cat >conftest.$ac_ext <<_ACEOF
18605 #line $LINENO "configure"
18606 #include "confdefs.h"
18607 $ac_includes_default
18608 #ifdef F77_DUMMY_MAIN
18609 # ifdef __cplusplus
18612 int F77_DUMMY_MAIN() { return 1; }
18617 if ((u_bits32_t *) 0)
18619 if (sizeof (u_bits32_t))
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -s conftest.$ac_objext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_type_u_bits32_t=yes
18639 echo "$as_me: failed program was:" >&5
18640 cat conftest.$ac_ext >&5
18641 ac_cv_type_u_bits32_t=no
18643 rm -f conftest.$ac_objext conftest.$ac_ext
18645 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
18646 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
18647 if test $ac_cv_type_u_bits32_t = yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define u_bits32_t unsigned int
18660 if test "$ac_cv_sizeof_char_p" = 8; then
18661 echo "$as_me:$LINENO: checking for bits64_t" >&5
18662 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18663 if test "${ac_cv_type_bits64_t+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18667 #line $LINENO "configure"
18668 #include "confdefs.h"
18669 $ac_includes_default
18670 #ifdef F77_DUMMY_MAIN
18671 # ifdef __cplusplus
18674 int F77_DUMMY_MAIN() { return 1; }
18679 if ((bits64_t *) 0)
18681 if (sizeof (bits64_t))
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689 (eval $ac_compile) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_type_bits64_t=yes
18701 echo "$as_me: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18703 ac_cv_type_bits64_t=no
18705 rm -f conftest.$ac_objext conftest.$ac_ext
18707 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18708 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18709 if test $ac_cv_type_bits64_t = yes; then
18713 cat >>confdefs.h <<_ACEOF
18714 #define bits64_t char *
18719 elif test "$ac_cv_sizeof_double" = 8; then
18720 echo "$as_me:$LINENO: checking for bits64_t" >&5
18721 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18722 if test "${ac_cv_type_bits64_t+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 cat >conftest.$ac_ext <<_ACEOF
18726 #line $LINENO "configure"
18727 #include "confdefs.h"
18728 $ac_includes_default
18729 #ifdef F77_DUMMY_MAIN
18730 # ifdef __cplusplus
18733 int F77_DUMMY_MAIN() { return 1; }
18738 if ((bits64_t *) 0)
18740 if (sizeof (bits64_t))
18746 rm -f conftest.$ac_objext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -s conftest.$ac_objext'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 ac_cv_type_bits64_t=yes
18760 echo "$as_me: failed program was:" >&5
18761 cat conftest.$ac_ext >&5
18762 ac_cv_type_bits64_t=no
18764 rm -f conftest.$ac_objext conftest.$ac_ext
18766 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18767 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18768 if test $ac_cv_type_bits64_t = yes; then
18772 cat >>confdefs.h <<_ACEOF
18773 #define bits64_t double
18778 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
18779 echo "$as_me:$LINENO: checking for bits64_t" >&5
18780 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18781 if test "${ac_cv_type_bits64_t+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18785 #line $LINENO "configure"
18786 #include "confdefs.h"
18787 $ac_includes_default
18788 #ifdef F77_DUMMY_MAIN
18789 # ifdef __cplusplus
18792 int F77_DUMMY_MAIN() { return 1; }
18797 if ((bits64_t *) 0)
18799 if (sizeof (bits64_t))
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -s conftest.$ac_objext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_type_bits64_t=yes
18819 echo "$as_me: failed program was:" >&5
18820 cat conftest.$ac_ext >&5
18821 ac_cv_type_bits64_t=no
18823 rm -f conftest.$ac_objext conftest.$ac_ext
18825 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18826 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18827 if test $ac_cv_type_bits64_t = yes; then
18831 cat >>confdefs.h <<_ACEOF
18832 #define bits64_t long long
18837 elif test "$ac_cv_sizeof_long" = 8; then
18838 echo "$as_me:$LINENO: checking for bits64_t" >&5
18839 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18840 if test "${ac_cv_type_bits64_t+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18845 #include "confdefs.h"
18846 $ac_includes_default
18847 #ifdef F77_DUMMY_MAIN
18848 # ifdef __cplusplus
18851 int F77_DUMMY_MAIN() { return 1; }
18856 if ((bits64_t *) 0)
18858 if (sizeof (bits64_t))
18864 rm -f conftest.$ac_objext
18865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18866 (eval $ac_compile) 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -s conftest.$ac_objext'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_cv_type_bits64_t=yes
18878 echo "$as_me: failed program was:" >&5
18879 cat conftest.$ac_ext >&5
18880 ac_cv_type_bits64_t=no
18882 rm -f conftest.$ac_objext conftest.$ac_ext
18884 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18885 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18886 if test $ac_cv_type_bits64_t = yes; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define bits64_t long
18897 echo "$as_me:$LINENO: checking for bits64_t" >&5
18898 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18899 if test "${ac_cv_type_bits64_t+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18903 #line $LINENO "configure"
18904 #include "confdefs.h"
18905 $ac_includes_default
18906 #ifdef F77_DUMMY_MAIN
18907 # ifdef __cplusplus
18910 int F77_DUMMY_MAIN() { return 1; }
18915 if ((bits64_t *) 0)
18917 if (sizeof (bits64_t))
18923 rm -f conftest.$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925 (eval $ac_compile) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -s conftest.$ac_objext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_type_bits64_t=yes
18937 echo "$as_me: failed program was:" >&5
18938 cat conftest.$ac_ext >&5
18939 ac_cv_type_bits64_t=no
18941 rm -f conftest.$ac_objext conftest.$ac_ext
18943 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18944 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18945 if test $ac_cv_type_bits64_t = yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define bits64_t double
18959 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
18960 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
18961 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
18962 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 cat >conftest.$ac_ext <<_ACEOF
18966 #line $LINENO "configure"
18967 #include "confdefs.h"
18968 $ac_includes_default
18969 #ifdef F77_DUMMY_MAIN
18970 # ifdef __cplusplus
18973 int F77_DUMMY_MAIN() { return 1; }
18978 if ((ptrdiff_t *) 0)
18980 if (sizeof (ptrdiff_t))
18986 rm -f conftest.$ac_objext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988 (eval $ac_compile) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -s conftest.$ac_objext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_cv_type_ptrdiff_t=yes
19000 echo "$as_me: failed program was:" >&5
19001 cat conftest.$ac_ext >&5
19002 ac_cv_type_ptrdiff_t=no
19004 rm -f conftest.$ac_objext conftest.$ac_ext
19006 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19007 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19008 if test $ac_cv_type_ptrdiff_t = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define ptrdiff_t int
19018 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
19019 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19020 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19021 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 cat >conftest.$ac_ext <<_ACEOF
19025 #line $LINENO "configure"
19026 #include "confdefs.h"
19027 $ac_includes_default
19028 #ifdef F77_DUMMY_MAIN
19029 # ifdef __cplusplus
19032 int F77_DUMMY_MAIN() { return 1; }
19037 if ((ptrdiff_t *) 0)
19039 if (sizeof (ptrdiff_t))
19045 rm -f conftest.$ac_objext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047 (eval $ac_compile) 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try='test -s conftest.$ac_objext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_type_ptrdiff_t=yes
19059 echo "$as_me: failed program was:" >&5
19060 cat conftest.$ac_ext >&5
19061 ac_cv_type_ptrdiff_t=no
19063 rm -f conftest.$ac_objext conftest.$ac_ext
19065 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19066 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19067 if test $ac_cv_type_ptrdiff_t = yes; then
19071 cat >>confdefs.h <<_ACEOF
19072 #define ptrdiff_t long
19077 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
19078 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19079 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19080 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 #include "confdefs.h"
19086 $ac_includes_default
19087 #ifdef F77_DUMMY_MAIN
19088 # ifdef __cplusplus
19091 int F77_DUMMY_MAIN() { return 1; }
19096 if ((ptrdiff_t *) 0)
19098 if (sizeof (ptrdiff_t))
19104 rm -f conftest.$ac_objext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106 (eval $ac_compile) 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -s conftest.$ac_objext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_type_ptrdiff_t=yes
19118 echo "$as_me: failed program was:" >&5
19119 cat conftest.$ac_ext >&5
19120 ac_cv_type_ptrdiff_t=no
19122 rm -f conftest.$ac_objext conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19125 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19126 if test $ac_cv_type_ptrdiff_t = yes; then
19130 cat >>confdefs.h <<_ACEOF
19131 #define ptrdiff_t long long
19137 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19138 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19139 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 cat >conftest.$ac_ext <<_ACEOF
19143 #line $LINENO "configure"
19144 #include "confdefs.h"
19145 $ac_includes_default
19146 #ifdef F77_DUMMY_MAIN
19147 # ifdef __cplusplus
19150 int F77_DUMMY_MAIN() { return 1; }
19155 if ((ptrdiff_t *) 0)
19157 if (sizeof (ptrdiff_t))
19163 rm -f conftest.$ac_objext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19165 (eval $ac_compile) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_type_ptrdiff_t=yes
19177 echo "$as_me: failed program was:" >&5
19178 cat conftest.$ac_ext >&5
19179 ac_cv_type_ptrdiff_t=no
19181 rm -f conftest.$ac_objext conftest.$ac_ext
19183 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19184 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19185 if test $ac_cv_type_ptrdiff_t = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define ptrdiff_t int
19198 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19199 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19200 if test "${ac_cv_header_stat_broken+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 cat >conftest.$ac_ext <<_ACEOF
19204 #line $LINENO "configure"
19205 #include "confdefs.h"
19206 #include <sys/types.h>
19207 #include <sys/stat.h>
19209 #if defined(S_ISBLK) && defined(S_IFDIR)
19210 # if S_ISBLK (S_IFDIR)
19215 #if defined(S_ISBLK) && defined(S_IFCHR)
19216 # if S_ISBLK (S_IFCHR)
19221 #if defined(S_ISLNK) && defined(S_IFREG)
19222 # if S_ISLNK (S_IFREG)
19227 #if defined(S_ISSOCK) && defined(S_IFREG)
19228 # if S_ISSOCK (S_IFREG)
19234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19235 egrep "You lose" >/dev/null 2>&1; then
19236 ac_cv_header_stat_broken=yes
19238 ac_cv_header_stat_broken=no
19243 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19244 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19245 if test $ac_cv_header_stat_broken = yes; then
19247 cat >>confdefs.h <<\_ACEOF
19248 #define STAT_MACROS_BROKEN 1
19254 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
19255 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
19256 if test "${ac_cv_sys_interpreter+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
19264 if test $? -ne 69; then
19265 ac_cv_sys_interpreter=yes
19267 ac_cv_sys_interpreter=no
19271 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
19272 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
19273 interpval=$ac_cv_sys_interpreter
19275 if test $ac_cv_sys_interpreter = yes; then
19276 cat >>confdefs.h <<\_ACEOF
19277 #define HAVE_HASH_BANG_EXEC 1
19282 if test "$ac_cv_func_lstat" = "no"; then
19283 echo "$as_me:$LINENO: checking for lstat" >&5
19284 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
19285 if test "${bash_cv_func_lstat+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 cat >conftest.$ac_ext <<_ACEOF
19289 #line $LINENO "configure"
19290 #include "confdefs.h"
19292 #include <sys/types.h>
19293 #include <sys/stat.h>
19295 #ifdef F77_DUMMY_MAIN
19296 # ifdef __cplusplus
19299 int F77_DUMMY_MAIN() { return 1; }
19304 lstat(".",(struct stat *)0);
19309 rm -f conftest.$ac_objext conftest$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -s conftest$ac_exeext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 bash_cv_func_lstat=yes
19323 echo "$as_me: failed program was:" >&5
19324 cat conftest.$ac_ext >&5
19325 bash_cv_func_lstat=no
19327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19329 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
19330 echo "${ECHO_T}$bash_cv_func_lstat" >&6
19331 if test $bash_cv_func_lstat = yes; then
19332 cat >>confdefs.h <<\_ACEOF
19333 #define HAVE_LSTAT 1
19341 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
19342 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
19343 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 if test "$cross_compiling" = yes; then
19347 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
19348 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
19349 bash_cv_func_ctype_nonascii=no
19352 cat >conftest.$ac_ext <<_ACEOF
19353 #line $LINENO "configure"
19354 #include "confdefs.h"
19356 #ifdef HAVE_LOCALE_H
19357 #include <locale.h>
19370 #ifdef HAVE_SETLOCALE
19371 /* We take a shot here. If that locale is not known, try the
19372 system default. We try this one because '\342' (226) is
19373 known to be a printable character in that locale. */
19374 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
19375 if (deflocale == 0)
19376 deflocale = setlocale(LC_ALL, "");
19383 exit (r1 == 0 || r2 == 0);
19387 rm -f conftest$ac_exeext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389 (eval $ac_link) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 bash_cv_func_ctype_nonascii=yes
19400 echo "$as_me: program exited with status $ac_status" >&5
19401 echo "$as_me: failed program was:" >&5
19402 cat conftest.$ac_ext >&5
19403 ( exit $ac_status )
19404 bash_cv_func_ctype_nonascii=no
19406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19410 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
19411 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
19412 if test $bash_cv_func_ctype_nonascii = yes; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define CTYPE_NON_ASCII 1
19419 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
19420 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
19421 if test "${bash_cv_dup2_broken+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 if test "$cross_compiling" = yes; then
19425 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
19426 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
19427 bash_cv_dup2_broken=no
19429 cat >conftest.$ac_ext <<_ACEOF
19430 #line $LINENO "configure"
19431 #include "confdefs.h"
19433 #include <sys/types.h>
19438 fd1 = open("/dev/null", 2);
19439 if (fcntl(fd1, 2, 1) < 0)
19441 fd2 = dup2(fd1, 1);
19444 fl = fcntl(fd2, 1, 0);
19445 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
19450 rm -f conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452 (eval $ac_link) 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 bash_cv_dup2_broken=yes
19463 echo "$as_me: program exited with status $ac_status" >&5
19464 echo "$as_me: failed program was:" >&5
19465 cat conftest.$ac_ext >&5
19466 ( exit $ac_status )
19467 bash_cv_dup2_broken=no
19469 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19474 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
19475 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
19476 if test $bash_cv_dup2_broken = yes; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define DUP2_BROKEN 1
19484 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
19485 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
19486 if test "${bash_cv_pgrp_pipe+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 if test "$cross_compiling" = yes; then
19490 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
19491 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
19492 bash_cv_pgrp_pipe=no
19494 cat >conftest.$ac_ext <<_ACEOF
19495 #line $LINENO "configure"
19496 #include "confdefs.h"
19498 #ifdef HAVE_UNISTD_H
19499 # include <unistd.h>
19503 # ifdef GETPGRP_VOID
19504 # define getpgID() getpgrp()
19506 # define getpgID() getpgrp(0)
19507 # define setpgid(x,y) setpgrp(x,y)
19509 int pid1, pid2, fds[2];
19513 switch (pid1 = fork()) {
19517 setpgid(0, getpid());
19520 setpgid(pid1, pid1);
19522 sleep(2); /* let first child die */
19527 switch (pid2 = fork()) {
19532 ok = getpgID() == pid1;
19533 write(fds[1], &ok, 1);
19536 setpgid(pid2, pid1);
19539 if (read(fds[0], &ok, 1) != 1)
19547 rm -f conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549 (eval $ac_link) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 bash_cv_pgrp_pipe=no
19560 echo "$as_me: program exited with status $ac_status" >&5
19561 echo "$as_me: failed program was:" >&5
19562 cat conftest.$ac_ext >&5
19563 ( exit $ac_status )
19564 bash_cv_pgrp_pipe=yes
19566 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19571 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
19572 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
19573 if test $bash_cv_pgrp_pipe = yes; then
19574 cat >>confdefs.h <<\_ACEOF
19575 #define PGRP_PIPE 1
19581 echo "$as_me:$LINENO: checking for type of signal functions" >&5
19582 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
19583 if test "${bash_cv_signal_vintage+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 cat >conftest.$ac_ext <<_ACEOF
19588 #line $LINENO "configure"
19589 #include "confdefs.h"
19590 #include <signal.h>
19591 #ifdef F77_DUMMY_MAIN
19592 # ifdef __cplusplus
19595 int F77_DUMMY_MAIN() { return 1; }
19602 struct sigaction sa;
19603 sigemptyset(&ss); sigsuspend(&ss);
19604 sigaction(SIGINT, &sa, (struct sigaction *) 0);
19605 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -s conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 bash_cv_signal_vintage=posix
19625 echo "$as_me: failed program was:" >&5
19626 cat conftest.$ac_ext >&5
19628 cat >conftest.$ac_ext <<_ACEOF
19629 #line $LINENO "configure"
19630 #include "confdefs.h"
19631 #include <signal.h>
19632 #ifdef F77_DUMMY_MAIN
19633 # ifdef __cplusplus
19636 int F77_DUMMY_MAIN() { return 1; }
19642 int mask = sigmask(SIGINT);
19643 sigsetmask(mask); sigblock(mask); sigpause(mask);
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 (eval $ac_link) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -s conftest$ac_exeext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 bash_cv_signal_vintage=4.2bsd
19663 echo "$as_me: failed program was:" >&5
19664 cat conftest.$ac_ext >&5
19666 cat >conftest.$ac_ext <<_ACEOF
19667 #line $LINENO "configure"
19668 #include "confdefs.h"
19670 #include <signal.h>
19671 RETSIGTYPE foo() { }
19672 #ifdef F77_DUMMY_MAIN
19673 # ifdef __cplusplus
19676 int F77_DUMMY_MAIN() { return 1; }
19682 int mask = sigmask(SIGINT);
19683 sigset(SIGINT, foo); sigrelse(SIGINT);
19684 sighold(SIGINT); sigpause(SIGINT);
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -s conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 bash_cv_signal_vintage=svr3
19704 echo "$as_me: failed program was:" >&5
19705 cat conftest.$ac_ext >&5
19706 bash_cv_signal_vintage=v7
19709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19719 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
19720 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
19721 if test "$bash_cv_signal_vintage" = posix; then
19722 cat >>confdefs.h <<\_ACEOF
19723 #define HAVE_POSIX_SIGNALS 1
19726 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_BSD_SIGNALS 1
19731 elif test "$bash_cv_signal_vintage" = svr3; then
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE_USG_SIGHOLD 1
19739 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
19740 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
19741 if test "${bash_cv_sys_errlist+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 cat >conftest.$ac_ext <<_ACEOF
19745 #line $LINENO "configure"
19746 #include "confdefs.h"
19748 #ifdef F77_DUMMY_MAIN
19749 # ifdef __cplusplus
19752 int F77_DUMMY_MAIN() { return 1; }
19757 extern char *sys_errlist[];
19758 extern int sys_nerr;
19759 char *msg = sys_errlist[sys_nerr - 1];
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19766 (eval $ac_link) 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -s conftest$ac_exeext'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 bash_cv_sys_errlist=yes
19778 echo "$as_me: failed program was:" >&5
19779 cat conftest.$ac_ext >&5
19780 bash_cv_sys_errlist=no
19782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19784 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
19785 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
19786 if test $bash_cv_sys_errlist = yes; then
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_SYS_ERRLIST 1
19794 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
19795 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
19796 if test "${bash_cv_sys_siglist+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 if test "$cross_compiling" = yes; then
19800 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
19801 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
19802 bash_cv_sys_siglist=no
19804 cat >conftest.$ac_ext <<_ACEOF
19805 #line $LINENO "configure"
19806 #include "confdefs.h"
19808 #include <sys/types.h>
19809 #include <signal.h>
19810 #ifdef HAVE_UNISTD_H
19811 #include <unistd.h>
19813 #ifndef SYS_SIGLIST_DECLARED
19814 extern char *sys_siglist[];
19818 char *msg = sys_siglist[2];
19822 rm -f conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824 (eval $ac_link) 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 bash_cv_sys_siglist=yes
19835 echo "$as_me: program exited with status $ac_status" >&5
19836 echo "$as_me: failed program was:" >&5
19837 cat conftest.$ac_ext >&5
19838 ( exit $ac_status )
19839 bash_cv_sys_siglist=no
19841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19845 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
19846 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
19847 if test $bash_cv_sys_siglist = yes; then
19848 cat >>confdefs.h <<\_ACEOF
19849 #define HAVE_SYS_SIGLIST 1
19854 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
19855 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
19856 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 cat >conftest.$ac_ext <<_ACEOF
19860 #line $LINENO "configure"
19861 #include "confdefs.h"
19863 #include <sys/types.h>
19864 #include <signal.h>
19865 #ifdef HAVE_UNISTD_H
19866 #include <unistd.h>
19868 #ifdef F77_DUMMY_MAIN
19869 # ifdef __cplusplus
19872 int F77_DUMMY_MAIN() { return 1; }
19877 char *msg = _sys_siglist[2];
19882 rm -f conftest.$ac_objext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884 (eval $ac_compile) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 bash_cv_decl_under_sys_siglist=yes
19896 echo "$as_me: failed program was:" >&5
19897 cat conftest.$ac_ext >&5
19898 bash_cv_decl_under_sys_siglist=no
19900 rm -f conftest.$ac_objext conftest.$ac_ext
19902 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
19903 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
19904 if test $bash_cv_decl_under_sys_siglist = yes; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define UNDER_SYS_SIGLIST_DECLARED 1
19912 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
19913 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
19914 if test "${bash_cv_under_sys_siglist+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 if test "$cross_compiling" = yes; then
19918 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
19919 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
19920 bash_cv_under_sys_siglist=no
19922 cat >conftest.$ac_ext <<_ACEOF
19923 #line $LINENO "configure"
19924 #include "confdefs.h"
19926 #include <sys/types.h>
19927 #include <signal.h>
19928 #ifdef HAVE_UNISTD_H
19929 #include <unistd.h>
19931 #ifndef UNDER_SYS_SIGLIST_DECLARED
19932 extern char *_sys_siglist[];
19936 char *msg = (char *)_sys_siglist[2];
19940 rm -f conftest$ac_exeext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942 (eval $ac_link) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 bash_cv_under_sys_siglist=yes
19953 echo "$as_me: program exited with status $ac_status" >&5
19954 echo "$as_me: failed program was:" >&5
19955 cat conftest.$ac_ext >&5
19956 ( exit $ac_status )
19957 bash_cv_under_sys_siglist=no
19959 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19963 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
19964 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
19965 if test $bash_cv_under_sys_siglist = yes; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_UNDER_SYS_SIGLIST 1
19973 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
19974 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
19975 if test "${bash_cv_void_sighandler+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 cat >conftest.$ac_ext <<_ACEOF
19979 #line $LINENO "configure"
19980 #include "confdefs.h"
19981 #include <sys/types.h>
19982 #include <signal.h>
19989 void (*signal ()) ();
19990 #ifdef F77_DUMMY_MAIN
19991 # ifdef __cplusplus
19994 int F77_DUMMY_MAIN() { return 1; }
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 bash_cv_void_sighandler=yes
20018 echo "$as_me: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 bash_cv_void_sighandler=no
20022 rm -f conftest.$ac_objext conftest.$ac_ext
20024 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
20025 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
20026 if test $bash_cv_void_sighandler = yes; then
20027 cat >>confdefs.h <<\_ACEOF
20028 #define VOID_SIGHANDLER 1
20035 echo "$as_me:$LINENO: checking for clock_t" >&5
20036 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
20037 if test "${bash_cv_type_clock_t+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 #include "confdefs.h"
20043 #include <sys/types.h>
20045 #include <stdlib.h>
20046 #include <stddef.h>
20048 #if HAVE_INTTYPES_H
20049 #include <inttypes.h>
20051 #include <sys/times.h>
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055 egrep "clock_t" >/dev/null 2>&1; then
20056 bash_cv_type_clock_t=yes
20058 bash_cv_type_clock_t=no
20064 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
20065 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
20067 if test $bash_cv_type_clock_t = no; then
20068 cat >>confdefs.h <<_ACEOF
20069 #define clock_t long
20076 echo "$as_me:$LINENO: checking for sigset_t" >&5
20077 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
20078 if test "${bash_cv_type_sigset_t+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 cat >conftest.$ac_ext <<_ACEOF
20082 #line $LINENO "configure"
20083 #include "confdefs.h"
20084 #include <sys/types.h>
20086 #include <stdlib.h>
20087 #include <stddef.h>
20089 #if HAVE_INTTYPES_H
20090 #include <inttypes.h>
20092 #include <signal.h>
20095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20096 egrep "sigset_t" >/dev/null 2>&1; then
20097 bash_cv_type_sigset_t=yes
20099 bash_cv_type_sigset_t=no
20105 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
20106 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
20108 if test $bash_cv_type_sigset_t = no; then
20109 cat >>confdefs.h <<_ACEOF
20110 #define sigset_t int
20117 echo "$as_me:$LINENO: checking for quad_t" >&5
20118 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
20119 if test "${bash_cv_type_quad_t+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 cat >conftest.$ac_ext <<_ACEOF
20123 #line $LINENO "configure"
20124 #include "confdefs.h"
20125 #include <sys/types.h>
20127 #include <stdlib.h>
20128 #include <stddef.h>
20130 #if HAVE_INTTYPES_H
20131 #include <inttypes.h>
20136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20137 egrep "quad_t" >/dev/null 2>&1; then
20138 bash_cv_type_quad_t=yes
20140 bash_cv_type_quad_t=no
20146 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
20147 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
20148 if test $bash_cv_type_quad_t = yes; then
20149 cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_QUAD_T 1
20154 if test $bash_cv_type_quad_t = no; then
20155 cat >>confdefs.h <<_ACEOF
20156 #define quad_t long
20163 echo "$as_me:$LINENO: checking for intmax_t" >&5
20164 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20165 if test "${bash_cv_type_intmax_t+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20170 #include "confdefs.h"
20171 #include <sys/types.h>
20173 #include <stdlib.h>
20174 #include <stddef.h>
20176 #if HAVE_INTTYPES_H
20177 #include <inttypes.h>
20182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20183 egrep "intmax_t" >/dev/null 2>&1; then
20184 bash_cv_type_intmax_t=yes
20186 bash_cv_type_intmax_t=no
20192 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
20193 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
20195 if test $bash_cv_type_intmax_t = no; then
20196 cat >>confdefs.h <<_ACEOF
20197 #define intmax_t $bash_cv_type_long_long
20204 echo "$as_me:$LINENO: checking for uintmax_t" >&5
20205 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
20206 if test "${bash_cv_type_uintmax_t+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20210 #line $LINENO "configure"
20211 #include "confdefs.h"
20212 #include <sys/types.h>
20214 #include <stdlib.h>
20215 #include <stddef.h>
20217 #if HAVE_INTTYPES_H
20218 #include <inttypes.h>
20223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20224 egrep "uintmax_t" >/dev/null 2>&1; then
20225 bash_cv_type_uintmax_t=yes
20227 bash_cv_type_uintmax_t=no
20233 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
20234 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
20236 if test $bash_cv_type_uintmax_t = no; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define uintmax_t $bash_cv_type_unsigned_long_long
20243 if test "$ac_cv_header_sys_socket_h" = "yes"; then
20246 echo "$as_me:$LINENO: checking for socklen_t" >&5
20247 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20248 if test "${bash_cv_type_socklen_t+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 cat >conftest.$ac_ext <<_ACEOF
20252 #line $LINENO "configure"
20253 #include "confdefs.h"
20254 #include <sys/types.h>
20256 #include <stdlib.h>
20257 #include <stddef.h>
20259 #if HAVE_INTTYPES_H
20260 #include <inttypes.h>
20262 #include <sys/socket.h>
20265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20266 egrep "socklen_t" >/dev/null 2>&1; then
20267 bash_cv_type_socklen_t=yes
20269 bash_cv_type_socklen_t=no
20275 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
20276 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
20277 if test $bash_cv_type_socklen_t = yes; then
20278 cat >>confdefs.h <<\_ACEOF
20279 #define HAVE_SOCKLEN_T 1
20283 if test $bash_cv_type_socklen_t = no; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define socklen_t int
20291 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
20292 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
20293 if test "${bash_cv_type_rlimit+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20298 #include "confdefs.h"
20299 #include <sys/types.h>
20300 #include <sys/resource.h>
20301 #ifdef F77_DUMMY_MAIN
20302 # ifdef __cplusplus
20305 int F77_DUMMY_MAIN() { return 1; }
20315 rm -f conftest.$ac_objext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317 (eval $ac_compile) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 bash_cv_type_rlimit=rlim_t
20329 echo "$as_me: failed program was:" >&5
20330 cat conftest.$ac_ext >&5
20332 if test "$cross_compiling" = yes; then
20333 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
20334 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
20335 bash_cv_type_rlimit=long
20337 cat >conftest.$ac_ext <<_ACEOF
20338 #line $LINENO "configure"
20339 #include "confdefs.h"
20341 #include <sys/types.h>
20342 #include <sys/time.h>
20343 #include <sys/resource.h>
20348 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
20354 rm -f conftest$ac_exeext
20355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20356 (eval $ac_link) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 bash_cv_type_rlimit=quad_t
20367 echo "$as_me: program exited with status $ac_status" >&5
20368 echo "$as_me: failed program was:" >&5
20369 cat conftest.$ac_ext >&5
20370 ( exit $ac_status )
20371 bash_cv_type_rlimit=long
20373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20376 rm -f conftest.$ac_objext conftest.$ac_ext
20380 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
20381 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
20382 if test $bash_cv_type_rlimit = quad_t; then
20383 cat >>confdefs.h <<\_ACEOF
20384 #define RLIMTYPE quad_t
20387 elif test $bash_cv_type_rlimit = rlim_t; then
20388 cat >>confdefs.h <<\_ACEOF
20389 #define RLIMTYPE rlim_t
20396 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
20397 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
20398 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 cat >conftest.$ac_ext <<_ACEOF
20402 #line $LINENO "configure"
20403 #include "confdefs.h"
20405 #include <sys/types.h>
20406 #include <termios.h>
20409 #ifdef F77_DUMMY_MAIN
20410 # ifdef __cplusplus
20413 int F77_DUMMY_MAIN() { return 1; }
20418 static struct termios ac_aggr;
20419 if (ac_aggr.c_line)
20425 rm -f conftest.$ac_objext
20426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20427 (eval $ac_compile) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -s conftest.$ac_objext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 ac_cv_member_struct_termios_c_line=yes
20439 echo "$as_me: failed program was:" >&5
20440 cat conftest.$ac_ext >&5
20441 ac_cv_member_struct_termios_c_line=no
20443 rm -f conftest.$ac_objext conftest.$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
20446 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
20447 if test $ac_cv_member_struct_termios_c_line = yes; then
20448 cat >>confdefs.h <<\_ACEOF
20449 #define TERMIOS_LDISC 1
20456 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
20457 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
20458 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20463 #include "confdefs.h"
20465 #include <sys/types.h>
20466 #include <termio.h>
20469 #ifdef F77_DUMMY_MAIN
20470 # ifdef __cplusplus
20473 int F77_DUMMY_MAIN() { return 1; }
20478 static struct termio ac_aggr;
20479 if (ac_aggr.c_line)
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -s conftest.$ac_objext'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 ac_cv_member_struct_termio_c_line=yes
20499 echo "$as_me: failed program was:" >&5
20500 cat conftest.$ac_ext >&5
20501 ac_cv_member_struct_termio_c_line=no
20503 rm -f conftest.$ac_objext conftest.$ac_ext
20505 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
20506 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
20507 if test $ac_cv_member_struct_termio_c_line = yes; then
20508 cat >>confdefs.h <<\_ACEOF
20509 #define TERMIO_LDISC 1
20516 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
20517 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
20518 if test "${bash_cv_dirent_has_dino+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 cat >conftest.$ac_ext <<_ACEOF
20522 #line $LINENO "configure"
20523 #include "confdefs.h"
20526 #include <sys/types.h>
20527 #ifdef HAVE_UNISTD_H
20528 # include <unistd.h>
20529 #endif /* HAVE_UNISTD_H */
20530 #if defined(HAVE_DIRENT_H)
20531 # include <dirent.h>
20533 # define dirent direct
20534 # ifdef HAVE_SYS_NDIR_H
20535 # include <sys/ndir.h>
20536 # endif /* SYSNDIR */
20537 # ifdef HAVE_SYS_DIR_H
20538 # include <sys/dir.h>
20539 # endif /* SYSDIR */
20540 # ifdef HAVE_NDIR_H
20543 #endif /* HAVE_DIRENT_H */
20545 #ifdef F77_DUMMY_MAIN
20546 # ifdef __cplusplus
20549 int F77_DUMMY_MAIN() { return 1; }
20555 struct dirent d; int z; z = d.d_ino;
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
20567 { ac_try='test -s conftest.$ac_objext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 bash_cv_dirent_has_dino=yes
20575 echo "$as_me: failed program was:" >&5
20576 cat conftest.$ac_ext >&5
20577 bash_cv_dirent_has_dino=no
20579 rm -f conftest.$ac_objext conftest.$ac_ext
20582 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
20583 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
20584 if test $bash_cv_dirent_has_dino = yes; then
20585 cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_STRUCT_DIRENT_D_INO 1
20592 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
20593 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
20594 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20598 #line $LINENO "configure"
20599 #include "confdefs.h"
20602 #include <sys/types.h>
20603 #ifdef HAVE_UNISTD_H
20604 # include <unistd.h>
20605 #endif /* HAVE_UNISTD_H */
20606 #if defined(HAVE_DIRENT_H)
20607 # include <dirent.h>
20609 # define dirent direct
20610 # ifdef HAVE_SYS_NDIR_H
20611 # include <sys/ndir.h>
20612 # endif /* SYSNDIR */
20613 # ifdef HAVE_SYS_DIR_H
20614 # include <sys/dir.h>
20615 # endif /* SYSDIR */
20616 # ifdef HAVE_NDIR_H
20619 #endif /* HAVE_DIRENT_H */
20621 #ifdef F77_DUMMY_MAIN
20622 # ifdef __cplusplus
20625 int F77_DUMMY_MAIN() { return 1; }
20631 struct dirent d; int z; z = d.d_fileno;
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 bash_cv_dirent_has_d_fileno=yes
20651 echo "$as_me: failed program was:" >&5
20652 cat conftest.$ac_ext >&5
20653 bash_cv_dirent_has_d_fileno=no
20655 rm -f conftest.$ac_objext conftest.$ac_ext
20658 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
20659 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
20660 if test $bash_cv_dirent_has_d_fileno = yes; then
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_STRUCT_DIRENT_D_FILENO 1
20668 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
20669 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
20670 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20675 #include "confdefs.h"
20678 #include <sys/types.h>
20679 #ifdef HAVE_UNISTD_H
20680 # include <unistd.h>
20681 #endif /* HAVE_UNISTD_H */
20682 #if defined(HAVE_DIRENT_H)
20683 # include <dirent.h>
20685 # define dirent direct
20686 # ifdef HAVE_SYS_NDIR_H
20687 # include <sys/ndir.h>
20688 # endif /* SYSNDIR */
20689 # ifdef HAVE_SYS_DIR_H
20690 # include <sys/dir.h>
20691 # endif /* SYSDIR */
20692 # ifdef HAVE_NDIR_H
20695 #endif /* HAVE_DIRENT_H */
20697 #ifdef F77_DUMMY_MAIN
20698 # ifdef __cplusplus
20701 int F77_DUMMY_MAIN() { return 1; }
20707 struct dirent d; int z; z = d.d_namlen;
20713 rm -f conftest.$ac_objext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20715 (eval $ac_compile) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 bash_cv_dirent_has_d_namlen=yes
20727 echo "$as_me: failed program was:" >&5
20728 cat conftest.$ac_ext >&5
20729 bash_cv_dirent_has_d_namlen=no
20731 rm -f conftest.$ac_objext conftest.$ac_ext
20734 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
20735 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
20736 if test $bash_cv_dirent_has_d_namlen = yes; then
20737 cat >>confdefs.h <<\_ACEOF
20738 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
20743 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
20744 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
20745 if test "${bash_cv_struct_winsize_header+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 #include "confdefs.h"
20751 #include <sys/types.h>
20752 #include <sys/ioctl.h>
20753 #ifdef F77_DUMMY_MAIN
20754 # ifdef __cplusplus
20757 int F77_DUMMY_MAIN() { return 1; }
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 bash_cv_struct_winsize_header=ioctl_h
20781 echo "$as_me: failed program was:" >&5
20782 cat conftest.$ac_ext >&5
20783 cat >conftest.$ac_ext <<_ACEOF
20784 #line $LINENO "configure"
20785 #include "confdefs.h"
20786 #include <sys/types.h>
20787 #include <termios.h>
20788 #ifdef F77_DUMMY_MAIN
20789 # ifdef __cplusplus
20792 int F77_DUMMY_MAIN() { return 1; }
20802 rm -f conftest.$ac_objext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804 (eval $ac_compile) 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -s conftest.$ac_objext'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 bash_cv_struct_winsize_header=termios_h
20816 echo "$as_me: failed program was:" >&5
20817 cat conftest.$ac_ext >&5
20818 bash_cv_struct_winsize_header=other
20820 rm -f conftest.$ac_objext conftest.$ac_ext
20823 rm -f conftest.$ac_objext conftest.$ac_ext
20826 if test $bash_cv_struct_winsize_header = ioctl_h; then
20827 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
20828 echo "${ECHO_T}sys/ioctl.h" >&6
20829 cat >>confdefs.h <<\_ACEOF
20830 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
20833 elif test $bash_cv_struct_winsize_header = termios_h; then
20834 echo "$as_me:$LINENO: result: termios.h" >&5
20835 echo "${ECHO_T}termios.h" >&6
20836 cat >>confdefs.h <<\_ACEOF
20837 #define STRUCT_WINSIZE_IN_TERMIOS 1
20841 echo "$as_me:$LINENO: result: not found" >&5
20842 echo "${ECHO_T}not found" >&6
20845 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
20846 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
20847 if test "${bash_cv_struct_timeval+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 cat >conftest.$ac_ext <<_ACEOF
20852 #line $LINENO "configure"
20853 #include "confdefs.h"
20854 #include <sys/time.h>
20857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20858 egrep "struct timeval" >/dev/null 2>&1; then
20859 bash_cv_struct_timeval=yes
20861 cat >conftest.$ac_ext <<_ACEOF
20862 #line $LINENO "configure"
20863 #include "confdefs.h"
20867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20868 egrep "struct timeval" >/dev/null 2>&1; then
20869 bash_cv_struct_timeval=yes
20871 bash_cv_struct_timeval=no
20881 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
20882 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
20883 if test $bash_cv_struct_timeval = yes; then
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_TIMEVAL 1
20890 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20891 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20892 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 cat >conftest.$ac_ext <<_ACEOF
20896 #line $LINENO "configure"
20897 #include "confdefs.h"
20898 $ac_includes_default
20899 #ifdef F77_DUMMY_MAIN
20900 # ifdef __cplusplus
20903 int F77_DUMMY_MAIN() { return 1; }
20908 static struct stat ac_aggr;
20909 if (ac_aggr.st_blocks)
20915 rm -f conftest.$ac_objext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20917 (eval $ac_compile) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_cv_member_struct_stat_st_blocks=yes
20929 echo "$as_me: failed program was:" >&5
20930 cat conftest.$ac_ext >&5
20931 ac_cv_member_struct_stat_st_blocks=no
20933 rm -f conftest.$ac_objext conftest.$ac_ext
20935 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20936 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20937 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20939 cat >>confdefs.h <<_ACEOF
20940 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20946 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20948 if test "${ac_cv_struct_tm+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 cat >conftest.$ac_ext <<_ACEOF
20952 #line $LINENO "configure"
20953 #include "confdefs.h"
20954 #include <sys/types.h>
20957 #ifdef F77_DUMMY_MAIN
20958 # ifdef __cplusplus
20961 int F77_DUMMY_MAIN() { return 1; }
20966 struct tm *tp; tp->tm_sec;
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -s conftest.$ac_objext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_struct_tm=time.h
20985 echo "$as_me: failed program was:" >&5
20986 cat conftest.$ac_ext >&5
20987 ac_cv_struct_tm=sys/time.h
20989 rm -f conftest.$ac_objext conftest.$ac_ext
20991 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20992 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20993 if test $ac_cv_struct_tm = sys/time.h; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define TM_IN_SYS_TIME 1
21001 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21002 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21003 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 cat >conftest.$ac_ext <<_ACEOF
21007 #line $LINENO "configure"
21008 #include "confdefs.h"
21009 #include <sys/types.h>
21010 #include <$ac_cv_struct_tm>
21013 #ifdef F77_DUMMY_MAIN
21014 # ifdef __cplusplus
21017 int F77_DUMMY_MAIN() { return 1; }
21022 static struct tm ac_aggr;
21023 if (ac_aggr.tm_zone)
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } &&
21035 { ac_try='test -s conftest.$ac_objext'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 ac_cv_member_struct_tm_tm_zone=yes
21043 echo "$as_me: failed program was:" >&5
21044 cat conftest.$ac_ext >&5
21045 ac_cv_member_struct_tm_tm_zone=no
21047 rm -f conftest.$ac_objext conftest.$ac_ext
21049 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21050 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21051 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21053 cat >>confdefs.h <<_ACEOF
21054 #define HAVE_STRUCT_TM_TM_ZONE 1
21060 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21062 cat >>confdefs.h <<\_ACEOF
21063 #define HAVE_TM_ZONE 1
21067 echo "$as_me:$LINENO: checking for tzname" >&5
21068 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21069 if test "${ac_cv_var_tzname+set}" = set; then
21070 echo $ECHO_N "(cached) $ECHO_C" >&6
21072 cat >conftest.$ac_ext <<_ACEOF
21073 #line $LINENO "configure"
21074 #include "confdefs.h"
21076 #ifndef tzname /* For SGI. */
21077 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21080 #ifdef F77_DUMMY_MAIN
21081 # ifdef __cplusplus
21084 int F77_DUMMY_MAIN() { return 1; }
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096 (eval $ac_link) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } &&
21100 { ac_try='test -s conftest$ac_exeext'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_var_tzname=yes
21108 echo "$as_me: failed program was:" >&5
21109 cat conftest.$ac_ext >&5
21110 ac_cv_var_tzname=no
21112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21114 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21115 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21116 if test $ac_cv_var_tzname = yes; then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_TZNAME 1
21125 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
21126 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
21127 if test "${bash_cv_struct_timezone+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 cat >conftest.$ac_ext <<_ACEOF
21132 #line $LINENO "configure"
21133 #include "confdefs.h"
21134 #include <sys/time.h>
21137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21138 egrep "struct timezone" >/dev/null 2>&1; then
21139 bash_cv_struct_timezone=yes
21141 cat >conftest.$ac_ext <<_ACEOF
21142 #line $LINENO "configure"
21143 #include "confdefs.h"
21147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21148 egrep "struct timezone" >/dev/null 2>&1; then
21149 bash_cv_struct_timezone=yes
21151 bash_cv_struct_timezone=no
21161 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
21162 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
21163 if test $bash_cv_struct_timezone = yes; then
21164 cat >>confdefs.h <<\_ACEOF
21165 #define HAVE_STRUCT_TIMEZONE 1
21171 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
21172 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
21173 if test "${bash_cv_have_strsignal+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 cat >conftest.$ac_ext <<_ACEOF
21177 #line $LINENO "configure"
21178 #include "confdefs.h"
21179 #include <sys/types.h>
21180 #include <signal.h>
21181 #ifdef F77_DUMMY_MAIN
21182 # ifdef __cplusplus
21185 int F77_DUMMY_MAIN() { return 1; }
21190 char *s = (char *)strsignal(2);
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197 (eval $ac_link) 2>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -s conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 bash_cv_have_strsignal=yes
21209 echo "$as_me: failed program was:" >&5
21210 cat conftest.$ac_ext >&5
21211 bash_cv_have_strsignal=no
21213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21216 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
21217 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
21218 if test $bash_cv_have_strsignal = yes; then
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_STRSIGNAL 1
21225 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
21226 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
21227 if test "${bash_cv_opendir_not_robust+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 if test "$cross_compiling" = yes; then
21231 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
21232 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
21233 bash_cv_opendir_not_robust=no
21236 cat >conftest.$ac_ext <<_ACEOF
21237 #line $LINENO "configure"
21238 #include "confdefs.h"
21241 #include <sys/types.h>
21243 #ifdef HAVE_UNISTD_H
21244 # include <unistd.h>
21245 #endif /* HAVE_UNISTD_H */
21246 #if defined(HAVE_DIRENT_H)
21247 # include <dirent.h>
21249 # define dirent direct
21250 # ifdef HAVE_SYS_NDIR_H
21251 # include <sys/ndir.h>
21252 # endif /* SYSNDIR */
21253 # ifdef HAVE_SYS_DIR_H
21254 # include <sys/dir.h>
21255 # endif /* SYSDIR */
21256 # ifdef HAVE_NDIR_H
21259 #endif /* HAVE_DIRENT_H */
21264 err = mkdir("/tmp/bash-aclocal", 0700);
21269 unlink("/tmp/bash-aclocal/not_a_directory");
21270 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
21271 write(fd, "\n", 1);
21273 dir = opendir("/tmp/bash-aclocal/not_a_directory");
21274 unlink("/tmp/bash-aclocal/not_a_directory");
21275 rmdir("/tmp/bash-aclocal");
21279 rm -f conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281 (eval $ac_link) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 bash_cv_opendir_not_robust=yes
21292 echo "$as_me: program exited with status $ac_status" >&5
21293 echo "$as_me: failed program was:" >&5
21294 cat conftest.$ac_ext >&5
21295 ( exit $ac_status )
21296 bash_cv_opendir_not_robust=no
21298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21302 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
21303 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
21304 if test $bash_cv_opendir_not_robust = yes; then
21305 cat >>confdefs.h <<\_ACEOF
21306 #define OPENDIR_NOT_ROBUST 1
21311 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
21312 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
21313 if test "${bash_cv_ulimit_maxfds+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 if test "$cross_compiling" = yes; then
21317 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
21318 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
21319 bash_cv_ulimit_maxfds=no
21322 cat >conftest.$ac_ext <<_ACEOF
21323 #line $LINENO "configure"
21324 #include "confdefs.h"
21328 long maxfds = ulimit(4, 0L);
21329 exit (maxfds == -1L);
21333 rm -f conftest$ac_exeext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335 (eval $ac_link) 2>&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 bash_cv_ulimit_maxfds=yes
21346 echo "$as_me: program exited with status $ac_status" >&5
21347 echo "$as_me: failed program was:" >&5
21348 cat conftest.$ac_ext >&5
21349 ( exit $ac_status )
21350 bash_cv_ulimit_maxfds=no
21352 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21356 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
21357 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
21358 if test $bash_cv_ulimit_maxfds = yes; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define ULIMIT_MAXFDS 1
21365 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
21366 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
21367 if test "${bash_cv_getenv_redef+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 if test "$cross_compiling" = yes; then
21371 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
21372 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
21373 bash_cv_getenv_redef=yes
21376 cat >conftest.$ac_ext <<_ACEOF
21377 #line $LINENO "configure"
21378 #include "confdefs.h"
21380 #ifdef HAVE_UNISTD_H
21381 # include <unistd.h>
21390 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
21394 #endif /* !__linux__ && !__bsdi__ && !convex */
21401 /* The next allows this program to run, but does not allow bash to link
21402 when it redefines getenv. I'm not really interested in figuring out
21407 s = getenv("ABCDE");
21408 exit(s == 0); /* force optimizer to leave getenv in */
21412 rm -f conftest$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 bash_cv_getenv_redef=yes
21425 echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21428 ( exit $ac_status )
21429 bash_cv_getenv_redef=no
21431 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21435 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
21436 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
21437 if test $bash_cv_getenv_redef = yes; then
21438 cat >>confdefs.h <<\_ACEOF
21439 #define CAN_REDEFINE_GETENV 1
21444 if test "$ac_cv_func_getcwd" = "yes"; then
21445 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
21446 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
21447 if test "${bash_cv_getcwd_malloc+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 if test "$cross_compiling" = yes; then
21451 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
21452 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
21453 bash_cv_getcwd_malloc=no
21456 cat >conftest.$ac_ext <<_ACEOF
21457 #line $LINENO "configure"
21458 #include "confdefs.h"
21461 #ifdef HAVE_UNISTD_H
21462 #include <unistd.h>
21468 xpwd = getcwd(0, 0);
21473 rm -f conftest$ac_exeext
21474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21475 (eval $ac_link) 2>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 bash_cv_getcwd_malloc=yes
21486 echo "$as_me: program exited with status $ac_status" >&5
21487 echo "$as_me: failed program was:" >&5
21488 cat conftest.$ac_ext >&5
21489 ( exit $ac_status )
21490 bash_cv_getcwd_malloc=no
21492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21496 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
21497 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
21498 if test $bash_cv_getcwd_malloc = no; then
21499 cat >>confdefs.h <<\_ACEOF
21500 #define GETCWD_BROKEN 1
21503 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
21508 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
21509 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
21510 if test "${bash_cv_func_sigsetjmp+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 if test "$cross_compiling" = yes; then
21514 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
21515 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
21516 bash_cv_func_sigsetjmp=missing
21519 cat >conftest.$ac_ext <<_ACEOF
21520 #line $LINENO "configure"
21521 #include "confdefs.h"
21523 #ifdef HAVE_UNISTD_H
21524 #include <unistd.h>
21526 #include <sys/types.h>
21527 #include <signal.h>
21528 #include <setjmp.h>
21532 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
21537 sigset_t set, oset;
21542 sigemptyset(&oset);
21543 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
21544 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
21547 code = sigsetjmp(xx, 1);
21549 exit(0); /* could get sigmask and compare to oset here. */
21552 sigaddset(&set, SIGINT);
21553 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
21555 /* and siglongjmp */
21556 siglongjmp(xx, 10);
21561 rm -f conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 bash_cv_func_sigsetjmp=present
21574 echo "$as_me: program exited with status $ac_status" >&5
21575 echo "$as_me: failed program was:" >&5
21576 cat conftest.$ac_ext >&5
21577 ( exit $ac_status )
21578 bash_cv_func_sigsetjmp=missing
21580 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
21585 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
21586 if test $bash_cv_func_sigsetjmp = present; then
21587 cat >>confdefs.h <<\_ACEOF
21588 #define HAVE_POSIX_SIGSETJMP 1
21594 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
21595 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
21596 if test "${bash_cv_func_strcoll_broken+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 if test "$cross_compiling" = yes; then
21600 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
21601 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
21602 bash_cv_func_strcoll_broken=no
21605 cat >conftest.$ac_ext <<_ACEOF
21606 #line $LINENO "configure"
21607 #include "confdefs.h"
21610 #if defined (HAVE_LOCALE_H)
21611 #include <locale.h>
21619 char *deflocale, *defcoll;
21621 #ifdef HAVE_SETLOCALE
21622 deflocale = setlocale(LC_ALL, "");
21623 defcoll = setlocale(LC_COLLATE, "");
21626 #ifdef HAVE_STRCOLL
21627 /* These two values are taken from tests/glob-test. */
21628 r1 = strcoll("abd", "aXd");
21632 r2 = strcmp("abd", "aXd");
21634 /* These two should both be greater than 0. It is permissible for
21635 a system to return different values, as long as the sign is the
21638 /* Exit with 1 (failure) if these two values are both > 0, since
21639 this tests whether strcoll(3) is broken with respect to strcmp(3)
21640 in the default locale. */
21641 exit (r1 > 0 && r2 > 0);
21645 rm -f conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 bash_cv_func_strcoll_broken=yes
21658 echo "$as_me: program exited with status $ac_status" >&5
21659 echo "$as_me: failed program was:" >&5
21660 cat conftest.$ac_ext >&5
21661 ( exit $ac_status )
21662 bash_cv_func_strcoll_broken=no
21664 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21668 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
21669 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
21670 if test $bash_cv_func_strcoll_broken = yes; then
21671 cat >>confdefs.h <<\_ACEOF
21672 #define STRCOLL_BROKEN 1
21679 if test "$ac_cv_func_putenv" = "yes"; then
21683 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
21684 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
21685 if test "${bash_cv_std_putenv+set}" = set; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 cat >conftest.$ac_ext <<_ACEOF
21689 #line $LINENO "configure"
21690 #include "confdefs.h"
21693 #include <stdlib.h>
21694 #include <stddef.h>
21702 extern int putenv (char *);
21704 extern int putenv ();
21707 #ifdef F77_DUMMY_MAIN
21708 # ifdef __cplusplus
21711 int F77_DUMMY_MAIN() { return 1; }
21716 return (putenv == 0);
21721 rm -f conftest.$ac_objext conftest$ac_exeext
21722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21723 (eval $ac_link) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } &&
21727 { ac_try='test -s conftest$ac_exeext'
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 bash_cv_std_putenv=yes
21735 echo "$as_me: failed program was:" >&5
21736 cat conftest.$ac_ext >&5
21737 bash_cv_std_putenv=no
21740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21742 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
21743 echo "${ECHO_T}$bash_cv_std_putenv" >&6
21744 if test $bash_cv_std_putenv = yes; then
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_STD_PUTENV 1
21752 cat >>confdefs.h <<\_ACEOF
21753 #define HAVE_STD_PUTENV 1
21757 if test "$ac_cv_func_unsetenv" = "yes"; then
21761 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
21762 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
21763 if test "${bash_cv_std_unsetenv+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 cat >conftest.$ac_ext <<_ACEOF
21767 #line $LINENO "configure"
21768 #include "confdefs.h"
21771 #include <stdlib.h>
21772 #include <stddef.h>
21780 extern int unsetenv (const char *);
21782 extern int unsetenv ();
21785 #ifdef F77_DUMMY_MAIN
21786 # ifdef __cplusplus
21789 int F77_DUMMY_MAIN() { return 1; }
21794 return (unsetenv == 0);
21799 rm -f conftest.$ac_objext conftest$ac_exeext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801 (eval $ac_link) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -s conftest$ac_exeext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 bash_cv_std_unsetenv=yes
21813 echo "$as_me: failed program was:" >&5
21814 cat conftest.$ac_ext >&5
21815 bash_cv_std_unsetenv=no
21818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21820 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
21821 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
21822 if test $bash_cv_std_unsetenv = yes; then
21823 cat >>confdefs.h <<\_ACEOF
21824 #define HAVE_STD_UNSETENV 1
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_STD_UNSETENV 1
21836 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
21837 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
21838 if test "${bash_cv_printf_a_format+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 if test "$cross_compiling" = yes; then
21842 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
21843 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
21844 bash_cv_printf_a_format=no
21847 cat >conftest.$ac_ext <<_ACEOF
21848 #line $LINENO "configure"
21849 #include "confdefs.h"
21852 #include <string.h>
21860 sprintf(abuf, "%A", y);
21861 exit(strchr(abuf, 'P') == (char *)0);
21865 rm -f conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867 (eval $ac_link) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 bash_cv_printf_a_format=yes
21878 echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 cat conftest.$ac_ext >&5
21881 ( exit $ac_status )
21882 bash_cv_printf_a_format=no
21884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21888 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
21889 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
21890 if test $bash_cv_printf_a_format = yes; then
21891 cat >>confdefs.h <<\_ACEOF
21892 #define HAVE_PRINTF_A_FORMAT 1
21900 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
21901 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
21902 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21905 if test "$cross_compiling" = yes; then
21906 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
21907 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
21908 bash_cv_must_reinstall_sighandlers=no
21911 cat >conftest.$ac_ext <<_ACEOF
21912 #line $LINENO "configure"
21913 #include "confdefs.h"
21915 #include <signal.h>
21916 #ifdef HAVE_UNISTD_H
21917 #include <unistd.h>
21920 typedef RETSIGTYPE sigfunc();
21924 #ifdef HAVE_POSIX_SIGNALS
21926 set_signal_handler(sig, handler)
21930 struct sigaction act, oact;
21931 act.sa_handler = handler;
21933 sigemptyset (&act.sa_mask);
21934 sigemptyset (&oact.sa_mask);
21935 sigaction (sig, &act, &oact);
21936 return (oact.sa_handler);
21939 #define set_signal_handler(s, h) signal(s, h)
21952 set_signal_handler(SIGINT, sigint);
21953 kill((int)getpid(), SIGINT);
21954 kill((int)getpid(), SIGINT);
21955 exit(nsigint != 2);
21959 rm -f conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961 (eval $ac_link) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 bash_cv_must_reinstall_sighandlers=no
21972 echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 cat conftest.$ac_ext >&5
21975 ( exit $ac_status )
21976 bash_cv_must_reinstall_sighandlers=yes
21978 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21982 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
21983 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
21984 if test $bash_cv_must_reinstall_sighandlers = yes; then
21985 cat >>confdefs.h <<\_ACEOF
21986 #define MUST_REINSTALL_SIGHANDLERS 1
21992 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
21993 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
21994 if test "${bash_cv_job_control_missing+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 if test "$cross_compiling" = yes; then
21998 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
21999 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
22000 bash_cv_job_control_missing=missing
22003 cat >conftest.$ac_ext <<_ACEOF
22004 #line $LINENO "configure"
22005 #include "confdefs.h"
22007 #include <sys/types.h>
22008 #ifdef HAVE_SYS_WAIT_H
22009 #include <sys/wait.h>
22011 #ifdef HAVE_UNISTD_H
22012 #include <unistd.h>
22014 #include <signal.h>
22016 /* Add more tests in here as appropriate. */
22020 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
22024 /* signals and tty control. */
22025 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
22029 /* process control */
22030 #if !defined (WNOHANG) || !defined (WUNTRACED)
22034 /* Posix systems have tcgetpgrp and waitpid. */
22035 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
22039 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
22043 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
22044 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
22051 rm -f conftest$ac_exeext
22052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22053 (eval $ac_link) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22062 bash_cv_job_control_missing=present
22064 echo "$as_me: program exited with status $ac_status" >&5
22065 echo "$as_me: failed program was:" >&5
22066 cat conftest.$ac_ext >&5
22067 ( exit $ac_status )
22068 bash_cv_job_control_missing=missing
22070 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22074 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
22075 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
22076 if test $bash_cv_job_control_missing = missing; then
22077 cat >>confdefs.h <<\_ACEOF
22078 #define JOB_CONTROL_MISSING 1
22083 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
22084 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
22085 if test "${bash_cv_sys_named_pipes+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 if test "$cross_compiling" = yes; then
22089 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
22090 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
22091 bash_cv_sys_named_pipes=missing
22094 cat >conftest.$ac_ext <<_ACEOF
22095 #line $LINENO "configure"
22096 #include "confdefs.h"
22098 #include <sys/types.h>
22099 #include <sys/stat.h>
22100 #ifdef HAVE_UNISTD_H
22101 #include <unistd.h>
22104 /* Add more tests in here as appropriate. */
22109 #if defined (HAVE_MKFIFO)
22113 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
22120 err = mkdir("/tmp/bash-aclocal", 0700);
22125 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
22127 rmdir ("/tmp/bash-aclocal");
22131 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
22132 rmdir ("/tmp/bash-aclocal");
22136 rm -f conftest$ac_exeext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22138 (eval $ac_link) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 bash_cv_sys_named_pipes=present
22149 echo "$as_me: program exited with status $ac_status" >&5
22150 echo "$as_me: failed program was:" >&5
22151 cat conftest.$ac_ext >&5
22152 ( exit $ac_status )
22153 bash_cv_sys_named_pipes=missing
22155 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22159 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
22160 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
22161 if test $bash_cv_sys_named_pipes = missing; then
22162 cat >>confdefs.h <<\_ACEOF
22163 #define NAMED_PIPES_MISSING 1
22169 echo "$as_me:$LINENO: checking POSIX termios" >&5
22170 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
22171 if test "${ac_cv_sys_posix_termios+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22175 #line $LINENO "configure"
22176 #include "confdefs.h"
22177 #include <sys/types.h>
22178 #include <unistd.h>
22179 #include <termios.h>
22180 #ifdef F77_DUMMY_MAIN
22181 # ifdef __cplusplus
22184 int F77_DUMMY_MAIN() { return 1; }
22189 /* SunOS 4.0.3 has termios.h but not the library calls. */
22195 rm -f conftest.$ac_objext conftest$ac_exeext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22197 (eval $ac_link) 2>&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
22201 { ac_try='test -s conftest$ac_exeext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_sys_posix_termios=yes
22209 echo "$as_me: failed program was:" >&5
22210 cat conftest.$ac_ext >&5
22211 ac_cv_sys_posix_termios=no
22213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
22216 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
22218 if test $ac_cv_sys_posix_termios = yes; then
22219 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
22220 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
22221 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 cat >conftest.$ac_ext <<_ACEOF
22225 #line $LINENO "configure"
22226 #include "confdefs.h"
22227 #include <sys/types.h>
22228 #include <termios.h>
22234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22235 egrep "yes" >/dev/null 2>&1; then
22236 ac_cv_sys_tiocgwinsz_in_termios_h=yes
22238 ac_cv_sys_tiocgwinsz_in_termios_h=no
22243 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
22244 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
22247 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
22248 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
22249 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
22250 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22254 #line $LINENO "configure"
22255 #include "confdefs.h"
22256 #include <sys/types.h>
22257 #include <sys/ioctl.h>
22263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22264 egrep "yes" >/dev/null 2>&1; then
22265 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
22267 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
22272 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
22273 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
22275 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define GWINSZ_IN_SYS_IOCTL 1
22284 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
22285 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
22286 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 #include "confdefs.h"
22292 #include <sys/types.h>
22293 #include <sys/ioctl.h>
22294 #ifdef F77_DUMMY_MAIN
22295 # ifdef __cplusplus
22298 int F77_DUMMY_MAIN() { return 1; }
22308 rm -f conftest.$ac_objext
22309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22310 (eval $ac_compile) 2>&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } &&
22314 { ac_try='test -s conftest.$ac_objext'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 bash_cv_tiocstat_in_ioctl=yes
22322 echo "$as_me: failed program was:" >&5
22323 cat conftest.$ac_ext >&5
22324 bash_cv_tiocstat_in_ioctl=no
22326 rm -f conftest.$ac_objext conftest.$ac_ext
22329 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
22330 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
22331 if test $bash_cv_tiocstat_in_ioctl = yes; then
22332 cat >>confdefs.h <<\_ACEOF
22333 #define TIOCSTAT_IN_SYS_IOCTL 1
22338 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
22339 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
22340 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 cat >conftest.$ac_ext <<_ACEOF
22344 #line $LINENO "configure"
22345 #include "confdefs.h"
22346 #include <sys/types.h>
22347 #include <sys/ioctl.h>
22348 #ifdef F77_DUMMY_MAIN
22349 # ifdef __cplusplus
22352 int F77_DUMMY_MAIN() { return 1; }
22362 rm -f conftest.$ac_objext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22364 (eval $ac_compile) 2>&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
22368 { ac_try='test -s conftest.$ac_objext'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; }; then
22374 bash_cv_fionread_in_ioctl=yes
22376 echo "$as_me: failed program was:" >&5
22377 cat conftest.$ac_ext >&5
22378 bash_cv_fionread_in_ioctl=no
22380 rm -f conftest.$ac_objext conftest.$ac_ext
22383 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
22384 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
22385 if test $bash_cv_fionread_in_ioctl = yes; then
22386 cat >>confdefs.h <<\_ACEOF
22387 #define FIONREAD_IN_SYS_IOCTL 1
22394 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
22395 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
22396 if test "${bash_cv_wcontinued_broken+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 if test "$cross_compiling" = yes; then
22400 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
22401 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
22402 bash_cv_wcontinued_broken=no
22405 cat >conftest.$ac_ext <<_ACEOF
22406 #line $LINENO "configure"
22407 #include "confdefs.h"
22409 #include <sys/types.h>
22410 #include <sys/wait.h>
22411 #include <unistd.h>
22421 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
22422 if (x == -1 && errno == EINVAL)
22429 rm -f conftest$ac_exeext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431 (eval $ac_link) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }; then
22440 bash_cv_wcontinued_broken=no
22442 echo "$as_me: program exited with status $ac_status" >&5
22443 echo "$as_me: failed program was:" >&5
22444 cat conftest.$ac_ext >&5
22445 ( exit $ac_status )
22446 bash_cv_wcontinued_broken=yes
22448 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22452 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
22453 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
22454 if test $bash_cv_wcontinued_broken = yes; then
22455 cat >>confdefs.h <<\_ACEOF
22456 #define WCONTINUED_BROKEN 1
22462 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
22463 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
22464 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22468 #line $LINENO "configure"
22469 #include "confdefs.h"
22470 #include <sys/types.h>
22471 #ifdef F77_DUMMY_MAIN
22472 # ifdef __cplusplus
22475 int F77_DUMMY_MAIN() { return 1; }
22485 rm -f conftest.$ac_objext
22486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22487 (eval $ac_compile) 2>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } &&
22491 { ac_try='test -s conftest.$ac_objext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 bash_cv_speed_t_in_sys_types=yes
22499 echo "$as_me: failed program was:" >&5
22500 cat conftest.$ac_ext >&5
22501 bash_cv_speed_t_in_sys_types=no
22503 rm -f conftest.$ac_objext conftest.$ac_ext
22506 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
22507 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
22508 if test $bash_cv_speed_t_in_sys_types = yes; then
22509 cat >>confdefs.h <<\_ACEOF
22510 #define SPEED_T_IN_SYS_TYPES 1
22515 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
22516 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
22517 if test "${bash_cv_getpw_declared+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 cat >conftest.$ac_ext <<_ACEOF
22521 #line $LINENO "configure"
22522 #include "confdefs.h"
22524 #include <sys/types.h>
22525 #ifdef HAVE_UNISTD_H
22526 # include <unistd.h>
22531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22532 egrep "getpwuid" >/dev/null 2>&1; then
22533 bash_cv_getpw_declared=yes
22535 bash_cv_getpw_declared=no
22541 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
22542 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
22543 if test $bash_cv_getpw_declared = yes; then
22544 cat >>confdefs.h <<\_ACEOF
22545 #define HAVE_GETPW_DECLS 1
22550 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
22551 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
22552 if test "${bash_cv_unusable_rtsigs+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22555 if test "$cross_compiling" = yes; then
22556 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
22557 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
22558 bash_cv_unusable_rtsigs=yes
22561 cat >conftest.$ac_ext <<_ACEOF
22562 #line $LINENO "configure"
22563 #include "confdefs.h"
22565 #include <sys/types.h>
22566 #include <signal.h>
22574 int n_sigs = 2 * NSIG;
22576 int rtmin = SIGRTMIN;
22581 exit(rtmin < n_sigs);
22584 rm -f conftest$ac_exeext
22585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22586 (eval $ac_link) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22591 (eval $ac_try) 2>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; }; then
22595 bash_cv_unusable_rtsigs=yes
22597 echo "$as_me: program exited with status $ac_status" >&5
22598 echo "$as_me: failed program was:" >&5
22599 cat conftest.$ac_ext >&5
22600 ( exit $ac_status )
22601 bash_cv_unusable_rtsigs=no
22603 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
22608 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
22609 if test $bash_cv_unusable_rtsigs = yes; then
22610 cat >>confdefs.h <<\_ACEOF
22611 #define UNUSABLE_RT_SIGNALS 1
22620 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
22621 SIGLIST_O=siglist.o
22629 hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
22630 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
22631 if test "${bash_cv_kernel_rlimit+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 cat >conftest.$ac_ext <<_ACEOF
22635 #line $LINENO "configure"
22636 #include "confdefs.h"
22638 #include <sys/types.h>
22639 #include <sys/resource.h>
22641 #ifdef F77_DUMMY_MAIN
22642 # ifdef __cplusplus
22645 int F77_DUMMY_MAIN() { return 1; }
22658 rm -f conftest.$ac_objext
22659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22660 (eval $ac_compile) 2>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
22664 { ac_try='test -s conftest.$ac_objext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 bash_cv_kernel_rlimit=no
22672 echo "$as_me: failed program was:" >&5
22673 cat conftest.$ac_ext >&5
22674 cat >conftest.$ac_ext <<_ACEOF
22675 #line $LINENO "configure"
22676 #include "confdefs.h"
22678 #include <sys/types.h>
22680 #include <sys/resource.h>
22683 #ifdef F77_DUMMY_MAIN
22684 # ifdef __cplusplus
22687 int F77_DUMMY_MAIN() { return 1; }
22700 rm -f conftest.$ac_objext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702 (eval $ac_compile) 2>&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } &&
22706 { ac_try='test -s conftest.$ac_objext'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 bash_cv_kernel_rlimit=yes
22714 echo "$as_me: failed program was:" >&5
22715 cat conftest.$ac_ext >&5
22716 bash_cv_kernel_rlimit=no
22718 rm -f conftest.$ac_objext conftest.$ac_ext
22721 rm -f conftest.$ac_objext conftest.$ac_ext
22724 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
22725 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
22726 if test $bash_cv_kernel_rlimit = yes; then
22727 cat >>confdefs.h <<\_ACEOF
22728 #define RLIMIT_NEEDS_KERNEL 1
22735 if test "$opt_readline" = yes; then
22737 aix*) prefer_curses=yes ;;
22740 if test "X$bash_cv_termcap_lib" = "X"; then
22743 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
22744 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
22747 if test "${bash_cv_termcap_lib+set}" = set; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 echo "$as_me:$LINENO: checking for tgetent" >&5
22751 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
22752 if test "${ac_cv_func_tgetent+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 cat >conftest.$ac_ext <<_ACEOF
22756 #line $LINENO "configure"
22757 #include "confdefs.h"
22758 /* System header to define __stub macros and hopefully few prototypes,
22759 which can conflict with char tgetent (); below. */
22760 #include <assert.h>
22761 /* Override any gcc2 internal prototype to avoid an error. */
22765 /* We use char because int might match the return type of a gcc2
22766 builtin and then its argument prototype would still apply. */
22770 #ifdef F77_DUMMY_MAIN
22771 # ifdef __cplusplus
22774 int F77_DUMMY_MAIN() { return 1; }
22779 /* The GNU C library defines this for functions which it implements
22780 to always fail with ENOSYS. Some functions are actually named
22781 something starting with __ and the normal name is an alias. */
22782 #if defined (__stub_tgetent) || defined (__stub___tgetent)
22792 rm -f conftest.$ac_objext conftest$ac_exeext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22794 (eval $ac_link) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } &&
22798 { ac_try='test -s conftest$ac_exeext'
22799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800 (eval $ac_try) 2>&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); }; }; then
22804 ac_cv_func_tgetent=yes
22806 echo "$as_me: failed program was:" >&5
22807 cat conftest.$ac_ext >&5
22808 ac_cv_func_tgetent=no
22810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22812 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
22813 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
22814 if test $ac_cv_func_tgetent = yes; then
22815 bash_cv_termcap_lib=libc
22817 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
22818 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
22819 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 ac_check_lib_save_LIBS=$LIBS
22823 LIBS="-ltermcap $LIBS"
22824 cat >conftest.$ac_ext <<_ACEOF
22825 #line $LINENO "configure"
22826 #include "confdefs.h"
22828 /* Override any gcc2 internal prototype to avoid an error. */
22832 /* We use char because int might match the return type of a gcc2
22833 builtin and then its argument prototype would still apply. */
22835 #ifdef F77_DUMMY_MAIN
22836 # ifdef __cplusplus
22839 int F77_DUMMY_MAIN() { return 1; }
22849 rm -f conftest.$ac_objext conftest$ac_exeext
22850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22851 (eval $ac_link) 2>&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } &&
22855 { ac_try='test -s conftest$ac_exeext'
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; }; then
22861 ac_cv_lib_termcap_tgetent=yes
22863 echo "$as_me: failed program was:" >&5
22864 cat conftest.$ac_ext >&5
22865 ac_cv_lib_termcap_tgetent=no
22867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22868 LIBS=$ac_check_lib_save_LIBS
22870 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
22871 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
22872 if test $ac_cv_lib_termcap_tgetent = yes; then
22873 bash_cv_termcap_lib=libtermcap
22875 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
22876 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
22877 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
22878 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 ac_check_lib_save_LIBS=$LIBS
22881 LIBS="-ltinfo $LIBS"
22882 cat >conftest.$ac_ext <<_ACEOF
22883 #line $LINENO "configure"
22884 #include "confdefs.h"
22886 /* Override any gcc2 internal prototype to avoid an error. */
22890 /* We use char because int might match the return type of a gcc2
22891 builtin and then its argument prototype would still apply. */
22893 #ifdef F77_DUMMY_MAIN
22894 # ifdef __cplusplus
22897 int F77_DUMMY_MAIN() { return 1; }
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909 (eval $ac_link) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } &&
22913 { ac_try='test -s conftest$ac_exeext'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919 ac_cv_lib_tinfo_tgetent=yes
22921 echo "$as_me: failed program was:" >&5
22922 cat conftest.$ac_ext >&5
22923 ac_cv_lib_tinfo_tgetent=no
22925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22926 LIBS=$ac_check_lib_save_LIBS
22928 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
22929 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
22930 if test $ac_cv_lib_tinfo_tgetent = yes; then
22931 bash_cv_termcap_lib=libtinfo
22933 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
22934 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
22935 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 ac_check_lib_save_LIBS=$LIBS
22939 LIBS="-lcurses $LIBS"
22940 cat >conftest.$ac_ext <<_ACEOF
22941 #line $LINENO "configure"
22942 #include "confdefs.h"
22944 /* Override any gcc2 internal prototype to avoid an error. */
22948 /* We use char because int might match the return type of a gcc2
22949 builtin and then its argument prototype would still apply. */
22951 #ifdef F77_DUMMY_MAIN
22952 # ifdef __cplusplus
22955 int F77_DUMMY_MAIN() { return 1; }
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967 (eval $ac_link) 2>&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } &&
22971 { ac_try='test -s conftest$ac_exeext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_lib_curses_tgetent=yes
22979 echo "$as_me: failed program was:" >&5
22980 cat conftest.$ac_ext >&5
22981 ac_cv_lib_curses_tgetent=no
22983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22984 LIBS=$ac_check_lib_save_LIBS
22986 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
22987 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
22988 if test $ac_cv_lib_curses_tgetent = yes; then
22989 bash_cv_termcap_lib=libcurses
22991 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
22992 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
22993 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
22994 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 ac_check_lib_save_LIBS=$LIBS
22997 LIBS="-lncurses $LIBS"
22998 cat >conftest.$ac_ext <<_ACEOF
22999 #line $LINENO "configure"
23000 #include "confdefs.h"
23002 /* Override any gcc2 internal prototype to avoid an error. */
23006 /* We use char because int might match the return type of a gcc2
23007 builtin and then its argument prototype would still apply. */
23009 #ifdef F77_DUMMY_MAIN
23010 # ifdef __cplusplus
23013 int F77_DUMMY_MAIN() { return 1; }
23023 rm -f conftest.$ac_objext conftest$ac_exeext
23024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23025 (eval $ac_link) 2>&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -s conftest$ac_exeext'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
23035 ac_cv_lib_ncurses_tgetent=yes
23037 echo "$as_me: failed program was:" >&5
23038 cat conftest.$ac_ext >&5
23039 ac_cv_lib_ncurses_tgetent=no
23041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23044 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
23045 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
23046 if test $ac_cv_lib_ncurses_tgetent = yes; then
23047 bash_cv_termcap_lib=libncurses
23049 bash_cv_termcap_lib=gnutermcap
23062 if test "X$_bash_needmsg" = "Xyes"; then
23063 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
23064 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
23066 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
23067 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
23068 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
23069 LDFLAGS="$LDFLAGS -L./lib/termcap"
23070 TERMCAP_LIB="./lib/termcap/libtermcap.a"
23071 TERMCAP_DEP="./lib/termcap/libtermcap.a"
23072 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
23073 TERMCAP_LIB=-ltermcap
23075 elif test $bash_cv_termcap_lib = libtinfo; then
23076 TERMCAP_LIB=-ltinfo
23078 elif test $bash_cv_termcap_lib = libncurses; then
23079 TERMCAP_LIB=-lncurses
23081 elif test $bash_cv_termcap_lib = libc; then
23085 TERMCAP_LIB=-lcurses
23093 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
23094 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
23095 if test "${bash_cv_dev_fd+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23098 if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
23099 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
23101 if test -r /dev/fd/3; then
23102 bash_cv_dev_fd=standard
23104 bash_cv_dev_fd=absent
23107 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
23108 bash_cv_dev_fd=whacky
23110 bash_cv_dev_fd=absent
23115 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
23116 echo "${ECHO_T}$bash_cv_dev_fd" >&6
23117 if test $bash_cv_dev_fd = "standard"; then
23118 cat >>confdefs.h <<\_ACEOF
23119 #define HAVE_DEV_FD 1
23122 cat >>confdefs.h <<\_ACEOF
23123 #define DEV_FD_PREFIX "/dev/fd/"
23126 elif test $bash_cv_dev_fd = "whacky"; then
23127 cat >>confdefs.h <<\_ACEOF
23128 #define HAVE_DEV_FD 1
23131 cat >>confdefs.h <<\_ACEOF
23132 #define DEV_FD_PREFIX "/proc/self/fd/"
23137 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
23138 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
23139 if test "${bash_cv_dev_stdin+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
23143 bash_cv_dev_stdin=present
23144 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
23145 bash_cv_dev_stdin=present
23147 bash_cv_dev_stdin=absent
23152 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
23153 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
23154 if test $bash_cv_dev_stdin = "present"; then
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_DEV_STDIN 1
23161 echo "$as_me:$LINENO: checking for default mail directory" >&5
23162 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
23163 if test "${bash_cv_mail_dir+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23166 if test -d /var/mail; then
23167 bash_cv_mail_dir=/var/mail
23168 elif test -d /var/spool/mail; then
23169 bash_cv_mail_dir=/var/spool/mail
23170 elif test -d /usr/mail; then
23171 bash_cv_mail_dir=/usr/mail
23172 elif test -d /usr/spool/mail; then
23173 bash_cv_mail_dir=/usr/spool/mail
23175 bash_cv_mail_dir=unknown
23180 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
23181 echo "${ECHO_T}$bash_cv_mail_dir" >&6
23182 cat >>confdefs.h <<_ACEOF
23183 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
23188 if test "$bash_cv_job_control_missing" = missing; then
23192 if test "$opt_job_control" = yes; then
23193 cat >>confdefs.h <<\_ACEOF
23194 #define JOB_CONTROL 1
23208 case "${host_os}" in
23209 sysv4.2*) cat >>confdefs.h <<\_ACEOF
23213 cat >>confdefs.h <<\_ACEOF
23217 sysv4*) cat >>confdefs.h <<\_ACEOF
23221 sysv5*) cat >>confdefs.h <<\_ACEOF
23225 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
23226 hpux*) LOCAL_CFLAGS=-DHPUX ;;
23227 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
23228 isc*) LOCAL_CFLAGS=-Disc386 ;;
23229 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
23230 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
23231 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
23232 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
23233 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
23234 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
23235 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
23236 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23237 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
23238 case "`uname -r`" in
23239 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
23240 #define PGRP_PIPE 1
23244 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
23245 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
23246 powerux*) LOCAL_LIBS="-lgen" ;;
23247 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23248 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
23251 case "${host_os}-${CC}" in
23252 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
23253 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
23254 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
23257 case "${host_os}" in
23259 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
23260 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
23262 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
23263 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
23266 case "$host_cpu" in
23267 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
23270 case "$host_cpu-$host_os" in
23271 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
23274 case "$host_cpu-$host_vendor-$host_os" in
23275 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
23276 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
23280 # Shared object configuration section. These values are generated by
23281 # ${srcdir}/support/shobj-conf
23283 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
23285 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
23286 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
23287 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
23295 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
23296 echo "${ECHO_T}$SHOBJ_STATUS" >&6
23299 # try to create a directory tree if the source is elsewhere
23300 # this should be packaged into a script accessible via ${srcdir}/support
23303 *) for d in doc tests support lib examples; do # dirs
23304 test -d $d || mkdir $d
23306 for ld in readline glob tilde malloc sh termcap; do # libdirs
23307 test -d lib/$ld || mkdir lib/$ld
23309 test -d examples/loadables || mkdir examples/loadables # loadable builtins
23310 test -d examples/loadables/perl || mkdir examples/loadables/perl
23315 case "$BUILD_DIR" in
23316 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
23343 #AC_SUBST(ALLOCA_SOURCE)
23344 #AC_SUBST(ALLOCA_OBJECT)
23346 ac_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 pathnames.h"
23347 ac_config_commands="$ac_config_commands default"
23348 cat >confcache <<\_ACEOF
23349 # This file is a shell script that caches the results of configure
23350 # tests run on this system so they can be shared between configure
23351 # scripts and configure runs, see configure's option --config-cache.
23352 # It is not useful on other systems. If it contains results you don't
23353 # want to keep, you may remove or edit it.
23355 # config.status only pays attention to the cache file if you give it
23356 # the --recheck option to rerun configure.
23358 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23360 # following values.
23364 # The following way of writing the cache mishandles newlines in values,
23365 # but we know of no workaround that is simple, portable, and efficient.
23366 # So, don't put newlines in cache variables' values.
23367 # Ultrix sh set writes to stderr and can't be redirected directly,
23368 # and sets the high bit in the cache file unless we assign to the vars.
23371 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23373 # `set' does not quote correctly, so add quotes (double-quote
23374 # substitution turns \\\\ into \\, and sed turns \\ into \).
23377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23380 # `set' quotes correctly as required by POSIX, so do not add quotes.
23382 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23391 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23393 if cmp -s $cache_file confcache; then :; else
23394 if test -w $cache_file; then
23395 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23396 cat confcache >$cache_file
23398 echo "not updating unwritable cache $cache_file"
23403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23404 # Let make expand exec_prefix.
23405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23409 # trailing colons and then remove the whole line if VPATH becomes empty
23410 # (actually we leave an empty line to preserve line numbers).
23411 if test "x$srcdir" = x.; then
23412 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23413 s/:*\$(srcdir):*/:/;
23414 s/:*\${srcdir}:*/:/;
23416 s/^\([^=]*=[ ]*\):*/\1/;
23422 DEFS=-DHAVE_CONFIG_H
23425 : ${CONFIG_STATUS=./config.status}
23426 ac_clean_files_save=$ac_clean_files
23427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23428 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23429 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23430 cat >$CONFIG_STATUS <<_ACEOF
23432 # Generated by $as_me.
23433 # Run this file to recreate the current configuration.
23434 # Compiler output produced by configure, useful for debugging
23435 # configure, is in config.log if it exists.
23438 SHELL=\${CONFIG_SHELL-$SHELL}
23441 cat >>$CONFIG_STATUS <<\_ACEOF
23443 ## --------------------- ##
23444 ## M4sh Initialization. ##
23445 ## --------------------- ##
23447 # Be Bourne compatible
23448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23451 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23456 # Support unset when possible.
23457 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23463 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
23464 { $as_unset LANG || test "${LANG+set}" != set; } ||
23465 { LANG=C; export LANG; }
23466 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
23467 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
23468 { LC_ALL=C; export LC_ALL; }
23469 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
23470 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
23471 { LC_TIME=C; export LC_TIME; }
23472 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
23473 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
23474 { LC_CTYPE=C; export LC_CTYPE; }
23475 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
23476 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
23477 { LANGUAGE=C; export LANGUAGE; }
23478 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
23479 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
23480 { LC_COLLATE=C; export LC_COLLATE; }
23481 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
23482 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
23483 { LC_NUMERIC=C; export LC_NUMERIC; }
23484 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
23485 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
23486 { LC_MESSAGES=C; export LC_MESSAGES; }
23489 # Name of the executable.
23490 as_me=`(basename "$0") 2>/dev/null ||
23491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23492 X"$0" : 'X\(//\)$' \| \
23493 X"$0" : 'X\(/\)$' \| \
23494 . : '\(.\)' 2>/dev/null ||
23496 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23497 /^X\/\(\/\/\)$/{ s//\1/; q; }
23498 /^X\/\(\/\).*/{ s//\1/; q; }
23501 # PATH needs CR, and LINENO needs CR and PATH.
23502 # Avoid depending upon Character Ranges.
23503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23506 as_cr_digits='0123456789'
23507 as_cr_alnum=$as_cr_Letters$as_cr_digits
23509 # The user is always right.
23510 if test "${PATH_SEPARATOR+set}" != set; then
23511 echo "#! /bin/sh" >conftest.sh
23512 echo "exit 0" >>conftest.sh
23513 chmod +x conftest.sh
23514 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
23523 as_lineno_1=$LINENO
23524 as_lineno_2=$LINENO
23525 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23526 test "x$as_lineno_1" != "x$as_lineno_2" &&
23527 test "x$as_lineno_3" = "x$as_lineno_2" || {
23528 # Find who we are. Look in the path if we contain no path at all
23531 *[\\/]* ) as_myself=$0 ;;
23532 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23533 for as_dir in $PATH
23536 test -z "$as_dir" && as_dir=.
23537 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23542 # We did not find ourselves, most probably we were run as `sh COMMAND'
23543 # in which case we are not to be found in the path.
23544 if test "x$as_myself" = x; then
23547 if test ! -f "$as_myself"; then
23548 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23549 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23550 { (exit 1); exit 1; }; }
23552 case $CONFIG_SHELL in
23554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23555 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23558 test -z "$as_dir" && as_dir=.
23559 for as_base in sh bash ksh sh5; do
23562 if ("$as_dir/$as_base" -c '
23563 as_lineno_1=$LINENO
23564 as_lineno_2=$LINENO
23565 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23566 test "x$as_lineno_1" != "x$as_lineno_2" &&
23567 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23568 CONFIG_SHELL=$as_dir/$as_base
23569 export CONFIG_SHELL
23570 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23579 # uniformly replaced by the line number. The first 'sed' inserts a
23580 # line-number line before each line; the second 'sed' does the real
23581 # work. The second script uses 'N' to pair each line-number line
23582 # with the numbered line, and appends trailing '-' during
23583 # substitution so that $LINENO is not a special case at line end.
23584 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23585 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23586 sed '=' <$as_myself |
23591 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23594 s,^['$as_cr_digits']*\n,,
23595 ' >$as_me.lineno &&
23596 chmod +x $as_me.lineno ||
23597 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23598 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23599 { (exit 1); exit 1; }; }
23601 # Don't try to exec as it changes $[0], causing all sort of problems
23602 # (the dirname of $[0] is not the place where we might find the
23603 # original and so on. Autoconf is especially sensible to this).
23605 # Exit status is that of the last command.
23610 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23611 *c*,-n*) ECHO_N= ECHO_C='
23613 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23614 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23617 if expr a : '\(a\)' >/dev/null 2>&1; then
23623 rm -f conf$$ conf$$.exe conf$$.file
23625 if ln -s conf$$.file conf$$ 2>/dev/null; then
23626 # We could just check for DJGPP; but this test a) works b) is more generic
23627 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23628 if test -f conf$$.exe; then
23629 # Don't use ln at all; we don't have any links
23634 elif ln conf$$.file conf$$ 2>/dev/null; then
23639 rm -f conf$$ conf$$.exe conf$$.file
23641 as_executable_p="test -f"
23643 # Sed expression to map a string onto a valid CPP name.
23644 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23646 # Sed expression to map a string onto a valid variable name.
23647 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23651 # We need space, tab and new line, in precisely that order.
23657 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
23661 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23662 # report actual input values of CONFIG_FILES etc. instead of their
23663 # values after options handling. Logging --version etc. is OK.
23667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23668 ## Running $as_me. ##
23673 This file was extended by bash $as_me 3.1-release, which was
23674 generated by GNU Autoconf 2.53. Invocation command line was
23676 CONFIG_FILES = $CONFIG_FILES
23677 CONFIG_HEADERS = $CONFIG_HEADERS
23678 CONFIG_LINKS = $CONFIG_LINKS
23679 CONFIG_COMMANDS = $CONFIG_COMMANDS
23683 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23687 # Files that config.status was made for.
23688 if test -n "$ac_config_files"; then
23689 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23692 if test -n "$ac_config_headers"; then
23693 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23696 if test -n "$ac_config_links"; then
23697 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23700 if test -n "$ac_config_commands"; then
23701 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23704 cat >>$CONFIG_STATUS <<\_ACEOF
23707 \`$as_me' instantiates files from templates according to the
23708 current configuration.
23710 Usage: $0 [OPTIONS] [FILE]...
23712 -h, --help print this help, then exit
23713 -V, --version print version number, then exit
23714 -d, --debug don't remove temporary files
23715 --recheck update $as_me by reconfiguring in the same conditions
23716 --file=FILE[:TEMPLATE]
23717 instantiate the configuration file FILE
23718 --header=FILE[:TEMPLATE]
23719 instantiate the configuration header FILE
23721 Configuration files:
23724 Configuration headers:
23727 Configuration commands:
23730 Report bugs to <bug-autoconf@gnu.org>."
23733 cat >>$CONFIG_STATUS <<_ACEOF
23735 bash config.status 3.1-release
23736 configured by $0, generated by GNU Autoconf 2.53,
23737 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23740 Free Software Foundation, Inc.
23741 This config.status script is free software; the Free Software Foundation
23742 gives unlimited permission to copy, distribute and modify it."
23747 cat >>$CONFIG_STATUS <<\_ACEOF
23748 # If no file are specified by the user, then we need to provide default
23749 # value. By we need to know if files were specified by the user.
23755 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23756 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23758 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23762 *) # This is not an option, so the user has probably given explicit
23764 ac_need_defaults=false;;
23768 # Handling of the options.
23770 cat >>$CONFIG_STATUS <<_ACEOF
23771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23772 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23773 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23775 cat >>$CONFIG_STATUS <<\_ACEOF
23776 --version | --vers* | -V )
23777 echo "$ac_cs_version"; exit 0 ;;
23779 # Conflict between --help and --header
23780 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23781 Try \`$0 --help' for more information." >&5
23782 echo "$as_me: error: ambiguous option: $1
23783 Try \`$0 --help' for more information." >&2;}
23784 { (exit 1); exit 1; }; };;
23785 --help | --hel | -h )
23786 echo "$ac_cs_usage"; exit 0 ;;
23787 --debug | --d* | -d )
23789 --file | --fil | --fi | --f )
23791 CONFIG_FILES="$CONFIG_FILES $1"
23792 ac_need_defaults=false;;
23793 --header | --heade | --head | --hea )
23795 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23796 ac_need_defaults=false;;
23798 # This is an error.
23799 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23800 Try \`$0 --help' for more information." >&5
23801 echo "$as_me: error: unrecognized option: $1
23802 Try \`$0 --help' for more information." >&2;}
23803 { (exit 1); exit 1; }; } ;;
23805 *) ac_config_targets="$ac_config_targets $1" ;;
23813 cat >>$CONFIG_STATUS <<_ACEOF
23815 # INIT-COMMANDS section.
23818 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23819 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23821 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23822 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23823 LINGUAS="${LINGUAS-%UNSET%}"
23830 cat >>$CONFIG_STATUS <<\_ACEOF
23831 for ac_config_target in $ac_config_targets
23833 case "$ac_config_target" in
23834 # Handling of arguments.
23835 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23836 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
23837 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
23838 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
23839 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
23840 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
23841 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
23842 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
23843 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
23844 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23845 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
23846 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23847 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
23848 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
23849 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
23850 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23851 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23852 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23854 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23855 { (exit 1); exit 1; }; };;
23859 # If the user did not use the arguments to specify the items to instantiate,
23860 # then the envvar interface is used. Set only those that are not.
23861 # We use the long form for the default assignment because of an extremely
23862 # bizarre bug on SunOS 4.1.3.
23863 if $ac_need_defaults; then
23864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23869 # Create a temporary directory, and hook for its removal unless debugging.
23872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23873 trap '{ (exit 1); exit 1; }' 1 2 13 15
23876 # Create a (secure) tmp directory for tmp files.
23879 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23880 test -n "$tmp" && test -d "$tmp"
23883 tmp=$TMPDIR/cs$$-$RANDOM
23884 (umask 077 && mkdir $tmp)
23887 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23888 { (exit 1); exit 1; }
23893 cat >>$CONFIG_STATUS <<_ACEOF
23896 # CONFIG_FILES section.
23899 # No need to generate the scripts if there are no CONFIG_FILES.
23900 # This happens for instance when ./config.status config.h
23901 if test -n "\$CONFIG_FILES"; then
23902 # Protect against being on the right side of a sed subst in config.status.
23903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23905 s,@SHELL@,$SHELL,;t t
23906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23912 s,@exec_prefix@,$exec_prefix,;t t
23913 s,@prefix@,$prefix,;t t
23914 s,@program_transform_name@,$program_transform_name,;t t
23915 s,@bindir@,$bindir,;t t
23916 s,@sbindir@,$sbindir,;t t
23917 s,@libexecdir@,$libexecdir,;t t
23918 s,@datadir@,$datadir,;t t
23919 s,@sysconfdir@,$sysconfdir,;t t
23920 s,@sharedstatedir@,$sharedstatedir,;t t
23921 s,@localstatedir@,$localstatedir,;t t
23922 s,@libdir@,$libdir,;t t
23923 s,@includedir@,$includedir,;t t
23924 s,@oldincludedir@,$oldincludedir,;t t
23925 s,@infodir@,$infodir,;t t
23926 s,@mandir@,$mandir,;t t
23927 s,@build_alias@,$build_alias,;t t
23928 s,@host_alias@,$host_alias,;t t
23929 s,@target_alias@,$target_alias,;t t
23930 s,@DEFS@,$DEFS,;t t
23931 s,@ECHO_C@,$ECHO_C,;t t
23932 s,@ECHO_N@,$ECHO_N,;t t
23933 s,@ECHO_T@,$ECHO_T,;t t
23934 s,@LIBS@,$LIBS,;t t
23935 s,@build@,$build,;t t
23936 s,@build_cpu@,$build_cpu,;t t
23937 s,@build_vendor@,$build_vendor,;t t
23938 s,@build_os@,$build_os,;t t
23939 s,@host@,$host,;t t
23940 s,@host_cpu@,$host_cpu,;t t
23941 s,@host_vendor@,$host_vendor,;t t
23942 s,@host_os@,$host_os,;t t
23943 s,@EMACS@,$EMACS,;t t
23944 s,@lispdir@,$lispdir,;t t
23945 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
23946 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
23947 s,@PURIFY@,$PURIFY,;t t
23948 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
23949 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
23950 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
23951 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
23952 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
23953 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
23954 s,@htmldir@,$htmldir,;t t
23955 s,@HELPDIR@,$HELPDIR,;t t
23956 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
23957 s,@HELPINSTALL@,$HELPINSTALL,;t t
23958 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
23960 s,@CFLAGS@,$CFLAGS,;t t
23961 s,@LDFLAGS@,$LDFLAGS,;t t
23962 s,@CPPFLAGS@,$CPPFLAGS,;t t
23963 s,@ac_ct_CC@,$ac_ct_CC,;t t
23964 s,@EXEEXT@,$EXEEXT,;t t
23965 s,@OBJEXT@,$OBJEXT,;t t
23967 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
23968 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
23969 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23970 s,@STATIC_LD@,$STATIC_LD,;t t
23971 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
23972 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
23973 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
23974 s,@RL_VERSION@,$RL_VERSION,;t t
23975 s,@RL_MAJOR@,$RL_MAJOR,;t t
23976 s,@RL_MINOR@,$RL_MINOR,;t t
23977 s,@READLINE_LIB@,$READLINE_LIB,;t t
23978 s,@READLINE_DEP@,$READLINE_DEP,;t t
23979 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
23980 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
23981 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
23982 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
23983 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
23984 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
23985 s,@TILDE_LIB@,$TILDE_LIB,;t t
23986 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23987 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23988 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23990 s,@RANLIB@,$RANLIB,;t t
23991 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23992 s,@YACC@,$YACC,;t t
23993 s,@SET_MAKE@,$SET_MAKE,;t t
23994 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
23995 s,@SIZE@,$SIZE,;t t
23996 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23997 s,@USE_NLS@,$USE_NLS,;t t
23998 s,@MSGFMT@,$MSGFMT,;t t
23999 s,@GMSGFMT@,$GMSGFMT,;t t
24000 s,@XGETTEXT@,$XGETTEXT,;t t
24001 s,@MSGMERGE@,$MSGMERGE,;t t
24002 s,@ALLOCA@,$ALLOCA,;t t
24003 s,@GLIBC21@,$GLIBC21,;t t
24004 s,@LIBICONV@,$LIBICONV,;t t
24005 s,@LTLIBICONV@,$LTLIBICONV,;t t
24006 s,@INTLBISON@,$INTLBISON,;t t
24007 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
24008 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
24009 s,@CATOBJEXT@,$CATOBJEXT,;t t
24010 s,@DATADIRNAME@,$DATADIRNAME,;t t
24011 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24012 s,@GENCAT@,$GENCAT,;t t
24013 s,@INTLOBJS@,$INTLOBJS,;t t
24014 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
24015 s,@INTLLIBS@,$INTLLIBS,;t t
24016 s,@LIBINTL@,$LIBINTL,;t t
24017 s,@LTLIBINTL@,$LTLIBINTL,;t t
24018 s,@POSUB@,$POSUB,;t t
24019 s,@LIBOBJS@,$LIBOBJS,;t t
24020 s,@INTL_DEP@,$INTL_DEP,;t t
24021 s,@INTL_INC@,$INTL_INC,;t t
24022 s,@LIBINTL_H@,$LIBINTL_H,;t t
24023 s,@SIGLIST_O@,$SIGLIST_O,;t t
24024 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
24025 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
24026 s,@JOBS_O@,$JOBS_O,;t t
24027 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
24028 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
24029 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
24030 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
24031 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
24032 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
24033 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
24034 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
24035 s,@incdir@,$incdir,;t t
24036 s,@BUILD_DIR@,$BUILD_DIR,;t t
24037 s,@ARFLAGS@,$ARFLAGS,;t t
24038 s,@BASHVERS@,$BASHVERS,;t t
24039 s,@RELSTATUS@,$RELSTATUS,;t t
24040 s,@DEBUG@,$DEBUG,;t t
24041 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
24042 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24043 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24044 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24045 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24050 cat >>$CONFIG_STATUS <<\_ACEOF
24051 # Split the substitutions into bite-sized pieces for seds with
24052 # small command number limits, like on Digital OSF/1 and HP-UX.
24053 ac_max_sed_lines=48
24054 ac_sed_frag=1 # Number of current file.
24055 ac_beg=1 # First line for current file.
24056 ac_end=$ac_max_sed_lines # Line after last line for current file.
24059 while $ac_more_lines; do
24060 if test $ac_beg -gt 1; then
24061 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24063 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24065 if test ! -s $tmp/subs.frag; then
24066 ac_more_lines=false
24068 # The purpose of the label and of the branching condition is to
24069 # speed up the sed processing (if there are no `@' at all, there
24070 # is no need to browse any of the substitutions).
24071 # These are the two extra sed commands mentioned above.
24073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24074 if test -z "$ac_sed_cmds"; then
24075 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24077 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24079 ac_sed_frag=`expr $ac_sed_frag + 1`
24081 ac_end=`expr $ac_end + $ac_max_sed_lines`
24084 if test -z "$ac_sed_cmds"; then
24087 fi # test -n "$CONFIG_FILES"
24090 cat >>$CONFIG_STATUS <<\_ACEOF
24091 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24094 - | *:- | *:-:* ) # input from stdin
24096 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24098 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24100 * ) ac_file_in=$ac_file.in ;;
24103 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24104 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24106 X"$ac_file" : 'X\(//\)[^/]' \| \
24107 X"$ac_file" : 'X\(//\)$' \| \
24108 X"$ac_file" : 'X\(/\)' \| \
24109 . : '\(.\)' 2>/dev/null ||
24111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24113 /^X\(\/\/\)$/{ s//\1/; q; }
24114 /^X\(\/\).*/{ s//\1/; q; }
24116 { case "$ac_dir" in
24117 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24121 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24122 case $as_mkdir_dir in
24123 # Skip DOS drivespec
24124 ?:) as_incr_dir=$as_mkdir_dir ;;
24126 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24127 test -d "$as_incr_dir" ||
24128 mkdir "$as_incr_dir" ||
24129 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
24130 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
24131 { (exit 1); exit 1; }; }
24138 if test "$ac_dir" != .; then
24139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24140 # A "../" for each directory in $ac_dir_suffix.
24141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24143 ac_dir_suffix= ac_top_builddir=
24147 .) # No --srcdir option. We are building in place.
24149 if test -z "$ac_top_builddir"; then
24152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24154 [\\/]* | ?:[\\/]* ) # Absolute path.
24155 ac_srcdir=$srcdir$ac_dir_suffix;
24156 ac_top_srcdir=$srcdir ;;
24157 *) # Relative path.
24158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24161 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24163 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24164 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
24165 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24166 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24170 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24171 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24174 if test x"$ac_file" != x-; then
24175 { echo "$as_me:$LINENO: creating $ac_file" >&5
24176 echo "$as_me: creating $ac_file" >&6;}
24179 # Let's still pretend it is `configure' which instantiates (i.e., don't
24180 # use $as_me), people would be surprised to read:
24181 # /* config.h. Generated by config.status. */
24182 if test x"$ac_file" = x-; then
24185 configure_input="$ac_file. "
24187 configure_input=$configure_input"Generated from `echo $ac_file_in |
24188 sed 's,.*/,,'` by configure."
24190 # First look for the input files in the build tree, otherwise in the
24192 ac_file_inputs=`IFS=:
24193 for f in $ac_file_in; do
24195 -) echo $tmp/stdin ;;
24197 # Absolute (can't be DOS-style, as IFS=:)
24198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24199 echo "$as_me: error: cannot find input file: $f" >&2;}
24200 { (exit 1); exit 1; }; }
24203 if test -f "$f"; then
24206 elif test -f "$srcdir/$f"; then
24211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24212 echo "$as_me: error: cannot find input file: $f" >&2;}
24213 { (exit 1); exit 1; }; }
24216 done` || { (exit 1); exit 1; }
24218 cat >>$CONFIG_STATUS <<_ACEOF
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24225 s,@configure_input@,$configure_input,;t t
24226 s,@srcdir@,$ac_srcdir,;t t
24227 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24228 s,@top_srcdir@,$ac_top_srcdir,;t t
24229 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24230 s,@builddir@,$ac_builddir,;t t
24231 s,@abs_builddir@,$ac_abs_builddir,;t t
24232 s,@top_builddir@,$ac_top_builddir,;t t
24233 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24234 s,@INSTALL@,$ac_INSTALL,;t t
24235 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24237 if test x"$ac_file" != x-; then
24238 mv $tmp/out $ac_file
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24249 # CONFIG_HEADER section.
24252 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24253 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24255 # ac_d sets the value in "#define NAME VALUE" lines.
24256 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24257 ac_dB='[ ].*$,\1#\2'
24260 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24261 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24262 ac_uB='$,\1#\2define\3'
24266 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24269 - | *:- | *:-:* ) # input from stdin
24271 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24273 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24275 * ) ac_file_in=$ac_file.in ;;
24278 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24279 echo "$as_me: creating $ac_file" >&6;}
24281 # First look for the input files in the build tree, otherwise in the
24283 ac_file_inputs=`IFS=:
24284 for f in $ac_file_in; do
24286 -) echo $tmp/stdin ;;
24288 # Absolute (can't be DOS-style, as IFS=:)
24289 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24290 echo "$as_me: error: cannot find input file: $f" >&2;}
24291 { (exit 1); exit 1; }; }
24294 if test -f "$f"; then
24297 elif test -f "$srcdir/$f"; then
24302 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24303 echo "$as_me: error: cannot find input file: $f" >&2;}
24304 { (exit 1); exit 1; }; }
24307 done` || { (exit 1); exit 1; }
24308 # Remove the trailing spaces.
24309 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24313 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24314 # `conftest.undefs', that substitutes the proper values into
24315 # config.h.in to produce config.h. The first handles `#define'
24316 # templates, and the second `#undef' templates.
24317 # And first: Protect against being on the right side of a sed subst in
24318 # config.status. Protect against being in an unquoted here document
24319 # in config.status.
24320 rm -f conftest.defines conftest.undefs
24321 # Using a here document instead of a string reduces the quoting nightmare.
24322 # Putting comments in sed scripts is not portable.
24324 # `end' is used to avoid that the second main sed command (meant for
24325 # 0-ary CPP macros) applies to n-ary macro definitions.
24326 # See the Autoconf documentation for `clear'.
24327 cat >confdef2sed.sed <<\_ACEOF
24332 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24334 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24337 # If some macros were called several times there might be several times
24338 # the same #defines, which is useless. Nevertheless, we may not want to
24339 # sort them, since we want the *last* AC-DEFINE to be honored.
24340 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24341 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24342 rm -f confdef2sed.sed
24344 # This sed command replaces #undef with comments. This is necessary, for
24345 # example, in the case of _POSIX_SOURCE, which is predefined and required
24346 # on some systems where configure will not decide to define it.
24347 cat >>conftest.undefs <<\_ACEOF
24348 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24351 # Break up conftest.defines because some shells have a limit on the size
24352 # of here documents, and old seds have small limits too (100 cmds).
24353 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24354 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24355 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24356 echo ' :' >>$CONFIG_STATUS
24357 rm -f conftest.tail
24358 while grep . conftest.defines >/dev/null
24360 # Write a limited-size here document to $tmp/defines.sed.
24361 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24362 # Speed up: don't consider the non `#define' lines.
24363 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24364 # Work around the forget-to-reset-the-flag bug.
24365 echo 't clr' >>$CONFIG_STATUS
24366 echo ': clr' >>$CONFIG_STATUS
24367 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24369 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24371 mv $tmp/out $tmp/in
24373 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24374 rm -f conftest.defines
24375 mv conftest.tail conftest.defines
24377 rm -f conftest.defines
24378 echo ' fi # egrep' >>$CONFIG_STATUS
24379 echo >>$CONFIG_STATUS
24381 # Break up conftest.undefs because some shells have a limit on the size
24382 # of here documents, and old seds have small limits too (100 cmds).
24383 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24384 rm -f conftest.tail
24385 while grep . conftest.undefs >/dev/null
24387 # Write a limited-size here document to $tmp/undefs.sed.
24388 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24389 # Speed up: don't consider the non `#undef'
24390 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24391 # Work around the forget-to-reset-the-flag bug.
24392 echo 't clr' >>$CONFIG_STATUS
24393 echo ': clr' >>$CONFIG_STATUS
24394 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24396 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24398 mv $tmp/out $tmp/in
24400 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24401 rm -f conftest.undefs
24402 mv conftest.tail conftest.undefs
24404 rm -f conftest.undefs
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 # Let's still pretend it is `configure' which instantiates (i.e., don't
24408 # use $as_me), people would be surprised to read:
24409 # /* config.h. Generated by config.status. */
24410 if test x"$ac_file" = x-; then
24411 echo "/* Generated by configure. */" >$tmp/config.h
24413 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24415 cat $tmp/in >>$tmp/config.h
24417 if test x"$ac_file" != x-; then
24418 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24420 echo "$as_me: $ac_file is unchanged" >&6;}
24422 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$ac_file" : 'X\(//\)[^/]' \| \
24425 X"$ac_file" : 'X\(//\)$' \| \
24426 X"$ac_file" : 'X\(/\)' \| \
24427 . : '\(.\)' 2>/dev/null ||
24429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24431 /^X\(\/\/\)$/{ s//\1/; q; }
24432 /^X\(\/\).*/{ s//\1/; q; }
24434 { case "$ac_dir" in
24435 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24439 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24440 case $as_mkdir_dir in
24441 # Skip DOS drivespec
24442 ?:) as_incr_dir=$as_mkdir_dir ;;
24444 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24445 test -d "$as_incr_dir" ||
24446 mkdir "$as_incr_dir" ||
24447 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
24448 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
24449 { (exit 1); exit 1; }; }
24455 mv $tmp/config.h $ac_file
24459 rm -f $tmp/config.h
24463 cat >>$CONFIG_STATUS <<\_ACEOF
24466 # CONFIG_COMMANDS section.
24468 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24469 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24470 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24471 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24472 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24473 X"$ac_dest" : 'X\(//\)[^/]' \| \
24474 X"$ac_dest" : 'X\(//\)$' \| \
24475 X"$ac_dest" : 'X\(/\)' \| \
24476 . : '\(.\)' 2>/dev/null ||
24478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24480 /^X\(\/\/\)$/{ s//\1/; q; }
24481 /^X\(\/\).*/{ s//\1/; q; }
24485 if test "$ac_dir" != .; then
24486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24487 # A "../" for each directory in $ac_dir_suffix.
24488 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24490 ac_dir_suffix= ac_top_builddir=
24494 .) # No --srcdir option. We are building in place.
24496 if test -z "$ac_top_builddir"; then
24499 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24501 [\\/]* | ?:[\\/]* ) # Absolute path.
24502 ac_srcdir=$srcdir$ac_dir_suffix;
24503 ac_top_srcdir=$srcdir ;;
24504 *) # Relative path.
24505 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24506 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24508 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24510 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24511 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
24512 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24513 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24516 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24517 echo "$as_me: executing $ac_dest commands" >&6;}
24520 for ac_file in $CONFIG_FILES; do
24521 # Support "outfile[:infile[:infile...]]"
24523 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24525 # PO directories have a Makefile.in generated from Makefile.in.in.
24526 case "$ac_file" in */Makefile.in)
24527 # Adjust a relative srcdir.
24528 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24529 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24530 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24531 # In autoconf-2.13 it is called $ac_given_srcdir.
24532 # In autoconf-2.50 it is called $srcdir.
24533 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24534 case "$ac_given_srcdir" in
24535 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24536 /*) top_srcdir="$ac_given_srcdir" ;;
24537 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24539 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24540 rm -f "$ac_dir/POTFILES"
24541 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24542 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24543 POMAKEFILEDEPS="POTFILES.in"
24544 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24545 # on $ac_dir but don't depend on user-specified configuration
24547 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24548 # The LINGUAS file contains the set of available languages.
24549 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24550 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24552 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24553 # Hide the ALL_LINGUAS assigment from automake.
24554 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24555 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24557 # The set of available languages was given in configure.in.
24558 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24560 case "$ac_given_srcdir" in
24562 *) srcdirpre='$(srcdir)/' ;;
24568 for lang in $ALL_LINGUAS; do
24569 POFILES="$POFILES $srcdirpre$lang.po"
24570 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24571 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24572 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24574 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24575 # environment variable.
24577 if test -n "$ALL_LINGUAS"; then
24578 for presentlang in $ALL_LINGUAS; do
24580 if test "%UNSET%" != "$LINGUAS"; then
24581 desiredlanguages="$LINGUAS"
24583 desiredlanguages="$ALL_LINGUAS"
24585 for desiredlang in $desiredlanguages; do
24586 # Use the presentlang catalog if desiredlang is
24587 # a. equal to presentlang, or
24588 # b. a variant of presentlang (because in this case,
24589 # presentlang can be used as a fallback for messages
24590 # which are not translated in the desiredlang catalog).
24591 case "$desiredlang" in
24592 "$presentlang"*) useit=yes;;
24595 if test $useit = yes; then
24596 INST_LINGUAS="$INST_LINGUAS $presentlang"
24601 if test -n "$INST_LINGUAS"; then
24602 for lang in $INST_LINGUAS; do
24603 CATALOGS="$CATALOGS $lang.gmo"
24606 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24607 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"
24608 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24609 if test -f "$f"; then
24611 *.orig | *.bak | *~) ;;
24612 *) cat "$f" >> "$ac_dir/Makefile" ;;
24621 # Makefile uses this timestamp file to record whether config.h is up to date.
24622 echo timestamp > stamp-h
24628 cat >>$CONFIG_STATUS <<\_ACEOF
24630 { (exit 0); exit 0; }
24632 chmod +x $CONFIG_STATUS
24633 ac_clean_files=$ac_clean_files_save
24636 # configure is writing to config.log, and then calls config.status.
24637 # config.status does its own redirection, appending to config.log.
24638 # Unfortunately, on DOS this fails, as config.log is still kept open
24639 # by configure, so config.status won't be able to write to it; its
24640 # output is simply discarded. So we exec the FD to /dev/null,
24641 # effectively closing config.log, so it can be properly (re)opened and
24642 # appended to by config.status. When coming back to configure, we
24643 # need to make the FD available again.
24644 if test "$no_create" != yes; then
24647 $SHELL $CONFIG_STATUS || ac_cs_success=false
24649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24650 # would make configure fail if this is the last instruction.
24651 $ac_cs_success || { (exit 1); exit 1; }